GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(generator): emit resumable upload client surface by whowes · Pull Request #14319 · googleapis/google-cloud-java

Conversation

@whowes

@whowes whowes commented Sep 9, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Generates the public client surface and base stub contracts for resumable upload RPCs, providing both an asynchronous ResumableUploadCallable and a synchronous InputStream method.

Test composers are updated with placeholder @Ignored tests to reflect that meaningful testing is only exercised via integration tests. This is due to insufficient mock capabilities, which may make sense to augment for resumable uploads in the future.

Sample code generation for resumable uploads is disabled; this also probably makes sense to add in the future.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
@whowes
whowes added this pull request to stack #14327 September 9, 2026 06:35
gemini-code-assist[bot]

This comment was marked as outdated.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@whowes
whowes force-pushed the whowes/generator-client-codegen branch from a07c67a to e0d1fe6 Compare September 9, 2026 15:50
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from e0d1fe6 to c202895 Compare September 9, 2026 20:16
@whowes
whowes removed this pull request from stack #14327 September 9, 2026 23:45
@whowes
whowes added this pull request to stack #14343 September 9, 2026 23:47
@whowes
whowes force-pushed the whowes/generator-client-codegen branch 2 times, most recently from 39fdadf to 775a413 Compare September 10, 2026 00:19
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 775a413 to 3c5beaf Compare September 10, 2026 01:15
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 3c5beaf to 9297723 Compare September 10, 2026 06:05
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 9297723 to 5da1a23 Compare September 11, 2026 17:23
@whowes
whowes removed this pull request from stack #14343 September 11, 2026 17:25
@whowes
whowes added this pull request to stack #14363 September 11, 2026 17:25
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 5da1a23 to a885ba0 Compare September 11, 2026 20:00
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from a885ba0 to 9215157 Compare September 11, 2026 21:13
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 9215157 to 25824bd Compare September 11, 2026 21:39
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 25824bd to 18c348f Compare September 14, 2026 21:34
@whowes
whowes removed this pull request from stack #14363 September 14, 2026 22:18
@whowes
whowes added this pull request to stack #14381 September 14, 2026 22:19
@whowes
whowes removed this pull request from stack #14381 September 14, 2026 23:13
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from b82fa28 to 863c40e Compare September 18, 2026 04:30
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 863c40e to cb86a89 Compare September 18, 2026 15:03
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from cb86a89 to 08820ce Compare September 18, 2026 18:18
blakeli0
blakeli0 reviewed Sep 18, 2026
View reviewed changes
Comment thread ...a/com/google/api/generator/gapic/composer/common/AbstractServiceClientTestClassComposer.java

@blakeli0 blakeli0 Sep 16, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

We don't need to generate unit tests for resumable uploads.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@whowes whowes Sep 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Ack - they are no longer generated (previously had been @Ignored test cases). If a service contains only resumable upload RPCs, test class generation is now suppressed to avoid emitting empty test classes with no runnable tests.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...er/grpc/goldens/samples/resumableuploadserviceclient/SyncCreateSetCredentialsProvider.golden Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...ava/com/google/api/generator/gapic/composer/grpc/goldens/ResumableUploadServiceClient.golden Outdated
* @param payload The payload data stream to upload.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final UploadMediaResponse uploadMedia(UploadMediaRequest request, InputStream payload) {

@blakeli0 blakeli0 Sep 18, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Can we expose ResumableUploadCallSettings as a nullable argument? It can be up to the customer to decide whether they want to pass null or not.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@whowes whowes Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Done.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 08820ce to a1b682c Compare September 18, 2026 22:20
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from a1b682c to 904b2d4 Compare September 18, 2026 23:08
@whowes
whowes removed this pull request from stack #14390 September 18, 2026 23:50
@whowes
whowes force-pushed the whowes/generator-client-codegen branch from 904b2d4 to 1b9002f Compare September 19, 2026 00:07
@whowes
whowes marked this pull request as ready for review September 19, 2026 00:10
@whowes
whowes requested review from a team as code owners September 19, 2026 00:11
@snippet-bot

snippet-bot Bot commented Sep 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 3 region tags.
  • sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/resumableuploadserviceclient/SyncCreateSetCredentialsProvider.golden:19, tag goldensample_generated_ResumableUploadService_Create_SetCredentialsProvider_sync
  • sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/resumableuploadserviceclient/SyncCreateSetEndpoint.golden:19, tag goldensample_generated_ResumableUploadService_Create_SetEndpoint_sync
  • sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/resumableuploadserviceclient/SyncEmtpy.golden:19, tag goldensample_generated_ResumableUploadService_Emtpy_sync

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@whowes
whowes requested a review from blakeli0 September 19, 2026 00:11
@whowes
whowes added this pull request to stack #14442 September 19, 2026 00:11
blakeli0
blakeli0 reviewed Sep 19, 2026
View reviewed changes
Comment thread ...e/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposerTest.java

@blakeli0 blakeli0 Sep 19, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Are the changes in this class and ServiceClientMethodSampleComposerTest below necessary?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@whowes whowes Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

The changes were necessary with a previous attempt to suppress sample generation for resumable uploads, but that approach had an unnecessarily large blast radius (signature changes in the composer that had better alternatives). Reverted now.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@whowes
whowes force-pushed the whowes/generator-client-codegen branch 2 times, most recently from 47718ae to 0bc2a0e Compare September 19, 2026 00:46
blakeli0
blakeli0 approved these changes Sep 21, 2026
View reviewed changes
Base automatically changed from whowes/generator-transport-stub-delegation to main September 21, 2026 15:20
@whowes
feat(generator): emit callable getter and convenience method for resu…
ab9b3b5
…mable upload RPCs

- In AbstractServiceClientClassComposer: emit public ResumableUploadCallable<RequestT, ResponseT> [method]Callable() delegating to stub
- In AbstractServiceClientClassComposer: emit synchronous convenience method [method](RequestT request, InputStream payload) calling ApiExceptions.callAndTranslateApiException
- Suppress method variants (flattened methods) for resumable upload RPCs
- In ServiceClientCommentComposer: emit Javadoc call context override warning on both callable method and synchronous convenience method
- Cover the generated client and its samples with ResumableUploadServiceClient.golden and the resumableuploadserviceclient sample goldens
@sonarqubecloud

sonarqubecloud Bot commented Sep 21, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
4 New issues
0 Accepted issues

Measures
0 Security Hotspots
92.6% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sonarqubecloud

sonarqubecloud Bot commented Sep 21, 2026

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed for 'gapic-generator-java-root'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 22, 2026
chore(main): release 1.92.0 #14480
Closed
chore(main): release 1.92.0 #14487
Closed
chore(main): release 1.92.0 #14491
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@blakeli0 blakeli0 blakeli0 approved these changes
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@whowes @blakeli0
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.