Skip to content

Commit 000fbc8

Browse files
feat(documentai): update the api
#### documentai:v1 The following keys were added: - schemas.GoogleCloudDocumentaiV1Document.properties.docid.type (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1DocumentDocumentLayoutDocumentLayoutBlock.properties.boundingBox.$ref (Total Keys: 1) #### documentai:v1beta3 The following keys were added: - schemas.GoogleCloudDocumentaiV1beta3Document.properties.docid.type (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentDocumentLayoutDocumentLayoutBlock.properties.boundingBox.$ref (Total Keys: 1)
1 parent da0e582 commit 000fbc8

9 files changed

+228
-2
lines changed

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

+30
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,25 @@ <h3>Method Details</h3>
573573
],
574574
},
575575
&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.
576+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
576577
&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.
577578
&quot;blocks&quot;: [ # List of blocks in the document.
578579
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
579580
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
581+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
582+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
583+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
584+
&quot;x&quot;: 3.14, # X coordinate.
585+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
586+
},
587+
],
588+
&quot;vertices&quot;: [ # The bounding polygon vertices.
589+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
590+
&quot;x&quot;: 42, # X coordinate.
591+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
592+
},
593+
],
594+
},
580595
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
581596
&quot;listEntries&quot;: [ # List entries that constitute a list block.
582597
{ # Represents an entry in the list.
@@ -1598,10 +1613,25 @@ <h3>Method Details</h3>
15981613
],
15991614
},
16001615
&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.
1616+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
16011617
&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.
16021618
&quot;blocks&quot;: [ # List of blocks in the document.
16031619
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
16041620
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
1621+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
1622+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
1623+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
1624+
&quot;x&quot;: 3.14, # X coordinate.
1625+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
1626+
},
1627+
],
1628+
&quot;vertices&quot;: [ # The bounding polygon vertices.
1629+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
1630+
&quot;x&quot;: 42, # X coordinate.
1631+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
1632+
},
1633+
],
1634+
},
16051635
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
16061636
&quot;listEntries&quot;: [ # List entries that constitute a list block.
16071637
{ # Represents an entry in the list.

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

+15
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,25 @@ <h3>Method Details</h3>
164164
],
165165
},
166166
&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;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
167168
&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.
168169
&quot;blocks&quot;: [ # List of blocks in the document.
169170
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
170171
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
172+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
173+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
174+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
175+
&quot;x&quot;: 3.14, # X coordinate.
176+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
177+
},
178+
],
179+
&quot;vertices&quot;: [ # The bounding polygon vertices.
180+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
181+
&quot;x&quot;: 42, # X coordinate.
182+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
183+
},
184+
],
185+
},
171186
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
172187
&quot;listEntries&quot;: [ # List entries that constitute a list block.
173188
{ # Represents an entry in the list.

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

+30
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,25 @@ <h3>Method Details</h3>
665665
],
666666
},
667667
&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.
668+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
668669
&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.
669670
&quot;blocks&quot;: [ # List of blocks in the document.
670671
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
671672
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
673+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
674+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
675+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
676+
&quot;x&quot;: 3.14, # X coordinate.
677+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
678+
},
679+
],
680+
&quot;vertices&quot;: [ # The bounding polygon vertices.
681+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
682+
&quot;x&quot;: 42, # X coordinate.
683+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
684+
},
685+
],
686+
},
672687
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
673688
&quot;listEntries&quot;: [ # List entries that constitute a list block.
674689
{ # Represents an entry in the list.
@@ -1690,10 +1705,25 @@ <h3>Method Details</h3>
16901705
],
16911706
},
16921707
&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.
1708+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
16931709
&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.
16941710
&quot;blocks&quot;: [ # List of blocks in the document.
16951711
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
16961712
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
1713+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
1714+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
1715+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
1716+
&quot;x&quot;: 3.14, # X coordinate.
1717+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
1718+
},
1719+
],
1720+
&quot;vertices&quot;: [ # The bounding polygon vertices.
1721+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
1722+
&quot;x&quot;: 42, # X coordinate.
1723+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
1724+
},
1725+
],
1726+
},
16971727
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
16981728
&quot;listEntries&quot;: [ # List entries that constitute a list block.
16991729
{ # Represents an entry in the list.

docs/dyn/documentai_v1beta3.projects.locations.processors.dataset.html

+15
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,25 @@ <h3>Method Details</h3>
298298
],
299299
},
300300
&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.
301+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
301302
&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.
302303
&quot;blocks&quot;: [ # List of blocks in the document.
303304
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
304305
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
306+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
307+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
308+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
309+
&quot;x&quot;: 3.14, # X coordinate.
310+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
311+
},
312+
],
313+
&quot;vertices&quot;: [ # The bounding polygon vertices.
314+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
315+
&quot;x&quot;: 42, # X coordinate.
316+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
317+
},
318+
],
319+
},
305320
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
306321
&quot;listEntries&quot;: [ # List entries that constitute a list block.
307322
{ # Represents an entry in the list.

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

+45
Original file line numberDiff line numberDiff line change
@@ -601,10 +601,25 @@ <h3>Method Details</h3>
601601
],
602602
},
603603
&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.
604+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
604605
&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.
605606
&quot;blocks&quot;: [ # List of blocks in the document.
606607
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
607608
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
609+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
610+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
611+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
612+
&quot;x&quot;: 3.14, # X coordinate.
613+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
614+
},
615+
],
616+
&quot;vertices&quot;: [ # The bounding polygon vertices.
617+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
618+
&quot;x&quot;: 42, # X coordinate.
619+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
620+
},
621+
],
622+
},
608623
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
609624
&quot;listEntries&quot;: [ # List entries that constitute a list block.
610625
{ # Represents an entry in the list.
@@ -1543,10 +1558,25 @@ <h3>Method Details</h3>
15431558
],
15441559
},
15451560
&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.
1561+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
15461562
&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.
15471563
&quot;blocks&quot;: [ # List of blocks in the document.
15481564
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
15491565
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
1566+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
1567+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
1568+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
1569+
&quot;x&quot;: 3.14, # X coordinate.
1570+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
1571+
},
1572+
],
1573+
&quot;vertices&quot;: [ # The bounding polygon vertices.
1574+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
1575+
&quot;x&quot;: 42, # X coordinate.
1576+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
1577+
},
1578+
],
1579+
},
15501580
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
15511581
&quot;listEntries&quot;: [ # List entries that constitute a list block.
15521582
{ # Represents an entry in the list.
@@ -2585,10 +2615,25 @@ <h3>Method Details</h3>
25852615
],
25862616
},
25872617
&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.
2618+
&quot;docid&quot;: &quot;A String&quot;, # Optional. An internal identifier for document. Should be loggable (no PII).
25882619
&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.
25892620
&quot;blocks&quot;: [ # List of blocks in the document.
25902621
{ # Represents a block. A block could be one of the various types (text, table, list) supported.
25912622
&quot;blockId&quot;: &quot;A String&quot;, # ID of the block.
2623+
&quot;boundingBox&quot;: { # A bounding polygon for the detected image annotation. # Identifies the bounding box for the block.
2624+
&quot;normalizedVertices&quot;: [ # The bounding polygon normalized vertices.
2625+
{ # A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.
2626+
&quot;x&quot;: 3.14, # X coordinate.
2627+
&quot;y&quot;: 3.14, # Y coordinate (starts from the top of the image).
2628+
},
2629+
],
2630+
&quot;vertices&quot;: [ # The bounding polygon vertices.
2631+
{ # A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.
2632+
&quot;x&quot;: 42, # X coordinate.
2633+
&quot;y&quot;: 42, # Y coordinate (starts from the top of the image).
2634+
},
2635+
],
2636+
},
25922637
&quot;listBlock&quot;: { # Represents a list type block. # Block consisting of list content/structure.
25932638
&quot;listEntries&quot;: [ # List entries that constitute a list block.
25942639
{ # Represents an entry in the list.

0 commit comments

Comments
 (0)