Skip to content

Commit 19e9aed

Browse files
feat: added sharding_config field in DocumentOutputConfig.GcsOutputConfig in document_io.proto (#3734)
- [ ] 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: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6ImZmYThiNWY1MWJkNDI1ODQ4MWI4ZmM3M2NhNzM3MGY3ODg0N2Q1ZDcifQ== BEGIN_NESTED_COMMIT feat: 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: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6Ijg2NWVlZmYxY2U5ZTcwZTA5ODlkNmIwMjEzYWU2YTVjOTg3YjEwZDcifQ== END_NESTED_COMMIT
1 parent 1b3b2b2 commit 19e9aed

5 files changed

Lines changed: 794 additions & 0 deletions

File tree

packages/google-cloud-documentai/protos/google/cloud/documentai/v1/document_io.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,25 @@ message BatchDocumentsInputConfig {
7474
message DocumentOutputConfig {
7575
// The configuration used when outputting documents.
7676
message GcsOutputConfig {
77+
// The sharding config for the output document.
78+
message ShardingConfig {
79+
// The number of pages per shard.
80+
int32 pages_per_shard = 1;
81+
82+
// The number of overlapping pages between consecutive shards.
83+
int32 pages_overlap = 2;
84+
}
85+
7786
// The Cloud Storage uri (a directory) of the output.
7887
string gcs_uri = 1;
7988

8089
// Specifies which fields to include in the output documents.
8190
// Only supports top level document and pages field so it must be in the
8291
// form of `{document_field_name}` or `pages.{page_field_name}`.
8392
google.protobuf.FieldMask field_mask = 2;
93+
94+
// Specifies the sharding config for the output document.
95+
ShardingConfig sharding_config = 3;
8496
}
8597

8698
// The destination of the results.

packages/google-cloud-documentai/protos/google/cloud/documentai/v1beta3/document_io.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,25 @@ message BatchDocumentsInputConfig {
7474
message DocumentOutputConfig {
7575
// The configuration used when outputting documents.
7676
message GcsOutputConfig {
77+
// The sharding config for the output document.
78+
message ShardingConfig {
79+
// The number of pages per shard.
80+
int32 pages_per_shard = 1;
81+
82+
// The number of overlapping pages between consecutive shards.
83+
int32 pages_overlap = 2;
84+
}
85+
7786
// The Cloud Storage uri (a directory) of the output.
7887
string gcs_uri = 1;
7988

8089
// Specifies which fields to include in the output documents.
8190
// Only supports top level document and pages field so it must be in the
8291
// form of `{document_field_name}` or `pages.{page_field_name}`.
8392
google.protobuf.FieldMask field_mask = 2;
93+
94+
// Specifies the sharding config for the output document.
95+
ShardingConfig sharding_config = 3;
8496
}
8597

8698
// The destination of the results.

packages/google-cloud-documentai/protos/protos.d.ts

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

0 commit comments

Comments
 (0)