Class ListProcessorTypesRequest.Builder (2.45.0)

public static final class ListProcessorTypesRequest.Builder extends GeneratedMessageV3.Builder<ListProcessorTypesRequest.Builder> implements ListProcessorTypesRequestOrBuilder

Request message for the ListProcessorTypes method. Some processor types may require the project be added to an allowlist.

Protobuf type google.cloud.documentai.v1beta3.ListProcessorTypesRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListProcessorTypesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

build()

public ListProcessorTypesRequest build()
Returns
TypeDescription
ListProcessorTypesRequest

buildPartial()

public ListProcessorTypesRequest buildPartial()
Returns
TypeDescription
ListProcessorTypesRequest

clear()

public ListProcessorTypesRequest.Builder clear()
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListProcessorTypesRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ListProcessorTypesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

clearPageSize()

public ListProcessorTypesRequest.Builder clearPageSize()

The maximum number of processor types to return. If unspecified, at most 100 processor types will be returned. The maximum value is 500. Values above 500 will be coerced to 500.

int32 page_size = 2;

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

clearPageToken()

public ListProcessorTypesRequest.Builder clearPageToken()

Used to retrieve the next page of results, empty if at the end of the list.

string page_token = 3;

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

clearParent()

public ListProcessorTypesRequest.Builder clearParent()

Required. The location of processor types to list. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

clone()

public ListProcessorTypesRequest.Builder clone()
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

getDefaultInstanceForType()

public ListProcessorTypesRequest getDefaultInstanceForType()
Returns
TypeDescription
ListProcessorTypesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPageSize()

public int getPageSize()

The maximum number of processor types to return. If unspecified, at most 100 processor types will be returned. The maximum value is 500. Values above 500 will be coerced to 500.

int32 page_size = 2;

Returns
TypeDescription
int

The pageSize.

getPageToken()

public String getPageToken()

Used to retrieve the next page of results, empty if at the end of the list.

string page_token = 3;

Returns
TypeDescription
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Used to retrieve the next page of results, empty if at the end of the list.

string page_token = 3;

Returns
TypeDescription
ByteString

The bytes for pageToken.

getParent()

public String getParent()

Required. The location of processor types to list. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The location of processor types to list. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListProcessorTypesRequest other)

public ListProcessorTypesRequest.Builder mergeFrom(ListProcessorTypesRequest other)
Parameter
NameDescription
otherListProcessorTypesRequest
Returns
TypeDescription
ListProcessorTypesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListProcessorTypesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListProcessorTypesRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListProcessorTypesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ListProcessorTypesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

setPageSize(int value)

public ListProcessorTypesRequest.Builder setPageSize(int value)

The maximum number of processor types to return. If unspecified, at most 100 processor types will be returned. The maximum value is 500. Values above 500 will be coerced to 500.

int32 page_size = 2;

Parameter
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListProcessorTypesRequest.Builder setPageToken(String value)

Used to retrieve the next page of results, empty if at the end of the list.

string page_token = 3;

Parameter
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListProcessorTypesRequest.Builder setPageTokenBytes(ByteString value)

Used to retrieve the next page of results, empty if at the end of the list.

string page_token = 3;

Parameter
NameDescription
valueByteString

The bytes for pageToken to set.

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

setParent(String value)

public ListProcessorTypesRequest.Builder setParent(String value)

Required. The location of processor types to list. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ListProcessorTypesRequest.Builder setParentBytes(ByteString value)

Required. The location of processor types to list. Format: projects/{project}/locations/{location}.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
ListProcessorTypesRequest.Builder

This builder for chaining.

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

public ListProcessorTypesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListProcessorTypesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListProcessorTypesRequest.Builder
Overrides