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 class
MetricValue.Builder
Represents a single metric value.static class
MetricValue.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 int
BOOL_VALUE_FIELD_NUMBER
static int
DISTRIBUTION_VALUE_FIELD_NUMBER
static int
DOUBLE_VALUE_FIELD_NUMBER
static int
END_TIME_FIELD_NUMBER
static int
INT64_VALUE_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
STRING_VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
The labels describing the metric value.boolean
equals(Object obj)
boolean
getBoolValue()
A boolean value.static MetricValue
getDefaultInstance()
MetricValue
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Distribution
getDistributionValue()
A distribution value.DistributionOrBuilder
getDistributionValueOrBuilder()
A distribution value.double
getDoubleValue()
A double precision floating point value.com.google.protobuf.Timestamp
getEndTime()
The end of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
The end of the time period over which this metric value's measurement applies.long
getInt64Value()
A signed 64-bit integer value.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
The labels describing the metric value.Map<String,String>
getLabelsMap()
The labels describing the metric value.String
getLabelsOrDefault(String key, String defaultValue)
The labels describing the metric value.String
getLabelsOrThrow(String key)
The labels describing the metric value.com.google.protobuf.Parser<MetricValue>
getParserForType()
int
getSerializedSize()
com.google.protobuf.Timestamp
getStartTime()
The start of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
The start of the time period over which this metric value's measurement applies.String
getStringValue()
A text string value.com.google.protobuf.ByteString
getStringValueBytes()
A text string value.MetricValue.ValueCase
getValueCase()
boolean
hasBoolValue()
A boolean value.boolean
hasDistributionValue()
A distribution value.boolean
hasDoubleValue()
A double precision floating point value.boolean
hasEndTime()
The end of the time period over which this metric value's measurement applies.int
hashCode()
boolean
hasInt64Value()
A signed 64-bit integer value.boolean
hasStartTime()
The start of the time period over which this metric value's measurement applies.boolean
hasStringValue()
A text string value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static MetricValue.Builder
newBuilder()
static MetricValue.Builder
newBuilder(MetricValue prototype)
MetricValue.Builder
newBuilderForType()
protected MetricValue.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static MetricValue
parseDelimitedFrom(InputStream input)
static MetricValue
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetricValue
parseFrom(byte[] data)
static MetricValue
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetricValue
parseFrom(com.google.protobuf.ByteString data)
static MetricValue
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetricValue
parseFrom(com.google.protobuf.CodedInputStream input)
static MetricValue
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetricValue
parseFrom(InputStream input)
static MetricValue
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static MetricValue
parseFrom(ByteBuffer data)
static MetricValue
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<MetricValue>
parser()
MetricValue.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
public MetricValue.ValueCase getValueCase()
- Specified by:
getValueCase
in interfaceMetricValueOrBuilder
-
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 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:
containsLabels
in interfaceMetricValueOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
hasStartTime
in 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:
getStartTime
in 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:
getStartTimeOrBuilder
in 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:
hasEndTime
in 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:
getEndTime
in 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:
getEndTimeOrBuilder
in interfaceMetricValueOrBuilder
-
hasBoolValue
public boolean hasBoolValue()
A boolean value.
bool bool_value = 4;
- Specified by:
hasBoolValue
in interfaceMetricValueOrBuilder
- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()
A boolean value.
bool bool_value = 4;
- Specified by:
getBoolValue
in interfaceMetricValueOrBuilder
- Returns:
- The boolValue.
-
hasInt64Value
public boolean hasInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;
- Specified by:
hasInt64Value
in interfaceMetricValueOrBuilder
- 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 interfaceMetricValueOrBuilder
- Returns:
- The int64Value.
-
hasDoubleValue
public boolean hasDoubleValue()
A double precision floating point value.
double double_value = 6;
- Specified by:
hasDoubleValue
in interfaceMetricValueOrBuilder
- 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 interfaceMetricValueOrBuilder
- Returns:
- The doubleValue.
-
hasStringValue
public boolean hasStringValue()
A text string value.
string string_value = 7;
- Specified by:
hasStringValue
in interfaceMetricValueOrBuilder
- Returns:
- Whether the stringValue field is set.
-
getStringValue
public String getStringValue()
A text string value.
string string_value = 7;
- Specified by:
getStringValue
in interfaceMetricValueOrBuilder
- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
A text string value.
string string_value = 7;
- Specified by:
getStringValueBytes
in interfaceMetricValueOrBuilder
- Returns:
- The bytes for stringValue.
-
hasDistributionValue
public boolean hasDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
- Specified by:
hasDistributionValue
in 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:
getDistributionValue
in interfaceMetricValueOrBuilder
- Returns:
- The distributionValue.
-
getDistributionValueOrBuilder
public DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;
- Specified by:
getDistributionValueOrBuilder
in interfaceMetricValueOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MetricValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public MetricValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-