Retrieves the next Page object using the next page token, or null if there are no more
pages. The hasNextPage() method can be used to check if a Page object is available.
Returns a future for the Page object, retrieved using the next page token. If there are no more
pages, returns a future which will immediately provide null. The hasNextPage() method can be
used to check if a Page object is available.
Returns
Type
Description
com.google.api.core.ApiFuture<PageT>
getNextPageToken()
publicStringgetNextPageToken()
Returns the next page token from the response, or an empty string if there are no more pages.
Returns an iterable that traverses all of the elements of the underlying data source. The data
is fetched lazily page by page, where each page may contain multiple elements. A new page is
fetched whenever the elements of any particular page are exhausted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This document outlines the `AbstractPage` class in the `com.google.api.gax.paging` package, which provides a partial implementation of `AsyncPage` for handling paginated results in Java."],["The `AbstractPage` class is generic, using type parameters `RequestT`, `ResponseT`, `ResourceT`, and `PageT` to represent the request, response, resource, and page types, respectively."],["The document includes a comprehensive list of links to various versions of the `AbstractPage` class, ranging from version 2.63.1 (latest) down to 2.7.1, for reference and compatibility purposes."],["Key methods in `AbstractPage` include `getNextPage()`, `getNextPageAsync()`, `getNextPageToken()`, `getValues()`, and `hasNextPage()` allowing for both synchronous and asynchronous retrieval of paginated data and also the iteration over all the available elements."],["The `AbstractPage` class is designed to work with the `PageContext` interface, as can be seen from the constructors and methods that take the `PageContext` as an argument, which is used to provide the necessary context for managing paginated requests and responses."]]],[]]