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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BatchProcessDocumentsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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];
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];
addRequestsBuilder()
public ProcessDocumentRequest.Builder addRequestsBuilder()
Required. Individual requests for each document.
repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
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
|
build()
public BatchProcessDocumentsRequest build()
buildPartial()
public BatchProcessDocumentsRequest buildPartial()
clear()
public BatchProcessDocumentsRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public BatchProcessDocumentsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BatchProcessDocumentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clearRequests()
public BatchProcessDocumentsRequest.Builder clearRequests()
Required. Individual requests for each document.
repeated .google.cloud.documentai.v1beta2.ProcessDocumentRequest requests = 1 [(.google.api.field_behavior) = REQUIRED];
clone()
public BatchProcessDocumentsRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public BatchProcessDocumentsRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BatchProcessDocumentsRequest other)
public BatchProcessDocumentsRequest.Builder mergeFrom(BatchProcessDocumentsRequest other)
public BatchProcessDocumentsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchProcessDocumentsRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BatchProcessDocumentsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public BatchProcessDocumentsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BatchProcessDocumentsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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];
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];
setUnknownFields(UnknownFieldSet unknownFields)
public final BatchProcessDocumentsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides