Skip to content

Commit 0cea717

Browse files
Google APIscopybara-github
authored andcommitted
feat: Make Layout Parser generally available in V1
PiperOrigin-RevId: 638924855
1 parent 3b6f144 commit 0cea717

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

google/cloud/documentai/v1/document_processor_service.proto

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,23 @@ service DocumentProcessorService {
328328

329329
// Options for Process API
330330
message ProcessOptions {
331+
// Serving config for layout parser processor.
332+
message LayoutConfig {
333+
// Serving config for chunking.
334+
message ChunkingConfig {
335+
// Optional. The chunk sizes to use when splitting documents, in order of
336+
// level.
337+
int32 chunk_size = 1 [(google.api.field_behavior) = OPTIONAL];
338+
339+
// Optional. Whether or not to include ancestor headings when splitting.
340+
bool include_ancestor_headings = 2
341+
[(google.api.field_behavior) = OPTIONAL];
342+
}
343+
344+
// Optional. Config for chunking in layout parser processor.
345+
ChunkingConfig chunking_config = 1 [(google.api.field_behavior) = OPTIONAL];
346+
}
347+
331348
// A list of individual page numbers.
332349
message IndividualPageSelector {
333350
// Optional. Indices of the pages (starting from 1).
@@ -356,6 +373,10 @@ message ProcessOptions {
356373
// Returns error if set on other processor types.
357374
OcrConfig ocr_config = 1;
358375

376+
// Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`.
377+
// Returns error if set on other processor types.
378+
LayoutConfig layout_config = 9 [(google.api.field_behavior) = OPTIONAL];
379+
359380
// Optional. Override the schema of the
360381
// [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will
361382
// return an Invalid Argument error if this field is set when the underlying

0 commit comments

Comments
 (0)