Pagination
The SDK defines methods that return a paginated lists of results. It provides convenient ways to access the results either one page at a time or item-by-item across all pages.Auto-pagination
To iterate through all results across all pages, use theautoPager() method, which automatically fetches more pages as needed.
When using the synchronous client, the method returns an Iterable
AsyncStreamResponse:
Manual pagination
To access individual page items and manually request the next page, use theitems(),
hasNextPage(), and nextPage() methods: