Class AttributeValue.Builder (2.32.0)

public static final class AttributeValue.Builder extends GeneratedMessageV3.Builder<AttributeValue.Builder> implements AttributeValueOrBuilder

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

Protobuf type google.devtools.cloudtrace.v2.AttributeValue

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AttributeValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeValue.Builder
Overrides

build()

public AttributeValue build()
Returns
TypeDescription
AttributeValue

buildPartial()

public AttributeValue buildPartial()
Returns
TypeDescription
AttributeValue

clear()

public AttributeValue.Builder clear()
Returns
TypeDescription
AttributeValue.Builder
Overrides

clearBoolValue()

public AttributeValue.Builder clearBoolValue()

A Boolean value represented by true or false.

bool bool_value = 3;

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public AttributeValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AttributeValue.Builder
Overrides

clearIntValue()

public AttributeValue.Builder clearIntValue()

A 64-bit signed integer.

int64 int_value = 2;

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AttributeValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AttributeValue.Builder
Overrides

clearStringValue()

public AttributeValue.Builder clearStringValue()

A string up to 256 bytes long.

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

Returns
TypeDescription
AttributeValue.Builder

clearValue()

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

clone()

public AttributeValue.Builder clone()
Returns
TypeDescription
AttributeValue.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntValue()

public long getIntValue()

A 64-bit signed integer.

int64 int_value = 2;

Returns
TypeDescription
long

The intValue.

getStringValue()

public TruncatableString getStringValue()

A string up to 256 bytes long.

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

Returns
TypeDescription
TruncatableString

The stringValue.

getStringValueBuilder()

public TruncatableString.Builder getStringValueBuilder()

A string up to 256 bytes long.

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

Returns
TypeDescription
TruncatableString.Builder

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttributeValue other)

public AttributeValue.Builder mergeFrom(AttributeValue other)
Parameter
NameDescription
otherAttributeValue
Returns
TypeDescription
AttributeValue.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AttributeValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AttributeValue.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AttributeValue.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AttributeValue.Builder
Overrides

mergeStringValue(TruncatableString value)

public AttributeValue.Builder mergeStringValue(TruncatableString value)

A string up to 256 bytes long.

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

Parameter
NameDescription
valueTruncatableString
Returns
TypeDescription
AttributeValue.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AttributeValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeValue.Builder
Overrides

setBoolValue(boolean value)

public AttributeValue.Builder setBoolValue(boolean value)

A Boolean value represented by true or false.

bool bool_value = 3;

Parameter
NameDescription
valueboolean

The boolValue to set.

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AttributeValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AttributeValue.Builder
Overrides

setIntValue(long value)

public AttributeValue.Builder setIntValue(long value)

A 64-bit signed integer.

int64 int_value = 2;

Parameter
NameDescription
valuelong

The intValue to set.

Returns
TypeDescription
AttributeValue.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AttributeValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AttributeValue.Builder
Overrides

setStringValue(TruncatableString value)

public AttributeValue.Builder setStringValue(TruncatableString value)

A string up to 256 bytes long.

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

Parameter
NameDescription
valueTruncatableString
Returns
TypeDescription
AttributeValue.Builder

setStringValue(TruncatableString.Builder builderForValue)

public AttributeValue.Builder setStringValue(TruncatableString.Builder builderForValue)

A string up to 256 bytes long.

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

Parameter
NameDescription
builderForValueTruncatableString.Builder
Returns
TypeDescription
AttributeValue.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AttributeValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AttributeValue.Builder
Overrides