public interface MetricOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabels(java.lang.String key)
The set of label values that uniquely identify this metric.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
The set of label values that uniquely identify this metric.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabelsMap()
The set of label values that uniquely identify this metric.
|
java.lang.String |
getLabelsOrDefault(java.lang.String key,
java.lang.String defaultValue)
The set of label values that uniquely identify this metric.
|
java.lang.String |
getLabelsOrThrow(java.lang.String key)
The set of label values that uniquely identify this metric.
|
java.lang.String |
getType()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
|
ByteString |
getTypeBytes()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
java.lang.String getType()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example, `custom.googleapis.com/invoice/paid/amount`.
string type = 3;
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(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getLabels()
getLabelsMap()
instead.java.util.Map<java.lang.String,java.lang.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;
java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.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;
java.lang.String getLabelsOrThrow(java.lang.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;