Package io.opentelemetry.proto.common.v1
Class AnyValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class AnyValue extends com.google.protobuf.GeneratedMessageV3 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 typeopentelemetry.proto.common.v1.AnyValue- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnyValue.BuilderAnyValue is used to represent any type of attribute value.static classAnyValue.ValueCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intARRAY_VALUE_FIELD_NUMBERstatic intBOOL_VALUE_FIELD_NUMBERstatic intBYTES_VALUE_FIELD_NUMBERstatic intDOUBLE_VALUE_FIELD_NUMBERstatic intINT_VALUE_FIELD_NUMBERstatic intKVLIST_VALUE_FIELD_NUMBERstatic intSTRING_VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ArrayValuegetArrayValue().opentelemetry.proto.common.v1.ArrayValue array_value = 5;ArrayValueOrBuildergetArrayValueOrBuilder().opentelemetry.proto.common.v1.ArrayValue array_value = 5;booleangetBoolValue()bool bool_value = 2;com.google.protobuf.ByteStringgetBytesValue()bytes bytes_value = 7;static AnyValuegetDefaultInstance()AnyValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()doublegetDoubleValue()double double_value = 4;longgetIntValue()int64 int_value = 3;KeyValueListgetKvlistValue().opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;KeyValueListOrBuildergetKvlistValueOrBuilder().opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;com.google.protobuf.Parser<AnyValue>getParserForType()intgetSerializedSize()StringgetStringValue()string string_value = 1;com.google.protobuf.ByteStringgetStringValueBytes()string string_value = 1;com.google.protobuf.UnknownFieldSetgetUnknownFields()AnyValue.ValueCasegetValueCase()booleanhasArrayValue().opentelemetry.proto.common.v1.ArrayValue array_value = 5;booleanhasBoolValue()bool bool_value = 2;booleanhasBytesValue()bytes bytes_value = 7;booleanhasDoubleValue()double double_value = 4;inthashCode()booleanhasIntValue()int64 int_value = 3;booleanhasKvlistValue().opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;booleanhasStringValue()string string_value = 1;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static AnyValue.BuildernewBuilder()static AnyValue.BuildernewBuilder(AnyValue prototype)AnyValue.BuildernewBuilderForType()protected AnyValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()AnyValue.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT_VALUE_FIELD_NUMBER
public static final int INT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOUBLE_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ARRAY_VALUE_FIELD_NUMBER
public static final int ARRAY_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KVLIST_VALUE_FIELD_NUMBER
public static final int KVLIST_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BYTES_VALUE_FIELD_NUMBER
public static final int BYTES_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getValueCase
public AnyValue.ValueCase getValueCase()
- Specified by:
getValueCasein interfaceAnyValueOrBuilder
-
hasStringValue
public boolean hasStringValue()
string string_value = 1;- Specified by:
hasStringValuein interfaceAnyValueOrBuilder- Returns:
- Whether the stringValue field is set.
-
getStringValue
public String getStringValue()
string string_value = 1;- Specified by:
getStringValuein interfaceAnyValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
string string_value = 1;- Specified by:
getStringValueBytesin interfaceAnyValueOrBuilder- Returns:
- The bytes for stringValue.
-
hasBoolValue
public boolean hasBoolValue()
bool bool_value = 2;- Specified by:
hasBoolValuein interfaceAnyValueOrBuilder- Returns:
- Whether the boolValue field is set.
-
getBoolValue
public boolean getBoolValue()
bool bool_value = 2;- Specified by:
getBoolValuein interfaceAnyValueOrBuilder- Returns:
- The boolValue.
-
hasIntValue
public boolean hasIntValue()
int64 int_value = 3;- Specified by:
hasIntValuein interfaceAnyValueOrBuilder- Returns:
- Whether the intValue field is set.
-
getIntValue
public long getIntValue()
int64 int_value = 3;- Specified by:
getIntValuein interfaceAnyValueOrBuilder- Returns:
- The intValue.
-
hasDoubleValue
public boolean hasDoubleValue()
double double_value = 4;- Specified by:
hasDoubleValuein interfaceAnyValueOrBuilder- Returns:
- Whether the doubleValue field is set.
-
getDoubleValue
public double getDoubleValue()
double double_value = 4;- Specified by:
getDoubleValuein interfaceAnyValueOrBuilder- Returns:
- The doubleValue.
-
hasArrayValue
public boolean hasArrayValue()
.opentelemetry.proto.common.v1.ArrayValue array_value = 5;- Specified by:
hasArrayValuein interfaceAnyValueOrBuilder- Returns:
- Whether the arrayValue field is set.
-
getArrayValue
public ArrayValue getArrayValue()
.opentelemetry.proto.common.v1.ArrayValue array_value = 5;- Specified by:
getArrayValuein interfaceAnyValueOrBuilder- Returns:
- The arrayValue.
-
getArrayValueOrBuilder
public ArrayValueOrBuilder getArrayValueOrBuilder()
.opentelemetry.proto.common.v1.ArrayValue array_value = 5;- Specified by:
getArrayValueOrBuilderin interfaceAnyValueOrBuilder
-
hasKvlistValue
public boolean hasKvlistValue()
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;- Specified by:
hasKvlistValuein interfaceAnyValueOrBuilder- Returns:
- Whether the kvlistValue field is set.
-
getKvlistValue
public KeyValueList getKvlistValue()
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;- Specified by:
getKvlistValuein interfaceAnyValueOrBuilder- Returns:
- The kvlistValue.
-
getKvlistValueOrBuilder
public KeyValueListOrBuilder getKvlistValueOrBuilder()
.opentelemetry.proto.common.v1.KeyValueList kvlist_value = 6;- Specified by:
getKvlistValueOrBuilderin interfaceAnyValueOrBuilder
-
hasBytesValue
public boolean hasBytesValue()
bytes bytes_value = 7;- Specified by:
hasBytesValuein interfaceAnyValueOrBuilder- Returns:
- Whether the bytesValue field is set.
-
getBytesValue
public com.google.protobuf.ByteString getBytesValue()
bytes bytes_value = 7;- Specified by:
getBytesValuein interfaceAnyValueOrBuilder- Returns:
- The bytesValue.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AnyValue.Builder newBuilder()
-
newBuilder
public static AnyValue.Builder newBuilder(AnyValue prototype)
-
toBuilder
public AnyValue.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AnyValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AnyValue getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AnyValue> parser()
-
getParserForType
public com.google.protobuf.Parser<AnyValue> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AnyValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-