Package com.google.api
Interface MetricOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Metric
,Metric.Builder
public interface MetricOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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].com.google.protobuf.ByteString
getTypeBytes()
An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getType
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;
- Returns:
- The type.
-
getTypeBytes
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;
- Returns:
- The bytes for type.
-
getLabelsCount
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;
-
containsLabels
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;
-
getLabels
@Deprecated java.util.Map<java.lang.String,java.lang.String> getLabels()
Deprecated.UsegetLabelsMap()
instead.
-
getLabelsMap
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;
-
getLabelsOrDefault
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;
-
getLabelsOrThrow
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;
-
-