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

    Modifier and Type
    Method
    Description
    The key name of the pair.
    com.google.protobuf.ByteString
    The key name of the pair.
    The value of the pair.
    boolean
    The value of the pair.

    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.