You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(generator): emit callable getter and convenience method for resumable 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
Copy file name to clipboardExpand all lines: sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/ServiceClientCommentComposer.java
"<p>\"Flattened\" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>\n";
249
+
"<p>\"Flattened\" method variants have converted the fields of the request object into"
250
+
+ " function parameters to enable multiple ways to call the same method.</p>\n";
237
251
StringREQUEST_OBJECT_METHODS =
238
-
"<p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>\n";
252
+
"<p>Request object method variants only take one parameter, a request object, which must be"
253
+
+ " constructed before the call.</p>\n";
239
254
StringCALLABLE_METHODS =
240
-
"<p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>\n";
255
+
"<p>Callable method variants take no parameters and return an immutable API callable"
256
+
+ " object, which can be used to initiate calls to the service.</p>\n";
241
257
StringASYNC_METHODS =
242
-
"<p>Methods that return long-running operations have \"Async\" method variants that return `OperationFuture`, which is used to track polling of the service.</p>\n";
258
+
"<p>Methods that return long-running operations have \"Async\" method variants that return"
259
+
+ " `OperationFuture`, which is used to track polling of the service.</p>\n";
243
260
244
261
StringBuildertableBuilder = newStringBuilder();
245
262
tableBuilder
@@ -348,8 +365,8 @@ public static List<CommentStatement> createRpcCallableMethodHeaderComment(
0 commit comments