Class MetricValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.api.servicecontrol.v1.MetricValue
All Implemented Interfaces:
MetricValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class MetricValue extends com.google.protobuf.GeneratedMessage implements MetricValueOrBuilder
 Represents a single metric value.
 
Protobuf type google.api.servicecontrol.v1.MetricValue
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents a single metric value.
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    The labels describing the metric value.
    boolean
     
    boolean
    A boolean value.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    A distribution value.
    A distribution value.
    double
    A double precision floating point value.
    com.google.protobuf.Timestamp
    The end of the time period over which this metric value's measurement applies.
    com.google.protobuf.TimestampOrBuilder
    The end of the time period over which this metric value's measurement applies.
    long
    A signed 64-bit integer value.
    Deprecated.
    int
    The labels describing the metric value.
    The labels describing the metric value.
    getLabelsOrDefault(String key, String defaultValue)
    The labels describing the metric value.
    The labels describing the metric value.
    com.google.protobuf.Parser<MetricValue>
     
    int
     
    com.google.protobuf.Timestamp
    The start of the time period over which this metric value's measurement applies.
    com.google.protobuf.TimestampOrBuilder
    The start of the time period over which this metric value's measurement applies.
    A text string value.
    com.google.protobuf.ByteString
    A text string value.
     
    boolean
    A boolean value.
    boolean
    A distribution value.
    boolean
    A double precision floating point value.
    boolean
    The end of the time period over which this metric value's measurement applies.
    int
     
    boolean
    A signed 64-bit integer value.
    boolean
    The start of the time period over which this metric value's measurement applies.
    boolean
    A text string value.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    protected com.google.protobuf.MapFieldReflectionAccessor
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<MetricValue>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • LABELS_FIELD_NUMBER

      public static final int LABELS_FIELD_NUMBER
      See Also:
    • START_TIME_FIELD_NUMBER

      public static final int START_TIME_FIELD_NUMBER
      See Also:
    • END_TIME_FIELD_NUMBER

      public static final int END_TIME_FIELD_NUMBER
      See Also:
    • BOOL_VALUE_FIELD_NUMBER

      public static final int BOOL_VALUE_FIELD_NUMBER
      See Also:
    • INT64_VALUE_FIELD_NUMBER

      public static final int INT64_VALUE_FIELD_NUMBER
      See Also:
    • DOUBLE_VALUE_FIELD_NUMBER

      public static final int DOUBLE_VALUE_FIELD_NUMBER
      See Also:
    • STRING_VALUE_FIELD_NUMBER

      public static final int STRING_VALUE_FIELD_NUMBER
      See Also:
    • DISTRIBUTION_VALUE_FIELD_NUMBER

      public static final int DISTRIBUTION_VALUE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getValueCase

      public MetricValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface MetricValueOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: MetricValueOrBuilder
       The labels describing the metric value.
       See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
       the overriding relationship.
       Note that this map must not contain monitored resource labels.
       
      map<string, string> labels = 1;
      Specified by:
      getLabelsCount in interface MetricValueOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       The labels describing the metric value.
       See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
       the overriding relationship.
       Note that this map must not contain monitored resource labels.
       
      map<string, string> labels = 1;
      Specified by:
      containsLabels in interface MetricValueOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface MetricValueOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       The labels describing the metric value.
       See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
       the overriding relationship.
       Note that this map must not contain monitored resource labels.
       
      map<string, string> labels = 1;
      Specified by:
      getLabelsMap in interface MetricValueOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       The labels describing the metric value.
       See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
       the overriding relationship.
       Note that this map must not contain monitored resource labels.
       
      map<string, string> labels = 1;
      Specified by:
      getLabelsOrDefault in interface MetricValueOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       The labels describing the metric value.
       See comments on [google.api.servicecontrol.v1.Operation.labels][google.api.servicecontrol.v1.Operation.labels] for
       the overriding relationship.
       Note that this map must not contain monitored resource labels.
       
      map<string, string> labels = 1;
      Specified by:
      getLabelsOrThrow in interface MetricValueOrBuilder
    • hasStartTime

      public boolean hasStartTime()
       The start of the time period over which this metric value's measurement
       applies. The time period has different semantics for different metric
       types (cumulative, delta, and gauge). See the metric definition
       documentation in the service configuration for details. If not specified,
       [google.api.servicecontrol.v1.Operation.start_time][google.api.servicecontrol.v1.Operation.start_time] will be used.
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      hasStartTime in interface MetricValueOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       The start of the time period over which this metric value's measurement
       applies. The time period has different semantics for different metric
       types (cumulative, delta, and gauge). See the metric definition
       documentation in the service configuration for details. If not specified,
       [google.api.servicecontrol.v1.Operation.start_time][google.api.servicecontrol.v1.Operation.start_time] will be used.
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      getStartTime in interface MetricValueOrBuilder
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       The start of the time period over which this metric value's measurement
       applies. The time period has different semantics for different metric
       types (cumulative, delta, and gauge). See the metric definition
       documentation in the service configuration for details. If not specified,
       [google.api.servicecontrol.v1.Operation.start_time][google.api.servicecontrol.v1.Operation.start_time] will be used.
       
      .google.protobuf.Timestamp start_time = 2;
      Specified by:
      getStartTimeOrBuilder in interface MetricValueOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The end of the time period over which this metric value's measurement
       applies.  If not specified,
       [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      hasEndTime in interface MetricValueOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       The end of the time period over which this metric value's measurement
       applies.  If not specified,
       [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTime in interface MetricValueOrBuilder
      Returns:
      The endTime.
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       The end of the time period over which this metric value's measurement
       applies.  If not specified,
       [google.api.servicecontrol.v1.Operation.end_time][google.api.servicecontrol.v1.Operation.end_time] will be used.
       
      .google.protobuf.Timestamp end_time = 3;
      Specified by:
      getEndTimeOrBuilder in interface MetricValueOrBuilder
    • hasBoolValue

      public boolean hasBoolValue()
       A boolean value.
       
      bool bool_value = 4;
      Specified by:
      hasBoolValue in interface MetricValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
       A boolean value.
       
      bool bool_value = 4;
      Specified by:
      getBoolValue in interface MetricValueOrBuilder
      Returns:
      The boolValue.
    • hasInt64Value

      public boolean hasInt64Value()
       A signed 64-bit integer value.
       
      int64 int64_value = 5;
      Specified by:
      hasInt64Value in interface MetricValueOrBuilder
      Returns:
      Whether the int64Value field is set.
    • getInt64Value

      public long getInt64Value()
       A signed 64-bit integer value.
       
      int64 int64_value = 5;
      Specified by:
      getInt64Value in interface MetricValueOrBuilder
      Returns:
      The int64Value.
    • hasDoubleValue

      public boolean hasDoubleValue()
       A double precision floating point value.
       
      double double_value = 6;
      Specified by:
      hasDoubleValue in interface MetricValueOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
       A double precision floating point value.
       
      double double_value = 6;
      Specified by:
      getDoubleValue in interface MetricValueOrBuilder
      Returns:
      The doubleValue.
    • hasStringValue

      public boolean hasStringValue()
       A text string value.
       
      string string_value = 7;
      Specified by:
      hasStringValue in interface MetricValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
       A text string value.
       
      string string_value = 7;
      Specified by:
      getStringValue in interface MetricValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
       A text string value.
       
      string string_value = 7;
      Specified by:
      getStringValueBytes in interface MetricValueOrBuilder
      Returns:
      The bytes for stringValue.
    • hasDistributionValue

      public boolean hasDistributionValue()
       A distribution value.
       
      .google.api.servicecontrol.v1.Distribution distribution_value = 8;
      Specified by:
      hasDistributionValue in interface MetricValueOrBuilder
      Returns:
      Whether the distributionValue field is set.
    • getDistributionValue

      public Distribution getDistributionValue()
       A distribution value.
       
      .google.api.servicecontrol.v1.Distribution distribution_value = 8;
      Specified by:
      getDistributionValue in interface MetricValueOrBuilder
      Returns:
      The distributionValue.
    • getDistributionValueOrBuilder

      public DistributionOrBuilder getDistributionValueOrBuilder()
       A distribution value.
       
      .google.api.servicecontrol.v1.Distribution distribution_value = 8;
      Specified by:
      getDistributionValueOrBuilder in interface MetricValueOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static MetricValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MetricValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MetricValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public MetricValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MetricValue.Builder newBuilder()
    • newBuilder

      public static MetricValue.Builder newBuilder(MetricValue prototype)
    • toBuilder

      public MetricValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MetricValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static MetricValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MetricValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<MetricValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public MetricValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder