@@ -143,6 +143,16 @@ public class EchoClient implements BackgroundResource {
143
143
return operationsClient;
144
144
}
145
145
146
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
147
+ /**
148
+ * @param request The request object containing all of the parameters for the API call.
149
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
150
+ */
151
+ public final EchoResponse echo() {
152
+ EchoRequest request = EchoRequest.newBuilder().build();
153
+ return echo(request);
154
+ }
155
+
146
156
// AUTO-GENERATED DOCUMENTATION AND METHOD.
147
157
/**
148
158
* @param parent
@@ -280,6 +290,38 @@ public class EchoClient implements BackgroundResource {
280
290
return stub.pagedExpandCallable();
281
291
}
282
292
293
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
294
+ /**
295
+ * @param request The request object containing all of the parameters for the API call.
296
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
297
+ */
298
+ public final SimplePagedExpandPagedResponse simplePagedExpand() {
299
+ PagedExpandRequest request = PagedExpandRequest.newBuilder().build();
300
+ return simplePagedExpand(request);
301
+ }
302
+
303
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
304
+ /**
305
+ * @param request The request object containing all of the parameters for the API call.
306
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
307
+ */
308
+ public final SimplePagedExpandPagedResponse simplePagedExpand(PagedExpandRequest request) {
309
+ return simplePagedExpandPagedCallable().call(request);
310
+ }
311
+
312
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
313
+ /** Sample code: */
314
+ public final UnaryCallable<PagedExpandRequest, SimplePagedExpandPagedResponse>
315
+ simplePagedExpandPagedCallable() {
316
+ return stub.simplePagedExpandPagedCallable();
317
+ }
318
+
319
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
320
+ /** Sample code: */
321
+ public final UnaryCallable<PagedExpandRequest, PagedExpandResponse> simplePagedExpandCallable() {
322
+ return stub.simplePagedExpandCallable();
323
+ }
324
+
283
325
// AUTO-GENERATED DOCUMENTATION AND METHOD.
284
326
/**
285
327
* @param ttl
@@ -445,4 +487,86 @@ public class EchoClient implements BackgroundResource {
445
487
return new PagedExpandFixedSizeCollection(pages, collectionSize);
446
488
}
447
489
}
490
+
491
+ public static class SimplePagedExpandPagedResponse
492
+ extends AbstractPagedListResponse<
493
+ PagedExpandRequest,
494
+ PagedExpandResponse,
495
+ EchoResponse,
496
+ SimplePagedExpandPage,
497
+ SimplePagedExpandFixedSizeCollection> {
498
+
499
+ public static ApiFuture<SimplePagedExpandPagedResponse> createAsync(
500
+ PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
501
+ ApiFuture<PagedExpandResponse> futureResponse) {
502
+ ApiFuture<SimplePagedExpandPage> futurePage =
503
+ SimplePagedExpandPage.createEmptyPage().createPageAsync(context, futureResponse);
504
+ return ApiFutures.transform(
505
+ futurePage,
506
+ new ApiFunction<SimplePagedExpandPage, SimplePagedExpandPagedResponse>() {
507
+ @Override
508
+ public SimplePagedExpandPagedResponse apply(SimplePagedExpandPage input) {
509
+ return new SimplePagedExpandPagedResponse(input);
510
+ }
511
+ },
512
+ MoreExecutors.directExecutor());
513
+ }
514
+
515
+ private SimplePagedExpandPagedResponse(SimplePagedExpandPage page) {
516
+ super(page, SimplePagedExpandFixedSizeCollection.createEmptyCollection());
517
+ }
518
+ }
519
+
520
+ public static class SimplePagedExpandPage
521
+ extends AbstractPage<
522
+ PagedExpandRequest, PagedExpandResponse, EchoResponse, SimplePagedExpandPage> {
523
+
524
+ private SimplePagedExpandPage(
525
+ PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
526
+ PagedExpandResponse response) {
527
+ super(context, response);
528
+ }
529
+
530
+ private static SimplePagedExpandPage createEmptyPage() {
531
+ return new SimplePagedExpandPage(null, null);
532
+ }
533
+
534
+ @Override
535
+ protected SimplePagedExpandPage createPage(
536
+ PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
537
+ PagedExpandResponse response) {
538
+ return new SimplePagedExpandPage(context, response);
539
+ }
540
+
541
+ @Override
542
+ public ApiFuture<SimplePagedExpandPage> createPageAsync(
543
+ PageContext<PagedExpandRequest, PagedExpandResponse, EchoResponse> context,
544
+ ApiFuture<PagedExpandResponse> futureResponse) {
545
+ return super.createPageAsync(context, futureResponse);
546
+ }
547
+ }
548
+
549
+ public static class SimplePagedExpandFixedSizeCollection
550
+ extends AbstractFixedSizeCollection<
551
+ PagedExpandRequest,
552
+ PagedExpandResponse,
553
+ EchoResponse,
554
+ SimplePagedExpandPage,
555
+ SimplePagedExpandFixedSizeCollection> {
556
+
557
+ private SimplePagedExpandFixedSizeCollection(
558
+ List<SimplePagedExpandPage> pages, int collectionSize) {
559
+ super(pages, collectionSize);
560
+ }
561
+
562
+ private static SimplePagedExpandFixedSizeCollection createEmptyCollection() {
563
+ return new SimplePagedExpandFixedSizeCollection(null, 0);
564
+ }
565
+
566
+ @Override
567
+ protected SimplePagedExpandFixedSizeCollection createCollection(
568
+ List<SimplePagedExpandPage> pages, int collectionSize) {
569
+ return new SimplePagedExpandFixedSizeCollection(pages, collectionSize);
570
+ }
571
+ }
448
572
}
0 commit comments