Skip to content

Commit

Permalink
feat: [documentai] added sharding_config field in DocumentOutputConfi…
Browse files Browse the repository at this point in the history
…g.GcsOutputConfig in document_io.proto (#8909)

- [ ] Regenerate this pull request now.

feat: added process_options field in ProcessRequest in document_processor_service.proto
feat: added sample_document_uris field in ProcessorType in processor_type.proto

PiperOrigin-RevId: 495363748

Source-Link: https://togithub.com/googleapis/googleapis/commit/3dce9ff167afafeddda96de98192af131b313ffc

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/66f3518217f0c04a47faefeb3322ff226106b857
Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiNjZmMzUxODIxN2YwYzA0YTQ3ZmFlZmViMzMyMmZmMjI2MTA2Yjg1NyJ9

BEGIN_NESTED_COMMIT
feat: [documentai] added sharding_config field in DocumentOutputConfig.GcsOutputConfig in document_io.proto
feat: added process_options field in ProcessRequest in document_processor_service.proto
feat: added sample_document_uris field in ProcessorType in processor_type.proto

PiperOrigin-RevId: 495360288

Source-Link: https://togithub.com/googleapis/googleapis/commit/5f39f4653ed9b257db3f4e19bb3f9178f56b294b

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/8520d57093d360afec194cd029b71324e597f626
Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiODUyMGQ1NzA5M2QzNjBhZmVjMTk0Y2QwMjliNzEzMjRlNTk3ZjYyNiJ9
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [documentai] added sharding_config field in DocumentOutputConfig.GcsOutputConfig in document_io.proto
PiperOrigin-RevId: 495051185

Source-Link: https://togithub.com/googleapis/googleapis/commit/0ff0b240ca1026d914e2256d4a32f885d1a31c54

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/ffa8b5f51bd4258481b8fc73ca7370f78847d5d7
Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiZmZhOGI1ZjUxYmQ0MjU4NDgxYjhmYzczY2E3MzcwZjc4ODQ3ZDVkNyJ9
END_NESTED_COMMITBEGIN_NESTED_COMMITfeat: [documentai] added sharding_config field in DocumentOutputConfig.GcsOutputConfig in document_io.proto
PiperOrigin-RevId: 495050408

Source-Link: https://togithub.com/googleapis/googleapis/commit/46a1452f5f7835512f2d18e88956b4da218ca6bc

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/865eeff1ce9e70e0989d6b0213ae6a5c987b10d7
Copy-Tag: eyJwIjoiamF2YS1kb2N1bWVudC1haS8uT3dsQm90LnlhbWwiLCJoIjoiODY1ZWVmZjFjZTllNzBlMDk4OWQ2YjAyMTNhZTZhNWM5ODdiMTBkNyJ9
END_NESTED_COMMIT
  • Loading branch information
gcf-owl-bot[bot] authored Dec 20, 2022
1 parent 033567f commit ff2f100
Show file tree
Hide file tree
Showing 87 changed files with 10,323 additions and 3,666 deletions.
6 changes: 3 additions & 3 deletions java-document-ai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-document-ai</artifactId>
<version>2.10.0</version>
<version>2.11.0</version>
</dependency>
```

If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-document-ai:2.10.0'
implementation 'com.google.cloud:google-cloud-document-ai:2.11.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.10.0"
libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.11.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ public final ProcessResponse processDocument(String name) {
* .setDocument(Document.newBuilder().build())
* .setSkipHumanReview(true)
* .setFieldMask(FieldMask.newBuilder().build())
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .build();
* ProcessResponse response = documentProcessorServiceClient.processDocument(request);
* }
Expand Down Expand Up @@ -342,6 +343,7 @@ public final ProcessResponse processDocument(ProcessRequest request) {
* .setDocument(Document.newBuilder().build())
* .setSkipHumanReview(true)
* .setFieldMask(FieldMask.newBuilder().build())
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .build();
* ApiFuture<ProcessResponse> future =
* documentProcessorServiceClient.processDocumentCallable().futureCall(request);
Expand Down Expand Up @@ -449,6 +451,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
* .setInputDocuments(BatchDocumentsInputConfig.newBuilder().build())
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
* .setSkipHumanReview(true)
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .build();
* BatchProcessResponse response =
* documentProcessorServiceClient.batchProcessDocumentsAsync(request).get();
Expand Down Expand Up @@ -486,6 +489,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
* .setInputDocuments(BatchDocumentsInputConfig.newBuilder().build())
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
* .setSkipHumanReview(true)
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .build();
* OperationFuture<BatchProcessResponse, BatchProcessMetadata> future =
* documentProcessorServiceClient
Expand Down Expand Up @@ -524,6 +528,7 @@ public final UnaryCallable<ProcessRequest, ProcessResponse> processDocumentCalla
* .setInputDocuments(BatchDocumentsInputConfig.newBuilder().build())
* .setDocumentOutputConfig(DocumentOutputConfig.newBuilder().build())
* .setSkipHumanReview(true)
* .setProcessOptions(ProcessOptions.newBuilder().build())
* .build();
* ApiFuture<Operation> future =
* documentProcessorServiceClient.batchProcessDocumentsCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,10 @@ public void disableProcessor(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down Expand Up @@ -1568,8 +1570,10 @@ public void disableProcessor(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down Expand Up @@ -1827,8 +1831,10 @@ public com.google.longrunning.Operation disableProcessor(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down Expand Up @@ -2091,8 +2097,10 @@ protected DocumentProcessorServiceFutureStub build(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1383,8 +1383,10 @@ public void disableProcessor(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down Expand Up @@ -1896,8 +1898,10 @@ public void disableProcessor(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down Expand Up @@ -2221,8 +2225,10 @@ public com.google.longrunning.Operation disableProcessor(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down Expand Up @@ -2544,8 +2550,10 @@ protected DocumentProcessorServiceFutureStub build(
*
*
* <pre>
* Set the default (active) version of a [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument] and
* Set the default (active) version of a
* [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
* [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
* and
* [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
* </pre>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand Down Expand Up @@ -102,7 +103,8 @@ public java.lang.String getName() {
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand Down Expand Up @@ -671,7 +673,8 @@ public Builder mergeFrom(
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand Down Expand Up @@ -699,7 +702,8 @@ public java.lang.String getName() {
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand Down Expand Up @@ -727,7 +731,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand All @@ -754,7 +759,8 @@ public Builder setName(java.lang.String value) {
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand All @@ -777,7 +783,8 @@ public Builder clearName() {
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public interface BatchProcessRequestOrBuilder
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand All @@ -45,7 +46,8 @@ public interface BatchProcessRequestOrBuilder
*
*
* <pre>
* Required. The resource name of [Processor][google.cloud.documentai.v1.Processor] or
* Required. The resource name of
* [Processor][google.cloud.documentai.v1.Processor] or
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
* or
Expand Down
Loading

0 comments on commit ff2f100

Please sign in to comment.