diff --git a/modules/guardian/types/genesis.pb.go b/modules/guardian/types/genesis.pb.go index b917392bb..28d3e95d8 100644 --- a/modules/guardian/types/genesis.pb.go +++ b/modules/guardian/types/genesis.pb.go @@ -229,10 +229,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { diff --git a/modules/guardian/types/guardian.pb.go b/modules/guardian/types/guardian.pb.go index c150782e6..9efc2fb31 100644 --- a/modules/guardian/types/guardian.pb.go +++ b/modules/guardian/types/guardian.pb.go @@ -392,10 +392,7 @@ func (m *Super) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthGuardian - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGuardian } if (iNdEx + skippy) > l { diff --git a/modules/guardian/types/query.pb.go b/modules/guardian/types/query.pb.go index 6fca0935e..8075ab962 100644 --- a/modules/guardian/types/query.pb.go +++ b/modules/guardian/types/query.pb.go @@ -137,28 +137,30 @@ func init() { func init() { proto.RegisterFile("guardian/query.proto", fileDescriptor_20cf24f8e5be2110) } var fileDescriptor_20cf24f8e5be2110 = []byte{ - // 334 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xb1, 0x4f, 0x02, 0x31, - 0x14, 0xc6, 0xaf, 0xa8, 0x0c, 0x65, 0x31, 0x95, 0x04, 0xbc, 0xe8, 0x49, 0x88, 0x26, 0x4c, 0xd7, - 0x88, 0x71, 0xd0, 0x91, 0xd5, 0x41, 0xc5, 0xcd, 0xad, 0x40, 0x53, 0x9b, 0x40, 0xdf, 0x71, 0x6d, - 0x63, 0xd8, 0x8c, 0x93, 0xa3, 0x89, 0xff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2, 0x3b, 0x0e, 0x85, 0x3c, - 0xe2, 0xa2, 0xc7, 0x21, 0xc7, 0x9b, 0xb5, 0x9b, 0xfb, 0x87, 0x27, 0xff, 0xb8, 0x7c, 0x59, 0xbd, - 0xf6, 0xfc, 0xfe, 0xfd, 0x56, 0x08, 0x49, 0x95, 0x66, 0xf6, 0xfc, 0x34, 0xd4, 0xe3, 0xb7, 0xae, - 0xc6, 0xd3, 0x08, 0x4d, 0xa6, 0x11, 0xfa, 0x9a, 0x46, 0xe8, 0x75, 0x16, 0x05, 0x93, 0x59, 0x14, - 0x7c, 0xcc, 0xa2, 0xe0, 0xfe, 0x54, 0x48, 0x33, 0x2f, 0xe8, 0xc2, 0xc0, 0x4d, 0x2b, 0x6e, 0xf2, - 0x94, 0x01, 0xf4, 0x6c, 0x9f, 0xeb, 0x65, 0x9a, 0x19, 0x25, 0x5c, 0x77, 0x8a, 0xee, 0x64, 0x67, - 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x03, 0x7a, 0x40, 0x34, 0x48, 0x02, 0x00, 0x00, + // 353 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xcb, 0x4e, 0x32, 0x31, + 0x14, 0xc7, 0xa7, 0x7c, 0x9f, 0x2c, 0xca, 0xc6, 0x54, 0x12, 0xc8, 0xc4, 0x8c, 0x84, 0x78, 0x21, + 0x2e, 0xda, 0x80, 0xf1, 0x05, 0x58, 0xe8, 0xc2, 0x8d, 0xe2, 0xce, 0xb8, 0xe9, 0x40, 0x53, 0x27, + 0x81, 0x9e, 0x61, 0xda, 0xd1, 0xb0, 0x33, 0x3e, 0x81, 0x89, 0xf1, 0x9d, 0x58, 0x92, 0xb8, 0x71, + 0x65, 0x0c, 0xf8, 0x20, 0x66, 0xda, 0xe1, 0x26, 0x0b, 0x76, 0x4d, 0xcf, 0xef, 0x7f, 0x69, 0x0f, + 0x2e, 0xcb, 0x94, 0x27, 0xbd, 0x88, 0x2b, 0x36, 0x4c, 0x45, 0x32, 0xa2, 0x71, 0x02, 0x06, 0xc8, + 0x6e, 0x94, 0x44, 0xfa, 0x21, 0x0d, 0xe9, 0x7c, 0xea, 0x97, 0x25, 0x48, 0xb0, 0x43, 0x96, 0x9d, + 0x1c, 0xe7, 0x57, 0x16, 0xea, 0xf9, 0x21, 0x1f, 0xec, 0x4b, 0x00, 0xd9, 0x17, 0x8c, 0xc7, 0x11, + 0xe3, 0x4a, 0x81, 0xe1, 0x26, 0x02, 0xa5, 0xf3, 0xe9, 0x69, 0x17, 0xf4, 0x00, 0x34, 0x0b, 0xb9, + 0x16, 0x2e, 0x97, 0x3d, 0x36, 0x43, 0x61, 0x78, 0x93, 0xc5, 0x5c, 0x46, 0xca, 0xc2, 0x8e, 0xad, + 0xdf, 0x63, 0x72, 0x93, 0x11, 0xb7, 0x69, 0x2c, 0x12, 0xdd, 0x11, 0xc3, 0x54, 0x68, 0x43, 0x2e, + 0x30, 0x5e, 0x92, 0x55, 0x54, 0x43, 0x8d, 0x52, 0xeb, 0x98, 0x3a, 0x5b, 0x9a, 0xd9, 0x52, 0xf7, + 0x9c, 0xdc, 0x96, 0x5e, 0x73, 0x29, 0x72, 0x6d, 0x67, 0x45, 0x59, 0x7f, 0x47, 0x78, 0x6f, 0xcd, + 0x5e, 0xc7, 0xa0, 0xb4, 0x20, 0xe7, 0xb8, 0xa8, 0xed, 0x4d, 0x15, 0xd5, 0xfe, 0x35, 0x4a, 0xad, + 0x0a, 0xfd, 0xfb, 0x23, 0xd4, 0x2a, 0xda, 0xff, 0xc7, 0x5f, 0x07, 0x5e, 0x27, 0x87, 0xc9, 0xe5, + 0x5a, 0xad, 0x82, 0xad, 0x75, 0xb2, 0xb5, 0x96, 0xcb, 0x5c, 0xed, 0xd5, 0x7a, 0x46, 0x78, 0xc7, + 0xf6, 0x22, 0x4f, 0xb8, 0xe8, 0xba, 0x91, 0xc3, 0xcd, 0x0e, 0x9b, 0x3f, 0xe3, 0x1f, 0x6d, 0xa1, + 0x5c, 0x58, 0xbd, 0xf6, 0xf2, 0xf1, 0xf3, 0x56, 0xf0, 0x49, 0x95, 0xe5, 0xf8, 0x62, 0x83, 0xcc, + 0xbd, 0xa5, 0x7d, 0x35, 0x9e, 0x06, 0x68, 0x32, 0x0d, 0xd0, 0xf7, 0x34, 0x40, 0xaf, 0xb3, 0xc0, + 0x9b, 0xcc, 0x02, 0xef, 0x73, 0x16, 0x78, 0x77, 0x4d, 0x19, 0x99, 0x2c, 0xa0, 0x0b, 0x03, 0xab, + 0x56, 0xc2, 0x2c, 0x5c, 0x06, 0xd0, 0x4b, 0xfb, 0x42, 0x2f, 0xdd, 0xcc, 0x28, 0x16, 0x3a, 0x2c, + 0xda, 0x65, 0x9e, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, 0x85, 0xe3, 0x24, 0xf2, 0x6f, 0x02, 0x00, + 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -447,10 +449,7 @@ func (m *QuerySupersRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -570,10 +569,7 @@ func (m *QuerySupersResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { diff --git a/modules/guardian/types/tx.pb.go b/modules/guardian/types/tx.pb.go index 69543f31f..bf3cc3fa8 100644 --- a/modules/guardian/types/tx.pb.go +++ b/modules/guardian/types/tx.pb.go @@ -698,10 +698,7 @@ func (m *MsgAddSuper) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -751,10 +748,7 @@ func (m *MsgAddSuperResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -868,10 +862,7 @@ func (m *MsgDeleteSuper) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { @@ -921,10 +912,7 @@ func (m *MsgDeleteSuperResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthTx - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthTx } if (iNdEx + skippy) > l { diff --git a/modules/mint/types/genesis.pb.go b/modules/mint/types/genesis.pb.go index b63d377a5..2dbd2750f 100644 --- a/modules/mint/types/genesis.pb.go +++ b/modules/mint/types/genesis.pb.go @@ -273,10 +273,7 @@ func (m *GenesisState) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthGenesis - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthGenesis } if (iNdEx + skippy) > l { diff --git a/modules/mint/types/mint.pb.go b/modules/mint/types/mint.pb.go index c0616914d..d33bb9cd6 100644 --- a/modules/mint/types/mint.pb.go +++ b/modules/mint/types/mint.pb.go @@ -385,10 +385,7 @@ func (m *Minter) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthMint - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMint } if (iNdEx + skippy) > l { @@ -504,10 +501,7 @@ func (m *Params) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthMint - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthMint } if (iNdEx + skippy) > l { diff --git a/modules/mint/types/query.pb.go b/modules/mint/types/query.pb.go index 41f12f6ae..eeea1ab08 100644 --- a/modules/mint/types/query.pb.go +++ b/modules/mint/types/query.pb.go @@ -128,27 +128,28 @@ func init() { func init() { proto.RegisterFile("mint/query.proto", fileDescriptor_3082aecef156f565) } var fileDescriptor_3082aecef156f565 = []byte{ - // 309 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xc1, 0x4a, 0x33, 0x31, - 0x10, 0xc7, 0x77, 0xfb, 0x7d, 0xf6, 0x10, 0x05, 0x25, 0x2e, 0x52, 0x96, 0x1a, 0x6b, 0x4f, 0x1e, - 0x34, 0x81, 0xfa, 0x06, 0xbd, 0x78, 0xad, 0x3d, 0x7a, 0x4b, 0x6b, 0x88, 0xc1, 0x6e, 0x26, 0xdd, - 0x64, 0x91, 0x5e, 0x7d, 0x02, 0xc1, 0x97, 0xea, 0xb1, 0xe0, 0xc5, 0x93, 0xc8, 0xae, 0x0f, 0x22, - 0x49, 0x56, 0xb4, 0x08, 0x5e, 0x42, 0xf8, 0xe7, 0x37, 0xbf, 0xcc, 0x0c, 0x3a, 0x28, 0x94, 0x76, - 0x6c, 0x59, 0x89, 0x72, 0x45, 0x4d, 0x09, 0x0e, 0xf0, 0x9e, 0x2a, 0x95, 0xbd, 0xab, 0x66, 0xd4, - 0xbf, 0xe4, 0xc7, 0x73, 0xb0, 0x05, 0xd8, 0x48, 0x30, 0xc3, 0xa5, 0xd2, 0xdc, 0x29, 0xd0, 0x11, - 0xce, 0xf7, 0x43, 0xb9, 0x3f, 0xda,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0xff, 0xff, 0x39, 0xa6, 0xdd, - 0x29, 0xda, 0x01, 0x00, 0x00, + // 327 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xc1, 0x4a, 0x3b, 0x31, + 0x10, 0xc6, 0x77, 0xfb, 0xff, 0xdb, 0x43, 0x14, 0x94, 0xb8, 0x48, 0x29, 0x65, 0xad, 0xbd, 0x28, + 0x82, 0x09, 0xad, 0x27, 0xaf, 0xbd, 0x78, 0xad, 0x3d, 0x7a, 0xcb, 0xd6, 0x10, 0x83, 0xdd, 0xcc, + 0x76, 0x27, 0x2b, 0xf4, 0x2a, 0x3e, 0x80, 0xe0, 0x4b, 0xf5, 0x58, 0xf0, 0xe2, 0x49, 0xa4, 0xf5, + 0x41, 0x24, 0xc9, 0x8a, 0x16, 0xc1, 0x4b, 0x08, 0x33, 0xdf, 0xf7, 0x9b, 0x6f, 0x86, 0xec, 0xe5, + 0xda, 0x58, 0x3e, 0xab, 0x64, 0x39, 0x67, 0x45, 0x09, 0x16, 0xe8, 0x8e, 0x2e, 0x35, 0xde, 0x56, + 0x19, 0x73, 0x9d, 0xf6, 0xe9, 0x04, 0x30, 0x07, 0xe4, 0x99, 0x40, 0x19, 0x64, 0xfc, 0xbe, 0x9f, + 0x49, 0x2b, 0xfa, 0xbc, 0x10, 0x4a, 0x1b, 0x61, 0x35, 0x98, 0xe0, 0x6c, 0xef, 0x7a, 0x96, 0x7b, + 0xea, 0x42, 0xa2, 0x40, 0x81, 0xff, 0x72, 0xf7, 0xab, 0xab, 0x1d, 0x05, 0xa0, 0xa6, 0x92, 0x8b, + 0x42, 0x73, 0x61, 0x0c, 0x58, 0xcf, 0xc0, 0xd0, 0xed, 0x25, 0x84, 0x5e, 0xb9, 0x31, 0x23, 0x51, + 0x8a, 0x1c, 0xc7, 0x72, 0x56, 0x49, 0xb4, 0xbd, 0xc7, 0x98, 0xec, 0x6f, 0x94, 0xb1, 0x00, 0x83, + 0x92, 0x0e, 0x48, 0xb3, 0xf0, 0x95, 0x56, 0xdc, 0x8d, 0x4f, 0xb6, 0x07, 0x09, 0xfb, 0x99, 0x9e, + 0x05, 0xf5, 0xf0, 0xff, 0xe2, 0xed, 0x30, 0x1a, 0xd7, 0x4a, 0x7a, 0x41, 0xfe, 0x95, 0x12, 0x5b, + 0x0d, 0x6f, 0x38, 0x66, 0x61, 0x41, 0xe6, 0x16, 0x64, 0xe1, 0x0e, 0xf5, 0x82, 0x6c, 0x24, 0x94, + 0xfc, 0x9a, 0x34, 0x76, 0x9e, 0x81, 0x25, 0x5b, 0x3e, 0x05, 0xbd, 0x23, 0xcd, 0xc0, 0xa6, 0xdd, + 0xcd, 0x89, 0xbf, 0xb3, 0xb7, 0x8f, 0xfe, 0x50, 0x04, 0x78, 0xaf, 0xf3, 0xf0, 0xf2, 0xf1, 0xdc, + 0x38, 0xa0, 0x09, 0xaf, 0xa5, 0xfe, 0x8a, 0x3c, 0x04, 0x1e, 0x5e, 0x2e, 0x56, 0x69, 0xbc, 0x5c, + 0xa5, 0xf1, 0xfb, 0x2a, 0x8d, 0x9f, 0xd6, 0x69, 0xb4, 0x5c, 0xa7, 0xd1, 0xeb, 0x3a, 0x8d, 0xae, + 0xcf, 0x94, 0xb6, 0x0e, 0x3c, 0x81, 0xdc, 0x3b, 0x8d, 0xb4, 0xdf, 0x04, 0xb8, 0xa9, 0xa6, 0x12, + 0x03, 0xc9, 0xce, 0x0b, 0x89, 0x59, 0xd3, 0x9f, 0xf8, 0xfc, 0x33, 0x00, 0x00, 0xff, 0xff, 0xac, + 0x02, 0x2e, 0xf3, 0xf5, 0x01, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -377,10 +378,7 @@ func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { @@ -499,10 +497,7 @@ func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { if err != nil { return err } - if skippy < 0 { - return ErrInvalidLengthQuery - } - if (iNdEx + skippy) < 0 { + if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { diff --git a/proto/guardian/query.proto b/proto/guardian/query.proto index d02bf3ebb..965955205 100644 --- a/proto/guardian/query.proto +++ b/proto/guardian/query.proto @@ -4,7 +4,7 @@ package irishub.guardian; import "gogoproto/gogo.proto"; import "guardian/guardian.proto"; import "google/api/annotations.proto"; -import "cosmos/query/pagination.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; option go_package = "github.com/irisnet/irishub/modules/guardian/types"; @@ -19,12 +19,12 @@ service Query { // QuerySupersRequest is request type for the Query/Supers RPC method message QuerySupersRequest { // pagination defines an optional pagination for the request. - cosmos.query.PageRequest pagination = 1; + cosmos.base.query.v1beta1.PageRequest pagination = 1; } // QuerySupersResponse is response type for the Query/Supers RPC method message QuerySupersResponse { repeated Super supers = 1 [(gogoproto.nullable) = false]; - cosmos.query.PageResponse pagination = 2; + cosmos.base.query.v1beta1.PageResponse pagination = 2; } \ No newline at end of file diff --git a/proto/mint/query.proto b/proto/mint/query.proto index ed05b8c3c..26ff5244a 100644 --- a/proto/mint/query.proto +++ b/proto/mint/query.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package irishub.mint; -import "cosmos/query/pagination.proto"; +import "cosmos/base/query/v1beta1/pagination.proto"; import "mint/mint.proto"; import "gogoproto/gogo.proto"; import "google/api/annotations.proto"; @@ -24,5 +24,5 @@ message QueryParamsRequest { message QueryParamsResponse { Params params = 1 [ (gogoproto.nullable) = false ]; - cosmos.query.PageResponse res = 2; + cosmos.base.query.v1beta1.PageResponse res = 2; } \ No newline at end of file diff --git a/third_party/proto/cosmos_proto/bank.proto b/third_party/proto/cosmos/bank/v1beta1/bank.proto similarity index 100% rename from third_party/proto/cosmos_proto/bank.proto rename to third_party/proto/cosmos/bank/v1beta1/bank.proto diff --git a/third_party/proto/cosmos/query/pagination.proto b/third_party/proto/cosmos/base/query/v1beta1/pagination.proto similarity index 97% rename from third_party/proto/cosmos/query/pagination.proto rename to third_party/proto/cosmos/base/query/v1beta1/pagination.proto index cd3a1f27b..b46c0516b 100644 --- a/third_party/proto/cosmos/query/pagination.proto +++ b/third_party/proto/cosmos/base/query/v1beta1/pagination.proto @@ -1,5 +1,5 @@ syntax = "proto3"; -package cosmos.query; +package cosmos.base.query.v1beta1; option go_package = "github.com/cosmos/cosmos-sdk/types/query"; diff --git a/third_party/proto/cosmos_proto/coin.proto b/third_party/proto/cosmos/base/v1beta1/coin.proto similarity index 100% rename from third_party/proto/cosmos_proto/coin.proto rename to third_party/proto/cosmos/base/v1beta1/coin.proto diff --git a/third_party/proto/cosmos_proto/pagination.proto b/third_party/proto/cosmos_proto/pagination.proto deleted file mode 100644 index cd3a1f27b..000000000 --- a/third_party/proto/cosmos_proto/pagination.proto +++ /dev/null @@ -1,49 +0,0 @@ -syntax = "proto3"; -package cosmos.query; - -option go_package = "github.com/cosmos/cosmos-sdk/types/query"; - -// PageRequest is to be embedded in gRPC request messages for efficient -// pagination. Ex: -// -// message SomeRequest { -// Foo some_parameter = 1; -// PageRequest page = 2; -// } -message PageRequest { - // key is a value returned in PageResponse.next_key to begin - // querying the next page most efficiently. Only one of offset or key - // should be set. - bytes key = 1; - - // offset is a numeric offset that can be used when key is unavailable. - // It is less efficient than using key. Only one of offset or key should - // be set. - uint64 offset = 2; - - // limit is the total number of results to be returned in the result page. - // If left empty it will default to a value to be set by each app. - uint64 limit = 3; - - // count_total is set to true to indicate that the result set should include - // a count of the total number of items available for pagination in UIs. count_total - // is only respected when offset is used. It is ignored when key is set. - bool count_total = 4; -} - -// PageResponse is to be embedded in gRPC response messages where the corresponding -// request message has used PageRequest -// -// message SomeResponse { -// repeated Bar results = 1; -// PageResponse page = 2; -// } -message PageResponse { - // next_key is the key to be passed to PageRequest.key to - // query the next page most efficiently - bytes next_key = 1; - - // total is total number of results available if PageRequest.count_total - // was set, its value is undefined otherwise - uint64 total = 2; -}