Skip to content

PageToken

PageToken is a page token that uses an offset to delineate which page to fetch.

new PageToken(offset, requestChecksum): PageToken

number

number

PageToken

offset: number

Offset of the page.


requestChecksum: number

RequestChecksum is the checksum of the request that generated the page token.

next(pageSize): PageToken

Returns the next page token for the given page size.

number

the page size to advance by

PageToken


previous(pageSize): PageToken

Returns the previous page token for the given page size.

If the previous page token would have a negative offset, a page token with offset 0 will be returned.

number

the page size to go back by

PageToken


toString(): string

String returns a string representation of the page token.

string