Class ListCorporaResponse.Builder (0.4.0)

public static final class ListCorporaResponse.Builder extends GeneratedMessageV3.Builder<ListCorporaResponse.Builder> implements ListCorporaResponseOrBuilder

Response message for ListCorpora.

Protobuf type google.cloud.visionai.v1.ListCorporaResponse

Static Methods

getDescriptor()

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

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>
Returns
Type Description
ListCorporaResponse.Builder

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
Returns
Type Description
ListCorporaResponse.Builder

addCorpora(Corpus.Builder builderForValue)

public ListCorporaResponse.Builder addCorpora(Corpus.Builder builderForValue)

The corpora in the project.

repeated .google.cloud.visionai.v1.Corpus corpora = 1;

Parameter
Name Description
builderForValue Corpus.Builder
Returns
Type Description
ListCorporaResponse.Builder

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
Returns
Type Description
ListCorporaResponse.Builder

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;

Parameters
Name Description
index int
builderForValue Corpus.Builder
Returns
Type Description
ListCorporaResponse.Builder

addCorporaBuilder()

public Corpus.Builder addCorporaBuilder()

The corpora in the project.

repeated .google.cloud.visionai.v1.Corpus corpora = 1;

Returns
Type Description
Corpus.Builder

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
Returns
Type Description
Corpus.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCorporaResponse build()
Returns
Type Description
ListCorporaResponse

buildPartial()

public ListCorporaResponse buildPartial()
Returns
Type Description
ListCorporaResponse

clear()

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

clearCorpora()

public ListCorporaResponse.Builder clearCorpora()

The corpora in the project.

repeated .google.cloud.visionai.v1.Corpus corpora = 1;

Returns
Type Description
ListCorporaResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCorporaResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListCorporaResponse.Builder
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;

Returns
Type Description
ListCorporaResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListCorporaResponse.Builder clone()
Returns
Type Description
ListCorporaResponse.Builder
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
Returns
Type Description
Corpus.Builder

getCorporaBuilderList()

public List<Corpus.Builder> getCorporaBuilderList()

The corpora in the project.

repeated .google.cloud.visionai.v1.Corpus corpora = 1;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<Corpus>

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
Returns
Type Description
CorpusOrBuilder

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()
Returns
Type Description
ListCorporaResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCorporaResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCorporaResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListCorporaResponse.Builder
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
Returns
Type Description
ListCorporaResponse.Builder

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
Returns
Type Description
ListCorporaResponse.Builder

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;

Parameters
Name Description
index int
builderForValue Corpus.Builder
Returns
Type Description
ListCorporaResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListCorporaResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListCorporaResponse.Builder
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.

Returns
Type Description
ListCorporaResponse.Builder

This builder for chaining.

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.

Returns
Type Description
ListCorporaResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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