Conversation
e42be42 to
30a1067
Compare
30a1067 to
e1bb5fb
Compare
c910ed3 to
3fb2567
Compare
3fb2567 to
daaf68a
Compare
daaf68a to
7ca783c
Compare
7ca783c to
9905b6e
Compare
9905b6e to
66afa95
Compare
66afa95 to
26d0fde
Compare
26d0fde to
136e9ce
Compare
136e9ce to
1ddd21b
Compare
1ddd21b to
08ecb13
Compare
08ecb13 to
63ee85f
Compare
| .build() | ||
| .getHeaders()); | ||
| uploadHeaders.putAll(clientContext.getHeaders()); | ||
| ClientContext httpJsonClientContext = |
There was a problem hiding this comment.
We may want to give it more thought in terms of clientContext sharing between the main stub and the special stub. We could create a separate clientContext with the given settings, which might be easier instead of copying everything over. As long as the stub is still closed during client shutdown, we should good.
63ee85f to
ca49e87
Compare
ca49e87 to
4d9fb44
Compare
4d9fb44 to
c77488e
Compare
c77488e to
b768584
Compare
…tubs Wires the generated transport stubs (GrpcServiceStub and HttpJsonServiceStub) to delegate resumable upload methods to the internal HTTP upload stub. In GrpcServiceStub, credentials, headers, and clocks are forwarded to the underlying HTTP client context. Clients initialize successfully without credentials; an exception results only if use of the HTTP upload stub is attempted. Also declares the stub-side contract that the transports implement: - In AbstractServiceStubClassComposer: emit public ResumableUploadCallable<RequestT, ResponseT> [method]Callable() throwing UnsupportedOperationException.
b768584 to
db79f9b
Compare
|
|
| this.resumableUploadStub = null; | ||
| } | ||
|
|
||
| if (resumableUploadStub != null) { |
There was a problem hiding this comment.
resumableUploadStub is only generated if resumable upload methods exist, so I don't think we need this null check.
|
|
||
| if (clientContext.getCredentials() != null) { | ||
| this.resumableUploadStub = | ||
| HttpJsonResumableUploadServiceResumableUploadStub.create(clientContext, settings); |
There was a problem hiding this comment.
As I mentioned in another comment, we might be able to just pass the settings to HttpJsonResumableUploadServiceResumableUploadStub.



Wires generated transport stubs (
GrpcServiceStub,HttpJsonServiceStub) to delegate resumable upload methods to the internal HTTP upload stub, and excludes upload RPCs from the main stubs' method descriptors and callables.