Package com.google.api.servicecontrol.v1
Class MetricValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class MetricValue extends com.google.protobuf.GeneratedMessageV3 implements MetricValueOrBuilder
Represents a single metric value.
Protobuf typegoogle.api.servicecontrol.v1.MetricValue- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricValue.BuilderRepresents a single metric value.static classMetricValue.ValueCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOL_VALUE_FIELD_NUMBERstatic intDISTRIBUTION_VALUE_FIELD_NUMBERstatic intDOUBLE_VALUE_FIELD_NUMBERstatic intEND_TIME_FIELD_NUMBERstatic intINT64_VALUE_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intSTART_TIME_FIELD_NUMBERstatic intSTRING_VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)The labels describing the metric value.booleanequals(Object obj)booleangetBoolValue()A boolean value.static MetricValuegetDefaultInstance()MetricValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DistributiongetDistributionValue()A distribution value.DistributionOrBuildergetDistributionValueOrBuilder()A distribution value.doublegetDoubleValue()A double precision floating point value.com.google.protobuf.TimestampgetEndTime()The end of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()The end of the time period over which this metric value's measurement applies.longgetInt64Value()A signed 64-bit integer value.Map<String,String>getLabels()Deprecated.intgetLabelsCount()The labels describing the metric value.Map<String,String>getLabelsMap()The labels describing the metric value.StringgetLabelsOrDefault(String key, String defaultValue)The labels describing the metric value.StringgetLabelsOrThrow(String key)The labels describing the metric value.com.google.protobuf.Parser<MetricValue>getParserForType()intgetSerializedSize()com.google.protobuf.TimestampgetStartTime()The start of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()The start of the time period over which this metric value's measurement applies.StringgetStringValue()A text string value.com.google.protobuf.ByteStringgetStringValueBytes()A text string value.MetricValue.ValueCasegetValueCase()booleanhasBoolValue()A boolean value.booleanhasDistributionValue()A distribution value.booleanhasDoubleValue()A double precision floating point value.booleanhasEndTime()The end of the time period over which this metric value's measurement applies.inthashCode()booleanhasInt64Value()A signed 64-bit integer value.booleanhasStartTime()The start of the time period over which this metric value's measurement applies.booleanhasStringValue()A text string value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static MetricValue.BuildernewBuilder()static MetricValue.BuildernewBuilder(MetricValue prototype)MetricValue.BuildernewBuilderForType()protected MetricValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MetricValueparseDelimitedFrom(InputStream input)static MetricValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetricValueparseFrom(byte[] data)static MetricValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetricValueparseFrom(com.google.protobuf.ByteString data)static MetricValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetricValueparseFrom(com.google.protobuf.CodedInputStream input)static MetricValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetricValueparseFrom(InputStream input)static MetricValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MetricValueparseFrom(ByteBuffer data)static MetricValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<MetricValue>parser()MetricValue.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT64_VALUE_FIELD_NUMBER
public static final int INT64_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOUBLE_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISTRIBUTION_VALUE_FIELD_NUMBER
public static final int DISTRIBUTION_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
public MetricValue.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceMetricValueOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:MetricValueOrBuilderThe 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:
getLabelsCountin interfaceMetricValueOrBuilder
-
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:
containsLabelsin interfaceMetricValueOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceMetricValueOrBuilder
-
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:
getLabelsMapin interfaceMetricValueOrBuilder
-
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:
getLabelsOrDefaultin interfaceMetricValueOrBuilder
-
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:
getLabelsOrThrowin interfaceMetricValueOrBuilder
-
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:
hasStartTimein interfaceMetricValueOrBuilder- 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:
getStartTimein interfaceMetricValueOrBuilder- 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:
getStartTimeOrBuilderin interfaceMetricValueOrBuilder
-
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:
hasEndTimein interfaceMetricValueOrBuilder- 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:
getEndTimein interfaceMetricValueOrBuilder- 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:
getEndTimeOrBuilderin interfaceMetricValueOrBuilder
-
hasBoolValue
public boolean hasBoolValue()
A boolean value.
bool bool_value = 4;- Specified by:
hasBoolValuein interfaceMetricValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()
A boolean value.
bool bool_value = 4;- Specified by:
getBoolValuein interfaceMetricValueOrBuilder- Returns:
- The boolValue.
-
hasInt64Value
public boolean hasInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;- Specified by:
hasInt64Valuein interfaceMetricValueOrBuilder- Returns:
- Whether the int64Value field is set.
-
getInt64Value
public long getInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;- Specified by:
getInt64Valuein interfaceMetricValueOrBuilder- Returns:
- The int64Value.
-
hasDoubleValue
public boolean hasDoubleValue()
A double precision floating point value.
double double_value = 6;- Specified by:
hasDoubleValuein interfaceMetricValueOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()
A double precision floating point value.
double double_value = 6;- Specified by:
getDoubleValuein interfaceMetricValueOrBuilder- Returns:
- The doubleValue.
-
hasStringValue
public boolean hasStringValue()
A text string value.
string string_value = 7;- Specified by:
hasStringValuein interfaceMetricValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
public String getStringValue()
A text string value.
string string_value = 7;- Specified by:
getStringValuein interfaceMetricValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
A text string value.
string string_value = 7;- Specified by:
getStringValueBytesin interfaceMetricValueOrBuilder- Returns:
- The bytes for stringValue.
-
hasDistributionValue
public boolean hasDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Specified by:
hasDistributionValuein interfaceMetricValueOrBuilder- Returns:
- Whether the distributionValue field is set.
-
getDistributionValue
public Distribution getDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Specified by:
getDistributionValuein interfaceMetricValueOrBuilder- Returns:
- The distributionValue.
-
getDistributionValueOrBuilder
public DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Specified by:
getDistributionValueOrBuilderin interfaceMetricValueOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static MetricValue.Builder newBuilder()
-
newBuilder
public static MetricValue.Builder newBuilder(MetricValue prototype)
-
toBuilder
public MetricValue.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MetricValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static MetricValue getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<MetricValue> parser()
-
getParserForType
public com.google.protobuf.Parser<MetricValue> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public MetricValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-