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

Commit f69e920

Browse files
feat: update ReviewDocumentRequest to allow set priority and enable validation (#527)
PiperOrigin-RevId: 380732771 Source-Link: googleapis/googleapis@87fc4d4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/7610fef6fdadfbe237b8bd64a0f38438a41bc5ee
1 parent 8f98b40 commit f69e920

File tree

14 files changed

+1433
-208
lines changed

14 files changed

+1433
-208
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ public final UnaryCallable<BatchProcessRequest, Operation> batchProcessDocuments
469469
* ReviewDocumentRequest.newBuilder()
470470
* .setHumanReviewConfig(
471471
* HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
472+
* .setEnableSchemaValidation(true)
472473
* .build();
473474
* ReviewDocumentResponse response =
474475
* documentProcessorServiceClient.reviewDocumentAsync(request).get();
@@ -497,6 +498,7 @@ public final UnaryCallable<BatchProcessRequest, Operation> batchProcessDocuments
497498
* ReviewDocumentRequest.newBuilder()
498499
* .setHumanReviewConfig(
499500
* HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
501+
* .setEnableSchemaValidation(true)
500502
* .build();
501503
* OperationFuture<ReviewDocumentResponse, ReviewDocumentOperationMetadata> future =
502504
* documentProcessorServiceClient.reviewDocumentOperationCallable().futureCall(request);
@@ -525,6 +527,7 @@ public final UnaryCallable<BatchProcessRequest, Operation> batchProcessDocuments
525527
* ReviewDocumentRequest.newBuilder()
526528
* .setHumanReviewConfig(
527529
* HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
530+
* .setEnableSchemaValidation(true)
528531
* .build();
529532
* ApiFuture<Operation> future =
530533
* documentProcessorServiceClient.reviewDocumentCallable().futureCall(request);

0 commit comments

Comments
 (0)