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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchProcessDocumentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
build()
public BatchProcessDocumentsRequest build()
Returns
buildPartial()
public BatchProcessDocumentsRequest buildPartial()
Returns
clear()
public BatchProcessDocumentsRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public BatchProcessDocumentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchProcessDocumentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public BatchProcessDocumentsRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public BatchProcessDocumentsRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Returns
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
Returns
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
getRequestsCount()
public int getRequestsCount()
Required. Individual requests for each document.
repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
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
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
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(BatchProcessDocumentsRequest other)
public BatchProcessDocumentsRequest.Builder mergeFrom(BatchProcessDocumentsRequest other)
Parameter
Returns
public BatchProcessDocumentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public BatchProcessDocumentsRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchProcessDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public BatchProcessDocumentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchProcessDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchProcessDocumentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides