Class AttributeValue (2.19.0)

public final class AttributeValue extends GeneratedMessageV3 implements AttributeValueOrBuilder

The allowed types for [VALUE] in a [KEY]:[VALUE] attribute.

Protobuf type google.devtools.cloudtrace.v2.AttributeValue

Static Fields

BOOL_VALUE_FIELD_NUMBER

public static final int BOOL_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

INT_VALUE_FIELD_NUMBER

public static final int INT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

STRING_VALUE_FIELD_NUMBER

public static final int STRING_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AttributeValue getDefaultInstance()
Returns
TypeDescription
AttributeValue

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AttributeValue.Builder newBuilder()
Returns
TypeDescription
AttributeValue.Builder

newBuilder(AttributeValue prototype)

public static AttributeValue.Builder newBuilder(AttributeValue prototype)
Parameter
NameDescription
prototypeAttributeValue
Returns
TypeDescription
AttributeValue.Builder

parseDelimitedFrom(InputStream input)

public static AttributeValue parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttributeValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AttributeValue parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AttributeValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AttributeValue parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AttributeValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AttributeValue parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AttributeValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AttributeValue parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AttributeValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AttributeValue parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AttributeValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AttributeValue> parser()
Returns
TypeDescription
Parser<AttributeValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getBoolValue()

public boolean getBoolValue()

A Boolean value represented by true or false.

bool bool_value = 3;

Returns
TypeDescription
boolean

The boolValue.

getDefaultInstanceForType()

public AttributeValue getDefaultInstanceForType()
Returns
TypeDescription
AttributeValue

getIntValue()

public long getIntValue()

A 64-bit signed integer.

int64 int_value = 2;

Returns
TypeDescription
long

The intValue.

getParserForType()

public Parser<AttributeValue> getParserForType()
Returns
TypeDescription
Parser<AttributeValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStringValue()

public TruncatableString getStringValue()

A string up to 256 bytes long.

.google.devtools.cloudtrace.v2.TruncatableString string_value = 1;

Returns
TypeDescription
TruncatableString

The stringValue.

getStringValueOrBuilder()

public TruncatableStringOrBuilder getStringValueOrBuilder()

A string up to 256 bytes long.

.google.devtools.cloudtrace.v2.TruncatableString string_value = 1;

Returns
TypeDescription
TruncatableStringOrBuilder

getValueCase()

public AttributeValue.ValueCase getValueCase()
Returns
TypeDescription
AttributeValue.ValueCase

hasBoolValue()

public boolean hasBoolValue()

A Boolean value represented by true or false.

bool bool_value = 3;

Returns
TypeDescription
boolean

Whether the boolValue field is set.

hasIntValue()

public boolean hasIntValue()

A 64-bit signed integer.

int64 int_value = 2;

Returns
TypeDescription
boolean

Whether the intValue field is set.

hasStringValue()

public boolean hasStringValue()

A string up to 256 bytes long.

.google.devtools.cloudtrace.v2.TruncatableString string_value = 1;

Returns
TypeDescription
boolean

Whether the stringValue field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AttributeValue.Builder newBuilderForType()
Returns
TypeDescription
AttributeValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AttributeValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AttributeValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AttributeValue.Builder toBuilder()
Returns
TypeDescription
AttributeValue.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException