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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AttributeValues.BuilderImplements
AttributeValuesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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;
Name | Description |
values | Iterable<? extends com.google.protobuf.ByteString> The values to add. |
Type | Description |
AttributeValues.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AttributeValues.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AttributeValues.Builder |
addValues(ByteString value)
public AttributeValues.Builder addValues(ByteString value)
The list of values associated with a key.
repeated bytes values = 1;
Name | Description |
value | ByteString The values to add. |
Type | Description |
AttributeValues.Builder | This builder for chaining. |
build()
public AttributeValues build()
Type | Description |
AttributeValues |
buildPartial()
public AttributeValues buildPartial()
Type | Description |
AttributeValues |
clear()
public AttributeValues.Builder clear()
Type | Description |
AttributeValues.Builder |
clearField(Descriptors.FieldDescriptor field)
public AttributeValues.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AttributeValues.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AttributeValues.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
AttributeValues.Builder |
clearValues()
public AttributeValues.Builder clearValues()
The list of values associated with a key.
repeated bytes values = 1;
Type | Description |
AttributeValues.Builder | This builder for chaining. |
clone()
public AttributeValues.Builder clone()
Type | Description |
AttributeValues.Builder |
getDefaultInstanceForType()
public AttributeValues getDefaultInstanceForType()
Type | Description |
AttributeValues |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getValues(int index)
public ByteString getValues(int index)
The list of values associated with a key.
repeated bytes values = 1;
Name | Description |
index | int The index of the element to return. |
Type | Description |
ByteString | The values at the given index. |
getValuesCount()
public int getValuesCount()
The list of values associated with a key.
repeated bytes values = 1;
Type | Description |
int | The count of values. |
getValuesList()
public List<ByteString> getValuesList()
The list of values associated with a key.
repeated bytes values = 1;
Type | Description |
List<ByteString> | A list containing the values. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AttributeValues other)
public AttributeValues.Builder mergeFrom(AttributeValues other)
Name | Description |
other | AttributeValues |
Type | Description |
AttributeValues.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AttributeValues.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AttributeValues.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AttributeValues.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AttributeValues.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AttributeValues.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AttributeValues.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public AttributeValues.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AttributeValues.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AttributeValues.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
AttributeValues.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AttributeValues.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AttributeValues.Builder |
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;
Name | Description |
index | int The index to set the value at. |
value | ByteString The values to set. |
Type | Description |
AttributeValues.Builder | This builder for chaining. |