Class BatchProcessDocumentsRequest.Builder (2.48.0)

public static final class BatchProcessDocumentsRequest.Builder extends GeneratedMessageV3.Builder<BatchProcessDocumentsRequest.Builder> implements BatchProcessDocumentsRequestOrBuilder

Request to batch process documents as an asynchronous operation. The output is written to Cloud Storage as JSON in the [Document] format.

Protobuf type google.cloud.documentai.v1beta2.BatchProcessDocumentsRequest

Static Methods

getDescriptor()

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

Methods

addAllRequests(Iterable<? extends ProcessDocumentRequest> values)

public BatchProcessDocumentsRequest.Builder addAllRequests(Iterable<? extends ProcessDocumentRequest> values)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.cloud.documentai.v1beta2.ProcessDocumentRequest>
Returns
Type Description
BatchProcessDocumentsRequest.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRequests(ProcessDocumentRequest value)

public BatchProcessDocumentsRequest.Builder addRequests(ProcessDocumentRequest value)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ProcessDocumentRequest
Returns
Type Description
BatchProcessDocumentsRequest.Builder

addRequests(ProcessDocumentRequest.Builder builderForValue)

public BatchProcessDocumentsRequest.Builder addRequests(ProcessDocumentRequest.Builder builderForValue)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ProcessDocumentRequest.Builder
Returns
Type Description
BatchProcessDocumentsRequest.Builder

addRequests(int index, ProcessDocumentRequest value)

public BatchProcessDocumentsRequest.Builder addRequests(int index, ProcessDocumentRequest value)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ProcessDocumentRequest
Returns
Type Description
BatchProcessDocumentsRequest.Builder

addRequests(int index, ProcessDocumentRequest.Builder builderForValue)

public BatchProcessDocumentsRequest.Builder addRequests(int index, ProcessDocumentRequest.Builder builderForValue)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ProcessDocumentRequest.Builder
Returns
Type Description
BatchProcessDocumentsRequest.Builder

addRequestsBuilder()

public ProcessDocumentRequest.Builder addRequestsBuilder()

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProcessDocumentRequest.Builder

addRequestsBuilder(int index)

public ProcessDocumentRequest.Builder addRequestsBuilder(int index)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentRequest.Builder

build()

public BatchProcessDocumentsRequest build()
Returns
Type Description
BatchProcessDocumentsRequest

buildPartial()

public BatchProcessDocumentsRequest buildPartial()
Returns
Type Description
BatchProcessDocumentsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public BatchProcessDocumentsRequest.Builder clearParent()

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 2;

Returns
Type Description
BatchProcessDocumentsRequest.Builder

This builder for chaining.

clearRequests()

public BatchProcessDocumentsRequest.Builder clearRequests()

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BatchProcessDocumentsRequest.Builder

clone()

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

getDefaultInstanceForType()

public BatchProcessDocumentsRequest getDefaultInstanceForType()
Returns
Type Description
BatchProcessDocumentsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 2;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 2;

Returns
Type Description
ByteString

The bytes for parent.

getRequests(int index)

public ProcessDocumentRequest getRequests(int index)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentRequest

getRequestsBuilder(int index)

public ProcessDocumentRequest.Builder getRequestsBuilder(int index)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentRequest.Builder

getRequestsBuilderList()

public List<ProcessDocumentRequest.Builder> getRequestsBuilderList()

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRequestsCount()

public int getRequestsCount()

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRequestsList()

public List<ProcessDocumentRequest> getRequestsList()

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<ProcessDocumentRequest>

getRequestsOrBuilder(int index)

public ProcessDocumentRequestOrBuilder getRequestsOrBuilder(int index)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ProcessDocumentRequestOrBuilder

getRequestsOrBuilderList()

public List<? extends ProcessDocumentRequestOrBuilder> getRequestsOrBuilderList()

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.documentai.v1beta2.ProcessDocumentRequestOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BatchProcessDocumentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRequests(int index)

public BatchProcessDocumentsRequest.Builder removeRequests(int index)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
BatchProcessDocumentsRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public BatchProcessDocumentsRequest.Builder setParent(String value)

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 2;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
BatchProcessDocumentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public BatchProcessDocumentsRequest.Builder setParentBytes(ByteString value)

Target project and location to make a call.

Format: projects/{project-id}/locations/{location-id}.

If no location is specified, a region will be chosen automatically.

string parent = 2;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
BatchProcessDocumentsRequest.Builder

This builder for chaining.

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

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

setRequests(int index, ProcessDocumentRequest value)

public BatchProcessDocumentsRequest.Builder setRequests(int index, ProcessDocumentRequest value)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value ProcessDocumentRequest
Returns
Type Description
BatchProcessDocumentsRequest.Builder

setRequests(int index, ProcessDocumentRequest.Builder builderForValue)

public BatchProcessDocumentsRequest.Builder setRequests(int index, ProcessDocumentRequest.Builder builderForValue)

Required. Individual requests for each document.

repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue ProcessDocumentRequest.Builder
Returns
Type Description
BatchProcessDocumentsRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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