Package com.google.api.gax.paging (2.20.1)

Classes

AbstractFixedSizeCollection<RequestT,ResponseT,ResourceT,PageT,CollectionT>

Partial implementation ofFixedSizeCollection.

AbstractPage<RequestT,ResponseT,ResourceT,PageT>

Partial implementation ofAsyncPage.

AbstractPagedListResponse<RequestT,ResponseT,ResourceT,PageT,CollectionT>

Partial implementation ofcom.google.api.gax.paging.PagedListResponse.

Pages

Utility class forPages.

Interfaces

AsyncPage<ResourceT>

An AsyncPage extends aPage object with a getNextPageAsync method.

FixedSizeCollection<ResourceT>

A FixedSizeCollection object wraps multiple API list method responses into a single collection with a fixed number of elements.

Callers can iterate over the FixedSizeCollection object to get all elements in the collection. The number of elements is guaranteed to be equal to the value of the collectionSize parameter passed to expandPage(), unless the API has no more elements to return. The FixedSizeCollection object also provides methods to retrieve additional FixedSizeCollections using the page token.

Page<ResourceT>

A Page object wraps an API list method response.

Callers can iterate over the Page object to get all elements returned in the page. The Page object also provides methods to retrieve additional pages using the page token, and to get the API request and response objects.

PagedListResponse<ResourceT>

Response for paged results from a list API method

This class is used to access the results of a paged list API method. The management of page tokens can be handled automatically, or by the caller. Results can be accessed on a per-element or per-page basis.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-17 UTC.