Package io.opentelemetry.proto.common.v1
Interface KeyValueOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
KeyValue,KeyValue.Builder
public interface KeyValueOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getKey
String getKey()The key name of the pair.
string key = 1 [json_name = "key"];- Returns:
- The key.
-
getKeyBytes
com.google.protobuf.ByteString getKeyBytes()The key name of the pair.
string key = 1 [json_name = "key"];- Returns:
- The bytes for key.
-
hasValue
boolean hasValue()The value of the pair.
.opentelemetry.proto.common.v1.AnyValue value = 2 [json_name = "value"];- Returns:
- Whether the value field is set.
-
getValue
AnyValue getValue()The value of the pair.
.opentelemetry.proto.common.v1.AnyValue value = 2 [json_name = "value"];- Returns:
- The value.
-