public interface MetricOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
containsLabels(String key)
public abstract 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;
Name | Description |
key | String |
Type | Description |
boolean |
getLabels()
public abstract Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public abstract 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;
Type | Description |
int |
getLabelsMap()
public abstract 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;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public abstract 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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public abstract String getLabelsOrThrow(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;
Name | Description |
key | String |
Type | Description |
String |
getType()
public abstract String getType()
An existing metric type, see google.api.MetricDescriptor.
For example, custom.googleapis.com/invoice/paid/amount
.
string type = 3;
Type | Description |
String | The type. |
getTypeBytes()
public abstract ByteString getTypeBytes()
An existing metric type, see google.api.MetricDescriptor.
For example, custom.googleapis.com/invoice/paid/amount
.
string type = 3;
Type | Description |
ByteString | The bytes for type. |