Class ListCollectionIdsResponse.Builder (3.14.1)

public static final class ListCollectionIdsResponse.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addAllCollectionIds(Iterable<String> values)

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

The collection ids.

repeated string collection_ids = 1;

Parameter
NameDescription
valuesIterable<String>

The collectionIds to add.

Returns
TypeDescription
ListCollectionIdsResponse.Builder

This builder for chaining.

addCollectionIds(String value)

public ListCollectionIdsResponse.Builder addCollectionIds(String value)

The collection ids.

repeated string collection_ids = 1;

Parameter
NameDescription
valueString

The collectionIds to add.

Returns
TypeDescription
ListCollectionIdsResponse.Builder

This builder for chaining.

addCollectionIdsBytes(ByteString value)

public ListCollectionIdsResponse.Builder addCollectionIdsBytes(ByteString value)

The collection ids.

repeated string collection_ids = 1;

Parameter
NameDescription
valueByteString

The bytes of the collectionIds to add.

Returns
TypeDescription
ListCollectionIdsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCollectionIdsResponse build()
Returns
TypeDescription
ListCollectionIdsResponse

buildPartial()

public ListCollectionIdsResponse buildPartial()
Returns
TypeDescription
ListCollectionIdsResponse

clear()

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

clearCollectionIds()

public ListCollectionIdsResponse.Builder clearCollectionIds()

The collection ids.

repeated string collection_ids = 1;

Returns
TypeDescription
ListCollectionIdsResponse.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCollectionIdsResponse.Builder clearNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
ListCollectionIdsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCollectionIds(int index)

public String getCollectionIds(int index)

The collection ids.

repeated string collection_ids = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The collectionIds at the given index.

getCollectionIdsBytes(int index)

public ByteString getCollectionIdsBytes(int index)

The collection ids.

repeated string collection_ids = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the collectionIds at the given index.

getCollectionIdsCount()

public int getCollectionIdsCount()

The collection ids.

repeated string collection_ids = 1;

Returns
TypeDescription
int

The count of collectionIds.

getCollectionIdsList()

public ProtocolStringList getCollectionIdsList()

The collection ids.

repeated string collection_ids = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the collectionIds.

getDefaultInstanceForType()

public ListCollectionIdsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCollectionIdsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

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

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCollectionIdsResponse other)

public ListCollectionIdsResponse.Builder mergeFrom(ListCollectionIdsResponse other)
Parameter
NameDescription
otherListCollectionIdsResponse
Returns
TypeDescription
ListCollectionIdsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCollectionIdsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The collectionIds to set.

Returns
TypeDescription
ListCollectionIdsResponse.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListCollectionIdsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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