Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4a93526

Browse files
committedOct 25, 2022
feat(documentai): update the api
#### documentai:v1 The following keys were added: - schemas.GoogleCloudDocumentaiV1DocumentPageTable.properties.provenance.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta1DocumentPageTable.properties.provenance.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageTable.properties.provenance.$ref (Total Keys: 1) #### documentai:v1beta2 The following keys were added: - schemas.GoogleCloudDocumentaiV1beta1DocumentPageTable.properties.provenance.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageTable.properties.provenance.$ref (Total Keys: 1) #### documentai:v1beta3 The following keys were added: - schemas.GoogleCloudDocumentaiV1beta1DocumentPageTable.properties.provenance.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta2DocumentPageTable.properties.provenance.$ref (Total Keys: 1) - schemas.GoogleCloudDocumentaiV1beta3DocumentPageTable.properties.provenance.$ref (Total Keys: 1)
1 parent 421f03b commit 4a93526

11 files changed

+227
-15
lines changed
 

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

+26-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h3>Method Details</h3>
130130
{ # Request message for batch process document method.
131131
&quot;documentOutputConfig&quot;: { # Config that controls the output of documents. All documents will be written as a JSON file. # The overall output config for batch process.
132132
&quot;gcsOutputConfig&quot;: { # The configuration used when outputting documents. # Output config to write the results to Cloud Storage.
133-
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the output documents.
133+
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
134134
&quot;gcsUri&quot;: &quot;A String&quot;, # The Cloud Storage uri (a directory) of the output.
135135
},
136136
},
@@ -424,7 +424,7 @@ <h3>Method Details</h3>
424424
The object takes the form of:
425425

426426
{ # Request message for the process document method.
427-
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in ProcessResponse&#x27;s document.
427+
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in ProcessResponse&#x27;s document. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
428428
&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.
429429
&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.
430430
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
@@ -1043,6 +1043,18 @@ <h3>Method Details</h3>
10431043
],
10441044
},
10451045
},
1046+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
1047+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
1048+
&quot;parents&quot;: [ # References to the original elements that are replaced.
1049+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
1050+
&quot;id&quot;: 42, # The id of the parent provenance.
1051+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
1052+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
1053+
},
1054+
],
1055+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
1056+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
1057+
},
10461058
},
10471059
],
10481060
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.
@@ -1866,6 +1878,18 @@ <h3>Method Details</h3>
18661878
],
18671879
},
18681880
},
1881+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
1882+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
1883+
&quot;parents&quot;: [ # References to the original elements that are replaced.
1884+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
1885+
&quot;id&quot;: 42, # The id of the parent provenance.
1886+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
1887+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
1888+
},
1889+
],
1890+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
1891+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
1892+
},
18691893
},
18701894
],
18711895
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.

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

+12
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,18 @@ <h3>Method Details</h3>
766766
],
767767
},
768768
},
769+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
770+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
771+
&quot;parents&quot;: [ # References to the original elements that are replaced.
772+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
773+
&quot;id&quot;: 42, # The id of the parent provenance.
774+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
775+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
776+
},
777+
],
778+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
779+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
780+
},
769781
},
770782
],
771783
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.

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

+26-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h3>Method Details</h3>
114114
{ # Request message for batch process document method.
115115
&quot;documentOutputConfig&quot;: { # Config that controls the output of documents. All documents will be written as a JSON file. # The overall output config for batch process.
116116
&quot;gcsOutputConfig&quot;: { # The configuration used when outputting documents. # Output config to write the results to Cloud Storage.
117-
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the output documents.
117+
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
118118
&quot;gcsUri&quot;: &quot;A String&quot;, # The Cloud Storage uri (a directory) of the output.
119119
},
120120
},
@@ -333,7 +333,7 @@ <h3>Method Details</h3>
333333
The object takes the form of:
334334

335335
{ # Request message for the process document method.
336-
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in ProcessResponse&#x27;s document.
336+
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in ProcessResponse&#x27;s document. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
337337
&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.
338338
&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.
339339
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
@@ -952,6 +952,18 @@ <h3>Method Details</h3>
952952
],
953953
},
954954
},
955+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
956+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
957+
&quot;parents&quot;: [ # References to the original elements that are replaced.
958+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
959+
&quot;id&quot;: 42, # The id of the parent provenance.
960+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
961+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
962+
},
963+
],
964+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
965+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
966+
},
955967
},
956968
],
957969
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.
@@ -1775,6 +1787,18 @@ <h3>Method Details</h3>
17751787
],
17761788
},
17771789
},
1790+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
1791+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
1792+
&quot;parents&quot;: [ # References to the original elements that are replaced.
1793+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
1794+
&quot;id&quot;: 42, # The id of the parent provenance.
1795+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
1796+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
1797+
},
1798+
],
1799+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
1800+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
1801+
},
17781802
},
17791803
],
17801804
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.

‎docs/dyn/documentai_v1beta2.projects.documents.html

+12
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,18 @@ <h3>Method Details</h3>
909909
],
910910
},
911911
},
912+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
913+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
914+
&quot;parents&quot;: [ # References to the original elements that are replaced.
915+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
916+
&quot;id&quot;: 42, # The id of the parent provenance.
917+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
918+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
919+
},
920+
],
921+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
922+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
923+
},
912924
},
913925
],
914926
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.

‎docs/dyn/documentai_v1beta2.projects.locations.documents.html

+12
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,18 @@ <h3>Method Details</h3>
909909
],
910910
},
911911
},
912+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
913+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
914+
&quot;parents&quot;: [ # References to the original elements that are replaced.
915+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
916+
&quot;id&quot;: 42, # The id of the parent provenance.
917+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
918+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
919+
},
920+
],
921+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
922+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
923+
},
912924
},
913925
],
914926
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.

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

+38-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h3>Method Details</h3>
130130
{ # Request message for batch process document method.
131131
&quot;documentOutputConfig&quot;: { # Config that controls the output of documents. All documents will be written as a JSON file. # The overall output config for batch process.
132132
&quot;gcsOutputConfig&quot;: { # The configuration used when outputting documents. # Output config to write the results to Cloud Storage.
133-
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the output documents.
133+
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in the output documents. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
134134
&quot;gcsUri&quot;: &quot;A String&quot;, # The Cloud Storage uri (a directory) of the output.
135135
},
136136
},
@@ -1051,6 +1051,18 @@ <h3>Method Details</h3>
10511051
],
10521052
},
10531053
},
1054+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
1055+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
1056+
&quot;parents&quot;: [ # References to the original elements that are replaced.
1057+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
1058+
&quot;id&quot;: 42, # The id of the parent provenance.
1059+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
1060+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
1061+
},
1062+
],
1063+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
1064+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
1065+
},
10541066
},
10551067
],
10561068
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.
@@ -1240,7 +1252,7 @@ <h3>Method Details</h3>
12401252
],
12411253
&quot;uri&quot;: &quot;A String&quot;, # Optional. Currently supports Google Cloud Storage URI of the form `gs://bucket_name/object_name`. Object versioning is not supported. See [Google Cloud Storage Request URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.
12421254
},
1243-
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in ProcessResponse&#x27;s document.
1255+
&quot;fieldMask&quot;: &quot;A String&quot;, # Specifies which fields to include in ProcessResponse&#x27;s document. Only supports top level document and pages field so it must be in the form of `{document_field_name}` or `pages.{page_field_name}`.
12441256
&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.
12451257
&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.
12461258
&quot;entities&quot;: [ # A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries.
@@ -1859,6 +1871,18 @@ <h3>Method Details</h3>
18591871
],
18601872
},
18611873
},
1874+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
1875+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
1876+
&quot;parents&quot;: [ # References to the original elements that are replaced.
1877+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
1878+
&quot;id&quot;: 42, # The id of the parent provenance.
1879+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
1880+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
1881+
},
1882+
],
1883+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
1884+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
1885+
},
18621886
},
18631887
],
18641888
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.
@@ -2682,6 +2706,18 @@ <h3>Method Details</h3>
26822706
],
26832707
},
26842708
},
2709+
&quot;provenance&quot;: { # Structure to identify provenance relationships between annotations in different revisions. # The history of this table.
2710+
&quot;id&quot;: 42, # The Id of this operation. Needs to be unique within the scope of the revision.
2711+
&quot;parents&quot;: [ # References to the original elements that are replaced.
2712+
{ # The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.
2713+
&quot;id&quot;: 42, # The id of the parent provenance.
2714+
&quot;index&quot;: 42, # The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
2715+
&quot;revision&quot;: 42, # The index of the index into current revision&#x27;s parent_ids list.
2716+
},
2717+
],
2718+
&quot;revision&quot;: 42, # The index of the revision that produced this element.
2719+
&quot;type&quot;: &quot;A String&quot;, # The type of provenance operation.
2720+
},
26852721
},
26862722
],
26872723
&quot;tokens&quot;: [ # A list of visually detected tokens on the page.

0 commit comments

Comments
 (0)
Please sign in to comment.