Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit ef43537

Browse files
Merge 92e843f into 96a7881
2 parents 96a7881 + 92e843f commit ef43537

34 files changed

Lines changed: 12960 additions & 203 deletions

google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClient.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
326326
* .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
327327
* .addAllInputConfigs(new ArrayList<BatchProcessRequest.BatchInputConfig>())
328328
* .setOutputConfig(BatchProcessRequest.BatchOutputConfig.newBuilder().build())
329+
* .setInputDocuments(BatchDocumentsInputConfig.newBuilder().build())
330+
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
331+
* .setSkipHumanReview(true)
329332
* .build();
330333
* BatchProcessResponse response =
331334
* documentProcessorServiceClient.batchProcessDocumentsAsync(request).get();
@@ -355,6 +358,9 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
355358
* .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
356359
* .addAllInputConfigs(new ArrayList<BatchProcessRequest.BatchInputConfig>())
357360
* .setOutputConfig(BatchProcessRequest.BatchOutputConfig.newBuilder().build())
361+
* .setInputDocuments(BatchDocumentsInputConfig.newBuilder().build())
362+
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
363+
* .setSkipHumanReview(true)
358364
* .build();
359365
* OperationFuture<BatchProcessResponse, BatchProcessMetadata> future =
360366
* documentProcessorServiceClient
@@ -385,6 +391,9 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
385391
* .setName(ProcessorName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
386392
* .addAllInputConfigs(new ArrayList<BatchProcessRequest.BatchInputConfig>())
387393
* .setOutputConfig(BatchProcessRequest.BatchOutputConfig.newBuilder().build())
394+
* .setInputDocuments(BatchDocumentsInputConfig.newBuilder().build())
395+
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
396+
* .setSkipHumanReview(true)
388397
* .build();
389398
* ApiFuture<Operation> future =
390399
* documentProcessorServiceClient.batchProcessDocumentsCallable().futureCall(request);

google-cloud-document-ai/src/test/java/com/google/cloud/documentai/v1beta3/DocumentProcessorServiceClientTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public void processDocumentTest() throws Exception {
8686
ProcessResponse.newBuilder()
8787
.setDocument(Document.newBuilder().build())
8888
.setHumanReviewOperation("humanReviewOperation1807415298")
89+
.setHumanReviewStatus(HumanReviewStatus.newBuilder().build())
8990
.build();
9091
mockDocumentProcessorService.addResponse(expectedResponse);
9192

@@ -125,6 +126,7 @@ public void processDocumentTest2() throws Exception {
125126
ProcessResponse.newBuilder()
126127
.setDocument(Document.newBuilder().build())
127128
.setHumanReviewOperation("humanReviewOperation1807415298")
129+
.setHumanReviewStatus(HumanReviewStatus.newBuilder().build())
128130
.build();
129131
mockDocumentProcessorService.addResponse(expectedResponse);
130132

0 commit comments

Comments
 (0)