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