public final class AttributeValue extends com.google.protobuf.GeneratedMessageV3 implements AttributeValueOrBuilder
The value of an Attribute.Protobuf type
opencensus.proto.trace.v1.AttributeValue| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeValue.Builder
The value of an Attribute.
|
static class |
AttributeValue.ValueCase |
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| Modifier and Type | Field and Description |
|---|---|
static int |
BOOL_VALUE_FIELD_NUMBER |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
static int |
INT_VALUE_FIELD_NUMBER |
static int |
STRING_VALUE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
boolean |
getBoolValue()
A Boolean value represented by `true` or `false`.
|
static AttributeValue |
getDefaultInstance() |
AttributeValue |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
A double value.
|
long |
getIntValue()
A 64-bit signed integer.
|
com.google.protobuf.Parser<AttributeValue> |
getParserForType() |
int |
getSerializedSize() |
TruncatableString |
getStringValue()
A string up to 256 bytes long.
|
TruncatableStringOrBuilder |
getStringValueOrBuilder()
A string up to 256 bytes long.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
AttributeValue.ValueCase |
getValueCase() |
int |
hashCode() |
boolean |
hasStringValue()
A string up to 256 bytes long.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AttributeValue.Builder |
newBuilder() |
static AttributeValue.Builder |
newBuilder(AttributeValue prototype) |
AttributeValue.Builder |
newBuilderForType() |
protected AttributeValue.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static AttributeValue |
parseDelimitedFrom(InputStream input) |
static AttributeValue |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeValue |
parseFrom(byte[] data) |
static AttributeValue |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeValue |
parseFrom(ByteBuffer data) |
static AttributeValue |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeValue |
parseFrom(com.google.protobuf.ByteString data) |
static AttributeValue |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeValue |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AttributeValue |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AttributeValue |
parseFrom(InputStream input) |
static AttributeValue |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AttributeValue> |
parser() |
AttributeValue.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int STRING_VALUE_FIELD_NUMBER
public static final int INT_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public AttributeValue.ValueCase getValueCase()
getValueCase in interface AttributeValueOrBuilderpublic boolean hasStringValue()
A string up to 256 bytes long.
.opencensus.proto.trace.v1.TruncatableString string_value = 1;hasStringValue in interface AttributeValueOrBuilderpublic TruncatableString getStringValue()
A string up to 256 bytes long.
.opencensus.proto.trace.v1.TruncatableString string_value = 1;getStringValue in interface AttributeValueOrBuilderpublic TruncatableStringOrBuilder getStringValueOrBuilder()
A string up to 256 bytes long.
.opencensus.proto.trace.v1.TruncatableString string_value = 1;getStringValueOrBuilder in interface AttributeValueOrBuilderpublic long getIntValue()
A 64-bit signed integer.
int64 int_value = 2;getIntValue in interface AttributeValueOrBuilderpublic boolean getBoolValue()
A Boolean value represented by `true` or `false`.
bool bool_value = 3;getBoolValue in interface AttributeValueOrBuilderpublic double getDoubleValue()
A double value.
double double_value = 4;getDoubleValue in interface AttributeValueOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static AttributeValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AttributeValue parseFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeValue parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AttributeValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AttributeValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AttributeValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AttributeValue.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AttributeValue.Builder newBuilder()
public static AttributeValue.Builder newBuilder(AttributeValue prototype)
public AttributeValue.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AttributeValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AttributeValue getDefaultInstance()
public static com.google.protobuf.Parser<AttributeValue> parser()
public com.google.protobuf.Parser<AttributeValue> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AttributeValue getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder