
com.google.api.MetricOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of googleapis-common-protos
Show all versions of googleapis-common-protos
GoogleAPI classes generated from core protos
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/api/metric.proto
package com.google.api;
public interface MetricOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.api.Metric)
com.google.protobuf.MessageOrBuilder {
/**
*
* An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
* For example, `compute.googleapis.com/instance/cpu/usage_time`.
*
*
* optional string type = 3;
*/
java.lang.String getType();
/**
*
* An existing metric type, see [google.api.MetricDescriptor][google.api.MetricDescriptor].
* For example, `compute.googleapis.com/instance/cpu/usage_time`.
*
*
* optional string type = 3;
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
*
* The set of labels that uniquely identify a metric. To specify a
* metric, all labels enumerated in the `MetricDescriptor` must be
* assigned values.
*
*
* map<string, string> labels = 2;
*/
int getLabelsCount();
/**
*
* The set of labels that uniquely identify a metric. To specify a
* metric, all labels enumerated in the `MetricDescriptor` must be
* assigned values.
*
*
* map<string, string> labels = 2;
*/
boolean containsLabels(
java.lang.String key);
/**
* Use {@link #getLabelsMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getLabels();
/**
*
* The set of labels that uniquely identify a metric. To specify a
* metric, all labels enumerated in the `MetricDescriptor` must be
* assigned values.
*
*
* map<string, string> labels = 2;
*/
java.util.Map
getLabelsMap();
/**
*
* The set of labels that uniquely identify a metric. To specify a
* metric, all labels enumerated 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 labels that uniquely identify a metric. To specify a
* metric, all labels enumerated in the `MetricDescriptor` must be
* assigned values.
*
*
* map<string, string> labels = 2;
*/
java.lang.String getLabelsOrThrow(
java.lang.String key);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy