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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
emptyToken()
Delivers the empty page token.String
extractNextToken(ResponseT payload)
Extracts the next token from the response.Integer
extractPageSize(RequestT payload)
Extracts the page size setting from the request.Iterable<ResourceT>
extractResources(ResponseT payload)
Extracts an iterable of resources from the response.RequestT
injectPageSize(RequestT payload, int pageSize)
Injects page size setting into the request.RequestT
injectToken(RequestT payload, String token)
Injects a page token into the request.
-
-
-
Method Detail
-
emptyToken
String emptyToken()
Delivers the empty page token.
-
injectToken
RequestT injectToken(RequestT payload, String token)
Injects a page token into the request.
-
injectPageSize
RequestT injectPageSize(RequestT payload, int pageSize)
Injects page size setting into the request.
-
extractPageSize
Integer extractPageSize(RequestT payload)
Extracts the page size setting from the request.
-
extractNextToken
String extractNextToken(ResponseT payload)
Extracts the next token from the response. Returns the empty token if there are no more pages.
-
-