Class AttributeValue (2.9.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 2.9.0keyboard_arrow_down
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
public static final int BOOL_VALUE_FIELD_NUMBER
Field Value
public static final int INT_VALUE_FIELD_NUMBER
Field Value
public static final int STRING_VALUE_FIELD_NUMBER
Field Value
Static Methods
public static AttributeValue getDefaultInstance ()
Returns
public static final Descriptors . Descriptor getDescriptor ()
Returns
public static AttributeValue . Builder newBuilder ()
Returns
public static AttributeValue . Builder newBuilder ( AttributeValue prototype )
Parameter
Returns
public static AttributeValue parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static AttributeValue parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static AttributeValue parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
Returns
Exceptions
public static AttributeValue parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static AttributeValue parseFrom ( ByteString data )
Parameter
Returns
Exceptions
public static AttributeValue parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static AttributeValue parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static AttributeValue parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static AttributeValue parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static AttributeValue parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static AttributeValue parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
public static AttributeValue parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Parser<AttributeValue> parser ()
Returns
Methods
public boolean equals ( Object obj )
Parameter
Returns
Overrides
public boolean getBoolValue ()
A Boolean value represented by true
or false
.
bool bool_value = 3;
Returns
Type
Description
boolean
The boolValue.
public AttributeValue getDefaultInstanceForType ()
Returns
public long getIntValue ()
A 64-bit signed integer.
int64 int_value = 2;
Returns
Type
Description
long
The intValue.
public Parser<AttributeValue> getParserForType ()
Returns
Overrides
public int getSerializedSize ()
Returns
Overrides
public TruncatableString getStringValue ()
A string up to 256 bytes long.
.google.devtools.cloudtrace.v2.TruncatableString string_value = 1;
Returns
public TruncatableStringOrBuilder getStringValueOrBuilder ()
A string up to 256 bytes long.
.google.devtools.cloudtrace.v2.TruncatableString string_value = 1;
Returns
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
public AttributeValue . ValueCase getValueCase ()
Returns
public boolean hasBoolValue ()
A Boolean value represented by true
or false
.
bool bool_value = 3;
Returns
Type
Description
boolean
Whether the boolValue field is set.
public boolean hasIntValue ()
A 64-bit signed integer.
int64 int_value = 2;
Returns
Type
Description
boolean
Whether the intValue field is set.
public boolean hasStringValue ()
A string up to 256 bytes long.
.google.devtools.cloudtrace.v2.TruncatableString string_value = 1;
Returns
Type
Description
boolean
Whether the stringValue field is set.
Returns
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
public final boolean isInitialized ()
Returns
Overrides
public AttributeValue . Builder newBuilderForType ()
Returns
protected AttributeValue . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
public AttributeValue . Builder toBuilder ()
Returns
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-02 UTC."],[],[]]