public static final class ListCorporaResponse.Builder extends GeneratedMessageV3.Builder<ListCorporaResponse.Builder> implements ListCorporaResponseOrBuilder
Response message for ListCorpora.
Protobuf type google.cloud.visionai.v1.ListCorporaResponse
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
addAllCorpora(Iterable<? extends Corpus> values)
public ListCorporaResponse.Builder addAllCorpora(Iterable<? extends Corpus> values)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.visionai.v1.Corpus>
|
addCorpora(Corpus value)
public ListCorporaResponse.Builder addCorpora(Corpus value)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameter |
Name |
Description |
value |
Corpus
|
addCorpora(Corpus.Builder builderForValue)
public ListCorporaResponse.Builder addCorpora(Corpus.Builder builderForValue)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
addCorpora(int index, Corpus value)
public ListCorporaResponse.Builder addCorpora(int index, Corpus value)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Corpus
|
addCorpora(int index, Corpus.Builder builderForValue)
public ListCorporaResponse.Builder addCorpora(int index, Corpus.Builder builderForValue)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
addCorporaBuilder()
public Corpus.Builder addCorporaBuilder()
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
addCorporaBuilder(int index)
public Corpus.Builder addCorporaBuilder(int index)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListCorporaResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListCorporaResponse build()
buildPartial()
public ListCorporaResponse buildPartial()
clear()
public ListCorporaResponse.Builder clear()
Overrides
clearCorpora()
public ListCorporaResponse.Builder clearCorpora()
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
clearField(Descriptors.FieldDescriptor field)
public ListCorporaResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListCorporaResponse.Builder clearNextPageToken()
A token to retrieve next page of results.
Pass to
ListCorporaRequest.page_token
to obtain that page.
string next_page_token = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListCorporaResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ListCorporaResponse.Builder clone()
Overrides
getCorpora(int index)
public Corpus getCorpora(int index)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameter |
Name |
Description |
index |
int
|
Returns |
Type |
Description |
Corpus |
|
getCorporaBuilder(int index)
public Corpus.Builder getCorporaBuilder(int index)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameter |
Name |
Description |
index |
int
|
getCorporaBuilderList()
public List<Corpus.Builder> getCorporaBuilderList()
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
getCorporaCount()
public int getCorporaCount()
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Returns |
Type |
Description |
int |
|
getCorporaList()
public List<Corpus> getCorporaList()
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
getCorporaOrBuilder(int index)
public CorpusOrBuilder getCorporaOrBuilder(int index)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameter |
Name |
Description |
index |
int
|
getCorporaOrBuilderList()
public List<? extends CorpusOrBuilder> getCorporaOrBuilderList()
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.visionai.v1.CorpusOrBuilder> |
|
getDefaultInstanceForType()
public ListCorporaResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
A token to retrieve next page of results.
Pass to
ListCorporaRequest.page_token
to obtain that page.
string next_page_token = 2;
Returns |
Type |
Description |
String |
The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A token to retrieve next page of results.
Pass to
ListCorporaRequest.page_token
to obtain that page.
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(ListCorporaResponse other)
public ListCorporaResponse.Builder mergeFrom(ListCorporaResponse other)
public ListCorporaResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListCorporaResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListCorporaResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeCorpora(int index)
public ListCorporaResponse.Builder removeCorpora(int index)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameter |
Name |
Description |
index |
int
|
setCorpora(int index, Corpus value)
public ListCorporaResponse.Builder setCorpora(int index, Corpus value)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
Parameters |
Name |
Description |
index |
int
|
value |
Corpus
|
setCorpora(int index, Corpus.Builder builderForValue)
public ListCorporaResponse.Builder setCorpora(int index, Corpus.Builder builderForValue)
The corpora in the project.
repeated .google.cloud.visionai.v1.Corpus corpora = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public ListCorporaResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListCorporaResponse.Builder setNextPageToken(String value)
A token to retrieve next page of results.
Pass to
ListCorporaRequest.page_token
to obtain that page.
string next_page_token = 2;
Parameter |
Name |
Description |
value |
String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListCorporaResponse.Builder setNextPageTokenBytes(ByteString value)
A token to retrieve next page of results.
Pass to
ListCorporaRequest.page_token
to obtain that page.
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 ListCorporaResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListCorporaResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides