Skip to content

Commit c8aa644

Browse files
feat: [DocumentAi] added sharding_config field in DocumentOutputConfig.GcsOutputConfig in document_io.proto (#5703)
* feat: added sharding_config field in DocumentOutputConfig.GcsOutputConfig in document_io.proto PiperOrigin-RevId: 495051185 Source-Link: googleapis/googleapis@0ff0b24 Source-Link: googleapis/googleapis-gen@ffa8b5f Copy-Tag: eyJwIjoiRG9jdW1lbnRBaS8uT3dsQm90LnlhbWwiLCJoIjoiZmZhOGI1ZjUxYmQ0MjU4NDgxYjhmYzczY2E3MzcwZjc4ODQ3ZDVkNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: 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: googleapis/googleapis@5f39f46 Source-Link: googleapis/googleapis-gen@8520d57 Copy-Tag: eyJwIjoiRG9jdW1lbnRBaS8uT3dsQm90LnlhbWwiLCJoIjoiODUyMGQ1NzA5M2QzNjBhZmVjMTk0Y2QwMjliNzEzMjRlNTk3ZjYyNiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add location methods PiperOrigin-RevId: 499263614 Source-Link: googleapis/googleapis@ba2db0d Source-Link: googleapis/googleapis-gen@503d1e8 Copy-Tag: eyJwIjoiRG9jdW1lbnRBaS8uT3dsQm90LnlhbWwiLCJoIjoiNTAzZDFlOGVmZjA0NTM1ZmM1ZDRiNzRmZTFjODk0ZTY3ZmQ1OTZiMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore(bazel): update gapic-generator-php to v1.6.4 PiperOrigin-RevId: 499941754 Source-Link: googleapis/googleapis@71b5bbc Source-Link: googleapis/googleapis-gen@113c51b Copy-Tag: eyJwIjoiRG9jdW1lbnRBaS8uT3dsQm90LnlhbWwiLCJoIjoiMTEzYzUxYjMwM2I0N2ZlODMxNWM1MzYyNjBkYTUwYTkyYzI3N2IzOSJ9 * 🦉 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>
1 parent 712f47a commit c8aa644

49 files changed

Lines changed: 805 additions & 372 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
4 Bytes
Binary file not shown.
173 Bytes
Binary file not shown.

‎DocumentAi/metadata/V1/ProcessorType.php‎

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎DocumentAi/samples/V1/DocumentProcessorServiceClient/batch_process_documents.php‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
* LRO endpoint to batch process many documents. The output is written
3434
* to Cloud Storage as JSON in the [Document] format.
3535
*
36-
* @param string $name The resource name of [Processor][google.cloud.documentai.v1.Processor] or
36+
* @param string $name The resource name of
37+
* [Processor][google.cloud.documentai.v1.Processor] or
3738
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion].
3839
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
3940
* or

‎DocumentAi/samples/V1/DocumentProcessorServiceClient/create_processor.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* Creates a processor from the type processor that the user chose.
3232
* The processor will be at "ENABLED" state by default after its creation.
3333
*
34-
* @param string $formattedParent The parent (project and location) under which to create the processor.
35-
* Format: `projects/{project}/locations/{location}`
34+
* @param string $formattedParent The parent (project and location) under which to create the
35+
* processor. Format: `projects/{project}/locations/{location}`
3636
* Please see {@see DocumentProcessorServiceClient::locationName()} for help formatting this field.
3737
*/
3838
function create_processor_sample(string $formattedParent): void

‎DocumentAi/samples/V1/DocumentProcessorServiceClient/list_processor_versions.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
/**
3232
* Lists all versions of a processor.
3333
*
34-
* @param string $formattedParent The parent (project, location and processor) to list all versions.
35-
* Format: `projects/{project}/locations/{location}/processors/{processor}`
34+
* @param string $formattedParent The parent (project, location and processor) to list all
35+
* versions. Format:
36+
* `projects/{project}/locations/{location}/processors/{processor}`
3637
* Please see {@see DocumentProcessorServiceClient::processorName()} for help formatting this field.
3738
*/
3839
function list_processor_versions_sample(string $formattedParent): void

‎DocumentAi/samples/V1/DocumentProcessorServiceClient/list_processors.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
/**
3232
* Lists all processors which belong to this project.
3333
*
34-
* @param string $formattedParent The parent (project and location) which owns this collection of Processors.
35-
* Format: `projects/{project}/locations/{location}`
34+
* @param string $formattedParent The parent (project and location) which owns this collection of
35+
* Processors. Format: `projects/{project}/locations/{location}`
3636
* Please see {@see DocumentProcessorServiceClient::locationName()} for help formatting this field.
3737
*/
3838
function list_processors_sample(string $formattedParent): void

‎DocumentAi/samples/V1/DocumentProcessorServiceClient/process_document.php‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,15 @@
3030
/**
3131
* Processes a single document.
3232
*
33-
* @param string $name The resource name of the [Processor][google.cloud.documentai.v1.Processor] or
33+
* @param string $name The resource name of the
34+
* [Processor][google.cloud.documentai.v1.Processor] or
3435
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]
35-
* to use for processing. If a [Processor][google.cloud.documentai.v1.Processor] is specified, the server will use
36-
* its [default version][google.cloud.documentai.v1.Processor.default_processor_version]. Format:
37-
* `projects/{project}/locations/{location}/processors/{processor}`, or
36+
* to use for processing. If a
37+
* [Processor][google.cloud.documentai.v1.Processor] is specified, the server
38+
* will use its [default
39+
* version][google.cloud.documentai.v1.Processor.default_processor_version].
40+
* Format: `projects/{project}/locations/{location}/processors/{processor}`,
41+
* or
3842
* `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
3943
*/
4044
function process_document_sample(string $name): void

‎DocumentAi/samples/V1/DocumentProcessorServiceClient/review_document.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
* Send a document for Human Review. The input document should be processed by
3434
* the specified processor.
3535
*
36-
* @param string $formattedHumanReviewConfig The resource name of the HumanReviewConfig that the document will be
37-
* reviewed with. Please see
36+
* @param string $formattedHumanReviewConfig The resource name of the HumanReviewConfig that the document will
37+
* be reviewed with. Please see
3838
* {@see DocumentProcessorServiceClient::humanReviewConfigName()} for help formatting this field.
3939
*/
4040
function review_document_sample(string $formattedHumanReviewConfig): void

‎DocumentAi/samples/V1/DocumentProcessorServiceClient/set_default_processor_version.php‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,19 @@
3030
use Google\Rpc\Status;
3131

3232
/**
33-
* Set the default (active) version of a [Processor][google.cloud.documentai.v1.Processor] that will be used in
34-
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] and
33+
* Set the default (active) version of a
34+
* [Processor][google.cloud.documentai.v1.Processor] that will be used in
35+
* [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument]
36+
* and
3537
* [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments].
3638
*
37-
* @param string $formattedProcessor The resource name of the [Processor][google.cloud.documentai.v1.Processor] to change default version. Please see
39+
* @param string $formattedProcessor The resource name of the
40+
* [Processor][google.cloud.documentai.v1.Processor] to change default
41+
* version. Please see
3842
* {@see DocumentProcessorServiceClient::processorName()} for help formatting this field.
39-
* @param string $formattedDefaultProcessorVersion The resource name of child [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as default.
40-
* Format:
43+
* @param string $formattedDefaultProcessorVersion The resource name of child
44+
* [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as
45+
* default. Format:
4146
* `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}`
4247
* Please see {@see DocumentProcessorServiceClient::processorVersionName()} for help formatting this field.
4348
*/

0 commit comments

Comments
 (0)