Class ReportSummary.SoleTenantFinding.Builder (0.27.0)

public static final class ReportSummary.SoleTenantFinding.Builder extends GeneratedMessageV3.Builder<ReportSummary.SoleTenantFinding.Builder> implements ReportSummary.SoleTenantFindingOrBuilder

A set of findings that applies to assets destined for Sole-Tenant nodes.

Protobuf type google.cloud.migrationcenter.v1.ReportSummary.SoleTenantFinding

Static Methods

getDescriptor()

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

Methods

addAllAllocatedRegions(Iterable<String> values)

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

Set of regions in which the assets are allocated

repeated string allocated_regions = 1;

Parameter
Name Description
values Iterable<String>

The allocatedRegions to add.

Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

This builder for chaining.

addAllNodeAllocations(Iterable<? extends ReportSummary.SoleTenantNodeAllocation> values)

public ReportSummary.SoleTenantFinding.Builder addAllNodeAllocations(Iterable<? extends ReportSummary.SoleTenantNodeAllocation> values)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

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

addAllocatedRegions(String value)

public ReportSummary.SoleTenantFinding.Builder addAllocatedRegions(String value)

Set of regions in which the assets are allocated

repeated string allocated_regions = 1;

Parameter
Name Description
value String

The allocatedRegions to add.

Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

This builder for chaining.

addAllocatedRegionsBytes(ByteString value)

public ReportSummary.SoleTenantFinding.Builder addAllocatedRegionsBytes(ByteString value)

Set of regions in which the assets are allocated

repeated string allocated_regions = 1;

Parameter
Name Description
value ByteString

The bytes of the allocatedRegions to add.

Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

This builder for chaining.

addNodeAllocations(ReportSummary.SoleTenantNodeAllocation value)

public ReportSummary.SoleTenantFinding.Builder addNodeAllocations(ReportSummary.SoleTenantNodeAllocation value)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameter
Name Description
value ReportSummary.SoleTenantNodeAllocation
Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

addNodeAllocations(ReportSummary.SoleTenantNodeAllocation.Builder builderForValue)

public ReportSummary.SoleTenantFinding.Builder addNodeAllocations(ReportSummary.SoleTenantNodeAllocation.Builder builderForValue)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameter
Name Description
builderForValue ReportSummary.SoleTenantNodeAllocation.Builder
Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

addNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation value)

public ReportSummary.SoleTenantFinding.Builder addNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation value)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameters
Name Description
index int
value ReportSummary.SoleTenantNodeAllocation
Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

addNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation.Builder builderForValue)

public ReportSummary.SoleTenantFinding.Builder addNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation.Builder builderForValue)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameters
Name Description
index int
builderForValue ReportSummary.SoleTenantNodeAllocation.Builder
Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

addNodeAllocationsBuilder()

public ReportSummary.SoleTenantNodeAllocation.Builder addNodeAllocationsBuilder()

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Returns
Type Description
ReportSummary.SoleTenantNodeAllocation.Builder

addNodeAllocationsBuilder(int index)

public ReportSummary.SoleTenantNodeAllocation.Builder addNodeAllocationsBuilder(int index)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAllocatedAssetCount()

public ReportSummary.SoleTenantFinding.Builder clearAllocatedAssetCount()

Count of assets which are allocated

int64 allocated_asset_count = 2;

Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

This builder for chaining.

clearAllocatedRegions()

public ReportSummary.SoleTenantFinding.Builder clearAllocatedRegions()

Set of regions in which the assets are allocated

repeated string allocated_regions = 1;

Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNodeAllocations()

public ReportSummary.SoleTenantFinding.Builder clearNodeAllocations()

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllocatedAssetCount()

public long getAllocatedAssetCount()

Count of assets which are allocated

int64 allocated_asset_count = 2;

Returns
Type Description
long

The allocatedAssetCount.

getAllocatedRegions(int index)

public String getAllocatedRegions(int index)

Set of regions in which the assets are 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 are 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 are 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 are allocated

repeated string allocated_regions = 1;

Returns
Type Description
ProtocolStringList

A list containing the allocatedRegions.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getNodeAllocations(int index)

public ReportSummary.SoleTenantNodeAllocation getNodeAllocations(int index)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameter
Name Description
index int
Returns
Type Description
ReportSummary.SoleTenantNodeAllocation

getNodeAllocationsBuilder(int index)

public ReportSummary.SoleTenantNodeAllocation.Builder getNodeAllocationsBuilder(int index)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

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

getNodeAllocationsBuilderList()

public List<ReportSummary.SoleTenantNodeAllocation.Builder> getNodeAllocationsBuilderList()

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Returns
Type Description
List<Builder>

getNodeAllocationsCount()

public int getNodeAllocationsCount()

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Returns
Type Description
int

getNodeAllocationsList()

public List<ReportSummary.SoleTenantNodeAllocation> getNodeAllocationsList()

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Returns
Type Description
List<SoleTenantNodeAllocation>

getNodeAllocationsOrBuilder(int index)

public ReportSummary.SoleTenantNodeAllocationOrBuilder getNodeAllocationsOrBuilder(int index)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameter
Name Description
index int
Returns
Type Description
ReportSummary.SoleTenantNodeAllocationOrBuilder

getNodeAllocationsOrBuilderList()

public List<? extends ReportSummary.SoleTenantNodeAllocationOrBuilder> getNodeAllocationsOrBuilderList()

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReportSummary.SoleTenantFinding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNodeAllocations(int index)

public ReportSummary.SoleTenantFinding.Builder removeNodeAllocations(int index)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

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

setAllocatedAssetCount(long value)

public ReportSummary.SoleTenantFinding.Builder setAllocatedAssetCount(long value)

Count of assets which are allocated

int64 allocated_asset_count = 2;

Parameter
Name Description
value long

The allocatedAssetCount to set.

Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

This builder for chaining.

setAllocatedRegions(int index, String value)

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

Set of regions in which the assets are 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.SoleTenantFinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation value)

public ReportSummary.SoleTenantFinding.Builder setNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation value)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameters
Name Description
index int
value ReportSummary.SoleTenantNodeAllocation
Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

setNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation.Builder builderForValue)

public ReportSummary.SoleTenantFinding.Builder setNodeAllocations(int index, ReportSummary.SoleTenantNodeAllocation.Builder builderForValue)

Set of per-nodetype allocation records

repeated .google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocation node_allocations = 3;

Parameters
Name Description
index int
builderForValue ReportSummary.SoleTenantNodeAllocation.Builder
Returns
Type Description
ReportSummary.SoleTenantFinding.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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