Interface KeyValueAndUnitOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
KeyValueAndUnit,KeyValueAndUnit.Builder
public interface KeyValueAndUnitOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
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
-
getKeyStrindex
int getKeyStrindex()The index into the string table for the attribute's key.
int32 key_strindex = 1;- Returns:
- The keyStrindex.
-
hasValue
boolean hasValue()The value of the attribute.
.opentelemetry.proto.common.v1.AnyValue value = 2;- Returns:
- Whether the value field is set.
-
getValue
AnyValue getValue()The value of the attribute.
.opentelemetry.proto.common.v1.AnyValue value = 2;- Returns:
- The value.
-
getValueOrBuilder
AnyValueOrBuilder getValueOrBuilder()The value of the attribute.
.opentelemetry.proto.common.v1.AnyValue value = 2; -
getUnitStrindex
int getUnitStrindex()The index into the string table for the attribute's unit. zero indicates implicit (by semconv) or non-defined unit.
int32 unit_strindex = 3;- Returns:
- The unitStrindex.
-