Class MetricData.Builder (0.6.0)

public static final class MetricData.Builder extends GeneratedMessage.Builder<MetricData.Builder> implements MetricDataOrBuilder

MetricData represents the metric data for a database resource.

Protobuf type google.cloud.databasecenter.v1beta.MetricData

Implements

MetricDataOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public MetricData build()
Returns
Type Description
MetricData

buildPartial()

public MetricData buildPartial()
Returns
Type Description
MetricData

clear()

public MetricData.Builder clear()
Returns
Type Description
MetricData.Builder
Overrides

clearObservationTime()

public MetricData.Builder clearObservationTime()

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Returns
Type Description
MetricData.Builder

clearValue()

public MetricData.Builder clearValue()

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Returns
Type Description
MetricData.Builder

getDefaultInstanceForType()

public MetricData getDefaultInstanceForType()
Returns
Type Description
MetricData

getDescriptorForType()

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

getObservationTime()

public Timestamp getObservationTime()

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Returns
Type Description
Timestamp

The observationTime.

getObservationTimeBuilder()

public Timestamp.Builder getObservationTimeBuilder()

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Returns
Type Description
Builder

getObservationTimeOrBuilder()

public TimestampOrBuilder getObservationTimeOrBuilder()

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Returns
Type Description
TimestampOrBuilder

getValue()

public TypedValue getValue()

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Returns
Type Description
TypedValue

The value.

getValueBuilder()

public TypedValue.Builder getValueBuilder()

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Returns
Type Description
TypedValue.Builder

getValueOrBuilder()

public TypedValueOrBuilder getValueOrBuilder()

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Returns
Type Description
TypedValueOrBuilder

hasObservationTime()

public boolean hasObservationTime()

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Returns
Type Description
boolean

Whether the observationTime field is set.

hasValue()

public boolean hasValue()

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Returns
Type Description
boolean

Whether the value field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MetricData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeObservationTime(Timestamp value)

public MetricData.Builder mergeObservationTime(Timestamp value)

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
MetricData.Builder

mergeValue(TypedValue value)

public MetricData.Builder mergeValue(TypedValue value)

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Parameter
Name Description
value TypedValue
Returns
Type Description
MetricData.Builder

setObservationTime(Timestamp value)

public MetricData.Builder setObservationTime(Timestamp value)

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Parameter
Name Description
value Timestamp
Returns
Type Description
MetricData.Builder

setObservationTime(Timestamp.Builder builderForValue)

public MetricData.Builder setObservationTime(Timestamp.Builder builderForValue)

The time the metric was observed in the metric source service.

.google.protobuf.Timestamp observation_time = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
MetricData.Builder

setValue(TypedValue value)

public MetricData.Builder setValue(TypedValue value)

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Parameter
Name Description
value TypedValue
Returns
Type Description
MetricData.Builder

setValue(TypedValue.Builder builderForValue)

public MetricData.Builder setValue(TypedValue.Builder builderForValue)

The value associated with the metric.

.google.cloud.databasecenter.v1beta.TypedValue value = 1;

Parameter
Name Description
builderForValue TypedValue.Builder
Returns
Type Description
MetricData.Builder