Class ReportSummary.MachineSeriesAllocation.Builder (0.28.0)

public static final class ReportSummary.MachineSeriesAllocation.Builder extends GeneratedMessageV3.Builder<ReportSummary.MachineSeriesAllocation.Builder> implements ReportSummary.MachineSeriesAllocationOrBuilder

Represents a data point tracking the count of assets allocated for a specific Machine Series.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAllocatedAssetCount()

public ReportSummary.MachineSeriesAllocation.Builder clearAllocatedAssetCount()

Count of assets allocated to this machine series.

int64 allocated_asset_count = 2;

Returns
Type Description
ReportSummary.MachineSeriesAllocation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMachineSeries()

public ReportSummary.MachineSeriesAllocation.Builder clearMachineSeries()

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

Returns
Type Description
ReportSummary.MachineSeriesAllocation.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllocatedAssetCount()

public long getAllocatedAssetCount()

Count of assets allocated to this machine series.

int64 allocated_asset_count = 2;

Returns
Type Description
long

The allocatedAssetCount.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getMachineSeries()

public MachineSeries getMachineSeries()

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

Returns
Type Description
MachineSeries

The machineSeries.

getMachineSeriesBuilder()

public MachineSeries.Builder getMachineSeriesBuilder()

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

Returns
Type Description
MachineSeries.Builder

getMachineSeriesOrBuilder()

public MachineSeriesOrBuilder getMachineSeriesOrBuilder()

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

Returns
Type Description
MachineSeriesOrBuilder

hasMachineSeries()

public boolean hasMachineSeries()

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

Returns
Type Description
boolean

Whether the machineSeries field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ReportSummary.MachineSeriesAllocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineSeries(MachineSeries value)

public ReportSummary.MachineSeriesAllocation.Builder mergeMachineSeries(MachineSeries value)

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllocatedAssetCount(long value)

public ReportSummary.MachineSeriesAllocation.Builder setAllocatedAssetCount(long value)

Count of assets allocated to this machine series.

int64 allocated_asset_count = 2;

Parameter
Name Description
value long

The allocatedAssetCount to set.

Returns
Type Description
ReportSummary.MachineSeriesAllocation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineSeries(MachineSeries value)

public ReportSummary.MachineSeriesAllocation.Builder setMachineSeries(MachineSeries value)

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

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

setMachineSeries(MachineSeries.Builder builderForValue)

public ReportSummary.MachineSeriesAllocation.Builder setMachineSeries(MachineSeries.Builder builderForValue)

The Machine Series (e.g. "E2", "N2")

.google.cloud.migrationcenter.v1.MachineSeries machine_series = 1;

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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