github.com/cosmos/cosmos-sdk@v0.50.10/x/group/query.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: cosmos/group/v1/query.proto
     3  
     4  package group
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/cosmos/cosmos-proto"
    10  	query "github.com/cosmos/cosmos-sdk/types/query"
    11  	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
    12  	_ "github.com/cosmos/gogoproto/gogoproto"
    13  	grpc1 "github.com/cosmos/gogoproto/grpc"
    14  	proto "github.com/cosmos/gogoproto/proto"
    15  	_ "google.golang.org/genproto/googleapis/api/annotations"
    16  	grpc "google.golang.org/grpc"
    17  	codes "google.golang.org/grpc/codes"
    18  	status "google.golang.org/grpc/status"
    19  	io "io"
    20  	math "math"
    21  	math_bits "math/bits"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  // QueryGroupInfoRequest is the Query/GroupInfo request type.
    36  type QueryGroupInfoRequest struct {
    37  	// group_id is the unique ID of the group.
    38  	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
    39  }
    40  
    41  func (m *QueryGroupInfoRequest) Reset()         { *m = QueryGroupInfoRequest{} }
    42  func (m *QueryGroupInfoRequest) String() string { return proto.CompactTextString(m) }
    43  func (*QueryGroupInfoRequest) ProtoMessage()    {}
    44  func (*QueryGroupInfoRequest) Descriptor() ([]byte, []int) {
    45  	return fileDescriptor_0fcf9f1d74302290, []int{0}
    46  }
    47  func (m *QueryGroupInfoRequest) XXX_Unmarshal(b []byte) error {
    48  	return m.Unmarshal(b)
    49  }
    50  func (m *QueryGroupInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    51  	if deterministic {
    52  		return xxx_messageInfo_QueryGroupInfoRequest.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 *QueryGroupInfoRequest) XXX_Merge(src proto.Message) {
    63  	xxx_messageInfo_QueryGroupInfoRequest.Merge(m, src)
    64  }
    65  func (m *QueryGroupInfoRequest) XXX_Size() int {
    66  	return m.Size()
    67  }
    68  func (m *QueryGroupInfoRequest) XXX_DiscardUnknown() {
    69  	xxx_messageInfo_QueryGroupInfoRequest.DiscardUnknown(m)
    70  }
    71  
    72  var xxx_messageInfo_QueryGroupInfoRequest proto.InternalMessageInfo
    73  
    74  func (m *QueryGroupInfoRequest) GetGroupId() uint64 {
    75  	if m != nil {
    76  		return m.GroupId
    77  	}
    78  	return 0
    79  }
    80  
    81  // QueryGroupInfoResponse is the Query/GroupInfo response type.
    82  type QueryGroupInfoResponse struct {
    83  	// info is the GroupInfo of the group.
    84  	Info *GroupInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
    85  }
    86  
    87  func (m *QueryGroupInfoResponse) Reset()         { *m = QueryGroupInfoResponse{} }
    88  func (m *QueryGroupInfoResponse) String() string { return proto.CompactTextString(m) }
    89  func (*QueryGroupInfoResponse) ProtoMessage()    {}
    90  func (*QueryGroupInfoResponse) Descriptor() ([]byte, []int) {
    91  	return fileDescriptor_0fcf9f1d74302290, []int{1}
    92  }
    93  func (m *QueryGroupInfoResponse) XXX_Unmarshal(b []byte) error {
    94  	return m.Unmarshal(b)
    95  }
    96  func (m *QueryGroupInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    97  	if deterministic {
    98  		return xxx_messageInfo_QueryGroupInfoResponse.Marshal(b, m, deterministic)
    99  	} else {
   100  		b = b[:cap(b)]
   101  		n, err := m.MarshalToSizedBuffer(b)
   102  		if err != nil {
   103  			return nil, err
   104  		}
   105  		return b[:n], nil
   106  	}
   107  }
   108  func (m *QueryGroupInfoResponse) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_QueryGroupInfoResponse.Merge(m, src)
   110  }
   111  func (m *QueryGroupInfoResponse) XXX_Size() int {
   112  	return m.Size()
   113  }
   114  func (m *QueryGroupInfoResponse) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_QueryGroupInfoResponse.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_QueryGroupInfoResponse proto.InternalMessageInfo
   119  
   120  func (m *QueryGroupInfoResponse) GetInfo() *GroupInfo {
   121  	if m != nil {
   122  		return m.Info
   123  	}
   124  	return nil
   125  }
   126  
   127  // QueryGroupPolicyInfoRequest is the Query/GroupPolicyInfo request type.
   128  type QueryGroupPolicyInfoRequest struct {
   129  	// address is the account address of the group policy.
   130  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   131  }
   132  
   133  func (m *QueryGroupPolicyInfoRequest) Reset()         { *m = QueryGroupPolicyInfoRequest{} }
   134  func (m *QueryGroupPolicyInfoRequest) String() string { return proto.CompactTextString(m) }
   135  func (*QueryGroupPolicyInfoRequest) ProtoMessage()    {}
   136  func (*QueryGroupPolicyInfoRequest) Descriptor() ([]byte, []int) {
   137  	return fileDescriptor_0fcf9f1d74302290, []int{2}
   138  }
   139  func (m *QueryGroupPolicyInfoRequest) XXX_Unmarshal(b []byte) error {
   140  	return m.Unmarshal(b)
   141  }
   142  func (m *QueryGroupPolicyInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   143  	if deterministic {
   144  		return xxx_messageInfo_QueryGroupPolicyInfoRequest.Marshal(b, m, deterministic)
   145  	} else {
   146  		b = b[:cap(b)]
   147  		n, err := m.MarshalToSizedBuffer(b)
   148  		if err != nil {
   149  			return nil, err
   150  		}
   151  		return b[:n], nil
   152  	}
   153  }
   154  func (m *QueryGroupPolicyInfoRequest) XXX_Merge(src proto.Message) {
   155  	xxx_messageInfo_QueryGroupPolicyInfoRequest.Merge(m, src)
   156  }
   157  func (m *QueryGroupPolicyInfoRequest) XXX_Size() int {
   158  	return m.Size()
   159  }
   160  func (m *QueryGroupPolicyInfoRequest) XXX_DiscardUnknown() {
   161  	xxx_messageInfo_QueryGroupPolicyInfoRequest.DiscardUnknown(m)
   162  }
   163  
   164  var xxx_messageInfo_QueryGroupPolicyInfoRequest proto.InternalMessageInfo
   165  
   166  func (m *QueryGroupPolicyInfoRequest) GetAddress() string {
   167  	if m != nil {
   168  		return m.Address
   169  	}
   170  	return ""
   171  }
   172  
   173  // QueryGroupPolicyInfoResponse is the Query/GroupPolicyInfo response type.
   174  type QueryGroupPolicyInfoResponse struct {
   175  	// info is the GroupPolicyInfo of the group policy.
   176  	Info *GroupPolicyInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
   177  }
   178  
   179  func (m *QueryGroupPolicyInfoResponse) Reset()         { *m = QueryGroupPolicyInfoResponse{} }
   180  func (m *QueryGroupPolicyInfoResponse) String() string { return proto.CompactTextString(m) }
   181  func (*QueryGroupPolicyInfoResponse) ProtoMessage()    {}
   182  func (*QueryGroupPolicyInfoResponse) Descriptor() ([]byte, []int) {
   183  	return fileDescriptor_0fcf9f1d74302290, []int{3}
   184  }
   185  func (m *QueryGroupPolicyInfoResponse) XXX_Unmarshal(b []byte) error {
   186  	return m.Unmarshal(b)
   187  }
   188  func (m *QueryGroupPolicyInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   189  	if deterministic {
   190  		return xxx_messageInfo_QueryGroupPolicyInfoResponse.Marshal(b, m, deterministic)
   191  	} else {
   192  		b = b[:cap(b)]
   193  		n, err := m.MarshalToSizedBuffer(b)
   194  		if err != nil {
   195  			return nil, err
   196  		}
   197  		return b[:n], nil
   198  	}
   199  }
   200  func (m *QueryGroupPolicyInfoResponse) XXX_Merge(src proto.Message) {
   201  	xxx_messageInfo_QueryGroupPolicyInfoResponse.Merge(m, src)
   202  }
   203  func (m *QueryGroupPolicyInfoResponse) XXX_Size() int {
   204  	return m.Size()
   205  }
   206  func (m *QueryGroupPolicyInfoResponse) XXX_DiscardUnknown() {
   207  	xxx_messageInfo_QueryGroupPolicyInfoResponse.DiscardUnknown(m)
   208  }
   209  
   210  var xxx_messageInfo_QueryGroupPolicyInfoResponse proto.InternalMessageInfo
   211  
   212  func (m *QueryGroupPolicyInfoResponse) GetInfo() *GroupPolicyInfo {
   213  	if m != nil {
   214  		return m.Info
   215  	}
   216  	return nil
   217  }
   218  
   219  // QueryGroupMembersRequest is the Query/GroupMembers request type.
   220  type QueryGroupMembersRequest struct {
   221  	// group_id is the unique ID of the group.
   222  	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
   223  	// pagination defines an optional pagination for the request.
   224  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   225  }
   226  
   227  func (m *QueryGroupMembersRequest) Reset()         { *m = QueryGroupMembersRequest{} }
   228  func (m *QueryGroupMembersRequest) String() string { return proto.CompactTextString(m) }
   229  func (*QueryGroupMembersRequest) ProtoMessage()    {}
   230  func (*QueryGroupMembersRequest) Descriptor() ([]byte, []int) {
   231  	return fileDescriptor_0fcf9f1d74302290, []int{4}
   232  }
   233  func (m *QueryGroupMembersRequest) XXX_Unmarshal(b []byte) error {
   234  	return m.Unmarshal(b)
   235  }
   236  func (m *QueryGroupMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   237  	if deterministic {
   238  		return xxx_messageInfo_QueryGroupMembersRequest.Marshal(b, m, deterministic)
   239  	} else {
   240  		b = b[:cap(b)]
   241  		n, err := m.MarshalToSizedBuffer(b)
   242  		if err != nil {
   243  			return nil, err
   244  		}
   245  		return b[:n], nil
   246  	}
   247  }
   248  func (m *QueryGroupMembersRequest) XXX_Merge(src proto.Message) {
   249  	xxx_messageInfo_QueryGroupMembersRequest.Merge(m, src)
   250  }
   251  func (m *QueryGroupMembersRequest) XXX_Size() int {
   252  	return m.Size()
   253  }
   254  func (m *QueryGroupMembersRequest) XXX_DiscardUnknown() {
   255  	xxx_messageInfo_QueryGroupMembersRequest.DiscardUnknown(m)
   256  }
   257  
   258  var xxx_messageInfo_QueryGroupMembersRequest proto.InternalMessageInfo
   259  
   260  func (m *QueryGroupMembersRequest) GetGroupId() uint64 {
   261  	if m != nil {
   262  		return m.GroupId
   263  	}
   264  	return 0
   265  }
   266  
   267  func (m *QueryGroupMembersRequest) GetPagination() *query.PageRequest {
   268  	if m != nil {
   269  		return m.Pagination
   270  	}
   271  	return nil
   272  }
   273  
   274  // QueryGroupMembersResponse is the Query/GroupMembersResponse response type.
   275  type QueryGroupMembersResponse struct {
   276  	// members are the members of the group with given group_id.
   277  	Members []*GroupMember `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
   278  	// pagination defines the pagination in the response.
   279  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   280  }
   281  
   282  func (m *QueryGroupMembersResponse) Reset()         { *m = QueryGroupMembersResponse{} }
   283  func (m *QueryGroupMembersResponse) String() string { return proto.CompactTextString(m) }
   284  func (*QueryGroupMembersResponse) ProtoMessage()    {}
   285  func (*QueryGroupMembersResponse) Descriptor() ([]byte, []int) {
   286  	return fileDescriptor_0fcf9f1d74302290, []int{5}
   287  }
   288  func (m *QueryGroupMembersResponse) XXX_Unmarshal(b []byte) error {
   289  	return m.Unmarshal(b)
   290  }
   291  func (m *QueryGroupMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   292  	if deterministic {
   293  		return xxx_messageInfo_QueryGroupMembersResponse.Marshal(b, m, deterministic)
   294  	} else {
   295  		b = b[:cap(b)]
   296  		n, err := m.MarshalToSizedBuffer(b)
   297  		if err != nil {
   298  			return nil, err
   299  		}
   300  		return b[:n], nil
   301  	}
   302  }
   303  func (m *QueryGroupMembersResponse) XXX_Merge(src proto.Message) {
   304  	xxx_messageInfo_QueryGroupMembersResponse.Merge(m, src)
   305  }
   306  func (m *QueryGroupMembersResponse) XXX_Size() int {
   307  	return m.Size()
   308  }
   309  func (m *QueryGroupMembersResponse) XXX_DiscardUnknown() {
   310  	xxx_messageInfo_QueryGroupMembersResponse.DiscardUnknown(m)
   311  }
   312  
   313  var xxx_messageInfo_QueryGroupMembersResponse proto.InternalMessageInfo
   314  
   315  func (m *QueryGroupMembersResponse) GetMembers() []*GroupMember {
   316  	if m != nil {
   317  		return m.Members
   318  	}
   319  	return nil
   320  }
   321  
   322  func (m *QueryGroupMembersResponse) GetPagination() *query.PageResponse {
   323  	if m != nil {
   324  		return m.Pagination
   325  	}
   326  	return nil
   327  }
   328  
   329  // QueryGroupsByAdminRequest is the Query/GroupsByAdmin request type.
   330  type QueryGroupsByAdminRequest struct {
   331  	// admin is the account address of a group's admin.
   332  	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
   333  	// pagination defines an optional pagination for the request.
   334  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   335  }
   336  
   337  func (m *QueryGroupsByAdminRequest) Reset()         { *m = QueryGroupsByAdminRequest{} }
   338  func (m *QueryGroupsByAdminRequest) String() string { return proto.CompactTextString(m) }
   339  func (*QueryGroupsByAdminRequest) ProtoMessage()    {}
   340  func (*QueryGroupsByAdminRequest) Descriptor() ([]byte, []int) {
   341  	return fileDescriptor_0fcf9f1d74302290, []int{6}
   342  }
   343  func (m *QueryGroupsByAdminRequest) XXX_Unmarshal(b []byte) error {
   344  	return m.Unmarshal(b)
   345  }
   346  func (m *QueryGroupsByAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   347  	if deterministic {
   348  		return xxx_messageInfo_QueryGroupsByAdminRequest.Marshal(b, m, deterministic)
   349  	} else {
   350  		b = b[:cap(b)]
   351  		n, err := m.MarshalToSizedBuffer(b)
   352  		if err != nil {
   353  			return nil, err
   354  		}
   355  		return b[:n], nil
   356  	}
   357  }
   358  func (m *QueryGroupsByAdminRequest) XXX_Merge(src proto.Message) {
   359  	xxx_messageInfo_QueryGroupsByAdminRequest.Merge(m, src)
   360  }
   361  func (m *QueryGroupsByAdminRequest) XXX_Size() int {
   362  	return m.Size()
   363  }
   364  func (m *QueryGroupsByAdminRequest) XXX_DiscardUnknown() {
   365  	xxx_messageInfo_QueryGroupsByAdminRequest.DiscardUnknown(m)
   366  }
   367  
   368  var xxx_messageInfo_QueryGroupsByAdminRequest proto.InternalMessageInfo
   369  
   370  func (m *QueryGroupsByAdminRequest) GetAdmin() string {
   371  	if m != nil {
   372  		return m.Admin
   373  	}
   374  	return ""
   375  }
   376  
   377  func (m *QueryGroupsByAdminRequest) GetPagination() *query.PageRequest {
   378  	if m != nil {
   379  		return m.Pagination
   380  	}
   381  	return nil
   382  }
   383  
   384  // QueryGroupsByAdminResponse is the Query/GroupsByAdminResponse response type.
   385  type QueryGroupsByAdminResponse struct {
   386  	// groups are the groups info with the provided admin.
   387  	Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
   388  	// pagination defines the pagination in the response.
   389  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   390  }
   391  
   392  func (m *QueryGroupsByAdminResponse) Reset()         { *m = QueryGroupsByAdminResponse{} }
   393  func (m *QueryGroupsByAdminResponse) String() string { return proto.CompactTextString(m) }
   394  func (*QueryGroupsByAdminResponse) ProtoMessage()    {}
   395  func (*QueryGroupsByAdminResponse) Descriptor() ([]byte, []int) {
   396  	return fileDescriptor_0fcf9f1d74302290, []int{7}
   397  }
   398  func (m *QueryGroupsByAdminResponse) XXX_Unmarshal(b []byte) error {
   399  	return m.Unmarshal(b)
   400  }
   401  func (m *QueryGroupsByAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   402  	if deterministic {
   403  		return xxx_messageInfo_QueryGroupsByAdminResponse.Marshal(b, m, deterministic)
   404  	} else {
   405  		b = b[:cap(b)]
   406  		n, err := m.MarshalToSizedBuffer(b)
   407  		if err != nil {
   408  			return nil, err
   409  		}
   410  		return b[:n], nil
   411  	}
   412  }
   413  func (m *QueryGroupsByAdminResponse) XXX_Merge(src proto.Message) {
   414  	xxx_messageInfo_QueryGroupsByAdminResponse.Merge(m, src)
   415  }
   416  func (m *QueryGroupsByAdminResponse) XXX_Size() int {
   417  	return m.Size()
   418  }
   419  func (m *QueryGroupsByAdminResponse) XXX_DiscardUnknown() {
   420  	xxx_messageInfo_QueryGroupsByAdminResponse.DiscardUnknown(m)
   421  }
   422  
   423  var xxx_messageInfo_QueryGroupsByAdminResponse proto.InternalMessageInfo
   424  
   425  func (m *QueryGroupsByAdminResponse) GetGroups() []*GroupInfo {
   426  	if m != nil {
   427  		return m.Groups
   428  	}
   429  	return nil
   430  }
   431  
   432  func (m *QueryGroupsByAdminResponse) GetPagination() *query.PageResponse {
   433  	if m != nil {
   434  		return m.Pagination
   435  	}
   436  	return nil
   437  }
   438  
   439  // QueryGroupPoliciesByGroupRequest is the Query/GroupPoliciesByGroup request type.
   440  type QueryGroupPoliciesByGroupRequest struct {
   441  	// group_id is the unique ID of the group policy's group.
   442  	GroupId uint64 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
   443  	// pagination defines an optional pagination for the request.
   444  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   445  }
   446  
   447  func (m *QueryGroupPoliciesByGroupRequest) Reset()         { *m = QueryGroupPoliciesByGroupRequest{} }
   448  func (m *QueryGroupPoliciesByGroupRequest) String() string { return proto.CompactTextString(m) }
   449  func (*QueryGroupPoliciesByGroupRequest) ProtoMessage()    {}
   450  func (*QueryGroupPoliciesByGroupRequest) Descriptor() ([]byte, []int) {
   451  	return fileDescriptor_0fcf9f1d74302290, []int{8}
   452  }
   453  func (m *QueryGroupPoliciesByGroupRequest) XXX_Unmarshal(b []byte) error {
   454  	return m.Unmarshal(b)
   455  }
   456  func (m *QueryGroupPoliciesByGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   457  	if deterministic {
   458  		return xxx_messageInfo_QueryGroupPoliciesByGroupRequest.Marshal(b, m, deterministic)
   459  	} else {
   460  		b = b[:cap(b)]
   461  		n, err := m.MarshalToSizedBuffer(b)
   462  		if err != nil {
   463  			return nil, err
   464  		}
   465  		return b[:n], nil
   466  	}
   467  }
   468  func (m *QueryGroupPoliciesByGroupRequest) XXX_Merge(src proto.Message) {
   469  	xxx_messageInfo_QueryGroupPoliciesByGroupRequest.Merge(m, src)
   470  }
   471  func (m *QueryGroupPoliciesByGroupRequest) XXX_Size() int {
   472  	return m.Size()
   473  }
   474  func (m *QueryGroupPoliciesByGroupRequest) XXX_DiscardUnknown() {
   475  	xxx_messageInfo_QueryGroupPoliciesByGroupRequest.DiscardUnknown(m)
   476  }
   477  
   478  var xxx_messageInfo_QueryGroupPoliciesByGroupRequest proto.InternalMessageInfo
   479  
   480  func (m *QueryGroupPoliciesByGroupRequest) GetGroupId() uint64 {
   481  	if m != nil {
   482  		return m.GroupId
   483  	}
   484  	return 0
   485  }
   486  
   487  func (m *QueryGroupPoliciesByGroupRequest) GetPagination() *query.PageRequest {
   488  	if m != nil {
   489  		return m.Pagination
   490  	}
   491  	return nil
   492  }
   493  
   494  // QueryGroupPoliciesByGroupResponse is the Query/GroupPoliciesByGroup response type.
   495  type QueryGroupPoliciesByGroupResponse struct {
   496  	// group_policies are the group policies info associated with the provided group.
   497  	GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
   498  	// pagination defines the pagination in the response.
   499  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   500  }
   501  
   502  func (m *QueryGroupPoliciesByGroupResponse) Reset()         { *m = QueryGroupPoliciesByGroupResponse{} }
   503  func (m *QueryGroupPoliciesByGroupResponse) String() string { return proto.CompactTextString(m) }
   504  func (*QueryGroupPoliciesByGroupResponse) ProtoMessage()    {}
   505  func (*QueryGroupPoliciesByGroupResponse) Descriptor() ([]byte, []int) {
   506  	return fileDescriptor_0fcf9f1d74302290, []int{9}
   507  }
   508  func (m *QueryGroupPoliciesByGroupResponse) XXX_Unmarshal(b []byte) error {
   509  	return m.Unmarshal(b)
   510  }
   511  func (m *QueryGroupPoliciesByGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   512  	if deterministic {
   513  		return xxx_messageInfo_QueryGroupPoliciesByGroupResponse.Marshal(b, m, deterministic)
   514  	} else {
   515  		b = b[:cap(b)]
   516  		n, err := m.MarshalToSizedBuffer(b)
   517  		if err != nil {
   518  			return nil, err
   519  		}
   520  		return b[:n], nil
   521  	}
   522  }
   523  func (m *QueryGroupPoliciesByGroupResponse) XXX_Merge(src proto.Message) {
   524  	xxx_messageInfo_QueryGroupPoliciesByGroupResponse.Merge(m, src)
   525  }
   526  func (m *QueryGroupPoliciesByGroupResponse) XXX_Size() int {
   527  	return m.Size()
   528  }
   529  func (m *QueryGroupPoliciesByGroupResponse) XXX_DiscardUnknown() {
   530  	xxx_messageInfo_QueryGroupPoliciesByGroupResponse.DiscardUnknown(m)
   531  }
   532  
   533  var xxx_messageInfo_QueryGroupPoliciesByGroupResponse proto.InternalMessageInfo
   534  
   535  func (m *QueryGroupPoliciesByGroupResponse) GetGroupPolicies() []*GroupPolicyInfo {
   536  	if m != nil {
   537  		return m.GroupPolicies
   538  	}
   539  	return nil
   540  }
   541  
   542  func (m *QueryGroupPoliciesByGroupResponse) GetPagination() *query.PageResponse {
   543  	if m != nil {
   544  		return m.Pagination
   545  	}
   546  	return nil
   547  }
   548  
   549  // QueryGroupPoliciesByAdminRequest is the Query/GroupPoliciesByAdmin request type.
   550  type QueryGroupPoliciesByAdminRequest struct {
   551  	// admin is the admin address of the group policy.
   552  	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
   553  	// pagination defines an optional pagination for the request.
   554  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   555  }
   556  
   557  func (m *QueryGroupPoliciesByAdminRequest) Reset()         { *m = QueryGroupPoliciesByAdminRequest{} }
   558  func (m *QueryGroupPoliciesByAdminRequest) String() string { return proto.CompactTextString(m) }
   559  func (*QueryGroupPoliciesByAdminRequest) ProtoMessage()    {}
   560  func (*QueryGroupPoliciesByAdminRequest) Descriptor() ([]byte, []int) {
   561  	return fileDescriptor_0fcf9f1d74302290, []int{10}
   562  }
   563  func (m *QueryGroupPoliciesByAdminRequest) XXX_Unmarshal(b []byte) error {
   564  	return m.Unmarshal(b)
   565  }
   566  func (m *QueryGroupPoliciesByAdminRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   567  	if deterministic {
   568  		return xxx_messageInfo_QueryGroupPoliciesByAdminRequest.Marshal(b, m, deterministic)
   569  	} else {
   570  		b = b[:cap(b)]
   571  		n, err := m.MarshalToSizedBuffer(b)
   572  		if err != nil {
   573  			return nil, err
   574  		}
   575  		return b[:n], nil
   576  	}
   577  }
   578  func (m *QueryGroupPoliciesByAdminRequest) XXX_Merge(src proto.Message) {
   579  	xxx_messageInfo_QueryGroupPoliciesByAdminRequest.Merge(m, src)
   580  }
   581  func (m *QueryGroupPoliciesByAdminRequest) XXX_Size() int {
   582  	return m.Size()
   583  }
   584  func (m *QueryGroupPoliciesByAdminRequest) XXX_DiscardUnknown() {
   585  	xxx_messageInfo_QueryGroupPoliciesByAdminRequest.DiscardUnknown(m)
   586  }
   587  
   588  var xxx_messageInfo_QueryGroupPoliciesByAdminRequest proto.InternalMessageInfo
   589  
   590  func (m *QueryGroupPoliciesByAdminRequest) GetAdmin() string {
   591  	if m != nil {
   592  		return m.Admin
   593  	}
   594  	return ""
   595  }
   596  
   597  func (m *QueryGroupPoliciesByAdminRequest) GetPagination() *query.PageRequest {
   598  	if m != nil {
   599  		return m.Pagination
   600  	}
   601  	return nil
   602  }
   603  
   604  // QueryGroupPoliciesByAdminResponse is the Query/GroupPoliciesByAdmin response type.
   605  type QueryGroupPoliciesByAdminResponse struct {
   606  	// group_policies are the group policies info with provided admin.
   607  	GroupPolicies []*GroupPolicyInfo `protobuf:"bytes,1,rep,name=group_policies,json=groupPolicies,proto3" json:"group_policies,omitempty"`
   608  	// pagination defines the pagination in the response.
   609  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   610  }
   611  
   612  func (m *QueryGroupPoliciesByAdminResponse) Reset()         { *m = QueryGroupPoliciesByAdminResponse{} }
   613  func (m *QueryGroupPoliciesByAdminResponse) String() string { return proto.CompactTextString(m) }
   614  func (*QueryGroupPoliciesByAdminResponse) ProtoMessage()    {}
   615  func (*QueryGroupPoliciesByAdminResponse) Descriptor() ([]byte, []int) {
   616  	return fileDescriptor_0fcf9f1d74302290, []int{11}
   617  }
   618  func (m *QueryGroupPoliciesByAdminResponse) XXX_Unmarshal(b []byte) error {
   619  	return m.Unmarshal(b)
   620  }
   621  func (m *QueryGroupPoliciesByAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   622  	if deterministic {
   623  		return xxx_messageInfo_QueryGroupPoliciesByAdminResponse.Marshal(b, m, deterministic)
   624  	} else {
   625  		b = b[:cap(b)]
   626  		n, err := m.MarshalToSizedBuffer(b)
   627  		if err != nil {
   628  			return nil, err
   629  		}
   630  		return b[:n], nil
   631  	}
   632  }
   633  func (m *QueryGroupPoliciesByAdminResponse) XXX_Merge(src proto.Message) {
   634  	xxx_messageInfo_QueryGroupPoliciesByAdminResponse.Merge(m, src)
   635  }
   636  func (m *QueryGroupPoliciesByAdminResponse) XXX_Size() int {
   637  	return m.Size()
   638  }
   639  func (m *QueryGroupPoliciesByAdminResponse) XXX_DiscardUnknown() {
   640  	xxx_messageInfo_QueryGroupPoliciesByAdminResponse.DiscardUnknown(m)
   641  }
   642  
   643  var xxx_messageInfo_QueryGroupPoliciesByAdminResponse proto.InternalMessageInfo
   644  
   645  func (m *QueryGroupPoliciesByAdminResponse) GetGroupPolicies() []*GroupPolicyInfo {
   646  	if m != nil {
   647  		return m.GroupPolicies
   648  	}
   649  	return nil
   650  }
   651  
   652  func (m *QueryGroupPoliciesByAdminResponse) GetPagination() *query.PageResponse {
   653  	if m != nil {
   654  		return m.Pagination
   655  	}
   656  	return nil
   657  }
   658  
   659  // QueryProposalRequest is the Query/Proposal request type.
   660  type QueryProposalRequest struct {
   661  	// proposal_id is the unique ID of a proposal.
   662  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   663  }
   664  
   665  func (m *QueryProposalRequest) Reset()         { *m = QueryProposalRequest{} }
   666  func (m *QueryProposalRequest) String() string { return proto.CompactTextString(m) }
   667  func (*QueryProposalRequest) ProtoMessage()    {}
   668  func (*QueryProposalRequest) Descriptor() ([]byte, []int) {
   669  	return fileDescriptor_0fcf9f1d74302290, []int{12}
   670  }
   671  func (m *QueryProposalRequest) XXX_Unmarshal(b []byte) error {
   672  	return m.Unmarshal(b)
   673  }
   674  func (m *QueryProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   675  	if deterministic {
   676  		return xxx_messageInfo_QueryProposalRequest.Marshal(b, m, deterministic)
   677  	} else {
   678  		b = b[:cap(b)]
   679  		n, err := m.MarshalToSizedBuffer(b)
   680  		if err != nil {
   681  			return nil, err
   682  		}
   683  		return b[:n], nil
   684  	}
   685  }
   686  func (m *QueryProposalRequest) XXX_Merge(src proto.Message) {
   687  	xxx_messageInfo_QueryProposalRequest.Merge(m, src)
   688  }
   689  func (m *QueryProposalRequest) XXX_Size() int {
   690  	return m.Size()
   691  }
   692  func (m *QueryProposalRequest) XXX_DiscardUnknown() {
   693  	xxx_messageInfo_QueryProposalRequest.DiscardUnknown(m)
   694  }
   695  
   696  var xxx_messageInfo_QueryProposalRequest proto.InternalMessageInfo
   697  
   698  func (m *QueryProposalRequest) GetProposalId() uint64 {
   699  	if m != nil {
   700  		return m.ProposalId
   701  	}
   702  	return 0
   703  }
   704  
   705  // QueryProposalResponse is the Query/Proposal response type.
   706  type QueryProposalResponse struct {
   707  	// proposal is the proposal info.
   708  	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
   709  }
   710  
   711  func (m *QueryProposalResponse) Reset()         { *m = QueryProposalResponse{} }
   712  func (m *QueryProposalResponse) String() string { return proto.CompactTextString(m) }
   713  func (*QueryProposalResponse) ProtoMessage()    {}
   714  func (*QueryProposalResponse) Descriptor() ([]byte, []int) {
   715  	return fileDescriptor_0fcf9f1d74302290, []int{13}
   716  }
   717  func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error {
   718  	return m.Unmarshal(b)
   719  }
   720  func (m *QueryProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   721  	if deterministic {
   722  		return xxx_messageInfo_QueryProposalResponse.Marshal(b, m, deterministic)
   723  	} else {
   724  		b = b[:cap(b)]
   725  		n, err := m.MarshalToSizedBuffer(b)
   726  		if err != nil {
   727  			return nil, err
   728  		}
   729  		return b[:n], nil
   730  	}
   731  }
   732  func (m *QueryProposalResponse) XXX_Merge(src proto.Message) {
   733  	xxx_messageInfo_QueryProposalResponse.Merge(m, src)
   734  }
   735  func (m *QueryProposalResponse) XXX_Size() int {
   736  	return m.Size()
   737  }
   738  func (m *QueryProposalResponse) XXX_DiscardUnknown() {
   739  	xxx_messageInfo_QueryProposalResponse.DiscardUnknown(m)
   740  }
   741  
   742  var xxx_messageInfo_QueryProposalResponse proto.InternalMessageInfo
   743  
   744  func (m *QueryProposalResponse) GetProposal() *Proposal {
   745  	if m != nil {
   746  		return m.Proposal
   747  	}
   748  	return nil
   749  }
   750  
   751  // QueryProposalsByGroupPolicyRequest is the Query/ProposalByGroupPolicy request type.
   752  type QueryProposalsByGroupPolicyRequest struct {
   753  	// address is the account address of the group policy related to proposals.
   754  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
   755  	// pagination defines an optional pagination for the request.
   756  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   757  }
   758  
   759  func (m *QueryProposalsByGroupPolicyRequest) Reset()         { *m = QueryProposalsByGroupPolicyRequest{} }
   760  func (m *QueryProposalsByGroupPolicyRequest) String() string { return proto.CompactTextString(m) }
   761  func (*QueryProposalsByGroupPolicyRequest) ProtoMessage()    {}
   762  func (*QueryProposalsByGroupPolicyRequest) Descriptor() ([]byte, []int) {
   763  	return fileDescriptor_0fcf9f1d74302290, []int{14}
   764  }
   765  func (m *QueryProposalsByGroupPolicyRequest) XXX_Unmarshal(b []byte) error {
   766  	return m.Unmarshal(b)
   767  }
   768  func (m *QueryProposalsByGroupPolicyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   769  	if deterministic {
   770  		return xxx_messageInfo_QueryProposalsByGroupPolicyRequest.Marshal(b, m, deterministic)
   771  	} else {
   772  		b = b[:cap(b)]
   773  		n, err := m.MarshalToSizedBuffer(b)
   774  		if err != nil {
   775  			return nil, err
   776  		}
   777  		return b[:n], nil
   778  	}
   779  }
   780  func (m *QueryProposalsByGroupPolicyRequest) XXX_Merge(src proto.Message) {
   781  	xxx_messageInfo_QueryProposalsByGroupPolicyRequest.Merge(m, src)
   782  }
   783  func (m *QueryProposalsByGroupPolicyRequest) XXX_Size() int {
   784  	return m.Size()
   785  }
   786  func (m *QueryProposalsByGroupPolicyRequest) XXX_DiscardUnknown() {
   787  	xxx_messageInfo_QueryProposalsByGroupPolicyRequest.DiscardUnknown(m)
   788  }
   789  
   790  var xxx_messageInfo_QueryProposalsByGroupPolicyRequest proto.InternalMessageInfo
   791  
   792  func (m *QueryProposalsByGroupPolicyRequest) GetAddress() string {
   793  	if m != nil {
   794  		return m.Address
   795  	}
   796  	return ""
   797  }
   798  
   799  func (m *QueryProposalsByGroupPolicyRequest) GetPagination() *query.PageRequest {
   800  	if m != nil {
   801  		return m.Pagination
   802  	}
   803  	return nil
   804  }
   805  
   806  // QueryProposalsByGroupPolicyResponse is the Query/ProposalByGroupPolicy response type.
   807  type QueryProposalsByGroupPolicyResponse struct {
   808  	// proposals are the proposals with given group policy.
   809  	Proposals []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
   810  	// pagination defines the pagination in the response.
   811  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   812  }
   813  
   814  func (m *QueryProposalsByGroupPolicyResponse) Reset()         { *m = QueryProposalsByGroupPolicyResponse{} }
   815  func (m *QueryProposalsByGroupPolicyResponse) String() string { return proto.CompactTextString(m) }
   816  func (*QueryProposalsByGroupPolicyResponse) ProtoMessage()    {}
   817  func (*QueryProposalsByGroupPolicyResponse) Descriptor() ([]byte, []int) {
   818  	return fileDescriptor_0fcf9f1d74302290, []int{15}
   819  }
   820  func (m *QueryProposalsByGroupPolicyResponse) XXX_Unmarshal(b []byte) error {
   821  	return m.Unmarshal(b)
   822  }
   823  func (m *QueryProposalsByGroupPolicyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   824  	if deterministic {
   825  		return xxx_messageInfo_QueryProposalsByGroupPolicyResponse.Marshal(b, m, deterministic)
   826  	} else {
   827  		b = b[:cap(b)]
   828  		n, err := m.MarshalToSizedBuffer(b)
   829  		if err != nil {
   830  			return nil, err
   831  		}
   832  		return b[:n], nil
   833  	}
   834  }
   835  func (m *QueryProposalsByGroupPolicyResponse) XXX_Merge(src proto.Message) {
   836  	xxx_messageInfo_QueryProposalsByGroupPolicyResponse.Merge(m, src)
   837  }
   838  func (m *QueryProposalsByGroupPolicyResponse) XXX_Size() int {
   839  	return m.Size()
   840  }
   841  func (m *QueryProposalsByGroupPolicyResponse) XXX_DiscardUnknown() {
   842  	xxx_messageInfo_QueryProposalsByGroupPolicyResponse.DiscardUnknown(m)
   843  }
   844  
   845  var xxx_messageInfo_QueryProposalsByGroupPolicyResponse proto.InternalMessageInfo
   846  
   847  func (m *QueryProposalsByGroupPolicyResponse) GetProposals() []*Proposal {
   848  	if m != nil {
   849  		return m.Proposals
   850  	}
   851  	return nil
   852  }
   853  
   854  func (m *QueryProposalsByGroupPolicyResponse) GetPagination() *query.PageResponse {
   855  	if m != nil {
   856  		return m.Pagination
   857  	}
   858  	return nil
   859  }
   860  
   861  // QueryVoteByProposalVoterRequest is the Query/VoteByProposalVoter request type.
   862  type QueryVoteByProposalVoterRequest struct {
   863  	// proposal_id is the unique ID of a proposal.
   864  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   865  	// voter is a proposal voter account address.
   866  	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
   867  }
   868  
   869  func (m *QueryVoteByProposalVoterRequest) Reset()         { *m = QueryVoteByProposalVoterRequest{} }
   870  func (m *QueryVoteByProposalVoterRequest) String() string { return proto.CompactTextString(m) }
   871  func (*QueryVoteByProposalVoterRequest) ProtoMessage()    {}
   872  func (*QueryVoteByProposalVoterRequest) Descriptor() ([]byte, []int) {
   873  	return fileDescriptor_0fcf9f1d74302290, []int{16}
   874  }
   875  func (m *QueryVoteByProposalVoterRequest) XXX_Unmarshal(b []byte) error {
   876  	return m.Unmarshal(b)
   877  }
   878  func (m *QueryVoteByProposalVoterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   879  	if deterministic {
   880  		return xxx_messageInfo_QueryVoteByProposalVoterRequest.Marshal(b, m, deterministic)
   881  	} else {
   882  		b = b[:cap(b)]
   883  		n, err := m.MarshalToSizedBuffer(b)
   884  		if err != nil {
   885  			return nil, err
   886  		}
   887  		return b[:n], nil
   888  	}
   889  }
   890  func (m *QueryVoteByProposalVoterRequest) XXX_Merge(src proto.Message) {
   891  	xxx_messageInfo_QueryVoteByProposalVoterRequest.Merge(m, src)
   892  }
   893  func (m *QueryVoteByProposalVoterRequest) XXX_Size() int {
   894  	return m.Size()
   895  }
   896  func (m *QueryVoteByProposalVoterRequest) XXX_DiscardUnknown() {
   897  	xxx_messageInfo_QueryVoteByProposalVoterRequest.DiscardUnknown(m)
   898  }
   899  
   900  var xxx_messageInfo_QueryVoteByProposalVoterRequest proto.InternalMessageInfo
   901  
   902  func (m *QueryVoteByProposalVoterRequest) GetProposalId() uint64 {
   903  	if m != nil {
   904  		return m.ProposalId
   905  	}
   906  	return 0
   907  }
   908  
   909  func (m *QueryVoteByProposalVoterRequest) GetVoter() string {
   910  	if m != nil {
   911  		return m.Voter
   912  	}
   913  	return ""
   914  }
   915  
   916  // QueryVoteByProposalVoterResponse is the Query/VoteByProposalVoter response type.
   917  type QueryVoteByProposalVoterResponse struct {
   918  	// vote is the vote with given proposal_id and voter.
   919  	Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
   920  }
   921  
   922  func (m *QueryVoteByProposalVoterResponse) Reset()         { *m = QueryVoteByProposalVoterResponse{} }
   923  func (m *QueryVoteByProposalVoterResponse) String() string { return proto.CompactTextString(m) }
   924  func (*QueryVoteByProposalVoterResponse) ProtoMessage()    {}
   925  func (*QueryVoteByProposalVoterResponse) Descriptor() ([]byte, []int) {
   926  	return fileDescriptor_0fcf9f1d74302290, []int{17}
   927  }
   928  func (m *QueryVoteByProposalVoterResponse) XXX_Unmarshal(b []byte) error {
   929  	return m.Unmarshal(b)
   930  }
   931  func (m *QueryVoteByProposalVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   932  	if deterministic {
   933  		return xxx_messageInfo_QueryVoteByProposalVoterResponse.Marshal(b, m, deterministic)
   934  	} else {
   935  		b = b[:cap(b)]
   936  		n, err := m.MarshalToSizedBuffer(b)
   937  		if err != nil {
   938  			return nil, err
   939  		}
   940  		return b[:n], nil
   941  	}
   942  }
   943  func (m *QueryVoteByProposalVoterResponse) XXX_Merge(src proto.Message) {
   944  	xxx_messageInfo_QueryVoteByProposalVoterResponse.Merge(m, src)
   945  }
   946  func (m *QueryVoteByProposalVoterResponse) XXX_Size() int {
   947  	return m.Size()
   948  }
   949  func (m *QueryVoteByProposalVoterResponse) XXX_DiscardUnknown() {
   950  	xxx_messageInfo_QueryVoteByProposalVoterResponse.DiscardUnknown(m)
   951  }
   952  
   953  var xxx_messageInfo_QueryVoteByProposalVoterResponse proto.InternalMessageInfo
   954  
   955  func (m *QueryVoteByProposalVoterResponse) GetVote() *Vote {
   956  	if m != nil {
   957  		return m.Vote
   958  	}
   959  	return nil
   960  }
   961  
   962  // QueryVotesByProposalRequest is the Query/VotesByProposal request type.
   963  type QueryVotesByProposalRequest struct {
   964  	// proposal_id is the unique ID of a proposal.
   965  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
   966  	// pagination defines an optional pagination for the request.
   967  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
   968  }
   969  
   970  func (m *QueryVotesByProposalRequest) Reset()         { *m = QueryVotesByProposalRequest{} }
   971  func (m *QueryVotesByProposalRequest) String() string { return proto.CompactTextString(m) }
   972  func (*QueryVotesByProposalRequest) ProtoMessage()    {}
   973  func (*QueryVotesByProposalRequest) Descriptor() ([]byte, []int) {
   974  	return fileDescriptor_0fcf9f1d74302290, []int{18}
   975  }
   976  func (m *QueryVotesByProposalRequest) XXX_Unmarshal(b []byte) error {
   977  	return m.Unmarshal(b)
   978  }
   979  func (m *QueryVotesByProposalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   980  	if deterministic {
   981  		return xxx_messageInfo_QueryVotesByProposalRequest.Marshal(b, m, deterministic)
   982  	} else {
   983  		b = b[:cap(b)]
   984  		n, err := m.MarshalToSizedBuffer(b)
   985  		if err != nil {
   986  			return nil, err
   987  		}
   988  		return b[:n], nil
   989  	}
   990  }
   991  func (m *QueryVotesByProposalRequest) XXX_Merge(src proto.Message) {
   992  	xxx_messageInfo_QueryVotesByProposalRequest.Merge(m, src)
   993  }
   994  func (m *QueryVotesByProposalRequest) XXX_Size() int {
   995  	return m.Size()
   996  }
   997  func (m *QueryVotesByProposalRequest) XXX_DiscardUnknown() {
   998  	xxx_messageInfo_QueryVotesByProposalRequest.DiscardUnknown(m)
   999  }
  1000  
  1001  var xxx_messageInfo_QueryVotesByProposalRequest proto.InternalMessageInfo
  1002  
  1003  func (m *QueryVotesByProposalRequest) GetProposalId() uint64 {
  1004  	if m != nil {
  1005  		return m.ProposalId
  1006  	}
  1007  	return 0
  1008  }
  1009  
  1010  func (m *QueryVotesByProposalRequest) GetPagination() *query.PageRequest {
  1011  	if m != nil {
  1012  		return m.Pagination
  1013  	}
  1014  	return nil
  1015  }
  1016  
  1017  // QueryVotesByProposalResponse is the Query/VotesByProposal response type.
  1018  type QueryVotesByProposalResponse struct {
  1019  	// votes are the list of votes for given proposal_id.
  1020  	Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
  1021  	// pagination defines the pagination in the response.
  1022  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1023  }
  1024  
  1025  func (m *QueryVotesByProposalResponse) Reset()         { *m = QueryVotesByProposalResponse{} }
  1026  func (m *QueryVotesByProposalResponse) String() string { return proto.CompactTextString(m) }
  1027  func (*QueryVotesByProposalResponse) ProtoMessage()    {}
  1028  func (*QueryVotesByProposalResponse) Descriptor() ([]byte, []int) {
  1029  	return fileDescriptor_0fcf9f1d74302290, []int{19}
  1030  }
  1031  func (m *QueryVotesByProposalResponse) XXX_Unmarshal(b []byte) error {
  1032  	return m.Unmarshal(b)
  1033  }
  1034  func (m *QueryVotesByProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1035  	if deterministic {
  1036  		return xxx_messageInfo_QueryVotesByProposalResponse.Marshal(b, m, deterministic)
  1037  	} else {
  1038  		b = b[:cap(b)]
  1039  		n, err := m.MarshalToSizedBuffer(b)
  1040  		if err != nil {
  1041  			return nil, err
  1042  		}
  1043  		return b[:n], nil
  1044  	}
  1045  }
  1046  func (m *QueryVotesByProposalResponse) XXX_Merge(src proto.Message) {
  1047  	xxx_messageInfo_QueryVotesByProposalResponse.Merge(m, src)
  1048  }
  1049  func (m *QueryVotesByProposalResponse) XXX_Size() int {
  1050  	return m.Size()
  1051  }
  1052  func (m *QueryVotesByProposalResponse) XXX_DiscardUnknown() {
  1053  	xxx_messageInfo_QueryVotesByProposalResponse.DiscardUnknown(m)
  1054  }
  1055  
  1056  var xxx_messageInfo_QueryVotesByProposalResponse proto.InternalMessageInfo
  1057  
  1058  func (m *QueryVotesByProposalResponse) GetVotes() []*Vote {
  1059  	if m != nil {
  1060  		return m.Votes
  1061  	}
  1062  	return nil
  1063  }
  1064  
  1065  func (m *QueryVotesByProposalResponse) GetPagination() *query.PageResponse {
  1066  	if m != nil {
  1067  		return m.Pagination
  1068  	}
  1069  	return nil
  1070  }
  1071  
  1072  // QueryVotesByVoterRequest is the Query/VotesByVoter request type.
  1073  type QueryVotesByVoterRequest struct {
  1074  	// voter is a proposal voter account address.
  1075  	Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
  1076  	// pagination defines an optional pagination for the request.
  1077  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1078  }
  1079  
  1080  func (m *QueryVotesByVoterRequest) Reset()         { *m = QueryVotesByVoterRequest{} }
  1081  func (m *QueryVotesByVoterRequest) String() string { return proto.CompactTextString(m) }
  1082  func (*QueryVotesByVoterRequest) ProtoMessage()    {}
  1083  func (*QueryVotesByVoterRequest) Descriptor() ([]byte, []int) {
  1084  	return fileDescriptor_0fcf9f1d74302290, []int{20}
  1085  }
  1086  func (m *QueryVotesByVoterRequest) XXX_Unmarshal(b []byte) error {
  1087  	return m.Unmarshal(b)
  1088  }
  1089  func (m *QueryVotesByVoterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1090  	if deterministic {
  1091  		return xxx_messageInfo_QueryVotesByVoterRequest.Marshal(b, m, deterministic)
  1092  	} else {
  1093  		b = b[:cap(b)]
  1094  		n, err := m.MarshalToSizedBuffer(b)
  1095  		if err != nil {
  1096  			return nil, err
  1097  		}
  1098  		return b[:n], nil
  1099  	}
  1100  }
  1101  func (m *QueryVotesByVoterRequest) XXX_Merge(src proto.Message) {
  1102  	xxx_messageInfo_QueryVotesByVoterRequest.Merge(m, src)
  1103  }
  1104  func (m *QueryVotesByVoterRequest) XXX_Size() int {
  1105  	return m.Size()
  1106  }
  1107  func (m *QueryVotesByVoterRequest) XXX_DiscardUnknown() {
  1108  	xxx_messageInfo_QueryVotesByVoterRequest.DiscardUnknown(m)
  1109  }
  1110  
  1111  var xxx_messageInfo_QueryVotesByVoterRequest proto.InternalMessageInfo
  1112  
  1113  func (m *QueryVotesByVoterRequest) GetVoter() string {
  1114  	if m != nil {
  1115  		return m.Voter
  1116  	}
  1117  	return ""
  1118  }
  1119  
  1120  func (m *QueryVotesByVoterRequest) GetPagination() *query.PageRequest {
  1121  	if m != nil {
  1122  		return m.Pagination
  1123  	}
  1124  	return nil
  1125  }
  1126  
  1127  // QueryVotesByVoterResponse is the Query/VotesByVoter response type.
  1128  type QueryVotesByVoterResponse struct {
  1129  	// votes are the list of votes by given voter.
  1130  	Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
  1131  	// pagination defines the pagination in the response.
  1132  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1133  }
  1134  
  1135  func (m *QueryVotesByVoterResponse) Reset()         { *m = QueryVotesByVoterResponse{} }
  1136  func (m *QueryVotesByVoterResponse) String() string { return proto.CompactTextString(m) }
  1137  func (*QueryVotesByVoterResponse) ProtoMessage()    {}
  1138  func (*QueryVotesByVoterResponse) Descriptor() ([]byte, []int) {
  1139  	return fileDescriptor_0fcf9f1d74302290, []int{21}
  1140  }
  1141  func (m *QueryVotesByVoterResponse) XXX_Unmarshal(b []byte) error {
  1142  	return m.Unmarshal(b)
  1143  }
  1144  func (m *QueryVotesByVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1145  	if deterministic {
  1146  		return xxx_messageInfo_QueryVotesByVoterResponse.Marshal(b, m, deterministic)
  1147  	} else {
  1148  		b = b[:cap(b)]
  1149  		n, err := m.MarshalToSizedBuffer(b)
  1150  		if err != nil {
  1151  			return nil, err
  1152  		}
  1153  		return b[:n], nil
  1154  	}
  1155  }
  1156  func (m *QueryVotesByVoterResponse) XXX_Merge(src proto.Message) {
  1157  	xxx_messageInfo_QueryVotesByVoterResponse.Merge(m, src)
  1158  }
  1159  func (m *QueryVotesByVoterResponse) XXX_Size() int {
  1160  	return m.Size()
  1161  }
  1162  func (m *QueryVotesByVoterResponse) XXX_DiscardUnknown() {
  1163  	xxx_messageInfo_QueryVotesByVoterResponse.DiscardUnknown(m)
  1164  }
  1165  
  1166  var xxx_messageInfo_QueryVotesByVoterResponse proto.InternalMessageInfo
  1167  
  1168  func (m *QueryVotesByVoterResponse) GetVotes() []*Vote {
  1169  	if m != nil {
  1170  		return m.Votes
  1171  	}
  1172  	return nil
  1173  }
  1174  
  1175  func (m *QueryVotesByVoterResponse) GetPagination() *query.PageResponse {
  1176  	if m != nil {
  1177  		return m.Pagination
  1178  	}
  1179  	return nil
  1180  }
  1181  
  1182  // QueryGroupsByMemberRequest is the Query/GroupsByMember request type.
  1183  type QueryGroupsByMemberRequest struct {
  1184  	// address is the group member address.
  1185  	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
  1186  	// pagination defines an optional pagination for the request.
  1187  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1188  }
  1189  
  1190  func (m *QueryGroupsByMemberRequest) Reset()         { *m = QueryGroupsByMemberRequest{} }
  1191  func (m *QueryGroupsByMemberRequest) String() string { return proto.CompactTextString(m) }
  1192  func (*QueryGroupsByMemberRequest) ProtoMessage()    {}
  1193  func (*QueryGroupsByMemberRequest) Descriptor() ([]byte, []int) {
  1194  	return fileDescriptor_0fcf9f1d74302290, []int{22}
  1195  }
  1196  func (m *QueryGroupsByMemberRequest) XXX_Unmarshal(b []byte) error {
  1197  	return m.Unmarshal(b)
  1198  }
  1199  func (m *QueryGroupsByMemberRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1200  	if deterministic {
  1201  		return xxx_messageInfo_QueryGroupsByMemberRequest.Marshal(b, m, deterministic)
  1202  	} else {
  1203  		b = b[:cap(b)]
  1204  		n, err := m.MarshalToSizedBuffer(b)
  1205  		if err != nil {
  1206  			return nil, err
  1207  		}
  1208  		return b[:n], nil
  1209  	}
  1210  }
  1211  func (m *QueryGroupsByMemberRequest) XXX_Merge(src proto.Message) {
  1212  	xxx_messageInfo_QueryGroupsByMemberRequest.Merge(m, src)
  1213  }
  1214  func (m *QueryGroupsByMemberRequest) XXX_Size() int {
  1215  	return m.Size()
  1216  }
  1217  func (m *QueryGroupsByMemberRequest) XXX_DiscardUnknown() {
  1218  	xxx_messageInfo_QueryGroupsByMemberRequest.DiscardUnknown(m)
  1219  }
  1220  
  1221  var xxx_messageInfo_QueryGroupsByMemberRequest proto.InternalMessageInfo
  1222  
  1223  func (m *QueryGroupsByMemberRequest) GetAddress() string {
  1224  	if m != nil {
  1225  		return m.Address
  1226  	}
  1227  	return ""
  1228  }
  1229  
  1230  func (m *QueryGroupsByMemberRequest) GetPagination() *query.PageRequest {
  1231  	if m != nil {
  1232  		return m.Pagination
  1233  	}
  1234  	return nil
  1235  }
  1236  
  1237  // QueryGroupsByMemberResponse is the Query/GroupsByMember response type.
  1238  type QueryGroupsByMemberResponse struct {
  1239  	// groups are the groups info with the provided group member.
  1240  	Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
  1241  	// pagination defines the pagination in the response.
  1242  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1243  }
  1244  
  1245  func (m *QueryGroupsByMemberResponse) Reset()         { *m = QueryGroupsByMemberResponse{} }
  1246  func (m *QueryGroupsByMemberResponse) String() string { return proto.CompactTextString(m) }
  1247  func (*QueryGroupsByMemberResponse) ProtoMessage()    {}
  1248  func (*QueryGroupsByMemberResponse) Descriptor() ([]byte, []int) {
  1249  	return fileDescriptor_0fcf9f1d74302290, []int{23}
  1250  }
  1251  func (m *QueryGroupsByMemberResponse) XXX_Unmarshal(b []byte) error {
  1252  	return m.Unmarshal(b)
  1253  }
  1254  func (m *QueryGroupsByMemberResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1255  	if deterministic {
  1256  		return xxx_messageInfo_QueryGroupsByMemberResponse.Marshal(b, m, deterministic)
  1257  	} else {
  1258  		b = b[:cap(b)]
  1259  		n, err := m.MarshalToSizedBuffer(b)
  1260  		if err != nil {
  1261  			return nil, err
  1262  		}
  1263  		return b[:n], nil
  1264  	}
  1265  }
  1266  func (m *QueryGroupsByMemberResponse) XXX_Merge(src proto.Message) {
  1267  	xxx_messageInfo_QueryGroupsByMemberResponse.Merge(m, src)
  1268  }
  1269  func (m *QueryGroupsByMemberResponse) XXX_Size() int {
  1270  	return m.Size()
  1271  }
  1272  func (m *QueryGroupsByMemberResponse) XXX_DiscardUnknown() {
  1273  	xxx_messageInfo_QueryGroupsByMemberResponse.DiscardUnknown(m)
  1274  }
  1275  
  1276  var xxx_messageInfo_QueryGroupsByMemberResponse proto.InternalMessageInfo
  1277  
  1278  func (m *QueryGroupsByMemberResponse) GetGroups() []*GroupInfo {
  1279  	if m != nil {
  1280  		return m.Groups
  1281  	}
  1282  	return nil
  1283  }
  1284  
  1285  func (m *QueryGroupsByMemberResponse) GetPagination() *query.PageResponse {
  1286  	if m != nil {
  1287  		return m.Pagination
  1288  	}
  1289  	return nil
  1290  }
  1291  
  1292  // QueryTallyResultRequest is the Query/TallyResult request type.
  1293  type QueryTallyResultRequest struct {
  1294  	// proposal_id is the unique id of a proposal.
  1295  	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
  1296  }
  1297  
  1298  func (m *QueryTallyResultRequest) Reset()         { *m = QueryTallyResultRequest{} }
  1299  func (m *QueryTallyResultRequest) String() string { return proto.CompactTextString(m) }
  1300  func (*QueryTallyResultRequest) ProtoMessage()    {}
  1301  func (*QueryTallyResultRequest) Descriptor() ([]byte, []int) {
  1302  	return fileDescriptor_0fcf9f1d74302290, []int{24}
  1303  }
  1304  func (m *QueryTallyResultRequest) XXX_Unmarshal(b []byte) error {
  1305  	return m.Unmarshal(b)
  1306  }
  1307  func (m *QueryTallyResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1308  	if deterministic {
  1309  		return xxx_messageInfo_QueryTallyResultRequest.Marshal(b, m, deterministic)
  1310  	} else {
  1311  		b = b[:cap(b)]
  1312  		n, err := m.MarshalToSizedBuffer(b)
  1313  		if err != nil {
  1314  			return nil, err
  1315  		}
  1316  		return b[:n], nil
  1317  	}
  1318  }
  1319  func (m *QueryTallyResultRequest) XXX_Merge(src proto.Message) {
  1320  	xxx_messageInfo_QueryTallyResultRequest.Merge(m, src)
  1321  }
  1322  func (m *QueryTallyResultRequest) XXX_Size() int {
  1323  	return m.Size()
  1324  }
  1325  func (m *QueryTallyResultRequest) XXX_DiscardUnknown() {
  1326  	xxx_messageInfo_QueryTallyResultRequest.DiscardUnknown(m)
  1327  }
  1328  
  1329  var xxx_messageInfo_QueryTallyResultRequest proto.InternalMessageInfo
  1330  
  1331  func (m *QueryTallyResultRequest) GetProposalId() uint64 {
  1332  	if m != nil {
  1333  		return m.ProposalId
  1334  	}
  1335  	return 0
  1336  }
  1337  
  1338  // QueryTallyResultResponse is the Query/TallyResult response type.
  1339  type QueryTallyResultResponse struct {
  1340  	// tally defines the requested tally.
  1341  	Tally TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally"`
  1342  }
  1343  
  1344  func (m *QueryTallyResultResponse) Reset()         { *m = QueryTallyResultResponse{} }
  1345  func (m *QueryTallyResultResponse) String() string { return proto.CompactTextString(m) }
  1346  func (*QueryTallyResultResponse) ProtoMessage()    {}
  1347  func (*QueryTallyResultResponse) Descriptor() ([]byte, []int) {
  1348  	return fileDescriptor_0fcf9f1d74302290, []int{25}
  1349  }
  1350  func (m *QueryTallyResultResponse) XXX_Unmarshal(b []byte) error {
  1351  	return m.Unmarshal(b)
  1352  }
  1353  func (m *QueryTallyResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1354  	if deterministic {
  1355  		return xxx_messageInfo_QueryTallyResultResponse.Marshal(b, m, deterministic)
  1356  	} else {
  1357  		b = b[:cap(b)]
  1358  		n, err := m.MarshalToSizedBuffer(b)
  1359  		if err != nil {
  1360  			return nil, err
  1361  		}
  1362  		return b[:n], nil
  1363  	}
  1364  }
  1365  func (m *QueryTallyResultResponse) XXX_Merge(src proto.Message) {
  1366  	xxx_messageInfo_QueryTallyResultResponse.Merge(m, src)
  1367  }
  1368  func (m *QueryTallyResultResponse) XXX_Size() int {
  1369  	return m.Size()
  1370  }
  1371  func (m *QueryTallyResultResponse) XXX_DiscardUnknown() {
  1372  	xxx_messageInfo_QueryTallyResultResponse.DiscardUnknown(m)
  1373  }
  1374  
  1375  var xxx_messageInfo_QueryTallyResultResponse proto.InternalMessageInfo
  1376  
  1377  func (m *QueryTallyResultResponse) GetTally() TallyResult {
  1378  	if m != nil {
  1379  		return m.Tally
  1380  	}
  1381  	return TallyResult{}
  1382  }
  1383  
  1384  // QueryGroupsRequest is the Query/Groups request type.
  1385  //
  1386  // Since: cosmos-sdk 0.47.1
  1387  type QueryGroupsRequest struct {
  1388  	// pagination defines an optional pagination for the request.
  1389  	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1390  }
  1391  
  1392  func (m *QueryGroupsRequest) Reset()         { *m = QueryGroupsRequest{} }
  1393  func (m *QueryGroupsRequest) String() string { return proto.CompactTextString(m) }
  1394  func (*QueryGroupsRequest) ProtoMessage()    {}
  1395  func (*QueryGroupsRequest) Descriptor() ([]byte, []int) {
  1396  	return fileDescriptor_0fcf9f1d74302290, []int{26}
  1397  }
  1398  func (m *QueryGroupsRequest) XXX_Unmarshal(b []byte) error {
  1399  	return m.Unmarshal(b)
  1400  }
  1401  func (m *QueryGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1402  	if deterministic {
  1403  		return xxx_messageInfo_QueryGroupsRequest.Marshal(b, m, deterministic)
  1404  	} else {
  1405  		b = b[:cap(b)]
  1406  		n, err := m.MarshalToSizedBuffer(b)
  1407  		if err != nil {
  1408  			return nil, err
  1409  		}
  1410  		return b[:n], nil
  1411  	}
  1412  }
  1413  func (m *QueryGroupsRequest) XXX_Merge(src proto.Message) {
  1414  	xxx_messageInfo_QueryGroupsRequest.Merge(m, src)
  1415  }
  1416  func (m *QueryGroupsRequest) XXX_Size() int {
  1417  	return m.Size()
  1418  }
  1419  func (m *QueryGroupsRequest) XXX_DiscardUnknown() {
  1420  	xxx_messageInfo_QueryGroupsRequest.DiscardUnknown(m)
  1421  }
  1422  
  1423  var xxx_messageInfo_QueryGroupsRequest proto.InternalMessageInfo
  1424  
  1425  func (m *QueryGroupsRequest) GetPagination() *query.PageRequest {
  1426  	if m != nil {
  1427  		return m.Pagination
  1428  	}
  1429  	return nil
  1430  }
  1431  
  1432  // QueryGroupsResponse is the Query/Groups response type.
  1433  //
  1434  // Since: cosmos-sdk 0.47.1
  1435  type QueryGroupsResponse struct {
  1436  	// `groups` is all the groups present in state.
  1437  	Groups []*GroupInfo `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
  1438  	// pagination defines the pagination in the response.
  1439  	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
  1440  }
  1441  
  1442  func (m *QueryGroupsResponse) Reset()         { *m = QueryGroupsResponse{} }
  1443  func (m *QueryGroupsResponse) String() string { return proto.CompactTextString(m) }
  1444  func (*QueryGroupsResponse) ProtoMessage()    {}
  1445  func (*QueryGroupsResponse) Descriptor() ([]byte, []int) {
  1446  	return fileDescriptor_0fcf9f1d74302290, []int{27}
  1447  }
  1448  func (m *QueryGroupsResponse) XXX_Unmarshal(b []byte) error {
  1449  	return m.Unmarshal(b)
  1450  }
  1451  func (m *QueryGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1452  	if deterministic {
  1453  		return xxx_messageInfo_QueryGroupsResponse.Marshal(b, m, deterministic)
  1454  	} else {
  1455  		b = b[:cap(b)]
  1456  		n, err := m.MarshalToSizedBuffer(b)
  1457  		if err != nil {
  1458  			return nil, err
  1459  		}
  1460  		return b[:n], nil
  1461  	}
  1462  }
  1463  func (m *QueryGroupsResponse) XXX_Merge(src proto.Message) {
  1464  	xxx_messageInfo_QueryGroupsResponse.Merge(m, src)
  1465  }
  1466  func (m *QueryGroupsResponse) XXX_Size() int {
  1467  	return m.Size()
  1468  }
  1469  func (m *QueryGroupsResponse) XXX_DiscardUnknown() {
  1470  	xxx_messageInfo_QueryGroupsResponse.DiscardUnknown(m)
  1471  }
  1472  
  1473  var xxx_messageInfo_QueryGroupsResponse proto.InternalMessageInfo
  1474  
  1475  func (m *QueryGroupsResponse) GetGroups() []*GroupInfo {
  1476  	if m != nil {
  1477  		return m.Groups
  1478  	}
  1479  	return nil
  1480  }
  1481  
  1482  func (m *QueryGroupsResponse) GetPagination() *query.PageResponse {
  1483  	if m != nil {
  1484  		return m.Pagination
  1485  	}
  1486  	return nil
  1487  }
  1488  
  1489  func init() {
  1490  	proto.RegisterType((*QueryGroupInfoRequest)(nil), "cosmos.group.v1.QueryGroupInfoRequest")
  1491  	proto.RegisterType((*QueryGroupInfoResponse)(nil), "cosmos.group.v1.QueryGroupInfoResponse")
  1492  	proto.RegisterType((*QueryGroupPolicyInfoRequest)(nil), "cosmos.group.v1.QueryGroupPolicyInfoRequest")
  1493  	proto.RegisterType((*QueryGroupPolicyInfoResponse)(nil), "cosmos.group.v1.QueryGroupPolicyInfoResponse")
  1494  	proto.RegisterType((*QueryGroupMembersRequest)(nil), "cosmos.group.v1.QueryGroupMembersRequest")
  1495  	proto.RegisterType((*QueryGroupMembersResponse)(nil), "cosmos.group.v1.QueryGroupMembersResponse")
  1496  	proto.RegisterType((*QueryGroupsByAdminRequest)(nil), "cosmos.group.v1.QueryGroupsByAdminRequest")
  1497  	proto.RegisterType((*QueryGroupsByAdminResponse)(nil), "cosmos.group.v1.QueryGroupsByAdminResponse")
  1498  	proto.RegisterType((*QueryGroupPoliciesByGroupRequest)(nil), "cosmos.group.v1.QueryGroupPoliciesByGroupRequest")
  1499  	proto.RegisterType((*QueryGroupPoliciesByGroupResponse)(nil), "cosmos.group.v1.QueryGroupPoliciesByGroupResponse")
  1500  	proto.RegisterType((*QueryGroupPoliciesByAdminRequest)(nil), "cosmos.group.v1.QueryGroupPoliciesByAdminRequest")
  1501  	proto.RegisterType((*QueryGroupPoliciesByAdminResponse)(nil), "cosmos.group.v1.QueryGroupPoliciesByAdminResponse")
  1502  	proto.RegisterType((*QueryProposalRequest)(nil), "cosmos.group.v1.QueryProposalRequest")
  1503  	proto.RegisterType((*QueryProposalResponse)(nil), "cosmos.group.v1.QueryProposalResponse")
  1504  	proto.RegisterType((*QueryProposalsByGroupPolicyRequest)(nil), "cosmos.group.v1.QueryProposalsByGroupPolicyRequest")
  1505  	proto.RegisterType((*QueryProposalsByGroupPolicyResponse)(nil), "cosmos.group.v1.QueryProposalsByGroupPolicyResponse")
  1506  	proto.RegisterType((*QueryVoteByProposalVoterRequest)(nil), "cosmos.group.v1.QueryVoteByProposalVoterRequest")
  1507  	proto.RegisterType((*QueryVoteByProposalVoterResponse)(nil), "cosmos.group.v1.QueryVoteByProposalVoterResponse")
  1508  	proto.RegisterType((*QueryVotesByProposalRequest)(nil), "cosmos.group.v1.QueryVotesByProposalRequest")
  1509  	proto.RegisterType((*QueryVotesByProposalResponse)(nil), "cosmos.group.v1.QueryVotesByProposalResponse")
  1510  	proto.RegisterType((*QueryVotesByVoterRequest)(nil), "cosmos.group.v1.QueryVotesByVoterRequest")
  1511  	proto.RegisterType((*QueryVotesByVoterResponse)(nil), "cosmos.group.v1.QueryVotesByVoterResponse")
  1512  	proto.RegisterType((*QueryGroupsByMemberRequest)(nil), "cosmos.group.v1.QueryGroupsByMemberRequest")
  1513  	proto.RegisterType((*QueryGroupsByMemberResponse)(nil), "cosmos.group.v1.QueryGroupsByMemberResponse")
  1514  	proto.RegisterType((*QueryTallyResultRequest)(nil), "cosmos.group.v1.QueryTallyResultRequest")
  1515  	proto.RegisterType((*QueryTallyResultResponse)(nil), "cosmos.group.v1.QueryTallyResultResponse")
  1516  	proto.RegisterType((*QueryGroupsRequest)(nil), "cosmos.group.v1.QueryGroupsRequest")
  1517  	proto.RegisterType((*QueryGroupsResponse)(nil), "cosmos.group.v1.QueryGroupsResponse")
  1518  }
  1519  
  1520  func init() { proto.RegisterFile("cosmos/group/v1/query.proto", fileDescriptor_0fcf9f1d74302290) }
  1521  
  1522  var fileDescriptor_0fcf9f1d74302290 = []byte{
  1523  	// 1310 bytes of a gzipped FileDescriptorProto
  1524  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x98, 0xcf, 0x6f, 0x1b, 0x45,
  1525  	0x14, 0xc7, 0x33, 0x25, 0x3f, 0x5f, 0xda, 0x46, 0x9d, 0xa6, 0x6d, 0xb2, 0x8d, 0x9c, 0xb0, 0x2d,
  1526  	0xf9, 0x9d, 0xdd, 0xd8, 0x49, 0x53, 0x04, 0x14, 0x54, 0x4b, 0x10, 0x72, 0x28, 0x4a, 0x4d, 0x85,
  1527  	0x04, 0x42, 0x8a, 0xd6, 0xf1, 0xc6, 0xac, 0xb0, 0x77, 0x5c, 0xef, 0x26, 0xc2, 0x8a, 0x7c, 0x41,
  1528  	0x82, 0x03, 0xe2, 0x00, 0x2d, 0x42, 0x25, 0xe2, 0xd0, 0x03, 0x12, 0x3d, 0x72, 0x00, 0x21, 0x71,
  1529  	0xeb, 0xad, 0xc7, 0x0a, 0x2e, 0x9c, 0x10, 0x4a, 0x90, 0xf8, 0x23, 0xb8, 0xa0, 0x9d, 0x79, 0x6b,
  1530  	0xef, 0x6f, 0x6f, 0x84, 0x45, 0x73, 0x69, 0xeb, 0x9d, 0x37, 0xf3, 0x3e, 0xf3, 0x7d, 0x6f, 0x67,
  1531  	0xbf, 0x53, 0xb8, 0xbc, 0xcd, 0xac, 0x2a, 0xb3, 0xd4, 0x72, 0x9d, 0xed, 0xd6, 0xd4, 0xbd, 0xac,
  1532  	0x7a, 0x77, 0x57, 0xaf, 0x37, 0x94, 0x5a, 0x9d, 0xd9, 0x8c, 0x8e, 0x88, 0x41, 0x85, 0x0f, 0x2a,
  1533  	0x7b, 0x59, 0x69, 0xb4, 0xcc, 0xca, 0x8c, 0x8f, 0xa9, 0xce, 0xbf, 0x44, 0x98, 0x34, 0x51, 0x66,
  1534  	0xac, 0x5c, 0xd1, 0x55, 0xad, 0x66, 0xa8, 0x9a, 0x69, 0x32, 0x5b, 0xb3, 0x0d, 0x66, 0x5a, 0x38,
  1535  	0x1a, 0xca, 0x60, 0x37, 0x6a, 0xba, 0x3b, 0x38, 0x8f, 0x83, 0x45, 0xcd, 0xd2, 0x45, 0x6a, 0x75,
  1536  	0x2f, 0x5b, 0xd4, 0x6d, 0x2d, 0xab, 0xd6, 0xb4, 0xb2, 0x61, 0xf2, 0x95, 0x30, 0x76, 0x5c, 0xc4,
  1537  	0x6e, 0x89, 0xfc, 0x88, 0x26, 0x86, 0xce, 0x69, 0x55, 0xc3, 0x64, 0x2a, 0xff, 0x53, 0x3c, 0x92,
  1538  	0x73, 0x70, 0xe1, 0xb6, 0xb3, 0xde, 0xba, 0x93, 0x76, 0xc3, 0xdc, 0x61, 0x05, 0xfd, 0xee, 0xae,
  1539  	0x6e, 0xd9, 0x74, 0x1c, 0x06, 0x39, 0xca, 0x96, 0x51, 0x1a, 0x23, 0x53, 0x64, 0xb6, 0xb7, 0x30,
  1540  	0xc0, 0x7f, 0x6f, 0x94, 0xe4, 0x37, 0xe1, 0x62, 0x70, 0x8e, 0x55, 0x63, 0xa6, 0xa5, 0x53, 0x05,
  1541  	0x7a, 0x0d, 0x73, 0x87, 0xf1, 0x09, 0xc3, 0x39, 0x49, 0x09, 0x08, 0xa3, 0xb4, 0x67, 0xf0, 0x38,
  1542  	0xf9, 0x36, 0x5c, 0x6e, 0xaf, 0xb4, 0xc9, 0x2a, 0xc6, 0x76, 0xc3, 0xcb, 0x90, 0x83, 0x01, 0xad,
  1543  	0x54, 0xaa, 0xeb, 0x96, 0xc5, 0x57, 0x1c, 0xca, 0x8f, 0xfd, 0xfa, 0xe3, 0xd2, 0x28, 0x2e, 0x7a,
  1544  	0x53, 0x8c, 0xbc, 0x6d, 0xd7, 0x0d, 0xb3, 0x5c, 0x70, 0x03, 0xe5, 0x3b, 0x30, 0x11, 0xbd, 0x24,
  1545  	0x22, 0xae, 0xfa, 0x10, 0xa7, 0xa2, 0x11, 0x3d, 0xf3, 0x04, 0x68, 0x13, 0xc6, 0xda, 0xab, 0xde,
  1546  	0xd2, 0xab, 0x45, 0xbd, 0x6e, 0x75, 0x56, 0x8a, 0xbe, 0x01, 0xd0, 0xae, 0xcf, 0xd8, 0x29, 0x9e,
  1547  	0x72, 0xda, 0x4d, 0xe9, 0x14, 0x53, 0x11, 0x7d, 0x84, 0xc5, 0x54, 0x36, 0xb5, 0xb2, 0x8e, 0xcb,
  1548  	0x16, 0x3c, 0x33, 0xe5, 0x6f, 0x09, 0x8c, 0x47, 0xe4, 0xc7, 0x2d, 0xad, 0xc1, 0x40, 0x55, 0x3c,
  1549  	0x1a, 0x23, 0x53, 0xcf, 0xcd, 0x0e, 0xe7, 0x26, 0xa2, 0x77, 0x25, 0xe6, 0x15, 0xdc, 0x60, 0xba,
  1550  	0x1e, 0x41, 0x37, 0xd3, 0x91, 0x4e, 0x24, 0xf5, 0xe1, 0xdd, 0xf7, 0xe1, 0x59, 0xf9, 0xc6, 0xcd,
  1551  	0x52, 0xd5, 0x30, 0x5d, 0x7d, 0x14, 0xe8, 0xd3, 0x9c, 0xdf, 0x1d, 0x6b, 0x28, 0xc2, 0xba, 0x26,
  1552  	0xda, 0x37, 0x04, 0xa4, 0x28, 0x2a, 0x54, 0x2d, 0x07, 0xfd, 0x5c, 0x1e, 0x57, 0xb4, 0xa4, 0x6e,
  1553  	0xc5, 0xc8, 0xee, 0x29, 0xf6, 0x09, 0x81, 0xa9, 0x40, 0x9b, 0x1a, 0xba, 0x95, 0x17, 0x3f, 0xff,
  1554  	0xc7, 0xc6, 0xfa, 0x89, 0xc0, 0xf3, 0x09, 0x1c, 0x28, 0xd5, 0x3a, 0x9c, 0x15, 0x20, 0x35, 0x0c,
  1555  	0x40, 0xc9, 0x3a, 0xbf, 0x3d, 0x67, 0xca, 0xde, 0x75, 0xbb, 0xa7, 0xdf, 0x41, 0x8c, 0x7e, 0x27,
  1556  	0xa2, 0xf1, 0xe2, 0x44, 0xf5, 0xf7, 0xdf, 0xc9, 0x13, 0xf5, 0x3a, 0x8c, 0x72, 0xec, 0xcd, 0x3a,
  1557  	0xab, 0x31, 0x4b, 0xab, 0xb8, 0x3a, 0x4e, 0xc2, 0x70, 0x0d, 0x1f, 0xb5, 0x5b, 0x11, 0xdc, 0x47,
  1558  	0x1b, 0x25, 0xf9, 0x2d, 0xfc, 0x88, 0xb4, 0x27, 0xe2, 0x1e, 0xaf, 0xc1, 0xa0, 0x1b, 0x86, 0x07,
  1559  	0xee, 0x78, 0x68, 0x77, 0xad, 0x49, 0xad, 0x50, 0xf9, 0x21, 0x01, 0xd9, 0xb7, 0xa0, 0xdb, 0x91,
  1560  	0x42, 0x84, 0xff, 0xf0, 0x79, 0xe8, 0x5a, 0x8d, 0xbf, 0x27, 0x70, 0x25, 0x11, 0x11, 0x15, 0xb8,
  1561  	0x0e, 0x43, 0xee, 0xb6, 0xdc, 0x02, 0x27, 0x48, 0xd0, 0x8e, 0xed, 0x5e, 0x55, 0xeb, 0x30, 0xc9,
  1562  	0x41, 0xdf, 0x61, 0xb6, 0x9e, 0x6f, 0xe1, 0x3a, 0xbf, 0xea, 0x69, 0x0b, 0xec, 0xbc, 0x49, 0x7b,
  1563  	0xce, 0x04, 0xce, 0x91, 0xf8, 0x26, 0xf1, 0x30, 0xf9, 0x16, 0xbe, 0x9d, 0x91, 0x39, 0x51, 0x99,
  1564  	0x39, 0xe8, 0x75, 0x82, 0xb1, 0x2f, 0x2e, 0x84, 0x44, 0x71, 0xa2, 0x0b, 0x3c, 0x44, 0xfe, 0x94,
  1565  	0xa0, 0x4f, 0x70, 0x9e, 0x59, 0xf9, 0x63, 0x37, 0x68, 0xd7, 0xaa, 0xfe, 0x15, 0x41, 0x77, 0x11,
  1566  	0x02, 0xc1, 0x4d, 0x2d, 0x08, 0xa1, 0xdc, 0x52, 0xc7, 0xec, 0x4a, 0xc4, 0x74, 0xaf, 0xc4, 0xf7,
  1567  	0x08, 0xda, 0x13, 0xc4, 0xf2, 0x15, 0xb7, 0x55, 0x3b, 0x92, 0xaa, 0x76, 0x5d, 0xd3, 0xea, 0x4b,
  1568  	0xd7, 0x14, 0xf8, 0xa1, 0x9e, 0xa9, 0x50, 0x0f, 0x82, 0x96, 0x00, 0x2d, 0xd1, 0x09, 0x38, 0x50,
  1569  	0x0e, 0x88, 0xd7, 0x0b, 0x7b, 0xd0, 0x4e, 0x82, 0x5d, 0x79, 0x09, 0x2e, 0x71, 0xb6, 0x3b, 0x5a,
  1570  	0xa5, 0xe2, 0x9c, 0x6d, 0xbb, 0x15, 0x3b, 0xf5, 0xc7, 0xe1, 0x5d, 0xec, 0x4d, 0xdf, 0x5c, 0xdc,
  1571  	0xd4, 0x0d, 0xe8, 0xb3, 0x9d, 0xc7, 0x78, 0x08, 0x84, 0x7d, 0xab, 0x67, 0x52, 0x7e, 0xe8, 0xc9,
  1572  	0x1f, 0x93, 0x3d, 0x8f, 0xfe, 0xfe, 0x61, 0x9e, 0x14, 0xc4, 0x2c, 0xf9, 0x7d, 0xa0, 0x1e, 0xc9,
  1573  	0x5c, 0xa2, 0x6e, 0x55, 0xe4, 0x1e, 0x81, 0xf3, 0xbe, 0xe5, 0x4f, 0x40, 0x25, 0x72, 0xff, 0x9c,
  1574  	0x83, 0x3e, 0x0e, 0x45, 0x3f, 0x27, 0x30, 0xd4, 0x4a, 0x44, 0xa7, 0x43, 0x10, 0x91, 0xd7, 0x3a,
  1575  	0x69, 0xa6, 0x63, 0x9c, 0x48, 0x2a, 0x2b, 0x1f, 0xff, 0xf6, 0xd7, 0xfd, 0x53, 0xb3, 0x74, 0x5a,
  1576  	0x0d, 0x5e, 0x4c, 0xd1, 0x93, 0x9a, 0x3b, 0x4c, 0xdd, 0x77, 0xfd, 0x69, 0x93, 0x7e, 0x47, 0x60,
  1577  	0x24, 0x60, 0x54, 0xe8, 0x62, 0x42, 0xb2, 0xd0, 0x6d, 0x4f, 0x5a, 0x4a, 0x19, 0x8d, 0x80, 0xab,
  1578  	0x1c, 0x50, 0xa1, 0x8b, 0x31, 0x80, 0xdc, 0x56, 0x35, 0x90, 0x13, 0xdf, 0xd6, 0x26, 0x7d, 0x40,
  1579  	0xe0, 0xb4, 0xf7, 0x12, 0x45, 0xe7, 0x12, 0xb2, 0xfa, 0x2f, 0x7a, 0xd2, 0x7c, 0x9a, 0x50, 0xa4,
  1580  	0xcb, 0x72, 0xba, 0x05, 0x3a, 0x17, 0x43, 0x87, 0x77, 0x30, 0xaf, 0x82, 0x07, 0x04, 0xce, 0xf8,
  1581  	0xae, 0x2a, 0x34, 0x29, 0x61, 0xc0, 0xec, 0x4a, 0x0b, 0xa9, 0x62, 0x91, 0x6e, 0x99, 0xd3, 0xcd,
  1582  	0xd3, 0xd9, 0x68, 0x3a, 0x6b, 0xab, 0xd8, 0xd8, 0xe2, 0x9e, 0xd8, 0x51, 0xae, 0x6a, 0x98, 0x4d,
  1583  	0xfa, 0x0b, 0x81, 0xd1, 0xa8, 0x3b, 0x02, 0xcd, 0x76, 0xaa, 0x5a, 0xe8, 0x5e, 0x23, 0xe5, 0x8e,
  1584  	0x33, 0x05, 0x89, 0x5f, 0xe6, 0xc4, 0xd7, 0xe8, 0x4a, 0x52, 0xb5, 0x0d, 0x9d, 0x93, 0x8b, 0x21,
  1585  	0x8f, 0xb2, 0x3f, 0x87, 0xe1, 0x85, 0xc0, 0xe9, 0xe0, 0x7d, 0x3a, 0xe7, 0x8e, 0x33, 0x05, 0xe1,
  1586  	0x5f, 0xe4, 0xf0, 0x39, 0xba, 0x9c, 0x02, 0xde, 0x2f, 0xfb, 0x67, 0x04, 0x06, 0x5d, 0x93, 0x41,
  1587  	0x5f, 0x88, 0x4e, 0x1d, 0x70, 0x43, 0xd2, 0x74, 0xa7, 0x30, 0xa4, 0x52, 0x39, 0xd5, 0x1c, 0x9d,
  1588  	0x09, 0x51, 0xb9, 0xa7, 0xb7, 0xba, 0xef, 0x39, 0xda, 0x9b, 0xf4, 0x31, 0x81, 0x8b, 0xd1, 0x76,
  1589  	0x97, 0xae, 0x24, 0xe7, 0x8c, 0xf4, 0xef, 0xd2, 0xea, 0xf1, 0x26, 0x21, 0xf6, 0x2b, 0x1c, 0x7b,
  1590  	0x8d, 0xae, 0xc6, 0x62, 0xb7, 0x9b, 0x00, 0x0f, 0x01, 0xcf, 0xfb, 0xff, 0x98, 0xc0, 0xf9, 0x08,
  1591  	0x57, 0x4a, 0x97, 0xa3, 0x59, 0xe2, 0x4d, 0xb3, 0x94, 0x3d, 0xc6, 0x0c, 0x44, 0x7f, 0x9d, 0xa3,
  1592  	0xbf, 0x46, 0x6f, 0x84, 0xd0, 0x1d, 0x9f, 0xe3, 0x50, 0xb7, 0xf4, 0xe6, 0x5e, 0xcc, 0xaf, 0xbf,
  1593  	0xba, 0xcf, 0x1f, 0x36, 0xe9, 0x23, 0x02, 0x23, 0x01, 0x03, 0x1a, 0x77, 0xd4, 0x46, 0x1b, 0xe6,
  1594  	0xb8, 0xa3, 0x36, 0xc6, 0xd5, 0x26, 0xf4, 0x2f, 0xf7, 0x67, 0x5e, 0xf0, 0x40, 0xcb, 0x7c, 0x4d,
  1595  	0xe0, 0xb4, 0xd7, 0xff, 0xc5, 0x1d, 0xb7, 0x11, 0xc6, 0x35, 0xee, 0xb8, 0x8d, 0xb2, 0x93, 0x09,
  1596  	0xbd, 0xdc, 0x22, 0x44, 0x45, 0x51, 0xc3, 0x87, 0x04, 0xce, 0xfa, 0x9d, 0x16, 0xed, 0x70, 0x82,
  1597  	0xfa, 0xac, 0xa2, 0xb4, 0x98, 0x2e, 0x18, 0xf1, 0x56, 0x38, 0xde, 0x12, 0x5d, 0x48, 0x38, 0x6f,
  1598  	0xc5, 0x17, 0xc1, 0xd3, 0xaa, 0x07, 0x04, 0x86, 0x3d, 0xfe, 0x87, 0xce, 0x46, 0xa7, 0x0c, 0x7b,
  1599  	0x32, 0x69, 0x2e, 0x45, 0x24, 0x92, 0xad, 0x71, 0xb2, 0x65, 0xaa, 0xc4, 0xbf, 0x4d, 0x81, 0x2e,
  1600  	0xe4, 0xd6, 0x8b, 0xda, 0xd0, 0x2f, 0xf6, 0x4a, 0xaf, 0x24, 0x29, 0xe1, 0x12, 0x5d, 0x4d, 0x0e,
  1601  	0x42, 0x98, 0x49, 0x0e, 0x33, 0x4e, 0x2f, 0xc5, 0xc8, 0x94, 0x7f, 0xf5, 0xc9, 0x61, 0x86, 0x3c,
  1602  	0x3d, 0xcc, 0x90, 0x3f, 0x0f, 0x33, 0xe4, 0x8b, 0xa3, 0x4c, 0xcf, 0xd3, 0xa3, 0x4c, 0xcf, 0xef,
  1603  	0x47, 0x99, 0x9e, 0xf7, 0xae, 0x96, 0x0d, 0xfb, 0x83, 0xdd, 0xa2, 0xb2, 0xcd, 0xaa, 0xee, 0x64,
  1604  	0xf1, 0xd7, 0x92, 0x55, 0xfa, 0x50, 0xfd, 0x48, 0x2c, 0x50, 0xec, 0xe7, 0xff, 0xe9, 0xbd, 0xf2,
  1605  	0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x22, 0xb3, 0x86, 0xf8, 0xcf, 0x17, 0x00, 0x00,
  1606  }
  1607  
  1608  // Reference imports to suppress errors if they are not otherwise used.
  1609  var _ context.Context
  1610  var _ grpc.ClientConn
  1611  
  1612  // This is a compile-time assertion to ensure that this generated file
  1613  // is compatible with the grpc package it is being compiled against.
  1614  const _ = grpc.SupportPackageIsVersion4
  1615  
  1616  // QueryClient is the client API for Query service.
  1617  //
  1618  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1619  type QueryClient interface {
  1620  	// GroupInfo queries group info based on group id.
  1621  	GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error)
  1622  	// GroupPolicyInfo queries group policy info based on account address of group policy.
  1623  	GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error)
  1624  	// GroupMembers queries members of a group by group id.
  1625  	GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error)
  1626  	// GroupsByAdmin queries groups by admin address.
  1627  	GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error)
  1628  	// GroupPoliciesByGroup queries group policies by group id.
  1629  	GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error)
  1630  	// GroupPoliciesByAdmin queries group policies by admin address.
  1631  	GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error)
  1632  	// Proposal queries a proposal based on proposal id.
  1633  	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
  1634  	// ProposalsByGroupPolicy queries proposals based on account address of group policy.
  1635  	ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error)
  1636  	// VoteByProposalVoter queries a vote by proposal id and voter.
  1637  	VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error)
  1638  	// VotesByProposal queries a vote by proposal id.
  1639  	VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error)
  1640  	// VotesByVoter queries a vote by voter.
  1641  	VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error)
  1642  	// GroupsByMember queries groups by member address.
  1643  	GroupsByMember(ctx context.Context, in *QueryGroupsByMemberRequest, opts ...grpc.CallOption) (*QueryGroupsByMemberResponse, error)
  1644  	// TallyResult returns the tally result of a proposal. If the proposal is
  1645  	// still in voting period, then this query computes the current tally state,
  1646  	// which might not be final. On the other hand, if the proposal is final,
  1647  	// then it simply returns the `final_tally_result` state stored in the
  1648  	// proposal itself.
  1649  	TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error)
  1650  	// Groups queries all groups in state.
  1651  	//
  1652  	// Since: cosmos-sdk 0.47.1
  1653  	Groups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error)
  1654  }
  1655  
  1656  type queryClient struct {
  1657  	cc grpc1.ClientConn
  1658  }
  1659  
  1660  func NewQueryClient(cc grpc1.ClientConn) QueryClient {
  1661  	return &queryClient{cc}
  1662  }
  1663  
  1664  func (c *queryClient) GroupInfo(ctx context.Context, in *QueryGroupInfoRequest, opts ...grpc.CallOption) (*QueryGroupInfoResponse, error) {
  1665  	out := new(QueryGroupInfoResponse)
  1666  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupInfo", in, out, opts...)
  1667  	if err != nil {
  1668  		return nil, err
  1669  	}
  1670  	return out, nil
  1671  }
  1672  
  1673  func (c *queryClient) GroupPolicyInfo(ctx context.Context, in *QueryGroupPolicyInfoRequest, opts ...grpc.CallOption) (*QueryGroupPolicyInfoResponse, error) {
  1674  	out := new(QueryGroupPolicyInfoResponse)
  1675  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPolicyInfo", in, out, opts...)
  1676  	if err != nil {
  1677  		return nil, err
  1678  	}
  1679  	return out, nil
  1680  }
  1681  
  1682  func (c *queryClient) GroupMembers(ctx context.Context, in *QueryGroupMembersRequest, opts ...grpc.CallOption) (*QueryGroupMembersResponse, error) {
  1683  	out := new(QueryGroupMembersResponse)
  1684  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupMembers", in, out, opts...)
  1685  	if err != nil {
  1686  		return nil, err
  1687  	}
  1688  	return out, nil
  1689  }
  1690  
  1691  func (c *queryClient) GroupsByAdmin(ctx context.Context, in *QueryGroupsByAdminRequest, opts ...grpc.CallOption) (*QueryGroupsByAdminResponse, error) {
  1692  	out := new(QueryGroupsByAdminResponse)
  1693  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupsByAdmin", in, out, opts...)
  1694  	if err != nil {
  1695  		return nil, err
  1696  	}
  1697  	return out, nil
  1698  }
  1699  
  1700  func (c *queryClient) GroupPoliciesByGroup(ctx context.Context, in *QueryGroupPoliciesByGroupRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByGroupResponse, error) {
  1701  	out := new(QueryGroupPoliciesByGroupResponse)
  1702  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPoliciesByGroup", in, out, opts...)
  1703  	if err != nil {
  1704  		return nil, err
  1705  	}
  1706  	return out, nil
  1707  }
  1708  
  1709  func (c *queryClient) GroupPoliciesByAdmin(ctx context.Context, in *QueryGroupPoliciesByAdminRequest, opts ...grpc.CallOption) (*QueryGroupPoliciesByAdminResponse, error) {
  1710  	out := new(QueryGroupPoliciesByAdminResponse)
  1711  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupPoliciesByAdmin", in, out, opts...)
  1712  	if err != nil {
  1713  		return nil, err
  1714  	}
  1715  	return out, nil
  1716  }
  1717  
  1718  func (c *queryClient) Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error) {
  1719  	out := new(QueryProposalResponse)
  1720  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/Proposal", in, out, opts...)
  1721  	if err != nil {
  1722  		return nil, err
  1723  	}
  1724  	return out, nil
  1725  }
  1726  
  1727  func (c *queryClient) ProposalsByGroupPolicy(ctx context.Context, in *QueryProposalsByGroupPolicyRequest, opts ...grpc.CallOption) (*QueryProposalsByGroupPolicyResponse, error) {
  1728  	out := new(QueryProposalsByGroupPolicyResponse)
  1729  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/ProposalsByGroupPolicy", in, out, opts...)
  1730  	if err != nil {
  1731  		return nil, err
  1732  	}
  1733  	return out, nil
  1734  }
  1735  
  1736  func (c *queryClient) VoteByProposalVoter(ctx context.Context, in *QueryVoteByProposalVoterRequest, opts ...grpc.CallOption) (*QueryVoteByProposalVoterResponse, error) {
  1737  	out := new(QueryVoteByProposalVoterResponse)
  1738  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VoteByProposalVoter", in, out, opts...)
  1739  	if err != nil {
  1740  		return nil, err
  1741  	}
  1742  	return out, nil
  1743  }
  1744  
  1745  func (c *queryClient) VotesByProposal(ctx context.Context, in *QueryVotesByProposalRequest, opts ...grpc.CallOption) (*QueryVotesByProposalResponse, error) {
  1746  	out := new(QueryVotesByProposalResponse)
  1747  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VotesByProposal", in, out, opts...)
  1748  	if err != nil {
  1749  		return nil, err
  1750  	}
  1751  	return out, nil
  1752  }
  1753  
  1754  func (c *queryClient) VotesByVoter(ctx context.Context, in *QueryVotesByVoterRequest, opts ...grpc.CallOption) (*QueryVotesByVoterResponse, error) {
  1755  	out := new(QueryVotesByVoterResponse)
  1756  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/VotesByVoter", in, out, opts...)
  1757  	if err != nil {
  1758  		return nil, err
  1759  	}
  1760  	return out, nil
  1761  }
  1762  
  1763  func (c *queryClient) GroupsByMember(ctx context.Context, in *QueryGroupsByMemberRequest, opts ...grpc.CallOption) (*QueryGroupsByMemberResponse, error) {
  1764  	out := new(QueryGroupsByMemberResponse)
  1765  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/GroupsByMember", in, out, opts...)
  1766  	if err != nil {
  1767  		return nil, err
  1768  	}
  1769  	return out, nil
  1770  }
  1771  
  1772  func (c *queryClient) TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error) {
  1773  	out := new(QueryTallyResultResponse)
  1774  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/TallyResult", in, out, opts...)
  1775  	if err != nil {
  1776  		return nil, err
  1777  	}
  1778  	return out, nil
  1779  }
  1780  
  1781  func (c *queryClient) Groups(ctx context.Context, in *QueryGroupsRequest, opts ...grpc.CallOption) (*QueryGroupsResponse, error) {
  1782  	out := new(QueryGroupsResponse)
  1783  	err := c.cc.Invoke(ctx, "/cosmos.group.v1.Query/Groups", in, out, opts...)
  1784  	if err != nil {
  1785  		return nil, err
  1786  	}
  1787  	return out, nil
  1788  }
  1789  
  1790  // QueryServer is the server API for Query service.
  1791  type QueryServer interface {
  1792  	// GroupInfo queries group info based on group id.
  1793  	GroupInfo(context.Context, *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error)
  1794  	// GroupPolicyInfo queries group policy info based on account address of group policy.
  1795  	GroupPolicyInfo(context.Context, *QueryGroupPolicyInfoRequest) (*QueryGroupPolicyInfoResponse, error)
  1796  	// GroupMembers queries members of a group by group id.
  1797  	GroupMembers(context.Context, *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error)
  1798  	// GroupsByAdmin queries groups by admin address.
  1799  	GroupsByAdmin(context.Context, *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error)
  1800  	// GroupPoliciesByGroup queries group policies by group id.
  1801  	GroupPoliciesByGroup(context.Context, *QueryGroupPoliciesByGroupRequest) (*QueryGroupPoliciesByGroupResponse, error)
  1802  	// GroupPoliciesByAdmin queries group policies by admin address.
  1803  	GroupPoliciesByAdmin(context.Context, *QueryGroupPoliciesByAdminRequest) (*QueryGroupPoliciesByAdminResponse, error)
  1804  	// Proposal queries a proposal based on proposal id.
  1805  	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
  1806  	// ProposalsByGroupPolicy queries proposals based on account address of group policy.
  1807  	ProposalsByGroupPolicy(context.Context, *QueryProposalsByGroupPolicyRequest) (*QueryProposalsByGroupPolicyResponse, error)
  1808  	// VoteByProposalVoter queries a vote by proposal id and voter.
  1809  	VoteByProposalVoter(context.Context, *QueryVoteByProposalVoterRequest) (*QueryVoteByProposalVoterResponse, error)
  1810  	// VotesByProposal queries a vote by proposal id.
  1811  	VotesByProposal(context.Context, *QueryVotesByProposalRequest) (*QueryVotesByProposalResponse, error)
  1812  	// VotesByVoter queries a vote by voter.
  1813  	VotesByVoter(context.Context, *QueryVotesByVoterRequest) (*QueryVotesByVoterResponse, error)
  1814  	// GroupsByMember queries groups by member address.
  1815  	GroupsByMember(context.Context, *QueryGroupsByMemberRequest) (*QueryGroupsByMemberResponse, error)
  1816  	// TallyResult returns the tally result of a proposal. If the proposal is
  1817  	// still in voting period, then this query computes the current tally state,
  1818  	// which might not be final. On the other hand, if the proposal is final,
  1819  	// then it simply returns the `final_tally_result` state stored in the
  1820  	// proposal itself.
  1821  	TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
  1822  	// Groups queries all groups in state.
  1823  	//
  1824  	// Since: cosmos-sdk 0.47.1
  1825  	Groups(context.Context, *QueryGroupsRequest) (*QueryGroupsResponse, error)
  1826  }
  1827  
  1828  // UnimplementedQueryServer can be embedded to have forward compatible implementations.
  1829  type UnimplementedQueryServer struct {
  1830  }
  1831  
  1832  func (*UnimplementedQueryServer) GroupInfo(ctx context.Context, req *QueryGroupInfoRequest) (*QueryGroupInfoResponse, error) {
  1833  	return nil, status.Errorf(codes.Unimplemented, "method GroupInfo not implemented")
  1834  }
  1835  func (*UnimplementedQueryServer) GroupPolicyInfo(ctx context.Context, req *QueryGroupPolicyInfoRequest) (*QueryGroupPolicyInfoResponse, error) {
  1836  	return nil, status.Errorf(codes.Unimplemented, "method GroupPolicyInfo not implemented")
  1837  }
  1838  func (*UnimplementedQueryServer) GroupMembers(ctx context.Context, req *QueryGroupMembersRequest) (*QueryGroupMembersResponse, error) {
  1839  	return nil, status.Errorf(codes.Unimplemented, "method GroupMembers not implemented")
  1840  }
  1841  func (*UnimplementedQueryServer) GroupsByAdmin(ctx context.Context, req *QueryGroupsByAdminRequest) (*QueryGroupsByAdminResponse, error) {
  1842  	return nil, status.Errorf(codes.Unimplemented, "method GroupsByAdmin not implemented")
  1843  }
  1844  func (*UnimplementedQueryServer) GroupPoliciesByGroup(ctx context.Context, req *QueryGroupPoliciesByGroupRequest) (*QueryGroupPoliciesByGroupResponse, error) {
  1845  	return nil, status.Errorf(codes.Unimplemented, "method GroupPoliciesByGroup not implemented")
  1846  }
  1847  func (*UnimplementedQueryServer) GroupPoliciesByAdmin(ctx context.Context, req *QueryGroupPoliciesByAdminRequest) (*QueryGroupPoliciesByAdminResponse, error) {
  1848  	return nil, status.Errorf(codes.Unimplemented, "method GroupPoliciesByAdmin not implemented")
  1849  }
  1850  func (*UnimplementedQueryServer) Proposal(ctx context.Context, req *QueryProposalRequest) (*QueryProposalResponse, error) {
  1851  	return nil, status.Errorf(codes.Unimplemented, "method Proposal not implemented")
  1852  }
  1853  func (*UnimplementedQueryServer) ProposalsByGroupPolicy(ctx context.Context, req *QueryProposalsByGroupPolicyRequest) (*QueryProposalsByGroupPolicyResponse, error) {
  1854  	return nil, status.Errorf(codes.Unimplemented, "method ProposalsByGroupPolicy not implemented")
  1855  }
  1856  func (*UnimplementedQueryServer) VoteByProposalVoter(ctx context.Context, req *QueryVoteByProposalVoterRequest) (*QueryVoteByProposalVoterResponse, error) {
  1857  	return nil, status.Errorf(codes.Unimplemented, "method VoteByProposalVoter not implemented")
  1858  }
  1859  func (*UnimplementedQueryServer) VotesByProposal(ctx context.Context, req *QueryVotesByProposalRequest) (*QueryVotesByProposalResponse, error) {
  1860  	return nil, status.Errorf(codes.Unimplemented, "method VotesByProposal not implemented")
  1861  }
  1862  func (*UnimplementedQueryServer) VotesByVoter(ctx context.Context, req *QueryVotesByVoterRequest) (*QueryVotesByVoterResponse, error) {
  1863  	return nil, status.Errorf(codes.Unimplemented, "method VotesByVoter not implemented")
  1864  }
  1865  func (*UnimplementedQueryServer) GroupsByMember(ctx context.Context, req *QueryGroupsByMemberRequest) (*QueryGroupsByMemberResponse, error) {
  1866  	return nil, status.Errorf(codes.Unimplemented, "method GroupsByMember not implemented")
  1867  }
  1868  func (*UnimplementedQueryServer) TallyResult(ctx context.Context, req *QueryTallyResultRequest) (*QueryTallyResultResponse, error) {
  1869  	return nil, status.Errorf(codes.Unimplemented, "method TallyResult not implemented")
  1870  }
  1871  func (*UnimplementedQueryServer) Groups(ctx context.Context, req *QueryGroupsRequest) (*QueryGroupsResponse, error) {
  1872  	return nil, status.Errorf(codes.Unimplemented, "method Groups not implemented")
  1873  }
  1874  
  1875  func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
  1876  	s.RegisterService(&_Query_serviceDesc, srv)
  1877  }
  1878  
  1879  func _Query_GroupInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1880  	in := new(QueryGroupInfoRequest)
  1881  	if err := dec(in); err != nil {
  1882  		return nil, err
  1883  	}
  1884  	if interceptor == nil {
  1885  		return srv.(QueryServer).GroupInfo(ctx, in)
  1886  	}
  1887  	info := &grpc.UnaryServerInfo{
  1888  		Server:     srv,
  1889  		FullMethod: "/cosmos.group.v1.Query/GroupInfo",
  1890  	}
  1891  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1892  		return srv.(QueryServer).GroupInfo(ctx, req.(*QueryGroupInfoRequest))
  1893  	}
  1894  	return interceptor(ctx, in, info, handler)
  1895  }
  1896  
  1897  func _Query_GroupPolicyInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1898  	in := new(QueryGroupPolicyInfoRequest)
  1899  	if err := dec(in); err != nil {
  1900  		return nil, err
  1901  	}
  1902  	if interceptor == nil {
  1903  		return srv.(QueryServer).GroupPolicyInfo(ctx, in)
  1904  	}
  1905  	info := &grpc.UnaryServerInfo{
  1906  		Server:     srv,
  1907  		FullMethod: "/cosmos.group.v1.Query/GroupPolicyInfo",
  1908  	}
  1909  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1910  		return srv.(QueryServer).GroupPolicyInfo(ctx, req.(*QueryGroupPolicyInfoRequest))
  1911  	}
  1912  	return interceptor(ctx, in, info, handler)
  1913  }
  1914  
  1915  func _Query_GroupMembers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1916  	in := new(QueryGroupMembersRequest)
  1917  	if err := dec(in); err != nil {
  1918  		return nil, err
  1919  	}
  1920  	if interceptor == nil {
  1921  		return srv.(QueryServer).GroupMembers(ctx, in)
  1922  	}
  1923  	info := &grpc.UnaryServerInfo{
  1924  		Server:     srv,
  1925  		FullMethod: "/cosmos.group.v1.Query/GroupMembers",
  1926  	}
  1927  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1928  		return srv.(QueryServer).GroupMembers(ctx, req.(*QueryGroupMembersRequest))
  1929  	}
  1930  	return interceptor(ctx, in, info, handler)
  1931  }
  1932  
  1933  func _Query_GroupsByAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1934  	in := new(QueryGroupsByAdminRequest)
  1935  	if err := dec(in); err != nil {
  1936  		return nil, err
  1937  	}
  1938  	if interceptor == nil {
  1939  		return srv.(QueryServer).GroupsByAdmin(ctx, in)
  1940  	}
  1941  	info := &grpc.UnaryServerInfo{
  1942  		Server:     srv,
  1943  		FullMethod: "/cosmos.group.v1.Query/GroupsByAdmin",
  1944  	}
  1945  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1946  		return srv.(QueryServer).GroupsByAdmin(ctx, req.(*QueryGroupsByAdminRequest))
  1947  	}
  1948  	return interceptor(ctx, in, info, handler)
  1949  }
  1950  
  1951  func _Query_GroupPoliciesByGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1952  	in := new(QueryGroupPoliciesByGroupRequest)
  1953  	if err := dec(in); err != nil {
  1954  		return nil, err
  1955  	}
  1956  	if interceptor == nil {
  1957  		return srv.(QueryServer).GroupPoliciesByGroup(ctx, in)
  1958  	}
  1959  	info := &grpc.UnaryServerInfo{
  1960  		Server:     srv,
  1961  		FullMethod: "/cosmos.group.v1.Query/GroupPoliciesByGroup",
  1962  	}
  1963  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1964  		return srv.(QueryServer).GroupPoliciesByGroup(ctx, req.(*QueryGroupPoliciesByGroupRequest))
  1965  	}
  1966  	return interceptor(ctx, in, info, handler)
  1967  }
  1968  
  1969  func _Query_GroupPoliciesByAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1970  	in := new(QueryGroupPoliciesByAdminRequest)
  1971  	if err := dec(in); err != nil {
  1972  		return nil, err
  1973  	}
  1974  	if interceptor == nil {
  1975  		return srv.(QueryServer).GroupPoliciesByAdmin(ctx, in)
  1976  	}
  1977  	info := &grpc.UnaryServerInfo{
  1978  		Server:     srv,
  1979  		FullMethod: "/cosmos.group.v1.Query/GroupPoliciesByAdmin",
  1980  	}
  1981  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1982  		return srv.(QueryServer).GroupPoliciesByAdmin(ctx, req.(*QueryGroupPoliciesByAdminRequest))
  1983  	}
  1984  	return interceptor(ctx, in, info, handler)
  1985  }
  1986  
  1987  func _Query_Proposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1988  	in := new(QueryProposalRequest)
  1989  	if err := dec(in); err != nil {
  1990  		return nil, err
  1991  	}
  1992  	if interceptor == nil {
  1993  		return srv.(QueryServer).Proposal(ctx, in)
  1994  	}
  1995  	info := &grpc.UnaryServerInfo{
  1996  		Server:     srv,
  1997  		FullMethod: "/cosmos.group.v1.Query/Proposal",
  1998  	}
  1999  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2000  		return srv.(QueryServer).Proposal(ctx, req.(*QueryProposalRequest))
  2001  	}
  2002  	return interceptor(ctx, in, info, handler)
  2003  }
  2004  
  2005  func _Query_ProposalsByGroupPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2006  	in := new(QueryProposalsByGroupPolicyRequest)
  2007  	if err := dec(in); err != nil {
  2008  		return nil, err
  2009  	}
  2010  	if interceptor == nil {
  2011  		return srv.(QueryServer).ProposalsByGroupPolicy(ctx, in)
  2012  	}
  2013  	info := &grpc.UnaryServerInfo{
  2014  		Server:     srv,
  2015  		FullMethod: "/cosmos.group.v1.Query/ProposalsByGroupPolicy",
  2016  	}
  2017  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2018  		return srv.(QueryServer).ProposalsByGroupPolicy(ctx, req.(*QueryProposalsByGroupPolicyRequest))
  2019  	}
  2020  	return interceptor(ctx, in, info, handler)
  2021  }
  2022  
  2023  func _Query_VoteByProposalVoter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2024  	in := new(QueryVoteByProposalVoterRequest)
  2025  	if err := dec(in); err != nil {
  2026  		return nil, err
  2027  	}
  2028  	if interceptor == nil {
  2029  		return srv.(QueryServer).VoteByProposalVoter(ctx, in)
  2030  	}
  2031  	info := &grpc.UnaryServerInfo{
  2032  		Server:     srv,
  2033  		FullMethod: "/cosmos.group.v1.Query/VoteByProposalVoter",
  2034  	}
  2035  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2036  		return srv.(QueryServer).VoteByProposalVoter(ctx, req.(*QueryVoteByProposalVoterRequest))
  2037  	}
  2038  	return interceptor(ctx, in, info, handler)
  2039  }
  2040  
  2041  func _Query_VotesByProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2042  	in := new(QueryVotesByProposalRequest)
  2043  	if err := dec(in); err != nil {
  2044  		return nil, err
  2045  	}
  2046  	if interceptor == nil {
  2047  		return srv.(QueryServer).VotesByProposal(ctx, in)
  2048  	}
  2049  	info := &grpc.UnaryServerInfo{
  2050  		Server:     srv,
  2051  		FullMethod: "/cosmos.group.v1.Query/VotesByProposal",
  2052  	}
  2053  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2054  		return srv.(QueryServer).VotesByProposal(ctx, req.(*QueryVotesByProposalRequest))
  2055  	}
  2056  	return interceptor(ctx, in, info, handler)
  2057  }
  2058  
  2059  func _Query_VotesByVoter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2060  	in := new(QueryVotesByVoterRequest)
  2061  	if err := dec(in); err != nil {
  2062  		return nil, err
  2063  	}
  2064  	if interceptor == nil {
  2065  		return srv.(QueryServer).VotesByVoter(ctx, in)
  2066  	}
  2067  	info := &grpc.UnaryServerInfo{
  2068  		Server:     srv,
  2069  		FullMethod: "/cosmos.group.v1.Query/VotesByVoter",
  2070  	}
  2071  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2072  		return srv.(QueryServer).VotesByVoter(ctx, req.(*QueryVotesByVoterRequest))
  2073  	}
  2074  	return interceptor(ctx, in, info, handler)
  2075  }
  2076  
  2077  func _Query_GroupsByMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2078  	in := new(QueryGroupsByMemberRequest)
  2079  	if err := dec(in); err != nil {
  2080  		return nil, err
  2081  	}
  2082  	if interceptor == nil {
  2083  		return srv.(QueryServer).GroupsByMember(ctx, in)
  2084  	}
  2085  	info := &grpc.UnaryServerInfo{
  2086  		Server:     srv,
  2087  		FullMethod: "/cosmos.group.v1.Query/GroupsByMember",
  2088  	}
  2089  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2090  		return srv.(QueryServer).GroupsByMember(ctx, req.(*QueryGroupsByMemberRequest))
  2091  	}
  2092  	return interceptor(ctx, in, info, handler)
  2093  }
  2094  
  2095  func _Query_TallyResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2096  	in := new(QueryTallyResultRequest)
  2097  	if err := dec(in); err != nil {
  2098  		return nil, err
  2099  	}
  2100  	if interceptor == nil {
  2101  		return srv.(QueryServer).TallyResult(ctx, in)
  2102  	}
  2103  	info := &grpc.UnaryServerInfo{
  2104  		Server:     srv,
  2105  		FullMethod: "/cosmos.group.v1.Query/TallyResult",
  2106  	}
  2107  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2108  		return srv.(QueryServer).TallyResult(ctx, req.(*QueryTallyResultRequest))
  2109  	}
  2110  	return interceptor(ctx, in, info, handler)
  2111  }
  2112  
  2113  func _Query_Groups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2114  	in := new(QueryGroupsRequest)
  2115  	if err := dec(in); err != nil {
  2116  		return nil, err
  2117  	}
  2118  	if interceptor == nil {
  2119  		return srv.(QueryServer).Groups(ctx, in)
  2120  	}
  2121  	info := &grpc.UnaryServerInfo{
  2122  		Server:     srv,
  2123  		FullMethod: "/cosmos.group.v1.Query/Groups",
  2124  	}
  2125  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2126  		return srv.(QueryServer).Groups(ctx, req.(*QueryGroupsRequest))
  2127  	}
  2128  	return interceptor(ctx, in, info, handler)
  2129  }
  2130  
  2131  var _Query_serviceDesc = grpc.ServiceDesc{
  2132  	ServiceName: "cosmos.group.v1.Query",
  2133  	HandlerType: (*QueryServer)(nil),
  2134  	Methods: []grpc.MethodDesc{
  2135  		{
  2136  			MethodName: "GroupInfo",
  2137  			Handler:    _Query_GroupInfo_Handler,
  2138  		},
  2139  		{
  2140  			MethodName: "GroupPolicyInfo",
  2141  			Handler:    _Query_GroupPolicyInfo_Handler,
  2142  		},
  2143  		{
  2144  			MethodName: "GroupMembers",
  2145  			Handler:    _Query_GroupMembers_Handler,
  2146  		},
  2147  		{
  2148  			MethodName: "GroupsByAdmin",
  2149  			Handler:    _Query_GroupsByAdmin_Handler,
  2150  		},
  2151  		{
  2152  			MethodName: "GroupPoliciesByGroup",
  2153  			Handler:    _Query_GroupPoliciesByGroup_Handler,
  2154  		},
  2155  		{
  2156  			MethodName: "GroupPoliciesByAdmin",
  2157  			Handler:    _Query_GroupPoliciesByAdmin_Handler,
  2158  		},
  2159  		{
  2160  			MethodName: "Proposal",
  2161  			Handler:    _Query_Proposal_Handler,
  2162  		},
  2163  		{
  2164  			MethodName: "ProposalsByGroupPolicy",
  2165  			Handler:    _Query_ProposalsByGroupPolicy_Handler,
  2166  		},
  2167  		{
  2168  			MethodName: "VoteByProposalVoter",
  2169  			Handler:    _Query_VoteByProposalVoter_Handler,
  2170  		},
  2171  		{
  2172  			MethodName: "VotesByProposal",
  2173  			Handler:    _Query_VotesByProposal_Handler,
  2174  		},
  2175  		{
  2176  			MethodName: "VotesByVoter",
  2177  			Handler:    _Query_VotesByVoter_Handler,
  2178  		},
  2179  		{
  2180  			MethodName: "GroupsByMember",
  2181  			Handler:    _Query_GroupsByMember_Handler,
  2182  		},
  2183  		{
  2184  			MethodName: "TallyResult",
  2185  			Handler:    _Query_TallyResult_Handler,
  2186  		},
  2187  		{
  2188  			MethodName: "Groups",
  2189  			Handler:    _Query_Groups_Handler,
  2190  		},
  2191  	},
  2192  	Streams:  []grpc.StreamDesc{},
  2193  	Metadata: "cosmos/group/v1/query.proto",
  2194  }
  2195  
  2196  func (m *QueryGroupInfoRequest) Marshal() (dAtA []byte, err error) {
  2197  	size := m.Size()
  2198  	dAtA = make([]byte, size)
  2199  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2200  	if err != nil {
  2201  		return nil, err
  2202  	}
  2203  	return dAtA[:n], nil
  2204  }
  2205  
  2206  func (m *QueryGroupInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  2207  	size := m.Size()
  2208  	return m.MarshalToSizedBuffer(dAtA[:size])
  2209  }
  2210  
  2211  func (m *QueryGroupInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2212  	i := len(dAtA)
  2213  	_ = i
  2214  	var l int
  2215  	_ = l
  2216  	if m.GroupId != 0 {
  2217  		i = encodeVarintQuery(dAtA, i, uint64(m.GroupId))
  2218  		i--
  2219  		dAtA[i] = 0x8
  2220  	}
  2221  	return len(dAtA) - i, nil
  2222  }
  2223  
  2224  func (m *QueryGroupInfoResponse) Marshal() (dAtA []byte, err error) {
  2225  	size := m.Size()
  2226  	dAtA = make([]byte, size)
  2227  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2228  	if err != nil {
  2229  		return nil, err
  2230  	}
  2231  	return dAtA[:n], nil
  2232  }
  2233  
  2234  func (m *QueryGroupInfoResponse) MarshalTo(dAtA []byte) (int, error) {
  2235  	size := m.Size()
  2236  	return m.MarshalToSizedBuffer(dAtA[:size])
  2237  }
  2238  
  2239  func (m *QueryGroupInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2240  	i := len(dAtA)
  2241  	_ = i
  2242  	var l int
  2243  	_ = l
  2244  	if m.Info != nil {
  2245  		{
  2246  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  2247  			if err != nil {
  2248  				return 0, err
  2249  			}
  2250  			i -= size
  2251  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2252  		}
  2253  		i--
  2254  		dAtA[i] = 0xa
  2255  	}
  2256  	return len(dAtA) - i, nil
  2257  }
  2258  
  2259  func (m *QueryGroupPolicyInfoRequest) Marshal() (dAtA []byte, err error) {
  2260  	size := m.Size()
  2261  	dAtA = make([]byte, size)
  2262  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2263  	if err != nil {
  2264  		return nil, err
  2265  	}
  2266  	return dAtA[:n], nil
  2267  }
  2268  
  2269  func (m *QueryGroupPolicyInfoRequest) MarshalTo(dAtA []byte) (int, error) {
  2270  	size := m.Size()
  2271  	return m.MarshalToSizedBuffer(dAtA[:size])
  2272  }
  2273  
  2274  func (m *QueryGroupPolicyInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2275  	i := len(dAtA)
  2276  	_ = i
  2277  	var l int
  2278  	_ = l
  2279  	if len(m.Address) > 0 {
  2280  		i -= len(m.Address)
  2281  		copy(dAtA[i:], m.Address)
  2282  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  2283  		i--
  2284  		dAtA[i] = 0xa
  2285  	}
  2286  	return len(dAtA) - i, nil
  2287  }
  2288  
  2289  func (m *QueryGroupPolicyInfoResponse) Marshal() (dAtA []byte, err error) {
  2290  	size := m.Size()
  2291  	dAtA = make([]byte, size)
  2292  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2293  	if err != nil {
  2294  		return nil, err
  2295  	}
  2296  	return dAtA[:n], nil
  2297  }
  2298  
  2299  func (m *QueryGroupPolicyInfoResponse) MarshalTo(dAtA []byte) (int, error) {
  2300  	size := m.Size()
  2301  	return m.MarshalToSizedBuffer(dAtA[:size])
  2302  }
  2303  
  2304  func (m *QueryGroupPolicyInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2305  	i := len(dAtA)
  2306  	_ = i
  2307  	var l int
  2308  	_ = l
  2309  	if m.Info != nil {
  2310  		{
  2311  			size, err := m.Info.MarshalToSizedBuffer(dAtA[:i])
  2312  			if err != nil {
  2313  				return 0, err
  2314  			}
  2315  			i -= size
  2316  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2317  		}
  2318  		i--
  2319  		dAtA[i] = 0xa
  2320  	}
  2321  	return len(dAtA) - i, nil
  2322  }
  2323  
  2324  func (m *QueryGroupMembersRequest) Marshal() (dAtA []byte, err error) {
  2325  	size := m.Size()
  2326  	dAtA = make([]byte, size)
  2327  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2328  	if err != nil {
  2329  		return nil, err
  2330  	}
  2331  	return dAtA[:n], nil
  2332  }
  2333  
  2334  func (m *QueryGroupMembersRequest) MarshalTo(dAtA []byte) (int, error) {
  2335  	size := m.Size()
  2336  	return m.MarshalToSizedBuffer(dAtA[:size])
  2337  }
  2338  
  2339  func (m *QueryGroupMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2340  	i := len(dAtA)
  2341  	_ = i
  2342  	var l int
  2343  	_ = l
  2344  	if m.Pagination != nil {
  2345  		{
  2346  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2347  			if err != nil {
  2348  				return 0, err
  2349  			}
  2350  			i -= size
  2351  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2352  		}
  2353  		i--
  2354  		dAtA[i] = 0x12
  2355  	}
  2356  	if m.GroupId != 0 {
  2357  		i = encodeVarintQuery(dAtA, i, uint64(m.GroupId))
  2358  		i--
  2359  		dAtA[i] = 0x8
  2360  	}
  2361  	return len(dAtA) - i, nil
  2362  }
  2363  
  2364  func (m *QueryGroupMembersResponse) Marshal() (dAtA []byte, err error) {
  2365  	size := m.Size()
  2366  	dAtA = make([]byte, size)
  2367  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2368  	if err != nil {
  2369  		return nil, err
  2370  	}
  2371  	return dAtA[:n], nil
  2372  }
  2373  
  2374  func (m *QueryGroupMembersResponse) MarshalTo(dAtA []byte) (int, error) {
  2375  	size := m.Size()
  2376  	return m.MarshalToSizedBuffer(dAtA[:size])
  2377  }
  2378  
  2379  func (m *QueryGroupMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2380  	i := len(dAtA)
  2381  	_ = i
  2382  	var l int
  2383  	_ = l
  2384  	if m.Pagination != nil {
  2385  		{
  2386  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2387  			if err != nil {
  2388  				return 0, err
  2389  			}
  2390  			i -= size
  2391  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2392  		}
  2393  		i--
  2394  		dAtA[i] = 0x12
  2395  	}
  2396  	if len(m.Members) > 0 {
  2397  		for iNdEx := len(m.Members) - 1; iNdEx >= 0; iNdEx-- {
  2398  			{
  2399  				size, err := m.Members[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2400  				if err != nil {
  2401  					return 0, err
  2402  				}
  2403  				i -= size
  2404  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2405  			}
  2406  			i--
  2407  			dAtA[i] = 0xa
  2408  		}
  2409  	}
  2410  	return len(dAtA) - i, nil
  2411  }
  2412  
  2413  func (m *QueryGroupsByAdminRequest) Marshal() (dAtA []byte, err error) {
  2414  	size := m.Size()
  2415  	dAtA = make([]byte, size)
  2416  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2417  	if err != nil {
  2418  		return nil, err
  2419  	}
  2420  	return dAtA[:n], nil
  2421  }
  2422  
  2423  func (m *QueryGroupsByAdminRequest) MarshalTo(dAtA []byte) (int, error) {
  2424  	size := m.Size()
  2425  	return m.MarshalToSizedBuffer(dAtA[:size])
  2426  }
  2427  
  2428  func (m *QueryGroupsByAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2429  	i := len(dAtA)
  2430  	_ = i
  2431  	var l int
  2432  	_ = l
  2433  	if m.Pagination != nil {
  2434  		{
  2435  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2436  			if err != nil {
  2437  				return 0, err
  2438  			}
  2439  			i -= size
  2440  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2441  		}
  2442  		i--
  2443  		dAtA[i] = 0x12
  2444  	}
  2445  	if len(m.Admin) > 0 {
  2446  		i -= len(m.Admin)
  2447  		copy(dAtA[i:], m.Admin)
  2448  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Admin)))
  2449  		i--
  2450  		dAtA[i] = 0xa
  2451  	}
  2452  	return len(dAtA) - i, nil
  2453  }
  2454  
  2455  func (m *QueryGroupsByAdminResponse) Marshal() (dAtA []byte, err error) {
  2456  	size := m.Size()
  2457  	dAtA = make([]byte, size)
  2458  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2459  	if err != nil {
  2460  		return nil, err
  2461  	}
  2462  	return dAtA[:n], nil
  2463  }
  2464  
  2465  func (m *QueryGroupsByAdminResponse) MarshalTo(dAtA []byte) (int, error) {
  2466  	size := m.Size()
  2467  	return m.MarshalToSizedBuffer(dAtA[:size])
  2468  }
  2469  
  2470  func (m *QueryGroupsByAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2471  	i := len(dAtA)
  2472  	_ = i
  2473  	var l int
  2474  	_ = l
  2475  	if m.Pagination != nil {
  2476  		{
  2477  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2478  			if err != nil {
  2479  				return 0, err
  2480  			}
  2481  			i -= size
  2482  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2483  		}
  2484  		i--
  2485  		dAtA[i] = 0x12
  2486  	}
  2487  	if len(m.Groups) > 0 {
  2488  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
  2489  			{
  2490  				size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2491  				if err != nil {
  2492  					return 0, err
  2493  				}
  2494  				i -= size
  2495  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2496  			}
  2497  			i--
  2498  			dAtA[i] = 0xa
  2499  		}
  2500  	}
  2501  	return len(dAtA) - i, nil
  2502  }
  2503  
  2504  func (m *QueryGroupPoliciesByGroupRequest) Marshal() (dAtA []byte, err error) {
  2505  	size := m.Size()
  2506  	dAtA = make([]byte, size)
  2507  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2508  	if err != nil {
  2509  		return nil, err
  2510  	}
  2511  	return dAtA[:n], nil
  2512  }
  2513  
  2514  func (m *QueryGroupPoliciesByGroupRequest) MarshalTo(dAtA []byte) (int, error) {
  2515  	size := m.Size()
  2516  	return m.MarshalToSizedBuffer(dAtA[:size])
  2517  }
  2518  
  2519  func (m *QueryGroupPoliciesByGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2520  	i := len(dAtA)
  2521  	_ = i
  2522  	var l int
  2523  	_ = l
  2524  	if m.Pagination != nil {
  2525  		{
  2526  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2527  			if err != nil {
  2528  				return 0, err
  2529  			}
  2530  			i -= size
  2531  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2532  		}
  2533  		i--
  2534  		dAtA[i] = 0x12
  2535  	}
  2536  	if m.GroupId != 0 {
  2537  		i = encodeVarintQuery(dAtA, i, uint64(m.GroupId))
  2538  		i--
  2539  		dAtA[i] = 0x8
  2540  	}
  2541  	return len(dAtA) - i, nil
  2542  }
  2543  
  2544  func (m *QueryGroupPoliciesByGroupResponse) Marshal() (dAtA []byte, err error) {
  2545  	size := m.Size()
  2546  	dAtA = make([]byte, size)
  2547  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2548  	if err != nil {
  2549  		return nil, err
  2550  	}
  2551  	return dAtA[:n], nil
  2552  }
  2553  
  2554  func (m *QueryGroupPoliciesByGroupResponse) MarshalTo(dAtA []byte) (int, error) {
  2555  	size := m.Size()
  2556  	return m.MarshalToSizedBuffer(dAtA[:size])
  2557  }
  2558  
  2559  func (m *QueryGroupPoliciesByGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2560  	i := len(dAtA)
  2561  	_ = i
  2562  	var l int
  2563  	_ = l
  2564  	if m.Pagination != nil {
  2565  		{
  2566  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2567  			if err != nil {
  2568  				return 0, err
  2569  			}
  2570  			i -= size
  2571  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2572  		}
  2573  		i--
  2574  		dAtA[i] = 0x12
  2575  	}
  2576  	if len(m.GroupPolicies) > 0 {
  2577  		for iNdEx := len(m.GroupPolicies) - 1; iNdEx >= 0; iNdEx-- {
  2578  			{
  2579  				size, err := m.GroupPolicies[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2580  				if err != nil {
  2581  					return 0, err
  2582  				}
  2583  				i -= size
  2584  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2585  			}
  2586  			i--
  2587  			dAtA[i] = 0xa
  2588  		}
  2589  	}
  2590  	return len(dAtA) - i, nil
  2591  }
  2592  
  2593  func (m *QueryGroupPoliciesByAdminRequest) Marshal() (dAtA []byte, err error) {
  2594  	size := m.Size()
  2595  	dAtA = make([]byte, size)
  2596  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2597  	if err != nil {
  2598  		return nil, err
  2599  	}
  2600  	return dAtA[:n], nil
  2601  }
  2602  
  2603  func (m *QueryGroupPoliciesByAdminRequest) MarshalTo(dAtA []byte) (int, error) {
  2604  	size := m.Size()
  2605  	return m.MarshalToSizedBuffer(dAtA[:size])
  2606  }
  2607  
  2608  func (m *QueryGroupPoliciesByAdminRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2609  	i := len(dAtA)
  2610  	_ = i
  2611  	var l int
  2612  	_ = l
  2613  	if m.Pagination != nil {
  2614  		{
  2615  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2616  			if err != nil {
  2617  				return 0, err
  2618  			}
  2619  			i -= size
  2620  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2621  		}
  2622  		i--
  2623  		dAtA[i] = 0x12
  2624  	}
  2625  	if len(m.Admin) > 0 {
  2626  		i -= len(m.Admin)
  2627  		copy(dAtA[i:], m.Admin)
  2628  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Admin)))
  2629  		i--
  2630  		dAtA[i] = 0xa
  2631  	}
  2632  	return len(dAtA) - i, nil
  2633  }
  2634  
  2635  func (m *QueryGroupPoliciesByAdminResponse) Marshal() (dAtA []byte, err error) {
  2636  	size := m.Size()
  2637  	dAtA = make([]byte, size)
  2638  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2639  	if err != nil {
  2640  		return nil, err
  2641  	}
  2642  	return dAtA[:n], nil
  2643  }
  2644  
  2645  func (m *QueryGroupPoliciesByAdminResponse) MarshalTo(dAtA []byte) (int, error) {
  2646  	size := m.Size()
  2647  	return m.MarshalToSizedBuffer(dAtA[:size])
  2648  }
  2649  
  2650  func (m *QueryGroupPoliciesByAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2651  	i := len(dAtA)
  2652  	_ = i
  2653  	var l int
  2654  	_ = l
  2655  	if m.Pagination != nil {
  2656  		{
  2657  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2658  			if err != nil {
  2659  				return 0, err
  2660  			}
  2661  			i -= size
  2662  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2663  		}
  2664  		i--
  2665  		dAtA[i] = 0x12
  2666  	}
  2667  	if len(m.GroupPolicies) > 0 {
  2668  		for iNdEx := len(m.GroupPolicies) - 1; iNdEx >= 0; iNdEx-- {
  2669  			{
  2670  				size, err := m.GroupPolicies[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2671  				if err != nil {
  2672  					return 0, err
  2673  				}
  2674  				i -= size
  2675  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2676  			}
  2677  			i--
  2678  			dAtA[i] = 0xa
  2679  		}
  2680  	}
  2681  	return len(dAtA) - i, nil
  2682  }
  2683  
  2684  func (m *QueryProposalRequest) Marshal() (dAtA []byte, err error) {
  2685  	size := m.Size()
  2686  	dAtA = make([]byte, size)
  2687  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2688  	if err != nil {
  2689  		return nil, err
  2690  	}
  2691  	return dAtA[:n], nil
  2692  }
  2693  
  2694  func (m *QueryProposalRequest) MarshalTo(dAtA []byte) (int, error) {
  2695  	size := m.Size()
  2696  	return m.MarshalToSizedBuffer(dAtA[:size])
  2697  }
  2698  
  2699  func (m *QueryProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2700  	i := len(dAtA)
  2701  	_ = i
  2702  	var l int
  2703  	_ = l
  2704  	if m.ProposalId != 0 {
  2705  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  2706  		i--
  2707  		dAtA[i] = 0x8
  2708  	}
  2709  	return len(dAtA) - i, nil
  2710  }
  2711  
  2712  func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error) {
  2713  	size := m.Size()
  2714  	dAtA = make([]byte, size)
  2715  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2716  	if err != nil {
  2717  		return nil, err
  2718  	}
  2719  	return dAtA[:n], nil
  2720  }
  2721  
  2722  func (m *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error) {
  2723  	size := m.Size()
  2724  	return m.MarshalToSizedBuffer(dAtA[:size])
  2725  }
  2726  
  2727  func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2728  	i := len(dAtA)
  2729  	_ = i
  2730  	var l int
  2731  	_ = l
  2732  	if m.Proposal != nil {
  2733  		{
  2734  			size, err := m.Proposal.MarshalToSizedBuffer(dAtA[:i])
  2735  			if err != nil {
  2736  				return 0, err
  2737  			}
  2738  			i -= size
  2739  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2740  		}
  2741  		i--
  2742  		dAtA[i] = 0xa
  2743  	}
  2744  	return len(dAtA) - i, nil
  2745  }
  2746  
  2747  func (m *QueryProposalsByGroupPolicyRequest) Marshal() (dAtA []byte, err error) {
  2748  	size := m.Size()
  2749  	dAtA = make([]byte, size)
  2750  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2751  	if err != nil {
  2752  		return nil, err
  2753  	}
  2754  	return dAtA[:n], nil
  2755  }
  2756  
  2757  func (m *QueryProposalsByGroupPolicyRequest) MarshalTo(dAtA []byte) (int, error) {
  2758  	size := m.Size()
  2759  	return m.MarshalToSizedBuffer(dAtA[:size])
  2760  }
  2761  
  2762  func (m *QueryProposalsByGroupPolicyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2763  	i := len(dAtA)
  2764  	_ = i
  2765  	var l int
  2766  	_ = l
  2767  	if m.Pagination != nil {
  2768  		{
  2769  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2770  			if err != nil {
  2771  				return 0, err
  2772  			}
  2773  			i -= size
  2774  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2775  		}
  2776  		i--
  2777  		dAtA[i] = 0x12
  2778  	}
  2779  	if len(m.Address) > 0 {
  2780  		i -= len(m.Address)
  2781  		copy(dAtA[i:], m.Address)
  2782  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  2783  		i--
  2784  		dAtA[i] = 0xa
  2785  	}
  2786  	return len(dAtA) - i, nil
  2787  }
  2788  
  2789  func (m *QueryProposalsByGroupPolicyResponse) Marshal() (dAtA []byte, err error) {
  2790  	size := m.Size()
  2791  	dAtA = make([]byte, size)
  2792  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2793  	if err != nil {
  2794  		return nil, err
  2795  	}
  2796  	return dAtA[:n], nil
  2797  }
  2798  
  2799  func (m *QueryProposalsByGroupPolicyResponse) MarshalTo(dAtA []byte) (int, error) {
  2800  	size := m.Size()
  2801  	return m.MarshalToSizedBuffer(dAtA[:size])
  2802  }
  2803  
  2804  func (m *QueryProposalsByGroupPolicyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2805  	i := len(dAtA)
  2806  	_ = i
  2807  	var l int
  2808  	_ = l
  2809  	if m.Pagination != nil {
  2810  		{
  2811  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2812  			if err != nil {
  2813  				return 0, err
  2814  			}
  2815  			i -= size
  2816  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2817  		}
  2818  		i--
  2819  		dAtA[i] = 0x12
  2820  	}
  2821  	if len(m.Proposals) > 0 {
  2822  		for iNdEx := len(m.Proposals) - 1; iNdEx >= 0; iNdEx-- {
  2823  			{
  2824  				size, err := m.Proposals[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2825  				if err != nil {
  2826  					return 0, err
  2827  				}
  2828  				i -= size
  2829  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2830  			}
  2831  			i--
  2832  			dAtA[i] = 0xa
  2833  		}
  2834  	}
  2835  	return len(dAtA) - i, nil
  2836  }
  2837  
  2838  func (m *QueryVoteByProposalVoterRequest) Marshal() (dAtA []byte, err error) {
  2839  	size := m.Size()
  2840  	dAtA = make([]byte, size)
  2841  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2842  	if err != nil {
  2843  		return nil, err
  2844  	}
  2845  	return dAtA[:n], nil
  2846  }
  2847  
  2848  func (m *QueryVoteByProposalVoterRequest) MarshalTo(dAtA []byte) (int, error) {
  2849  	size := m.Size()
  2850  	return m.MarshalToSizedBuffer(dAtA[:size])
  2851  }
  2852  
  2853  func (m *QueryVoteByProposalVoterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2854  	i := len(dAtA)
  2855  	_ = i
  2856  	var l int
  2857  	_ = l
  2858  	if len(m.Voter) > 0 {
  2859  		i -= len(m.Voter)
  2860  		copy(dAtA[i:], m.Voter)
  2861  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Voter)))
  2862  		i--
  2863  		dAtA[i] = 0x12
  2864  	}
  2865  	if m.ProposalId != 0 {
  2866  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  2867  		i--
  2868  		dAtA[i] = 0x8
  2869  	}
  2870  	return len(dAtA) - i, nil
  2871  }
  2872  
  2873  func (m *QueryVoteByProposalVoterResponse) Marshal() (dAtA []byte, err error) {
  2874  	size := m.Size()
  2875  	dAtA = make([]byte, size)
  2876  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2877  	if err != nil {
  2878  		return nil, err
  2879  	}
  2880  	return dAtA[:n], nil
  2881  }
  2882  
  2883  func (m *QueryVoteByProposalVoterResponse) MarshalTo(dAtA []byte) (int, error) {
  2884  	size := m.Size()
  2885  	return m.MarshalToSizedBuffer(dAtA[:size])
  2886  }
  2887  
  2888  func (m *QueryVoteByProposalVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2889  	i := len(dAtA)
  2890  	_ = i
  2891  	var l int
  2892  	_ = l
  2893  	if m.Vote != nil {
  2894  		{
  2895  			size, err := m.Vote.MarshalToSizedBuffer(dAtA[:i])
  2896  			if err != nil {
  2897  				return 0, err
  2898  			}
  2899  			i -= size
  2900  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2901  		}
  2902  		i--
  2903  		dAtA[i] = 0xa
  2904  	}
  2905  	return len(dAtA) - i, nil
  2906  }
  2907  
  2908  func (m *QueryVotesByProposalRequest) Marshal() (dAtA []byte, err error) {
  2909  	size := m.Size()
  2910  	dAtA = make([]byte, size)
  2911  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2912  	if err != nil {
  2913  		return nil, err
  2914  	}
  2915  	return dAtA[:n], nil
  2916  }
  2917  
  2918  func (m *QueryVotesByProposalRequest) MarshalTo(dAtA []byte) (int, error) {
  2919  	size := m.Size()
  2920  	return m.MarshalToSizedBuffer(dAtA[:size])
  2921  }
  2922  
  2923  func (m *QueryVotesByProposalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2924  	i := len(dAtA)
  2925  	_ = i
  2926  	var l int
  2927  	_ = l
  2928  	if m.Pagination != nil {
  2929  		{
  2930  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2931  			if err != nil {
  2932  				return 0, err
  2933  			}
  2934  			i -= size
  2935  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2936  		}
  2937  		i--
  2938  		dAtA[i] = 0x12
  2939  	}
  2940  	if m.ProposalId != 0 {
  2941  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  2942  		i--
  2943  		dAtA[i] = 0x8
  2944  	}
  2945  	return len(dAtA) - i, nil
  2946  }
  2947  
  2948  func (m *QueryVotesByProposalResponse) Marshal() (dAtA []byte, err error) {
  2949  	size := m.Size()
  2950  	dAtA = make([]byte, size)
  2951  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2952  	if err != nil {
  2953  		return nil, err
  2954  	}
  2955  	return dAtA[:n], nil
  2956  }
  2957  
  2958  func (m *QueryVotesByProposalResponse) MarshalTo(dAtA []byte) (int, error) {
  2959  	size := m.Size()
  2960  	return m.MarshalToSizedBuffer(dAtA[:size])
  2961  }
  2962  
  2963  func (m *QueryVotesByProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2964  	i := len(dAtA)
  2965  	_ = i
  2966  	var l int
  2967  	_ = l
  2968  	if m.Pagination != nil {
  2969  		{
  2970  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  2971  			if err != nil {
  2972  				return 0, err
  2973  			}
  2974  			i -= size
  2975  			i = encodeVarintQuery(dAtA, i, uint64(size))
  2976  		}
  2977  		i--
  2978  		dAtA[i] = 0x12
  2979  	}
  2980  	if len(m.Votes) > 0 {
  2981  		for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- {
  2982  			{
  2983  				size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2984  				if err != nil {
  2985  					return 0, err
  2986  				}
  2987  				i -= size
  2988  				i = encodeVarintQuery(dAtA, i, uint64(size))
  2989  			}
  2990  			i--
  2991  			dAtA[i] = 0xa
  2992  		}
  2993  	}
  2994  	return len(dAtA) - i, nil
  2995  }
  2996  
  2997  func (m *QueryVotesByVoterRequest) Marshal() (dAtA []byte, err error) {
  2998  	size := m.Size()
  2999  	dAtA = make([]byte, size)
  3000  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3001  	if err != nil {
  3002  		return nil, err
  3003  	}
  3004  	return dAtA[:n], nil
  3005  }
  3006  
  3007  func (m *QueryVotesByVoterRequest) MarshalTo(dAtA []byte) (int, error) {
  3008  	size := m.Size()
  3009  	return m.MarshalToSizedBuffer(dAtA[:size])
  3010  }
  3011  
  3012  func (m *QueryVotesByVoterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3013  	i := len(dAtA)
  3014  	_ = i
  3015  	var l int
  3016  	_ = l
  3017  	if m.Pagination != nil {
  3018  		{
  3019  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3020  			if err != nil {
  3021  				return 0, err
  3022  			}
  3023  			i -= size
  3024  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3025  		}
  3026  		i--
  3027  		dAtA[i] = 0x12
  3028  	}
  3029  	if len(m.Voter) > 0 {
  3030  		i -= len(m.Voter)
  3031  		copy(dAtA[i:], m.Voter)
  3032  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Voter)))
  3033  		i--
  3034  		dAtA[i] = 0xa
  3035  	}
  3036  	return len(dAtA) - i, nil
  3037  }
  3038  
  3039  func (m *QueryVotesByVoterResponse) Marshal() (dAtA []byte, err error) {
  3040  	size := m.Size()
  3041  	dAtA = make([]byte, size)
  3042  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3043  	if err != nil {
  3044  		return nil, err
  3045  	}
  3046  	return dAtA[:n], nil
  3047  }
  3048  
  3049  func (m *QueryVotesByVoterResponse) MarshalTo(dAtA []byte) (int, error) {
  3050  	size := m.Size()
  3051  	return m.MarshalToSizedBuffer(dAtA[:size])
  3052  }
  3053  
  3054  func (m *QueryVotesByVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3055  	i := len(dAtA)
  3056  	_ = i
  3057  	var l int
  3058  	_ = l
  3059  	if m.Pagination != nil {
  3060  		{
  3061  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3062  			if err != nil {
  3063  				return 0, err
  3064  			}
  3065  			i -= size
  3066  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3067  		}
  3068  		i--
  3069  		dAtA[i] = 0x12
  3070  	}
  3071  	if len(m.Votes) > 0 {
  3072  		for iNdEx := len(m.Votes) - 1; iNdEx >= 0; iNdEx-- {
  3073  			{
  3074  				size, err := m.Votes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3075  				if err != nil {
  3076  					return 0, err
  3077  				}
  3078  				i -= size
  3079  				i = encodeVarintQuery(dAtA, i, uint64(size))
  3080  			}
  3081  			i--
  3082  			dAtA[i] = 0xa
  3083  		}
  3084  	}
  3085  	return len(dAtA) - i, nil
  3086  }
  3087  
  3088  func (m *QueryGroupsByMemberRequest) Marshal() (dAtA []byte, err error) {
  3089  	size := m.Size()
  3090  	dAtA = make([]byte, size)
  3091  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3092  	if err != nil {
  3093  		return nil, err
  3094  	}
  3095  	return dAtA[:n], nil
  3096  }
  3097  
  3098  func (m *QueryGroupsByMemberRequest) MarshalTo(dAtA []byte) (int, error) {
  3099  	size := m.Size()
  3100  	return m.MarshalToSizedBuffer(dAtA[:size])
  3101  }
  3102  
  3103  func (m *QueryGroupsByMemberRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3104  	i := len(dAtA)
  3105  	_ = i
  3106  	var l int
  3107  	_ = l
  3108  	if m.Pagination != nil {
  3109  		{
  3110  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3111  			if err != nil {
  3112  				return 0, err
  3113  			}
  3114  			i -= size
  3115  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3116  		}
  3117  		i--
  3118  		dAtA[i] = 0x12
  3119  	}
  3120  	if len(m.Address) > 0 {
  3121  		i -= len(m.Address)
  3122  		copy(dAtA[i:], m.Address)
  3123  		i = encodeVarintQuery(dAtA, i, uint64(len(m.Address)))
  3124  		i--
  3125  		dAtA[i] = 0xa
  3126  	}
  3127  	return len(dAtA) - i, nil
  3128  }
  3129  
  3130  func (m *QueryGroupsByMemberResponse) Marshal() (dAtA []byte, err error) {
  3131  	size := m.Size()
  3132  	dAtA = make([]byte, size)
  3133  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3134  	if err != nil {
  3135  		return nil, err
  3136  	}
  3137  	return dAtA[:n], nil
  3138  }
  3139  
  3140  func (m *QueryGroupsByMemberResponse) MarshalTo(dAtA []byte) (int, error) {
  3141  	size := m.Size()
  3142  	return m.MarshalToSizedBuffer(dAtA[:size])
  3143  }
  3144  
  3145  func (m *QueryGroupsByMemberResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3146  	i := len(dAtA)
  3147  	_ = i
  3148  	var l int
  3149  	_ = l
  3150  	if m.Pagination != nil {
  3151  		{
  3152  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3153  			if err != nil {
  3154  				return 0, err
  3155  			}
  3156  			i -= size
  3157  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3158  		}
  3159  		i--
  3160  		dAtA[i] = 0x12
  3161  	}
  3162  	if len(m.Groups) > 0 {
  3163  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
  3164  			{
  3165  				size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3166  				if err != nil {
  3167  					return 0, err
  3168  				}
  3169  				i -= size
  3170  				i = encodeVarintQuery(dAtA, i, uint64(size))
  3171  			}
  3172  			i--
  3173  			dAtA[i] = 0xa
  3174  		}
  3175  	}
  3176  	return len(dAtA) - i, nil
  3177  }
  3178  
  3179  func (m *QueryTallyResultRequest) Marshal() (dAtA []byte, err error) {
  3180  	size := m.Size()
  3181  	dAtA = make([]byte, size)
  3182  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3183  	if err != nil {
  3184  		return nil, err
  3185  	}
  3186  	return dAtA[:n], nil
  3187  }
  3188  
  3189  func (m *QueryTallyResultRequest) MarshalTo(dAtA []byte) (int, error) {
  3190  	size := m.Size()
  3191  	return m.MarshalToSizedBuffer(dAtA[:size])
  3192  }
  3193  
  3194  func (m *QueryTallyResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3195  	i := len(dAtA)
  3196  	_ = i
  3197  	var l int
  3198  	_ = l
  3199  	if m.ProposalId != 0 {
  3200  		i = encodeVarintQuery(dAtA, i, uint64(m.ProposalId))
  3201  		i--
  3202  		dAtA[i] = 0x8
  3203  	}
  3204  	return len(dAtA) - i, nil
  3205  }
  3206  
  3207  func (m *QueryTallyResultResponse) Marshal() (dAtA []byte, err error) {
  3208  	size := m.Size()
  3209  	dAtA = make([]byte, size)
  3210  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3211  	if err != nil {
  3212  		return nil, err
  3213  	}
  3214  	return dAtA[:n], nil
  3215  }
  3216  
  3217  func (m *QueryTallyResultResponse) MarshalTo(dAtA []byte) (int, error) {
  3218  	size := m.Size()
  3219  	return m.MarshalToSizedBuffer(dAtA[:size])
  3220  }
  3221  
  3222  func (m *QueryTallyResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3223  	i := len(dAtA)
  3224  	_ = i
  3225  	var l int
  3226  	_ = l
  3227  	{
  3228  		size, err := m.Tally.MarshalToSizedBuffer(dAtA[:i])
  3229  		if err != nil {
  3230  			return 0, err
  3231  		}
  3232  		i -= size
  3233  		i = encodeVarintQuery(dAtA, i, uint64(size))
  3234  	}
  3235  	i--
  3236  	dAtA[i] = 0xa
  3237  	return len(dAtA) - i, nil
  3238  }
  3239  
  3240  func (m *QueryGroupsRequest) Marshal() (dAtA []byte, err error) {
  3241  	size := m.Size()
  3242  	dAtA = make([]byte, size)
  3243  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3244  	if err != nil {
  3245  		return nil, err
  3246  	}
  3247  	return dAtA[:n], nil
  3248  }
  3249  
  3250  func (m *QueryGroupsRequest) MarshalTo(dAtA []byte) (int, error) {
  3251  	size := m.Size()
  3252  	return m.MarshalToSizedBuffer(dAtA[:size])
  3253  }
  3254  
  3255  func (m *QueryGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3256  	i := len(dAtA)
  3257  	_ = i
  3258  	var l int
  3259  	_ = l
  3260  	if m.Pagination != nil {
  3261  		{
  3262  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3263  			if err != nil {
  3264  				return 0, err
  3265  			}
  3266  			i -= size
  3267  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3268  		}
  3269  		i--
  3270  		dAtA[i] = 0x12
  3271  	}
  3272  	return len(dAtA) - i, nil
  3273  }
  3274  
  3275  func (m *QueryGroupsResponse) Marshal() (dAtA []byte, err error) {
  3276  	size := m.Size()
  3277  	dAtA = make([]byte, size)
  3278  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3279  	if err != nil {
  3280  		return nil, err
  3281  	}
  3282  	return dAtA[:n], nil
  3283  }
  3284  
  3285  func (m *QueryGroupsResponse) MarshalTo(dAtA []byte) (int, error) {
  3286  	size := m.Size()
  3287  	return m.MarshalToSizedBuffer(dAtA[:size])
  3288  }
  3289  
  3290  func (m *QueryGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3291  	i := len(dAtA)
  3292  	_ = i
  3293  	var l int
  3294  	_ = l
  3295  	if m.Pagination != nil {
  3296  		{
  3297  			size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i])
  3298  			if err != nil {
  3299  				return 0, err
  3300  			}
  3301  			i -= size
  3302  			i = encodeVarintQuery(dAtA, i, uint64(size))
  3303  		}
  3304  		i--
  3305  		dAtA[i] = 0x12
  3306  	}
  3307  	if len(m.Groups) > 0 {
  3308  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
  3309  			{
  3310  				size, err := m.Groups[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3311  				if err != nil {
  3312  					return 0, err
  3313  				}
  3314  				i -= size
  3315  				i = encodeVarintQuery(dAtA, i, uint64(size))
  3316  			}
  3317  			i--
  3318  			dAtA[i] = 0xa
  3319  		}
  3320  	}
  3321  	return len(dAtA) - i, nil
  3322  }
  3323  
  3324  func encodeVarintQuery(dAtA []byte, offset int, v uint64) int {
  3325  	offset -= sovQuery(v)
  3326  	base := offset
  3327  	for v >= 1<<7 {
  3328  		dAtA[offset] = uint8(v&0x7f | 0x80)
  3329  		v >>= 7
  3330  		offset++
  3331  	}
  3332  	dAtA[offset] = uint8(v)
  3333  	return base
  3334  }
  3335  func (m *QueryGroupInfoRequest) Size() (n int) {
  3336  	if m == nil {
  3337  		return 0
  3338  	}
  3339  	var l int
  3340  	_ = l
  3341  	if m.GroupId != 0 {
  3342  		n += 1 + sovQuery(uint64(m.GroupId))
  3343  	}
  3344  	return n
  3345  }
  3346  
  3347  func (m *QueryGroupInfoResponse) Size() (n int) {
  3348  	if m == nil {
  3349  		return 0
  3350  	}
  3351  	var l int
  3352  	_ = l
  3353  	if m.Info != nil {
  3354  		l = m.Info.Size()
  3355  		n += 1 + l + sovQuery(uint64(l))
  3356  	}
  3357  	return n
  3358  }
  3359  
  3360  func (m *QueryGroupPolicyInfoRequest) Size() (n int) {
  3361  	if m == nil {
  3362  		return 0
  3363  	}
  3364  	var l int
  3365  	_ = l
  3366  	l = len(m.Address)
  3367  	if l > 0 {
  3368  		n += 1 + l + sovQuery(uint64(l))
  3369  	}
  3370  	return n
  3371  }
  3372  
  3373  func (m *QueryGroupPolicyInfoResponse) Size() (n int) {
  3374  	if m == nil {
  3375  		return 0
  3376  	}
  3377  	var l int
  3378  	_ = l
  3379  	if m.Info != nil {
  3380  		l = m.Info.Size()
  3381  		n += 1 + l + sovQuery(uint64(l))
  3382  	}
  3383  	return n
  3384  }
  3385  
  3386  func (m *QueryGroupMembersRequest) Size() (n int) {
  3387  	if m == nil {
  3388  		return 0
  3389  	}
  3390  	var l int
  3391  	_ = l
  3392  	if m.GroupId != 0 {
  3393  		n += 1 + sovQuery(uint64(m.GroupId))
  3394  	}
  3395  	if m.Pagination != nil {
  3396  		l = m.Pagination.Size()
  3397  		n += 1 + l + sovQuery(uint64(l))
  3398  	}
  3399  	return n
  3400  }
  3401  
  3402  func (m *QueryGroupMembersResponse) Size() (n int) {
  3403  	if m == nil {
  3404  		return 0
  3405  	}
  3406  	var l int
  3407  	_ = l
  3408  	if len(m.Members) > 0 {
  3409  		for _, e := range m.Members {
  3410  			l = e.Size()
  3411  			n += 1 + l + sovQuery(uint64(l))
  3412  		}
  3413  	}
  3414  	if m.Pagination != nil {
  3415  		l = m.Pagination.Size()
  3416  		n += 1 + l + sovQuery(uint64(l))
  3417  	}
  3418  	return n
  3419  }
  3420  
  3421  func (m *QueryGroupsByAdminRequest) Size() (n int) {
  3422  	if m == nil {
  3423  		return 0
  3424  	}
  3425  	var l int
  3426  	_ = l
  3427  	l = len(m.Admin)
  3428  	if l > 0 {
  3429  		n += 1 + l + sovQuery(uint64(l))
  3430  	}
  3431  	if m.Pagination != nil {
  3432  		l = m.Pagination.Size()
  3433  		n += 1 + l + sovQuery(uint64(l))
  3434  	}
  3435  	return n
  3436  }
  3437  
  3438  func (m *QueryGroupsByAdminResponse) Size() (n int) {
  3439  	if m == nil {
  3440  		return 0
  3441  	}
  3442  	var l int
  3443  	_ = l
  3444  	if len(m.Groups) > 0 {
  3445  		for _, e := range m.Groups {
  3446  			l = e.Size()
  3447  			n += 1 + l + sovQuery(uint64(l))
  3448  		}
  3449  	}
  3450  	if m.Pagination != nil {
  3451  		l = m.Pagination.Size()
  3452  		n += 1 + l + sovQuery(uint64(l))
  3453  	}
  3454  	return n
  3455  }
  3456  
  3457  func (m *QueryGroupPoliciesByGroupRequest) Size() (n int) {
  3458  	if m == nil {
  3459  		return 0
  3460  	}
  3461  	var l int
  3462  	_ = l
  3463  	if m.GroupId != 0 {
  3464  		n += 1 + sovQuery(uint64(m.GroupId))
  3465  	}
  3466  	if m.Pagination != nil {
  3467  		l = m.Pagination.Size()
  3468  		n += 1 + l + sovQuery(uint64(l))
  3469  	}
  3470  	return n
  3471  }
  3472  
  3473  func (m *QueryGroupPoliciesByGroupResponse) Size() (n int) {
  3474  	if m == nil {
  3475  		return 0
  3476  	}
  3477  	var l int
  3478  	_ = l
  3479  	if len(m.GroupPolicies) > 0 {
  3480  		for _, e := range m.GroupPolicies {
  3481  			l = e.Size()
  3482  			n += 1 + l + sovQuery(uint64(l))
  3483  		}
  3484  	}
  3485  	if m.Pagination != nil {
  3486  		l = m.Pagination.Size()
  3487  		n += 1 + l + sovQuery(uint64(l))
  3488  	}
  3489  	return n
  3490  }
  3491  
  3492  func (m *QueryGroupPoliciesByAdminRequest) Size() (n int) {
  3493  	if m == nil {
  3494  		return 0
  3495  	}
  3496  	var l int
  3497  	_ = l
  3498  	l = len(m.Admin)
  3499  	if l > 0 {
  3500  		n += 1 + l + sovQuery(uint64(l))
  3501  	}
  3502  	if m.Pagination != nil {
  3503  		l = m.Pagination.Size()
  3504  		n += 1 + l + sovQuery(uint64(l))
  3505  	}
  3506  	return n
  3507  }
  3508  
  3509  func (m *QueryGroupPoliciesByAdminResponse) Size() (n int) {
  3510  	if m == nil {
  3511  		return 0
  3512  	}
  3513  	var l int
  3514  	_ = l
  3515  	if len(m.GroupPolicies) > 0 {
  3516  		for _, e := range m.GroupPolicies {
  3517  			l = e.Size()
  3518  			n += 1 + l + sovQuery(uint64(l))
  3519  		}
  3520  	}
  3521  	if m.Pagination != nil {
  3522  		l = m.Pagination.Size()
  3523  		n += 1 + l + sovQuery(uint64(l))
  3524  	}
  3525  	return n
  3526  }
  3527  
  3528  func (m *QueryProposalRequest) Size() (n int) {
  3529  	if m == nil {
  3530  		return 0
  3531  	}
  3532  	var l int
  3533  	_ = l
  3534  	if m.ProposalId != 0 {
  3535  		n += 1 + sovQuery(uint64(m.ProposalId))
  3536  	}
  3537  	return n
  3538  }
  3539  
  3540  func (m *QueryProposalResponse) Size() (n int) {
  3541  	if m == nil {
  3542  		return 0
  3543  	}
  3544  	var l int
  3545  	_ = l
  3546  	if m.Proposal != nil {
  3547  		l = m.Proposal.Size()
  3548  		n += 1 + l + sovQuery(uint64(l))
  3549  	}
  3550  	return n
  3551  }
  3552  
  3553  func (m *QueryProposalsByGroupPolicyRequest) Size() (n int) {
  3554  	if m == nil {
  3555  		return 0
  3556  	}
  3557  	var l int
  3558  	_ = l
  3559  	l = len(m.Address)
  3560  	if l > 0 {
  3561  		n += 1 + l + sovQuery(uint64(l))
  3562  	}
  3563  	if m.Pagination != nil {
  3564  		l = m.Pagination.Size()
  3565  		n += 1 + l + sovQuery(uint64(l))
  3566  	}
  3567  	return n
  3568  }
  3569  
  3570  func (m *QueryProposalsByGroupPolicyResponse) Size() (n int) {
  3571  	if m == nil {
  3572  		return 0
  3573  	}
  3574  	var l int
  3575  	_ = l
  3576  	if len(m.Proposals) > 0 {
  3577  		for _, e := range m.Proposals {
  3578  			l = e.Size()
  3579  			n += 1 + l + sovQuery(uint64(l))
  3580  		}
  3581  	}
  3582  	if m.Pagination != nil {
  3583  		l = m.Pagination.Size()
  3584  		n += 1 + l + sovQuery(uint64(l))
  3585  	}
  3586  	return n
  3587  }
  3588  
  3589  func (m *QueryVoteByProposalVoterRequest) Size() (n int) {
  3590  	if m == nil {
  3591  		return 0
  3592  	}
  3593  	var l int
  3594  	_ = l
  3595  	if m.ProposalId != 0 {
  3596  		n += 1 + sovQuery(uint64(m.ProposalId))
  3597  	}
  3598  	l = len(m.Voter)
  3599  	if l > 0 {
  3600  		n += 1 + l + sovQuery(uint64(l))
  3601  	}
  3602  	return n
  3603  }
  3604  
  3605  func (m *QueryVoteByProposalVoterResponse) Size() (n int) {
  3606  	if m == nil {
  3607  		return 0
  3608  	}
  3609  	var l int
  3610  	_ = l
  3611  	if m.Vote != nil {
  3612  		l = m.Vote.Size()
  3613  		n += 1 + l + sovQuery(uint64(l))
  3614  	}
  3615  	return n
  3616  }
  3617  
  3618  func (m *QueryVotesByProposalRequest) Size() (n int) {
  3619  	if m == nil {
  3620  		return 0
  3621  	}
  3622  	var l int
  3623  	_ = l
  3624  	if m.ProposalId != 0 {
  3625  		n += 1 + sovQuery(uint64(m.ProposalId))
  3626  	}
  3627  	if m.Pagination != nil {
  3628  		l = m.Pagination.Size()
  3629  		n += 1 + l + sovQuery(uint64(l))
  3630  	}
  3631  	return n
  3632  }
  3633  
  3634  func (m *QueryVotesByProposalResponse) Size() (n int) {
  3635  	if m == nil {
  3636  		return 0
  3637  	}
  3638  	var l int
  3639  	_ = l
  3640  	if len(m.Votes) > 0 {
  3641  		for _, e := range m.Votes {
  3642  			l = e.Size()
  3643  			n += 1 + l + sovQuery(uint64(l))
  3644  		}
  3645  	}
  3646  	if m.Pagination != nil {
  3647  		l = m.Pagination.Size()
  3648  		n += 1 + l + sovQuery(uint64(l))
  3649  	}
  3650  	return n
  3651  }
  3652  
  3653  func (m *QueryVotesByVoterRequest) Size() (n int) {
  3654  	if m == nil {
  3655  		return 0
  3656  	}
  3657  	var l int
  3658  	_ = l
  3659  	l = len(m.Voter)
  3660  	if l > 0 {
  3661  		n += 1 + l + sovQuery(uint64(l))
  3662  	}
  3663  	if m.Pagination != nil {
  3664  		l = m.Pagination.Size()
  3665  		n += 1 + l + sovQuery(uint64(l))
  3666  	}
  3667  	return n
  3668  }
  3669  
  3670  func (m *QueryVotesByVoterResponse) Size() (n int) {
  3671  	if m == nil {
  3672  		return 0
  3673  	}
  3674  	var l int
  3675  	_ = l
  3676  	if len(m.Votes) > 0 {
  3677  		for _, e := range m.Votes {
  3678  			l = e.Size()
  3679  			n += 1 + l + sovQuery(uint64(l))
  3680  		}
  3681  	}
  3682  	if m.Pagination != nil {
  3683  		l = m.Pagination.Size()
  3684  		n += 1 + l + sovQuery(uint64(l))
  3685  	}
  3686  	return n
  3687  }
  3688  
  3689  func (m *QueryGroupsByMemberRequest) Size() (n int) {
  3690  	if m == nil {
  3691  		return 0
  3692  	}
  3693  	var l int
  3694  	_ = l
  3695  	l = len(m.Address)
  3696  	if l > 0 {
  3697  		n += 1 + l + sovQuery(uint64(l))
  3698  	}
  3699  	if m.Pagination != nil {
  3700  		l = m.Pagination.Size()
  3701  		n += 1 + l + sovQuery(uint64(l))
  3702  	}
  3703  	return n
  3704  }
  3705  
  3706  func (m *QueryGroupsByMemberResponse) Size() (n int) {
  3707  	if m == nil {
  3708  		return 0
  3709  	}
  3710  	var l int
  3711  	_ = l
  3712  	if len(m.Groups) > 0 {
  3713  		for _, e := range m.Groups {
  3714  			l = e.Size()
  3715  			n += 1 + l + sovQuery(uint64(l))
  3716  		}
  3717  	}
  3718  	if m.Pagination != nil {
  3719  		l = m.Pagination.Size()
  3720  		n += 1 + l + sovQuery(uint64(l))
  3721  	}
  3722  	return n
  3723  }
  3724  
  3725  func (m *QueryTallyResultRequest) Size() (n int) {
  3726  	if m == nil {
  3727  		return 0
  3728  	}
  3729  	var l int
  3730  	_ = l
  3731  	if m.ProposalId != 0 {
  3732  		n += 1 + sovQuery(uint64(m.ProposalId))
  3733  	}
  3734  	return n
  3735  }
  3736  
  3737  func (m *QueryTallyResultResponse) Size() (n int) {
  3738  	if m == nil {
  3739  		return 0
  3740  	}
  3741  	var l int
  3742  	_ = l
  3743  	l = m.Tally.Size()
  3744  	n += 1 + l + sovQuery(uint64(l))
  3745  	return n
  3746  }
  3747  
  3748  func (m *QueryGroupsRequest) Size() (n int) {
  3749  	if m == nil {
  3750  		return 0
  3751  	}
  3752  	var l int
  3753  	_ = l
  3754  	if m.Pagination != nil {
  3755  		l = m.Pagination.Size()
  3756  		n += 1 + l + sovQuery(uint64(l))
  3757  	}
  3758  	return n
  3759  }
  3760  
  3761  func (m *QueryGroupsResponse) Size() (n int) {
  3762  	if m == nil {
  3763  		return 0
  3764  	}
  3765  	var l int
  3766  	_ = l
  3767  	if len(m.Groups) > 0 {
  3768  		for _, e := range m.Groups {
  3769  			l = e.Size()
  3770  			n += 1 + l + sovQuery(uint64(l))
  3771  		}
  3772  	}
  3773  	if m.Pagination != nil {
  3774  		l = m.Pagination.Size()
  3775  		n += 1 + l + sovQuery(uint64(l))
  3776  	}
  3777  	return n
  3778  }
  3779  
  3780  func sovQuery(x uint64) (n int) {
  3781  	return (math_bits.Len64(x|1) + 6) / 7
  3782  }
  3783  func sozQuery(x uint64) (n int) {
  3784  	return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  3785  }
  3786  func (m *QueryGroupInfoRequest) Unmarshal(dAtA []byte) error {
  3787  	l := len(dAtA)
  3788  	iNdEx := 0
  3789  	for iNdEx < l {
  3790  		preIndex := iNdEx
  3791  		var wire uint64
  3792  		for shift := uint(0); ; shift += 7 {
  3793  			if shift >= 64 {
  3794  				return ErrIntOverflowQuery
  3795  			}
  3796  			if iNdEx >= l {
  3797  				return io.ErrUnexpectedEOF
  3798  			}
  3799  			b := dAtA[iNdEx]
  3800  			iNdEx++
  3801  			wire |= uint64(b&0x7F) << shift
  3802  			if b < 0x80 {
  3803  				break
  3804  			}
  3805  		}
  3806  		fieldNum := int32(wire >> 3)
  3807  		wireType := int(wire & 0x7)
  3808  		if wireType == 4 {
  3809  			return fmt.Errorf("proto: QueryGroupInfoRequest: wiretype end group for non-group")
  3810  		}
  3811  		if fieldNum <= 0 {
  3812  			return fmt.Errorf("proto: QueryGroupInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3813  		}
  3814  		switch fieldNum {
  3815  		case 1:
  3816  			if wireType != 0 {
  3817  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
  3818  			}
  3819  			m.GroupId = 0
  3820  			for shift := uint(0); ; shift += 7 {
  3821  				if shift >= 64 {
  3822  					return ErrIntOverflowQuery
  3823  				}
  3824  				if iNdEx >= l {
  3825  					return io.ErrUnexpectedEOF
  3826  				}
  3827  				b := dAtA[iNdEx]
  3828  				iNdEx++
  3829  				m.GroupId |= uint64(b&0x7F) << shift
  3830  				if b < 0x80 {
  3831  					break
  3832  				}
  3833  			}
  3834  		default:
  3835  			iNdEx = preIndex
  3836  			skippy, err := skipQuery(dAtA[iNdEx:])
  3837  			if err != nil {
  3838  				return err
  3839  			}
  3840  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3841  				return ErrInvalidLengthQuery
  3842  			}
  3843  			if (iNdEx + skippy) > l {
  3844  				return io.ErrUnexpectedEOF
  3845  			}
  3846  			iNdEx += skippy
  3847  		}
  3848  	}
  3849  
  3850  	if iNdEx > l {
  3851  		return io.ErrUnexpectedEOF
  3852  	}
  3853  	return nil
  3854  }
  3855  func (m *QueryGroupInfoResponse) Unmarshal(dAtA []byte) error {
  3856  	l := len(dAtA)
  3857  	iNdEx := 0
  3858  	for iNdEx < l {
  3859  		preIndex := iNdEx
  3860  		var wire uint64
  3861  		for shift := uint(0); ; shift += 7 {
  3862  			if shift >= 64 {
  3863  				return ErrIntOverflowQuery
  3864  			}
  3865  			if iNdEx >= l {
  3866  				return io.ErrUnexpectedEOF
  3867  			}
  3868  			b := dAtA[iNdEx]
  3869  			iNdEx++
  3870  			wire |= uint64(b&0x7F) << shift
  3871  			if b < 0x80 {
  3872  				break
  3873  			}
  3874  		}
  3875  		fieldNum := int32(wire >> 3)
  3876  		wireType := int(wire & 0x7)
  3877  		if wireType == 4 {
  3878  			return fmt.Errorf("proto: QueryGroupInfoResponse: wiretype end group for non-group")
  3879  		}
  3880  		if fieldNum <= 0 {
  3881  			return fmt.Errorf("proto: QueryGroupInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  3882  		}
  3883  		switch fieldNum {
  3884  		case 1:
  3885  			if wireType != 2 {
  3886  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  3887  			}
  3888  			var msglen int
  3889  			for shift := uint(0); ; shift += 7 {
  3890  				if shift >= 64 {
  3891  					return ErrIntOverflowQuery
  3892  				}
  3893  				if iNdEx >= l {
  3894  					return io.ErrUnexpectedEOF
  3895  				}
  3896  				b := dAtA[iNdEx]
  3897  				iNdEx++
  3898  				msglen |= int(b&0x7F) << shift
  3899  				if b < 0x80 {
  3900  					break
  3901  				}
  3902  			}
  3903  			if msglen < 0 {
  3904  				return ErrInvalidLengthQuery
  3905  			}
  3906  			postIndex := iNdEx + msglen
  3907  			if postIndex < 0 {
  3908  				return ErrInvalidLengthQuery
  3909  			}
  3910  			if postIndex > l {
  3911  				return io.ErrUnexpectedEOF
  3912  			}
  3913  			if m.Info == nil {
  3914  				m.Info = &GroupInfo{}
  3915  			}
  3916  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3917  				return err
  3918  			}
  3919  			iNdEx = postIndex
  3920  		default:
  3921  			iNdEx = preIndex
  3922  			skippy, err := skipQuery(dAtA[iNdEx:])
  3923  			if err != nil {
  3924  				return err
  3925  			}
  3926  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  3927  				return ErrInvalidLengthQuery
  3928  			}
  3929  			if (iNdEx + skippy) > l {
  3930  				return io.ErrUnexpectedEOF
  3931  			}
  3932  			iNdEx += skippy
  3933  		}
  3934  	}
  3935  
  3936  	if iNdEx > l {
  3937  		return io.ErrUnexpectedEOF
  3938  	}
  3939  	return nil
  3940  }
  3941  func (m *QueryGroupPolicyInfoRequest) Unmarshal(dAtA []byte) error {
  3942  	l := len(dAtA)
  3943  	iNdEx := 0
  3944  	for iNdEx < l {
  3945  		preIndex := iNdEx
  3946  		var wire uint64
  3947  		for shift := uint(0); ; shift += 7 {
  3948  			if shift >= 64 {
  3949  				return ErrIntOverflowQuery
  3950  			}
  3951  			if iNdEx >= l {
  3952  				return io.ErrUnexpectedEOF
  3953  			}
  3954  			b := dAtA[iNdEx]
  3955  			iNdEx++
  3956  			wire |= uint64(b&0x7F) << shift
  3957  			if b < 0x80 {
  3958  				break
  3959  			}
  3960  		}
  3961  		fieldNum := int32(wire >> 3)
  3962  		wireType := int(wire & 0x7)
  3963  		if wireType == 4 {
  3964  			return fmt.Errorf("proto: QueryGroupPolicyInfoRequest: wiretype end group for non-group")
  3965  		}
  3966  		if fieldNum <= 0 {
  3967  			return fmt.Errorf("proto: QueryGroupPolicyInfoRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  3968  		}
  3969  		switch fieldNum {
  3970  		case 1:
  3971  			if wireType != 2 {
  3972  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  3973  			}
  3974  			var stringLen uint64
  3975  			for shift := uint(0); ; shift += 7 {
  3976  				if shift >= 64 {
  3977  					return ErrIntOverflowQuery
  3978  				}
  3979  				if iNdEx >= l {
  3980  					return io.ErrUnexpectedEOF
  3981  				}
  3982  				b := dAtA[iNdEx]
  3983  				iNdEx++
  3984  				stringLen |= uint64(b&0x7F) << shift
  3985  				if b < 0x80 {
  3986  					break
  3987  				}
  3988  			}
  3989  			intStringLen := int(stringLen)
  3990  			if intStringLen < 0 {
  3991  				return ErrInvalidLengthQuery
  3992  			}
  3993  			postIndex := iNdEx + intStringLen
  3994  			if postIndex < 0 {
  3995  				return ErrInvalidLengthQuery
  3996  			}
  3997  			if postIndex > l {
  3998  				return io.ErrUnexpectedEOF
  3999  			}
  4000  			m.Address = string(dAtA[iNdEx:postIndex])
  4001  			iNdEx = postIndex
  4002  		default:
  4003  			iNdEx = preIndex
  4004  			skippy, err := skipQuery(dAtA[iNdEx:])
  4005  			if err != nil {
  4006  				return err
  4007  			}
  4008  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4009  				return ErrInvalidLengthQuery
  4010  			}
  4011  			if (iNdEx + skippy) > l {
  4012  				return io.ErrUnexpectedEOF
  4013  			}
  4014  			iNdEx += skippy
  4015  		}
  4016  	}
  4017  
  4018  	if iNdEx > l {
  4019  		return io.ErrUnexpectedEOF
  4020  	}
  4021  	return nil
  4022  }
  4023  func (m *QueryGroupPolicyInfoResponse) Unmarshal(dAtA []byte) error {
  4024  	l := len(dAtA)
  4025  	iNdEx := 0
  4026  	for iNdEx < l {
  4027  		preIndex := iNdEx
  4028  		var wire uint64
  4029  		for shift := uint(0); ; shift += 7 {
  4030  			if shift >= 64 {
  4031  				return ErrIntOverflowQuery
  4032  			}
  4033  			if iNdEx >= l {
  4034  				return io.ErrUnexpectedEOF
  4035  			}
  4036  			b := dAtA[iNdEx]
  4037  			iNdEx++
  4038  			wire |= uint64(b&0x7F) << shift
  4039  			if b < 0x80 {
  4040  				break
  4041  			}
  4042  		}
  4043  		fieldNum := int32(wire >> 3)
  4044  		wireType := int(wire & 0x7)
  4045  		if wireType == 4 {
  4046  			return fmt.Errorf("proto: QueryGroupPolicyInfoResponse: wiretype end group for non-group")
  4047  		}
  4048  		if fieldNum <= 0 {
  4049  			return fmt.Errorf("proto: QueryGroupPolicyInfoResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4050  		}
  4051  		switch fieldNum {
  4052  		case 1:
  4053  			if wireType != 2 {
  4054  				return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  4055  			}
  4056  			var msglen int
  4057  			for shift := uint(0); ; shift += 7 {
  4058  				if shift >= 64 {
  4059  					return ErrIntOverflowQuery
  4060  				}
  4061  				if iNdEx >= l {
  4062  					return io.ErrUnexpectedEOF
  4063  				}
  4064  				b := dAtA[iNdEx]
  4065  				iNdEx++
  4066  				msglen |= int(b&0x7F) << shift
  4067  				if b < 0x80 {
  4068  					break
  4069  				}
  4070  			}
  4071  			if msglen < 0 {
  4072  				return ErrInvalidLengthQuery
  4073  			}
  4074  			postIndex := iNdEx + msglen
  4075  			if postIndex < 0 {
  4076  				return ErrInvalidLengthQuery
  4077  			}
  4078  			if postIndex > l {
  4079  				return io.ErrUnexpectedEOF
  4080  			}
  4081  			if m.Info == nil {
  4082  				m.Info = &GroupPolicyInfo{}
  4083  			}
  4084  			if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4085  				return err
  4086  			}
  4087  			iNdEx = postIndex
  4088  		default:
  4089  			iNdEx = preIndex
  4090  			skippy, err := skipQuery(dAtA[iNdEx:])
  4091  			if err != nil {
  4092  				return err
  4093  			}
  4094  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4095  				return ErrInvalidLengthQuery
  4096  			}
  4097  			if (iNdEx + skippy) > l {
  4098  				return io.ErrUnexpectedEOF
  4099  			}
  4100  			iNdEx += skippy
  4101  		}
  4102  	}
  4103  
  4104  	if iNdEx > l {
  4105  		return io.ErrUnexpectedEOF
  4106  	}
  4107  	return nil
  4108  }
  4109  func (m *QueryGroupMembersRequest) Unmarshal(dAtA []byte) error {
  4110  	l := len(dAtA)
  4111  	iNdEx := 0
  4112  	for iNdEx < l {
  4113  		preIndex := iNdEx
  4114  		var wire uint64
  4115  		for shift := uint(0); ; shift += 7 {
  4116  			if shift >= 64 {
  4117  				return ErrIntOverflowQuery
  4118  			}
  4119  			if iNdEx >= l {
  4120  				return io.ErrUnexpectedEOF
  4121  			}
  4122  			b := dAtA[iNdEx]
  4123  			iNdEx++
  4124  			wire |= uint64(b&0x7F) << shift
  4125  			if b < 0x80 {
  4126  				break
  4127  			}
  4128  		}
  4129  		fieldNum := int32(wire >> 3)
  4130  		wireType := int(wire & 0x7)
  4131  		if wireType == 4 {
  4132  			return fmt.Errorf("proto: QueryGroupMembersRequest: wiretype end group for non-group")
  4133  		}
  4134  		if fieldNum <= 0 {
  4135  			return fmt.Errorf("proto: QueryGroupMembersRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4136  		}
  4137  		switch fieldNum {
  4138  		case 1:
  4139  			if wireType != 0 {
  4140  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
  4141  			}
  4142  			m.GroupId = 0
  4143  			for shift := uint(0); ; shift += 7 {
  4144  				if shift >= 64 {
  4145  					return ErrIntOverflowQuery
  4146  				}
  4147  				if iNdEx >= l {
  4148  					return io.ErrUnexpectedEOF
  4149  				}
  4150  				b := dAtA[iNdEx]
  4151  				iNdEx++
  4152  				m.GroupId |= uint64(b&0x7F) << shift
  4153  				if b < 0x80 {
  4154  					break
  4155  				}
  4156  			}
  4157  		case 2:
  4158  			if wireType != 2 {
  4159  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4160  			}
  4161  			var msglen int
  4162  			for shift := uint(0); ; shift += 7 {
  4163  				if shift >= 64 {
  4164  					return ErrIntOverflowQuery
  4165  				}
  4166  				if iNdEx >= l {
  4167  					return io.ErrUnexpectedEOF
  4168  				}
  4169  				b := dAtA[iNdEx]
  4170  				iNdEx++
  4171  				msglen |= int(b&0x7F) << shift
  4172  				if b < 0x80 {
  4173  					break
  4174  				}
  4175  			}
  4176  			if msglen < 0 {
  4177  				return ErrInvalidLengthQuery
  4178  			}
  4179  			postIndex := iNdEx + msglen
  4180  			if postIndex < 0 {
  4181  				return ErrInvalidLengthQuery
  4182  			}
  4183  			if postIndex > l {
  4184  				return io.ErrUnexpectedEOF
  4185  			}
  4186  			if m.Pagination == nil {
  4187  				m.Pagination = &query.PageRequest{}
  4188  			}
  4189  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4190  				return err
  4191  			}
  4192  			iNdEx = postIndex
  4193  		default:
  4194  			iNdEx = preIndex
  4195  			skippy, err := skipQuery(dAtA[iNdEx:])
  4196  			if err != nil {
  4197  				return err
  4198  			}
  4199  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4200  				return ErrInvalidLengthQuery
  4201  			}
  4202  			if (iNdEx + skippy) > l {
  4203  				return io.ErrUnexpectedEOF
  4204  			}
  4205  			iNdEx += skippy
  4206  		}
  4207  	}
  4208  
  4209  	if iNdEx > l {
  4210  		return io.ErrUnexpectedEOF
  4211  	}
  4212  	return nil
  4213  }
  4214  func (m *QueryGroupMembersResponse) Unmarshal(dAtA []byte) error {
  4215  	l := len(dAtA)
  4216  	iNdEx := 0
  4217  	for iNdEx < l {
  4218  		preIndex := iNdEx
  4219  		var wire uint64
  4220  		for shift := uint(0); ; shift += 7 {
  4221  			if shift >= 64 {
  4222  				return ErrIntOverflowQuery
  4223  			}
  4224  			if iNdEx >= l {
  4225  				return io.ErrUnexpectedEOF
  4226  			}
  4227  			b := dAtA[iNdEx]
  4228  			iNdEx++
  4229  			wire |= uint64(b&0x7F) << shift
  4230  			if b < 0x80 {
  4231  				break
  4232  			}
  4233  		}
  4234  		fieldNum := int32(wire >> 3)
  4235  		wireType := int(wire & 0x7)
  4236  		if wireType == 4 {
  4237  			return fmt.Errorf("proto: QueryGroupMembersResponse: wiretype end group for non-group")
  4238  		}
  4239  		if fieldNum <= 0 {
  4240  			return fmt.Errorf("proto: QueryGroupMembersResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4241  		}
  4242  		switch fieldNum {
  4243  		case 1:
  4244  			if wireType != 2 {
  4245  				return fmt.Errorf("proto: wrong wireType = %d for field Members", wireType)
  4246  			}
  4247  			var msglen int
  4248  			for shift := uint(0); ; shift += 7 {
  4249  				if shift >= 64 {
  4250  					return ErrIntOverflowQuery
  4251  				}
  4252  				if iNdEx >= l {
  4253  					return io.ErrUnexpectedEOF
  4254  				}
  4255  				b := dAtA[iNdEx]
  4256  				iNdEx++
  4257  				msglen |= int(b&0x7F) << shift
  4258  				if b < 0x80 {
  4259  					break
  4260  				}
  4261  			}
  4262  			if msglen < 0 {
  4263  				return ErrInvalidLengthQuery
  4264  			}
  4265  			postIndex := iNdEx + msglen
  4266  			if postIndex < 0 {
  4267  				return ErrInvalidLengthQuery
  4268  			}
  4269  			if postIndex > l {
  4270  				return io.ErrUnexpectedEOF
  4271  			}
  4272  			m.Members = append(m.Members, &GroupMember{})
  4273  			if err := m.Members[len(m.Members)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4274  				return err
  4275  			}
  4276  			iNdEx = postIndex
  4277  		case 2:
  4278  			if wireType != 2 {
  4279  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4280  			}
  4281  			var msglen int
  4282  			for shift := uint(0); ; shift += 7 {
  4283  				if shift >= 64 {
  4284  					return ErrIntOverflowQuery
  4285  				}
  4286  				if iNdEx >= l {
  4287  					return io.ErrUnexpectedEOF
  4288  				}
  4289  				b := dAtA[iNdEx]
  4290  				iNdEx++
  4291  				msglen |= int(b&0x7F) << shift
  4292  				if b < 0x80 {
  4293  					break
  4294  				}
  4295  			}
  4296  			if msglen < 0 {
  4297  				return ErrInvalidLengthQuery
  4298  			}
  4299  			postIndex := iNdEx + msglen
  4300  			if postIndex < 0 {
  4301  				return ErrInvalidLengthQuery
  4302  			}
  4303  			if postIndex > l {
  4304  				return io.ErrUnexpectedEOF
  4305  			}
  4306  			if m.Pagination == nil {
  4307  				m.Pagination = &query.PageResponse{}
  4308  			}
  4309  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4310  				return err
  4311  			}
  4312  			iNdEx = postIndex
  4313  		default:
  4314  			iNdEx = preIndex
  4315  			skippy, err := skipQuery(dAtA[iNdEx:])
  4316  			if err != nil {
  4317  				return err
  4318  			}
  4319  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4320  				return ErrInvalidLengthQuery
  4321  			}
  4322  			if (iNdEx + skippy) > l {
  4323  				return io.ErrUnexpectedEOF
  4324  			}
  4325  			iNdEx += skippy
  4326  		}
  4327  	}
  4328  
  4329  	if iNdEx > l {
  4330  		return io.ErrUnexpectedEOF
  4331  	}
  4332  	return nil
  4333  }
  4334  func (m *QueryGroupsByAdminRequest) Unmarshal(dAtA []byte) error {
  4335  	l := len(dAtA)
  4336  	iNdEx := 0
  4337  	for iNdEx < l {
  4338  		preIndex := iNdEx
  4339  		var wire uint64
  4340  		for shift := uint(0); ; shift += 7 {
  4341  			if shift >= 64 {
  4342  				return ErrIntOverflowQuery
  4343  			}
  4344  			if iNdEx >= l {
  4345  				return io.ErrUnexpectedEOF
  4346  			}
  4347  			b := dAtA[iNdEx]
  4348  			iNdEx++
  4349  			wire |= uint64(b&0x7F) << shift
  4350  			if b < 0x80 {
  4351  				break
  4352  			}
  4353  		}
  4354  		fieldNum := int32(wire >> 3)
  4355  		wireType := int(wire & 0x7)
  4356  		if wireType == 4 {
  4357  			return fmt.Errorf("proto: QueryGroupsByAdminRequest: wiretype end group for non-group")
  4358  		}
  4359  		if fieldNum <= 0 {
  4360  			return fmt.Errorf("proto: QueryGroupsByAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4361  		}
  4362  		switch fieldNum {
  4363  		case 1:
  4364  			if wireType != 2 {
  4365  				return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType)
  4366  			}
  4367  			var stringLen uint64
  4368  			for shift := uint(0); ; shift += 7 {
  4369  				if shift >= 64 {
  4370  					return ErrIntOverflowQuery
  4371  				}
  4372  				if iNdEx >= l {
  4373  					return io.ErrUnexpectedEOF
  4374  				}
  4375  				b := dAtA[iNdEx]
  4376  				iNdEx++
  4377  				stringLen |= uint64(b&0x7F) << shift
  4378  				if b < 0x80 {
  4379  					break
  4380  				}
  4381  			}
  4382  			intStringLen := int(stringLen)
  4383  			if intStringLen < 0 {
  4384  				return ErrInvalidLengthQuery
  4385  			}
  4386  			postIndex := iNdEx + intStringLen
  4387  			if postIndex < 0 {
  4388  				return ErrInvalidLengthQuery
  4389  			}
  4390  			if postIndex > l {
  4391  				return io.ErrUnexpectedEOF
  4392  			}
  4393  			m.Admin = string(dAtA[iNdEx:postIndex])
  4394  			iNdEx = postIndex
  4395  		case 2:
  4396  			if wireType != 2 {
  4397  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4398  			}
  4399  			var msglen int
  4400  			for shift := uint(0); ; shift += 7 {
  4401  				if shift >= 64 {
  4402  					return ErrIntOverflowQuery
  4403  				}
  4404  				if iNdEx >= l {
  4405  					return io.ErrUnexpectedEOF
  4406  				}
  4407  				b := dAtA[iNdEx]
  4408  				iNdEx++
  4409  				msglen |= int(b&0x7F) << shift
  4410  				if b < 0x80 {
  4411  					break
  4412  				}
  4413  			}
  4414  			if msglen < 0 {
  4415  				return ErrInvalidLengthQuery
  4416  			}
  4417  			postIndex := iNdEx + msglen
  4418  			if postIndex < 0 {
  4419  				return ErrInvalidLengthQuery
  4420  			}
  4421  			if postIndex > l {
  4422  				return io.ErrUnexpectedEOF
  4423  			}
  4424  			if m.Pagination == nil {
  4425  				m.Pagination = &query.PageRequest{}
  4426  			}
  4427  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4428  				return err
  4429  			}
  4430  			iNdEx = postIndex
  4431  		default:
  4432  			iNdEx = preIndex
  4433  			skippy, err := skipQuery(dAtA[iNdEx:])
  4434  			if err != nil {
  4435  				return err
  4436  			}
  4437  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4438  				return ErrInvalidLengthQuery
  4439  			}
  4440  			if (iNdEx + skippy) > l {
  4441  				return io.ErrUnexpectedEOF
  4442  			}
  4443  			iNdEx += skippy
  4444  		}
  4445  	}
  4446  
  4447  	if iNdEx > l {
  4448  		return io.ErrUnexpectedEOF
  4449  	}
  4450  	return nil
  4451  }
  4452  func (m *QueryGroupsByAdminResponse) Unmarshal(dAtA []byte) error {
  4453  	l := len(dAtA)
  4454  	iNdEx := 0
  4455  	for iNdEx < l {
  4456  		preIndex := iNdEx
  4457  		var wire uint64
  4458  		for shift := uint(0); ; shift += 7 {
  4459  			if shift >= 64 {
  4460  				return ErrIntOverflowQuery
  4461  			}
  4462  			if iNdEx >= l {
  4463  				return io.ErrUnexpectedEOF
  4464  			}
  4465  			b := dAtA[iNdEx]
  4466  			iNdEx++
  4467  			wire |= uint64(b&0x7F) << shift
  4468  			if b < 0x80 {
  4469  				break
  4470  			}
  4471  		}
  4472  		fieldNum := int32(wire >> 3)
  4473  		wireType := int(wire & 0x7)
  4474  		if wireType == 4 {
  4475  			return fmt.Errorf("proto: QueryGroupsByAdminResponse: wiretype end group for non-group")
  4476  		}
  4477  		if fieldNum <= 0 {
  4478  			return fmt.Errorf("proto: QueryGroupsByAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4479  		}
  4480  		switch fieldNum {
  4481  		case 1:
  4482  			if wireType != 2 {
  4483  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  4484  			}
  4485  			var msglen int
  4486  			for shift := uint(0); ; shift += 7 {
  4487  				if shift >= 64 {
  4488  					return ErrIntOverflowQuery
  4489  				}
  4490  				if iNdEx >= l {
  4491  					return io.ErrUnexpectedEOF
  4492  				}
  4493  				b := dAtA[iNdEx]
  4494  				iNdEx++
  4495  				msglen |= int(b&0x7F) << shift
  4496  				if b < 0x80 {
  4497  					break
  4498  				}
  4499  			}
  4500  			if msglen < 0 {
  4501  				return ErrInvalidLengthQuery
  4502  			}
  4503  			postIndex := iNdEx + msglen
  4504  			if postIndex < 0 {
  4505  				return ErrInvalidLengthQuery
  4506  			}
  4507  			if postIndex > l {
  4508  				return io.ErrUnexpectedEOF
  4509  			}
  4510  			m.Groups = append(m.Groups, &GroupInfo{})
  4511  			if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4512  				return err
  4513  			}
  4514  			iNdEx = postIndex
  4515  		case 2:
  4516  			if wireType != 2 {
  4517  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4518  			}
  4519  			var msglen int
  4520  			for shift := uint(0); ; shift += 7 {
  4521  				if shift >= 64 {
  4522  					return ErrIntOverflowQuery
  4523  				}
  4524  				if iNdEx >= l {
  4525  					return io.ErrUnexpectedEOF
  4526  				}
  4527  				b := dAtA[iNdEx]
  4528  				iNdEx++
  4529  				msglen |= int(b&0x7F) << shift
  4530  				if b < 0x80 {
  4531  					break
  4532  				}
  4533  			}
  4534  			if msglen < 0 {
  4535  				return ErrInvalidLengthQuery
  4536  			}
  4537  			postIndex := iNdEx + msglen
  4538  			if postIndex < 0 {
  4539  				return ErrInvalidLengthQuery
  4540  			}
  4541  			if postIndex > l {
  4542  				return io.ErrUnexpectedEOF
  4543  			}
  4544  			if m.Pagination == nil {
  4545  				m.Pagination = &query.PageResponse{}
  4546  			}
  4547  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4548  				return err
  4549  			}
  4550  			iNdEx = postIndex
  4551  		default:
  4552  			iNdEx = preIndex
  4553  			skippy, err := skipQuery(dAtA[iNdEx:])
  4554  			if err != nil {
  4555  				return err
  4556  			}
  4557  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4558  				return ErrInvalidLengthQuery
  4559  			}
  4560  			if (iNdEx + skippy) > l {
  4561  				return io.ErrUnexpectedEOF
  4562  			}
  4563  			iNdEx += skippy
  4564  		}
  4565  	}
  4566  
  4567  	if iNdEx > l {
  4568  		return io.ErrUnexpectedEOF
  4569  	}
  4570  	return nil
  4571  }
  4572  func (m *QueryGroupPoliciesByGroupRequest) Unmarshal(dAtA []byte) error {
  4573  	l := len(dAtA)
  4574  	iNdEx := 0
  4575  	for iNdEx < l {
  4576  		preIndex := iNdEx
  4577  		var wire uint64
  4578  		for shift := uint(0); ; shift += 7 {
  4579  			if shift >= 64 {
  4580  				return ErrIntOverflowQuery
  4581  			}
  4582  			if iNdEx >= l {
  4583  				return io.ErrUnexpectedEOF
  4584  			}
  4585  			b := dAtA[iNdEx]
  4586  			iNdEx++
  4587  			wire |= uint64(b&0x7F) << shift
  4588  			if b < 0x80 {
  4589  				break
  4590  			}
  4591  		}
  4592  		fieldNum := int32(wire >> 3)
  4593  		wireType := int(wire & 0x7)
  4594  		if wireType == 4 {
  4595  			return fmt.Errorf("proto: QueryGroupPoliciesByGroupRequest: wiretype end group for non-group")
  4596  		}
  4597  		if fieldNum <= 0 {
  4598  			return fmt.Errorf("proto: QueryGroupPoliciesByGroupRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4599  		}
  4600  		switch fieldNum {
  4601  		case 1:
  4602  			if wireType != 0 {
  4603  				return fmt.Errorf("proto: wrong wireType = %d for field GroupId", wireType)
  4604  			}
  4605  			m.GroupId = 0
  4606  			for shift := uint(0); ; shift += 7 {
  4607  				if shift >= 64 {
  4608  					return ErrIntOverflowQuery
  4609  				}
  4610  				if iNdEx >= l {
  4611  					return io.ErrUnexpectedEOF
  4612  				}
  4613  				b := dAtA[iNdEx]
  4614  				iNdEx++
  4615  				m.GroupId |= uint64(b&0x7F) << shift
  4616  				if b < 0x80 {
  4617  					break
  4618  				}
  4619  			}
  4620  		case 2:
  4621  			if wireType != 2 {
  4622  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4623  			}
  4624  			var msglen int
  4625  			for shift := uint(0); ; shift += 7 {
  4626  				if shift >= 64 {
  4627  					return ErrIntOverflowQuery
  4628  				}
  4629  				if iNdEx >= l {
  4630  					return io.ErrUnexpectedEOF
  4631  				}
  4632  				b := dAtA[iNdEx]
  4633  				iNdEx++
  4634  				msglen |= int(b&0x7F) << shift
  4635  				if b < 0x80 {
  4636  					break
  4637  				}
  4638  			}
  4639  			if msglen < 0 {
  4640  				return ErrInvalidLengthQuery
  4641  			}
  4642  			postIndex := iNdEx + msglen
  4643  			if postIndex < 0 {
  4644  				return ErrInvalidLengthQuery
  4645  			}
  4646  			if postIndex > l {
  4647  				return io.ErrUnexpectedEOF
  4648  			}
  4649  			if m.Pagination == nil {
  4650  				m.Pagination = &query.PageRequest{}
  4651  			}
  4652  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4653  				return err
  4654  			}
  4655  			iNdEx = postIndex
  4656  		default:
  4657  			iNdEx = preIndex
  4658  			skippy, err := skipQuery(dAtA[iNdEx:])
  4659  			if err != nil {
  4660  				return err
  4661  			}
  4662  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4663  				return ErrInvalidLengthQuery
  4664  			}
  4665  			if (iNdEx + skippy) > l {
  4666  				return io.ErrUnexpectedEOF
  4667  			}
  4668  			iNdEx += skippy
  4669  		}
  4670  	}
  4671  
  4672  	if iNdEx > l {
  4673  		return io.ErrUnexpectedEOF
  4674  	}
  4675  	return nil
  4676  }
  4677  func (m *QueryGroupPoliciesByGroupResponse) Unmarshal(dAtA []byte) error {
  4678  	l := len(dAtA)
  4679  	iNdEx := 0
  4680  	for iNdEx < l {
  4681  		preIndex := iNdEx
  4682  		var wire uint64
  4683  		for shift := uint(0); ; shift += 7 {
  4684  			if shift >= 64 {
  4685  				return ErrIntOverflowQuery
  4686  			}
  4687  			if iNdEx >= l {
  4688  				return io.ErrUnexpectedEOF
  4689  			}
  4690  			b := dAtA[iNdEx]
  4691  			iNdEx++
  4692  			wire |= uint64(b&0x7F) << shift
  4693  			if b < 0x80 {
  4694  				break
  4695  			}
  4696  		}
  4697  		fieldNum := int32(wire >> 3)
  4698  		wireType := int(wire & 0x7)
  4699  		if wireType == 4 {
  4700  			return fmt.Errorf("proto: QueryGroupPoliciesByGroupResponse: wiretype end group for non-group")
  4701  		}
  4702  		if fieldNum <= 0 {
  4703  			return fmt.Errorf("proto: QueryGroupPoliciesByGroupResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4704  		}
  4705  		switch fieldNum {
  4706  		case 1:
  4707  			if wireType != 2 {
  4708  				return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicies", wireType)
  4709  			}
  4710  			var msglen int
  4711  			for shift := uint(0); ; shift += 7 {
  4712  				if shift >= 64 {
  4713  					return ErrIntOverflowQuery
  4714  				}
  4715  				if iNdEx >= l {
  4716  					return io.ErrUnexpectedEOF
  4717  				}
  4718  				b := dAtA[iNdEx]
  4719  				iNdEx++
  4720  				msglen |= int(b&0x7F) << shift
  4721  				if b < 0x80 {
  4722  					break
  4723  				}
  4724  			}
  4725  			if msglen < 0 {
  4726  				return ErrInvalidLengthQuery
  4727  			}
  4728  			postIndex := iNdEx + msglen
  4729  			if postIndex < 0 {
  4730  				return ErrInvalidLengthQuery
  4731  			}
  4732  			if postIndex > l {
  4733  				return io.ErrUnexpectedEOF
  4734  			}
  4735  			m.GroupPolicies = append(m.GroupPolicies, &GroupPolicyInfo{})
  4736  			if err := m.GroupPolicies[len(m.GroupPolicies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4737  				return err
  4738  			}
  4739  			iNdEx = postIndex
  4740  		case 2:
  4741  			if wireType != 2 {
  4742  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4743  			}
  4744  			var msglen int
  4745  			for shift := uint(0); ; shift += 7 {
  4746  				if shift >= 64 {
  4747  					return ErrIntOverflowQuery
  4748  				}
  4749  				if iNdEx >= l {
  4750  					return io.ErrUnexpectedEOF
  4751  				}
  4752  				b := dAtA[iNdEx]
  4753  				iNdEx++
  4754  				msglen |= int(b&0x7F) << shift
  4755  				if b < 0x80 {
  4756  					break
  4757  				}
  4758  			}
  4759  			if msglen < 0 {
  4760  				return ErrInvalidLengthQuery
  4761  			}
  4762  			postIndex := iNdEx + msglen
  4763  			if postIndex < 0 {
  4764  				return ErrInvalidLengthQuery
  4765  			}
  4766  			if postIndex > l {
  4767  				return io.ErrUnexpectedEOF
  4768  			}
  4769  			if m.Pagination == nil {
  4770  				m.Pagination = &query.PageResponse{}
  4771  			}
  4772  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4773  				return err
  4774  			}
  4775  			iNdEx = postIndex
  4776  		default:
  4777  			iNdEx = preIndex
  4778  			skippy, err := skipQuery(dAtA[iNdEx:])
  4779  			if err != nil {
  4780  				return err
  4781  			}
  4782  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4783  				return ErrInvalidLengthQuery
  4784  			}
  4785  			if (iNdEx + skippy) > l {
  4786  				return io.ErrUnexpectedEOF
  4787  			}
  4788  			iNdEx += skippy
  4789  		}
  4790  	}
  4791  
  4792  	if iNdEx > l {
  4793  		return io.ErrUnexpectedEOF
  4794  	}
  4795  	return nil
  4796  }
  4797  func (m *QueryGroupPoliciesByAdminRequest) Unmarshal(dAtA []byte) error {
  4798  	l := len(dAtA)
  4799  	iNdEx := 0
  4800  	for iNdEx < l {
  4801  		preIndex := iNdEx
  4802  		var wire uint64
  4803  		for shift := uint(0); ; shift += 7 {
  4804  			if shift >= 64 {
  4805  				return ErrIntOverflowQuery
  4806  			}
  4807  			if iNdEx >= l {
  4808  				return io.ErrUnexpectedEOF
  4809  			}
  4810  			b := dAtA[iNdEx]
  4811  			iNdEx++
  4812  			wire |= uint64(b&0x7F) << shift
  4813  			if b < 0x80 {
  4814  				break
  4815  			}
  4816  		}
  4817  		fieldNum := int32(wire >> 3)
  4818  		wireType := int(wire & 0x7)
  4819  		if wireType == 4 {
  4820  			return fmt.Errorf("proto: QueryGroupPoliciesByAdminRequest: wiretype end group for non-group")
  4821  		}
  4822  		if fieldNum <= 0 {
  4823  			return fmt.Errorf("proto: QueryGroupPoliciesByAdminRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  4824  		}
  4825  		switch fieldNum {
  4826  		case 1:
  4827  			if wireType != 2 {
  4828  				return fmt.Errorf("proto: wrong wireType = %d for field Admin", wireType)
  4829  			}
  4830  			var stringLen uint64
  4831  			for shift := uint(0); ; shift += 7 {
  4832  				if shift >= 64 {
  4833  					return ErrIntOverflowQuery
  4834  				}
  4835  				if iNdEx >= l {
  4836  					return io.ErrUnexpectedEOF
  4837  				}
  4838  				b := dAtA[iNdEx]
  4839  				iNdEx++
  4840  				stringLen |= uint64(b&0x7F) << shift
  4841  				if b < 0x80 {
  4842  					break
  4843  				}
  4844  			}
  4845  			intStringLen := int(stringLen)
  4846  			if intStringLen < 0 {
  4847  				return ErrInvalidLengthQuery
  4848  			}
  4849  			postIndex := iNdEx + intStringLen
  4850  			if postIndex < 0 {
  4851  				return ErrInvalidLengthQuery
  4852  			}
  4853  			if postIndex > l {
  4854  				return io.ErrUnexpectedEOF
  4855  			}
  4856  			m.Admin = string(dAtA[iNdEx:postIndex])
  4857  			iNdEx = postIndex
  4858  		case 2:
  4859  			if wireType != 2 {
  4860  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4861  			}
  4862  			var msglen int
  4863  			for shift := uint(0); ; shift += 7 {
  4864  				if shift >= 64 {
  4865  					return ErrIntOverflowQuery
  4866  				}
  4867  				if iNdEx >= l {
  4868  					return io.ErrUnexpectedEOF
  4869  				}
  4870  				b := dAtA[iNdEx]
  4871  				iNdEx++
  4872  				msglen |= int(b&0x7F) << shift
  4873  				if b < 0x80 {
  4874  					break
  4875  				}
  4876  			}
  4877  			if msglen < 0 {
  4878  				return ErrInvalidLengthQuery
  4879  			}
  4880  			postIndex := iNdEx + msglen
  4881  			if postIndex < 0 {
  4882  				return ErrInvalidLengthQuery
  4883  			}
  4884  			if postIndex > l {
  4885  				return io.ErrUnexpectedEOF
  4886  			}
  4887  			if m.Pagination == nil {
  4888  				m.Pagination = &query.PageRequest{}
  4889  			}
  4890  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4891  				return err
  4892  			}
  4893  			iNdEx = postIndex
  4894  		default:
  4895  			iNdEx = preIndex
  4896  			skippy, err := skipQuery(dAtA[iNdEx:])
  4897  			if err != nil {
  4898  				return err
  4899  			}
  4900  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  4901  				return ErrInvalidLengthQuery
  4902  			}
  4903  			if (iNdEx + skippy) > l {
  4904  				return io.ErrUnexpectedEOF
  4905  			}
  4906  			iNdEx += skippy
  4907  		}
  4908  	}
  4909  
  4910  	if iNdEx > l {
  4911  		return io.ErrUnexpectedEOF
  4912  	}
  4913  	return nil
  4914  }
  4915  func (m *QueryGroupPoliciesByAdminResponse) Unmarshal(dAtA []byte) error {
  4916  	l := len(dAtA)
  4917  	iNdEx := 0
  4918  	for iNdEx < l {
  4919  		preIndex := iNdEx
  4920  		var wire uint64
  4921  		for shift := uint(0); ; shift += 7 {
  4922  			if shift >= 64 {
  4923  				return ErrIntOverflowQuery
  4924  			}
  4925  			if iNdEx >= l {
  4926  				return io.ErrUnexpectedEOF
  4927  			}
  4928  			b := dAtA[iNdEx]
  4929  			iNdEx++
  4930  			wire |= uint64(b&0x7F) << shift
  4931  			if b < 0x80 {
  4932  				break
  4933  			}
  4934  		}
  4935  		fieldNum := int32(wire >> 3)
  4936  		wireType := int(wire & 0x7)
  4937  		if wireType == 4 {
  4938  			return fmt.Errorf("proto: QueryGroupPoliciesByAdminResponse: wiretype end group for non-group")
  4939  		}
  4940  		if fieldNum <= 0 {
  4941  			return fmt.Errorf("proto: QueryGroupPoliciesByAdminResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  4942  		}
  4943  		switch fieldNum {
  4944  		case 1:
  4945  			if wireType != 2 {
  4946  				return fmt.Errorf("proto: wrong wireType = %d for field GroupPolicies", wireType)
  4947  			}
  4948  			var msglen int
  4949  			for shift := uint(0); ; shift += 7 {
  4950  				if shift >= 64 {
  4951  					return ErrIntOverflowQuery
  4952  				}
  4953  				if iNdEx >= l {
  4954  					return io.ErrUnexpectedEOF
  4955  				}
  4956  				b := dAtA[iNdEx]
  4957  				iNdEx++
  4958  				msglen |= int(b&0x7F) << shift
  4959  				if b < 0x80 {
  4960  					break
  4961  				}
  4962  			}
  4963  			if msglen < 0 {
  4964  				return ErrInvalidLengthQuery
  4965  			}
  4966  			postIndex := iNdEx + msglen
  4967  			if postIndex < 0 {
  4968  				return ErrInvalidLengthQuery
  4969  			}
  4970  			if postIndex > l {
  4971  				return io.ErrUnexpectedEOF
  4972  			}
  4973  			m.GroupPolicies = append(m.GroupPolicies, &GroupPolicyInfo{})
  4974  			if err := m.GroupPolicies[len(m.GroupPolicies)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4975  				return err
  4976  			}
  4977  			iNdEx = postIndex
  4978  		case 2:
  4979  			if wireType != 2 {
  4980  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  4981  			}
  4982  			var msglen int
  4983  			for shift := uint(0); ; shift += 7 {
  4984  				if shift >= 64 {
  4985  					return ErrIntOverflowQuery
  4986  				}
  4987  				if iNdEx >= l {
  4988  					return io.ErrUnexpectedEOF
  4989  				}
  4990  				b := dAtA[iNdEx]
  4991  				iNdEx++
  4992  				msglen |= int(b&0x7F) << shift
  4993  				if b < 0x80 {
  4994  					break
  4995  				}
  4996  			}
  4997  			if msglen < 0 {
  4998  				return ErrInvalidLengthQuery
  4999  			}
  5000  			postIndex := iNdEx + msglen
  5001  			if postIndex < 0 {
  5002  				return ErrInvalidLengthQuery
  5003  			}
  5004  			if postIndex > l {
  5005  				return io.ErrUnexpectedEOF
  5006  			}
  5007  			if m.Pagination == nil {
  5008  				m.Pagination = &query.PageResponse{}
  5009  			}
  5010  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5011  				return err
  5012  			}
  5013  			iNdEx = postIndex
  5014  		default:
  5015  			iNdEx = preIndex
  5016  			skippy, err := skipQuery(dAtA[iNdEx:])
  5017  			if err != nil {
  5018  				return err
  5019  			}
  5020  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5021  				return ErrInvalidLengthQuery
  5022  			}
  5023  			if (iNdEx + skippy) > l {
  5024  				return io.ErrUnexpectedEOF
  5025  			}
  5026  			iNdEx += skippy
  5027  		}
  5028  	}
  5029  
  5030  	if iNdEx > l {
  5031  		return io.ErrUnexpectedEOF
  5032  	}
  5033  	return nil
  5034  }
  5035  func (m *QueryProposalRequest) Unmarshal(dAtA []byte) error {
  5036  	l := len(dAtA)
  5037  	iNdEx := 0
  5038  	for iNdEx < l {
  5039  		preIndex := iNdEx
  5040  		var wire uint64
  5041  		for shift := uint(0); ; shift += 7 {
  5042  			if shift >= 64 {
  5043  				return ErrIntOverflowQuery
  5044  			}
  5045  			if iNdEx >= l {
  5046  				return io.ErrUnexpectedEOF
  5047  			}
  5048  			b := dAtA[iNdEx]
  5049  			iNdEx++
  5050  			wire |= uint64(b&0x7F) << shift
  5051  			if b < 0x80 {
  5052  				break
  5053  			}
  5054  		}
  5055  		fieldNum := int32(wire >> 3)
  5056  		wireType := int(wire & 0x7)
  5057  		if wireType == 4 {
  5058  			return fmt.Errorf("proto: QueryProposalRequest: wiretype end group for non-group")
  5059  		}
  5060  		if fieldNum <= 0 {
  5061  			return fmt.Errorf("proto: QueryProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5062  		}
  5063  		switch fieldNum {
  5064  		case 1:
  5065  			if wireType != 0 {
  5066  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  5067  			}
  5068  			m.ProposalId = 0
  5069  			for shift := uint(0); ; shift += 7 {
  5070  				if shift >= 64 {
  5071  					return ErrIntOverflowQuery
  5072  				}
  5073  				if iNdEx >= l {
  5074  					return io.ErrUnexpectedEOF
  5075  				}
  5076  				b := dAtA[iNdEx]
  5077  				iNdEx++
  5078  				m.ProposalId |= uint64(b&0x7F) << shift
  5079  				if b < 0x80 {
  5080  					break
  5081  				}
  5082  			}
  5083  		default:
  5084  			iNdEx = preIndex
  5085  			skippy, err := skipQuery(dAtA[iNdEx:])
  5086  			if err != nil {
  5087  				return err
  5088  			}
  5089  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5090  				return ErrInvalidLengthQuery
  5091  			}
  5092  			if (iNdEx + skippy) > l {
  5093  				return io.ErrUnexpectedEOF
  5094  			}
  5095  			iNdEx += skippy
  5096  		}
  5097  	}
  5098  
  5099  	if iNdEx > l {
  5100  		return io.ErrUnexpectedEOF
  5101  	}
  5102  	return nil
  5103  }
  5104  func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error {
  5105  	l := len(dAtA)
  5106  	iNdEx := 0
  5107  	for iNdEx < l {
  5108  		preIndex := iNdEx
  5109  		var wire uint64
  5110  		for shift := uint(0); ; shift += 7 {
  5111  			if shift >= 64 {
  5112  				return ErrIntOverflowQuery
  5113  			}
  5114  			if iNdEx >= l {
  5115  				return io.ErrUnexpectedEOF
  5116  			}
  5117  			b := dAtA[iNdEx]
  5118  			iNdEx++
  5119  			wire |= uint64(b&0x7F) << shift
  5120  			if b < 0x80 {
  5121  				break
  5122  			}
  5123  		}
  5124  		fieldNum := int32(wire >> 3)
  5125  		wireType := int(wire & 0x7)
  5126  		if wireType == 4 {
  5127  			return fmt.Errorf("proto: QueryProposalResponse: wiretype end group for non-group")
  5128  		}
  5129  		if fieldNum <= 0 {
  5130  			return fmt.Errorf("proto: QueryProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5131  		}
  5132  		switch fieldNum {
  5133  		case 1:
  5134  			if wireType != 2 {
  5135  				return fmt.Errorf("proto: wrong wireType = %d for field Proposal", wireType)
  5136  			}
  5137  			var msglen int
  5138  			for shift := uint(0); ; shift += 7 {
  5139  				if shift >= 64 {
  5140  					return ErrIntOverflowQuery
  5141  				}
  5142  				if iNdEx >= l {
  5143  					return io.ErrUnexpectedEOF
  5144  				}
  5145  				b := dAtA[iNdEx]
  5146  				iNdEx++
  5147  				msglen |= int(b&0x7F) << shift
  5148  				if b < 0x80 {
  5149  					break
  5150  				}
  5151  			}
  5152  			if msglen < 0 {
  5153  				return ErrInvalidLengthQuery
  5154  			}
  5155  			postIndex := iNdEx + msglen
  5156  			if postIndex < 0 {
  5157  				return ErrInvalidLengthQuery
  5158  			}
  5159  			if postIndex > l {
  5160  				return io.ErrUnexpectedEOF
  5161  			}
  5162  			if m.Proposal == nil {
  5163  				m.Proposal = &Proposal{}
  5164  			}
  5165  			if err := m.Proposal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5166  				return err
  5167  			}
  5168  			iNdEx = postIndex
  5169  		default:
  5170  			iNdEx = preIndex
  5171  			skippy, err := skipQuery(dAtA[iNdEx:])
  5172  			if err != nil {
  5173  				return err
  5174  			}
  5175  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5176  				return ErrInvalidLengthQuery
  5177  			}
  5178  			if (iNdEx + skippy) > l {
  5179  				return io.ErrUnexpectedEOF
  5180  			}
  5181  			iNdEx += skippy
  5182  		}
  5183  	}
  5184  
  5185  	if iNdEx > l {
  5186  		return io.ErrUnexpectedEOF
  5187  	}
  5188  	return nil
  5189  }
  5190  func (m *QueryProposalsByGroupPolicyRequest) Unmarshal(dAtA []byte) error {
  5191  	l := len(dAtA)
  5192  	iNdEx := 0
  5193  	for iNdEx < l {
  5194  		preIndex := iNdEx
  5195  		var wire uint64
  5196  		for shift := uint(0); ; shift += 7 {
  5197  			if shift >= 64 {
  5198  				return ErrIntOverflowQuery
  5199  			}
  5200  			if iNdEx >= l {
  5201  				return io.ErrUnexpectedEOF
  5202  			}
  5203  			b := dAtA[iNdEx]
  5204  			iNdEx++
  5205  			wire |= uint64(b&0x7F) << shift
  5206  			if b < 0x80 {
  5207  				break
  5208  			}
  5209  		}
  5210  		fieldNum := int32(wire >> 3)
  5211  		wireType := int(wire & 0x7)
  5212  		if wireType == 4 {
  5213  			return fmt.Errorf("proto: QueryProposalsByGroupPolicyRequest: wiretype end group for non-group")
  5214  		}
  5215  		if fieldNum <= 0 {
  5216  			return fmt.Errorf("proto: QueryProposalsByGroupPolicyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5217  		}
  5218  		switch fieldNum {
  5219  		case 1:
  5220  			if wireType != 2 {
  5221  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  5222  			}
  5223  			var stringLen uint64
  5224  			for shift := uint(0); ; shift += 7 {
  5225  				if shift >= 64 {
  5226  					return ErrIntOverflowQuery
  5227  				}
  5228  				if iNdEx >= l {
  5229  					return io.ErrUnexpectedEOF
  5230  				}
  5231  				b := dAtA[iNdEx]
  5232  				iNdEx++
  5233  				stringLen |= uint64(b&0x7F) << shift
  5234  				if b < 0x80 {
  5235  					break
  5236  				}
  5237  			}
  5238  			intStringLen := int(stringLen)
  5239  			if intStringLen < 0 {
  5240  				return ErrInvalidLengthQuery
  5241  			}
  5242  			postIndex := iNdEx + intStringLen
  5243  			if postIndex < 0 {
  5244  				return ErrInvalidLengthQuery
  5245  			}
  5246  			if postIndex > l {
  5247  				return io.ErrUnexpectedEOF
  5248  			}
  5249  			m.Address = string(dAtA[iNdEx:postIndex])
  5250  			iNdEx = postIndex
  5251  		case 2:
  5252  			if wireType != 2 {
  5253  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5254  			}
  5255  			var msglen int
  5256  			for shift := uint(0); ; shift += 7 {
  5257  				if shift >= 64 {
  5258  					return ErrIntOverflowQuery
  5259  				}
  5260  				if iNdEx >= l {
  5261  					return io.ErrUnexpectedEOF
  5262  				}
  5263  				b := dAtA[iNdEx]
  5264  				iNdEx++
  5265  				msglen |= int(b&0x7F) << shift
  5266  				if b < 0x80 {
  5267  					break
  5268  				}
  5269  			}
  5270  			if msglen < 0 {
  5271  				return ErrInvalidLengthQuery
  5272  			}
  5273  			postIndex := iNdEx + msglen
  5274  			if postIndex < 0 {
  5275  				return ErrInvalidLengthQuery
  5276  			}
  5277  			if postIndex > l {
  5278  				return io.ErrUnexpectedEOF
  5279  			}
  5280  			if m.Pagination == nil {
  5281  				m.Pagination = &query.PageRequest{}
  5282  			}
  5283  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5284  				return err
  5285  			}
  5286  			iNdEx = postIndex
  5287  		default:
  5288  			iNdEx = preIndex
  5289  			skippy, err := skipQuery(dAtA[iNdEx:])
  5290  			if err != nil {
  5291  				return err
  5292  			}
  5293  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5294  				return ErrInvalidLengthQuery
  5295  			}
  5296  			if (iNdEx + skippy) > l {
  5297  				return io.ErrUnexpectedEOF
  5298  			}
  5299  			iNdEx += skippy
  5300  		}
  5301  	}
  5302  
  5303  	if iNdEx > l {
  5304  		return io.ErrUnexpectedEOF
  5305  	}
  5306  	return nil
  5307  }
  5308  func (m *QueryProposalsByGroupPolicyResponse) Unmarshal(dAtA []byte) error {
  5309  	l := len(dAtA)
  5310  	iNdEx := 0
  5311  	for iNdEx < l {
  5312  		preIndex := iNdEx
  5313  		var wire uint64
  5314  		for shift := uint(0); ; shift += 7 {
  5315  			if shift >= 64 {
  5316  				return ErrIntOverflowQuery
  5317  			}
  5318  			if iNdEx >= l {
  5319  				return io.ErrUnexpectedEOF
  5320  			}
  5321  			b := dAtA[iNdEx]
  5322  			iNdEx++
  5323  			wire |= uint64(b&0x7F) << shift
  5324  			if b < 0x80 {
  5325  				break
  5326  			}
  5327  		}
  5328  		fieldNum := int32(wire >> 3)
  5329  		wireType := int(wire & 0x7)
  5330  		if wireType == 4 {
  5331  			return fmt.Errorf("proto: QueryProposalsByGroupPolicyResponse: wiretype end group for non-group")
  5332  		}
  5333  		if fieldNum <= 0 {
  5334  			return fmt.Errorf("proto: QueryProposalsByGroupPolicyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5335  		}
  5336  		switch fieldNum {
  5337  		case 1:
  5338  			if wireType != 2 {
  5339  				return fmt.Errorf("proto: wrong wireType = %d for field Proposals", wireType)
  5340  			}
  5341  			var msglen int
  5342  			for shift := uint(0); ; shift += 7 {
  5343  				if shift >= 64 {
  5344  					return ErrIntOverflowQuery
  5345  				}
  5346  				if iNdEx >= l {
  5347  					return io.ErrUnexpectedEOF
  5348  				}
  5349  				b := dAtA[iNdEx]
  5350  				iNdEx++
  5351  				msglen |= int(b&0x7F) << shift
  5352  				if b < 0x80 {
  5353  					break
  5354  				}
  5355  			}
  5356  			if msglen < 0 {
  5357  				return ErrInvalidLengthQuery
  5358  			}
  5359  			postIndex := iNdEx + msglen
  5360  			if postIndex < 0 {
  5361  				return ErrInvalidLengthQuery
  5362  			}
  5363  			if postIndex > l {
  5364  				return io.ErrUnexpectedEOF
  5365  			}
  5366  			m.Proposals = append(m.Proposals, &Proposal{})
  5367  			if err := m.Proposals[len(m.Proposals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5368  				return err
  5369  			}
  5370  			iNdEx = postIndex
  5371  		case 2:
  5372  			if wireType != 2 {
  5373  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5374  			}
  5375  			var msglen int
  5376  			for shift := uint(0); ; shift += 7 {
  5377  				if shift >= 64 {
  5378  					return ErrIntOverflowQuery
  5379  				}
  5380  				if iNdEx >= l {
  5381  					return io.ErrUnexpectedEOF
  5382  				}
  5383  				b := dAtA[iNdEx]
  5384  				iNdEx++
  5385  				msglen |= int(b&0x7F) << shift
  5386  				if b < 0x80 {
  5387  					break
  5388  				}
  5389  			}
  5390  			if msglen < 0 {
  5391  				return ErrInvalidLengthQuery
  5392  			}
  5393  			postIndex := iNdEx + msglen
  5394  			if postIndex < 0 {
  5395  				return ErrInvalidLengthQuery
  5396  			}
  5397  			if postIndex > l {
  5398  				return io.ErrUnexpectedEOF
  5399  			}
  5400  			if m.Pagination == nil {
  5401  				m.Pagination = &query.PageResponse{}
  5402  			}
  5403  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5404  				return err
  5405  			}
  5406  			iNdEx = postIndex
  5407  		default:
  5408  			iNdEx = preIndex
  5409  			skippy, err := skipQuery(dAtA[iNdEx:])
  5410  			if err != nil {
  5411  				return err
  5412  			}
  5413  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5414  				return ErrInvalidLengthQuery
  5415  			}
  5416  			if (iNdEx + skippy) > l {
  5417  				return io.ErrUnexpectedEOF
  5418  			}
  5419  			iNdEx += skippy
  5420  		}
  5421  	}
  5422  
  5423  	if iNdEx > l {
  5424  		return io.ErrUnexpectedEOF
  5425  	}
  5426  	return nil
  5427  }
  5428  func (m *QueryVoteByProposalVoterRequest) Unmarshal(dAtA []byte) error {
  5429  	l := len(dAtA)
  5430  	iNdEx := 0
  5431  	for iNdEx < l {
  5432  		preIndex := iNdEx
  5433  		var wire uint64
  5434  		for shift := uint(0); ; shift += 7 {
  5435  			if shift >= 64 {
  5436  				return ErrIntOverflowQuery
  5437  			}
  5438  			if iNdEx >= l {
  5439  				return io.ErrUnexpectedEOF
  5440  			}
  5441  			b := dAtA[iNdEx]
  5442  			iNdEx++
  5443  			wire |= uint64(b&0x7F) << shift
  5444  			if b < 0x80 {
  5445  				break
  5446  			}
  5447  		}
  5448  		fieldNum := int32(wire >> 3)
  5449  		wireType := int(wire & 0x7)
  5450  		if wireType == 4 {
  5451  			return fmt.Errorf("proto: QueryVoteByProposalVoterRequest: wiretype end group for non-group")
  5452  		}
  5453  		if fieldNum <= 0 {
  5454  			return fmt.Errorf("proto: QueryVoteByProposalVoterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5455  		}
  5456  		switch fieldNum {
  5457  		case 1:
  5458  			if wireType != 0 {
  5459  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  5460  			}
  5461  			m.ProposalId = 0
  5462  			for shift := uint(0); ; shift += 7 {
  5463  				if shift >= 64 {
  5464  					return ErrIntOverflowQuery
  5465  				}
  5466  				if iNdEx >= l {
  5467  					return io.ErrUnexpectedEOF
  5468  				}
  5469  				b := dAtA[iNdEx]
  5470  				iNdEx++
  5471  				m.ProposalId |= uint64(b&0x7F) << shift
  5472  				if b < 0x80 {
  5473  					break
  5474  				}
  5475  			}
  5476  		case 2:
  5477  			if wireType != 2 {
  5478  				return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType)
  5479  			}
  5480  			var stringLen uint64
  5481  			for shift := uint(0); ; shift += 7 {
  5482  				if shift >= 64 {
  5483  					return ErrIntOverflowQuery
  5484  				}
  5485  				if iNdEx >= l {
  5486  					return io.ErrUnexpectedEOF
  5487  				}
  5488  				b := dAtA[iNdEx]
  5489  				iNdEx++
  5490  				stringLen |= uint64(b&0x7F) << shift
  5491  				if b < 0x80 {
  5492  					break
  5493  				}
  5494  			}
  5495  			intStringLen := int(stringLen)
  5496  			if intStringLen < 0 {
  5497  				return ErrInvalidLengthQuery
  5498  			}
  5499  			postIndex := iNdEx + intStringLen
  5500  			if postIndex < 0 {
  5501  				return ErrInvalidLengthQuery
  5502  			}
  5503  			if postIndex > l {
  5504  				return io.ErrUnexpectedEOF
  5505  			}
  5506  			m.Voter = string(dAtA[iNdEx:postIndex])
  5507  			iNdEx = postIndex
  5508  		default:
  5509  			iNdEx = preIndex
  5510  			skippy, err := skipQuery(dAtA[iNdEx:])
  5511  			if err != nil {
  5512  				return err
  5513  			}
  5514  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5515  				return ErrInvalidLengthQuery
  5516  			}
  5517  			if (iNdEx + skippy) > l {
  5518  				return io.ErrUnexpectedEOF
  5519  			}
  5520  			iNdEx += skippy
  5521  		}
  5522  	}
  5523  
  5524  	if iNdEx > l {
  5525  		return io.ErrUnexpectedEOF
  5526  	}
  5527  	return nil
  5528  }
  5529  func (m *QueryVoteByProposalVoterResponse) Unmarshal(dAtA []byte) error {
  5530  	l := len(dAtA)
  5531  	iNdEx := 0
  5532  	for iNdEx < l {
  5533  		preIndex := iNdEx
  5534  		var wire uint64
  5535  		for shift := uint(0); ; shift += 7 {
  5536  			if shift >= 64 {
  5537  				return ErrIntOverflowQuery
  5538  			}
  5539  			if iNdEx >= l {
  5540  				return io.ErrUnexpectedEOF
  5541  			}
  5542  			b := dAtA[iNdEx]
  5543  			iNdEx++
  5544  			wire |= uint64(b&0x7F) << shift
  5545  			if b < 0x80 {
  5546  				break
  5547  			}
  5548  		}
  5549  		fieldNum := int32(wire >> 3)
  5550  		wireType := int(wire & 0x7)
  5551  		if wireType == 4 {
  5552  			return fmt.Errorf("proto: QueryVoteByProposalVoterResponse: wiretype end group for non-group")
  5553  		}
  5554  		if fieldNum <= 0 {
  5555  			return fmt.Errorf("proto: QueryVoteByProposalVoterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5556  		}
  5557  		switch fieldNum {
  5558  		case 1:
  5559  			if wireType != 2 {
  5560  				return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
  5561  			}
  5562  			var msglen int
  5563  			for shift := uint(0); ; shift += 7 {
  5564  				if shift >= 64 {
  5565  					return ErrIntOverflowQuery
  5566  				}
  5567  				if iNdEx >= l {
  5568  					return io.ErrUnexpectedEOF
  5569  				}
  5570  				b := dAtA[iNdEx]
  5571  				iNdEx++
  5572  				msglen |= int(b&0x7F) << shift
  5573  				if b < 0x80 {
  5574  					break
  5575  				}
  5576  			}
  5577  			if msglen < 0 {
  5578  				return ErrInvalidLengthQuery
  5579  			}
  5580  			postIndex := iNdEx + msglen
  5581  			if postIndex < 0 {
  5582  				return ErrInvalidLengthQuery
  5583  			}
  5584  			if postIndex > l {
  5585  				return io.ErrUnexpectedEOF
  5586  			}
  5587  			if m.Vote == nil {
  5588  				m.Vote = &Vote{}
  5589  			}
  5590  			if err := m.Vote.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5591  				return err
  5592  			}
  5593  			iNdEx = postIndex
  5594  		default:
  5595  			iNdEx = preIndex
  5596  			skippy, err := skipQuery(dAtA[iNdEx:])
  5597  			if err != nil {
  5598  				return err
  5599  			}
  5600  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5601  				return ErrInvalidLengthQuery
  5602  			}
  5603  			if (iNdEx + skippy) > l {
  5604  				return io.ErrUnexpectedEOF
  5605  			}
  5606  			iNdEx += skippy
  5607  		}
  5608  	}
  5609  
  5610  	if iNdEx > l {
  5611  		return io.ErrUnexpectedEOF
  5612  	}
  5613  	return nil
  5614  }
  5615  func (m *QueryVotesByProposalRequest) Unmarshal(dAtA []byte) error {
  5616  	l := len(dAtA)
  5617  	iNdEx := 0
  5618  	for iNdEx < l {
  5619  		preIndex := iNdEx
  5620  		var wire uint64
  5621  		for shift := uint(0); ; shift += 7 {
  5622  			if shift >= 64 {
  5623  				return ErrIntOverflowQuery
  5624  			}
  5625  			if iNdEx >= l {
  5626  				return io.ErrUnexpectedEOF
  5627  			}
  5628  			b := dAtA[iNdEx]
  5629  			iNdEx++
  5630  			wire |= uint64(b&0x7F) << shift
  5631  			if b < 0x80 {
  5632  				break
  5633  			}
  5634  		}
  5635  		fieldNum := int32(wire >> 3)
  5636  		wireType := int(wire & 0x7)
  5637  		if wireType == 4 {
  5638  			return fmt.Errorf("proto: QueryVotesByProposalRequest: wiretype end group for non-group")
  5639  		}
  5640  		if fieldNum <= 0 {
  5641  			return fmt.Errorf("proto: QueryVotesByProposalRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5642  		}
  5643  		switch fieldNum {
  5644  		case 1:
  5645  			if wireType != 0 {
  5646  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  5647  			}
  5648  			m.ProposalId = 0
  5649  			for shift := uint(0); ; shift += 7 {
  5650  				if shift >= 64 {
  5651  					return ErrIntOverflowQuery
  5652  				}
  5653  				if iNdEx >= l {
  5654  					return io.ErrUnexpectedEOF
  5655  				}
  5656  				b := dAtA[iNdEx]
  5657  				iNdEx++
  5658  				m.ProposalId |= uint64(b&0x7F) << shift
  5659  				if b < 0x80 {
  5660  					break
  5661  				}
  5662  			}
  5663  		case 2:
  5664  			if wireType != 2 {
  5665  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5666  			}
  5667  			var msglen int
  5668  			for shift := uint(0); ; shift += 7 {
  5669  				if shift >= 64 {
  5670  					return ErrIntOverflowQuery
  5671  				}
  5672  				if iNdEx >= l {
  5673  					return io.ErrUnexpectedEOF
  5674  				}
  5675  				b := dAtA[iNdEx]
  5676  				iNdEx++
  5677  				msglen |= int(b&0x7F) << shift
  5678  				if b < 0x80 {
  5679  					break
  5680  				}
  5681  			}
  5682  			if msglen < 0 {
  5683  				return ErrInvalidLengthQuery
  5684  			}
  5685  			postIndex := iNdEx + msglen
  5686  			if postIndex < 0 {
  5687  				return ErrInvalidLengthQuery
  5688  			}
  5689  			if postIndex > l {
  5690  				return io.ErrUnexpectedEOF
  5691  			}
  5692  			if m.Pagination == nil {
  5693  				m.Pagination = &query.PageRequest{}
  5694  			}
  5695  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5696  				return err
  5697  			}
  5698  			iNdEx = postIndex
  5699  		default:
  5700  			iNdEx = preIndex
  5701  			skippy, err := skipQuery(dAtA[iNdEx:])
  5702  			if err != nil {
  5703  				return err
  5704  			}
  5705  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5706  				return ErrInvalidLengthQuery
  5707  			}
  5708  			if (iNdEx + skippy) > l {
  5709  				return io.ErrUnexpectedEOF
  5710  			}
  5711  			iNdEx += skippy
  5712  		}
  5713  	}
  5714  
  5715  	if iNdEx > l {
  5716  		return io.ErrUnexpectedEOF
  5717  	}
  5718  	return nil
  5719  }
  5720  func (m *QueryVotesByProposalResponse) Unmarshal(dAtA []byte) error {
  5721  	l := len(dAtA)
  5722  	iNdEx := 0
  5723  	for iNdEx < l {
  5724  		preIndex := iNdEx
  5725  		var wire uint64
  5726  		for shift := uint(0); ; shift += 7 {
  5727  			if shift >= 64 {
  5728  				return ErrIntOverflowQuery
  5729  			}
  5730  			if iNdEx >= l {
  5731  				return io.ErrUnexpectedEOF
  5732  			}
  5733  			b := dAtA[iNdEx]
  5734  			iNdEx++
  5735  			wire |= uint64(b&0x7F) << shift
  5736  			if b < 0x80 {
  5737  				break
  5738  			}
  5739  		}
  5740  		fieldNum := int32(wire >> 3)
  5741  		wireType := int(wire & 0x7)
  5742  		if wireType == 4 {
  5743  			return fmt.Errorf("proto: QueryVotesByProposalResponse: wiretype end group for non-group")
  5744  		}
  5745  		if fieldNum <= 0 {
  5746  			return fmt.Errorf("proto: QueryVotesByProposalResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5747  		}
  5748  		switch fieldNum {
  5749  		case 1:
  5750  			if wireType != 2 {
  5751  				return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType)
  5752  			}
  5753  			var msglen int
  5754  			for shift := uint(0); ; shift += 7 {
  5755  				if shift >= 64 {
  5756  					return ErrIntOverflowQuery
  5757  				}
  5758  				if iNdEx >= l {
  5759  					return io.ErrUnexpectedEOF
  5760  				}
  5761  				b := dAtA[iNdEx]
  5762  				iNdEx++
  5763  				msglen |= int(b&0x7F) << shift
  5764  				if b < 0x80 {
  5765  					break
  5766  				}
  5767  			}
  5768  			if msglen < 0 {
  5769  				return ErrInvalidLengthQuery
  5770  			}
  5771  			postIndex := iNdEx + msglen
  5772  			if postIndex < 0 {
  5773  				return ErrInvalidLengthQuery
  5774  			}
  5775  			if postIndex > l {
  5776  				return io.ErrUnexpectedEOF
  5777  			}
  5778  			m.Votes = append(m.Votes, &Vote{})
  5779  			if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5780  				return err
  5781  			}
  5782  			iNdEx = postIndex
  5783  		case 2:
  5784  			if wireType != 2 {
  5785  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5786  			}
  5787  			var msglen int
  5788  			for shift := uint(0); ; shift += 7 {
  5789  				if shift >= 64 {
  5790  					return ErrIntOverflowQuery
  5791  				}
  5792  				if iNdEx >= l {
  5793  					return io.ErrUnexpectedEOF
  5794  				}
  5795  				b := dAtA[iNdEx]
  5796  				iNdEx++
  5797  				msglen |= int(b&0x7F) << shift
  5798  				if b < 0x80 {
  5799  					break
  5800  				}
  5801  			}
  5802  			if msglen < 0 {
  5803  				return ErrInvalidLengthQuery
  5804  			}
  5805  			postIndex := iNdEx + msglen
  5806  			if postIndex < 0 {
  5807  				return ErrInvalidLengthQuery
  5808  			}
  5809  			if postIndex > l {
  5810  				return io.ErrUnexpectedEOF
  5811  			}
  5812  			if m.Pagination == nil {
  5813  				m.Pagination = &query.PageResponse{}
  5814  			}
  5815  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5816  				return err
  5817  			}
  5818  			iNdEx = postIndex
  5819  		default:
  5820  			iNdEx = preIndex
  5821  			skippy, err := skipQuery(dAtA[iNdEx:])
  5822  			if err != nil {
  5823  				return err
  5824  			}
  5825  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5826  				return ErrInvalidLengthQuery
  5827  			}
  5828  			if (iNdEx + skippy) > l {
  5829  				return io.ErrUnexpectedEOF
  5830  			}
  5831  			iNdEx += skippy
  5832  		}
  5833  	}
  5834  
  5835  	if iNdEx > l {
  5836  		return io.ErrUnexpectedEOF
  5837  	}
  5838  	return nil
  5839  }
  5840  func (m *QueryVotesByVoterRequest) Unmarshal(dAtA []byte) error {
  5841  	l := len(dAtA)
  5842  	iNdEx := 0
  5843  	for iNdEx < l {
  5844  		preIndex := iNdEx
  5845  		var wire uint64
  5846  		for shift := uint(0); ; shift += 7 {
  5847  			if shift >= 64 {
  5848  				return ErrIntOverflowQuery
  5849  			}
  5850  			if iNdEx >= l {
  5851  				return io.ErrUnexpectedEOF
  5852  			}
  5853  			b := dAtA[iNdEx]
  5854  			iNdEx++
  5855  			wire |= uint64(b&0x7F) << shift
  5856  			if b < 0x80 {
  5857  				break
  5858  			}
  5859  		}
  5860  		fieldNum := int32(wire >> 3)
  5861  		wireType := int(wire & 0x7)
  5862  		if wireType == 4 {
  5863  			return fmt.Errorf("proto: QueryVotesByVoterRequest: wiretype end group for non-group")
  5864  		}
  5865  		if fieldNum <= 0 {
  5866  			return fmt.Errorf("proto: QueryVotesByVoterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5867  		}
  5868  		switch fieldNum {
  5869  		case 1:
  5870  			if wireType != 2 {
  5871  				return fmt.Errorf("proto: wrong wireType = %d for field Voter", wireType)
  5872  			}
  5873  			var stringLen uint64
  5874  			for shift := uint(0); ; shift += 7 {
  5875  				if shift >= 64 {
  5876  					return ErrIntOverflowQuery
  5877  				}
  5878  				if iNdEx >= l {
  5879  					return io.ErrUnexpectedEOF
  5880  				}
  5881  				b := dAtA[iNdEx]
  5882  				iNdEx++
  5883  				stringLen |= uint64(b&0x7F) << shift
  5884  				if b < 0x80 {
  5885  					break
  5886  				}
  5887  			}
  5888  			intStringLen := int(stringLen)
  5889  			if intStringLen < 0 {
  5890  				return ErrInvalidLengthQuery
  5891  			}
  5892  			postIndex := iNdEx + intStringLen
  5893  			if postIndex < 0 {
  5894  				return ErrInvalidLengthQuery
  5895  			}
  5896  			if postIndex > l {
  5897  				return io.ErrUnexpectedEOF
  5898  			}
  5899  			m.Voter = string(dAtA[iNdEx:postIndex])
  5900  			iNdEx = postIndex
  5901  		case 2:
  5902  			if wireType != 2 {
  5903  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  5904  			}
  5905  			var msglen int
  5906  			for shift := uint(0); ; shift += 7 {
  5907  				if shift >= 64 {
  5908  					return ErrIntOverflowQuery
  5909  				}
  5910  				if iNdEx >= l {
  5911  					return io.ErrUnexpectedEOF
  5912  				}
  5913  				b := dAtA[iNdEx]
  5914  				iNdEx++
  5915  				msglen |= int(b&0x7F) << shift
  5916  				if b < 0x80 {
  5917  					break
  5918  				}
  5919  			}
  5920  			if msglen < 0 {
  5921  				return ErrInvalidLengthQuery
  5922  			}
  5923  			postIndex := iNdEx + msglen
  5924  			if postIndex < 0 {
  5925  				return ErrInvalidLengthQuery
  5926  			}
  5927  			if postIndex > l {
  5928  				return io.ErrUnexpectedEOF
  5929  			}
  5930  			if m.Pagination == nil {
  5931  				m.Pagination = &query.PageRequest{}
  5932  			}
  5933  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5934  				return err
  5935  			}
  5936  			iNdEx = postIndex
  5937  		default:
  5938  			iNdEx = preIndex
  5939  			skippy, err := skipQuery(dAtA[iNdEx:])
  5940  			if err != nil {
  5941  				return err
  5942  			}
  5943  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5944  				return ErrInvalidLengthQuery
  5945  			}
  5946  			if (iNdEx + skippy) > l {
  5947  				return io.ErrUnexpectedEOF
  5948  			}
  5949  			iNdEx += skippy
  5950  		}
  5951  	}
  5952  
  5953  	if iNdEx > l {
  5954  		return io.ErrUnexpectedEOF
  5955  	}
  5956  	return nil
  5957  }
  5958  func (m *QueryVotesByVoterResponse) Unmarshal(dAtA []byte) error {
  5959  	l := len(dAtA)
  5960  	iNdEx := 0
  5961  	for iNdEx < l {
  5962  		preIndex := iNdEx
  5963  		var wire uint64
  5964  		for shift := uint(0); ; shift += 7 {
  5965  			if shift >= 64 {
  5966  				return ErrIntOverflowQuery
  5967  			}
  5968  			if iNdEx >= l {
  5969  				return io.ErrUnexpectedEOF
  5970  			}
  5971  			b := dAtA[iNdEx]
  5972  			iNdEx++
  5973  			wire |= uint64(b&0x7F) << shift
  5974  			if b < 0x80 {
  5975  				break
  5976  			}
  5977  		}
  5978  		fieldNum := int32(wire >> 3)
  5979  		wireType := int(wire & 0x7)
  5980  		if wireType == 4 {
  5981  			return fmt.Errorf("proto: QueryVotesByVoterResponse: wiretype end group for non-group")
  5982  		}
  5983  		if fieldNum <= 0 {
  5984  			return fmt.Errorf("proto: QueryVotesByVoterResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5985  		}
  5986  		switch fieldNum {
  5987  		case 1:
  5988  			if wireType != 2 {
  5989  				return fmt.Errorf("proto: wrong wireType = %d for field Votes", wireType)
  5990  			}
  5991  			var msglen int
  5992  			for shift := uint(0); ; shift += 7 {
  5993  				if shift >= 64 {
  5994  					return ErrIntOverflowQuery
  5995  				}
  5996  				if iNdEx >= l {
  5997  					return io.ErrUnexpectedEOF
  5998  				}
  5999  				b := dAtA[iNdEx]
  6000  				iNdEx++
  6001  				msglen |= int(b&0x7F) << shift
  6002  				if b < 0x80 {
  6003  					break
  6004  				}
  6005  			}
  6006  			if msglen < 0 {
  6007  				return ErrInvalidLengthQuery
  6008  			}
  6009  			postIndex := iNdEx + msglen
  6010  			if postIndex < 0 {
  6011  				return ErrInvalidLengthQuery
  6012  			}
  6013  			if postIndex > l {
  6014  				return io.ErrUnexpectedEOF
  6015  			}
  6016  			m.Votes = append(m.Votes, &Vote{})
  6017  			if err := m.Votes[len(m.Votes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6018  				return err
  6019  			}
  6020  			iNdEx = postIndex
  6021  		case 2:
  6022  			if wireType != 2 {
  6023  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  6024  			}
  6025  			var msglen int
  6026  			for shift := uint(0); ; shift += 7 {
  6027  				if shift >= 64 {
  6028  					return ErrIntOverflowQuery
  6029  				}
  6030  				if iNdEx >= l {
  6031  					return io.ErrUnexpectedEOF
  6032  				}
  6033  				b := dAtA[iNdEx]
  6034  				iNdEx++
  6035  				msglen |= int(b&0x7F) << shift
  6036  				if b < 0x80 {
  6037  					break
  6038  				}
  6039  			}
  6040  			if msglen < 0 {
  6041  				return ErrInvalidLengthQuery
  6042  			}
  6043  			postIndex := iNdEx + msglen
  6044  			if postIndex < 0 {
  6045  				return ErrInvalidLengthQuery
  6046  			}
  6047  			if postIndex > l {
  6048  				return io.ErrUnexpectedEOF
  6049  			}
  6050  			if m.Pagination == nil {
  6051  				m.Pagination = &query.PageResponse{}
  6052  			}
  6053  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6054  				return err
  6055  			}
  6056  			iNdEx = postIndex
  6057  		default:
  6058  			iNdEx = preIndex
  6059  			skippy, err := skipQuery(dAtA[iNdEx:])
  6060  			if err != nil {
  6061  				return err
  6062  			}
  6063  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6064  				return ErrInvalidLengthQuery
  6065  			}
  6066  			if (iNdEx + skippy) > l {
  6067  				return io.ErrUnexpectedEOF
  6068  			}
  6069  			iNdEx += skippy
  6070  		}
  6071  	}
  6072  
  6073  	if iNdEx > l {
  6074  		return io.ErrUnexpectedEOF
  6075  	}
  6076  	return nil
  6077  }
  6078  func (m *QueryGroupsByMemberRequest) Unmarshal(dAtA []byte) error {
  6079  	l := len(dAtA)
  6080  	iNdEx := 0
  6081  	for iNdEx < l {
  6082  		preIndex := iNdEx
  6083  		var wire uint64
  6084  		for shift := uint(0); ; shift += 7 {
  6085  			if shift >= 64 {
  6086  				return ErrIntOverflowQuery
  6087  			}
  6088  			if iNdEx >= l {
  6089  				return io.ErrUnexpectedEOF
  6090  			}
  6091  			b := dAtA[iNdEx]
  6092  			iNdEx++
  6093  			wire |= uint64(b&0x7F) << shift
  6094  			if b < 0x80 {
  6095  				break
  6096  			}
  6097  		}
  6098  		fieldNum := int32(wire >> 3)
  6099  		wireType := int(wire & 0x7)
  6100  		if wireType == 4 {
  6101  			return fmt.Errorf("proto: QueryGroupsByMemberRequest: wiretype end group for non-group")
  6102  		}
  6103  		if fieldNum <= 0 {
  6104  			return fmt.Errorf("proto: QueryGroupsByMemberRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6105  		}
  6106  		switch fieldNum {
  6107  		case 1:
  6108  			if wireType != 2 {
  6109  				return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  6110  			}
  6111  			var stringLen uint64
  6112  			for shift := uint(0); ; shift += 7 {
  6113  				if shift >= 64 {
  6114  					return ErrIntOverflowQuery
  6115  				}
  6116  				if iNdEx >= l {
  6117  					return io.ErrUnexpectedEOF
  6118  				}
  6119  				b := dAtA[iNdEx]
  6120  				iNdEx++
  6121  				stringLen |= uint64(b&0x7F) << shift
  6122  				if b < 0x80 {
  6123  					break
  6124  				}
  6125  			}
  6126  			intStringLen := int(stringLen)
  6127  			if intStringLen < 0 {
  6128  				return ErrInvalidLengthQuery
  6129  			}
  6130  			postIndex := iNdEx + intStringLen
  6131  			if postIndex < 0 {
  6132  				return ErrInvalidLengthQuery
  6133  			}
  6134  			if postIndex > l {
  6135  				return io.ErrUnexpectedEOF
  6136  			}
  6137  			m.Address = string(dAtA[iNdEx:postIndex])
  6138  			iNdEx = postIndex
  6139  		case 2:
  6140  			if wireType != 2 {
  6141  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  6142  			}
  6143  			var msglen int
  6144  			for shift := uint(0); ; shift += 7 {
  6145  				if shift >= 64 {
  6146  					return ErrIntOverflowQuery
  6147  				}
  6148  				if iNdEx >= l {
  6149  					return io.ErrUnexpectedEOF
  6150  				}
  6151  				b := dAtA[iNdEx]
  6152  				iNdEx++
  6153  				msglen |= int(b&0x7F) << shift
  6154  				if b < 0x80 {
  6155  					break
  6156  				}
  6157  			}
  6158  			if msglen < 0 {
  6159  				return ErrInvalidLengthQuery
  6160  			}
  6161  			postIndex := iNdEx + msglen
  6162  			if postIndex < 0 {
  6163  				return ErrInvalidLengthQuery
  6164  			}
  6165  			if postIndex > l {
  6166  				return io.ErrUnexpectedEOF
  6167  			}
  6168  			if m.Pagination == nil {
  6169  				m.Pagination = &query.PageRequest{}
  6170  			}
  6171  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6172  				return err
  6173  			}
  6174  			iNdEx = postIndex
  6175  		default:
  6176  			iNdEx = preIndex
  6177  			skippy, err := skipQuery(dAtA[iNdEx:])
  6178  			if err != nil {
  6179  				return err
  6180  			}
  6181  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6182  				return ErrInvalidLengthQuery
  6183  			}
  6184  			if (iNdEx + skippy) > l {
  6185  				return io.ErrUnexpectedEOF
  6186  			}
  6187  			iNdEx += skippy
  6188  		}
  6189  	}
  6190  
  6191  	if iNdEx > l {
  6192  		return io.ErrUnexpectedEOF
  6193  	}
  6194  	return nil
  6195  }
  6196  func (m *QueryGroupsByMemberResponse) Unmarshal(dAtA []byte) error {
  6197  	l := len(dAtA)
  6198  	iNdEx := 0
  6199  	for iNdEx < l {
  6200  		preIndex := iNdEx
  6201  		var wire uint64
  6202  		for shift := uint(0); ; shift += 7 {
  6203  			if shift >= 64 {
  6204  				return ErrIntOverflowQuery
  6205  			}
  6206  			if iNdEx >= l {
  6207  				return io.ErrUnexpectedEOF
  6208  			}
  6209  			b := dAtA[iNdEx]
  6210  			iNdEx++
  6211  			wire |= uint64(b&0x7F) << shift
  6212  			if b < 0x80 {
  6213  				break
  6214  			}
  6215  		}
  6216  		fieldNum := int32(wire >> 3)
  6217  		wireType := int(wire & 0x7)
  6218  		if wireType == 4 {
  6219  			return fmt.Errorf("proto: QueryGroupsByMemberResponse: wiretype end group for non-group")
  6220  		}
  6221  		if fieldNum <= 0 {
  6222  			return fmt.Errorf("proto: QueryGroupsByMemberResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6223  		}
  6224  		switch fieldNum {
  6225  		case 1:
  6226  			if wireType != 2 {
  6227  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  6228  			}
  6229  			var msglen int
  6230  			for shift := uint(0); ; shift += 7 {
  6231  				if shift >= 64 {
  6232  					return ErrIntOverflowQuery
  6233  				}
  6234  				if iNdEx >= l {
  6235  					return io.ErrUnexpectedEOF
  6236  				}
  6237  				b := dAtA[iNdEx]
  6238  				iNdEx++
  6239  				msglen |= int(b&0x7F) << shift
  6240  				if b < 0x80 {
  6241  					break
  6242  				}
  6243  			}
  6244  			if msglen < 0 {
  6245  				return ErrInvalidLengthQuery
  6246  			}
  6247  			postIndex := iNdEx + msglen
  6248  			if postIndex < 0 {
  6249  				return ErrInvalidLengthQuery
  6250  			}
  6251  			if postIndex > l {
  6252  				return io.ErrUnexpectedEOF
  6253  			}
  6254  			m.Groups = append(m.Groups, &GroupInfo{})
  6255  			if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6256  				return err
  6257  			}
  6258  			iNdEx = postIndex
  6259  		case 2:
  6260  			if wireType != 2 {
  6261  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  6262  			}
  6263  			var msglen int
  6264  			for shift := uint(0); ; shift += 7 {
  6265  				if shift >= 64 {
  6266  					return ErrIntOverflowQuery
  6267  				}
  6268  				if iNdEx >= l {
  6269  					return io.ErrUnexpectedEOF
  6270  				}
  6271  				b := dAtA[iNdEx]
  6272  				iNdEx++
  6273  				msglen |= int(b&0x7F) << shift
  6274  				if b < 0x80 {
  6275  					break
  6276  				}
  6277  			}
  6278  			if msglen < 0 {
  6279  				return ErrInvalidLengthQuery
  6280  			}
  6281  			postIndex := iNdEx + msglen
  6282  			if postIndex < 0 {
  6283  				return ErrInvalidLengthQuery
  6284  			}
  6285  			if postIndex > l {
  6286  				return io.ErrUnexpectedEOF
  6287  			}
  6288  			if m.Pagination == nil {
  6289  				m.Pagination = &query.PageResponse{}
  6290  			}
  6291  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6292  				return err
  6293  			}
  6294  			iNdEx = postIndex
  6295  		default:
  6296  			iNdEx = preIndex
  6297  			skippy, err := skipQuery(dAtA[iNdEx:])
  6298  			if err != nil {
  6299  				return err
  6300  			}
  6301  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6302  				return ErrInvalidLengthQuery
  6303  			}
  6304  			if (iNdEx + skippy) > l {
  6305  				return io.ErrUnexpectedEOF
  6306  			}
  6307  			iNdEx += skippy
  6308  		}
  6309  	}
  6310  
  6311  	if iNdEx > l {
  6312  		return io.ErrUnexpectedEOF
  6313  	}
  6314  	return nil
  6315  }
  6316  func (m *QueryTallyResultRequest) Unmarshal(dAtA []byte) error {
  6317  	l := len(dAtA)
  6318  	iNdEx := 0
  6319  	for iNdEx < l {
  6320  		preIndex := iNdEx
  6321  		var wire uint64
  6322  		for shift := uint(0); ; shift += 7 {
  6323  			if shift >= 64 {
  6324  				return ErrIntOverflowQuery
  6325  			}
  6326  			if iNdEx >= l {
  6327  				return io.ErrUnexpectedEOF
  6328  			}
  6329  			b := dAtA[iNdEx]
  6330  			iNdEx++
  6331  			wire |= uint64(b&0x7F) << shift
  6332  			if b < 0x80 {
  6333  				break
  6334  			}
  6335  		}
  6336  		fieldNum := int32(wire >> 3)
  6337  		wireType := int(wire & 0x7)
  6338  		if wireType == 4 {
  6339  			return fmt.Errorf("proto: QueryTallyResultRequest: wiretype end group for non-group")
  6340  		}
  6341  		if fieldNum <= 0 {
  6342  			return fmt.Errorf("proto: QueryTallyResultRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6343  		}
  6344  		switch fieldNum {
  6345  		case 1:
  6346  			if wireType != 0 {
  6347  				return fmt.Errorf("proto: wrong wireType = %d for field ProposalId", wireType)
  6348  			}
  6349  			m.ProposalId = 0
  6350  			for shift := uint(0); ; shift += 7 {
  6351  				if shift >= 64 {
  6352  					return ErrIntOverflowQuery
  6353  				}
  6354  				if iNdEx >= l {
  6355  					return io.ErrUnexpectedEOF
  6356  				}
  6357  				b := dAtA[iNdEx]
  6358  				iNdEx++
  6359  				m.ProposalId |= uint64(b&0x7F) << shift
  6360  				if b < 0x80 {
  6361  					break
  6362  				}
  6363  			}
  6364  		default:
  6365  			iNdEx = preIndex
  6366  			skippy, err := skipQuery(dAtA[iNdEx:])
  6367  			if err != nil {
  6368  				return err
  6369  			}
  6370  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6371  				return ErrInvalidLengthQuery
  6372  			}
  6373  			if (iNdEx + skippy) > l {
  6374  				return io.ErrUnexpectedEOF
  6375  			}
  6376  			iNdEx += skippy
  6377  		}
  6378  	}
  6379  
  6380  	if iNdEx > l {
  6381  		return io.ErrUnexpectedEOF
  6382  	}
  6383  	return nil
  6384  }
  6385  func (m *QueryTallyResultResponse) Unmarshal(dAtA []byte) error {
  6386  	l := len(dAtA)
  6387  	iNdEx := 0
  6388  	for iNdEx < l {
  6389  		preIndex := iNdEx
  6390  		var wire uint64
  6391  		for shift := uint(0); ; shift += 7 {
  6392  			if shift >= 64 {
  6393  				return ErrIntOverflowQuery
  6394  			}
  6395  			if iNdEx >= l {
  6396  				return io.ErrUnexpectedEOF
  6397  			}
  6398  			b := dAtA[iNdEx]
  6399  			iNdEx++
  6400  			wire |= uint64(b&0x7F) << shift
  6401  			if b < 0x80 {
  6402  				break
  6403  			}
  6404  		}
  6405  		fieldNum := int32(wire >> 3)
  6406  		wireType := int(wire & 0x7)
  6407  		if wireType == 4 {
  6408  			return fmt.Errorf("proto: QueryTallyResultResponse: wiretype end group for non-group")
  6409  		}
  6410  		if fieldNum <= 0 {
  6411  			return fmt.Errorf("proto: QueryTallyResultResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6412  		}
  6413  		switch fieldNum {
  6414  		case 1:
  6415  			if wireType != 2 {
  6416  				return fmt.Errorf("proto: wrong wireType = %d for field Tally", wireType)
  6417  			}
  6418  			var msglen int
  6419  			for shift := uint(0); ; shift += 7 {
  6420  				if shift >= 64 {
  6421  					return ErrIntOverflowQuery
  6422  				}
  6423  				if iNdEx >= l {
  6424  					return io.ErrUnexpectedEOF
  6425  				}
  6426  				b := dAtA[iNdEx]
  6427  				iNdEx++
  6428  				msglen |= int(b&0x7F) << shift
  6429  				if b < 0x80 {
  6430  					break
  6431  				}
  6432  			}
  6433  			if msglen < 0 {
  6434  				return ErrInvalidLengthQuery
  6435  			}
  6436  			postIndex := iNdEx + msglen
  6437  			if postIndex < 0 {
  6438  				return ErrInvalidLengthQuery
  6439  			}
  6440  			if postIndex > l {
  6441  				return io.ErrUnexpectedEOF
  6442  			}
  6443  			if err := m.Tally.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6444  				return err
  6445  			}
  6446  			iNdEx = postIndex
  6447  		default:
  6448  			iNdEx = preIndex
  6449  			skippy, err := skipQuery(dAtA[iNdEx:])
  6450  			if err != nil {
  6451  				return err
  6452  			}
  6453  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6454  				return ErrInvalidLengthQuery
  6455  			}
  6456  			if (iNdEx + skippy) > l {
  6457  				return io.ErrUnexpectedEOF
  6458  			}
  6459  			iNdEx += skippy
  6460  		}
  6461  	}
  6462  
  6463  	if iNdEx > l {
  6464  		return io.ErrUnexpectedEOF
  6465  	}
  6466  	return nil
  6467  }
  6468  func (m *QueryGroupsRequest) Unmarshal(dAtA []byte) error {
  6469  	l := len(dAtA)
  6470  	iNdEx := 0
  6471  	for iNdEx < l {
  6472  		preIndex := iNdEx
  6473  		var wire uint64
  6474  		for shift := uint(0); ; shift += 7 {
  6475  			if shift >= 64 {
  6476  				return ErrIntOverflowQuery
  6477  			}
  6478  			if iNdEx >= l {
  6479  				return io.ErrUnexpectedEOF
  6480  			}
  6481  			b := dAtA[iNdEx]
  6482  			iNdEx++
  6483  			wire |= uint64(b&0x7F) << shift
  6484  			if b < 0x80 {
  6485  				break
  6486  			}
  6487  		}
  6488  		fieldNum := int32(wire >> 3)
  6489  		wireType := int(wire & 0x7)
  6490  		if wireType == 4 {
  6491  			return fmt.Errorf("proto: QueryGroupsRequest: wiretype end group for non-group")
  6492  		}
  6493  		if fieldNum <= 0 {
  6494  			return fmt.Errorf("proto: QueryGroupsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6495  		}
  6496  		switch fieldNum {
  6497  		case 2:
  6498  			if wireType != 2 {
  6499  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  6500  			}
  6501  			var msglen int
  6502  			for shift := uint(0); ; shift += 7 {
  6503  				if shift >= 64 {
  6504  					return ErrIntOverflowQuery
  6505  				}
  6506  				if iNdEx >= l {
  6507  					return io.ErrUnexpectedEOF
  6508  				}
  6509  				b := dAtA[iNdEx]
  6510  				iNdEx++
  6511  				msglen |= int(b&0x7F) << shift
  6512  				if b < 0x80 {
  6513  					break
  6514  				}
  6515  			}
  6516  			if msglen < 0 {
  6517  				return ErrInvalidLengthQuery
  6518  			}
  6519  			postIndex := iNdEx + msglen
  6520  			if postIndex < 0 {
  6521  				return ErrInvalidLengthQuery
  6522  			}
  6523  			if postIndex > l {
  6524  				return io.ErrUnexpectedEOF
  6525  			}
  6526  			if m.Pagination == nil {
  6527  				m.Pagination = &query.PageRequest{}
  6528  			}
  6529  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6530  				return err
  6531  			}
  6532  			iNdEx = postIndex
  6533  		default:
  6534  			iNdEx = preIndex
  6535  			skippy, err := skipQuery(dAtA[iNdEx:])
  6536  			if err != nil {
  6537  				return err
  6538  			}
  6539  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6540  				return ErrInvalidLengthQuery
  6541  			}
  6542  			if (iNdEx + skippy) > l {
  6543  				return io.ErrUnexpectedEOF
  6544  			}
  6545  			iNdEx += skippy
  6546  		}
  6547  	}
  6548  
  6549  	if iNdEx > l {
  6550  		return io.ErrUnexpectedEOF
  6551  	}
  6552  	return nil
  6553  }
  6554  func (m *QueryGroupsResponse) Unmarshal(dAtA []byte) error {
  6555  	l := len(dAtA)
  6556  	iNdEx := 0
  6557  	for iNdEx < l {
  6558  		preIndex := iNdEx
  6559  		var wire uint64
  6560  		for shift := uint(0); ; shift += 7 {
  6561  			if shift >= 64 {
  6562  				return ErrIntOverflowQuery
  6563  			}
  6564  			if iNdEx >= l {
  6565  				return io.ErrUnexpectedEOF
  6566  			}
  6567  			b := dAtA[iNdEx]
  6568  			iNdEx++
  6569  			wire |= uint64(b&0x7F) << shift
  6570  			if b < 0x80 {
  6571  				break
  6572  			}
  6573  		}
  6574  		fieldNum := int32(wire >> 3)
  6575  		wireType := int(wire & 0x7)
  6576  		if wireType == 4 {
  6577  			return fmt.Errorf("proto: QueryGroupsResponse: wiretype end group for non-group")
  6578  		}
  6579  		if fieldNum <= 0 {
  6580  			return fmt.Errorf("proto: QueryGroupsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6581  		}
  6582  		switch fieldNum {
  6583  		case 1:
  6584  			if wireType != 2 {
  6585  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
  6586  			}
  6587  			var msglen int
  6588  			for shift := uint(0); ; shift += 7 {
  6589  				if shift >= 64 {
  6590  					return ErrIntOverflowQuery
  6591  				}
  6592  				if iNdEx >= l {
  6593  					return io.ErrUnexpectedEOF
  6594  				}
  6595  				b := dAtA[iNdEx]
  6596  				iNdEx++
  6597  				msglen |= int(b&0x7F) << shift
  6598  				if b < 0x80 {
  6599  					break
  6600  				}
  6601  			}
  6602  			if msglen < 0 {
  6603  				return ErrInvalidLengthQuery
  6604  			}
  6605  			postIndex := iNdEx + msglen
  6606  			if postIndex < 0 {
  6607  				return ErrInvalidLengthQuery
  6608  			}
  6609  			if postIndex > l {
  6610  				return io.ErrUnexpectedEOF
  6611  			}
  6612  			m.Groups = append(m.Groups, &GroupInfo{})
  6613  			if err := m.Groups[len(m.Groups)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6614  				return err
  6615  			}
  6616  			iNdEx = postIndex
  6617  		case 2:
  6618  			if wireType != 2 {
  6619  				return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType)
  6620  			}
  6621  			var msglen int
  6622  			for shift := uint(0); ; shift += 7 {
  6623  				if shift >= 64 {
  6624  					return ErrIntOverflowQuery
  6625  				}
  6626  				if iNdEx >= l {
  6627  					return io.ErrUnexpectedEOF
  6628  				}
  6629  				b := dAtA[iNdEx]
  6630  				iNdEx++
  6631  				msglen |= int(b&0x7F) << shift
  6632  				if b < 0x80 {
  6633  					break
  6634  				}
  6635  			}
  6636  			if msglen < 0 {
  6637  				return ErrInvalidLengthQuery
  6638  			}
  6639  			postIndex := iNdEx + msglen
  6640  			if postIndex < 0 {
  6641  				return ErrInvalidLengthQuery
  6642  			}
  6643  			if postIndex > l {
  6644  				return io.ErrUnexpectedEOF
  6645  			}
  6646  			if m.Pagination == nil {
  6647  				m.Pagination = &query.PageResponse{}
  6648  			}
  6649  			if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6650  				return err
  6651  			}
  6652  			iNdEx = postIndex
  6653  		default:
  6654  			iNdEx = preIndex
  6655  			skippy, err := skipQuery(dAtA[iNdEx:])
  6656  			if err != nil {
  6657  				return err
  6658  			}
  6659  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6660  				return ErrInvalidLengthQuery
  6661  			}
  6662  			if (iNdEx + skippy) > l {
  6663  				return io.ErrUnexpectedEOF
  6664  			}
  6665  			iNdEx += skippy
  6666  		}
  6667  	}
  6668  
  6669  	if iNdEx > l {
  6670  		return io.ErrUnexpectedEOF
  6671  	}
  6672  	return nil
  6673  }
  6674  func skipQuery(dAtA []byte) (n int, err error) {
  6675  	l := len(dAtA)
  6676  	iNdEx := 0
  6677  	depth := 0
  6678  	for iNdEx < l {
  6679  		var wire uint64
  6680  		for shift := uint(0); ; shift += 7 {
  6681  			if shift >= 64 {
  6682  				return 0, ErrIntOverflowQuery
  6683  			}
  6684  			if iNdEx >= l {
  6685  				return 0, io.ErrUnexpectedEOF
  6686  			}
  6687  			b := dAtA[iNdEx]
  6688  			iNdEx++
  6689  			wire |= (uint64(b) & 0x7F) << shift
  6690  			if b < 0x80 {
  6691  				break
  6692  			}
  6693  		}
  6694  		wireType := int(wire & 0x7)
  6695  		switch wireType {
  6696  		case 0:
  6697  			for shift := uint(0); ; shift += 7 {
  6698  				if shift >= 64 {
  6699  					return 0, ErrIntOverflowQuery
  6700  				}
  6701  				if iNdEx >= l {
  6702  					return 0, io.ErrUnexpectedEOF
  6703  				}
  6704  				iNdEx++
  6705  				if dAtA[iNdEx-1] < 0x80 {
  6706  					break
  6707  				}
  6708  			}
  6709  		case 1:
  6710  			iNdEx += 8
  6711  		case 2:
  6712  			var length int
  6713  			for shift := uint(0); ; shift += 7 {
  6714  				if shift >= 64 {
  6715  					return 0, ErrIntOverflowQuery
  6716  				}
  6717  				if iNdEx >= l {
  6718  					return 0, io.ErrUnexpectedEOF
  6719  				}
  6720  				b := dAtA[iNdEx]
  6721  				iNdEx++
  6722  				length |= (int(b) & 0x7F) << shift
  6723  				if b < 0x80 {
  6724  					break
  6725  				}
  6726  			}
  6727  			if length < 0 {
  6728  				return 0, ErrInvalidLengthQuery
  6729  			}
  6730  			iNdEx += length
  6731  		case 3:
  6732  			depth++
  6733  		case 4:
  6734  			if depth == 0 {
  6735  				return 0, ErrUnexpectedEndOfGroupQuery
  6736  			}
  6737  			depth--
  6738  		case 5:
  6739  			iNdEx += 4
  6740  		default:
  6741  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  6742  		}
  6743  		if iNdEx < 0 {
  6744  			return 0, ErrInvalidLengthQuery
  6745  		}
  6746  		if depth == 0 {
  6747  			return iNdEx, nil
  6748  		}
  6749  	}
  6750  	return 0, io.ErrUnexpectedEOF
  6751  }
  6752  
  6753  var (
  6754  	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
  6755  	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
  6756  	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
  6757  )