Pagination

Rules for AIP-158, covering pagination.

Rule name Description
request-page-size-field Paginated RPCs must have a `page_size` field in the request.
request-page-token-field Paginated RPCs must have a `page_token` field in the request.
response-next-page-token-field Paginated RPCs must have a `next_page_token` field in the response.
response-plural-first-field First field of Paginated RPCs' response should be plural.
response-repeated-first-field First field (by both position and field number) of Paginated RPCs' response should be repeated.

Note: Because AIPs sometimes cover topics that have some overlap, some rules related to pagination may be included in the rules for other AIPs.