Package com.google.api.servicecontrol.v1
Interface MetricValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
MetricValue,MetricValue.Builder
@Generated
public interface MetricValueOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) The labels describing the metric value.booleanA boolean value.A distribution value.A distribution value.doubleA double precision floating point value.com.google.protobuf.TimestampThe end of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilderThe end of the time period over which this metric value's measurement applies.longA signed 64-bit integer value.Deprecated.intThe labels describing the metric value.The labels describing the metric value.getLabelsOrDefault(String key, String defaultValue) The labels describing the metric value.getLabelsOrThrow(String key) The labels describing the metric value.com.google.protobuf.TimestampThe start of the time period over which this metric value's measurement applies.com.google.protobuf.TimestampOrBuilderThe start of the time period over which this metric value's measurement applies.A text string value.com.google.protobuf.ByteStringA text string value.booleanA boolean value.booleanA distribution value.booleanA double precision floating point value.booleanThe end of the time period over which this metric value's measurement applies.booleanA signed 64-bit integer value.booleanThe start of the time period over which this metric value's measurement applies.booleanA text string value.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getLabelsCount
int getLabelsCount()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; -
containsLabels
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; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
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; -
getLabelsOrDefault
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; -
getLabelsOrThrow
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; -
hasStartTime
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;- Returns:
- Whether the startTime field is set.
-
getStartTime
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;- Returns:
- The startTime.
-
getStartTimeOrBuilder
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; -
hasEndTime
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;- Returns:
- Whether the endTime field is set.
-
getEndTime
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;- Returns:
- The endTime.
-
getEndTimeOrBuilder
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; -
hasBoolValue
boolean hasBoolValue()A boolean value.
bool bool_value = 4;- Returns:
- Whether the boolValue field is set.
-
getBoolValue
boolean getBoolValue()A boolean value.
bool bool_value = 4;- Returns:
- The boolValue.
-
hasInt64Value
boolean hasInt64Value()A signed 64-bit integer value.
int64 int64_value = 5;- Returns:
- Whether the int64Value field is set.
-
getInt64Value
long getInt64Value()A signed 64-bit integer value.
int64 int64_value = 5;- Returns:
- The int64Value.
-
hasDoubleValue
boolean hasDoubleValue()A double precision floating point value.
double double_value = 6;- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
double getDoubleValue()A double precision floating point value.
double double_value = 6;- Returns:
- The doubleValue.
-
hasStringValue
boolean hasStringValue()A text string value.
string string_value = 7;- Returns:
- Whether the stringValue field is set.
-
getStringValue
String getStringValue()A text string value.
string string_value = 7;- Returns:
- The stringValue.
-
getStringValueBytes
com.google.protobuf.ByteString getStringValueBytes()A text string value.
string string_value = 7;- Returns:
- The bytes for stringValue.
-
hasDistributionValue
boolean hasDistributionValue()A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Returns:
- Whether the distributionValue field is set.
-
getDistributionValue
Distribution getDistributionValue()A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8;- Returns:
- The distributionValue.
-
getDistributionValueOrBuilder
DistributionOrBuilder getDistributionValueOrBuilder()A distribution value.
.google.api.servicecontrol.v1.Distribution distribution_value = 8; -
getValueCase
MetricValue.ValueCase getValueCase()
-