Repository: GoogleCloudPlatform/python-docs-samples (language: python)

Issue:
chore(deps): update dependency google-cloud-translate to v3.16.0
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-translate](https://redirect.github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-translate) ([source](https://redirect.github.com/googleapis/google-cloud-python)) | `==3.11.1` -> `==3.16.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/google-cloud-translate/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/google-cloud-translate/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/google-cloud-translate/3.11.1/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/google-cloud-translate/3.11.1/3.16.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/google-cloud-python (google-cloud-translate)</summary>

### [`v3.16.0`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-dlp-v3.16.0): google-cloud-dlp: v3.16.0

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.15.5...google-cloud-translate-v3.16.0)

##### Features

-   Add RPCs for getting and listing project, table, and column data profiles ([d319fac](https://redirect.github.com/googleapis/google-cloud-python/commit/d319facb5b523d8f4360ac2ce4d940d272446069))

##### Documentation

-   Update urls to reflect branding change to Sensitive Data Protection ([d319fac](https://redirect.github.com/googleapis/google-cloud-python/commit/d319facb5b523d8f4360ac2ce4d940d272446069))

### [`v3.15.5`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-translate-v3.15.5): google-cloud-translate: v3.15.5

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.15.4...google-cloud-translate-v3.15.5)

##### Bug Fixes

-   Retry and timeout values do not propagate in requests during pagination ([9cdac77](https://redirect.github.com/googleapis/google-cloud-python/commit/9cdac77b20a8c9720aa668639e3ca6d1e759a2de))

### [`v3.15.4`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-translate-v3.15.4): google-cloud-translate: v3.15.4

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.15.3...google-cloud-translate-v3.15.4)

##### Bug Fixes

-   Allow Protobuf 5.x ([#&#8203;12870](https://redirect.github.com/googleapis/google-cloud-python/issues/12870)) ([4d16761](https://redirect.github.com/googleapis/google-cloud-python/commit/4d16761640dd8e35410b3219b7d675d7668d2f88))

### [`v3.15.3`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-translate-v3.15.3): google-cloud-translate: v3.15.3

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.15.2...google-cloud-translate-v3.15.3)

##### Bug Fixes

-   **deps:** Exclude google-auth 2.24.0 and 2.25.0 ([#&#8203;12388](https://redirect.github.com/googleapis/google-cloud-python/issues/12388)) ([d2cd4ff](https://redirect.github.com/googleapis/google-cloud-python/commit/d2cd4ffd12467ad512cccd7a0e9bb897ff2ce2a7))

### [`v3.15.2`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-translate-v3.15.2): google-cloud-translate: v3.15.2

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.15.1...google-cloud-translate-v3.15.2)

##### Bug Fixes

-   **deps:** \[Many APIs] Require `google-api-core>=1.34.1` ([#&#8203;12310](https://redirect.github.com/googleapis/google-cloud-python/issues/12310)) ([41821da](https://redirect.github.com/googleapis/google-cloud-python/commit/41821da1fe08cc2aeeefc8c8f516023e4b0d0700))
-   fix ValueError in test\_\_validate_universe_domain ([2451e88](https://redirect.github.com/googleapis/google-cloud-python/commit/2451e88f302bc582b3f6d01a6ec6aceba7646252))

### [`v3.15.1`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-dlp-v3.15.1): google-cloud-dlp: v3.15.1

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.15.0...google-cloud-translate-v3.15.1)

##### Bug Fixes

-   Add google-auth as a direct dependency ([c721248](https://redirect.github.com/googleapis/google-cloud-python/commit/c721248accc77f0b1fba9605a65ea95a86f023a5))
-   Add staticmethod decorator to \_get_client_cert_source and \_get_api_endpoint ([c721248](https://redirect.github.com/googleapis/google-cloud-python/commit/c721248accc77f0b1fba9605a65ea95a86f023a5))
-   Resolve AttributeError 'Credentials' object has no attribute 'universe_domain' ([c721248](https://redirect.github.com/googleapis/google-cloud-python/commit/c721248accc77f0b1fba9605a65ea95a86f023a5))

### [`v3.15.0`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-dlp-v3.15.0): google-cloud-dlp: v3.15.0

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.14.0...google-cloud-translate-v3.15.0)

##### Features

-   Allow users to explicitly configure universe domain ([#&#8203;12240](https://redirect.github.com/googleapis/google-cloud-python/issues/12240)) ([d51f832](https://redirect.github.com/googleapis/google-cloud-python/commit/d51f83298f89dbae23af1a146411b296eba6bba2))

### [`v3.14.0`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-dlp-v3.14.0): google-cloud-dlp: v3.14.0

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.13.0...google-cloud-translate-v3.14.0)

##### Features

-   Add support for python 3.12 ([5cd98aa](https://redirect.github.com/googleapis/google-cloud-python/commit/5cd98aa0e8ead2eef82ecdcef4141b33a7da2b5a))
-   Introduce compatibility with native namespace packages ([5cd98aa](https://redirect.github.com/googleapis/google-cloud-python/commit/5cd98aa0e8ead2eef82ecdcef4141b33a7da2b5a))

##### Bug Fixes

-   Require proto-plus >= 1.22.3 ([5cd98aa](https://redirect.github.com/googleapis/google-cloud-python/commit/5cd98aa0e8ead2eef82ecdcef4141b33a7da2b5a))
-   Use `retry_async` instead of `retry` in async client ([5cd98aa](https://redirect.github.com/googleapis/google-cloud-python/commit/5cd98aa0e8ead2eef82ecdcef4141b33a7da2b5a))

### [`v3.13.0`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-dlp-v3.13.0): google-cloud-dlp: v3.13.0

[Compare Source](https://redirect.github.com/googleapis/google-cloud-python/compare/google-cloud-translate-v3.12.1...google-cloud-translate-v3.13.0)

##### Features

-   Add DeidentifyDataSource result summary protos ([65da9c9](https://redirect.github.com/googleapis/google-cloud-python/commit/65da9c9937dbe14918cf170cd5d1f1ab50659d5a))
-   Add protos for nullness and uniqueness, and column data profiles ([65da9c9](https://redirect.github.com/googleapis/google-cloud-python/commit/65da9c9937dbe14918cf170cd5d1f1ab50659d5a))
-   Add SensitivityScore proto to InfoType ([65da9c9](https://redirect.github.com/googleapis/google-cloud-python/commit/65da9c9937dbe14918cf170cd5d1f1ab50659d5a))
-   Introduce Discovery API protos and methods ([65da9c9](https://redirect.github.com/googleapis/google-cloud-python/commit/65da9c9937dbe14918cf170cd5d1f1ab50659d5a))

##### Documentation

-   Update comments for many messages. ([65da9c9](https://redirect.github.com/googleapis/google-cloud-python/commit/65da9c9937dbe14918cf170cd5d1f1ab50659d5a))

### [`v3.12.1`](https://redirect.github.com/googleapis/google-cloud-python/releases/tag/google-cloud-bigquery-datatransfer-v3.12.1): google-cloud-bigquery-datatransfer: v3.12.1

##### Documentation

-   Update transferConfig.name description to indicate that it supports both formats ([#&#8203;494](https://redirect.github.com/googleapis/google-cloud-python/issues/494)) ([5141dc2](https://redirect.github.com/googleapis/google-cloud-python/commit/5141dc291fc2fa4121cdda1bbb44e09ca0720ad0))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Never, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/GoogleCloudPlatform/python-docs-samples).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->



Discussion / hints:
May help to unblock #12093 
Tests are failing due to strict checks on available languages. 

```

>       assert "Afrikaans" in results[0]["name"]
E       AssertionError: assert 'Afrikaans' in 'Abkhaz'

snippets_test.py:31: AssertionError
----------------------------- Captured stdout call -----------------------------
Abkhaz (ab)
Acehnese (ace)
Acholi (ach)
Afar (aa)
Afrikaans (af)
Albanian (sq)
Alur (alz)
```
New additions as of https://support.google.com/translate/answer/15139004

Test should maybe be updated to `assert "Afrikaans" in [r['name'] for r in results]`

Fix patch:
diff --git a/automl/snippets/requirements.txt b/automl/snippets/requirements.txt
index e366029609f5..b0d59e02ea46 100644
--- a/automl/snippets/requirements.txt
+++ b/automl/snippets/requirements.txt
@@ -1,3 +1,3 @@
-google-cloud-translate==3.11.1
+google-cloud-translate==3.16.0
 google-cloud-storage==2.9.0
 google-cloud-automl==2.11.1
diff --git a/bigquery/remote-function/translate/requirements.txt b/bigquery/remote-function/translate/requirements.txt
index f61dd863ffb4..7824d7dc79d1 100644
--- a/bigquery/remote-function/translate/requirements.txt
+++ b/bigquery/remote-function/translate/requirements.txt
@@ -1,4 +1,4 @@
 Flask==2.2.2
 functions-framework==3.5.0
-google-cloud-translate==3.11.1
+google-cloud-translate==3.16.0
 Werkzeug==2.3.7
diff --git a/functions/ocr/app/requirements.txt b/functions/ocr/app/requirements.txt
index 788e8d408e14..d0feff4115b5 100644
--- a/functions/ocr/app/requirements.txt
+++ b/functions/ocr/app/requirements.txt
@@ -1,4 +1,4 @@
 google-cloud-pubsub==2.21.5
 google-cloud-storage==2.9.0
-google-cloud-translate==3.11.1
+google-cloud-translate==3.16.0
 google-cloud-vision==3.4.2
diff --git a/functions/v2/ocr/requirements.txt b/functions/v2/ocr/requirements.txt
index 5dd0ea3e1704..9a77af2c68c6 100644
--- a/functions/v2/ocr/requirements.txt
+++ b/functions/v2/ocr/requirements.txt
@@ -1,5 +1,5 @@
 functions-framework==3.5.0
 google-cloud-pubsub==2.21.5
 google-cloud-storage==2.9.0
-google-cloud-translate==3.11.1
+google-cloud-translate==3.16.0
 google-cloud-vision==3.4.2
diff --git a/translate/samples/snippets/hybrid_glossaries/requirements.txt b/translate/samples/snippets/hybrid_glossaries/requirements.txt
index 67bffebb4f6c..a2ab22bbc2f6 100644
--- a/translate/samples/snippets/hybrid_glossaries/requirements.txt
+++ b/translate/samples/snippets/hybrid_glossaries/requirements.txt
@@ -1,3 +1,3 @@
-google-cloud-translate==3.11.1
+google-cloud-translate==3.16.0
 google-cloud-vision==3.4.2
 google-cloud-texttospeech==2.14.1
diff --git a/translate/samples/snippets/requirements.txt b/translate/samples/snippets/requirements.txt
index e366029609f5..b0d59e02ea46 100644
--- a/translate/samples/snippets/requirements.txt
+++ b/translate/samples/snippets/requirements.txt
@@ -1,3 +1,3 @@
-google-cloud-translate==3.11.1
+google-cloud-translate==3.16.0
 google-cloud-storage==2.9.0
 google-cloud-automl==2.11.1


Test patch:
diff --git a/bigquery/remote-function/translate/requirements-test.txt b/bigquery/remote-function/translate/requirements-test.txt
index 8499725bdfc9..76d49b637be6 100644
--- a/bigquery/remote-function/translate/requirements-test.txt
+++ b/bigquery/remote-function/translate/requirements-test.txt
@@ -1,4 +1,4 @@
 Flask==2.2.2
 functions-framework==3.5.0
-google-cloud-translate==3.11.1
+google-cloud-translate==3.16.0
 pytest==8.2.0
diff --git a/translate/samples/snippets/snippets_test.py b/translate/samples/snippets/snippets_test.py
index c9ddd5922668..9c174e3c3942 100644
--- a/translate/samples/snippets/snippets_test.py
+++ b/translate/samples/snippets/snippets_test.py
@@ -28,13 +28,13 @@ def test_list_languages(capsys: pytest.LogCaptureFixture) -> None:
     out, _ = capsys.readouterr()
     for language in results:
         print("{name} ({language})".format(**language))
-    assert "Afrikaans" in results[0]["name"]
+    assert "Afrikaans" in [r["name"] for r in results]
 
 
 def test_list_languages_with_target(capsys: pytest.LogCaptureFixture) -> None:
     results = snippets.list_languages_with_target("is")
     out, _ = capsys.readouterr()
-    assert "afríkanska" in results[0]["name"]
+    assert "afríkanska" in [r["name"] for r in results]
 
 
 def test_translate_text(capsys: pytest.LogCaptureFixture) -> None: