Skip to content

Commit

Permalink
docs: [documentai] updated comments (#10392)
Browse files Browse the repository at this point in the history
* feat: A new message FoundationModelTuningOptions is added
feat: A new field foundation_model_tuning_options is added to message TrainProcessorVersionRequest
feat: A new field `labels` is added to messages `ProcessRequest` and `BatchProcessRequest`
feat: A new field `display_name` is added to message `DocumentSchema`
fix: deprecate `Dataset.document_warehouse_config`
docs: updated comments

PiperOrigin-RevId: 607358355

Source-Link: googleapis/googleapis@1da5299

Source-Link: https://github.com/googleapis/googleapis-gen/commit/a931f91c05ad6c4958c546a57db4298dc622757f
Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiYTkzMWY5MWMwNWFkNmM0OTU4YzU0NmE1N2RiNDI5OGRjNjIyNzU3ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* docs: updated comments

PiperOrigin-RevId: 607453878

Source-Link: googleapis/googleapis@b7c2f98

Source-Link: https://github.com/googleapis/googleapis-gen/commit/5e337dccdc676eafe187ba2420ef8084f0a7d03b
Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiNWUzMzdkY2NkYzY3NmVhZmUxODdiYTI0MjBlZjgwODRmMGE3ZDAzYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 16, 2024
1 parent 184e04b commit 71e4fdb
Show file tree
Hide file tree
Showing 44 changed files with 3,392 additions and 827 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ public final ProcessResponse processDocument(String name) {
* .setSkipHumanReview(true)
* .setFieldMask(FieldMask.newBuilder().build())
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .putAllLabels(new HashMap<String, String>())
* .build();
* ProcessResponse response = documentProcessorServiceClient.processDocument(request);
* }
Expand Down Expand Up @@ -803,6 +804,7 @@ public final ProcessResponse processDocument(ProcessRequest request) {
* .setSkipHumanReview(true)
* .setFieldMask(FieldMask.newBuilder().build())
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .putAllLabels(new HashMap<String, String>())
* .build();
* ApiFuture<ProcessResponse> future =
* documentProcessorServiceClient.processDocumentCallable().futureCall(request);
Expand Down Expand Up @@ -908,6 +910,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
* .setSkipHumanReview(true)
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .putAllLabels(new HashMap<String, String>())
* .build();
* BatchProcessResponse response =
* documentProcessorServiceClient.batchProcessDocumentsAsync(request).get();
Expand Down Expand Up @@ -946,6 +949,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
* .setSkipHumanReview(true)
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .putAllLabels(new HashMap<String, String>())
* .build();
* OperationFuture<BatchProcessResponse, BatchProcessMetadata> future =
* documentProcessorServiceClient
Expand Down Expand Up @@ -985,6 +989,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
* .setSkipHumanReview(true)
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .putAllLabels(new HashMap<String, String>())
* .build();
* ApiFuture<Operation> future =
* documentProcessorServiceClient.batchProcessDocumentsCallable().futureCall(request);
Expand Down Expand Up @@ -2720,9 +2725,9 @@ public final OperationFuture<Empty, DeleteProcessorVersionMetadata> deleteProces
* Format: `projects/{project}/locations/{location}`
* @param processor Required. The processor to be created, requires
* [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
* [Processor.display_name]][] to be set. Also, the
* [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name] field must
* be set if the processor is under CMEK.
* [Processor.display_name][google.cloud.documentai.v1beta3.Processor.display_name] to be set.
* Also, the [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
* field must be set if the processor is under CMEK.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Processor createProcessor(LocationName parent, Processor processor) {
Expand Down Expand Up @@ -2759,9 +2764,9 @@ public final Processor createProcessor(LocationName parent, Processor processor)
* Format: `projects/{project}/locations/{location}`
* @param processor Required. The processor to be created, requires
* [Processor.type][google.cloud.documentai.v1beta3.Processor.type] and
* [Processor.display_name]][] to be set. Also, the
* [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name] field must
* be set if the processor is under CMEK.
* [Processor.display_name][google.cloud.documentai.v1beta3.Processor.display_name] to be set.
* Also, the [Processor.kms_key_name][google.cloud.documentai.v1beta3.Processor.kms_key_name]
* field must be set if the processor is under CMEK.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Processor createProcessor(String parent, Processor processor) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3437,6 +3437,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest$FoundationModelTuningOptions",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest$FoundationModelTuningOptions$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.cloud.documentai.v1beta3.TrainProcessorVersionRequest$InputData",
"queryAllDeclaredConstructors": true,
Expand Down
Loading

0 comments on commit 71e4fdb

Please sign in to comment.