From 5558eac58f4f93e111a94cf988a196eb0b187519 Mon Sep 17 00:00:00 2001 From: Gal Zahavi <38544478+galz10@users.noreply.github.com> Date: Mon, 7 Mar 2022 22:13:27 +0200 Subject: [PATCH 1/8] chore: updated pypi link in readme (#289) * chore: updated pypi link in readme * updated links --- README.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 From 90ef766db1ec667178384ec3df4e0507bbc133a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 02:48:04 +0100 Subject: [PATCH 2/8] chore(deps): update dependency google-cloud-documentai to v1.3.0 (#290) Co-authored-by: Anthonios Partheniou --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 22c75a38..61f74f43 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,2 +1,2 @@ -google-cloud-documentai==1.2.1 +google-cloud-documentai==1.3.0 google-cloud-storage==2.1.0 From 4e82b1dd93a0a59d3f93ea9ca52af471fa0ded2f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 13 Mar 2022 21:23:57 +0100 Subject: [PATCH 3/8] chore(deps): update dependency pytest to v7.1.0 (#291) --- samples/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index c2845bff..824a8a7a 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1 +1 @@ -pytest==7.0.1 +pytest==7.1.0 From fce5835aca25834ec56a06fc574771c6edeaba44 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 21:00:59 +0100 Subject: [PATCH 4/8] chore(deps): update dependency google-cloud-storage to v2.2.0 (#292) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index 61f74f43..c8600a86 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,2 +1,2 @@ google-cloud-documentai==1.3.0 -google-cloud-storage==2.1.0 +google-cloud-storage==2.2.0 From 3619d974f30a9c2d57faec94fb744ddf7192127c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 16 Mar 2022 12:33:00 +0100 Subject: [PATCH 5/8] chore(deps): update dependency google-cloud-storage to v2.2.1 (#293) --- samples/snippets/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements.txt b/samples/snippets/requirements.txt index c8600a86..b9a58c5f 100644 --- a/samples/snippets/requirements.txt +++ b/samples/snippets/requirements.txt @@ -1,2 +1,2 @@ google-cloud-documentai==1.3.0 -google-cloud-storage==2.2.0 +google-cloud-storage==2.2.1 From f8b3e05718d26da6711aef42d58951d275d7d87d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 17 Mar 2022 05:04:11 -0400 Subject: [PATCH 6/8] feat: add `content` field in TextAnchor (#294) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `content` field in TextAnchor PiperOrigin-RevId: 435142243 Source-Link: https://github.com/googleapis/googleapis/commit/721b367f4b3e7a98f6f57c31409b281379a2e39e Source-Link: https://github.com/googleapis/googleapis-gen/commit/b627aaeb3afafe7d94d6099a2d1945aa9b4dadad Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjYyN2FhZWIzYWZhZmU3ZDk0ZDYwOTlhMmQxOTQ1YWE5YjRkYWRhZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- google/cloud/documentai_v1beta2/types/document.py | 4 ++++ 1 file changed, 4 insertions(+) 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 From 001084260195faa0db86164c894c5629b0520971 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 19 Mar 2022 11:40:27 +0100 Subject: [PATCH 7/8] chore(deps): update dependency pytest to v7.1.1 (#296) --- samples/snippets/requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/snippets/requirements-test.txt b/samples/snippets/requirements-test.txt index 824a8a7a..4f6bf643 100644 --- a/samples/snippets/requirements-test.txt +++ b/samples/snippets/requirements-test.txt @@ -1 +1 @@ -pytest==7.1.0 +pytest==7.1.1 From 0666d26827a755592e9363d01384a54ea6aaf19b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 10:41:53 -0400 Subject: [PATCH 8/8] chore(main): release 1.4.0 (#295) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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/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__))