Class AnyValue

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

public final class AnyValue extends com.google.protobuf.GeneratedMessageLite<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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents any type of attribute value.
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite

    com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
    boolean
    bool bool_value = 2 [json_name = "boolValue"];
    com.google.protobuf.ByteString
    bytes bytes_value = 7 [json_name = "bytesValue"];
    static AnyValue
     
    double
    double double_value = 4 [json_name = "doubleValue"];
    long
    int64 int_value = 3 [json_name = "intValue"];
    .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
    string string_value = 1 [json_name = "stringValue"];
    com.google.protobuf.ByteString
    string string_value = 1 [json_name = "stringValue"];
     
    boolean
    .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];
    boolean
    bool bool_value = 2 [json_name = "boolValue"];
    boolean
    bytes bytes_value = 7 [json_name = "bytesValue"];
    boolean
    double double_value = 4 [json_name = "doubleValue"];
    boolean
    int64 int_value = 3 [json_name = "intValue"];
    boolean
    .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];
    boolean
    string string_value = 1 [json_name = "stringValue"];
     
    newBuilder(AnyValue prototype)
     
    static AnyValue
     
    static AnyValue
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AnyValue
    parseFrom(byte[] data)
     
    static AnyValue
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AnyValue
    parseFrom(com.google.protobuf.ByteString data)
     
    static AnyValue
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AnyValue
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static AnyValue
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AnyValue
     
    static AnyValue
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static AnyValue
     
    static AnyValue
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<AnyValue>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite

    createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • STRING_VALUE_FIELD_NUMBER

      public static final int STRING_VALUE_FIELD_NUMBER
      See Also:
    • BOOL_VALUE_FIELD_NUMBER

      public static final int BOOL_VALUE_FIELD_NUMBER
      See Also:
    • INT_VALUE_FIELD_NUMBER

      public static final int INT_VALUE_FIELD_NUMBER
      See Also:
    • DOUBLE_VALUE_FIELD_NUMBER

      public static final int DOUBLE_VALUE_FIELD_NUMBER
      See Also:
    • ARRAY_VALUE_FIELD_NUMBER

      public static final int ARRAY_VALUE_FIELD_NUMBER
      See Also:
    • KVLIST_VALUE_FIELD_NUMBER

      public static final int KVLIST_VALUE_FIELD_NUMBER
      See Also:
    • BYTES_VALUE_FIELD_NUMBER

      public static final int BYTES_VALUE_FIELD_NUMBER
      See Also:
  • Method Details

    • getValueCase

      public AnyValue.ValueCase getValueCase()
      Specified by:
      getValueCase in interface AnyValueOrBuilder
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • parseFrom

      public static AnyValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnyValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnyValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnyValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnyValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnyValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnyValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnyValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnyValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnyValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnyValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnyValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static AnyValue.Builder newBuilder()
    • newBuilder

      public static AnyValue.Builder newBuilder(AnyValue prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<AnyValue,AnyValue.Builder>
    • getDefaultInstance

      public static AnyValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AnyValue> parser()