|
1 | 1 | /*
|
2 |
| - * Copyright 2023 Google LLC |
| 2 | + * Copyright 2024 Google LLC |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
@@ -749,6 +749,7 @@ public final ProcessResponse processDocument(String name) {
|
749 | 749 | * .setSkipHumanReview(true)
|
750 | 750 | * .setFieldMask(FieldMask.newBuilder().build())
|
751 | 751 | * .setProcessOptions(ProcessOptions.newBuilder().build())
|
| 752 | + * .putAllLabels(new HashMap<String, String>()) |
752 | 753 | * .build();
|
753 | 754 | * ProcessResponse response = documentProcessorServiceClient.processDocument(request);
|
754 | 755 | * }
|
@@ -781,6 +782,7 @@ public final ProcessResponse processDocument(ProcessRequest request) {
|
781 | 782 | * .setSkipHumanReview(true)
|
782 | 783 | * .setFieldMask(FieldMask.newBuilder().build())
|
783 | 784 | * .setProcessOptions(ProcessOptions.newBuilder().build())
|
| 785 | + * .putAllLabels(new HashMap<String, String>()) |
784 | 786 | * .build();
|
785 | 787 | * ApiFuture<ProcessResponse> future =
|
786 | 788 | * documentProcessorServiceClient.processDocumentCallable().futureCall(request);
|
@@ -885,6 +887,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
|
885 | 887 | * .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
|
886 | 888 | * .setSkipHumanReview(true)
|
887 | 889 | * .setProcessOptions(ProcessOptions.newBuilder().build())
|
| 890 | + * .putAllLabels(new HashMap<String, String>()) |
888 | 891 | * .build();
|
889 | 892 | * BatchProcessResponse response =
|
890 | 893 | * documentProcessorServiceClient.batchProcessDocumentsAsync(request).get();
|
@@ -921,6 +924,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
|
921 | 924 | * .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
|
922 | 925 | * .setSkipHumanReview(true)
|
923 | 926 | * .setProcessOptions(ProcessOptions.newBuilder().build())
|
| 927 | + * .putAllLabels(new HashMap<String, String>()) |
924 | 928 | * .build();
|
925 | 929 | * OperationFuture<BatchProcessResponse, BatchProcessMetadata> future =
|
926 | 930 | * documentProcessorServiceClient
|
@@ -958,6 +962,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
|
958 | 962 | * .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
|
959 | 963 | * .setSkipHumanReview(true)
|
960 | 964 | * .setProcessOptions(ProcessOptions.newBuilder().build())
|
| 965 | + * .putAllLabels(new HashMap<String, String>()) |
961 | 966 | * .build();
|
962 | 967 | * ApiFuture<Operation> future =
|
963 | 968 | * documentProcessorServiceClient.batchProcessDocumentsCallable().futureCall(request);
|
@@ -2692,10 +2697,10 @@ public final OperationFuture<Empty, DeleteProcessorVersionMetadata> deleteProces
|
2692 | 2697 | * @param parent Required. The parent (project and location) under which to create the processor.
|
2693 | 2698 | * Format: `projects/{project}/locations/{location}`
|
2694 | 2699 | * @param processor Required. The processor to be created, requires
|
2695 |
| - * [Processor.type][google.cloud.documentai.v1.Processor.type] and [Processor.display_name]][] |
2696 |
| - * to be set. Also, the |
2697 |
| - * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] field must be |
2698 |
| - * set if the processor is under CMEK. |
| 2700 | + * [Processor.type][google.cloud.documentai.v1.Processor.type] and |
| 2701 | + * [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] to be set. |
| 2702 | + * Also, the [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] field |
| 2703 | + * must be set if the processor is under CMEK. |
2699 | 2704 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails
|
2700 | 2705 | */
|
2701 | 2706 | public final Processor createProcessor(LocationName parent, Processor processor) {
|
@@ -2731,10 +2736,10 @@ public final Processor createProcessor(LocationName parent, Processor processor)
|
2731 | 2736 | * @param parent Required. The parent (project and location) under which to create the processor.
|
2732 | 2737 | * Format: `projects/{project}/locations/{location}`
|
2733 | 2738 | * @param processor Required. The processor to be created, requires
|
2734 |
| - * [Processor.type][google.cloud.documentai.v1.Processor.type] and [Processor.display_name]][] |
2735 |
| - * to be set. Also, the |
2736 |
| - * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] field must be |
2737 |
| - * set if the processor is under CMEK. |
| 2739 | + * [Processor.type][google.cloud.documentai.v1.Processor.type] and |
| 2740 | + * [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] to be set. |
| 2741 | + * Also, the [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] field |
| 2742 | + * must be set if the processor is under CMEK. |
2738 | 2743 | * @throws com.google.api.gax.rpc.ApiException if the remote call fails
|
2739 | 2744 | */
|
2740 | 2745 | public final Processor createProcessor(String parent, Processor processor) {
|
|
0 commit comments