Class AttributeValues.Builder (1.12.22)

public static final class AttributeValues.Builder extends GeneratedMessageV3.Builder<AttributeValues.Builder> implements AttributeValuesOrBuilder

The values associated with a key of an attribute.

Protobuf type google.cloud.pubsublite.v1.AttributeValues

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<? extends ByteString> values)

public AttributeValues.Builder addAllValues(Iterable<? extends ByteString> values)

The list of values associated with a key.

repeated bytes values = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.ByteString>

The values to add.

Returns
TypeDescription
AttributeValues.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(ByteString value)

public AttributeValues.Builder addValues(ByteString value)

The list of values associated with a key.

repeated bytes values = 1;

Parameter
NameDescription
valueByteString

The values to add.

Returns
TypeDescription
AttributeValues.Builder

This builder for chaining.

build()

public AttributeValues build()
Returns
TypeDescription
AttributeValues

buildPartial()

public AttributeValues buildPartial()
Returns
TypeDescription
AttributeValues

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public AttributeValues.Builder clearValues()

The list of values associated with a key.

repeated bytes values = 1;

Returns
TypeDescription
AttributeValues.Builder

This builder for chaining.

clone()

public AttributeValues.Builder clone()
Returns
TypeDescription
AttributeValues.Builder
Overrides

getDefaultInstanceForType()

public AttributeValues getDefaultInstanceForType()
Returns
TypeDescription
AttributeValues

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public ByteString getValues(int index)

The list of values associated with a key.

repeated bytes values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
ByteString

The values at the given index.

getValuesCount()

public int getValuesCount()

The list of values associated with a key.

repeated bytes values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public List<ByteString> getValuesList()

The list of values associated with a key.

repeated bytes values = 1;

Returns
TypeDescription
List<ByteString>

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AttributeValues other)

public AttributeValues.Builder mergeFrom(AttributeValues other)
Parameter
NameDescription
otherAttributeValues
Returns
TypeDescription
AttributeValues.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, ByteString value)

public AttributeValues.Builder setValues(int index, ByteString value)

The list of values associated with a key.

repeated bytes values = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueByteString

The values to set.

Returns
TypeDescription
AttributeValues.Builder

This builder for chaining.