Repository navigation
Commit 6341e4e
committed
feat(generator): wire transport stub delegation to resumable upload stubs
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.1 parent be0453d commit 6341e4e
10 files changed
Lines changed: 732 additions & 39 deletions
File tree
- sdk-platform-java/gapic-generator-java/src
- main/java/com/google/api/generator/gapic/composer
- common
- grpc
- test/java/com/google/api/generator/gapic/composer
- grpc
- goldens
- rest
- goldens
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 166 | + | |
181 | 167 | | |
182 | 168 | | |
183 | 169 | | |
| |||
270 | 256 | | |
271 | 257 | | |
272 | 258 | | |
| 259 | + | |
273 | 260 | | |
274 | 261 | | |
275 | 262 | | |
| |||
328 | 315 | | |
329 | 316 | | |
330 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
331 | 336 | | |
0 commit comments