pagination_params_pb2
frequenz.api.common.v1.pagination.pagination_params_pb2
¤
Generated protocol buffer code.
Classes¤
frequenz.api.common.v1.pagination.pagination_params_pb2.PaginationParams
¤
Bases: Message
A message defining parameters for paginating list requests. It can be appended to a request message to specify the desired page of results and the maximum number of results per page.
Source code in frequenz/api/common/v1/pagination/pagination_params_pb2.py
Attributes¤
page_size: builtins.int
instance-attribute
¤
The maximum number of results to return in a single page. The service may return fewer results than requested. If unspecified, the service may choose a reasonable default. May only be specified in the first request.
page_token: builtins.str
instance-attribute
¤
A token identifying a page of results to return. This should be the value
of the next_page_token
field in the previous response's PaginationInfo.
For the first request, this field should be omitted.
To avoid keeping remembering the page_size across requests, service implementations may choose to encode the page_size in the page_token.