Class AnyValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<AnyValue,AnyValue.Builder>
io.opentelemetry.proto.common.v1.AnyValue.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, AnyValueOrBuilder, Cloneable
Enclosing class:
AnyValue

public static final class AnyValue.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AnyValue,AnyValue.Builder> implements AnyValueOrBuilder
 Represents any type of attribute value. AnyValue may contain a
 primitive value such as a string or integer or it may contain an arbitrary nested
 object containing arrays, key-value lists and primitives.
 
Protobuf type opentelemetry.proto.common.v1.AnyValue
  • Method Details

    • getValueCase

      public AnyValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface AnyValueOrBuilder
    • clearValue

      public AnyValue.Builder clearValue()
    • hasStringValue

      public boolean hasStringValue()
      string string_value = 1 [json_name = "stringValue"];
      Specified by:
      hasStringValue in interface AnyValueOrBuilder
      Returns:
      Whether the stringValue field is set.
    • getStringValue

      public String getStringValue()
      string string_value = 1 [json_name = "stringValue"];
      Specified by:
      getStringValue in interface AnyValueOrBuilder
      Returns:
      The stringValue.
    • getStringValueBytes

      public com.google.protobuf.ByteString getStringValueBytes()
      string string_value = 1 [json_name = "stringValue"];
      Specified by:
      getStringValueBytes in interface AnyValueOrBuilder
      Returns:
      The bytes for stringValue.
    • setStringValue

      public AnyValue.Builder setStringValue(String value)
      string string_value = 1 [json_name = "stringValue"];
      Parameters:
      value - The stringValue to set.
      Returns:
      This builder for chaining.
    • clearStringValue

      public AnyValue.Builder clearStringValue()
      string string_value = 1 [json_name = "stringValue"];
      Returns:
      This builder for chaining.
    • setStringValueBytes

      public AnyValue.Builder setStringValueBytes(com.google.protobuf.ByteString value)
      string string_value = 1 [json_name = "stringValue"];
      Parameters:
      value - The bytes for stringValue to set.
      Returns:
      This builder for chaining.
    • hasBoolValue

      public boolean hasBoolValue()
      bool bool_value = 2 [json_name = "boolValue"];
      Specified by:
      hasBoolValue in interface AnyValueOrBuilder
      Returns:
      Whether the boolValue field is set.
    • getBoolValue

      public boolean getBoolValue()
      bool bool_value = 2 [json_name = "boolValue"];
      Specified by:
      getBoolValue in interface AnyValueOrBuilder
      Returns:
      The boolValue.
    • setBoolValue

      public AnyValue.Builder setBoolValue(boolean value)
      bool bool_value = 2 [json_name = "boolValue"];
      Parameters:
      value - The boolValue to set.
      Returns:
      This builder for chaining.
    • clearBoolValue

      public AnyValue.Builder clearBoolValue()
      bool bool_value = 2 [json_name = "boolValue"];
      Returns:
      This builder for chaining.
    • hasIntValue

      public boolean hasIntValue()
      int64 int_value = 3 [json_name = "intValue"];
      Specified by:
      hasIntValue in interface AnyValueOrBuilder
      Returns:
      Whether the intValue field is set.
    • getIntValue

      public long getIntValue()
      int64 int_value = 3 [json_name = "intValue"];
      Specified by:
      getIntValue in interface AnyValueOrBuilder
      Returns:
      The intValue.
    • setIntValue

      public AnyValue.Builder setIntValue(long value)
      int64 int_value = 3 [json_name = "intValue"];
      Parameters:
      value - The intValue to set.
      Returns:
      This builder for chaining.
    • clearIntValue

      public AnyValue.Builder clearIntValue()
      int64 int_value = 3 [json_name = "intValue"];
      Returns:
      This builder for chaining.
    • hasDoubleValue

      public boolean hasDoubleValue()
      double double_value = 4 [json_name = "doubleValue"];
      Specified by:
      hasDoubleValue in interface AnyValueOrBuilder
      Returns:
      Whether the doubleValue field is set.
    • getDoubleValue

      public double getDoubleValue()
      double double_value = 4 [json_name = "doubleValue"];
      Specified by:
      getDoubleValue in interface AnyValueOrBuilder
      Returns:
      The doubleValue.
    • setDoubleValue

      public AnyValue.Builder setDoubleValue(double value)
      double double_value = 4 [json_name = "doubleValue"];
      Parameters:
      value - The doubleValue to set.
      Returns:
      This builder for chaining.
    • clearDoubleValue

      public AnyValue.Builder clearDoubleValue()
      double double_value = 4 [json_name = "doubleValue"];
      Returns:
      This builder for chaining.
    • hasArrayValue

      public boolean hasArrayValue()
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
      Specified by:
      hasArrayValue in interface AnyValueOrBuilder
      Returns:
      Whether the arrayValue field is set.
    • getArrayValue

      public ArrayValue getArrayValue()
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
      Specified by:
      getArrayValue in interface AnyValueOrBuilder
      Returns:
      The arrayValue.
    • setArrayValue

      public AnyValue.Builder setArrayValue(ArrayValue value)
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
    • setArrayValue

      public AnyValue.Builder setArrayValue(ArrayValue.Builder builderForValue)
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
    • mergeArrayValue

      public AnyValue.Builder mergeArrayValue(ArrayValue value)
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
    • clearArrayValue

      public AnyValue.Builder clearArrayValue()
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
    • hasKvlistValue

      public boolean hasKvlistValue()
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
      Specified by:
      hasKvlistValue in interface AnyValueOrBuilder
      Returns:
      Whether the kvlistValue field is set.
    • getKvlistValue

      public KeyValueList getKvlistValue()
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
      Specified by:
      getKvlistValue in interface AnyValueOrBuilder
      Returns:
      The kvlistValue.
    • setKvlistValue

      public AnyValue.Builder setKvlistValue(KeyValueList value)
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
    • setKvlistValue

      public AnyValue.Builder setKvlistValue(KeyValueList.Builder builderForValue)
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
    • mergeKvlistValue

      public AnyValue.Builder mergeKvlistValue(KeyValueList value)
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
    • clearKvlistValue

      public AnyValue.Builder clearKvlistValue()
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
    • hasBytesValue

      public boolean hasBytesValue()
      bytes bytes_value = 7 [json_name = "bytesValue"];
      Specified by:
      hasBytesValue in interface AnyValueOrBuilder
      Returns:
      Whether the bytesValue field is set.
    • getBytesValue

      public com.google.protobuf.ByteString getBytesValue()
      bytes bytes_value = 7 [json_name = "bytesValue"];
      Specified by:
      getBytesValue in interface AnyValueOrBuilder
      Returns:
      The bytesValue.
    • setBytesValue

      public AnyValue.Builder setBytesValue(com.google.protobuf.ByteString value)
      bytes bytes_value = 7 [json_name = "bytesValue"];
      Parameters:
      value - The bytesValue to set.
      Returns:
      This builder for chaining.
    • clearBytesValue

      public AnyValue.Builder clearBytesValue()
      bytes bytes_value = 7 [json_name = "bytesValue"];
      Returns:
      This builder for chaining.