Class AnyValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnyValue.Builder>
io.opentelemetry.proto.common.v1.AnyValue.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AnyValueOrBuilder, Cloneable
Enclosing class:
AnyValue

public static final class AnyValue.Builder extends com.google.protobuf.GeneratedMessage.Builder<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

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AnyValue.Builder>
    • clear

      public AnyValue.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AnyValue.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AnyValue.Builder>
    • getDefaultInstanceForType

      public AnyValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AnyValue build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AnyValue buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AnyValue.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnyValue.Builder>
    • mergeFrom

      public AnyValue.Builder mergeFrom(AnyValue other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AnyValue.Builder>
    • mergeFrom

      public AnyValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnyValue.Builder>
      Throws:
      IOException
    • getValueCase

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

      public AnyValue.Builder clearValue()
    • hasStringValue

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean hasArrayValue()
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
      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;
      Specified by:
      getArrayValue in interface AnyValueOrBuilder
      Returns:
      The arrayValue.
    • setArrayValue

      public AnyValue.Builder setArrayValue(ArrayValue value)
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    • setArrayValue

      public AnyValue.Builder setArrayValue(ArrayValue.Builder builderForValue)
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    • mergeArrayValue

      public AnyValue.Builder mergeArrayValue(ArrayValue value)
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    • clearArrayValue

      public AnyValue.Builder clearArrayValue()
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    • getArrayValueBuilder

      public ArrayValue.Builder getArrayValueBuilder()
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    • getArrayValueOrBuilder

      public ArrayValueOrBuilder getArrayValueOrBuilder()
      .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
      Specified by:
      getArrayValueOrBuilder in interface AnyValueOrBuilder
    • hasKvlistValue

      public boolean hasKvlistValue()
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
      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;
      Specified by:
      getKvlistValue in interface AnyValueOrBuilder
      Returns:
      The kvlistValue.
    • setKvlistValue

      public AnyValue.Builder setKvlistValue(KeyValueList value)
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    • setKvlistValue

      public AnyValue.Builder setKvlistValue(KeyValueList.Builder builderForValue)
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    • mergeKvlistValue

      public AnyValue.Builder mergeKvlistValue(KeyValueList value)
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    • clearKvlistValue

      public AnyValue.Builder clearKvlistValue()
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    • getKvlistValueBuilder

      public KeyValueList.Builder getKvlistValueBuilder()
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    • getKvlistValueOrBuilder

      public KeyValueListOrBuilder getKvlistValueOrBuilder()
      .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
      Specified by:
      getKvlistValueOrBuilder in interface AnyValueOrBuilder
    • hasBytesValue

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

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

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

      public AnyValue.Builder clearBytesValue()
      bytes bytes_value = 7;
      Returns:
      This builder for chaining.
    • hasStringValueStrindex

      public boolean hasStringValueStrindex()
       Reference to the string value in ProfilesDictionary.string_table.
      
       Note: This is currently used exclusively in the Profiling signal.
       Implementers of OTLP receivers for signals other than Profiling should
       treat the presence of this value as a non-fatal issue.
       Log an error or warning indicating an unexpected field intended for the
       Profiling signal and process the data as if this value were absent or
       empty, ignoring its semantic content for the non-Profiling signal.
      
       Status: [Development]
       
      int32 string_value_strindex = 8;
      Specified by:
      hasStringValueStrindex in interface AnyValueOrBuilder
      Returns:
      Whether the stringValueStrindex field is set.
    • getStringValueStrindex

      public int getStringValueStrindex()
       Reference to the string value in ProfilesDictionary.string_table.
      
       Note: This is currently used exclusively in the Profiling signal.
       Implementers of OTLP receivers for signals other than Profiling should
       treat the presence of this value as a non-fatal issue.
       Log an error or warning indicating an unexpected field intended for the
       Profiling signal and process the data as if this value were absent or
       empty, ignoring its semantic content for the non-Profiling signal.
      
       Status: [Development]
       
      int32 string_value_strindex = 8;
      Specified by:
      getStringValueStrindex in interface AnyValueOrBuilder
      Returns:
      The stringValueStrindex.
    • setStringValueStrindex

      public AnyValue.Builder setStringValueStrindex(int value)
       Reference to the string value in ProfilesDictionary.string_table.
      
       Note: This is currently used exclusively in the Profiling signal.
       Implementers of OTLP receivers for signals other than Profiling should
       treat the presence of this value as a non-fatal issue.
       Log an error or warning indicating an unexpected field intended for the
       Profiling signal and process the data as if this value were absent or
       empty, ignoring its semantic content for the non-Profiling signal.
      
       Status: [Development]
       
      int32 string_value_strindex = 8;
      Parameters:
      value - The stringValueStrindex to set.
      Returns:
      This builder for chaining.
    • clearStringValueStrindex

      public AnyValue.Builder clearStringValueStrindex()
       Reference to the string value in ProfilesDictionary.string_table.
      
       Note: This is currently used exclusively in the Profiling signal.
       Implementers of OTLP receivers for signals other than Profiling should
       treat the presence of this value as a non-fatal issue.
       Log an error or warning indicating an unexpected field intended for the
       Profiling signal and process the data as if this value were absent or
       empty, ignoring its semantic content for the non-Profiling signal.
      
       Status: [Development]
       
      int32 string_value_strindex = 8;
      Returns:
      This builder for chaining.