Class AnyValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.opentelemetry.proto.common.v1.AnyValue
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, AnyValueOrBuilder, Serializable

@Generated public final class AnyValue extends com.google.protobuf.GeneratedMessage implements AnyValueOrBuilder
 AnyValue is used to represent 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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    AnyValue is used to represent any type of attribute value.
    static enum 
     

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

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

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

    com.google.protobuf.AbstractMessage.BuilderParent

    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.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    boolean
    bool bool_value = 2;
    com.google.protobuf.ByteString
    bytes bytes_value = 7;
    static AnyValue
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    double
    double double_value = 4;
    long
    int64 int_value = 3;
    .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    com.google.protobuf.Parser<AnyValue>
     
    int
     
    string string_value = 1;
    com.google.protobuf.ByteString
    string string_value = 1;
     
    boolean
    .opentelemetry.proto.common.v1.ArrayValue array_value = 5;
    boolean
    bool bool_value = 2;
    boolean
    bytes bytes_value = 7;
    boolean
    double double_value = 4;
    int
     
    boolean
    int64 int_value = 3;
    boolean
    .opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;
    boolean
    string string_value = 1;
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(AnyValue prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    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>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    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.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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

    • 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
    • getValueCase

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • 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
    • newBuilderForType

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

      public static AnyValue.Builder newBuilder()
    • newBuilder

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

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

      protected AnyValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AnyValue getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AnyValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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