Class ListCollectionIdsResponse.Builder (3.36.0)

public static final class ListCollectionIdsResponse.Builder extends GeneratedMessage.Builder<ListCollectionIdsResponse.Builder> implements ListCollectionIdsResponseOrBuilder

The response from Firestore.ListCollectionIds.

Protobuf type google.firestore.v1.ListCollectionIdsResponse

Static Methods

getDescriptor()

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

Methods

addAllCollectionIds(Iterable<String> values)

public ListCollectionIdsResponse.Builder addAllCollectionIds(Iterable<String> values)

The collection ids.

repeated string collection_ids = 1;

Parameter
Name Description
values Iterable<String>

The collectionIds to add.

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.

addCollectionIds(String value)

public ListCollectionIdsResponse.Builder addCollectionIds(String value)

The collection ids.

repeated string collection_ids = 1;

Parameter
Name Description
value String

The collectionIds to add.

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.

addCollectionIdsBytes(ByteString value)

public ListCollectionIdsResponse.Builder addCollectionIdsBytes(ByteString value)

The collection ids.

repeated string collection_ids = 1;

Parameter
Name Description
value ByteString

The bytes of the collectionIds to add.

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.

build()

public ListCollectionIdsResponse build()
Returns
Type Description
ListCollectionIdsResponse

buildPartial()

public ListCollectionIdsResponse buildPartial()
Returns
Type Description
ListCollectionIdsResponse

clear()

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

clearCollectionIds()

public ListCollectionIdsResponse.Builder clearCollectionIds()

The collection ids.

repeated string collection_ids = 1;

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.

clearNextPageToken()

public ListCollectionIdsResponse.Builder clearNextPageToken()

A page token that may be used to continue the list.

string next_page_token = 2;

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.

getCollectionIds(int index)

public String getCollectionIds(int index)

The collection ids.

repeated string collection_ids = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The collectionIds at the given index.

getCollectionIdsBytes(int index)

public ByteString getCollectionIdsBytes(int index)

The collection ids.

repeated string collection_ids = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the collectionIds at the given index.

getCollectionIdsCount()

public int getCollectionIdsCount()

The collection ids.

repeated string collection_ids = 1;

Returns
Type Description
int

The count of collectionIds.

getCollectionIdsList()

public ProtocolStringList getCollectionIdsList()

The collection ids.

repeated string collection_ids = 1;

Returns
Type Description
ProtocolStringList

A list containing the collectionIds.

getDefaultInstanceForType()

public ListCollectionIdsResponse getDefaultInstanceForType()
Returns
Type Description
ListCollectionIdsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A page token that may be used to continue the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A page token that may be used to continue the list.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCollectionIdsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCollectionIds(int index, String value)

public ListCollectionIdsResponse.Builder setCollectionIds(int index, String value)

The collection ids.

repeated string collection_ids = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The collectionIds to set.

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.

setNextPageToken(String value)

public ListCollectionIdsResponse.Builder setNextPageToken(String value)

A page token that may be used to continue the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCollectionIdsResponse.Builder setNextPageTokenBytes(ByteString value)

A page token that may be used to continue the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCollectionIdsResponse.Builder

This builder for chaining.