Package io.opencensus.proto.metrics.v1
Interface LabelValueOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LabelValue,LabelValue.Builder
public interface LabelValueOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetHasValue()If false the value field is ignored and considered not set.StringgetValue()The value for the label.com.google.protobuf.ByteStringgetValueBytes()The value for the label.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getValue
String getValue()
The value for the label.
string value = 1;- Returns:
- The value.
-
getValueBytes
com.google.protobuf.ByteString getValueBytes()
The value for the label.
string value = 1;- Returns:
- The bytes for value.
-
getHasValue
boolean getHasValue()
If false the value field is ignored and considered not set. This is used to differentiate a missing label from an empty string.
bool has_value = 2;- Returns:
- The hasValue.
-
-