Class ReportSummary.MachineSeriesAllocation.Builder (0.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAllocatedAssetCount()

public ReportSummary.MachineSeriesAllocation.Builder clearAllocatedAssetCount()

Count of assets allocated to this machine series.

int64 allocated_asset_count = 2;

Returns
TypeDescription
ReportSummary.MachineSeriesAllocation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllocatedAssetCount()

public long getAllocatedAssetCount()

Count of assets allocated to this machine series.

int64 allocated_asset_count = 2;

Returns
TypeDescription
long

The allocatedAssetCount.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMachineSeries()

public MachineSeries getMachineSeries()

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

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

Returns
TypeDescription
MachineSeries

The machineSeries.

getMachineSeriesBuilder()

public MachineSeries.Builder getMachineSeriesBuilder()

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

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

Returns
TypeDescription
MachineSeries.Builder

getMachineSeriesOrBuilder()

public MachineSeriesOrBuilder getMachineSeriesOrBuilder()

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

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

Returns
TypeDescription
MachineSeriesOrBuilder

hasMachineSeries()

public boolean hasMachineSeries()

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

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

Returns
TypeDescription
boolean

Whether the machineSeries field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ReportSummary.MachineSeriesAllocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ReportSummary.MachineSeriesAllocation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMachineSeries
Returns
TypeDescription
ReportSummary.MachineSeriesAllocation.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The allocatedAssetCount to set.

Returns
TypeDescription
ReportSummary.MachineSeriesAllocation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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