Skip to content

feat(gax): add helpers for unsupported resumable upload transport configs - #14652

Draft
whowes wants to merge 1 commit into
mainfrom
whowes/resumable-upload-transport-detect
Draft

whowes wants to merge 1 commit into
mainfrom
whowes/resumable-upload-transport-detect

Conversation

@whowes

@whowes whowes commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

gRPC clients bridge resumable uploads to HTTP/JSON using only top-level StubSettings; pre-built channels or transport providers with direct endpoint, credentials, or header overrides are currently silently ignored rather than surfacing an actionable error.

This PR adds

  • HttpJsonCallableFactory.isResumableUploadSupported() to detect incompatible transport providers
  • createFailingResumableUploadCallable() that throws a deferred exception when an upload or resume call is invoked (stub initialization continues to be successful).

@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 introduces ResumableUploadTransportValidator to validate transport configurations on StubSettings for resumable uploads, exposing helper methods via HttpJsonCallableFactory. A review comment suggests adding a defensive null check for the transport channel provider in ResumableUploadTransportValidator to prevent a potential NullPointerException.

@whowes whowes changed the title feat(gax): detect and defer failure on unsupported resumable upload transport configs feat(gax): add helpers for unsupported resumable upload transport configs Oct 13, 2026
@whowes
whowes added this pull request to stack #14654 October 13, 2026 23:24
@whowes
whowes force-pushed the whowes/resumable-upload-transport-detect branch from 61b4149 to 9ef8b1e Compare October 13, 2026 23:33
@whowes
whowes force-pushed the whowes/resumable-upload-transport-detect branch from 9ef8b1e to 5ecea13 Compare October 14, 2026 00:03
@sonarqubecloud

Copy link
Copy Markdown

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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