Package com.google.api.gax.rpc
Interface PagedListDescriptor<RequestT,ResponseT,ResourceT>
public interface PagedListDescriptor<RequestT,ResponseT,ResourceT>
An interface which provides the functionality to extract data from requests and inject data into
requests for the purposes of page streaming.
This class is designed to be used by generated code.
-
Method Summary
Modifier and TypeMethodDescriptionDelivers the empty page token.extractNextToken(ResponseT payload) Extracts the next token from the response.extractPageSize(RequestT payload) Extracts the page size setting from the request.extractResources(ResponseT payload) Extracts an iterable of resources from the response.injectPageSize(RequestT payload, int pageSize) Injects page size setting into the request.injectToken(RequestT payload, String token) Injects a page token into the request.
-
Method Details
-
emptyToken
String emptyToken()Delivers the empty page token. -
injectToken
Injects a page token into the request. -
injectPageSize
Injects page size setting into the request. -
extractPageSize
Extracts the page size setting from the request. -
extractNextToken
Extracts the next token from the response. Returns the empty token if there are no more pages. -
extractResources
Extracts an iterable of resources from the response.
-