TokenPagination
टोकन पेजेशन की सुविधा चालू होने पर, 'सूची' ऑपरेशन से मिली पेजेशन की जानकारी.
पेजिंग की सुविधा वाले लिस्ट ऑपरेशन, नतीजों का सिर्फ़ एक "पेज" दिखाते हैं. इस प्रोटोकॉल बफ़र मैसेज में, दिखाए गए पेज के बारे में जानकारी होती है.
टोकन पेजेशन का इस्तेमाल करते समय, क्लाइंट को नतीजे का दूसरा पेज पाने के लिए, अगले/पिछले टोकन का इस्तेमाल करना चाहिए. अगला/पिछला टोक़न मौजूद होने या न होने से पता चलता है कि अगला/पिछला पेज उपलब्ध है या नहीं. साथ ही, इस पेज को ऐक्सेस करने का तरीका भी पता चलता है. किसी दूसरे पेज को ऐक्सेस करने के लिए, ListRequest.page_token को nextPageToken या previousPageToken पर सेट किया जाना चाहिए.
JSON के काेड में दिखाना |
{
"nextPageToken": string,
"previousPageToken": string
} |
फ़ील्ड |
nextPageToken |
string
स्टैंडर्ड सूची फ़ील्ड 'pageToken' को पास करने के लिए टोकन. जब भी उपलब्ध हो, startIndex में बदलाव करने के बजाय टोकन का इस्तेमाल करना बेहतर होता है.
|
previousPageToken |
string
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]