Class ReportSummary.ComputeEngineFinding.Builder (0.1.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.PersistentDiskType>

The allocatedDiskTypes to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The allocatedRegions to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocation>
Returns
TypeDescription
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
NameDescription
valuePersistentDiskType

The allocatedDiskTypes to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The allocatedRegions to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the allocatedRegions to add.

Returns
TypeDescription
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
NameDescription
valueReportSummary.MachineSeriesAllocation
Returns
TypeDescription
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
NameDescription
builderForValueReportSummary.MachineSeriesAllocation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueReportSummary.MachineSeriesAllocation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReportSummary.MachineSeriesAllocation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ReportSummary.MachineSeriesAllocation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReportSummary.ComputeEngineFinding.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides

build()

public ReportSummary.ComputeEngineFinding build()
Returns
TypeDescription
ReportSummary.ComputeEngineFinding

buildPartial()

public ReportSummary.ComputeEngineFinding buildPartial()
Returns
TypeDescription
ReportSummary.ComputeEngineFinding

clear()

public ReportSummary.ComputeEngineFinding.Builder clear()
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides

clearAllocatedAssetCount()

public ReportSummary.ComputeEngineFinding.Builder clearAllocatedAssetCount()

Count of assets which were allocated.

int64 allocated_asset_count = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ReportSummary.ComputeEngineFinding.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ReportSummary.ComputeEngineFinding.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ReportSummary.ComputeEngineFinding.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides

clone()

public ReportSummary.ComputeEngineFinding.Builder clone()
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides

getAllocatedAssetCount()

public long getAllocatedAssetCount()

Count of assets which were allocated.

int64 allocated_asset_count = 2;

Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of allocatedRegions.

getAllocatedRegionsList()

public ProtocolStringList getAllocatedRegionsList()

Set of regions in which the assets were allocated.

repeated string allocated_regions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the allocatedRegions.

getDefaultInstanceForType()

public ReportSummary.ComputeEngineFinding getDefaultInstanceForType()
Returns
TypeDescription
ReportSummary.ComputeEngineFinding

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.ReportSummary.MachineSeriesAllocationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReportSummary.ComputeEngineFinding other)

public ReportSummary.ComputeEngineFinding.Builder mergeFrom(ReportSummary.ComputeEngineFinding other)
Parameter
NameDescription
otherReportSummary.ComputeEngineFinding
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReportSummary.ComputeEngineFinding.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReportSummary.ComputeEngineFinding.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReportSummary.ComputeEngineFinding.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuelong

The allocatedAssetCount to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valuePersistentDiskType

The allocatedDiskTypes to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The allocatedRegions to set.

Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ReportSummary.ComputeEngineFinding.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueReportSummary.MachineSeriesAllocation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReportSummary.MachineSeriesAllocation.Builder
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder

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

public ReportSummary.ComputeEngineFinding.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReportSummary.ComputeEngineFinding.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReportSummary.ComputeEngineFinding.Builder
Overrides