Class ReportSummary.ComputeEngineFinding.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
implements ReportSummary.ComputeEngineFindingOrBuilder
A set of findings that applies to assets destined for Compute Engine.Protobuf type
google.cloud.migrationcenter.v1.ReportSummary.ComputeEngineFinding-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllocatedDiskTypes(Iterable<? extends PersistentDiskType> values) Set of disk types allocated to assets.addAllAllocatedDiskTypesValue(Iterable<Integer> values) Set of disk types allocated to assets.addAllAllocatedRegions(Iterable<String> values) Set of regions in which the assets were allocated.addAllMachineSeriesAllocations(Iterable<? extends ReportSummary.MachineSeriesAllocation> values) Distribution of assets based on the Machine Series.Set of disk types allocated to assets.addAllocatedDiskTypesValue(int value) Set of disk types allocated to assets.addAllocatedRegions(String value) Set of regions in which the assets were allocated.addAllocatedRegionsBytes(com.google.protobuf.ByteString value) Set of regions in which the assets were allocated.addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value) Distribution of assets based on the Machine Series.addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue) Distribution of assets based on the Machine Series.Distribution of assets based on the Machine Series.addMachineSeriesAllocations(ReportSummary.MachineSeriesAllocation.Builder builderForValue) Distribution of assets based on the Machine Series.Distribution of assets based on the Machine Series.addMachineSeriesAllocationsBuilder(int index) Distribution of assets based on the Machine Series.build()clear()Count of assets which were allocated.Set of disk types allocated to assets.Set of regions in which the assets were allocated.Distribution of assets based on the Machine Series.longCount of assets which were allocated.getAllocatedDiskTypes(int index) Set of disk types allocated to assets.intSet of disk types allocated to assets.Set of disk types allocated to assets.intgetAllocatedDiskTypesValue(int index) Set of disk types allocated to assets.Set of disk types allocated to assets.getAllocatedRegions(int index) Set of regions in which the assets were allocated.com.google.protobuf.ByteStringgetAllocatedRegionsBytes(int index) Set of regions in which the assets were allocated.intSet of regions in which the assets were allocated.com.google.protobuf.ProtocolStringListSet of regions in which the assets were allocated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMachineSeriesAllocations(int index) Distribution of assets based on the Machine Series.getMachineSeriesAllocationsBuilder(int index) Distribution of assets based on the Machine Series.Distribution of assets based on the Machine Series.intDistribution of assets based on the Machine Series.Distribution of assets based on the Machine Series.getMachineSeriesAllocationsOrBuilder(int index) Distribution of assets based on the Machine Series.Distribution of assets based on the Machine Series.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeMachineSeriesAllocations(int index) Distribution of assets based on the Machine Series.setAllocatedAssetCount(long value) Count of assets which were allocated.setAllocatedDiskTypes(int index, PersistentDiskType value) Set of disk types allocated to assets.setAllocatedDiskTypesValue(int index, int value) Set of disk types allocated to assets.setAllocatedRegions(int index, String value) Set of regions in which the assets were allocated.setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value) Distribution of assets based on the Machine Series.setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue) Distribution of assets based on the Machine Series.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
mergeFrom
public ReportSummary.ComputeEngineFinding.Builder mergeFrom(ReportSummary.ComputeEngineFinding other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ReportSummary.ComputeEngineFinding.Builder>
-
mergeFrom
public ReportSummary.ComputeEngineFinding.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getAllocatedRegionsListin 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:
getAllocatedRegionsCountin interfaceReportSummary.ComputeEngineFindingOrBuilder- Returns:
- The count of allocatedRegions.
-
getAllocatedRegions
Set of regions in which the assets were allocated.
repeated string allocated_regions = 1;- Specified by:
getAllocatedRegionsin 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:
getAllocatedRegionsBytesin interfaceReportSummary.ComputeEngineFindingOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the allocatedRegions at the given index.
-
setAllocatedRegions
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
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
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
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:
getAllocatedAssetCountin interfaceReportSummary.ComputeEngineFindingOrBuilder- Returns:
- The allocatedAssetCount.
-
setAllocatedAssetCount
Count of assets which were allocated.
int64 allocated_asset_count = 2;- Parameters:
value- The allocatedAssetCount to set.- Returns:
- This builder for chaining.
-
clearAllocatedAssetCount
Count of assets which were allocated.
int64 allocated_asset_count = 2;- Returns:
- This builder for chaining.
-
getMachineSeriesAllocationsList
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;- Specified by:
getMachineSeriesAllocationsListin 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:
getMachineSeriesAllocationsCountin interfaceReportSummary.ComputeEngineFindingOrBuilder
-
getMachineSeriesAllocations
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;- Specified by:
getMachineSeriesAllocationsin 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
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3; -
removeMachineSeriesAllocations
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3; -
getMachineSeriesAllocationsBuilder
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:
getMachineSeriesAllocationsOrBuilderin 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:
getMachineSeriesAllocationsOrBuilderListin interfaceReportSummary.ComputeEngineFindingOrBuilder
-
addMachineSeriesAllocationsBuilder
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3; -
addMachineSeriesAllocationsBuilder
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3; -
getMachineSeriesAllocationsBuilderList
Distribution of assets based on the Machine Series.
repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3; -
getAllocatedDiskTypesList
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;- Specified by:
getAllocatedDiskTypesListin 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:
getAllocatedDiskTypesCountin interfaceReportSummary.ComputeEngineFindingOrBuilder- Returns:
- The count of allocatedDiskTypes.
-
getAllocatedDiskTypes
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;- Specified by:
getAllocatedDiskTypesin 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
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
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;- Returns:
- This builder for chaining.
-
getAllocatedDiskTypesValueList
Set of disk types allocated to assets.
repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;- Specified by:
getAllocatedDiskTypesValueListin 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:
getAllocatedDiskTypesValuein 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
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
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.
-