Callers can iterate over the Page object to get all elements returned in the page. The Page
object also provides methods to retrieve additional pages using the page token, and to get the
API request and response objects.
Type Parameter
Name
Description
ResourceT
Methods
getNextPage()
publicabstractPage<ResourceT>getNextPage()
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 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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003ePage\u003c/code\u003e interface in the \u003ccode\u003ecom.google.api.gax.paging\u003c/code\u003e package, with the latest version being 2.63.1 and a history of versions back to 2.7.1.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePage\u003c/code\u003e interface, designed for Java, is used to encapsulate responses from API list methods, allowing for the iteration over the returned elements.\u003c/p\u003e\n"],["\u003cp\u003eKey methods of the \u003ccode\u003ePage\u003c/code\u003e interface include \u003ccode\u003egetNextPage()\u003c/code\u003e to retrieve the next page, \u003ccode\u003egetNextPageToken()\u003c/code\u003e to get the token for the next page, \u003ccode\u003egetValues()\u003c/code\u003e to iterate over elements in a page, \u003ccode\u003ehasNextPage()\u003c/code\u003e to check if more pages exist, and \u003ccode\u003eiterateAll()\u003c/code\u003e for traversing all elements across pages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePage\u003c/code\u003e interface uses a type parameter, \u003ccode\u003eResourceT\u003c/code\u003e, to represent the type of resources contained within each page, and are returned by the page's various methods.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation contains links to each of the documented versions for each version of the interface mentioned, allowing a direct jump to that specific version's API documentation.\u003c/p\u003e\n"]]],[],null,[]]