Class StringList.Builder (0.27.0)

public static final class StringList.Builder extends GeneratedMessage.Builder<StringList.Builder> implements StringListOrBuilder

StringList is a wrapper for a repeated list of strings.

Protobuf type google.cloud.geminidataanalytics.v1beta.StringList

Implements

StringListOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllList(Iterable<String> values)

public StringList.Builder addAllList(Iterable<String> values)

The list of strings.

repeated string list = 1;

Parameter
Name Description
values Iterable<String>

The list to add.

Returns
Type Description
StringList.Builder

This builder for chaining.

addList(String value)

public StringList.Builder addList(String value)

The list of strings.

repeated string list = 1;

Parameter
Name Description
value String

The list to add.

Returns
Type Description
StringList.Builder

This builder for chaining.

addListBytes(ByteString value)

public StringList.Builder addListBytes(ByteString value)

The list of strings.

repeated string list = 1;

Parameter
Name Description
value ByteString

The bytes of the list to add.

Returns
Type Description
StringList.Builder

This builder for chaining.

build()

public StringList build()
Returns
Type Description
StringList

buildPartial()

public StringList buildPartial()
Returns
Type Description
StringList

clear()

public StringList.Builder clear()
Returns
Type Description
StringList.Builder
Overrides

clearList()

public StringList.Builder clearList()

The list of strings.

repeated string list = 1;

Returns
Type Description
StringList.Builder

This builder for chaining.

getDefaultInstanceForType()

public StringList getDefaultInstanceForType()
Returns
Type Description
StringList

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getList(int index)

public String getList(int index)

The list of strings.

repeated string list = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The list at the given index.

getListBytes(int index)

public ByteString getListBytes(int index)

The list of strings.

repeated string list = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the list at the given index.

getListCount()

public int getListCount()

The list of strings.

repeated string list = 1;

Returns
Type Description
int

The count of list.

getListList()

public ProtocolStringList getListList()

The list of strings.

repeated string list = 1;

Returns
Type Description
ProtocolStringList

A list containing the list.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StringList other)

public StringList.Builder mergeFrom(StringList other)
Parameter
Name Description
other StringList
Returns
Type Description
StringList.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StringList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StringList.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StringList.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StringList.Builder
Overrides

setList(int index, String value)

public StringList.Builder setList(int index, String value)

The list of strings.

repeated string list = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The list to set.

Returns
Type Description
StringList.Builder

This builder for chaining.