Interface MetricValueOrBuilder (1.18.0)

public interface MetricValueOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

The labels describing the metric value. See comments on 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getBoolValue()

public abstract boolean getBoolValue()

A boolean value.

bool bool_value = 4;

Returns
TypeDescription
boolean

The boolValue.

getDistributionValue()

public abstract Distribution getDistributionValue()

A distribution value.

.google.api.servicecontrol.v1.Distribution distribution_value = 8;

Returns
TypeDescription
Distribution

The distributionValue.

getDistributionValueOrBuilder()

public abstract DistributionOrBuilder getDistributionValueOrBuilder()

A distribution value.

.google.api.servicecontrol.v1.Distribution distribution_value = 8;

Returns
TypeDescription
DistributionOrBuilder

getDoubleValue()

public abstract double getDoubleValue()

A double precision floating point value.

double double_value = 6;

Returns
TypeDescription
double

The doubleValue.

getEndTime()

public abstract 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 will be used.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public abstract 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 will be used.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getInt64Value()

public abstract long getInt64Value()

A signed 64-bit integer value.

int64 int64_value = 5;

Returns
TypeDescription
long

The int64Value.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

The labels describing the metric value. See comments on 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;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

The labels describing the metric value. See comments on 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;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

The labels describing the metric value. See comments on 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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

The labels describing the metric value. See comments on 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getStartTime()

public abstract 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 will be used.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public abstract 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 will be used.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getStringValue()

public abstract String getStringValue()

A text string value.

string string_value = 7;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public abstract ByteString getStringValueBytes()

A text string value.

string string_value = 7;

Returns
TypeDescription
ByteString

The bytes for stringValue.

getValueCase()

public abstract MetricValue.ValueCase getValueCase()
Returns
TypeDescription
MetricValue.ValueCase

hasBoolValue()

public abstract boolean hasBoolValue()

A boolean value.

bool bool_value = 4;

Returns
TypeDescription
boolean

Whether the boolValue field is set.

hasDistributionValue()

public abstract boolean hasDistributionValue()

A distribution value.

.google.api.servicecontrol.v1.Distribution distribution_value = 8;

Returns
TypeDescription
boolean

Whether the distributionValue field is set.

hasDoubleValue()

public abstract boolean hasDoubleValue()

A double precision floating point value.

double double_value = 6;

Returns
TypeDescription
boolean

Whether the doubleValue field is set.

hasEndTime()

public abstract 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 will be used.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasInt64Value()

public abstract boolean hasInt64Value()

A signed 64-bit integer value.

int64 int64_value = 5;

Returns
TypeDescription
boolean

Whether the int64Value field is set.

hasStartTime()

public abstract 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 will be used.

.google.protobuf.Timestamp start_time = 2;

Returns
TypeDescription
boolean

Whether the startTime field is set.

hasStringValue()

public abstract boolean hasStringValue()

A text string value.

string string_value = 7;

Returns
TypeDescription
boolean

Whether the stringValue field is set.