Skip to content

Commit cd64ac0

Browse files
feat(v1beta3): [google-cloud-documentai] Added config options to enable table annotation and image extraction (#13847)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 752369273 Source-Link: googleapis/googleapis@8dab79f Source-Link: googleapis/googleapis-gen@02a636d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6IjAyYTYzNmQ0NDA4ZmEwNTBlYjFmNjE0MTc0MTU3MmUwNzUwYjhjNDEifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 90177f3 commit cd64ac0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

packages/google-cloud-documentai/google/cloud/documentai_v1beta3/types/document_processor_service.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,15 @@ class LayoutConfig(proto.Message):
147147
enable_image_annotation (bool):
148148
Optional. Whether to include image
149149
annotations in layout parser response.
150+
enable_image_extraction (bool):
151+
Optional. Whether to extract images in layout
152+
parser response.
150153
enable_llm_layout_parsing (bool):
151154
Optional. Whether to refine PDF layout using
152155
LLM.
156+
enable_table_annotation (bool):
157+
Optional. Whether to include table
158+
annotations in layout parser response.
153159
"""
154160

155161
class ChunkingConfig(proto.Message):
@@ -208,10 +214,18 @@ class ChunkingConfig(proto.Message):
208214
proto.BOOL,
209215
number=4,
210216
)
217+
enable_image_extraction: bool = proto.Field(
218+
proto.BOOL,
219+
number=7,
220+
)
211221
enable_llm_layout_parsing: bool = proto.Field(
212222
proto.BOOL,
213223
number=5,
214224
)
225+
enable_table_annotation: bool = proto.Field(
226+
proto.BOOL,
227+
number=6,
228+
)
215229

216230
class IndividualPageSelector(proto.Message):
217231
r"""A list of individual page numbers.

0 commit comments

Comments
 (0)