chore(generator): use routing helper from api_core in templates #17746
Draft
hebaalazzeh wants to merge 3 commits into
Draft
chore(generator): use routing helper from api_core in templates #17746hebaalazzeh wants to merge 3 commits into
hebaalazzeh wants to merge 3 commits into
Conversation
hebaalazzeh
changed the base branch from
main
to
feat/gapic-centralization-api-core-routing
July 16, 2026 19:19
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the client service templates by delegating endpoint and universe domain logic to the google.api_core.gapic_v1.routing module, which also allowed for the removal of redundant unit tests. The reviewer recommended adding type hints to the _get_default_mtls_endpoint and _get_api_endpoint methods to ensure code clarity following the removal of detailed docstrings.
hebaalazzeh
force-pushed
the
feat/gapic-centralization-api-core-routing
branch
from
July 16, 2026 20:00
3e2d8e2 to
0fe63b5
Compare
hebaalazzeh
force-pushed
the
feat/gapic-generator-centralization-routing
branch
from
July 16, 2026 20:00
d40de56 to
48f392a
Compare
hebaalazzeh
force-pushed
the
feat/gapic-generator-centralization-routing
branch
from
July 16, 2026 20:13
48f392a to
05fb32e
Compare
daniel-sanche
requested changes
Jul 16, 2026
…apic-generator-centralization-routing
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.
Updates generator templates and goldens to import public
routinghelpers fromgoogle-api-coregapic_v1and delegate API endpoint, mTLS, and universe domain resolution methods to it.Removes duplicate routing unit tests from the generated client unit tests (as they are now fully tested in
google-api-core).Associated / Dependent API Core PR:
chore(api-core): move universe and endpoint routing logic to gapic_v1 public helpers(#17745)