Skip to content

Commit a06827e

Browse files
feat(documentai): update the api
#### documentai:v1 The following keys were added: - schemas.GoogleCloudDocumentaiV1Document.properties.chunkedDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1Document.properties.documentLayout.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentChunkedDocument (Total Keys: 29) - schemas.GoogleCloudDocumentaiV1DocumentDocumentLayout (Total Keys: 51) - schemas.GoogleCloudDocumentaiV1ProcessOptions.properties.layoutConfig.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig (Total Keys: 8) - schemas.GoogleCloudDocumentaiV1Processor.properties.satisfiesPzi (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1Processor.properties.satisfiesPzs (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1ProcessorVersion.properties.satisfiesPzi (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1ProcessorVersion.properties.satisfiesPzs (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta1Document.properties.chunkedDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1Document.properties.documentLayout.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentChunkedDocument (Total Keys: 29) - schemas.GoogleCloudDocumentaiV1beta1DocumentDocumentLayout (Total Keys: 51) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.chunkedDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.documentLayout.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentChunkedDocument (Total Keys: 29) - schemas.GoogleCloudDocumentaiV1beta2DocumentDocumentLayout (Total Keys: 51) - schemas.GoogleCloudDocumentaiV1beta3Dataset.properties.satisfiesPzi (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3Dataset.properties.satisfiesPzs (Total Keys: 2) #### documentai:v1beta2 The following keys were added: - schemas.GoogleCloudDocumentaiV1beta1Document.properties.chunkedDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1Document.properties.documentLayout.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentChunkedDocument (Total Keys: 29) - schemas.GoogleCloudDocumentaiV1beta1DocumentDocumentLayout (Total Keys: 51) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.chunkedDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.documentLayout.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentChunkedDocument (Total Keys: 29) - schemas.GoogleCloudDocumentaiV1beta2DocumentDocumentLayout (Total Keys: 51) - schemas.GoogleCloudDocumentaiV1beta3Dataset.properties.satisfiesPzi (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3Dataset.properties.satisfiesPzs (Total Keys: 2) #### documentai:v1beta3 The following keys were added: - schemas.GoogleCloudDocumentaiV1beta1Document.properties.chunkedDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1Document.properties.documentLayout.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentChunkedDocument (Total Keys: 29) - schemas.GoogleCloudDocumentaiV1beta1DocumentDocumentLayout (Total Keys: 51) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.chunkedDocument.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2Document.properties.documentLayout.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentChunkedDocument (Total Keys: 29) - schemas.GoogleCloudDocumentaiV1beta2DocumentDocumentLayout (Total Keys: 51) - schemas.GoogleCloudDocumentaiV1beta3Dataset.properties.satisfiesPzi (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3Dataset.properties.satisfiesPzs (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3Processor.properties.satisfiesPzi (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3Processor.properties.satisfiesPzs (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3ProcessorVersion.properties.satisfiesPzi (Total Keys: 2) - schemas.GoogleCloudDocumentaiV1beta3ProcessorVersion.properties.satisfiesPzs (Total Keys: 2)
1 parent 4522cd5 commit a06827e

12 files changed

+2831
-58
lines changed

docs/dyn/documentai_v1.projects.locations.processors.html

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

docs/dyn/documentai_v1.projects.locations.processors.humanReviewConfig.html

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,97 @@ <h3>Method Details</h3>
130130
},
131131
&quot;enableSchemaValidation&quot;: True or False, # Whether the validation should be performed on the ad-hoc review request.
132132
&quot;inlineDocument&quot;: { # Document represents the canonical document resource in Document AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document AI to iterate and optimize for quality. # An inline document proto.
133+
&quot;chunkedDocument&quot;: { # Represents the chunks that the document is divided into. # Document chunked based on chunking config.
134+
&quot;chunks&quot;: [ # List of chunks.
135+
{ # Represents a chunk.
136+
&quot;chunkId&quot;: &quot;A String&quot;, # ID of the chunk.
137+
&quot;content&quot;: &quot;A String&quot;, # Text content of the chunk.
138+
&quot;pageFooters&quot;: [ # Page footers associated with the chunk.
139+
{ # Represents the page footer associated with the chunk.
140+
&quot;pageSpan&quot;: { # Represents where the chunk starts and ends in the document. # Page span of the footer.
141+
&quot;pageEnd&quot;: 42, # Page where chunk ends in the document.
142+
&quot;pageStart&quot;: 42, # Page where chunk starts in the document.
143+
},
144+
&quot;text&quot;: &quot;A String&quot;, # Footer in text format.
145+
},
146+
],
147+
&quot;pageHeaders&quot;: [ # Page headers associated with the chunk.
148+
{ # Represents the page header associated with the chunk.
149+
&quot;pageSpan&quot;: { # Represents where the chunk starts and ends in the document. # Page span of the header.
150+
&quot;pageEnd&quot;: 42, # Page where chunk ends in the document.
151+
&quot;pageStart&quot;: 42, # Page where chunk starts in the document.
152+
},
153+
&quot;text&quot;: &quot;A String&quot;, # Header in text format.
154+
},
155+
],
156+
&quot;pageSpan&quot;: { # Represents where the chunk starts and ends in the document. # Page span of the chunk.
157+
&quot;pageEnd&quot;: 42, # Page where chunk ends in the document.
158+
&quot;pageStart&quot;: 42, # Page where chunk starts in the document.
159+
},
160+
&quot;sourceBlockIds&quot;: [ # Unused.
161+
&quot;A String&quot;,
162+
],
163+
},
164+
],
165+
},
133166
&quot;content&quot;: &quot;A String&quot;, # Optional. Inline document content, represented as a stream of bytes. Note: As with all `bytes` fields, protobuffers use a pure binary representation, whereas JSON representations use base64.
167+
&quot;documentLayout&quot;: { # Represents the parsed layout of a document as a collection of blocks that the document is divided into. # Parsed layout of the document.
168+
&quot;blocks&quot;: [ # List of blocks in the document.
169+
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
170+
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
171+
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
172+
&quot;listEntries&quot;: [ # List entries that constitute a list block.
173+
{ # Represents an entry in the list.
174+
&quot;blocks&quot;: [ # A list entry is a list of blocks. Repeated blocks support further hierarchies and nested blocks.
175+
# Object with schema name: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock
176+
],
177+
},
178+
],
179+
&quot;type&quot;: &quot;A String&quot;, # Type of the list_entries (if exist). Available options are `ordered` and `unordered`.
180+
},
181+
&quot;pageSpan&quot;: { # Represents where the block starts and ends in the document. # Page span of the block.
182+
&quot;pageEnd&quot;: 42, # Page where block ends in the document.
183+
&quot;pageStart&quot;: 42, # Page where block starts in the document.
184+
},
185+
&quot;tableBlock&quot;: { # Represents a table type block. # Block consisting of table content/structure.
186+
&quot;bodyRows&quot;: [ # Body rows containing main table content.
187+
{ # Represents a row in a table.
188+
&quot;cells&quot;: [ # A table row is a list of table cells.
189+
{ # Represents a cell in a table row.
190+
&quot;blocks&quot;: [ # A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks.
191+
# Object with schema name: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock
192+
],
193+
&quot;colSpan&quot;: 42, # How many columns this cell spans.
194+
&quot;rowSpan&quot;: 42, # How many rows this cell spans.
195+
},
196+
],
197+
},
198+
],
199+
&quot;caption&quot;: &quot;A String&quot;, # Table caption/title.
200+
&quot;headerRows&quot;: [ # Header rows at the top of the table.
201+
{ # Represents a row in a table.
202+
&quot;cells&quot;: [ # A table row is a list of table cells.
203+
{ # Represents a cell in a table row.
204+
&quot;blocks&quot;: [ # A table cell is a list of blocks. Repeated blocks support further hierarchies and nested blocks.
205+
# Object with schema name: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock
206+
],
207+
&quot;colSpan&quot;: 42, # How many columns this cell spans.
208+
&quot;rowSpan&quot;: 42, # How many rows this cell spans.
209+
},
210+
],
211+
},
212+
],
213+
},
214+
&quot;textBlock&quot;: { # Represents a text type block. # Block consisting of text content.
215+
&quot;blocks&quot;: [ # A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.
216+
# Object with schema name: GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock
217+
],
218+
&quot;text&quot;: &quot;A String&quot;, # Text content stored in the block.
219+
&quot;type&quot;: &quot;A String&quot;, # Type of the text in the block. Available options are: `paragraph`, `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `footer`.
220+
},
221+
},
222+
],
223+
},
134224
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
135225
{ # An entity that could be a phrase in the text or a property that belongs to the document. It is a known entity type, such as a person, an organization, or location.
136226
&quot;confidence&quot;: 3.14, # Optional. Confidence of detected Schema entity. Range `[0, 1]`.

0 commit comments

Comments
 (0)