public static final class ListCollectionsResponse.Builder extends GeneratedMessage.Builder<ListCollectionsResponse.Builder> implements ListCollectionsResponseOrBuilderResponse message for ListCollections.
Protobuf type google.cloud.visionai.v1.ListCollectionsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListCollectionsResponse.BuilderImplements
ListCollectionsResponseOrBuilderStatic 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 |
|
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 |
|
clearCollections()
public ListCollectionsResponse.Builder clearCollections()The collections from the specified corpus.
repeated .google.cloud.visionai.v1.Collection collections = 1;
| Returns | |
|---|---|
| Type | Description |
ListCollectionsResponse.Builder |
|
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. |
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 |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListCollectionsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListCollectionsResponse.Builder |
|
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 |
|
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 |
StringThe 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 |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListCollectionsResponse.Builder |
This builder for chaining. |