Interface NamedMetricOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
NamedMetric,NamedMetric.Builder
@Generated
public interface NamedMetricOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetName()The name of the metric.com.google.protobuf.ByteStringThe name of the metric.getUnit()The unit in which this metric is reported.com.google.protobuf.ByteStringThe unit in which this metric is reported.com.google.protobuf.ValuegetValue()The value of the metric.com.google.protobuf.ValueOrBuilderThe value of the metric.booleanhasValue()The value of the metric.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()The name of the metric.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()The name of the metric.
string name = 1;- Returns:
- The bytes for name.
-
hasValue
boolean hasValue()The value of the metric.
.google.protobuf.Value value = 2;- Returns:
- Whether the value field is set.
-
getValue
com.google.protobuf.Value getValue()The value of the metric.
.google.protobuf.Value value = 2;- Returns:
- The value.
-
getValueOrBuilder
com.google.protobuf.ValueOrBuilder getValueOrBuilder()The value of the metric.
.google.protobuf.Value value = 2; -
getUnit
String getUnit()The unit in which this metric is reported. Follows [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard.
string unit = 3;- Returns:
- The unit.
-
getUnitBytes
com.google.protobuf.ByteString getUnitBytes()The unit in which this metric is reported. Follows [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard.
string unit = 3;- Returns:
- The bytes for unit.
-