Conversation
a07c67a to
e0d1fe6
Compare
e0d1fe6 to
c202895
Compare
39fdadf to
775a413
Compare
775a413 to
3c5beaf
Compare
3c5beaf to
9297723
Compare
9297723 to
5da1a23
Compare
5da1a23 to
a885ba0
Compare
a885ba0 to
9215157
Compare
9215157 to
25824bd
Compare
25824bd to
18c348f
Compare
6e17945 to
2b84d27
Compare
2b84d27 to
b82fa28
Compare
b82fa28 to
863c40e
Compare
863c40e to
cb86a89
Compare
cb86a89 to
08820ce
Compare
There was a problem hiding this comment.
We don't need to generate unit tests for resumable uploads.
There was a problem hiding this comment.
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.
| * @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) { |
There was a problem hiding this comment.
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.
08820ce to
a1b682c
Compare
a1b682c to
904b2d4
Compare
904b2d4 to
1b9002f
Compare
There was a problem hiding this comment.
Are the changes in this class and ServiceClientMethodSampleComposerTest below necessary?
There was a problem hiding this comment.
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.
1b9002f to
47718ae
Compare
…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
47718ae to
0bc2a0e
Compare
|
|



Generates the public client surface and base stub contracts for resumable upload RPCs, providing both an asynchronous
ResumableUploadCallableand a synchronousInputStreammethod.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.