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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-17 UTC
[null,null,["อัปเดตล่าสุด 2024-12-17 UTC"],[[["This document explains the structure of pagination information returned for list operations that support paging when token pagination is enabled."],["Clients should utilize the `nextPageToken` or `previousPageToken` to navigate between pages of results."],["The presence or absence of these tokens indicates the availability of additional pages."],["The JSON representation of this pagination information includes `nextPageToken` and `previousPageToken` fields as strings."]]],["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"]]