Skip to content

Commit bdd6c7a

Browse files
feat: [documentai] Added a field for enabling image and table annotation for layout parser processor (#7318)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 877500954 Source-Link: https://togithub.com/googleapis/googleapis/commit/aa40d20bf5f2386cd39045bcefea48334017258d Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/9a5ddacb78bb927694274c8f642c405b0b18202a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjlhNWRkYWNiNzhiYjkyNzY5NDI3NGM4ZjY0MmM0MDViMGIxODIwMmEifQ==
1 parent 1da5e21 commit bdd6c7a

4 files changed

Lines changed: 79 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -354,6 +354,12 @@ message ProcessOptions {
354354
// Optional. Whether to include bounding boxes in layout parser processor
355355
// response.
356356
bool return_bounding_boxes = 3 [(google.api.field_behavior) = OPTIONAL];
357+
358+
// Optional. Whether to include image annotations in layout parser response.
359+
bool enable_image_annotation = 4 [(google.api.field_behavior) = OPTIONAL];
360+
361+
// Optional. Whether to include table annotations in layout parser response.
362+
bool enable_table_annotation = 6 [(google.api.field_behavior) = OPTIONAL];
357363
}
358364

359365
// A list of individual page numbers.

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

Lines changed: 12 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)