From 1b3b2b2258b7967c0d5fcf4cb009fc0821d7b862 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 13 Dec 2022 23:30:15 +0000 Subject: [PATCH] feat: added sharding_config field in DocumentOutputConfig.GcsOutputConfig in document_io.proto (#3735) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 495051185 Source-Link: https://togithub.com/googleapis/googleapis/commit/0ff0b240ca1026d914e2256d4a32f885d1a31c54 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/ffa8b5f51bd4258481b8fc73ca7370f78847d5d7 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWNvbnRlbnR3YXJlaG91c2UvLk93bEJvdC55YW1sIiwiaCI6ImZmYThiNWY1MWJkNDI1ODQ4MWI4ZmM3M2NhNzM3MGY3ODg0N2Q1ZDcifQ== --- .../google/cloud/documentai/v1/document_io.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto index 3240d494e8f..d56086336d2 100644 --- a/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto +++ b/packages/google-cloud-contentwarehouse/protos/google/cloud/documentai/v1/document_io.proto @@ -74,6 +74,15 @@ message BatchDocumentsInputConfig { message DocumentOutputConfig { // The configuration used when outputting documents. message GcsOutputConfig { + // The sharding config for the output document. + message ShardingConfig { + // The number of pages per shard. + int32 pages_per_shard = 1; + + // The number of overlapping pages between consecutive shards. + int32 pages_overlap = 2; + } + // The Cloud Storage uri (a directory) of the output. string gcs_uri = 1; @@ -81,6 +90,9 @@ message DocumentOutputConfig { // Only supports top level document and pages field so it must be in the // form of `{document_field_name}` or `pages.{page_field_name}`. google.protobuf.FieldMask field_mask = 2; + + // Specifies the sharding config for the output document. + ShardingConfig sharding_config = 3; } // The destination of the results.