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 within the \u003ccode\u003ecom.google.api.gax.paging\u003c/code\u003e package, specifically for version 2.17.0 of the API.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 2.63.1, with a history of other versions including several version 2 updates all the way back to 2.7.1, which can all be navigated to for documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePage\u003c/code\u003e interface is designed to wrap API list method responses, allowing for iteration over elements and retrieval of additional pages via page tokens.\u003c/p\u003e\n"],["\u003cp\u003eKey methods of the \u003ccode\u003ePage\u003c/code\u003e interface include \u003ccode\u003egetNextPage()\u003c/code\u003e, \u003ccode\u003egetNextPageToken()\u003c/code\u003e, \u003ccode\u003egetValues()\u003c/code\u003e, \u003ccode\u003ehasNextPage()\u003c/code\u003e, and \u003ccode\u003eiterateAll()\u003c/code\u003e, each serving a unique purpose for accessing and traversing paged data.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePage\u003c/code\u003e methods allow to get the next page, check if a page exists, and go through the whole data set, which is done lazily page by page, making it easy to manage large amount of data.\u003c/p\u003e\n"]]],[],null,[]]