Class ReportSummary.SoleTenantFinding.Builder (0.13.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
TypeDescription
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
NameDescription
valuesIterable<String>

The allocatedRegions to add.

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

The allocatedRegions to add.

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

The bytes of the allocatedRegions to add.

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAllocatedAssetCount()

public ReportSummary.SoleTenantFinding.Builder clearAllocatedAssetCount()

Count of assets which are allocated

int64 allocated_asset_count = 2;

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllocatedAssetCount()

public long getAllocatedAssetCount()

Count of assets which are allocated

int64 allocated_asset_count = 2;

Returns
TypeDescription
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
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 are 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 are allocated

repeated string allocated_regions = 1;

Returns
TypeDescription
int

The count of allocatedRegions.

getAllocatedRegionsList()

public ProtocolStringList getAllocatedRegionsList()

Set of regions in which the assets are allocated

repeated string allocated_regions = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the allocatedRegions.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getNodeAllocationsCount()

public int getNodeAllocationsCount()

Set of per-nodetype allocation records

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

Returns
TypeDescription
int

getNodeAllocationsList()

public List<ReportSummary.SoleTenantNodeAllocation> getNodeAllocationsList()

Set of per-nodetype allocation records

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.migrationcenter.v1.ReportSummary.SoleTenantNodeAllocationOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReportSummary.SoleTenantFinding other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The allocatedAssetCount to set.

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

The index to set the value at.

valueString

The allocatedRegions to set.

Returns
TypeDescription
ReportSummary.SoleTenantFinding.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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