public final class MetricValue extends com.google.protobuf.GeneratedMessageV3 implements MetricValueOrBuilder
Represents a single metric value.Protobuf type
google.api.servicecontrol.v1.MetricValue| Modifier and Type | Class and Description |
|---|---|
static class |
MetricValue.Builder
Represents a single metric value.
|
static class |
MetricValue.ValueCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(java.lang.String key)
The labels describing the metric value.
|
boolean |
equals(java.lang.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.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The labels describing the metric value.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
The labels describing the metric value.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The labels describing the metric value.
|
java.lang.String |
getLabelsOrThrow(java.lang.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.
|
java.lang.String |
getStringValue()
A text string value.
|
com.google.protobuf.ByteString |
getStringValueBytes()
A text string value.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
MetricValue.ValueCase |
getValueCase() |
boolean |
hasEndTime()
The end of the time period over which this metric value's measurement
applies.
|
int |
hashCode() |
boolean |
hasStartTime()
The start of the time period over which this metric value's measurement
applies.
|
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) |
static MetricValue |
parseDelimitedFrom(java.io.InputStream input) |
static MetricValue |
parseDelimitedFrom(java.io.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(java.io.InputStream input) |
static MetricValue |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<MetricValue> |
parser() |
MetricValue.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int LABELS_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
public static final int INT64_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
public static final int DISTRIBUTION_VALUE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public MetricValue.ValueCase getValueCase()
getValueCase in interface MetricValueOrBuilderpublic int getLabelsCount()
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.
map<string, string> labels = 1;getLabelsCount in interface MetricValueOrBuilderpublic boolean containsLabels(java.lang.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.
map<string, string> labels = 1;containsLabels in interface MetricValueOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap() instead.getLabels in interface MetricValueOrBuilderpublic java.util.Map<java.lang.String,java.lang.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.
map<string, string> labels = 1;getLabelsMap in interface MetricValueOrBuilderpublic java.lang.String getLabelsOrDefault(java.lang.String key,
java.lang.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.
map<string, string> labels = 1;getLabelsOrDefault in interface MetricValueOrBuilderpublic java.lang.String getLabelsOrThrow(java.lang.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.
map<string, string> labels = 1;getLabelsOrThrow in interface MetricValueOrBuilderpublic 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.
.google.protobuf.Timestamp start_time = 2;hasStartTime in interface MetricValueOrBuilderpublic 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.
.google.protobuf.Timestamp start_time = 2;getStartTime in interface MetricValueOrBuilderpublic 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.
.google.protobuf.Timestamp start_time = 2;getStartTimeOrBuilder in interface MetricValueOrBuilderpublic boolean hasEndTime()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;hasEndTime in interface MetricValueOrBuilderpublic com.google.protobuf.Timestamp getEndTime()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;getEndTime in interface MetricValueOrBuilderpublic com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
The end of the time period over which this metric value's measurement applies.
.google.protobuf.Timestamp end_time = 3;getEndTimeOrBuilder in interface MetricValueOrBuilderpublic boolean getBoolValue()
A boolean value.
bool bool_value = 4;getBoolValue in interface MetricValueOrBuilderpublic long getInt64Value()
A signed 64-bit integer value.
int64 int64_value = 5;getInt64Value in interface MetricValueOrBuilderpublic double getDoubleValue()
A double precision floating point value.
double double_value = 6;getDoubleValue in interface MetricValueOrBuilderpublic java.lang.String getStringValue()
A text string value.
string string_value = 7;getStringValue in interface MetricValueOrBuilderpublic com.google.protobuf.ByteString getStringValueBytes()
A text string value.
string string_value = 7;getStringValueBytes in interface MetricValueOrBuilderpublic Distribution getDistributionValue()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;getDistributionValue in interface MetricValueOrBuilderpublic DistributionOrBuilder getDistributionValueOrBuilder()
A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;getDistributionValueOrBuilder in interface MetricValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static MetricValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static MetricValue parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MetricValue parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MetricValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MetricValue parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static MetricValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static MetricValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic MetricValue.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static MetricValue.Builder newBuilder()
public static MetricValue.Builder newBuilder(MetricValue prototype)
public MetricValue.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected MetricValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static MetricValue getDefaultInstance()
public static com.google.protobuf.Parser<MetricValue> parser()
public com.google.protobuf.Parser<MetricValue> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public MetricValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder