TokenPagination
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מידע על העימוד שהוחזר על ידי פעולת רשימה כאשר עימוד אסימונים מופעל.
הצגת רשימה של פעולות שתומכות בהחלפה של 'דף' אחד בלבד מתוך תוצאות. ההודעה על מאגר הנתונים הזמני של הפרוטוקול מתארת את הדף שהוחזר.
כשמשתמשים בעימוד אסימונים, הלקוחות צריכים להשתמש באסימון הבא/הקודם כדי לקבל דף נוסף של התוצאה. אם יש או חסר אסימון 'הבא'/'הקודם', ניתן לראות אם הדף הבא/הקודם זמין, ובאמצעותו ניתן לגשת לדף הזה. כדי לגשת לדף אחר, יש להגדיר את ListRequest.page_token כ-NextPageToken או כ-previousPageToken.
ייצוג JSON |
{
"nextPageToken": string,
"previousPageToken": string
} |
שדות |
nextPageToken |
string
אסימונים להעברה לשדה הרשימה הרגיל 'pageToken'. כשהאפשרות זמינה, עדיף להשתמש באסימונים על פני אינדקס ההתחלה שמבצע מניפולציה.
|
previousPageToken |
string
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eThis document explains the structure of pagination information returned for list operations that support paging when token pagination is enabled.\u003c/p\u003e\n"],["\u003cp\u003eClients should utilize the \u003ccode\u003enextPageToken\u003c/code\u003e or \u003ccode\u003epreviousPageToken\u003c/code\u003e to navigate between pages of results.\u003c/p\u003e\n"],["\u003cp\u003eThe presence or absence of these tokens indicates the availability of additional pages.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation of this pagination information includes \u003ccode\u003enextPageToken\u003c/code\u003e and \u003ccode\u003epreviousPageToken\u003c/code\u003e fields as strings.\u003c/p\u003e\n"]]],["List operations with pagination return one page of results. `nextPageToken` and `previousPageToken` are provided as strings to access subsequent or prior pages. Clients should set `ListRequest.page_token` to one of these tokens for navigation. The presence of these tokens indicates if a respective page is available. Tokens are favored over manipulating `startIndex` for accessing pages. JSON representation uses these string values.\n"],null,["# TokenPagination\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nPagination information returned by a List operation when token pagination is enabled.\n\nList operations that supports paging return only one \"page\" of results. This protocol buffer message describes the page that has been returned.\n\nWhen using token pagination, clients should use the next/previous token to get another page of the result. The presence or absence of next/previous token indicates whether a next/previous page is available and provides a mean of accessing this page. ListRequest.page_token should be set to either nextPageToken or previousPageToken to access another page.\n\n| JSON representation |\n|------------------------------------------------------------------|\n| ``` { \"nextPageToken\": string, \"previousPageToken\": string } ``` |\n\n| Fields ||\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| `nextPageToken` | `string` Tokens to pass to the standard list field 'pageToken'. Whenever available, tokens are preferred over manipulating startIndex. |\n| `previousPageToken` | `string` |"]]