Class ListCorporaRequest.Builder (0.12.0)

public static final class ListCorporaRequest.Builder extends GeneratedMessageV3.Builder<ListCorporaRequest.Builder> implements ListCorporaRequestOrBuilder

Request message for ListCorpora.

Protobuf type google.cloud.visionai.v1.ListCorporaRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCorporaRequest build()
Returns
Type Description
ListCorporaRequest

buildPartial()

public ListCorporaRequest buildPartial()
Returns
Type Description
ListCorporaRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public ListCorporaRequest.Builder clearFilter()

The filter applied to the returned corpora list. Only the following restrictions are supported: type=<Corpus.Type>, type!=<Corpus.Type>.

string filter = 5;

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListCorporaRequest.Builder clearPageSize()

Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick use the maximum size, which is 20.

int32 page_size = 2;

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

clearPageToken()

public ListCorporaRequest.Builder clearPageToken()

A token identifying a page of results for the server to return. Typically obtained via ListCorporaResponse.next_page_token of the previous Warehouse.ListCorpora call.

string page_token = 3;

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

clearParent()

public ListCorporaRequest.Builder clearParent()

Required. The resource name of the project from which to list corpora.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListCorporaRequest getDefaultInstanceForType()
Returns
Type Description
ListCorporaRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFilter()

public String getFilter()

The filter applied to the returned corpora list. Only the following restrictions are supported: type=<Corpus.Type>, type!=<Corpus.Type>.

string filter = 5;

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

The filter applied to the returned corpora list. Only the following restrictions are supported: type=<Corpus.Type>, type!=<Corpus.Type>.

string filter = 5;

Returns
Type Description
ByteString

The bytes for filter.

getPageSize()

public int getPageSize()

Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick use the maximum size, which is 20.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A token identifying a page of results for the server to return. Typically obtained via ListCorporaResponse.next_page_token of the previous Warehouse.ListCorpora call.

string page_token = 3;

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A token identifying a page of results for the server to return. Typically obtained via ListCorporaResponse.next_page_token of the previous Warehouse.ListCorpora call.

string page_token = 3;

Returns
Type Description
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The resource name of the project from which to list corpora.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the project from which to list corpora.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCorporaRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public ListCorporaRequest.Builder setFilter(String value)

The filter applied to the returned corpora list. Only the following restrictions are supported: type=<Corpus.Type>, type!=<Corpus.Type>.

string filter = 5;

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public ListCorporaRequest.Builder setFilterBytes(ByteString value)

The filter applied to the returned corpora list. Only the following restrictions are supported: type=<Corpus.Type>, type!=<Corpus.Type>.

string filter = 5;

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

setPageSize(int value)

public ListCorporaRequest.Builder setPageSize(int value)

Requested page size. API may return fewer results than requested. If negative, INVALID_ARGUMENT error will be returned. If unspecified or 0, API will pick a default size, which is 10. If the requested page size is larger than the maximum size, API will pick use the maximum size, which is 20.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListCorporaRequest.Builder setPageToken(String value)

A token identifying a page of results for the server to return. Typically obtained via ListCorporaResponse.next_page_token of the previous Warehouse.ListCorpora call.

string page_token = 3;

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListCorporaRequest.Builder setPageTokenBytes(ByteString value)

A token identifying a page of results for the server to return. Typically obtained via ListCorporaResponse.next_page_token of the previous Warehouse.ListCorpora call.

string page_token = 3;

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

setParent(String value)

public ListCorporaRequest.Builder setParent(String value)

Required. The resource name of the project from which to list corpora.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListCorporaRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the project from which to list corpora.

string parent = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ListCorporaRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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