Skip to content

Conversation

@summer-ji-eng
Copy link
Contributor

There are two kind sample code for paged callable rpc:

  1. method generated from createPagedCallableMethodhere
   * try (EchoClient echoClient = EchoClient.create()) {
   *   PagedExpandRequest request = PagedExpandRequest.newBuilder().build();
   *   ApiFuture<PagedExpandPagedResponse> future =
   *       echoClient.pagedExpandPagedCallable().futureCall(request);
   *   // Do something.
   *   for (PagedExpandResponse element : future.get().iterateAll()) {
   *     // doThingsWith(element);
   *   }
   * }
  1. method generated from createCallableMethod here
   * try (EchoClient echoClient = EchoClient.create()) {
   *   PagedExpandRequest request = PagedExpandRequest.newBuilder().build();
   *   while (true) {
   *     PagedExpandResponse response = echoClient.pagedExpandCallable().call(request);
   *     for (PagedExpandResponse element : response.getResponsesList()) {
   *       // doThingsWith(element);
   *     }
   *     String nextPageToken = response.getNextPageToken();
   *     if (!String.isNullOrEmpty(nextPageToken)) {
   *       request = request.toBuilder().setPageToken(nextPageToken).build();
   *     } else {
   *       break;
   *     }
   *   }
   * }

@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Nov 19, 2020
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 19, 2020
@summer-ji-eng summer-ji-eng changed the title [composer][5/7]Implement paged callable rpc method's sample code [draft][5/7]Implement paged callable rpc method's sample code Dec 1, 2020
@summer-ji-eng
Copy link
Contributor Author

refactor #638

@summer-ji-eng
Copy link
Contributor Author

Refactor #638

@summer-ji-eng summer-ji-eng deleted the callable_rpc_paged_44 branch January 13, 2021 23:57
suztomo pushed a commit that referenced this pull request Dec 16, 2022
suztomo pushed a commit that referenced this pull request Dec 16, 2022
🤖 I have created a release *beep* *boop*
---


## [1.6.12](https://togithub.com/googleapis/java-iam/compare/v1.6.11...v1.6.12) (2022-11-16)


### Dependencies

* Update dependency com.google.auth:google-auth-library-oauth2-http to v1.13.0 ([#522](https://togithub.com/googleapis/java-iam/issues/522)) ([6058bb0](https://togithub.com/googleapis/java-iam/commit/6058bb03f8ae0496844708fec629d7f298d47f7e))
* Update dependency com.google.cloud:google-iam-policy to v1.6.11 ([#521](https://togithub.com/googleapis/java-iam/issues/521)) ([2bda331](https://togithub.com/googleapis/java-iam/commit/2bda331877435c2bcf019130b07333927aa9522d))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this pull request Mar 21, 2023
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/9dce93a5-f80c-44ec-8590-72b85d27a709/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: googleapis/synthtool@ff01716
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant