github.com/Finschia/finschia-sdk@v0.49.1/x/feegrant/query.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/feegrant/v1beta1/query.proto
     3  
     4  package feegrant
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	query "github.com/Finschia/finschia-sdk/types/query"
    10  	_ "github.com/gogo/protobuf/gogoproto"
    11  	grpc1 "github.com/gogo/protobuf/grpc"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	_ "google.golang.org/genproto/googleapis/api/annotations"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  // QueryAllowanceRequest is the request type for the Query/Allowance RPC method.
    34  type QueryAllowanceRequest struct {
    35  	// granter is the address of the user granting an allowance of their funds.
    36  	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty" yaml:"granter_address"`
    37  	// grantee is the address of the user being granted an allowance of another user's funds.
    38  	Grantee string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty" yaml:"grantee_address"`
    39  }
    40  
    41  func (m *QueryAllowanceRequest) Reset()         { *m = QueryAllowanceRequest{} }
    42  func (m *QueryAllowanceRequest) String() string { return proto.CompactTextString(m) }
    43  func (*QueryAllowanceRequest) ProtoMessage()    {}
    44  func (*QueryAllowanceRequest) Descriptor() ([]byte, []int) {
    45  	return fileDescriptor_59efc303945de53f, []int{0}
    46  }
    47  func (m *QueryAllowanceRequest) XXX_Unmarshal(b []byte) error {
    48  	return m.Unmarshal(b)
    49  }
    50  func (m *QueryAllowanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    51  	if deterministic {
    52  		return xxx_messageInfo_QueryAllowanceRequest.Marshal(b, m, deterministic)
    53  	} else {
    54  		b = b[:cap(b)]
    55  		n, err := m.MarshalToSizedBuffer(b)
    56  		if err != nil {
    57  			return nil, err
    58  		}
    59  		return b[:n], nil
    60  	}
    61  }
    62  func (m *QueryAllowanceRequest) XXX_Merge(src proto.Message) {
    63  	xxx_messageInfo_QueryAllowanceRequest.Merge(m, src)
    64  }
    65  func (m *QueryAllowanceRequest) XXX_Size() int {
    66  	return m.Size()
    67  }
    68  func (m *QueryAllowanceRequest) XXX_DiscardUnknown() {
    69  	xxx_messageInfo_QueryAllowanceRequest.DiscardUnknown(m)
    70  }
    71  
    72  var xxx_messageInfo_QueryAllowanceRequest proto.InternalMessageInfo
    73  
    74  func (m *QueryAllowanceRequest) GetGranter() string {
    75  	if m != nil {
    76  		return m.Granter
    77  	}
    78  	return ""
    79  }
    80  
    81  func (m *QueryAllowanceRequest) GetGrantee() string {
    82  	if m != nil {
    83  		return m.Grantee
    84  	}
    85  	return ""
    86  }
    87  
    88  // QueryAllowanceResponse is the response type for the Query/Allowance RPC method.
    89  type QueryAllowanceResponse struct {
    90  	// allowance is a allowance granted for grantee by granter.
    91  	Allowance *Grant `protobuf:"bytes,1,opt,name=allowance,proto3" json:"allowance,omitempty"`
    92  }
    93  
    94  func (m *QueryAllowanceResponse) Reset()         { *m = QueryAllowanceResponse{} }
    95  func (m *QueryAllowanceResponse) String() string { return proto.CompactTextString(m) }
    96  func (*QueryAllowanceResponse) ProtoMessage()    {}
    97  func (*QueryAllowanceResponse) Descriptor() ([]byte, []int) {
    98  	return fileDescriptor_59efc303945de53f, []int{1}
    99  }
   100  func (m *QueryAllowanceResponse) XXX_Unmarshal(b []byte) error {
   101  	return m.Unmarshal(b)
   102  }
   103  func (m *QueryAllowanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   104  	if deterministic {
   105  		return xxx_messageInfo_QueryAllowanceResponse.Marshal(b, m, deterministic)
   106  	} else {
   107  		b = b[:cap(b)]
   108  		n, err := m.MarshalToSizedBuffer(b)
   109  		if err != nil {
   110  			return nil, err
   111  		}
   112  		return b[:n], nil
   113  	}
   114  }
   115  func (m *QueryAllowanceResponse) XXX_Merge(src proto.Message) {
   116  	xxx_messageInfo_QueryAllowanceResponse.Merge(m, src)
   117  }
   118  func (m *QueryAllowanceResponse) XXX_Size() int {
   119  	return m.Size()
   120  }
   121  func (m *QueryAllowanceResponse) XXX_DiscardUnknown() {
   122  	xxx_messageInfo_QueryAllowanceResponse.DiscardUnknown(m)
   123  }
   124  
   125  var xxx_messageInfo_QueryAllowanceResponse proto.InternalMessageInfo
   126  
   127  func (m *QueryAllowanceResponse) GetAllowance() *Grant {
   128  	if m != nil {
   129  		return m.Allowance
   130  	}
   131  	return nil
   132  }
   133  
   134  // QueryAllowancesRequest is the request type for the Query/Allowances RPC method.
   135  type QueryAllowancesRequest struct {
   136  	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty" yaml:"grantee_address"`
   137  	// pagination defines an pagination for the request.
   138  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   139  }
   140  
   141  func (m *QueryAllowancesRequest) Reset()         { *m = QueryAllowancesRequest{} }
   142  func (m *QueryAllowancesRequest) String() string { return proto.CompactTextString(m) }
   143  func (*QueryAllowancesRequest) ProtoMessage()    {}
   144  func (*QueryAllowancesRequest) Descriptor() ([]byte, []int) {
   145  	return fileDescriptor_59efc303945de53f, []int{2}
   146  }
   147  func (m *QueryAllowancesRequest) XXX_Unmarshal(b []byte) error {
   148  	return m.Unmarshal(b)
   149  }
   150  func (m *QueryAllowancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   151  	if deterministic {
   152  		return xxx_messageInfo_QueryAllowancesRequest.Marshal(b, m, deterministic)
   153  	} else {
   154  		b = b[:cap(b)]
   155  		n, err := m.MarshalToSizedBuffer(b)
   156  		if err != nil {
   157  			return nil, err
   158  		}
   159  		return b[:n], nil
   160  	}
   161  }
   162  func (m *QueryAllowancesRequest) XXX_Merge(src proto.Message) {
   163  	xxx_messageInfo_QueryAllowancesRequest.Merge(m, src)
   164  }
   165  func (m *QueryAllowancesRequest) XXX_Size() int {
   166  	return m.Size()
   167  }
   168  func (m *QueryAllowancesRequest) XXX_DiscardUnknown() {
   169  	xxx_messageInfo_QueryAllowancesRequest.DiscardUnknown(m)
   170  }
   171  
   172  var xxx_messageInfo_QueryAllowancesRequest proto.InternalMessageInfo
   173  
   174  func (m *QueryAllowancesRequest) GetGrantee() string {
   175  	if m != nil {
   176  		return m.Grantee
   177  	}
   178  	return ""
   179  }
   180  
   181  func (m *QueryAllowancesRequest) GetPagination() *query.PageRequest {
   182  	if m != nil {
   183  		return m.Pagination
   184  	}
   185  	return nil
   186  }
   187  
   188  // QueryAllowancesResponse is the response type for the Query/Allowances RPC method.
   189  type QueryAllowancesResponse struct {
   190  	// allowances are allowance's granted for grantee by granter.
   191  	Allowances []*Grant `protobuf:"bytes,1,rep,name=allowances,proto3" json:"allowances,omitempty"`
   192  	// pagination defines an pagination for the response.
   193  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   194  }
   195  
   196  func (m *QueryAllowancesResponse) Reset()         { *m = QueryAllowancesResponse{} }
   197  func (m *QueryAllowancesResponse) String() string { return proto.CompactTextString(m) }
   198  func (*QueryAllowancesResponse) ProtoMessage()    {}
   199  func (*QueryAllowancesResponse) Descriptor() ([]byte, []int) {
   200  	return fileDescriptor_59efc303945de53f, []int{3}
   201  }
   202  func (m *QueryAllowancesResponse) XXX_Unmarshal(b []byte) error {
   203  	return m.Unmarshal(b)
   204  }
   205  func (m *QueryAllowancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   206  	if deterministic {
   207  		return xxx_messageInfo_QueryAllowancesResponse.Marshal(b, m, deterministic)
   208  	} else {
   209  		b = b[:cap(b)]
   210  		n, err := m.MarshalToSizedBuffer(b)
   211  		if err != nil {
   212  			return nil, err
   213  		}
   214  		return b[:n], nil
   215  	}
   216  }
   217  func (m *QueryAllowancesResponse) XXX_Merge(src proto.Message) {
   218  	xxx_messageInfo_QueryAllowancesResponse.Merge(m, src)
   219  }
   220  func (m *QueryAllowancesResponse) XXX_Size() int {
   221  	return m.Size()
   222  }
   223  func (m *QueryAllowancesResponse) XXX_DiscardUnknown() {
   224  	xxx_messageInfo_QueryAllowancesResponse.DiscardUnknown(m)
   225  }
   226  
   227  var xxx_messageInfo_QueryAllowancesResponse proto.InternalMessageInfo
   228  
   229  func (m *QueryAllowancesResponse) GetAllowances() []*Grant {
   230  	if m != nil {
   231  		return m.Allowances
   232  	}
   233  	return nil
   234  }
   235  
   236  func (m *QueryAllowancesResponse) GetPagination() *query.PageResponse {
   237  	if m != nil {
   238  		return m.Pagination
   239  	}
   240  	return nil
   241  }
   242  
   243  // QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method.
   244  type QueryAllowancesByGranterRequest struct {
   245  	Granter string `protobuf:"bytes,1,opt,name=granter,proto3" json:"granter,omitempty"`
   246  	// pagination defines an pagination for the request.
   247  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   248  }
   249  
   250  func (m *QueryAllowancesByGranterRequest) Reset()         { *m = QueryAllowancesByGranterRequest{} }
   251  func (m *QueryAllowancesByGranterRequest) String() string { return proto.CompactTextString(m) }
   252  func (*QueryAllowancesByGranterRequest) ProtoMessage()    {}
   253  func (*QueryAllowancesByGranterRequest) Descriptor() ([]byte, []int) {
   254  	return fileDescriptor_59efc303945de53f, []int{4}
   255  }
   256  func (m *QueryAllowancesByGranterRequest) XXX_Unmarshal(b []byte) error {
   257  	return m.Unmarshal(b)
   258  }
   259  func (m *QueryAllowancesByGranterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   260  	if deterministic {
   261  		return xxx_messageInfo_QueryAllowancesByGranterRequest.Marshal(b, m, deterministic)
   262  	} else {
   263  		b = b[:cap(b)]
   264  		n, err := m.MarshalToSizedBuffer(b)
   265  		if err != nil {
   266  			return nil, err
   267  		}
   268  		return b[:n], nil
   269  	}
   270  }
   271  func (m *QueryAllowancesByGranterRequest) XXX_Merge(src proto.Message) {
   272  	xxx_messageInfo_QueryAllowancesByGranterRequest.Merge(m, src)
   273  }
   274  func (m *QueryAllowancesByGranterRequest) XXX_Size() int {
   275  	return m.Size()
   276  }
   277  func (m *QueryAllowancesByGranterRequest) XXX_DiscardUnknown() {
   278  	xxx_messageInfo_QueryAllowancesByGranterRequest.DiscardUnknown(m)
   279  }
   280  
   281  var xxx_messageInfo_QueryAllowancesByGranterRequest proto.InternalMessageInfo
   282  
   283  func (m *QueryAllowancesByGranterRequest) GetGranter() string {
   284  	if m != nil {
   285  		return m.Granter
   286  	}
   287  	return ""
   288  }
   289  
   290  func (m *QueryAllowancesByGranterRequest) GetPagination() *query.PageRequest {
   291  	if m != nil {
   292  		return m.Pagination
   293  	}
   294  	return nil
   295  }
   296  
   297  // QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method.
   298  type QueryAllowancesByGranterResponse struct {
   299  	// allowances that have been issued by the granter.
   300  	Allowances []*Grant `protobuf:"bytes,1,rep,name=allowances,proto3" json:"allowances,omitempty"`
   301  	// pagination defines an pagination for the response.
   302  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   303  }
   304  
   305  func (m *QueryAllowancesByGranterResponse) Reset()         { *m = QueryAllowancesByGranterResponse{} }
   306  func (m *QueryAllowancesByGranterResponse) String() string { return proto.CompactTextString(m) }
   307  func (*QueryAllowancesByGranterResponse) ProtoMessage()    {}
   308  func (*QueryAllowancesByGranterResponse) Descriptor() ([]byte, []int) {
   309  	return fileDescriptor_59efc303945de53f, []int{5}
   310  }
   311  func (m *QueryAllowancesByGranterResponse) XXX_Unmarshal(b []byte) error {
   312  	return m.Unmarshal(b)
   313  }
   314  func (m *QueryAllowancesByGranterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   315  	if deterministic {
   316  		return xxx_messageInfo_QueryAllowancesByGranterResponse.Marshal(b, m, deterministic)
   317  	} else {
   318  		b = b[:cap(b)]
   319  		n, err := m.MarshalToSizedBuffer(b)
   320  		if err != nil {
   321  			return nil, err
   322  		}
   323  		return b[:n], nil
   324  	}
   325  }
   326  func (m *QueryAllowancesByGranterResponse) XXX_Merge(src proto.Message) {
   327  	xxx_messageInfo_QueryAllowancesByGranterResponse.Merge(m, src)
   328  }
   329  func (m *QueryAllowancesByGranterResponse) XXX_Size() int {
   330  	return m.Size()
   331  }
   332  func (m *QueryAllowancesByGranterResponse) XXX_DiscardUnknown() {
   333  	xxx_messageInfo_QueryAllowancesByGranterResponse.DiscardUnknown(m)
   334  }
   335  
   336  var xxx_messageInfo_QueryAllowancesByGranterResponse proto.InternalMessageInfo
   337  
   338  func (m *QueryAllowancesByGranterResponse) GetAllowances() []*Grant {
   339  	if m != nil {
   340  		return m.Allowances
   341  	}
   342  	return nil
   343  }
   344  
   345  func (m *QueryAllowancesByGranterResponse) GetPagination() *query.PageResponse {
   346  	if m != nil {
   347  		return m.Pagination
   348  	}
   349  	return nil
   350  }
   351  
   352  func init() {
   353  	proto.RegisterType((*QueryAllowanceRequest)(nil), "cosmos.feegrant.v1beta1.QueryAllowanceRequest")
   354  	proto.RegisterType((*QueryAllowanceResponse)(nil), "cosmos.feegrant.v1beta1.QueryAllowanceResponse")
   355  	proto.RegisterType((*QueryAllowancesRequest)(nil), "cosmos.feegrant.v1beta1.QueryAllowancesRequest")
   356  	proto.RegisterType((*QueryAllowancesResponse)(nil), "cosmos.feegrant.v1beta1.QueryAllowancesResponse")
   357  	proto.RegisterType((*QueryAllowancesByGranterRequest)(nil), "cosmos.feegrant.v1beta1.QueryAllowancesByGranterRequest")
   358  	proto.RegisterType((*QueryAllowancesByGranterResponse)(nil), "cosmos.feegrant.v1beta1.QueryAllowancesByGranterResponse")
   359  }
   360  
   361  func init() {
   362  	proto.RegisterFile("cosmos/feegrant/v1beta1/query.proto", fileDescriptor_59efc303945de53f)
   363  }
   364  
   365  var fileDescriptor_59efc303945de53f = []byte{
   366  	// 545 bytes of a gzipped FileDescriptorProto
   367  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x94, 0x4d, 0x6b, 0x13, 0x41,
   368  	0x1c, 0xc6, 0x33, 0xf5, 0x8d, 0x4c, 0x6f, 0xa3, 0xb6, 0x61, 0x91, 0x6d, 0x58, 0xa1, 0xbe, 0x94,
   369  	0xee, 0x98, 0xf8, 0x42, 0x15, 0x29, 0x18, 0xb0, 0xb9, 0x6a, 0x0e, 0x1e, 0xbc, 0xc8, 0x24, 0xf9,
   370  	0x77, 0xbb, 0x98, 0xec, 0xa4, 0x3b, 0x1b, 0x35, 0x48, 0x2f, 0xf6, 0x0b, 0x08, 0x82, 0x57, 0xc1,
   371  	0x83, 0x17, 0xfd, 0x0a, 0xde, 0x3d, 0x16, 0xbc, 0x78, 0x12, 0x49, 0xfc, 0x04, 0x7e, 0x02, 0xd9,
   372  	0x79, 0xd9, 0x8d, 0x9b, 0x5d, 0xba, 0x88, 0x07, 0x6f, 0x93, 0xcc, 0xf3, 0xcc, 0xfc, 0x9e, 0x67,
   373  	0x66, 0x07, 0x5f, 0xec, 0x71, 0x31, 0xe4, 0x82, 0xee, 0x02, 0x78, 0x21, 0x0b, 0x22, 0xfa, 0xac,
   374  	0xd1, 0x85, 0x88, 0x35, 0xe8, 0xfe, 0x18, 0xc2, 0x89, 0x3b, 0x0a, 0x79, 0xc4, 0xc9, 0xaa, 0x12,
   375  	0xb9, 0x46, 0xe4, 0x6a, 0x91, 0x75, 0xce, 0xe3, 0x1e, 0x97, 0x1a, 0x1a, 0x8f, 0x94, 0xdc, 0x5a,
   376  	0x2f, 0x5a, 0x33, 0xf1, 0x2b, 0xdd, 0x55, 0xad, 0xeb, 0x32, 0x01, 0x6a, 0xbf, 0x44, 0x39, 0x62,
   377  	0x9e, 0x1f, 0xb0, 0xc8, 0xe7, 0x81, 0xd6, 0x5e, 0xf0, 0x38, 0xf7, 0x06, 0x40, 0xd9, 0xc8, 0xa7,
   378  	0x2c, 0x08, 0x78, 0x24, 0x27, 0x85, 0x9a, 0x75, 0x0e, 0x11, 0x3e, 0xff, 0x30, 0x5e, 0xe0, 0xde,
   379  	0x60, 0xc0, 0x9f, 0xb3, 0xa0, 0x07, 0x1d, 0xd8, 0x1f, 0x83, 0x88, 0xc8, 0x0d, 0x7c, 0x46, 0x6e,
   380  	0x09, 0x61, 0x0d, 0xd5, 0xd1, 0xe5, 0x6a, 0xcb, 0xfa, 0xf5, 0x7d, 0x6d, 0x65, 0xc2, 0x86, 0x83,
   381  	0x3b, 0x8e, 0x9e, 0x78, 0xc2, 0xfa, 0xfd, 0x10, 0x84, 0x70, 0x3a, 0x46, 0x9a, 0xba, 0xa0, 0xb6,
   382  	0x94, 0xef, 0x82, 0x05, 0x17, 0x38, 0x8f, 0xf0, 0x4a, 0x16, 0x42, 0x8c, 0x78, 0x20, 0x80, 0xdc,
   383  	0xc5, 0x55, 0x66, 0xfe, 0x94, 0x1c, 0xcb, 0x4d, 0xdb, 0x2d, 0x28, 0xd5, 0x6d, 0xc7, 0xbf, 0x3a,
   384  	0xa9, 0xc1, 0x79, 0x8b, 0xb2, 0x0b, 0x8b, 0x85, 0x78, 0x50, 0x14, 0x2f, 0x07, 0x94, 0xec, 0x60,
   385  	0x9c, 0x16, 0x2c, 0x13, 0x2e, 0x37, 0xd7, 0x0d, 0x4f, 0x7c, 0x1a, 0xae, 0x3a, 0x7d, 0x43, 0xf4,
   386  	0x80, 0x79, 0xa6, 0xd0, 0xce, 0x9c, 0xd3, 0x79, 0x8f, 0xf0, 0xea, 0x02, 0x98, 0x8e, 0xbc, 0x8d,
   387  	0x71, 0x92, 0x40, 0xd4, 0x50, 0xfd, 0x44, 0x89, 0xcc, 0x73, 0x0e, 0xd2, 0xce, 0x61, 0xbc, 0x74,
   388  	0x2c, 0xa3, 0xda, 0xfc, 0x0f, 0xc8, 0x43, 0x84, 0xd7, 0x32, 0x90, 0xad, 0x49, 0x5b, 0x1d, 0xb4,
   389  	0xa9, 0xb1, 0x96, 0xb9, 0x25, 0xe9, 0x4d, 0xf8, 0x57, 0x55, 0x7d, 0x44, 0xb8, 0x5e, 0x4c, 0xf1,
   390  	0x9f, 0x75, 0xd6, 0x7c, 0x77, 0x12, 0x9f, 0x92, 0xb4, 0xe4, 0x13, 0xc2, 0xd5, 0x04, 0x99, 0xb8,
   391  	0x85, 0x30, 0xb9, 0x5f, 0x9f, 0x45, 0x4b, 0xeb, 0x15, 0x84, 0xb3, 0xfd, 0xea, 0xeb, 0xcf, 0x37,
   392  	0x4b, 0x5b, 0xe4, 0x16, 0x2d, 0x7a, 0x43, 0x92, 0xb8, 0xf4, 0xa5, 0x3e, 0xa3, 0x03, 0x33, 0x82,
   393  	0x03, 0xf2, 0x01, 0x61, 0x9c, 0x36, 0x4c, 0xca, 0xee, 0x6f, 0xbe, 0x27, 0xeb, 0x5a, 0x79, 0x83,
   394  	0x26, 0xbe, 0x29, 0x89, 0x29, 0xd9, 0x3c, 0x9e, 0x58, 0xcc, 0x81, 0x7e, 0x46, 0xf8, 0x6c, 0xce,
   395  	0x55, 0x20, 0x5b, 0x65, 0x01, 0xb2, 0x77, 0xd8, 0xba, 0xfd, 0x17, 0x4e, 0x9d, 0xa1, 0x21, 0x33,
   396  	0x6c, 0x90, 0x2b, 0x85, 0x19, 0x7c, 0x21, 0xc6, 0xd0, 0x4f, 0x2b, 0x6f, 0xdd, 0xff, 0x32, 0xb5,
   397  	0xd1, 0xd1, 0xd4, 0x46, 0x3f, 0xa6, 0x36, 0x7a, 0x3d, 0xb3, 0x2b, 0x47, 0x33, 0xbb, 0xf2, 0x6d,
   398  	0x66, 0x57, 0x1e, 0x6f, 0x78, 0x7e, 0xb4, 0x37, 0xee, 0xba, 0x3d, 0x3e, 0xa4, 0x3b, 0x7e, 0x20,
   399  	0x7a, 0x7b, 0x3e, 0xa3, 0xbb, 0x7a, 0xb0, 0x29, 0xfa, 0x4f, 0xe9, 0x8b, 0x64, 0xfd, 0xee, 0x69,
   400  	0xf9, 0x7e, 0x5f, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x27, 0xb6, 0x94, 0x3d, 0x87, 0x06, 0x00,
   401  	0x00,
   402  }
   403  
   404  // Reference imports to suppress errors if they are not otherwise used.
   405  var _ context.Context
   406  var _ grpc.ClientConn
   407  
   408  // This is a compile-time assertion to ensure that this generated file
   409  // is compatible with the grpc package it is being compiled against.
   410  const _ = grpc.SupportPackageIsVersion4
   411  
   412  // QueryClient is the client API for Query service.
   413  //
   414  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   415  type QueryClient interface {
   416  	// Allowance returns fee granted to the grantee by the granter.
   417  	Allowance(ctx context.Context, in *QueryAllowanceRequest, opts ...grpc.CallOption) (*QueryAllowanceResponse, error)
   418  	// Allowances returns all the grants for address.
   419  	Allowances(ctx context.Context, in *QueryAllowancesRequest, opts ...grpc.CallOption) (*QueryAllowancesResponse, error)
   420  	// AllowancesByGranter returns all the grants given by an address
   421  	// Since v0.46
   422  	AllowancesByGranter(ctx context.Context, in *QueryAllowancesByGranterRequest, opts ...grpc.CallOption) (*QueryAllowancesByGranterResponse, error)
   423  }
   424  
   425  type queryClient struct {
   426  	cc grpc1.ClientConn
   427  }
   428  
   429  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
   430  	return &queryClient{cc}
   431  }
   432  
   433  func (c *queryClient) Allowance(ctx context.Context, in *QueryAllowanceRequest, opts ...grpc.CallOption) (*QueryAllowanceResponse, error) {
   434  	out := new(QueryAllowanceResponse)
   435  	err := c.cc.Invoke(ctx, "/cosmos.feegrant.v1beta1.Query/Allowance", in, out, opts...)
   436  	if err != nil {
   437  		return nil, err
   438  	}
   439  	return out, nil
   440  }
   441  
   442  func (c *queryClient) Allowances(ctx context.Context, in *QueryAllowancesRequest, opts ...grpc.CallOption) (*QueryAllowancesResponse, error) {
   443  	out := new(QueryAllowancesResponse)
   444  	err := c.cc.Invoke(ctx, "/cosmos.feegrant.v1beta1.Query/Allowances", in, out, opts...)
   445  	if err != nil {
   446  		return nil, err
   447  	}
   448  	return out, nil
   449  }
   450  
   451  func (c *queryClient) AllowancesByGranter(ctx context.Context, in *QueryAllowancesByGranterRequest, opts ...grpc.CallOption) (*QueryAllowancesByGranterResponse, error) {
   452  	out := new(QueryAllowancesByGranterResponse)
   453  	err := c.cc.Invoke(ctx, "/cosmos.feegrant.v1beta1.Query/AllowancesByGranter", in, out, opts...)
   454  	if err != nil {
   455  		return nil, err
   456  	}
   457  	return out, nil
   458  }
   459  
   460  // QueryServer is the server API for Query service.
   461  type QueryServer interface {
   462  	// Allowance returns fee granted to the grantee by the granter.
   463  	Allowance(context.Context, *QueryAllowanceRequest) (*QueryAllowanceResponse, error)
   464  	// Allowances returns all the grants for address.
   465  	Allowances(context.Context, *QueryAllowancesRequest) (*QueryAllowancesResponse, error)
   466  	// AllowancesByGranter returns all the grants given by an address
   467  	// Since v0.46
   468  	AllowancesByGranter(context.Context, *QueryAllowancesByGranterRequest) (*QueryAllowancesByGranterResponse, error)
   469  }
   470  
   471  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
   472  type UnimplementedQueryServer struct {
   473  }
   474  
   475  func (*UnimplementedQueryServer) Allowance(ctx context.Context, req *QueryAllowanceRequest) (*QueryAllowanceResponse, error) {
   476  	return nil, status.Errorf(codes.Unimplemented, "method Allowance not implemented")
   477  }
   478  func (*UnimplementedQueryServer) Allowances(ctx context.Context, req *QueryAllowancesRequest) (*QueryAllowancesResponse, error) {
   479  	return nil, status.Errorf(codes.Unimplemented, "method Allowances not implemented")
   480  }
   481  func (*UnimplementedQueryServer) AllowancesByGranter(ctx context.Context, req *QueryAllowancesByGranterRequest) (*QueryAllowancesByGranterResponse, error) {
   482  	return nil, status.Errorf(codes.Unimplemented, "method AllowancesByGranter not implemented")
   483  }
   484  
   485  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
   486  	s.RegisterService(&_Query_serviceDesc, srv)
   487  }
   488  
   489  func _Query_Allowance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   490  	in := new(QueryAllowanceRequest)
   491  	if err := dec(in); err != nil {
   492  		return nil, err
   493  	}
   494  	if interceptor == nil {
   495  		return srv.(QueryServer).Allowance(ctx, in)
   496  	}
   497  	info := &grpc.UnaryServerInfo{
   498  		Server:     srv,
   499  		FullMethod: "/cosmos.feegrant.v1beta1.Query/Allowance",
   500  	}
   501  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   502  		return srv.(QueryServer).Allowance(ctx, req.(*QueryAllowanceRequest))
   503  	}
   504  	return interceptor(ctx, in, info, handler)
   505  }
   506  
   507  func _Query_Allowances_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   508  	in := new(QueryAllowancesRequest)
   509  	if err := dec(in); err != nil {
   510  		return nil, err
   511  	}
   512  	if interceptor == nil {
   513  		return srv.(QueryServer).Allowances(ctx, in)
   514  	}
   515  	info := &grpc.UnaryServerInfo{
   516  		Server:     srv,
   517  		FullMethod: "/cosmos.feegrant.v1beta1.Query/Allowances",
   518  	}
   519  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   520  		return srv.(QueryServer).Allowances(ctx, req.(*QueryAllowancesRequest))
   521  	}
   522  	return interceptor(ctx, in, info, handler)
   523  }
   524  
   525  func _Query_AllowancesByGranter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   526  	in := new(QueryAllowancesByGranterRequest)
   527  	if err := dec(in); err != nil {
   528  		return nil, err
   529  	}
   530  	if interceptor == nil {
   531  		return srv.(QueryServer).AllowancesByGranter(ctx, in)
   532  	}
   533  	info := &grpc.UnaryServerInfo{
   534  		Server:     srv,
   535  		FullMethod: "/cosmos.feegrant.v1beta1.Query/AllowancesByGranter",
   536  	}
   537  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   538  		return srv.(QueryServer).AllowancesByGranter(ctx, req.(*QueryAllowancesByGranterRequest))
   539  	}
   540  	return interceptor(ctx, in, info, handler)
   541  }
   542  
   543  var _Query_serviceDesc = grpc.ServiceDesc{
   544  	ServiceName: "cosmos.feegrant.v1beta1.Query",
   545  	HandlerType: (*QueryServer)(nil),
   546  	Methods: []grpc.MethodDesc{
   547  		{
   548  			MethodName: "Allowance",
   549  			Handler:    _Query_Allowance_Handler,
   550  		},
   551  		{
   552  			MethodName: "Allowances",
   553  			Handler:    _Query_Allowances_Handler,
   554  		},
   555  		{
   556  			MethodName: "AllowancesByGranter",
   557  			Handler:    _Query_AllowancesByGranter_Handler,
   558  		},
   559  	},
   560  	Streams:  []grpc.StreamDesc{},
   561  	Metadata: "cosmos/feegrant/v1beta1/query.proto",
   562  }
   563  
   564  func (m *QueryAllowanceRequest) Marshal() (dAtA []byte, err error) {
   565  	size := m.Size()
   566  	dAtA = make([]byte, size)
   567  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   568  	if err != nil {
   569  		return nil, err
   570  	}
   571  	return dAtA[:n], nil
   572  }
   573  
   574  func (m *QueryAllowanceRequest) MarshalTo(dAtA []byte) (int, error) {
   575  	size := m.Size()
   576  	return m.MarshalToSizedBuffer(dAtA[:size])
   577  }
   578  
   579  func (m *QueryAllowanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   580  	i := len(dAtA)
   581  	_ = i
   582  	var l int
   583  	_ = l
   584  	if len(m.Grantee) > 0 {
   585  		i -= len(m.Grantee)
   586  		copy(dAtA[i:], m.Grantee)
   587  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee)))
   588  		i--
   589  		dAtA[i] = 0x12
   590  	}
   591  	if len(m.Granter) > 0 {
   592  		i -= len(m.Granter)
   593  		copy(dAtA[i:], m.Granter)
   594  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Granter)))
   595  		i--
   596  		dAtA[i] = 0xa
   597  	}
   598  	return len(dAtA) - i, nil
   599  }
   600  
   601  func (m *QueryAllowanceResponse) Marshal() (dAtA []byte, err error) {
   602  	size := m.Size()
   603  	dAtA = make([]byte, size)
   604  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   605  	if err != nil {
   606  		return nil, err
   607  	}
   608  	return dAtA[:n], nil
   609  }
   610  
   611  func (m *QueryAllowanceResponse) MarshalTo(dAtA []byte) (int, error) {
   612  	size := m.Size()
   613  	return m.MarshalToSizedBuffer(dAtA[:size])
   614  }
   615  
   616  func (m *QueryAllowanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   617  	i := len(dAtA)
   618  	_ = i
   619  	var l int
   620  	_ = l
   621  	if m.Allowance != nil {
   622  		{
   623  			size, err := m.Allowance.MarshalToSizedBuffer(dAtA[:i])
   624  			if err != nil {
   625  				return 0, err
   626  			}
   627  			i -= size
   628  			i = encodeVarintQuery(dAtA, i, uint64(size))
   629  		}
   630  		i--
   631  		dAtA[i] = 0xa
   632  	}
   633  	return len(dAtA) - i, nil
   634  }
   635  
   636  func (m *QueryAllowancesRequest) Marshal() (dAtA []byte, err error) {
   637  	size := m.Size()
   638  	dAtA = make([]byte, size)
   639  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   640  	if err != nil {
   641  		return nil, err
   642  	}
   643  	return dAtA[:n], nil
   644  }
   645  
   646  func (m *QueryAllowancesRequest) MarshalTo(dAtA []byte) (int, error) {
   647  	size := m.Size()
   648  	return m.MarshalToSizedBuffer(dAtA[:size])
   649  }
   650  
   651  func (m *QueryAllowancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   652  	i := len(dAtA)
   653  	_ = i
   654  	var l int
   655  	_ = l
   656  	if m.Pagination != nil {
   657  		{
   658  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
   659  			if err != nil {
   660  				return 0, err
   661  			}
   662  			i -= size
   663  			i = encodeVarintQuery(dAtA, i, uint64(size))
   664  		}
   665  		i--
   666  		dAtA[i] = 0x12
   667  	}
   668  	if len(m.Grantee) > 0 {
   669  		i -= len(m.Grantee)
   670  		copy(dAtA[i:], m.Grantee)
   671  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Grantee)))
   672  		i--
   673  		dAtA[i] = 0xa
   674  	}
   675  	return len(dAtA) - i, nil
   676  }
   677  
   678  func (m *QueryAllowancesResponse) Marshal() (dAtA []byte, err error) {
   679  	size := m.Size()
   680  	dAtA = make([]byte, size)
   681  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   682  	if err != nil {
   683  		return nil, err
   684  	}
   685  	return dAtA[:n], nil
   686  }
   687  
   688  func (m *QueryAllowancesResponse) MarshalTo(dAtA []byte) (int, error) {
   689  	size := m.Size()
   690  	return m.MarshalToSizedBuffer(dAtA[:size])
   691  }
   692  
   693  func (m *QueryAllowancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   694  	i := len(dAtA)
   695  	_ = i
   696  	var l int
   697  	_ = l
   698  	if m.Pagination != nil {
   699  		{
   700  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
   701  			if err != nil {
   702  				return 0, err
   703  			}
   704  			i -= size
   705  			i = encodeVarintQuery(dAtA, i, uint64(size))
   706  		}
   707  		i--
   708  		dAtA[i] = 0x12
   709  	}
   710  	if len(m.Allowances) > 0 {
   711  		for iNdEx := len(m.Allowances) - 1; iNdEx >= 0; iNdEx-- {
   712  			{
   713  				size, err := m.Allowances[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   714  				if err != nil {
   715  					return 0, err
   716  				}
   717  				i -= size
   718  				i = encodeVarintQuery(dAtA, i, uint64(size))
   719  			}
   720  			i--
   721  			dAtA[i] = 0xa
   722  		}
   723  	}
   724  	return len(dAtA) - i, nil
   725  }
   726  
   727  func (m *QueryAllowancesByGranterRequest) Marshal() (dAtA []byte, err error) {
   728  	size := m.Size()
   729  	dAtA = make([]byte, size)
   730  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   731  	if err != nil {
   732  		return nil, err
   733  	}
   734  	return dAtA[:n], nil
   735  }
   736  
   737  func (m *QueryAllowancesByGranterRequest) MarshalTo(dAtA []byte) (int, error) {
   738  	size := m.Size()
   739  	return m.MarshalToSizedBuffer(dAtA[:size])
   740  }
   741  
   742  func (m *QueryAllowancesByGranterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   743  	i := len(dAtA)
   744  	_ = i
   745  	var l int
   746  	_ = l
   747  	if m.Pagination != nil {
   748  		{
   749  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
   750  			if err != nil {
   751  				return 0, err
   752  			}
   753  			i -= size
   754  			i = encodeVarintQuery(dAtA, i, uint64(size))
   755  		}
   756  		i--
   757  		dAtA[i] = 0x12
   758  	}
   759  	if len(m.Granter) > 0 {
   760  		i -= len(m.Granter)
   761  		copy(dAtA[i:], m.Granter)
   762  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Granter)))
   763  		i--
   764  		dAtA[i] = 0xa
   765  	}
   766  	return len(dAtA) - i, nil
   767  }
   768  
   769  func (m *QueryAllowancesByGranterResponse) Marshal() (dAtA []byte, err error) {
   770  	size := m.Size()
   771  	dAtA = make([]byte, size)
   772  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   773  	if err != nil {
   774  		return nil, err
   775  	}
   776  	return dAtA[:n], nil
   777  }
   778  
   779  func (m *QueryAllowancesByGranterResponse) MarshalTo(dAtA []byte) (int, error) {
   780  	size := m.Size()
   781  	return m.MarshalToSizedBuffer(dAtA[:size])
   782  }
   783  
   784  func (m *QueryAllowancesByGranterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   785  	i := len(dAtA)
   786  	_ = i
   787  	var l int
   788  	_ = l
   789  	if m.Pagination != nil {
   790  		{
   791  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
   792  			if err != nil {
   793  				return 0, err
   794  			}
   795  			i -= size
   796  			i = encodeVarintQuery(dAtA, i, uint64(size))
   797  		}
   798  		i--
   799  		dAtA[i] = 0x12
   800  	}
   801  	if len(m.Allowances) > 0 {
   802  		for iNdEx := len(m.Allowances) - 1; iNdEx >= 0; iNdEx-- {
   803  			{
   804  				size, err := m.Allowances[iNdEx].MarshalToSizedBuffer(dAtA[:i])
   805  				if err != nil {
   806  					return 0, err
   807  				}
   808  				i -= size
   809  				i = encodeVarintQuery(dAtA, i, uint64(size))
   810  			}
   811  			i--
   812  			dAtA[i] = 0xa
   813  		}
   814  	}
   815  	return len(dAtA) - i, nil
   816  }
   817  
   818  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
   819  	offset -= sovQuery(v)
   820  	base := offset
   821  	for v >= 1<<7 {
   822  		dAtA[offset] = uint8(v&0x7f | 0x80)
   823  		v >>= 7
   824  		offset++
   825  	}
   826  	dAtA[offset] = uint8(v)
   827  	return base
   828  }
   829  func (m *QueryAllowanceRequest) Size() (n int) {
   830  	if m == nil {
   831  		return 0
   832  	}
   833  	var l int
   834  	_ = l
   835  	l = len(m.Granter)
   836  	if l > 0 {
   837  		n += 1 + l + sovQuery(uint64(l))
   838  	}
   839  	l = len(m.Grantee)
   840  	if l > 0 {
   841  		n += 1 + l + sovQuery(uint64(l))
   842  	}
   843  	return n
   844  }
   845  
   846  func (m *QueryAllowanceResponse) Size() (n int) {
   847  	if m == nil {
   848  		return 0
   849  	}
   850  	var l int
   851  	_ = l
   852  	if m.Allowance != nil {
   853  		l = m.Allowance.Size()
   854  		n += 1 + l + sovQuery(uint64(l))
   855  	}
   856  	return n
   857  }
   858  
   859  func (m *QueryAllowancesRequest) Size() (n int) {
   860  	if m == nil {
   861  		return 0
   862  	}
   863  	var l int
   864  	_ = l
   865  	l = len(m.Grantee)
   866  	if l > 0 {
   867  		n += 1 + l + sovQuery(uint64(l))
   868  	}
   869  	if m.Pagination != nil {
   870  		l = m.Pagination.Size()
   871  		n += 1 + l + sovQuery(uint64(l))
   872  	}
   873  	return n
   874  }
   875  
   876  func (m *QueryAllowancesResponse) Size() (n int) {
   877  	if m == nil {
   878  		return 0
   879  	}
   880  	var l int
   881  	_ = l
   882  	if len(m.Allowances) > 0 {
   883  		for _, e := range m.Allowances {
   884  			l = e.Size()
   885  			n += 1 + l + sovQuery(uint64(l))
   886  		}
   887  	}
   888  	if m.Pagination != nil {
   889  		l = m.Pagination.Size()
   890  		n += 1 + l + sovQuery(uint64(l))
   891  	}
   892  	return n
   893  }
   894  
   895  func (m *QueryAllowancesByGranterRequest) Size() (n int) {
   896  	if m == nil {
   897  		return 0
   898  	}
   899  	var l int
   900  	_ = l
   901  	l = len(m.Granter)
   902  	if l > 0 {
   903  		n += 1 + l + sovQuery(uint64(l))
   904  	}
   905  	if m.Pagination != nil {
   906  		l = m.Pagination.Size()
   907  		n += 1 + l + sovQuery(uint64(l))
   908  	}
   909  	return n
   910  }
   911  
   912  func (m *QueryAllowancesByGranterResponse) Size() (n int) {
   913  	if m == nil {
   914  		return 0
   915  	}
   916  	var l int
   917  	_ = l
   918  	if len(m.Allowances) > 0 {
   919  		for _, e := range m.Allowances {
   920  			l = e.Size()
   921  			n += 1 + l + sovQuery(uint64(l))
   922  		}
   923  	}
   924  	if m.Pagination != nil {
   925  		l = m.Pagination.Size()
   926  		n += 1 + l + sovQuery(uint64(l))
   927  	}
   928  	return n
   929  }
   930  
   931  func sovQuery(x uint64) (n int) {
   932  	return (math_bits.Len64(x|1) + 6) / 7
   933  }
   934  func sozQuery(x uint64) (n int) {
   935  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   936  }
   937  func (m *QueryAllowanceRequest) Unmarshal(dAtA []byte) error {
   938  	l := len(dAtA)
   939  	iNdEx := 0
   940  	for iNdEx < l {
   941  		preIndex := iNdEx
   942  		var wire uint64
   943  		for shift := uint(0); ; shift += 7 {
   944  			if shift >= 64 {
   945  				return ErrIntOverflowQuery
   946  			}
   947  			if iNdEx >= l {
   948  				return io.ErrUnexpectedEOF
   949  			}
   950  			b := dAtA[iNdEx]
   951  			iNdEx++
   952  			wire |= uint64(b&0x7F) << shift
   953  			if b < 0x80 {
   954  				break
   955  			}
   956  		}
   957  		fieldNum := int32(wire >> 3)
   958  		wireType := int(wire & 0x7)
   959  		if wireType == 4 {
   960  			return fmt.Errorf("proto: QueryAllowanceRequest: wiretype end group for non-group")
   961  		}
   962  		if fieldNum <= 0 {
   963  			return fmt.Errorf("proto: QueryAllowanceRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   964  		}
   965  		switch fieldNum {
   966  		case 1:
   967  			if wireType != 2 {
   968  				return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType)
   969  			}
   970  			var stringLen uint64
   971  			for shift := uint(0); ; shift += 7 {
   972  				if shift >= 64 {
   973  					return ErrIntOverflowQuery
   974  				}
   975  				if iNdEx >= l {
   976  					return io.ErrUnexpectedEOF
   977  				}
   978  				b := dAtA[iNdEx]
   979  				iNdEx++
   980  				stringLen |= uint64(b&0x7F) << shift
   981  				if b < 0x80 {
   982  					break
   983  				}
   984  			}
   985  			intStringLen := int(stringLen)
   986  			if intStringLen < 0 {
   987  				return ErrInvalidLengthQuery
   988  			}
   989  			postIndex := iNdEx + intStringLen
   990  			if postIndex < 0 {
   991  				return ErrInvalidLengthQuery
   992  			}
   993  			if postIndex > l {
   994  				return io.ErrUnexpectedEOF
   995  			}
   996  			m.Granter = string(dAtA[iNdEx:postIndex])
   997  			iNdEx = postIndex
   998  		case 2:
   999  			if wireType != 2 {
  1000  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  1001  			}
  1002  			var stringLen uint64
  1003  			for shift := uint(0); ; shift += 7 {
  1004  				if shift >= 64 {
  1005  					return ErrIntOverflowQuery
  1006  				}
  1007  				if iNdEx >= l {
  1008  					return io.ErrUnexpectedEOF
  1009  				}
  1010  				b := dAtA[iNdEx]
  1011  				iNdEx++
  1012  				stringLen |= uint64(b&0x7F) << shift
  1013  				if b < 0x80 {
  1014  					break
  1015  				}
  1016  			}
  1017  			intStringLen := int(stringLen)
  1018  			if intStringLen < 0 {
  1019  				return ErrInvalidLengthQuery
  1020  			}
  1021  			postIndex := iNdEx + intStringLen
  1022  			if postIndex < 0 {
  1023  				return ErrInvalidLengthQuery
  1024  			}
  1025  			if postIndex > l {
  1026  				return io.ErrUnexpectedEOF
  1027  			}
  1028  			m.Grantee = string(dAtA[iNdEx:postIndex])
  1029  			iNdEx = postIndex
  1030  		default:
  1031  			iNdEx = preIndex
  1032  			skippy, err := skipQuery(dAtA[iNdEx:])
  1033  			if err != nil {
  1034  				return err
  1035  			}
  1036  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1037  				return ErrInvalidLengthQuery
  1038  			}
  1039  			if (iNdEx + skippy) > l {
  1040  				return io.ErrUnexpectedEOF
  1041  			}
  1042  			iNdEx += skippy
  1043  		}
  1044  	}
  1045  
  1046  	if iNdEx > l {
  1047  		return io.ErrUnexpectedEOF
  1048  	}
  1049  	return nil
  1050  }
  1051  func (m *QueryAllowanceResponse) Unmarshal(dAtA []byte) error {
  1052  	l := len(dAtA)
  1053  	iNdEx := 0
  1054  	for iNdEx < l {
  1055  		preIndex := iNdEx
  1056  		var wire uint64
  1057  		for shift := uint(0); ; shift += 7 {
  1058  			if shift >= 64 {
  1059  				return ErrIntOverflowQuery
  1060  			}
  1061  			if iNdEx >= l {
  1062  				return io.ErrUnexpectedEOF
  1063  			}
  1064  			b := dAtA[iNdEx]
  1065  			iNdEx++
  1066  			wire |= uint64(b&0x7F) << shift
  1067  			if b < 0x80 {
  1068  				break
  1069  			}
  1070  		}
  1071  		fieldNum := int32(wire >> 3)
  1072  		wireType := int(wire & 0x7)
  1073  		if wireType == 4 {
  1074  			return fmt.Errorf("proto: QueryAllowanceResponse: wiretype end group for non-group")
  1075  		}
  1076  		if fieldNum <= 0 {
  1077  			return fmt.Errorf("proto: QueryAllowanceResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1078  		}
  1079  		switch fieldNum {
  1080  		case 1:
  1081  			if wireType != 2 {
  1082  				return fmt.Errorf("proto: wrong wireType = %d for field Allowance", wireType)
  1083  			}
  1084  			var msglen int
  1085  			for shift := uint(0); ; shift += 7 {
  1086  				if shift >= 64 {
  1087  					return ErrIntOverflowQuery
  1088  				}
  1089  				if iNdEx >= l {
  1090  					return io.ErrUnexpectedEOF
  1091  				}
  1092  				b := dAtA[iNdEx]
  1093  				iNdEx++
  1094  				msglen |= int(b&0x7F) << shift
  1095  				if b < 0x80 {
  1096  					break
  1097  				}
  1098  			}
  1099  			if msglen < 0 {
  1100  				return ErrInvalidLengthQuery
  1101  			}
  1102  			postIndex := iNdEx + msglen
  1103  			if postIndex < 0 {
  1104  				return ErrInvalidLengthQuery
  1105  			}
  1106  			if postIndex > l {
  1107  				return io.ErrUnexpectedEOF
  1108  			}
  1109  			if m.Allowance == nil {
  1110  				m.Allowance = &Grant{}
  1111  			}
  1112  			if err := m.Allowance.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1113  				return err
  1114  			}
  1115  			iNdEx = postIndex
  1116  		default:
  1117  			iNdEx = preIndex
  1118  			skippy, err := skipQuery(dAtA[iNdEx:])
  1119  			if err != nil {
  1120  				return err
  1121  			}
  1122  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1123  				return ErrInvalidLengthQuery
  1124  			}
  1125  			if (iNdEx + skippy) > l {
  1126  				return io.ErrUnexpectedEOF
  1127  			}
  1128  			iNdEx += skippy
  1129  		}
  1130  	}
  1131  
  1132  	if iNdEx > l {
  1133  		return io.ErrUnexpectedEOF
  1134  	}
  1135  	return nil
  1136  }
  1137  func (m *QueryAllowancesRequest) Unmarshal(dAtA []byte) error {
  1138  	l := len(dAtA)
  1139  	iNdEx := 0
  1140  	for iNdEx < l {
  1141  		preIndex := iNdEx
  1142  		var wire uint64
  1143  		for shift := uint(0); ; shift += 7 {
  1144  			if shift >= 64 {
  1145  				return ErrIntOverflowQuery
  1146  			}
  1147  			if iNdEx >= l {
  1148  				return io.ErrUnexpectedEOF
  1149  			}
  1150  			b := dAtA[iNdEx]
  1151  			iNdEx++
  1152  			wire |= uint64(b&0x7F) << shift
  1153  			if b < 0x80 {
  1154  				break
  1155  			}
  1156  		}
  1157  		fieldNum := int32(wire >> 3)
  1158  		wireType := int(wire & 0x7)
  1159  		if wireType == 4 {
  1160  			return fmt.Errorf("proto: QueryAllowancesRequest: wiretype end group for non-group")
  1161  		}
  1162  		if fieldNum <= 0 {
  1163  			return fmt.Errorf("proto: QueryAllowancesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1164  		}
  1165  		switch fieldNum {
  1166  		case 1:
  1167  			if wireType != 2 {
  1168  				return fmt.Errorf("proto: wrong wireType = %d for field Grantee", wireType)
  1169  			}
  1170  			var stringLen uint64
  1171  			for shift := uint(0); ; shift += 7 {
  1172  				if shift >= 64 {
  1173  					return ErrIntOverflowQuery
  1174  				}
  1175  				if iNdEx >= l {
  1176  					return io.ErrUnexpectedEOF
  1177  				}
  1178  				b := dAtA[iNdEx]
  1179  				iNdEx++
  1180  				stringLen |= uint64(b&0x7F) << shift
  1181  				if b < 0x80 {
  1182  					break
  1183  				}
  1184  			}
  1185  			intStringLen := int(stringLen)
  1186  			if intStringLen < 0 {
  1187  				return ErrInvalidLengthQuery
  1188  			}
  1189  			postIndex := iNdEx + intStringLen
  1190  			if postIndex < 0 {
  1191  				return ErrInvalidLengthQuery
  1192  			}
  1193  			if postIndex > l {
  1194  				return io.ErrUnexpectedEOF
  1195  			}
  1196  			m.Grantee = string(dAtA[iNdEx:postIndex])
  1197  			iNdEx = postIndex
  1198  		case 2:
  1199  			if wireType != 2 {
  1200  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  1201  			}
  1202  			var msglen int
  1203  			for shift := uint(0); ; shift += 7 {
  1204  				if shift >= 64 {
  1205  					return ErrIntOverflowQuery
  1206  				}
  1207  				if iNdEx >= l {
  1208  					return io.ErrUnexpectedEOF
  1209  				}
  1210  				b := dAtA[iNdEx]
  1211  				iNdEx++
  1212  				msglen |= int(b&0x7F) << shift
  1213  				if b < 0x80 {
  1214  					break
  1215  				}
  1216  			}
  1217  			if msglen < 0 {
  1218  				return ErrInvalidLengthQuery
  1219  			}
  1220  			postIndex := iNdEx + msglen
  1221  			if postIndex < 0 {
  1222  				return ErrInvalidLengthQuery
  1223  			}
  1224  			if postIndex > l {
  1225  				return io.ErrUnexpectedEOF
  1226  			}
  1227  			if m.Pagination == nil {
  1228  				m.Pagination = &query.PageRequest{}
  1229  			}
  1230  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1231  				return err
  1232  			}
  1233  			iNdEx = postIndex
  1234  		default:
  1235  			iNdEx = preIndex
  1236  			skippy, err := skipQuery(dAtA[iNdEx:])
  1237  			if err != nil {
  1238  				return err
  1239  			}
  1240  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1241  				return ErrInvalidLengthQuery
  1242  			}
  1243  			if (iNdEx + skippy) > l {
  1244  				return io.ErrUnexpectedEOF
  1245  			}
  1246  			iNdEx += skippy
  1247  		}
  1248  	}
  1249  
  1250  	if iNdEx > l {
  1251  		return io.ErrUnexpectedEOF
  1252  	}
  1253  	return nil
  1254  }
  1255  func (m *QueryAllowancesResponse) Unmarshal(dAtA []byte) error {
  1256  	l := len(dAtA)
  1257  	iNdEx := 0
  1258  	for iNdEx < l {
  1259  		preIndex := iNdEx
  1260  		var wire uint64
  1261  		for shift := uint(0); ; shift += 7 {
  1262  			if shift >= 64 {
  1263  				return ErrIntOverflowQuery
  1264  			}
  1265  			if iNdEx >= l {
  1266  				return io.ErrUnexpectedEOF
  1267  			}
  1268  			b := dAtA[iNdEx]
  1269  			iNdEx++
  1270  			wire |= uint64(b&0x7F) << shift
  1271  			if b < 0x80 {
  1272  				break
  1273  			}
  1274  		}
  1275  		fieldNum := int32(wire >> 3)
  1276  		wireType := int(wire & 0x7)
  1277  		if wireType == 4 {
  1278  			return fmt.Errorf("proto: QueryAllowancesResponse: wiretype end group for non-group")
  1279  		}
  1280  		if fieldNum <= 0 {
  1281  			return fmt.Errorf("proto: QueryAllowancesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1282  		}
  1283  		switch fieldNum {
  1284  		case 1:
  1285  			if wireType != 2 {
  1286  				return fmt.Errorf("proto: wrong wireType = %d for field Allowances", wireType)
  1287  			}
  1288  			var msglen int
  1289  			for shift := uint(0); ; shift += 7 {
  1290  				if shift >= 64 {
  1291  					return ErrIntOverflowQuery
  1292  				}
  1293  				if iNdEx >= l {
  1294  					return io.ErrUnexpectedEOF
  1295  				}
  1296  				b := dAtA[iNdEx]
  1297  				iNdEx++
  1298  				msglen |= int(b&0x7F) << shift
  1299  				if b < 0x80 {
  1300  					break
  1301  				}
  1302  			}
  1303  			if msglen < 0 {
  1304  				return ErrInvalidLengthQuery
  1305  			}
  1306  			postIndex := iNdEx + msglen
  1307  			if postIndex < 0 {
  1308  				return ErrInvalidLengthQuery
  1309  			}
  1310  			if postIndex > l {
  1311  				return io.ErrUnexpectedEOF
  1312  			}
  1313  			m.Allowances = append(m.Allowances, &Grant{})
  1314  			if err := m.Allowances[len(m.Allowances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1315  				return err
  1316  			}
  1317  			iNdEx = postIndex
  1318  		case 2:
  1319  			if wireType != 2 {
  1320  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  1321  			}
  1322  			var msglen int
  1323  			for shift := uint(0); ; shift += 7 {
  1324  				if shift >= 64 {
  1325  					return ErrIntOverflowQuery
  1326  				}
  1327  				if iNdEx >= l {
  1328  					return io.ErrUnexpectedEOF
  1329  				}
  1330  				b := dAtA[iNdEx]
  1331  				iNdEx++
  1332  				msglen |= int(b&0x7F) << shift
  1333  				if b < 0x80 {
  1334  					break
  1335  				}
  1336  			}
  1337  			if msglen < 0 {
  1338  				return ErrInvalidLengthQuery
  1339  			}
  1340  			postIndex := iNdEx + msglen
  1341  			if postIndex < 0 {
  1342  				return ErrInvalidLengthQuery
  1343  			}
  1344  			if postIndex > l {
  1345  				return io.ErrUnexpectedEOF
  1346  			}
  1347  			if m.Pagination == nil {
  1348  				m.Pagination = &query.PageResponse{}
  1349  			}
  1350  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1351  				return err
  1352  			}
  1353  			iNdEx = postIndex
  1354  		default:
  1355  			iNdEx = preIndex
  1356  			skippy, err := skipQuery(dAtA[iNdEx:])
  1357  			if err != nil {
  1358  				return err
  1359  			}
  1360  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1361  				return ErrInvalidLengthQuery
  1362  			}
  1363  			if (iNdEx + skippy) > l {
  1364  				return io.ErrUnexpectedEOF
  1365  			}
  1366  			iNdEx += skippy
  1367  		}
  1368  	}
  1369  
  1370  	if iNdEx > l {
  1371  		return io.ErrUnexpectedEOF
  1372  	}
  1373  	return nil
  1374  }
  1375  func (m *QueryAllowancesByGranterRequest) Unmarshal(dAtA []byte) error {
  1376  	l := len(dAtA)
  1377  	iNdEx := 0
  1378  	for iNdEx < l {
  1379  		preIndex := iNdEx
  1380  		var wire uint64
  1381  		for shift := uint(0); ; shift += 7 {
  1382  			if shift >= 64 {
  1383  				return ErrIntOverflowQuery
  1384  			}
  1385  			if iNdEx >= l {
  1386  				return io.ErrUnexpectedEOF
  1387  			}
  1388  			b := dAtA[iNdEx]
  1389  			iNdEx++
  1390  			wire |= uint64(b&0x7F) << shift
  1391  			if b < 0x80 {
  1392  				break
  1393  			}
  1394  		}
  1395  		fieldNum := int32(wire >> 3)
  1396  		wireType := int(wire & 0x7)
  1397  		if wireType == 4 {
  1398  			return fmt.Errorf("proto: QueryAllowancesByGranterRequest: wiretype end group for non-group")
  1399  		}
  1400  		if fieldNum <= 0 {
  1401  			return fmt.Errorf("proto: QueryAllowancesByGranterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1402  		}
  1403  		switch fieldNum {
  1404  		case 1:
  1405  			if wireType != 2 {
  1406  				return fmt.Errorf("proto: wrong wireType = %d for field Granter", wireType)
  1407  			}
  1408  			var stringLen uint64
  1409  			for shift := uint(0); ; shift += 7 {
  1410  				if shift >= 64 {
  1411  					return ErrIntOverflowQuery
  1412  				}
  1413  				if iNdEx >= l {
  1414  					return io.ErrUnexpectedEOF
  1415  				}
  1416  				b := dAtA[iNdEx]
  1417  				iNdEx++
  1418  				stringLen |= uint64(b&0x7F) << shift
  1419  				if b < 0x80 {
  1420  					break
  1421  				}
  1422  			}
  1423  			intStringLen := int(stringLen)
  1424  			if intStringLen < 0 {
  1425  				return ErrInvalidLengthQuery
  1426  			}
  1427  			postIndex := iNdEx + intStringLen
  1428  			if postIndex < 0 {
  1429  				return ErrInvalidLengthQuery
  1430  			}
  1431  			if postIndex > l {
  1432  				return io.ErrUnexpectedEOF
  1433  			}
  1434  			m.Granter = string(dAtA[iNdEx:postIndex])
  1435  			iNdEx = postIndex
  1436  		case 2:
  1437  			if wireType != 2 {
  1438  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  1439  			}
  1440  			var msglen int
  1441  			for shift := uint(0); ; shift += 7 {
  1442  				if shift >= 64 {
  1443  					return ErrIntOverflowQuery
  1444  				}
  1445  				if iNdEx >= l {
  1446  					return io.ErrUnexpectedEOF
  1447  				}
  1448  				b := dAtA[iNdEx]
  1449  				iNdEx++
  1450  				msglen |= int(b&0x7F) << shift
  1451  				if b < 0x80 {
  1452  					break
  1453  				}
  1454  			}
  1455  			if msglen < 0 {
  1456  				return ErrInvalidLengthQuery
  1457  			}
  1458  			postIndex := iNdEx + msglen
  1459  			if postIndex < 0 {
  1460  				return ErrInvalidLengthQuery
  1461  			}
  1462  			if postIndex > l {
  1463  				return io.ErrUnexpectedEOF
  1464  			}
  1465  			if m.Pagination == nil {
  1466  				m.Pagination = &query.PageRequest{}
  1467  			}
  1468  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1469  				return err
  1470  			}
  1471  			iNdEx = postIndex
  1472  		default:
  1473  			iNdEx = preIndex
  1474  			skippy, err := skipQuery(dAtA[iNdEx:])
  1475  			if err != nil {
  1476  				return err
  1477  			}
  1478  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1479  				return ErrInvalidLengthQuery
  1480  			}
  1481  			if (iNdEx + skippy) > l {
  1482  				return io.ErrUnexpectedEOF
  1483  			}
  1484  			iNdEx += skippy
  1485  		}
  1486  	}
  1487  
  1488  	if iNdEx > l {
  1489  		return io.ErrUnexpectedEOF
  1490  	}
  1491  	return nil
  1492  }
  1493  func (m *QueryAllowancesByGranterResponse) Unmarshal(dAtA []byte) error {
  1494  	l := len(dAtA)
  1495  	iNdEx := 0
  1496  	for iNdEx < l {
  1497  		preIndex := iNdEx
  1498  		var wire uint64
  1499  		for shift := uint(0); ; shift += 7 {
  1500  			if shift >= 64 {
  1501  				return ErrIntOverflowQuery
  1502  			}
  1503  			if iNdEx >= l {
  1504  				return io.ErrUnexpectedEOF
  1505  			}
  1506  			b := dAtA[iNdEx]
  1507  			iNdEx++
  1508  			wire |= uint64(b&0x7F) << shift
  1509  			if b < 0x80 {
  1510  				break
  1511  			}
  1512  		}
  1513  		fieldNum := int32(wire >> 3)
  1514  		wireType := int(wire & 0x7)
  1515  		if wireType == 4 {
  1516  			return fmt.Errorf("proto: QueryAllowancesByGranterResponse: wiretype end group for non-group")
  1517  		}
  1518  		if fieldNum <= 0 {
  1519  			return fmt.Errorf("proto: QueryAllowancesByGranterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1520  		}
  1521  		switch fieldNum {
  1522  		case 1:
  1523  			if wireType != 2 {
  1524  				return fmt.Errorf("proto: wrong wireType = %d for field Allowances", wireType)
  1525  			}
  1526  			var msglen int
  1527  			for shift := uint(0); ; shift += 7 {
  1528  				if shift >= 64 {
  1529  					return ErrIntOverflowQuery
  1530  				}
  1531  				if iNdEx >= l {
  1532  					return io.ErrUnexpectedEOF
  1533  				}
  1534  				b := dAtA[iNdEx]
  1535  				iNdEx++
  1536  				msglen |= int(b&0x7F) << shift
  1537  				if b < 0x80 {
  1538  					break
  1539  				}
  1540  			}
  1541  			if msglen < 0 {
  1542  				return ErrInvalidLengthQuery
  1543  			}
  1544  			postIndex := iNdEx + msglen
  1545  			if postIndex < 0 {
  1546  				return ErrInvalidLengthQuery
  1547  			}
  1548  			if postIndex > l {
  1549  				return io.ErrUnexpectedEOF
  1550  			}
  1551  			m.Allowances = append(m.Allowances, &Grant{})
  1552  			if err := m.Allowances[len(m.Allowances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1553  				return err
  1554  			}
  1555  			iNdEx = postIndex
  1556  		case 2:
  1557  			if wireType != 2 {
  1558  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  1559  			}
  1560  			var msglen int
  1561  			for shift := uint(0); ; shift += 7 {
  1562  				if shift >= 64 {
  1563  					return ErrIntOverflowQuery
  1564  				}
  1565  				if iNdEx >= l {
  1566  					return io.ErrUnexpectedEOF
  1567  				}
  1568  				b := dAtA[iNdEx]
  1569  				iNdEx++
  1570  				msglen |= int(b&0x7F) << shift
  1571  				if b < 0x80 {
  1572  					break
  1573  				}
  1574  			}
  1575  			if msglen < 0 {
  1576  				return ErrInvalidLengthQuery
  1577  			}
  1578  			postIndex := iNdEx + msglen
  1579  			if postIndex < 0 {
  1580  				return ErrInvalidLengthQuery
  1581  			}
  1582  			if postIndex > l {
  1583  				return io.ErrUnexpectedEOF
  1584  			}
  1585  			if m.Pagination == nil {
  1586  				m.Pagination = &query.PageResponse{}
  1587  			}
  1588  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1589  				return err
  1590  			}
  1591  			iNdEx = postIndex
  1592  		default:
  1593  			iNdEx = preIndex
  1594  			skippy, err := skipQuery(dAtA[iNdEx:])
  1595  			if err != nil {
  1596  				return err
  1597  			}
  1598  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  1599  				return ErrInvalidLengthQuery
  1600  			}
  1601  			if (iNdEx + skippy) > l {
  1602  				return io.ErrUnexpectedEOF
  1603  			}
  1604  			iNdEx += skippy
  1605  		}
  1606  	}
  1607  
  1608  	if iNdEx > l {
  1609  		return io.ErrUnexpectedEOF
  1610  	}
  1611  	return nil
  1612  }
  1613  func skipQuery(dAtA []byte) (n int, err error) {
  1614  	l := len(dAtA)
  1615  	iNdEx := 0
  1616  	depth := 0
  1617  	for iNdEx < l {
  1618  		var wire uint64
  1619  		for shift := uint(0); ; shift += 7 {
  1620  			if shift >= 64 {
  1621  				return 0, ErrIntOverflowQuery
  1622  			}
  1623  			if iNdEx >= l {
  1624  				return 0, io.ErrUnexpectedEOF
  1625  			}
  1626  			b := dAtA[iNdEx]
  1627  			iNdEx++
  1628  			wire |= (uint64(b) & 0x7F) << shift
  1629  			if b < 0x80 {
  1630  				break
  1631  			}
  1632  		}
  1633  		wireType := int(wire & 0x7)
  1634  		switch wireType {
  1635  		case 0:
  1636  			for shift := uint(0); ; shift += 7 {
  1637  				if shift >= 64 {
  1638  					return 0, ErrIntOverflowQuery
  1639  				}
  1640  				if iNdEx >= l {
  1641  					return 0, io.ErrUnexpectedEOF
  1642  				}
  1643  				iNdEx++
  1644  				if dAtA[iNdEx-1] < 0x80 {
  1645  					break
  1646  				}
  1647  			}
  1648  		case 1:
  1649  			iNdEx += 8
  1650  		case 2:
  1651  			var length int
  1652  			for shift := uint(0); ; shift += 7 {
  1653  				if shift >= 64 {
  1654  					return 0, ErrIntOverflowQuery
  1655  				}
  1656  				if iNdEx >= l {
  1657  					return 0, io.ErrUnexpectedEOF
  1658  				}
  1659  				b := dAtA[iNdEx]
  1660  				iNdEx++
  1661  				length |= (int(b) & 0x7F) << shift
  1662  				if b < 0x80 {
  1663  					break
  1664  				}
  1665  			}
  1666  			if length < 0 {
  1667  				return 0, ErrInvalidLengthQuery
  1668  			}
  1669  			iNdEx += length
  1670  		case 3:
  1671  			depth++
  1672  		case 4:
  1673  			if depth == 0 {
  1674  				return 0, ErrUnexpectedEndOfGroupQuery
  1675  			}
  1676  			depth--
  1677  		case 5:
  1678  			iNdEx += 4
  1679  		default:
  1680  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1681  		}
  1682  		if iNdEx < 0 {
  1683  			return 0, ErrInvalidLengthQuery
  1684  		}
  1685  		if depth == 0 {
  1686  			return iNdEx, nil
  1687  		}
  1688  	}
  1689  	return 0, io.ErrUnexpectedEOF
  1690  }
  1691  
  1692  var (
  1693  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  1694  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  1695  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  1696  )