FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat(gax): add ResumableUploadClient.startUpload() and supporting types by whowes · Pull Request #14138 · googleapis/google-cloud-java · GitHub

feat(gax): add ResumableUploadClient.startUpload() and supporting types - #14138

Draft
whowes wants to merge 1 commit into
whowes/get-first-headerfrom
whowes/resumable-upload-client
Draft

feat(gax): add ResumableUploadClient.startUpload() and supporting types#14138
whowes wants to merge 1 commit into
whowes/get-first-headerfrom
whowes/resumable-upload-client

Conversation

whowes commented Aug 19, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

HTTP/JSON client implementation for startUpload is in #14139.

This comment was marked as outdated.

whowes changed the title whowes/resumable upload client feat(gax): add ResumableUploadClient SPI and types Aug 19, 2026
whowes changed the title feat(gax): add ResumableUploadClient SPI and types feat(gax): add ResumableUploadClient.startUpload() and supporting types Aug 19, 2026
whowes force-pushed the whowes/resumable-upload-client branch from c0e396a to 3f2b223 Compare August 19, 2026 23:36

whowes commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

whowes force-pushed the whowes/resumable-upload-client branch from 3f2b223 to dd5cb3e Compare August 20, 2026 00:10

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Code Review

This pull request introduces low-level resumable upload components to the GAX library, including the ResumableUploadClient interface, the ResumableUploadSession metadata class, and the StartUploadRequest configuration class, along with their corresponding unit tests. The reviewer's feedback suggests a minor readability and performance improvement in StartUploadRequest.Builder to assign the result of getPath() to a local variable instead of invoking the getter multiple times.

Comment on lines +88 to +90
if (getPath() != null && getPath().startsWith("/")) {
setPath(getPath().substring(1));
}

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

To improve readability and avoid redundant getter calls on the builder, assign the result of getPath() to a local variable before performing null checks and string manipulations.

Suggested change
if (getPath() != null && getPath().startsWith("/")) {
setPath(getPath().substring(1));
}
String path = getPath();
if (path != null && path.startsWith("/")) {
setPath(path.substring(1));
}

whowes changed the title feat(gax): add ResumableUploadClient.startUpload() and supporting types feat(gax): add ResumableUploadClient.startUpload() and supporting types Aug 20, 2026
whowes force-pushed the whowes/resumable-upload-client branch from dd5cb3e to 4758549 Compare August 21, 2026 00:37
whowes force-pushed the whowes/resumable-upload-client branch from 4758549 to 0229e07 Compare August 24, 2026 19:40

Copy link
Copy Markdown

Copy link
Copy Markdown

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 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL