Class MetricData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
com.google.cloud.databasecenter.v1beta.MetricData.Builder
- All Implemented Interfaces:
MetricDataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MetricData
public static final class MetricData.Builder
extends com.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
implements MetricDataOrBuilder
MetricData represents the metric data for a database resource.Protobuf type
google.cloud.databasecenter.v1beta.MetricData-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The time the metric was observed in the metric source service.The value associated with the metric.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time the metric was observed in the metric source service.com.google.protobuf.Timestamp.BuilderThe time the metric was observed in the metric source service.com.google.protobuf.TimestampOrBuilderThe time the metric was observed in the metric source service.getValue()The value associated with the metric.The value associated with the metric.The value associated with the metric.booleanThe time the metric was observed in the metric source service.booleanhasValue()The value associated with the metric.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(MetricData other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeObservationTime(com.google.protobuf.Timestamp value) The time the metric was observed in the metric source service.mergeValue(TypedValue value) The value associated with the metric.setObservationTime(com.google.protobuf.Timestamp value) The time the metric was observed in the metric source service.setObservationTime(com.google.protobuf.Timestamp.Builder builderForValue) The time the metric was observed in the metric source service.setValue(TypedValue value) The value associated with the metric.setValue(TypedValue.Builder builderForValue) The value associated with the metric.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
-
mergeFrom
public MetricData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MetricData.Builder>- Throws:
IOException
-
hasValue
public boolean hasValue()The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1;- Specified by:
hasValuein interfaceMetricDataOrBuilder- Returns:
- Whether the value field is set.
-
getValue
The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1;- Specified by:
getValuein interfaceMetricDataOrBuilder- Returns:
- The value.
-
setValue
The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1; -
setValue
The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1; -
mergeValue
The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1; -
clearValue
The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1; -
getValueBuilder
The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1; -
getValueOrBuilder
The value associated with the metric.
.google.cloud.databasecenter.v1beta.TypedValue value = 1;- Specified by:
getValueOrBuilderin interfaceMetricDataOrBuilder
-
hasObservationTime
public boolean hasObservationTime()The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2;- Specified by:
hasObservationTimein interfaceMetricDataOrBuilder- Returns:
- Whether the observationTime field is set.
-
getObservationTime
public com.google.protobuf.Timestamp getObservationTime()The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2;- Specified by:
getObservationTimein interfaceMetricDataOrBuilder- Returns:
- The observationTime.
-
setObservationTime
The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2; -
setObservationTime
The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2; -
mergeObservationTime
The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2; -
clearObservationTime
The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2; -
getObservationTimeBuilder
public com.google.protobuf.Timestamp.Builder getObservationTimeBuilder()The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2; -
getObservationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getObservationTimeOrBuilder()The time the metric was observed in the metric source service.
.google.protobuf.Timestamp observation_time = 2;- Specified by:
getObservationTimeOrBuilderin interfaceMetricDataOrBuilder
-