diff --git a/CHANGELOG.md b/CHANGELOG.md index e44b5a67..d952f926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.4.0](https://github.com/googleapis/python-documentai/compare/v1.3.0...v1.4.0) (2022-03-19) + + +### Features + +* add `content` field in TextAnchor ([#294](https://github.com/googleapis/python-documentai/issues/294)) ([f8b3e05](https://github.com/googleapis/python-documentai/commit/f8b3e05718d26da6711aef42d58951d275d7d87d)) + ## [1.3.0](https://github.com/googleapis/python-documentai/compare/v1.2.1...v1.3.0) (2022-03-05) diff --git a/README.rst b/README.rst index c772006e..c295e970 100644 --- a/README.rst +++ b/README.rst @@ -13,12 +13,12 @@ language, computer vision, translation, and AutoML. .. |GA| image:: https://img.shields.io/badge/support-ga-gold.svg :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#general-availability .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-service-directory.svg - :target: https://pypi.org/project/google-cloud-service-directory/ + :target: https://pypi.org/project/google-cloud-documentai/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-documentai.svg :target: https://pypi.org/project/google-cloud-documentai/ -.. _Cloud Document AI API: https://cloud.google.com/document-understanding/docs/ +.. _Cloud Document AI API: https://cloud.google.com/document-ai/docs/overview .. _Client Library Documentation: https://cloud.google.com/python/docs/reference/documentai/latest -.. _Product Documentation: https://cloud.google.com/document-understanding/docs/ +.. _Product Documentation: https://cloud.google.com/document-ai/docs Quick Start ----------- @@ -32,7 +32,7 @@ In order to use this library, you first need to go through the following steps: .. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project .. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the Cloud Document AI API.: https://cloud.google.com/document-understanding/docs/ +.. _Enable the Cloud Document AI API.: https://cloud.google.com/document-ai/docs .. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html Installation @@ -80,5 +80,5 @@ Next Steps - View this `README`_ to see the full list of Cloud APIs that we cover. -.. _Cloud Document AI API Product documentation: https://cloud.google.com/document-understanding/docs/ +.. _Cloud Document AI API Product documentation: https://cloud.google.com/document-ai/docs/overview .. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst diff --git a/google/cloud/documentai_v1beta2/types/document.py b/google/cloud/documentai_v1beta2/types/document.py index 02394cb5..94be9ebb 100644 --- a/google/cloud/documentai_v1beta2/types/document.py +++ b/google/cloud/documentai_v1beta2/types/document.py @@ -673,6 +673,9 @@ class TextAnchor(proto.Message): text_segments (Sequence[google.cloud.documentai_v1beta2.types.Document.TextAnchor.TextSegment]): The text segments from the [Document.text][google.cloud.documentai.v1beta2.Document.text]. + content (str): + Contains the content of the text span so that users do not + have to look it up in the text_segments. """ class TextSegment(proto.Message): @@ -699,6 +702,7 @@ class TextSegment(proto.Message): text_segments = proto.RepeatedField( proto.MESSAGE, number=1, message="Document.TextAnchor.TextSegment", ) + content = proto.Field(proto.STRING, number=2,) class PageAnchor(proto.Message): r"""Referencing elements in diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index c2845bff..4f6bf643 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1 +1 @@ -pytest==7.0.1 +pytest==7.1.1 diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 22c75a38..b9a58c5f 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,2 +1,2 @@ -google-cloud-documentai==1.2.1 -google-cloud-storage==2.1.0 +google-cloud-documentai==1.3.0 +google-cloud-storage==2.2.1 diff --git a/setup.py b/setup.py index 3b6b4202..0cb82f8d 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ import os import setuptools # type: ignore -version = "1.3.0" +version = "1.4.0" package_root = os.path.abspath(os.path.dirname(__file__))
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: