Skip to content

feat(gax): add ResumableUploadStatus and ResumableUploadProgressListener - #14073

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

feat(gax): add ResumableUploadStatus and ResumableUploadProgressListener#14073
whowes wants to merge 1 commit into
mainfrom
whowes/resumable-upload-status

Conversation

@whowes

@whowes whowes commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

These classes will provide library users a mechanism to track resumable upload progress.

@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 a new resumable upload progress tracking API, including the ResumableUploadProgressListener interface, the ResumableUploadStatus AutoValue class, and comprehensive unit tests. The feedback suggests adding a package-private constructor to ResumableUploadStatus to prevent external subclassing and preserve immutability.

@BetaApi
@NullMarked
@AutoValue
public abstract class ResumableUploadStatus {

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

To prevent users from subclassing this AutoValue class outside of the package (which could bypass the immutability guarantees), it is a best practice to define a package-private constructor.

Suggested change
public abstract class ResumableUploadStatus {
public abstract class ResumableUploadStatus {
ResumableUploadStatus() {}

@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

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