Interface MetricValueOrBuilder (1.55.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
Name Description
key String
Returns
Type Description
boolean

getBoolValue()

public abstract boolean getBoolValue()

A boolean value.

bool bool_value = 4;

Returns
Type Description
boolean

The boolValue.

getDistributionValue()

public abstract Distribution getDistributionValue()

A distribution value.

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

Returns
Type Description
Distribution

The distributionValue.

getDistributionValueOrBuilder()

public abstract DistributionOrBuilder getDistributionValueOrBuilder()

A distribution value.

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

Returns
Type Description
DistributionOrBuilder

getDoubleValue()

public abstract double getDoubleValue()

A double precision floating point value.

double double_value = 6;

Returns
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getInt64Value()

public abstract long getInt64Value()

A signed 64-bit integer value.

int64 int64_value = 5;

Returns
Type Description
long

The int64Value.

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getStringValue()

public abstract String getStringValue()

A text string value.

string string_value = 7;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public abstract ByteString getStringValueBytes()

A text string value.

string string_value = 7;

Returns
Type Description
ByteString

The bytes for stringValue.

getValueCase()

public abstract MetricValue.ValueCase getValueCase()
Returns
Type Description
MetricValue.ValueCase

hasBoolValue()

public abstract boolean hasBoolValue()

A boolean value.

bool bool_value = 4;

Returns
Type Description
boolean

Whether the boolValue field is set.

hasDistributionValue()

public abstract boolean hasDistributionValue()

A distribution value.

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

Returns
Type Description
boolean

Whether the distributionValue field is set.

hasDoubleValue()

public abstract boolean hasDoubleValue()

A double precision floating point value.

double double_value = 6;

Returns
Type Description
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
Type Description
boolean

Whether the endTime field is set.

hasInt64Value()

public abstract boolean hasInt64Value()

A signed 64-bit integer value.

int64 int64_value = 5;

Returns
Type Description
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
Type Description
boolean

Whether the startTime field is set.

hasStringValue()

public abstract boolean hasStringValue()

A text string value.

string string_value = 7;

Returns
Type Description
boolean

Whether the stringValue field is set.