Package io.opentelemetry.proto.common.v1
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 ClassesModifier and TypeClassDescriptionstatic final classRepresents any type of attribute value.static enumNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) .opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];booleanbool bool_value = 2 [json_name = "boolValue"];com.google.protobuf.ByteStringbytes bytes_value = 7 [json_name = "bytesValue"];static AnyValuedoubledouble double_value = 4 [json_name = "doubleValue"];longint64 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.ByteStringstring string_value = 1 [json_name = "stringValue"];boolean.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];booleanbool bool_value = 2 [json_name = "boolValue"];booleanbytes bytes_value = 7 [json_name = "bytesValue"];booleandouble double_value = 4 [json_name = "doubleValue"];booleanint64 int_value = 3 [json_name = "intValue"];boolean.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];booleanstring string_value = 1 [json_name = "stringValue"];static AnyValue.Builderstatic AnyValue.BuildernewBuilder(AnyValue prototype) static AnyValueparseDelimitedFrom(InputStream input) static AnyValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnyValueparseFrom(byte[] data) static AnyValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnyValueparseFrom(com.google.protobuf.ByteString data) static AnyValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnyValueparseFrom(com.google.protobuf.CodedInputStream input) static AnyValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnyValueparseFrom(InputStream input) static AnyValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AnyValueparseFrom(ByteBuffer data) static AnyValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AnyValue>parser()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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
- Specified by:
getValueCasein interfaceAnyValueOrBuilder
-
hasStringValue
public boolean hasStringValue()string string_value = 1 [json_name = "stringValue"];- Specified by:
hasStringValuein interfaceAnyValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
string string_value = 1 [json_name = "stringValue"];- Specified by:
getStringValuein interfaceAnyValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()string string_value = 1 [json_name = "stringValue"];- Specified by:
getStringValueBytesin interfaceAnyValueOrBuilder- Returns:
- The bytes for stringValue.
-
hasBoolValue
public boolean hasBoolValue()bool bool_value = 2 [json_name = "boolValue"];- Specified by:
hasBoolValuein interfaceAnyValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()bool bool_value = 2 [json_name = "boolValue"];- Specified by:
getBoolValuein interfaceAnyValueOrBuilder- Returns:
- The boolValue.
-
hasIntValue
public boolean hasIntValue()int64 int_value = 3 [json_name = "intValue"];- Specified by:
hasIntValuein interfaceAnyValueOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public long getIntValue()int64 int_value = 3 [json_name = "intValue"];- Specified by:
getIntValuein interfaceAnyValueOrBuilder- Returns:
- The intValue.
-
hasDoubleValue
public boolean hasDoubleValue()double double_value = 4 [json_name = "doubleValue"];- Specified by:
hasDoubleValuein interfaceAnyValueOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()double double_value = 4 [json_name = "doubleValue"];- Specified by:
getDoubleValuein interfaceAnyValueOrBuilder- Returns:
- The doubleValue.
-
hasArrayValue
public boolean hasArrayValue().opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];- Specified by:
hasArrayValuein interfaceAnyValueOrBuilder- Returns:
- Whether the arrayValue field is set.
-
getArrayValue
.opentelemetry.proto.common.v1.ArrayValue array_value = 5 [json_name = "arrayValue"];- Specified by:
getArrayValuein interfaceAnyValueOrBuilder- Returns:
- The arrayValue.
-
hasKvlistValue
public boolean hasKvlistValue().opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];- Specified by:
hasKvlistValuein interfaceAnyValueOrBuilder- Returns:
- Whether the kvlistValue field is set.
-
getKvlistValue
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6 [json_name = "kvlistValue"];- Specified by:
getKvlistValuein interfaceAnyValueOrBuilder- Returns:
- The kvlistValue.
-
hasBytesValue
public boolean hasBytesValue()bytes bytes_value = 7 [json_name = "bytesValue"];- Specified by:
hasBytesValuein interfaceAnyValueOrBuilder- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()bytes bytes_value = 7 [json_name = "bytesValue"];- Specified by:
getBytesValuein interfaceAnyValueOrBuilder- 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
- Throws:
IOException
-
parseFrom
public static AnyValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AnyValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AnyValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<AnyValue,AnyValue.Builder>
-
getDefaultInstance
-
parser
-