Skip to content

feat(gax): add HTTP/JSON implementation of ResumableUploadClient.startUpload - #14091

Closed
whowes wants to merge 1 commit into
whowes/resumable-upload-clientfrom
whowes/resumable-upload-start
Closed

feat(gax): add HTTP/JSON implementation of ResumableUploadClient.startUpload#14091
whowes wants to merge 1 commit into
whowes/resumable-upload-clientfrom
whowes/resumable-upload-start

Conversation

@whowes

@whowes whowes commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLIGive Feedback 💬

@whowes whowes changed the title whowes/resumable upload start feat(gax): add ResumableUploadClient startUpload and HTTP/JSON implementation Aug 17, 2026
gemini-code-assist[bot]

This comment was marked as outdated.

@whowes
whowes force-pushed the whowes/string-http-response-parser branch from 67ced68 to a2f2378 Compare August 17, 2026 23:04
@whowes
whowes force-pushed the whowes/resumable-upload-start branch 3 times, most recently from 16d875f to e808397 Compare August 17, 2026 23:44
@whowes
whowes changed the base branch from whowes/string-http-response-parser to whowes/resumable-upload-client August 17, 2026 23:46
@whowes whowes changed the title feat(gax): add ResumableUploadClient startUpload and HTTP/JSON implementation feat(gax): add HTTP/JSON implementation of ResumableUploadClient.startUpload Aug 17, 2026
@whowes
whowes force-pushed the whowes/resumable-upload-start branch from e808397 to dbd35b6 Compare August 17, 2026 23:58
@whowes
whowes force-pushed the whowes/resumable-upload-client branch from 003083c to 34d9c14 Compare August 17, 2026 23:58
@whowes
whowes force-pushed the whowes/resumable-upload-start branch from dbd35b6 to 1435243 Compare August 18, 2026 00:03
@whowes
whowes force-pushed the whowes/resumable-upload-client branch from 34d9c14 to 68cadaf Compare August 18, 2026 00:03
@whowes
whowes force-pushed the whowes/resumable-upload-start branch from 1435243 to 880655e Compare August 18, 2026 00:19
@whowes

whowes commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

gemini-code-assist[bot]

This comment was marked as outdated.

@whowes
whowes force-pushed the whowes/resumable-upload-start branch from 880655e to 2ad83c8 Compare August 18, 2026 00:28
@whowes
whowes force-pushed the whowes/resumable-upload-client branch from 68cadaf to c07069b Compare August 18, 2026 00:35
@whowes
whowes force-pushed the whowes/resumable-upload-start branch from 2ad83c8 to 2937dba Compare August 18, 2026 00:35
@whowes whowes added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 18, 2026
@whowes
whowes force-pushed the whowes/resumable-upload-start branch from 2937dba to f551afe Compare August 18, 2026 21:51
@whowes
whowes force-pushed the whowes/resumable-upload-client branch 2 times, most recently from 8a4d18e to 8ca4f84 Compare August 18, 2026 22:52
@whowes
whowes force-pushed the whowes/resumable-upload-start branch 2 times, most recently from 1d39523 to 8f5e0d3 Compare August 18, 2026 23:39
@whowes
whowes force-pushed the whowes/resumable-upload-client branch from 8ca4f84 to 4030840 Compare August 18, 2026 23:39
@whowes
whowes force-pushed the whowes/resumable-upload-start branch from 8f5e0d3 to b3d0b13 Compare August 19, 2026 15:59
@whowes
whowes force-pushed the whowes/resumable-upload-client branch from 4030840 to 087c159 Compare August 19, 2026 15:59
@sonarqubecloud

Copy link
Copy Markdown

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

Failed conditions
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@whowes
whowes force-pushed the whowes/resumable-upload-start branch from b3d0b13 to 62fbb8c Compare August 19, 2026 16:22
@whowes
whowes force-pushed the whowes/resumable-upload-client branch 2 times, most recently from 5a27f29 to 8765335 Compare August 19, 2026 17:15
@whowes
whowes force-pushed the whowes/resumable-upload-start branch 2 times, most recently from 37b56c9 to b4e8162 Compare August 19, 2026 18:24
@whowes

whowes commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

gemini-code-assist[bot]

This comment was marked as outdated.

@whowes
whowes force-pushed the whowes/resumable-upload-start branch from b4e8162 to ccfc57f Compare August 19, 2026 20:07
@whowes
whowes force-pushed the whowes/resumable-upload-client branch from 202c82a to 2c264da Compare August 19, 2026 20:07
@whowes
whowes force-pushed the whowes/resumable-upload-start branch from ccfc57f to dfe0617 Compare August 19, 2026 20:12
@whowes

whowes commented Aug 19, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@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 the HttpJsonResumableUploadClient class and its corresponding unit tests to support resumable uploads over HTTP/JSON. The reviewer suggested a minor code cleanup to remove a redundant cast to HttpJsonCallContext when setting up the call context.

Comment on lines +125 to +130
HttpJsonCallContext context =
(HttpJsonCallContext)
HttpJsonCallContext.createDefault()
.nullToSelf(clientContext.getDefaultCallContext())
.merge(inputContext)
.withExtraHeaders(START_UPLOAD_HEADERS);

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.

medium

The cast to HttpJsonCallContext is redundant because HttpJsonCallContext.createDefault(), nullToSelf(), merge(), and withExtraHeaders() all return HttpJsonCallContext (or covariant subtypes thereof), meaning the entire chain already evaluates to HttpJsonCallContext.

        HttpJsonCallContext context =
            HttpJsonCallContext.createDefault()
                .nullToSelf(clientContext.getDefaultCallContext())
                .merge(inputContext)
                .withExtraHeaders(START_UPLOAD_HEADERS);

@whowes
whowes force-pushed the whowes/resumable-upload-start branch from dfe0617 to 3655e2e Compare August 19, 2026 21:57
@whowes
whowes force-pushed the whowes/resumable-upload-client branch from 2c264da to c0e396a Compare August 19, 2026 21:57
@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

@whowes whowes closed this Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kokoro:force-run Add this label to force Kokoro to re-run the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant