TokenPagination
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ข้อมูลการใส่เลขหน้าที่แสดงผลโดยการดำเนินการรายการเมื่อเปิดใช้การแบ่งหน้าโทเค็น
แสดงรายการการดำเนินการที่รองรับการแบ่งหน้าจะแสดงผลเพียง "หน้า" เดียว ผลลัพธ์ทั้งหมด รายการ ข้อความบัฟเฟอร์โปรโตคอลนี้อธิบายถึงหน้าเว็บที่ถูกส่งคืน
เมื่อใช้การแบ่งหน้าโทเค็น ไคลเอ็นต์ควรใช้โทเค็นถัดไป/ก่อนหน้าเพื่อให้ได้ผลลัพธ์อีกหน้าหนึ่ง การมีหรือไม่มีโทเค็นถัดไป/ก่อนหน้า แสดงว่าหน้าถัดไป/ก่อนหน้าพร้อมใช้งาน และเป็นวิธีเข้าถึงหน้านี้ ควรตั้งค่า ListRequest.page_token เป็น nextPageToken หรือpreviousPageToken เพื่อเข้าถึงหน้าเว็บอื่น
การแสดง JSON |
{
"nextPageToken": string,
"previousPageToken": string
} |
ช่อง |
nextPageToken |
string
โทเค็นที่จะส่งต่อไปยังช่องรายการมาตรฐาน "pageToken" ควรใช้โทเค็นแทนการควบคุม StartIndex ทุกครั้งที่ใช้ได้
|
previousPageToken |
string
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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` |"]]