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 Type
    Method
    Description
     
     
     
    The time the metric was observed in the metric source service.
    The value associated with the metric.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    The time the metric was observed in the metric source service.
    com.google.protobuf.Timestamp.Builder
    The time the metric was observed in the metric source service.
    com.google.protobuf.TimestampOrBuilder
    The time the metric was observed in the metric source service.
    The value associated with the metric.
    The value associated with the metric.
    The value associated with the metric.
    boolean
    The time the metric was observed in the metric source service.
    boolean
    The value associated with the metric.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    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.
    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.
    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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
    • clear

      public MetricData.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<MetricData.Builder>
    • getDefaultInstanceForType

      public MetricData getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public MetricData build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public MetricData buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public MetricData.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MetricData.Builder>
    • mergeFrom

      public MetricData.Builder mergeFrom(MetricData other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasValue in interface MetricDataOrBuilder
      Returns:
      Whether the value field is set.
    • getValue

      public TypedValue getValue()
       The value associated with the metric.
       
      .google.cloud.databasecenter.v1beta.TypedValue value = 1;
      Specified by:
      getValue in interface MetricDataOrBuilder
      Returns:
      The value.
    • setValue

      public MetricData.Builder setValue(TypedValue value)
       The value associated with the metric.
       
      .google.cloud.databasecenter.v1beta.TypedValue value = 1;
    • setValue

      public MetricData.Builder setValue(TypedValue.Builder builderForValue)
       The value associated with the metric.
       
      .google.cloud.databasecenter.v1beta.TypedValue value = 1;
    • mergeValue

      public MetricData.Builder mergeValue(TypedValue value)
       The value associated with the metric.
       
      .google.cloud.databasecenter.v1beta.TypedValue value = 1;
    • clearValue

      public MetricData.Builder clearValue()
       The value associated with the metric.
       
      .google.cloud.databasecenter.v1beta.TypedValue value = 1;
    • getValueBuilder

      public TypedValue.Builder getValueBuilder()
       The value associated with the metric.
       
      .google.cloud.databasecenter.v1beta.TypedValue value = 1;
    • getValueOrBuilder

      public TypedValueOrBuilder getValueOrBuilder()
       The value associated with the metric.
       
      .google.cloud.databasecenter.v1beta.TypedValue value = 1;
      Specified by:
      getValueOrBuilder in interface MetricDataOrBuilder
    • hasObservationTime

      public boolean hasObservationTime()
       The time the metric was observed in the metric source service.
       
      .google.protobuf.Timestamp observation_time = 2;
      Specified by:
      hasObservationTime in interface MetricDataOrBuilder
      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:
      getObservationTime in interface MetricDataOrBuilder
      Returns:
      The observationTime.
    • setObservationTime

      public MetricData.Builder setObservationTime(com.google.protobuf.Timestamp value)
       The time the metric was observed in the metric source service.
       
      .google.protobuf.Timestamp observation_time = 2;
    • setObservationTime

      public MetricData.Builder setObservationTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time the metric was observed in the metric source service.
       
      .google.protobuf.Timestamp observation_time = 2;
    • mergeObservationTime

      public MetricData.Builder mergeObservationTime(com.google.protobuf.Timestamp value)
       The time the metric was observed in the metric source service.
       
      .google.protobuf.Timestamp observation_time = 2;
    • clearObservationTime

      public MetricData.Builder 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:
      getObservationTimeOrBuilder in interface MetricDataOrBuilder