Skip to content

fix(gax-httpjson): resolve OperationsStubSettings endpoint from universe domain - #15191

Open
lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:fix/gax-httpjson-operations-endpoint
Open

lqiu96 wants to merge 1 commit into
googleapis:mainfrom
lqiu96:fix/gax-httpjson-operations-endpoint

Conversation

@lqiu96

@lqiu96 lqiu96 commented Nov 24, 2026

Copy link
Copy Markdown
Member

Overrides getServiceName() to return "longrunning" and removes builder.setEndpoint(getDefaultEndpoint()) from OperationsStubSettings.Builder.createDefault() so EndpointContext resolves the endpoint from the configured universe domain when no explicit endpoint is set. Also annotates getDefaultEndpoint() with @ObsoleteApi and builds default retry settings in HttpJsonOperationsStub.create(ClientContext, ...) via OperationsStubSettings.newBuilder((ClientContext) null).

…rse domain

Override getServiceName() to return "longrunning" and stop pinning the default endpoint to longrunning.googleapis.com:443 in OperationsStubSettings.Builder.createDefault(), so EndpointContext resolves the endpoint from the configured universe domain when no explicit endpoint is set. Annotate getDefaultEndpoint() with @ObsoleteApi and build retry defaults in HttpJsonOperationsStub.create(ClientContext, ...) via OperationsStubSettings.newBuilder((ClientContext) null).
@lqiu96
lqiu96 requested a review from a team as a code owner November 24, 2026 04:17

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates HttpJsonOperationsStub and OperationsStubSettings to support dynamic endpoint resolution and custom universe domains. Specifically, it overrides getServiceName(), marks getDefaultEndpoint() as obsolete, allows a @Nullable ClientContext in newBuilder, and removes the hardcoded default endpoint from the default builder configuration. Additionally, new unit tests are introduced in HttpJsonOperationsStubTest and OperationsStubSettingsTest to verify these changes. There are no review comments, and I have no feedback to provide.

@lqiu96
lqiu96 requested review from jinseopkim0 and whowes November 24, 2026 04:31

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant