Class ListCollectionsResponse.Builder (0.9.0)

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

Response message for ListCollections.

Protobuf type google.cloud.visionai.v1.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 collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

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

addCollections(Collection value)

public ListCollectionsResponse.Builder addCollections(Collection value)

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.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 collections from the specified corpus.

repeated .google.cloud.visionai.v1.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 collections from the specified corpus.

repeated .google.cloud.visionai.v1.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 collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

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

addCollectionsBuilder()

public Collection.Builder addCollectionsBuilder()

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Returns
Type Description
Collection.Builder

addCollectionsBuilder(int index)

public Collection.Builder addCollectionsBuilder(int index)

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
Collection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListCollectionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListCollectionsResponse.Builder
Overrides

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 collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Returns
Type Description
ListCollectionsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCollectionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListCollectionsResponse.Builder
Overrides

clearNextPageToken()

public ListCollectionsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListCollectionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListCollectionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListCollectionsResponse.Builder
Overrides

clone()

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

getCollections(int index)

public Collection getCollections(int index)

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
Collection

getCollectionsBuilder(int index)

public Collection.Builder getCollectionsBuilder(int index)

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
Collection.Builder

getCollectionsBuilderList()

public List<Collection.Builder> getCollectionsBuilderList()

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Returns
Type Description
List<Builder>

getCollectionsCount()

public int getCollectionsCount()

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Returns
Type Description
int

getCollectionsList()

public List<Collection> getCollectionsList()

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Returns
Type Description
List<Collection>

getCollectionsOrBuilder(int index)

public CollectionOrBuilder getCollectionsOrBuilder(int index)

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Parameter
Name Description
index int
Returns
Type Description
CollectionOrBuilder

getCollectionsOrBuilderList()

public List<? extends CollectionOrBuilder> getCollectionsOrBuilderList()

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.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, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCollectionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListCollectionsResponse.Builder
Overrides

removeCollections(int index)

public ListCollectionsResponse.Builder removeCollections(int index)

The collections from the specified corpus.

repeated .google.cloud.visionai.v1.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 collections from the specified corpus.

repeated .google.cloud.visionai.v1.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 collections from the specified corpus.

repeated .google.cloud.visionai.v1.Collection collections = 1;

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListCollectionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListCollectionsResponse.Builder
Overrides

setNextPageToken(String value)

public ListCollectionsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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.

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

public ListCollectionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListCollectionsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListCollectionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListCollectionsResponse.Builder
Overrides