Class DailyResourceUsageAggregation.CPU.Builder (0.16.0)

public static final class DailyResourceUsageAggregation.CPU.Builder extends GeneratedMessageV3.Builder<DailyResourceUsageAggregation.CPU.Builder> implements DailyResourceUsageAggregation.CPUOrBuilder

Statistical aggregation of CPU usage.

Protobuf type google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.CPU

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DailyResourceUsageAggregation.CPU build()
Returns
TypeDescription
DailyResourceUsageAggregation.CPU

buildPartial()

public DailyResourceUsageAggregation.CPU buildPartial()
Returns
TypeDescription
DailyResourceUsageAggregation.CPU

clear()

public DailyResourceUsageAggregation.CPU.Builder clear()
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DailyResourceUsageAggregation.CPU.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DailyResourceUsageAggregation.CPU.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

clearUtilizationPercentage()

public DailyResourceUsageAggregation.CPU.Builder clearUtilizationPercentage()

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder

clone()

public DailyResourceUsageAggregation.CPU.Builder clone()
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

getDefaultInstanceForType()

public DailyResourceUsageAggregation.CPU getDefaultInstanceForType()
Returns
TypeDescription
DailyResourceUsageAggregation.CPU

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUtilizationPercentage()

public DailyResourceUsageAggregation.Stats getUtilizationPercentage()

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Returns
TypeDescription
DailyResourceUsageAggregation.Stats

The utilizationPercentage.

getUtilizationPercentageBuilder()

public DailyResourceUsageAggregation.Stats.Builder getUtilizationPercentageBuilder()

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

getUtilizationPercentageOrBuilder()

public DailyResourceUsageAggregation.StatsOrBuilder getUtilizationPercentageOrBuilder()

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Returns
TypeDescription
DailyResourceUsageAggregation.StatsOrBuilder

hasUtilizationPercentage()

public boolean hasUtilizationPercentage()

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Returns
TypeDescription
boolean

Whether the utilizationPercentage field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DailyResourceUsageAggregation.CPU other)

public DailyResourceUsageAggregation.CPU.Builder mergeFrom(DailyResourceUsageAggregation.CPU other)
Parameter
NameDescription
otherDailyResourceUsageAggregation.CPU
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DailyResourceUsageAggregation.CPU.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.CPU.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

mergeUtilizationPercentage(DailyResourceUsageAggregation.Stats value)

public DailyResourceUsageAggregation.CPU.Builder mergeUtilizationPercentage(DailyResourceUsageAggregation.Stats value)

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Parameter
NameDescription
valueDailyResourceUsageAggregation.Stats
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DailyResourceUsageAggregation.CPU.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.CPU.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder
Overrides

setUtilizationPercentage(DailyResourceUsageAggregation.Stats value)

public DailyResourceUsageAggregation.CPU.Builder setUtilizationPercentage(DailyResourceUsageAggregation.Stats value)

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Parameter
NameDescription
valueDailyResourceUsageAggregation.Stats
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder

setUtilizationPercentage(DailyResourceUsageAggregation.Stats.Builder builderForValue)

public DailyResourceUsageAggregation.CPU.Builder setUtilizationPercentage(DailyResourceUsageAggregation.Stats.Builder builderForValue)

CPU utilization percentage.

.google.cloud.migrationcenter.v1.DailyResourceUsageAggregation.Stats utilization_percentage = 1;

Parameter
NameDescription
builderForValueDailyResourceUsageAggregation.Stats.Builder
Returns
TypeDescription
DailyResourceUsageAggregation.CPU.Builder