Class ReportSummary.ComputeEngineFinding.Builder (0.35.0)

public static final class ReportSummary.ComputeEngineFinding.Builder extends GeneratedMessageV3.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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllAllocatedDiskTypes(Iterable<? extends PersistentDiskType> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.PersistentDiskType>

The allocatedDiskTypes to add.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

addAllAllocatedDiskTypesValue(Iterable<Integer> values)

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;

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for allocatedDiskTypes to add.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

addAllAllocatedRegions(Iterable<String> values)

public ReportSummary.ComputeEngineFinding.Builder addAllAllocatedRegions(Iterable<String> values)

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Parameter
Name Description
values Iterable<String>

The allocatedRegions to add.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

addAllMachineSeriesAllocations(Iterable<? extends ReportSummary.MachineSeriesAllocation> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation>
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

addAllocatedDiskTypes(PersistentDiskType value)

public ReportSummary.ComputeEngineFinding.Builder addAllocatedDiskTypes(PersistentDiskType value)

Set of disk types allocated to assets.

repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;

Parameter
Name Description
value PersistentDiskType

The allocatedDiskTypes to add.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

addAllocatedDiskTypesValue(int value)

public ReportSummary.ComputeEngineFinding.Builder addAllocatedDiskTypesValue(int value)

Set of disk types allocated to assets.

repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for allocatedDiskTypes to add.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

addAllocatedRegions(String value)

public ReportSummary.ComputeEngineFinding.Builder addAllocatedRegions(String value)

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Parameter
Name Description
value String

The allocatedRegions to add.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

addAllocatedRegionsBytes(ByteString value)

public ReportSummary.ComputeEngineFinding.Builder addAllocatedRegionsBytes(ByteString value)

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Parameter
Name Description
value ByteString

The bytes of the allocatedRegions to add.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

addMachineSeriesAllocations(ReportSummary.MachineSeriesAllocation value)

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;

Parameter
Name Description
value ReportSummary.MachineSeriesAllocation
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

addMachineSeriesAllocations(ReportSummary.MachineSeriesAllocation.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ReportSummary.MachineSeriesAllocation.Builder
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value)

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;

Parameters
Name Description
index int
value ReportSummary.MachineSeriesAllocation
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

addMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ReportSummary.MachineSeriesAllocation.Builder
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

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;

Returns
Type Description
ReportSummary.MachineSeriesAllocation.Builder

addMachineSeriesAllocationsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ReportSummary.MachineSeriesAllocation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReportSummary.ComputeEngineFinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

build()

public ReportSummary.ComputeEngineFinding build()
Returns
Type Description
ReportSummary.ComputeEngineFinding

buildPartial()

public ReportSummary.ComputeEngineFinding buildPartial()
Returns
Type Description
ReportSummary.ComputeEngineFinding

clear()

public ReportSummary.ComputeEngineFinding.Builder clear()
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

clearAllocatedAssetCount()

public ReportSummary.ComputeEngineFinding.Builder clearAllocatedAssetCount()

Count of assets which were allocated.

int64 allocated_asset_count = 2;

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

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
Type Description
ReportSummary.ComputeEngineFinding.Builder

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
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReportSummary.ComputeEngineFinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

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;

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ReportSummary.ComputeEngineFinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

clone()

public ReportSummary.ComputeEngineFinding.Builder clone()
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

getAllocatedAssetCount()

public long getAllocatedAssetCount()

Count of assets which were allocated.

int64 allocated_asset_count = 2;

Returns
Type Description
long

The allocatedAssetCount.

getAllocatedDiskTypes(int index)

public PersistentDiskType getAllocatedDiskTypes(int index)

Set of disk types allocated to assets.

repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
PersistentDiskType

The allocatedDiskTypes at the given index.

getAllocatedDiskTypesCount()

public int getAllocatedDiskTypesCount()

Set of disk types allocated to assets.

repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;

Returns
Type Description
int

The count of allocatedDiskTypes.

getAllocatedDiskTypesList()

public List<PersistentDiskType> getAllocatedDiskTypesList()

Set of disk types allocated to assets.

repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;

Returns
Type Description
List<PersistentDiskType>

A list containing the allocatedDiskTypes.

getAllocatedDiskTypesValue(int index)

public int getAllocatedDiskTypesValue(int index)

Set of disk types allocated to assets.

repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of allocatedDiskTypes at the given index.

getAllocatedDiskTypesValueList()

public List<Integer> getAllocatedDiskTypesValueList()

Set of disk types allocated to assets.

repeated .google.cloud.migrationcenter.v1.PersistentDiskType allocated_disk_types = 4;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for allocatedDiskTypes.

getAllocatedRegions(int index)

public String getAllocatedRegions(int index)

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The allocatedRegions at the given index.

getAllocatedRegionsBytes(int index)

public ByteString getAllocatedRegionsBytes(int index)

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the allocatedRegions at the given index.

getAllocatedRegionsCount()

public int getAllocatedRegionsCount()

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Returns
Type Description
int

The count of allocatedRegions.

getAllocatedRegionsList()

public ProtocolStringList getAllocatedRegionsList()

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Returns
Type Description
ProtocolStringList

A list containing the allocatedRegions.

getDefaultInstanceForType()

public ReportSummary.ComputeEngineFinding getDefaultInstanceForType()
Returns
Type Description
ReportSummary.ComputeEngineFinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMachineSeriesAllocations(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ReportSummary.MachineSeriesAllocation

getMachineSeriesAllocationsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ReportSummary.MachineSeriesAllocation.Builder

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;

Returns
Type Description
List<Builder>

getMachineSeriesAllocationsCount()

public int getMachineSeriesAllocationsCount()

Distribution of assets based on the Machine Series.

repeated .google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation machine_series_allocations = 3;

Returns
Type Description
int

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;

Returns
Type Description
List<MachineSeriesAllocation>

getMachineSeriesAllocationsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ReportSummary.MachineSeriesAllocationOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReportSummary.ComputeEngineFinding other)

public ReportSummary.ComputeEngineFinding.Builder mergeFrom(ReportSummary.ComputeEngineFinding other)
Parameter
Name Description
other ReportSummary.ComputeEngineFinding
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReportSummary.ComputeEngineFinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReportSummary.ComputeEngineFinding.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportSummary.ComputeEngineFinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

removeMachineSeriesAllocations(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

setAllocatedAssetCount(long value)

public ReportSummary.ComputeEngineFinding.Builder setAllocatedAssetCount(long value)

Count of assets which were allocated.

int64 allocated_asset_count = 2;

Parameter
Name Description
value long

The allocatedAssetCount to set.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

setAllocatedDiskTypes(int index, PersistentDiskType value)

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
Name Description
index int

The index to set the value at.

value PersistentDiskType

The allocatedDiskTypes to set.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

setAllocatedDiskTypesValue(int index, int value)

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
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for allocatedDiskTypes to set.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

setAllocatedRegions(int index, String value)

public ReportSummary.ComputeEngineFinding.Builder setAllocatedRegions(int index, String value)

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The allocatedRegions to set.

Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReportSummary.ComputeEngineFinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation value)

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;

Parameters
Name Description
index int
value ReportSummary.MachineSeriesAllocation
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

setMachineSeriesAllocations(int index, ReportSummary.MachineSeriesAllocation.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ReportSummary.MachineSeriesAllocation.Builder
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReportSummary.ComputeEngineFinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReportSummary.ComputeEngineFinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReportSummary.ComputeEngineFinding.Builder
Overrides