Class ReportSummary.ComputeEngineFinding.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
- com.google.cloud.migrationcenter.v1.ReportSummary.ComputeEngineFinding.Builder
-
- All Implemented Interfaces:
ReportSummary.ComputeEngineFindingOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ReportSummary.ComputeEngineFinding
public static final class ReportSummary.ComputeEngineFinding.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder> implements ReportSummary.ComputeEngineFindingOrBuilder
A set of findings that applies to assets destined for Compute Engine.
Protobuf typegoogle.cloud.migrationcenter.v1.ReportSummary.ComputeEngineFinding
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
clear
public ReportSummary.ComputeEngineFinding.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
getDefaultInstanceForType
public ReportSummary.ComputeEngineFinding getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReportSummary.ComputeEngineFinding build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReportSummary.ComputeEngineFinding buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ReportSummary.ComputeEngineFinding.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
setField
public ReportSummary.ComputeEngineFinding.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
clearField
public ReportSummary.ComputeEngineFinding.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
clearOneof
public ReportSummary.ComputeEngineFinding.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
setRepeatedField
public ReportSummary.ComputeEngineFinding.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
addRepeatedField
public ReportSummary.ComputeEngineFinding.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
mergeFrom
public ReportSummary.ComputeEngineFinding.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
mergeFrom
public ReportSummary.ComputeEngineFinding.Builder mergeFrom(ReportSummary.ComputeEngineFinding other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
mergeFrom
public ReportSummary.ComputeEngineFinding.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
- Throws:
IOException
-
getAllocatedRegionsList
public com.google.protobuf.ProtocolStringList getAllocatedRegionsList()
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Specified by:
getAllocatedRegionsList
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Returns:
- A list containing the allocatedRegions.
-
getAllocatedRegionsCount
public int getAllocatedRegionsCount()
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Specified by:
getAllocatedRegionsCount
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Returns:
- The count of allocatedRegions.
-
getAllocatedRegions
public String getAllocatedRegions(int index)
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Specified by:
getAllocatedRegions
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The allocatedRegions at the given index.
-
getAllocatedRegionsBytes
public com.google.protobuf.ByteString getAllocatedRegionsBytes(int index)
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Specified by:
getAllocatedRegionsBytes
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the allocatedRegions at the given index.
-
setAllocatedRegions
public ReportSummary.ComputeEngineFinding.Builder setAllocatedRegions(int index, String value)
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Parameters:
index
- The index to set the value at.value
- The allocatedRegions to set.- Returns:
- This builder for chaining.
-
addAllocatedRegions
public ReportSummary.ComputeEngineFinding.Builder addAllocatedRegions(String value)
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Parameters:
value
- The allocatedRegions to add.- Returns:
- This builder for chaining.
-
addAllAllocatedRegions
public ReportSummary.ComputeEngineFinding.Builder addAllAllocatedRegions(Iterable<String> values)
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Parameters:
values
- The allocatedRegions to add.- Returns:
- This builder for chaining.
-
clearAllocatedRegions
public ReportSummary.ComputeEngineFinding.Builder clearAllocatedRegions()
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Returns:
- This builder for chaining.
-
addAllocatedRegionsBytes
public ReportSummary.ComputeEngineFinding.Builder addAllocatedRegionsBytes(com.google.protobuf.ByteString value)
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;
- Parameters:
value
- The bytes of the allocatedRegions to add.- Returns:
- This builder for chaining.
-
getAllocatedAssetCount
public long getAllocatedAssetCount()
Count of assets which were allocated.
int64 allocated_asset_count = 2;
- Specified by:
getAllocatedAssetCount
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Returns:
- The allocatedAssetCount.
-
setAllocatedAssetCount
public ReportSummary.ComputeEngineFinding.Builder setAllocatedAssetCount(long value)
Count of assets which were allocated.
int64 allocated_asset_count = 2;
- Parameters:
value
- The allocatedAssetCount to set.- Returns:
- This builder for chaining.
-
clearAllocatedAssetCount
public ReportSummary.ComputeEngineFinding.Builder clearAllocatedAssetCount()
Count of assets which were allocated.
int64 allocated_asset_count = 2;
- Returns:
- This builder for chaining.
-
getMachineSeriesAllocationsList
public List<ReportSummary.MachineSeriesAllocation> getMachineSeriesAllocationsList()
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
- Specified by:
getMachineSeriesAllocationsList
in interfaceReportSummary.ComputeEngineFindingOrBuilder
-
getMachineSeriesAllocationsCount
public int getMachineSeriesAllocationsCount()
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
- Specified by:
getMachineSeriesAllocationsCount
in interfaceReportSummary.ComputeEngineFindingOrBuilder
-
getMachineSeriesAllocations
public ReportSummary.MachineSeriesAllocation getMachineSeriesAllocations(int index)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
- Specified by:
getMachineSeriesAllocations
in interfaceReportSummary.ComputeEngineFindingOrBuilder
-
setMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
setMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
addMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder addMachineSeriesAllocations(ReportSummary.MachineSeriesAllocation value)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
addMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
addMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder addMachineSeriesAllocations(ReportSummary.MachineSeriesAllocation.Builder builderForValue)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
addMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
addAllMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder addAllMachineSeriesAllocations(Iterable<? extends ReportSummary.MachineSeriesAllocation> values)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
clearMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder clearMachineSeriesAllocations()
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
removeMachineSeriesAllocations
public ReportSummary.ComputeEngineFinding.Builder removeMachineSeriesAllocations(int index)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
getMachineSeriesAllocationsBuilder
public ReportSummary.MachineSeriesAllocation.Builder getMachineSeriesAllocationsBuilder(int index)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
getMachineSeriesAllocationsOrBuilder
public ReportSummary.MachineSeriesAllocationOrBuilder getMachineSeriesAllocationsOrBuilder(int index)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
- Specified by:
getMachineSeriesAllocationsOrBuilder
in interfaceReportSummary.ComputeEngineFindingOrBuilder
-
getMachineSeriesAllocationsOrBuilderList
public List<? extends ReportSummary.MachineSeriesAllocationOrBuilder> getMachineSeriesAllocationsOrBuilderList()
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
- Specified by:
getMachineSeriesAllocationsOrBuilderList
in interfaceReportSummary.ComputeEngineFindingOrBuilder
-
addMachineSeriesAllocationsBuilder
public ReportSummary.MachineSeriesAllocation.Builder addMachineSeriesAllocationsBuilder()
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
addMachineSeriesAllocationsBuilder
public ReportSummary.MachineSeriesAllocation.Builder addMachineSeriesAllocationsBuilder(int index)
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
getMachineSeriesAllocationsBuilderList
public List<ReportSummary.MachineSeriesAllocation.Builder> getMachineSeriesAllocationsBuilderList()
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;
-
getAllocatedDiskTypesList
public List<PersistentDiskType> getAllocatedDiskTypesList()
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Specified by:
getAllocatedDiskTypesList
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Returns:
- A list containing the allocatedDiskTypes.
-
getAllocatedDiskTypesCount
public int getAllocatedDiskTypesCount()
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Specified by:
getAllocatedDiskTypesCount
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Returns:
- The count of allocatedDiskTypes.
-
getAllocatedDiskTypes
public PersistentDiskType getAllocatedDiskTypes(int index)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Specified by:
getAllocatedDiskTypes
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The allocatedDiskTypes at the given index.
-
setAllocatedDiskTypes
public ReportSummary.ComputeEngineFinding.Builder setAllocatedDiskTypes(int index, PersistentDiskType value)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Parameters:
index
- The index to set the value at.value
- The allocatedDiskTypes to set.- Returns:
- This builder for chaining.
-
addAllocatedDiskTypes
public ReportSummary.ComputeEngineFinding.Builder addAllocatedDiskTypes(PersistentDiskType value)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Parameters:
value
- The allocatedDiskTypes to add.- Returns:
- This builder for chaining.
-
addAllAllocatedDiskTypes
public ReportSummary.ComputeEngineFinding.Builder addAllAllocatedDiskTypes(Iterable<? extends PersistentDiskType> values)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Parameters:
values
- The allocatedDiskTypes to add.- Returns:
- This builder for chaining.
-
clearAllocatedDiskTypes
public ReportSummary.ComputeEngineFinding.Builder clearAllocatedDiskTypes()
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Returns:
- This builder for chaining.
-
getAllocatedDiskTypesValueList
public List<Integer> getAllocatedDiskTypesValueList()
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Specified by:
getAllocatedDiskTypesValueList
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for allocatedDiskTypes.
-
getAllocatedDiskTypesValue
public int getAllocatedDiskTypesValue(int index)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Specified by:
getAllocatedDiskTypesValue
in interfaceReportSummary.ComputeEngineFindingOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of allocatedDiskTypes at the given index.
-
setAllocatedDiskTypesValue
public ReportSummary.ComputeEngineFinding.Builder setAllocatedDiskTypesValue(int index, int value)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Parameters:
index
- The index to set the value at.value
- The enum numeric value on the wire for allocatedDiskTypes to set.- Returns:
- This builder for chaining.
-
addAllocatedDiskTypesValue
public ReportSummary.ComputeEngineFinding.Builder addAllocatedDiskTypesValue(int value)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Parameters:
value
- The enum numeric value on the wire for allocatedDiskTypes to add.- Returns:
- This builder for chaining.
-
addAllAllocatedDiskTypesValue
public ReportSummary.ComputeEngineFinding.Builder addAllAllocatedDiskTypesValue(Iterable<Integer> values)
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;
- Parameters:
values
- The enum numeric values on the wire for allocatedDiskTypes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ReportSummary.ComputeEngineFinding.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
mergeUnknownFields
public final ReportSummary.ComputeEngineFinding.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
-