common.v2.paging

io.token.proto.common.v2.paging common/src/main/proto/v2/paging.proto


syntax = "proto3";
package io.token.proto.common.v2.paging;

option java_outer_classname = "PagingProtos";

message Page {
  option deprecated = true; // use PageInfo instead
  string offset = 1;      // Offset for the client to roundtrip
  int32 limit = 2;        // Max number of records to return.
}

message PageInfo {
  string offset = 1;      // This page offset
  int32 limit = 2;        // Max number of records to return
  string next_offset = 3; // offset for the next page
  bool have_more = 4; // if there are more records to fetch
}