TokenPagination
当启用令牌分页时,List 操作返回的分页信息。
支持分页的 List 操作仅返回一“页”结果。此协议缓冲区消息描述已返回的页面。
使用令牌分页时,客户端应使用下一页/上一页令牌来获取另一页结果。下一页/上一页令牌的存在与否表明是否有下一页/上一页,并且此类令牌还提供访问相应页面的方法。ListRequest.page_token 应设置为 nextPageToken 或 previousPageToken,以便访问其他页面。
JSON 表示法 |
{
"nextPageToken": string,
"previousPageToken": string
} |
字段 |
nextPageToken |
string
传递给标准列表字段“pageToken”的令牌。只要令牌可用,就应首选使用令牌,而不是使用 startIndex。
|
previousPageToken |
string
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-17。
[null,null,["最后更新时间 (UTC):2024-12-17。"],[[["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."]]],[]]