Class DailyResourceUsageAggregation.Stats.Builder (0.21.0)

public static final class DailyResourceUsageAggregation.Stats.Builder extends GeneratedMessageV3.Builder<DailyResourceUsageAggregation.Stats.Builder> implements DailyResourceUsageAggregation.StatsOrBuilder

Statistical aggregation of samples for a single resource usage.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAverage()

public DailyResourceUsageAggregation.Stats.Builder clearAverage()

Average usage value.

float average = 1;

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMedian()

public DailyResourceUsageAggregation.Stats.Builder clearMedian()

Median usage value.

float median = 2;

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clearNinteyFifthPercentile()

public DailyResourceUsageAggregation.Stats.Builder clearNinteyFifthPercentile()

95th percentile usage value.

float nintey_fifth_percentile = 3;

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPeak()

public DailyResourceUsageAggregation.Stats.Builder clearPeak()

Peak usage value.

float peak = 4;

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clone()

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

getAverage()

public float getAverage()

Average usage value.

float average = 1;

Returns
TypeDescription
float

The average.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMedian()

public float getMedian()

Median usage value.

float median = 2;

Returns
TypeDescription
float

The median.

getNinteyFifthPercentile()

public float getNinteyFifthPercentile()

95th percentile usage value.

float nintey_fifth_percentile = 3;

Returns
TypeDescription
float

The ninteyFifthPercentile.

getPeak()

public float getPeak()

Peak usage value.

float peak = 4;

Returns
TypeDescription
float

The peak.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DailyResourceUsageAggregation.Stats other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAverage(float value)

public DailyResourceUsageAggregation.Stats.Builder setAverage(float value)

Average usage value.

float average = 1;

Parameter
NameDescription
valuefloat

The average to set.

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMedian(float value)

public DailyResourceUsageAggregation.Stats.Builder setMedian(float value)

Median usage value.

float median = 2;

Parameter
NameDescription
valuefloat

The median to set.

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

setNinteyFifthPercentile(float value)

public DailyResourceUsageAggregation.Stats.Builder setNinteyFifthPercentile(float value)

95th percentile usage value.

float nintey_fifth_percentile = 3;

Parameter
NameDescription
valuefloat

The ninteyFifthPercentile to set.

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

setPeak(float value)

public DailyResourceUsageAggregation.Stats.Builder setPeak(float value)

Peak usage value.

float peak = 4;

Parameter
NameDescription
valuefloat

The peak to set.

Returns
TypeDescription
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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