Class TextArray.Builder (0.1.0)

public static final class TextArray.Builder extends GeneratedMessageV3.Builder<TextArray.Builder> implements TextArrayOrBuilder

String/text values.

Protobuf type google.cloud.contentwarehouse.v1.TextArray

Implements

TextArrayOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllValues(Iterable<String> values)

public TextArray.Builder addAllValues(Iterable<String> values)

List of text values.

repeated string values = 1;

Parameter
NameDescription
valuesIterable<String>

The values to add.

Returns
TypeDescription
TextArray.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addValues(String value)

public TextArray.Builder addValues(String value)

List of text values.

repeated string values = 1;

Parameter
NameDescription
valueString

The values to add.

Returns
TypeDescription
TextArray.Builder

This builder for chaining.

addValuesBytes(ByteString value)

public TextArray.Builder addValuesBytes(ByteString value)

List of text values.

repeated string values = 1;

Parameter
NameDescription
valueByteString

The bytes of the values to add.

Returns
TypeDescription
TextArray.Builder

This builder for chaining.

build()

public TextArray build()
Returns
TypeDescription
TextArray

buildPartial()

public TextArray buildPartial()
Returns
TypeDescription
TextArray

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValues()

public TextArray.Builder clearValues()

List of text values.

repeated string values = 1;

Returns
TypeDescription
TextArray.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TextArray getDefaultInstanceForType()
Returns
TypeDescription
TextArray

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getValues(int index)

public String getValues(int index)

List of text values.

repeated string values = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The values at the given index.

getValuesBytes(int index)

public ByteString getValuesBytes(int index)

List of text values.

repeated string values = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the values at the given index.

getValuesCount()

public int getValuesCount()

List of text values.

repeated string values = 1;

Returns
TypeDescription
int

The count of values.

getValuesList()

public ProtocolStringList getValuesList()

List of text values.

repeated string values = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the values.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TextArray other)

public TextArray.Builder mergeFrom(TextArray other)
Parameter
NameDescription
otherTextArray
Returns
TypeDescription
TextArray.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, String value)

public TextArray.Builder setValues(int index, String value)

List of text values.

repeated string values = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The values to set.

Returns
TypeDescription
TextArray.Builder

This builder for chaining.