public static final class ListCollectionsResponse.Builder extends GeneratedMessageV3.Builder<ListCollectionsResponse.Builder> implements ListCollectionsResponseOrBuilder
Response message for ListCollections.
Protobuf type google.cloud.visionai.v1.ListCollectionsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addCollections(Collection value)
public ListCollectionsResponse.Builder addCollections(Collection value)
The collections from the specified corpus.
repeated .google.cloud.visionai.v1.Collection collections = 1;
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;
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;
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;
addCollectionsBuilder()
public Collection.Builder addCollectionsBuilder()
The collections from the specified corpus.
repeated .google.cloud.visionai.v1.Collection collections = 1;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListCollectionsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListCollectionsResponse build()
buildPartial()
public ListCollectionsResponse buildPartial()
clear()
public ListCollectionsResponse.Builder clear()
Overrides
clearCollections()
public ListCollectionsResponse.Builder clearCollections()
The collections from the specified corpus.
repeated .google.cloud.visionai.v1.Collection collections = 1;
clearField(Descriptors.FieldDescriptor field)
public ListCollectionsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListCollectionsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ListCollectionsResponse.Builder clone()
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
|
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
|
getCollectionsBuilderList()
public List<Collection.Builder> getCollectionsBuilderList()
The collections from the specified corpus.
repeated .google.cloud.visionai.v1.Collection collections = 1;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListCollectionsResponse other)
public ListCollectionsResponse.Builder mergeFrom(ListCollectionsResponse other)
public ListCollectionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListCollectionsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListCollectionsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ListCollectionsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListCollectionsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListCollectionsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides