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

feat: update ReviewDocumentRequest to allow set priority and enable validation #527

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -469,6 +469,7 @@ public final UnaryCallable<BatchProcessRequest, Operation> batchProcessDocuments
* ReviewDocumentRequest.newBuilder()
* .setHumanReviewConfig(
* HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
* .setEnableSchemaValidation(true)
* .build();
* ReviewDocumentResponse response =
* documentProcessorServiceClient.reviewDocumentAsync(request).get();
Expand Down Expand Up @@ -497,6 +498,7 @@ public final UnaryCallable<BatchProcessRequest, Operation> batchProcessDocuments
* ReviewDocumentRequest.newBuilder()
* .setHumanReviewConfig(
* HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
* .setEnableSchemaValidation(true)
* .build();
* OperationFuture<ReviewDocumentResponse, ReviewDocumentOperationMetadata> future =
* documentProcessorServiceClient.reviewDocumentOperationCallable().futureCall(request);
Expand Down Expand Up @@ -525,6 +527,7 @@ public final UnaryCallable<BatchProcessRequest, Operation> batchProcessDocuments
* ReviewDocumentRequest.newBuilder()
* .setHumanReviewConfig(
* HumanReviewConfigName.of("[PROJECT]", "[LOCATION]", "[PROCESSOR]").toString())
* .setEnableSchemaValidation(true)
* .build();
* ApiFuture<Operation> future =
* documentProcessorServiceClient.reviewDocumentCallable().futureCall(request);
Expand Down