Repository navigation
[DRAFT] feat(translate): support custom universe domains in translate_v2 - #19235
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces support for custom universe domains in the Google Cloud Translation v2 client. Key changes include updating the google-cloud-core dependency to >= 2.9.0, delegating client options and endpoint configuration to the base client, validating the credentials universe, and adding comprehensive unit tests. Feedback suggests combining the separate imports from google.cloud.client into a single statement to improve code readability.
Comment on lines
+17
to
+22
| from google.cloud.client import ( | ||
| Client as BaseClient, | ||
| ) | ||
| from google.cloud.client import ( | ||
| _validate_credentials_universe, | ||
| ) |
Contributor
Contributor
|
SYNC WARNING: See this comment in #19231 regarding some possible areas to sync up. |
daniel-sanche
force-pushed
the
python_bug_burndown_track_five_google-cloud-translate_04_universe-domain
branch
from
November 30, 2026 19:15
641310b to
21ac1b8
Compare
daniel-sanche
force-pushed
the
python_bug_burndown_track_five_google-cloud-translate_04_universe-domain
branch
from
November 30, 2026 20:42
21ac1b8 to
29d1f8f
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds custom universe domain support to
google.cloud.translate_v2using the sharedClientandJSONConnectionhelpers ingoogle-cloud-core:universe_domainfromclient_optionsorGOOGLE_CLOUD_UNIVERSE_DOMAINand validates credential universe compatibility ontranslate_v2.Clientinitialization.https://translation.{universe_domain}while preserving explicitapi_endpointoverrides.google-cloud-coredependency floor to>= 2.9.0, < 3.0.0(including Librarian post-processing rules forsetup.pyandconstraints-3.10.txt).google-cloud-core.google-cloud-coresince it is pure Python, doesn't raise transitive floors, and has a much smaller footprint thangoogle-api-core,google-auth, orgrpcio.Blocked on release of
google-cloud-core v2.9.0