Returns a collection of elements with a fixed size set by
the collectionSize parameter. The collection will only contain
fewer than collectionSize elements if there are no more
pages to be retrieved from the server.
NOTE: it is an error to call this method if an optional parameter
to set the page size is not supported or has not been set in the
API call that was used to create this page. It is also an error
if the collectionSize parameter is less than the page size that
has been set.
[[["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-09-04 UTC."],[],[],null,["# Google API Core Client - Class Page (1.36.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.36.1 (latest)](/php/docs/reference/gax/latest/Page)\n- [1.36.0](/php/docs/reference/gax/1.36.0/Page)\n- [1.35.1](/php/docs/reference/gax/1.35.1/Page) \nReference documentation and code samples for the Google API Core Client class Page.\n\nA Page object wraps an API list method response and provides methods\nto retrieve additional pages using the page token.\n\nNamespace\n---------\n\nGoogle \\\\ ApiCore\n\nMethods\n-------\n\n### __construct\n\nPage constructor.\n\n### hasNextPage\n\nReturns true if there are more pages that can be retrieved from the\nAPI.\n\n### getNextPageToken\n\nReturns the next page token from the response.\n\n### getNextPage\n\nRetrieves the next Page object using the next page token.\n\n### getPageElementCount\n\nReturn the number of elements in the response.\n\n### getIterator\n\nReturn an iterator over the elements in the response.\n\n### iteratePages\n\nReturn an iterator over Page objects, beginning with this object.\n\nAdditional Page objects are retrieved lazily via API calls until\nall elements have been retrieved.\n\n### getRequestObject\n\nGets the request object used to generate the Page.\n\n### getResponseObject\n\nGets the API response object.\n\n### expandToFixedSizeCollection\n\nReturns a collection of elements with a fixed size set by\nthe collectionSize parameter. The collection will only contain\nfewer than collectionSize elements if there are no more\npages to be retrieved from the server.\n\nNOTE: it is an error to call this method if an optional parameter\nto set the page size is not supported or has not been set in the\nAPI call that was used to create this page. It is also an error\nif the collectionSize parameter is less than the page size that\nhas been set.\n\nConstants\n---------\n\n### FINAL_PAGE_TOKEN\n\n Value: ''"]]