Class DailyResourceUsageAggregation.Stats.Builder (0.26.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DailyResourceUsageAggregation.Stats build()
Returns
Type Description
DailyResourceUsageAggregation.Stats

buildPartial()

public DailyResourceUsageAggregation.Stats buildPartial()
Returns
Type Description
DailyResourceUsageAggregation.Stats

clear()

public DailyResourceUsageAggregation.Stats.Builder clear()
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides

clearAverage()

public DailyResourceUsageAggregation.Stats.Builder clearAverage()

Average usage value.

float average = 1;

Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DailyResourceUsageAggregation.Stats.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides

clearMedian()

public DailyResourceUsageAggregation.Stats.Builder clearMedian()

Median usage value.

float median = 2;

Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clearNinteyFifthPercentile()

public DailyResourceUsageAggregation.Stats.Builder clearNinteyFifthPercentile()

95th percentile usage value.

float nintey_fifth_percentile = 3;

Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DailyResourceUsageAggregation.Stats.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides

clearPeak()

public DailyResourceUsageAggregation.Stats.Builder clearPeak()

Peak usage value.

float peak = 4;

Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

clone()

public DailyResourceUsageAggregation.Stats.Builder clone()
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides

getAverage()

public float getAverage()

Average usage value.

float average = 1;

Returns
Type Description
float

The average.

getDefaultInstanceForType()

public DailyResourceUsageAggregation.Stats getDefaultInstanceForType()
Returns
Type Description
DailyResourceUsageAggregation.Stats

getDescriptorForType()

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

getMedian()

public float getMedian()

Median usage value.

float median = 2;

Returns
Type Description
float

The median.

getNinteyFifthPercentile()

public float getNinteyFifthPercentile()

95th percentile usage value.

float nintey_fifth_percentile = 3;

Returns
Type Description
float

The ninteyFifthPercentile.

getPeak()

public float getPeak()

Peak usage value.

float peak = 4;

Returns
Type Description
float

The peak.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DailyResourceUsageAggregation.Stats other)

public DailyResourceUsageAggregation.Stats.Builder mergeFrom(DailyResourceUsageAggregation.Stats other)
Parameter
Name Description
other DailyResourceUsageAggregation.Stats
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DailyResourceUsageAggregation.Stats.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.Stats.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides

setAverage(float value)

public DailyResourceUsageAggregation.Stats.Builder setAverage(float value)

Average usage value.

float average = 1;

Parameter
Name Description
value float

The average to set.

Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMedian(float value)

public DailyResourceUsageAggregation.Stats.Builder setMedian(float value)

Median usage value.

float median = 2;

Parameter
Name Description
value float

The median to set.

Returns
Type Description
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
Name Description
value float

The ninteyFifthPercentile to set.

Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder

This builder for chaining.

setPeak(float value)

public DailyResourceUsageAggregation.Stats.Builder setPeak(float value)

Peak usage value.

float peak = 4;

Parameter
Name Description
value float

The peak to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DailyResourceUsageAggregation.Stats.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DailyResourceUsageAggregation.Stats.Builder
Overrides