Class ListCollectionsResponse.Builder (0.6.0)

public static final class ListCollectionsResponse.Builder extends GeneratedMessage.Builder<ListCollectionsResponse.Builder> implements ListCollectionsResponseOrBuilder

Message for response to listing Collections

Protobuf type google.cloud.vectorsearch.v1beta.ListCollectionsResponse

Static Methods

getDescriptor()

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

Methods

addAllCollections(Iterable<? extends Collection> values)

public ListCollectionsResponse.Builder addAllCollections(Iterable<? extends Collection> values)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vectorsearch.v1beta.Collection>
Returns
Type Description
ListCollectionsResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListCollectionsResponse.Builder addAllUnreachable(Iterable<String> values)

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

addCollections(Collection value)

public ListCollectionsResponse.Builder addCollections(Collection value)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
value Collection
Returns
Type Description
ListCollectionsResponse.Builder

addCollections(Collection.Builder builderForValue)

public ListCollectionsResponse.Builder addCollections(Collection.Builder builderForValue)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
builderForValue Collection.Builder
Returns
Type Description
ListCollectionsResponse.Builder

addCollections(int index, Collection value)

public ListCollectionsResponse.Builder addCollections(int index, Collection value)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameters
Name Description
index int
value Collection
Returns
Type Description
ListCollectionsResponse.Builder

addCollections(int index, Collection.Builder builderForValue)

public ListCollectionsResponse.Builder addCollections(int index, Collection.Builder builderForValue)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameters
Name Description
index int
builderForValue Collection.Builder
Returns
Type Description
ListCollectionsResponse.Builder

addCollectionsBuilder()

public Collection.Builder addCollectionsBuilder()

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Returns
Type Description
Collection.Builder

addCollectionsBuilder(int index)

public Collection.Builder addCollectionsBuilder(int index)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
Collection.Builder

addUnreachable(String value)

public ListCollectionsResponse.Builder addUnreachable(String value)

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListCollectionsResponse.Builder addUnreachableBytes(ByteString value)

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

build()

public ListCollectionsResponse build()
Returns
Type Description
ListCollectionsResponse

buildPartial()

public ListCollectionsResponse buildPartial()
Returns
Type Description
ListCollectionsResponse

clear()

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

clearCollections()

public ListCollectionsResponse.Builder clearCollections()

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Returns
Type Description
ListCollectionsResponse.Builder

clearNextPageToken()

public ListCollectionsResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

clearUnreachable()

public ListCollectionsResponse.Builder clearUnreachable()

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

getCollections(int index)

public Collection getCollections(int index)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
Collection

getCollectionsBuilder(int index)

public Collection.Builder getCollectionsBuilder(int index)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
Collection.Builder

getCollectionsBuilderList()

public List<Collection.Builder> getCollectionsBuilderList()

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Returns
Type Description
List<Builder>

getCollectionsCount()

public int getCollectionsCount()

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Returns
Type Description
int

getCollectionsList()

public List<Collection> getCollectionsList()

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Returns
Type Description
List<Collection>

getCollectionsOrBuilder(int index)

public CollectionOrBuilder getCollectionsOrBuilder(int index)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
CollectionOrBuilder

getCollectionsOrBuilderList()

public List<? extends CollectionOrBuilder> getCollectionsOrBuilderList()

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Returns
Type Description
List<? extends com.google.cloud.vectorsearch.v1beta.CollectionOrBuilder>

getDefaultInstanceForType()

public ListCollectionsResponse getDefaultInstanceForType()
Returns
Type Description
ListCollectionsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCollectionsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

removeCollections(int index)

public ListCollectionsResponse.Builder removeCollections(int index)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCollectionsResponse.Builder

setCollections(int index, Collection value)

public ListCollectionsResponse.Builder setCollections(int index, Collection value)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameters
Name Description
index int
value Collection
Returns
Type Description
ListCollectionsResponse.Builder

setCollections(int index, Collection.Builder builderForValue)

public ListCollectionsResponse.Builder setCollections(int index, Collection.Builder builderForValue)

The list of Collection

repeated .google.cloud.vectorsearch.v1beta.Collection collections = 1;

Parameters
Name Description
index int
builderForValue Collection.Builder
Returns
Type Description
ListCollectionsResponse.Builder

setNextPageToken(String value)

public ListCollectionsResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCollectionsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

setUnreachable(int index, String value)

public ListCollectionsResponse.Builder setUnreachable(int index, String value)

Unordered list. Locations that could not be reached.

repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.