google-cloud-documentai 3.13.0__tar.gz → 3.14.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. {google_cloud_documentai-3.13.0/google_cloud_documentai.egg-info → google_cloud_documentai-3.14.0}/PKG-INFO +1 -1
  2. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai/gapic_version.py +1 -1
  3. {google_cloud_documentai-3.13.0/google/cloud/documentai_v1beta3 → google_cloud_documentai-3.14.0/google/cloud/documentai_v1}/gapic_version.py +1 -1
  4. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/document.py +282 -15
  5. {google_cloud_documentai-3.13.0/google/cloud/documentai_v1 → google_cloud_documentai-3.14.0/google/cloud/documentai_v1beta3}/gapic_version.py +1 -1
  6. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0/google_cloud_documentai.egg-info}/PKG-INFO +1 -1
  7. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/LICENSE +0 -0
  8. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/MANIFEST.in +0 -0
  9. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/README.rst +0 -0
  10. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai/__init__.py +0 -0
  11. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai/py.typed +0 -0
  12. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/__init__.py +0 -0
  13. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/gapic_metadata.json +0 -0
  14. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/py.typed +0 -0
  15. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/__init__.py +0 -0
  16. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/__init__.py +0 -0
  17. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/async_client.py +0 -0
  18. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/client.py +0 -0
  19. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/pagers.py +0 -0
  20. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/transports/__init__.py +0 -0
  21. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/transports/base.py +0 -0
  22. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/transports/grpc.py +0 -0
  23. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/transports/grpc_asyncio.py +0 -0
  24. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/transports/rest.py +0 -0
  25. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/services/document_processor_service/transports/rest_base.py +0 -0
  26. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/__init__.py +0 -0
  27. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/barcode.py +0 -0
  28. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/document_io.py +0 -0
  29. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/document_processor_service.py +0 -0
  30. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/document_schema.py +0 -0
  31. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/evaluation.py +0 -0
  32. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/geometry.py +0 -0
  33. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/operation_metadata.py +0 -0
  34. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/processor.py +0 -0
  35. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1/types/processor_type.py +0 -0
  36. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/__init__.py +0 -0
  37. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/gapic_metadata.json +0 -0
  38. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/py.typed +0 -0
  39. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/__init__.py +0 -0
  40. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/__init__.py +0 -0
  41. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/async_client.py +0 -0
  42. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/client.py +0 -0
  43. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/pagers.py +0 -0
  44. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/__init__.py +0 -0
  45. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/base.py +0 -0
  46. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/grpc.py +0 -0
  47. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/grpc_asyncio.py +0 -0
  48. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/rest.py +0 -0
  49. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_processor_service/transports/rest_base.py +0 -0
  50. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/__init__.py +0 -0
  51. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/async_client.py +0 -0
  52. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/client.py +0 -0
  53. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/pagers.py +0 -0
  54. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/transports/__init__.py +0 -0
  55. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/transports/base.py +0 -0
  56. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/transports/grpc.py +0 -0
  57. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/transports/grpc_asyncio.py +0 -0
  58. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/transports/rest.py +0 -0
  59. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/services/document_service/transports/rest_base.py +0 -0
  60. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/__init__.py +0 -0
  61. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/barcode.py +0 -0
  62. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/dataset.py +0 -0
  63. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/document.py +0 -0
  64. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/document_io.py +0 -0
  65. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/document_processor_service.py +0 -0
  66. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/document_schema.py +0 -0
  67. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/document_service.py +0 -0
  68. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/evaluation.py +0 -0
  69. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/geometry.py +0 -0
  70. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/operation_metadata.py +0 -0
  71. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/processor.py +0 -0
  72. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google/cloud/documentai_v1beta3/types/processor_type.py +0 -0
  73. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google_cloud_documentai.egg-info/SOURCES.txt +0 -0
  74. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google_cloud_documentai.egg-info/dependency_links.txt +0 -0
  75. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google_cloud_documentai.egg-info/not-zip-safe +0 -0
  76. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google_cloud_documentai.egg-info/requires.txt +0 -0
  77. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/google_cloud_documentai.egg-info/top_level.txt +0 -0
  78. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/setup.cfg +0 -0
  79. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/setup.py +0 -0
  80. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/__init__.py +0 -0
  81. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/unit/__init__.py +0 -0
  82. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/unit/gapic/__init__.py +0 -0
  83. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/unit/gapic/documentai_v1/__init__.py +0 -0
  84. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/unit/gapic/documentai_v1/test_document_processor_service.py +0 -0
  85. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/unit/gapic/documentai_v1beta3/__init__.py +0 -0
  86. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/unit/gapic/documentai_v1beta3/test_document_processor_service.py +0 -0
  87. {google_cloud_documentai-3.13.0 → google_cloud_documentai-3.14.0}/tests/unit/gapic/documentai_v1beta3/test_document_service.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-documentai
3
- Version: 3.13.0
3
+ Version: 3.14.0
4
4
  Summary: Google Cloud Documentai API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-documentai
6
6
  Author: Google LLC
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "3.13.0" # {x-release-please-version}
16
+ __version__ = "3.14.0" # {x-release-please-version}
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "3.13.0" # {x-release-please-version}
16
+ __version__ = "3.14.0" # {x-release-please-version}
@@ -110,6 +110,12 @@ class Document(proto.Message):
110
110
  Parsed layout of the document.
111
111
  chunked_document (google.cloud.documentai_v1.types.Document.ChunkedDocument):
112
112
  Document chunked based on chunking config.
113
+ blob_assets (MutableSequence[google.cloud.documentai_v1.types.Document.BlobAsset]):
114
+ Optional. The blob assets in this document.
115
+ This is used to store the content of the inline
116
+ blobs in this document, for example, image
117
+ bytes, such that it can be referenced by other
118
+ fields in the document via asset id.
113
119
  entity_validation_output (google.cloud.documentai_v1.types.Document.EntityValidationOutput):
114
120
  The entity validation output for the document. This is the
115
121
  validation output for ``document.entities`` field.
@@ -123,7 +129,7 @@ class Document(proto.Message):
123
129
  The entity revision ID that ``document.entities`` field is
124
130
  based on. If this field is set and ``entities_revisions`` is
125
131
  not empty, the entities in ``document.entities`` field are
126
- the entities in the entity revision with this ID and
132
+ the entities in the entity revision with this id and
127
133
  ``document.entity_validation_output`` field is the
128
134
  ``entity_validation_output`` field in this entity revision.
129
135
  """
@@ -291,8 +297,9 @@ class Document(proto.Message):
291
297
  A list of visually detected tokens on the
292
298
  page.
293
299
  visual_elements (MutableSequence[google.cloud.documentai_v1.types.Document.Page.VisualElement]):
294
- A list of detected non-text visual elements
295
- e.g. checkbox, signature etc. on the page.
300
+ A list of detected non-text visual elements,
301
+ for example, checkbox, signature etc. on the
302
+ page.
296
303
  tables (MutableSequence[google.cloud.documentai_v1.types.Document.Page.Table]):
297
304
  A list of visually detected tables on the
298
305
  page.
@@ -414,9 +421,9 @@ class Document(proto.Message):
414
421
  confidence (float):
415
422
  Confidence of the current
416
423
  [Layout][google.cloud.documentai.v1.Document.Page.Layout]
417
- within context of the object this layout is for. e.g.
418
- confidence can be for a single token, a table, a visual
419
- element, etc. depending on context. Range ``[0, 1]``.
424
+ within context of the object this layout is for. For
425
+ example, confidence can be for a single token, a table, a
426
+ visual element, etc. depending on context. Range ``[0, 1]``.
420
427
  bounding_poly (google.cloud.documentai_v1.types.BoundingPoly):
421
428
  The bounding polygon for the
422
429
  [Layout][google.cloud.documentai.v1.Document.Page.Layout].
@@ -791,8 +798,8 @@ class Document(proto.Message):
791
798
  )
792
799
 
793
800
  class VisualElement(proto.Message):
794
- r"""Detected non-text visual elements e.g. checkbox, signature
795
- etc. on the page.
801
+ r"""Detected non-text visual elements, for example, checkbox,
802
+ signature etc. on the page.
796
803
 
797
804
  Attributes:
798
805
  layout (google.cloud.documentai_v1.types.Document.Page.Layout):
@@ -936,7 +943,7 @@ class Document(proto.Message):
936
943
  [Layout][google.cloud.documentai.v1.Document.Page.Layout]
937
944
  for the
938
945
  [FormField][google.cloud.documentai.v1.Document.Page.FormField]
939
- name. e.g. ``Address``, ``Email``, ``Grand total``,
946
+ name. For example, ``Address``, ``Email``, ``Grand total``,
940
947
  ``Phone number``, etc.
941
948
  field_value (google.cloud.documentai_v1.types.Document.Page.Layout):
942
949
  [Layout][google.cloud.documentai.v1.Document.Page.Layout]
@@ -1211,9 +1218,10 @@ class Document(proto.Message):
1211
1218
  into the
1212
1219
  [Document.text][google.cloud.documentai.v1.Document.text].
1213
1220
  type_ (str):
1214
- Required. Entity type from a schema e.g. ``Address``.
1221
+ Required. Entity type from a schema, for example,
1222
+ ``Address``.
1215
1223
  mention_text (str):
1216
- Optional. Text value of the entity e.g.
1224
+ Optional. Text value of the entity, for example,
1217
1225
  ``1600 Amphitheatre Pkwy``.
1218
1226
  mention_id (str):
1219
1227
  Optional. Deprecated. Use ``id`` field instead.
@@ -1230,8 +1238,8 @@ class Document(proto.Message):
1230
1238
  normalized_value (google.cloud.documentai_v1.types.Document.Entity.NormalizedValue):
1231
1239
  Optional. Normalized entity value. Absent if
1232
1240
  the extracted value could not be converted or
1233
- the type (e.g. address) is not supported for
1234
- certain parsers. This field is also only
1241
+ the type (for example, address) is not supported
1242
+ for certain parsers. This field is also only
1235
1243
  populated for certain supported document types.
1236
1244
  properties (MutableSequence[google.cloud.documentai_v1.types.Document.Entity]):
1237
1245
  Optional. Entities can be nested to form a
@@ -1315,6 +1323,8 @@ class Document(proto.Message):
1315
1323
 
1316
1324
  This field is a member of `oneof`_ ``structured_value``.
1317
1325
  signature_value (bool):
1326
+ A signature - a graphical representation of a
1327
+ person's name, often used to sign a document.
1318
1328
 
1319
1329
  This field is a member of `oneof`_ ``structured_value``.
1320
1330
  text (str):
@@ -1790,8 +1800,8 @@ class Document(proto.Message):
1790
1800
 
1791
1801
  Attributes:
1792
1802
  state (str):
1793
- Human review state. e.g. ``requested``, ``succeeded``,
1794
- ``rejected``.
1803
+ Human review state. For example, ``requested``,
1804
+ ``succeeded``, ``rejected``.
1795
1805
  state_message (str):
1796
1806
  A message providing more details about the current state of
1797
1807
  processing. For example, the rejection reason when the state
@@ -1872,6 +1882,20 @@ class Document(proto.Message):
1872
1882
  message="Document.Provenance",
1873
1883
  )
1874
1884
 
1885
+ class Annotations(proto.Message):
1886
+ r"""Represents the annotation of a block or a chunk.
1887
+
1888
+ Attributes:
1889
+ description (str):
1890
+ The description of the content with this
1891
+ annotation.
1892
+ """
1893
+
1894
+ description: str = proto.Field(
1895
+ proto.STRING,
1896
+ number=1,
1897
+ )
1898
+
1875
1899
  class DocumentLayout(proto.Message):
1876
1900
  r"""Represents the parsed layout of a document as a collection of
1877
1901
  blocks that the document is divided into.
@@ -1904,6 +1928,10 @@ class Document(proto.Message):
1904
1928
  list_block (google.cloud.documentai_v1.types.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock):
1905
1929
  Block consisting of list content/structure.
1906
1930
 
1931
+ This field is a member of `oneof`_ ``block``.
1932
+ image_block (google.cloud.documentai_v1.types.Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock):
1933
+ Block consisting of image content.
1934
+
1907
1935
  This field is a member of `oneof`_ ``block``.
1908
1936
  block_id (str):
1909
1937
  ID of the block.
@@ -1947,6 +1975,8 @@ class Document(proto.Message):
1947
1975
  A text block could further have child blocks.
1948
1976
  Repeated blocks support further hierarchies and
1949
1977
  nested blocks.
1978
+ annotations (google.cloud.documentai_v1.types.Document.Annotations):
1979
+ Annotation of the text block.
1950
1980
  """
1951
1981
 
1952
1982
  text: str = proto.Field(
@@ -1964,6 +1994,11 @@ class Document(proto.Message):
1964
1994
  number=3,
1965
1995
  message="Document.DocumentLayout.DocumentLayoutBlock",
1966
1996
  )
1997
+ annotations: "Document.Annotations" = proto.Field(
1998
+ proto.MESSAGE,
1999
+ number=4,
2000
+ message="Document.Annotations",
2001
+ )
1967
2002
 
1968
2003
  class LayoutTableBlock(proto.Message):
1969
2004
  r"""Represents a table type block.
@@ -1975,6 +2010,8 @@ class Document(proto.Message):
1975
2010
  Body rows containing main table content.
1976
2011
  caption (str):
1977
2012
  Table caption/title.
2013
+ annotations (google.cloud.documentai_v1.types.Document.Annotations):
2014
+ Annotation of the table block.
1978
2015
  """
1979
2016
 
1980
2017
  header_rows: MutableSequence[
@@ -1995,6 +2032,11 @@ class Document(proto.Message):
1995
2032
  proto.STRING,
1996
2033
  number=3,
1997
2034
  )
2035
+ annotations: "Document.Annotations" = proto.Field(
2036
+ proto.MESSAGE,
2037
+ number=4,
2038
+ message="Document.Annotations",
2039
+ )
1998
2040
 
1999
2041
  class LayoutTableRow(proto.Message):
2000
2042
  r"""Represents a row in a table.
@@ -2083,6 +2125,74 @@ class Document(proto.Message):
2083
2125
  message="Document.DocumentLayout.DocumentLayoutBlock",
2084
2126
  )
2085
2127
 
2128
+ class LayoutImageBlock(proto.Message):
2129
+ r"""Represents an image type block.
2130
+
2131
+ This message has `oneof`_ fields (mutually exclusive fields).
2132
+ For each oneof, at most one member field can be set at the same time.
2133
+ Setting any member of the oneof automatically clears all other
2134
+ members.
2135
+
2136
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
2137
+
2138
+ Attributes:
2139
+ blob_asset_id (str):
2140
+ Optional. Asset id of the inline image. If set, find the
2141
+ image content in the blob_assets field.
2142
+
2143
+ This field is a member of `oneof`_ ``image_source``.
2144
+ gcs_uri (str):
2145
+ Optional. Google Cloud Storage uri of the
2146
+ image.
2147
+
2148
+ This field is a member of `oneof`_ ``image_source``.
2149
+ data_uri (str):
2150
+ Optional. Data uri of the image. It is composed of four
2151
+ parts: a prefix (data:), a MIME type indicating the type of
2152
+ data, an optional base64 token if non-textual, and the data
2153
+ itself: data:[][;base64],
2154
+
2155
+ This field is a member of `oneof`_ ``image_source``.
2156
+ mime_type (str):
2157
+ Mime type of the image. An IANA published [media type (MIME
2158
+ type)]
2159
+ (https://www.iana.org/assignments/media-types/media-types.xhtml).
2160
+ image_text (str):
2161
+ Text extracted from the image using OCR or
2162
+ alt text describing the image.
2163
+ annotations (google.cloud.documentai_v1.types.Document.Annotations):
2164
+ Annotation of the image block.
2165
+ """
2166
+
2167
+ blob_asset_id: str = proto.Field(
2168
+ proto.STRING,
2169
+ number=4,
2170
+ oneof="image_source",
2171
+ )
2172
+ gcs_uri: str = proto.Field(
2173
+ proto.STRING,
2174
+ number=5,
2175
+ oneof="image_source",
2176
+ )
2177
+ data_uri: str = proto.Field(
2178
+ proto.STRING,
2179
+ number=6,
2180
+ oneof="image_source",
2181
+ )
2182
+ mime_type: str = proto.Field(
2183
+ proto.STRING,
2184
+ number=1,
2185
+ )
2186
+ image_text: str = proto.Field(
2187
+ proto.STRING,
2188
+ number=2,
2189
+ )
2190
+ annotations: "Document.Annotations" = proto.Field(
2191
+ proto.MESSAGE,
2192
+ number=3,
2193
+ message="Document.Annotations",
2194
+ )
2195
+
2086
2196
  text_block: "Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock" = proto.Field(
2087
2197
  proto.MESSAGE,
2088
2198
  number=2,
@@ -2101,6 +2211,12 @@ class Document(proto.Message):
2101
2211
  oneof="block",
2102
2212
  message="Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock",
2103
2213
  )
2214
+ image_block: "Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock" = proto.Field(
2215
+ proto.MESSAGE,
2216
+ number=7,
2217
+ oneof="block",
2218
+ message="Document.DocumentLayout.DocumentLayoutBlock.LayoutImageBlock",
2219
+ )
2104
2220
  block_id: str = proto.Field(
2105
2221
  proto.STRING,
2106
2222
  number=1,
@@ -2148,6 +2264,8 @@ class Document(proto.Message):
2148
2264
  Page headers associated with the chunk.
2149
2265
  page_footers (MutableSequence[google.cloud.documentai_v1.types.Document.ChunkedDocument.Chunk.ChunkPageFooter]):
2150
2266
  Page footers associated with the chunk.
2267
+ chunk_fields (MutableSequence[google.cloud.documentai_v1.types.Document.ChunkedDocument.Chunk.ChunkField]):
2268
+ Chunk fields inside this chunk.
2151
2269
  """
2152
2270
 
2153
2271
  class ChunkPageSpan(proto.Message):
@@ -2209,6 +2327,112 @@ class Document(proto.Message):
2209
2327
  message="Document.ChunkedDocument.Chunk.ChunkPageSpan",
2210
2328
  )
2211
2329
 
2330
+ class ImageChunkField(proto.Message):
2331
+ r"""The image chunk field in the chunk.
2332
+
2333
+ This message has `oneof`_ fields (mutually exclusive fields).
2334
+ For each oneof, at most one member field can be set at the same time.
2335
+ Setting any member of the oneof automatically clears all other
2336
+ members.
2337
+
2338
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
2339
+
2340
+ Attributes:
2341
+ blob_asset_id (str):
2342
+ Optional. Asset id of the inline image. If set, find the
2343
+ image content in the blob_assets field.
2344
+
2345
+ This field is a member of `oneof`_ ``image_source``.
2346
+ gcs_uri (str):
2347
+ Optional. Google Cloud Storage uri of the
2348
+ image.
2349
+
2350
+ This field is a member of `oneof`_ ``image_source``.
2351
+ data_uri (str):
2352
+ Optional. Data uri of the image. It is composed of four
2353
+ parts: a prefix (data:), a MIME type indicating the type of
2354
+ data, an optional base64 token if non-textual, and the data
2355
+ itself: data:[][;base64],
2356
+
2357
+ This field is a member of `oneof`_ ``image_source``.
2358
+ annotations (google.cloud.documentai_v1.types.Document.Annotations):
2359
+ Annotation of the image chunk field.
2360
+ """
2361
+
2362
+ blob_asset_id: str = proto.Field(
2363
+ proto.STRING,
2364
+ number=1,
2365
+ oneof="image_source",
2366
+ )
2367
+ gcs_uri: str = proto.Field(
2368
+ proto.STRING,
2369
+ number=2,
2370
+ oneof="image_source",
2371
+ )
2372
+ data_uri: str = proto.Field(
2373
+ proto.STRING,
2374
+ number=3,
2375
+ oneof="image_source",
2376
+ )
2377
+ annotations: "Document.Annotations" = proto.Field(
2378
+ proto.MESSAGE,
2379
+ number=4,
2380
+ message="Document.Annotations",
2381
+ )
2382
+
2383
+ class TableChunkField(proto.Message):
2384
+ r"""The table chunk field in the chunk.
2385
+
2386
+ Attributes:
2387
+ annotations (google.cloud.documentai_v1.types.Document.Annotations):
2388
+ Annotation of the table chunk field.
2389
+ """
2390
+
2391
+ annotations: "Document.Annotations" = proto.Field(
2392
+ proto.MESSAGE,
2393
+ number=1,
2394
+ message="Document.Annotations",
2395
+ )
2396
+
2397
+ class ChunkField(proto.Message):
2398
+ r"""The chunk field in the chunk. A chunk field could be one of
2399
+ the various types (for example, image, table) supported.
2400
+
2401
+ This message has `oneof`_ fields (mutually exclusive fields).
2402
+ For each oneof, at most one member field can be set at the same time.
2403
+ Setting any member of the oneof automatically clears all other
2404
+ members.
2405
+
2406
+ .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
2407
+
2408
+ Attributes:
2409
+ image_chunk_field (google.cloud.documentai_v1.types.Document.ChunkedDocument.Chunk.ImageChunkField):
2410
+ The image chunk field in the chunk.
2411
+
2412
+ This field is a member of `oneof`_ ``field_type``.
2413
+ table_chunk_field (google.cloud.documentai_v1.types.Document.ChunkedDocument.Chunk.TableChunkField):
2414
+ The table chunk field in the chunk.
2415
+
2416
+ This field is a member of `oneof`_ ``field_type``.
2417
+ """
2418
+
2419
+ image_chunk_field: "Document.ChunkedDocument.Chunk.ImageChunkField" = (
2420
+ proto.Field(
2421
+ proto.MESSAGE,
2422
+ number=1,
2423
+ oneof="field_type",
2424
+ message="Document.ChunkedDocument.Chunk.ImageChunkField",
2425
+ )
2426
+ )
2427
+ table_chunk_field: "Document.ChunkedDocument.Chunk.TableChunkField" = (
2428
+ proto.Field(
2429
+ proto.MESSAGE,
2430
+ number=2,
2431
+ oneof="field_type",
2432
+ message="Document.ChunkedDocument.Chunk.TableChunkField",
2433
+ )
2434
+ )
2435
+
2212
2436
  chunk_id: str = proto.Field(
2213
2437
  proto.STRING,
2214
2438
  number=1,
@@ -2240,6 +2464,13 @@ class Document(proto.Message):
2240
2464
  number=6,
2241
2465
  message="Document.ChunkedDocument.Chunk.ChunkPageFooter",
2242
2466
  )
2467
+ chunk_fields: MutableSequence[
2468
+ "Document.ChunkedDocument.Chunk.ChunkField"
2469
+ ] = proto.RepeatedField(
2470
+ proto.MESSAGE,
2471
+ number=7,
2472
+ message="Document.ChunkedDocument.Chunk.ChunkField",
2473
+ )
2243
2474
 
2244
2475
  chunks: MutableSequence["Document.ChunkedDocument.Chunk"] = proto.RepeatedField(
2245
2476
  proto.MESSAGE,
@@ -2247,6 +2478,37 @@ class Document(proto.Message):
2247
2478
  message="Document.ChunkedDocument.Chunk",
2248
2479
  )
2249
2480
 
2481
+ class BlobAsset(proto.Message):
2482
+ r"""Represents a blob asset. It's used to store the content of
2483
+ the inline blob in this document, for example, image bytes, such
2484
+ that it can be referenced by other fields in the document via
2485
+ asset ID.
2486
+
2487
+ Attributes:
2488
+ asset_id (str):
2489
+ Optional. The id of the blob asset.
2490
+ content (bytes):
2491
+ Optional. The content of the blob asset, for
2492
+ example, image bytes.
2493
+ mime_type (str):
2494
+ The mime type of the blob asset. An IANA published `media
2495
+ type (MIME
2496
+ type) <https://www.iana.org/assignments/media-types/media-types.xhtml>`__.
2497
+ """
2498
+
2499
+ asset_id: str = proto.Field(
2500
+ proto.STRING,
2501
+ number=1,
2502
+ )
2503
+ content: bytes = proto.Field(
2504
+ proto.BYTES,
2505
+ number=2,
2506
+ )
2507
+ mime_type: str = proto.Field(
2508
+ proto.STRING,
2509
+ number=3,
2510
+ )
2511
+
2250
2512
  class EntityValidationOutput(proto.Message):
2251
2513
  r"""The output of the validation given the document and the
2252
2514
  validation rules.
@@ -2427,6 +2689,11 @@ class Document(proto.Message):
2427
2689
  number=18,
2428
2690
  message=ChunkedDocument,
2429
2691
  )
2692
+ blob_assets: MutableSequence[BlobAsset] = proto.RepeatedField(
2693
+ proto.MESSAGE,
2694
+ number=19,
2695
+ message=BlobAsset,
2696
+ )
2430
2697
  entity_validation_output: EntityValidationOutput = proto.Field(
2431
2698
  proto.MESSAGE,
2432
2699
  number=21,
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- __version__ = "3.13.0" # {x-release-please-version}
16
+ __version__ = "3.14.0" # {x-release-please-version}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-cloud-documentai
3
- Version: 3.13.0
3
+ Version: 3.14.0
4
4
  Summary: Google Cloud Documentai API client library
5
5
  Home-page: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-documentai
6
6
  Author: Google LLC