public interface MetricOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
The set of label values that uniquely identify this metric.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The set of label values that uniquely identify this metric.
|
Map<String,String> |
getLabelsMap()
The set of label values that uniquely identify this metric.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
The set of label values that uniquely identify this metric.
|
String |
getLabelsOrThrow(String key)
The set of label values that uniquely identify this metric.
|
String |
getType()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
|
com.google.protobuf.ByteString |
getTypeBytes()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getType()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, `custom.googleapis.com/invoice/paid/amount`.
string type = 3;com.google.protobuf.ByteString getTypeBytes()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, `custom.googleapis.com/invoice/paid/amount`.
string type = 3;int getLabelsCount()
The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values.
map<string, string> labels = 2;boolean containsLabels(String key)
The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values.
map<string, string> labels = 2;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.Map<String,String> getLabelsMap()
The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values.
map<string, string> labels = 2;String getLabelsOrDefault(String key, String defaultValue)
The set of label values that uniquely identify this metric. All labels listed in the `MetricDescriptor` must be assigned values.
map<string, string> labels = 2;Copyright © 2022 Google LLC. All rights reserved.