// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: cerc/registry/v1/query.proto package registry import ( context "context" encoding_binary "encoding/binary" fmt "fmt" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" types "github.com/cosmos/cosmos-sdk/types" query "github.com/cosmos/cosmos-sdk/types/query" _ "github.com/cosmos/gogoproto/gogoproto" grpc1 "github.com/cosmos/gogoproto/grpc" proto "github.com/cosmos/gogoproto/proto" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" io "io" math "math" math_bits "math/bits" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // QueryParamsRequest is request type for registry params type QueryParamsRequest struct { } func (m *QueryParamsRequest) Reset() { *m = QueryParamsRequest{} } func (m *QueryParamsRequest) String() string { return proto.CompactTextString(m) } func (*QueryParamsRequest) ProtoMessage() {} func (*QueryParamsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{0} } func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryParamsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsRequest.Merge(m, src) } func (m *QueryParamsRequest) XXX_Size() int { return m.Size() } func (m *QueryParamsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryParamsRequest proto.InternalMessageInfo // QueryParamsResponse is response type for registry params type QueryParamsResponse struct { Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` } func (m *QueryParamsResponse) Reset() { *m = QueryParamsResponse{} } func (m *QueryParamsResponse) String() string { return proto.CompactTextString(m) } func (*QueryParamsResponse) ProtoMessage() {} func (*QueryParamsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{1} } func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryParamsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryParamsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryParamsResponse.Merge(m, src) } func (m *QueryParamsResponse) XXX_Size() int { return m.Size() } func (m *QueryParamsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryParamsResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryParamsResponse proto.InternalMessageInfo func (m *QueryParamsResponse) GetParams() *Params { if m != nil { return m.Params } return nil } // QueryRecordsRequest is request type for registry records list type QueryRecordsRequest struct { Attributes []*QueryRecordsRequest_KeyValueInput `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"` All bool `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryRecordsRequest) Reset() { *m = QueryRecordsRequest{} } func (m *QueryRecordsRequest) String() string { return proto.CompactTextString(m) } func (*QueryRecordsRequest) ProtoMessage() {} func (*QueryRecordsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{2} } func (m *QueryRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsRequest.Merge(m, src) } func (m *QueryRecordsRequest) XXX_Size() int { return m.Size() } func (m *QueryRecordsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsRequest proto.InternalMessageInfo func (m *QueryRecordsRequest) GetAttributes() []*QueryRecordsRequest_KeyValueInput { if m != nil { return m.Attributes } return nil } func (m *QueryRecordsRequest) GetAll() bool { if m != nil { return m.All } return false } func (m *QueryRecordsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } type QueryRecordsRequest_ArrayInput struct { Values []*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` } func (m *QueryRecordsRequest_ArrayInput) Reset() { *m = QueryRecordsRequest_ArrayInput{} } func (m *QueryRecordsRequest_ArrayInput) String() string { return proto.CompactTextString(m) } func (*QueryRecordsRequest_ArrayInput) ProtoMessage() {} func (*QueryRecordsRequest_ArrayInput) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{2, 0} } func (m *QueryRecordsRequest_ArrayInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsRequest_ArrayInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsRequest_ArrayInput.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsRequest_ArrayInput) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsRequest_ArrayInput.Merge(m, src) } func (m *QueryRecordsRequest_ArrayInput) XXX_Size() int { return m.Size() } func (m *QueryRecordsRequest_ArrayInput) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsRequest_ArrayInput.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsRequest_ArrayInput proto.InternalMessageInfo func (m *QueryRecordsRequest_ArrayInput) GetValues() []*QueryRecordsRequest_ValueInput { if m != nil { return m.Values } return nil } type QueryRecordsRequest_MapInput struct { Values map[string]*QueryRecordsRequest_ValueInput `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (m *QueryRecordsRequest_MapInput) Reset() { *m = QueryRecordsRequest_MapInput{} } func (m *QueryRecordsRequest_MapInput) String() string { return proto.CompactTextString(m) } func (*QueryRecordsRequest_MapInput) ProtoMessage() {} func (*QueryRecordsRequest_MapInput) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{2, 1} } func (m *QueryRecordsRequest_MapInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsRequest_MapInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsRequest_MapInput.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsRequest_MapInput) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsRequest_MapInput.Merge(m, src) } func (m *QueryRecordsRequest_MapInput) XXX_Size() int { return m.Size() } func (m *QueryRecordsRequest_MapInput) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsRequest_MapInput.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsRequest_MapInput proto.InternalMessageInfo func (m *QueryRecordsRequest_MapInput) GetValues() map[string]*QueryRecordsRequest_ValueInput { if m != nil { return m.Values } return nil } type QueryRecordsRequest_ValueInput struct { // Type of record attribute value // // Types that are valid to be assigned to Value: // *QueryRecordsRequest_ValueInput_String_ // *QueryRecordsRequest_ValueInput_Int // *QueryRecordsRequest_ValueInput_Float // *QueryRecordsRequest_ValueInput_Boolean // *QueryRecordsRequest_ValueInput_Link // *QueryRecordsRequest_ValueInput_Array // *QueryRecordsRequest_ValueInput_Map Value isQueryRecordsRequest_ValueInput_Value `protobuf_oneof:"value"` } func (m *QueryRecordsRequest_ValueInput) Reset() { *m = QueryRecordsRequest_ValueInput{} } func (m *QueryRecordsRequest_ValueInput) String() string { return proto.CompactTextString(m) } func (*QueryRecordsRequest_ValueInput) ProtoMessage() {} func (*QueryRecordsRequest_ValueInput) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{2, 2} } func (m *QueryRecordsRequest_ValueInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsRequest_ValueInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsRequest_ValueInput.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsRequest_ValueInput) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsRequest_ValueInput.Merge(m, src) } func (m *QueryRecordsRequest_ValueInput) XXX_Size() int { return m.Size() } func (m *QueryRecordsRequest_ValueInput) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsRequest_ValueInput.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsRequest_ValueInput proto.InternalMessageInfo type isQueryRecordsRequest_ValueInput_Value interface { isQueryRecordsRequest_ValueInput_Value() MarshalTo([]byte) (int, error) Size() int } type QueryRecordsRequest_ValueInput_String_ struct { String_ string `protobuf:"bytes,1,opt,name=string,proto3,oneof" json:"string,omitempty"` } type QueryRecordsRequest_ValueInput_Int struct { Int int64 `protobuf:"varint,2,opt,name=int,proto3,oneof" json:"int,omitempty"` } type QueryRecordsRequest_ValueInput_Float struct { Float float64 `protobuf:"fixed64,3,opt,name=float,proto3,oneof" json:"float,omitempty"` } type QueryRecordsRequest_ValueInput_Boolean struct { Boolean bool `protobuf:"varint,4,opt,name=boolean,proto3,oneof" json:"boolean,omitempty"` } type QueryRecordsRequest_ValueInput_Link struct { Link string `protobuf:"bytes,5,opt,name=link,proto3,oneof" json:"link,omitempty"` } type QueryRecordsRequest_ValueInput_Array struct { Array *QueryRecordsRequest_ArrayInput `protobuf:"bytes,6,opt,name=array,proto3,oneof" json:"array,omitempty"` } type QueryRecordsRequest_ValueInput_Map struct { Map *QueryRecordsRequest_MapInput `protobuf:"bytes,7,opt,name=map,proto3,oneof" json:"map,omitempty"` } func (*QueryRecordsRequest_ValueInput_String_) isQueryRecordsRequest_ValueInput_Value() {} func (*QueryRecordsRequest_ValueInput_Int) isQueryRecordsRequest_ValueInput_Value() {} func (*QueryRecordsRequest_ValueInput_Float) isQueryRecordsRequest_ValueInput_Value() {} func (*QueryRecordsRequest_ValueInput_Boolean) isQueryRecordsRequest_ValueInput_Value() {} func (*QueryRecordsRequest_ValueInput_Link) isQueryRecordsRequest_ValueInput_Value() {} func (*QueryRecordsRequest_ValueInput_Array) isQueryRecordsRequest_ValueInput_Value() {} func (*QueryRecordsRequest_ValueInput_Map) isQueryRecordsRequest_ValueInput_Value() {} func (m *QueryRecordsRequest_ValueInput) GetValue() isQueryRecordsRequest_ValueInput_Value { if m != nil { return m.Value } return nil } func (m *QueryRecordsRequest_ValueInput) GetString_() string { if x, ok := m.GetValue().(*QueryRecordsRequest_ValueInput_String_); ok { return x.String_ } return "" } func (m *QueryRecordsRequest_ValueInput) GetInt() int64 { if x, ok := m.GetValue().(*QueryRecordsRequest_ValueInput_Int); ok { return x.Int } return 0 } func (m *QueryRecordsRequest_ValueInput) GetFloat() float64 { if x, ok := m.GetValue().(*QueryRecordsRequest_ValueInput_Float); ok { return x.Float } return 0 } func (m *QueryRecordsRequest_ValueInput) GetBoolean() bool { if x, ok := m.GetValue().(*QueryRecordsRequest_ValueInput_Boolean); ok { return x.Boolean } return false } func (m *QueryRecordsRequest_ValueInput) GetLink() string { if x, ok := m.GetValue().(*QueryRecordsRequest_ValueInput_Link); ok { return x.Link } return "" } func (m *QueryRecordsRequest_ValueInput) GetArray() *QueryRecordsRequest_ArrayInput { if x, ok := m.GetValue().(*QueryRecordsRequest_ValueInput_Array); ok { return x.Array } return nil } func (m *QueryRecordsRequest_ValueInput) GetMap() *QueryRecordsRequest_MapInput { if x, ok := m.GetValue().(*QueryRecordsRequest_ValueInput_Map); ok { return x.Map } return nil } // XXX_OneofWrappers is for the internal use of the proto package. func (*QueryRecordsRequest_ValueInput) XXX_OneofWrappers() []interface{} { return []interface{}{ (*QueryRecordsRequest_ValueInput_String_)(nil), (*QueryRecordsRequest_ValueInput_Int)(nil), (*QueryRecordsRequest_ValueInput_Float)(nil), (*QueryRecordsRequest_ValueInput_Boolean)(nil), (*QueryRecordsRequest_ValueInput_Link)(nil), (*QueryRecordsRequest_ValueInput_Array)(nil), (*QueryRecordsRequest_ValueInput_Map)(nil), } } type QueryRecordsRequest_KeyValueInput struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value *QueryRecordsRequest_ValueInput `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (m *QueryRecordsRequest_KeyValueInput) Reset() { *m = QueryRecordsRequest_KeyValueInput{} } func (m *QueryRecordsRequest_KeyValueInput) String() string { return proto.CompactTextString(m) } func (*QueryRecordsRequest_KeyValueInput) ProtoMessage() {} func (*QueryRecordsRequest_KeyValueInput) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{2, 3} } func (m *QueryRecordsRequest_KeyValueInput) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsRequest_KeyValueInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsRequest_KeyValueInput.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsRequest_KeyValueInput) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsRequest_KeyValueInput.Merge(m, src) } func (m *QueryRecordsRequest_KeyValueInput) XXX_Size() int { return m.Size() } func (m *QueryRecordsRequest_KeyValueInput) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsRequest_KeyValueInput.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsRequest_KeyValueInput proto.InternalMessageInfo func (m *QueryRecordsRequest_KeyValueInput) GetKey() string { if m != nil { return m.Key } return "" } func (m *QueryRecordsRequest_KeyValueInput) GetValue() *QueryRecordsRequest_ValueInput { if m != nil { return m.Value } return nil } // QueryRecordsResponse is response type for registry records list type QueryRecordsResponse struct { Records []Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryRecordsResponse) Reset() { *m = QueryRecordsResponse{} } func (m *QueryRecordsResponse) String() string { return proto.CompactTextString(m) } func (*QueryRecordsResponse) ProtoMessage() {} func (*QueryRecordsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{3} } func (m *QueryRecordsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsResponse.Merge(m, src) } func (m *QueryRecordsResponse) XXX_Size() int { return m.Size() } func (m *QueryRecordsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsResponse proto.InternalMessageInfo func (m *QueryRecordsResponse) GetRecords() []Record { if m != nil { return m.Records } return nil } func (m *QueryRecordsResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } // QueryRecordByIdRequest is request type for registry records by id type QueryRecordByIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` } func (m *QueryRecordByIdRequest) Reset() { *m = QueryRecordByIdRequest{} } func (m *QueryRecordByIdRequest) String() string { return proto.CompactTextString(m) } func (*QueryRecordByIdRequest) ProtoMessage() {} func (*QueryRecordByIdRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{4} } func (m *QueryRecordByIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordByIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordByIdRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordByIdRequest.Merge(m, src) } func (m *QueryRecordByIdRequest) XXX_Size() int { return m.Size() } func (m *QueryRecordByIdRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordByIdRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordByIdRequest proto.InternalMessageInfo func (m *QueryRecordByIdRequest) GetId() string { if m != nil { return m.Id } return "" } // QueryRecordByIdResponse is response type for registry records by id type QueryRecordByIdResponse struct { Record Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record"` } func (m *QueryRecordByIdResponse) Reset() { *m = QueryRecordByIdResponse{} } func (m *QueryRecordByIdResponse) String() string { return proto.CompactTextString(m) } func (*QueryRecordByIdResponse) ProtoMessage() {} func (*QueryRecordByIdResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{5} } func (m *QueryRecordByIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordByIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordByIdResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordByIdResponse.Merge(m, src) } func (m *QueryRecordByIdResponse) XXX_Size() int { return m.Size() } func (m *QueryRecordByIdResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordByIdResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordByIdResponse proto.InternalMessageInfo func (m *QueryRecordByIdResponse) GetRecord() Record { if m != nil { return m.Record } return Record{} } // QueryRecordsByBondIdRequest is request type for get the records by bond-id type QueryRecordsByBondIdRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryRecordsByBondIdRequest) Reset() { *m = QueryRecordsByBondIdRequest{} } func (m *QueryRecordsByBondIdRequest) String() string { return proto.CompactTextString(m) } func (*QueryRecordsByBondIdRequest) ProtoMessage() {} func (*QueryRecordsByBondIdRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{6} } func (m *QueryRecordsByBondIdRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsByBondIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsByBondIdRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsByBondIdRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsByBondIdRequest.Merge(m, src) } func (m *QueryRecordsByBondIdRequest) XXX_Size() int { return m.Size() } func (m *QueryRecordsByBondIdRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsByBondIdRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsByBondIdRequest proto.InternalMessageInfo func (m *QueryRecordsByBondIdRequest) GetId() string { if m != nil { return m.Id } return "" } func (m *QueryRecordsByBondIdRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } // QueryRecordsByBondIdResponse is response type for records list by bond-id type QueryRecordsByBondIdResponse struct { Records []Record `protobuf:"bytes,1,rep,name=records,proto3" json:"records"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryRecordsByBondIdResponse) Reset() { *m = QueryRecordsByBondIdResponse{} } func (m *QueryRecordsByBondIdResponse) String() string { return proto.CompactTextString(m) } func (*QueryRecordsByBondIdResponse) ProtoMessage() {} func (*QueryRecordsByBondIdResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{7} } func (m *QueryRecordsByBondIdResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryRecordsByBondIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryRecordsByBondIdResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryRecordsByBondIdResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryRecordsByBondIdResponse.Merge(m, src) } func (m *QueryRecordsByBondIdResponse) XXX_Size() int { return m.Size() } func (m *QueryRecordsByBondIdResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryRecordsByBondIdResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryRecordsByBondIdResponse proto.InternalMessageInfo func (m *QueryRecordsByBondIdResponse) GetRecords() []Record { if m != nil { return m.Records } return nil } func (m *QueryRecordsByBondIdResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } // QueryNameRecordsRequest is request type for registry names records type QueryNameRecordsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryNameRecordsRequest) Reset() { *m = QueryNameRecordsRequest{} } func (m *QueryNameRecordsRequest) String() string { return proto.CompactTextString(m) } func (*QueryNameRecordsRequest) ProtoMessage() {} func (*QueryNameRecordsRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{8} } func (m *QueryNameRecordsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryNameRecordsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryNameRecordsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryNameRecordsRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryNameRecordsRequest.Merge(m, src) } func (m *QueryNameRecordsRequest) XXX_Size() int { return m.Size() } func (m *QueryNameRecordsRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryNameRecordsRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryNameRecordsRequest proto.InternalMessageInfo func (m *QueryNameRecordsRequest) GetPagination() *query.PageRequest { if m != nil { return m.Pagination } return nil } // QueryNameRecordsResponse is response type for registry names records type QueryNameRecordsResponse struct { Names []NameEntry `protobuf:"bytes,1,rep,name=names,proto3" json:"names"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` } func (m *QueryNameRecordsResponse) Reset() { *m = QueryNameRecordsResponse{} } func (m *QueryNameRecordsResponse) String() string { return proto.CompactTextString(m) } func (*QueryNameRecordsResponse) ProtoMessage() {} func (*QueryNameRecordsResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{9} } func (m *QueryNameRecordsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryNameRecordsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryNameRecordsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryNameRecordsResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryNameRecordsResponse.Merge(m, src) } func (m *QueryNameRecordsResponse) XXX_Size() int { return m.Size() } func (m *QueryNameRecordsResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryNameRecordsResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryNameRecordsResponse proto.InternalMessageInfo func (m *QueryNameRecordsResponse) GetNames() []NameEntry { if m != nil { return m.Names } return nil } func (m *QueryNameRecordsResponse) GetPagination() *query.PageResponse { if m != nil { return m.Pagination } return nil } // QueryWhoisRequest is request type for Get NameAuthority type QueryWhoisRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (m *QueryWhoisRequest) Reset() { *m = QueryWhoisRequest{} } func (m *QueryWhoisRequest) String() string { return proto.CompactTextString(m) } func (*QueryWhoisRequest) ProtoMessage() {} func (*QueryWhoisRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{10} } func (m *QueryWhoisRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryWhoisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryWhoisRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryWhoisRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryWhoisRequest.Merge(m, src) } func (m *QueryWhoisRequest) XXX_Size() int { return m.Size() } func (m *QueryWhoisRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryWhoisRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryWhoisRequest proto.InternalMessageInfo func (m *QueryWhoisRequest) GetName() string { if m != nil { return m.Name } return "" } // QueryWhoisResponse is response type for whois request type QueryWhoisResponse struct { NameAuthority NameAuthority `protobuf:"bytes,1,opt,name=name_authority,json=nameAuthority,proto3" json:"name_authority" json:"name_authority" yaml:"name_authority"` } func (m *QueryWhoisResponse) Reset() { *m = QueryWhoisResponse{} } func (m *QueryWhoisResponse) String() string { return proto.CompactTextString(m) } func (*QueryWhoisResponse) ProtoMessage() {} func (*QueryWhoisResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{11} } func (m *QueryWhoisResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryWhoisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryWhoisResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryWhoisResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryWhoisResponse.Merge(m, src) } func (m *QueryWhoisResponse) XXX_Size() int { return m.Size() } func (m *QueryWhoisResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryWhoisResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryWhoisResponse proto.InternalMessageInfo func (m *QueryWhoisResponse) GetNameAuthority() NameAuthority { if m != nil { return m.NameAuthority } return NameAuthority{} } // QueryLookupLrnRequest is request type for LookupLrn type QueryLookupLrnRequest struct { Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` } func (m *QueryLookupLrnRequest) Reset() { *m = QueryLookupLrnRequest{} } func (m *QueryLookupLrnRequest) String() string { return proto.CompactTextString(m) } func (*QueryLookupLrnRequest) ProtoMessage() {} func (*QueryLookupLrnRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{12} } func (m *QueryLookupLrnRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryLookupLrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryLookupLrnRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryLookupLrnRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryLookupLrnRequest.Merge(m, src) } func (m *QueryLookupLrnRequest) XXX_Size() int { return m.Size() } func (m *QueryLookupLrnRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryLookupLrnRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryLookupLrnRequest proto.InternalMessageInfo func (m *QueryLookupLrnRequest) GetLrn() string { if m != nil { return m.Lrn } return "" } // QueryLookupLrnResponse is response type for QueryLookupLrnRequest type QueryLookupLrnResponse struct { Name *NameRecord `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (m *QueryLookupLrnResponse) Reset() { *m = QueryLookupLrnResponse{} } func (m *QueryLookupLrnResponse) String() string { return proto.CompactTextString(m) } func (*QueryLookupLrnResponse) ProtoMessage() {} func (*QueryLookupLrnResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{13} } func (m *QueryLookupLrnResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryLookupLrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryLookupLrnResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryLookupLrnResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryLookupLrnResponse.Merge(m, src) } func (m *QueryLookupLrnResponse) XXX_Size() int { return m.Size() } func (m *QueryLookupLrnResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryLookupLrnResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryLookupLrnResponse proto.InternalMessageInfo func (m *QueryLookupLrnResponse) GetName() *NameRecord { if m != nil { return m.Name } return nil } // QueryResolveLrnRequest is request type for ResolveLrn type QueryResolveLrnRequest struct { Lrn string `protobuf:"bytes,1,opt,name=lrn,proto3" json:"lrn,omitempty"` } func (m *QueryResolveLrnRequest) Reset() { *m = QueryResolveLrnRequest{} } func (m *QueryResolveLrnRequest) String() string { return proto.CompactTextString(m) } func (*QueryResolveLrnRequest) ProtoMessage() {} func (*QueryResolveLrnRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{14} } func (m *QueryResolveLrnRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryResolveLrnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryResolveLrnRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryResolveLrnRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryResolveLrnRequest.Merge(m, src) } func (m *QueryResolveLrnRequest) XXX_Size() int { return m.Size() } func (m *QueryResolveLrnRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryResolveLrnRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryResolveLrnRequest proto.InternalMessageInfo func (m *QueryResolveLrnRequest) GetLrn() string { if m != nil { return m.Lrn } return "" } // QueryResolveLrnResponse is response type for QueryResolveLrnRequest type QueryResolveLrnResponse struct { Record *Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"` } func (m *QueryResolveLrnResponse) Reset() { *m = QueryResolveLrnResponse{} } func (m *QueryResolveLrnResponse) String() string { return proto.CompactTextString(m) } func (*QueryResolveLrnResponse) ProtoMessage() {} func (*QueryResolveLrnResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{15} } func (m *QueryResolveLrnResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryResolveLrnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryResolveLrnResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryResolveLrnResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryResolveLrnResponse.Merge(m, src) } func (m *QueryResolveLrnResponse) XXX_Size() int { return m.Size() } func (m *QueryResolveLrnResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryResolveLrnResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryResolveLrnResponse proto.InternalMessageInfo func (m *QueryResolveLrnResponse) GetRecord() *Record { if m != nil { return m.Record } return nil } // QueryGetRegistryModuleBalanceRequest is request type for registry module accounts balance type QueryGetRegistryModuleBalanceRequest struct { } func (m *QueryGetRegistryModuleBalanceRequest) Reset() { *m = QueryGetRegistryModuleBalanceRequest{} } func (m *QueryGetRegistryModuleBalanceRequest) String() string { return proto.CompactTextString(m) } func (*QueryGetRegistryModuleBalanceRequest) ProtoMessage() {} func (*QueryGetRegistryModuleBalanceRequest) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{16} } func (m *QueryGetRegistryModuleBalanceRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetRegistryModuleBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetRegistryModuleBalanceRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetRegistryModuleBalanceRequest) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetRegistryModuleBalanceRequest.Merge(m, src) } func (m *QueryGetRegistryModuleBalanceRequest) XXX_Size() int { return m.Size() } func (m *QueryGetRegistryModuleBalanceRequest) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetRegistryModuleBalanceRequest.DiscardUnknown(m) } var xxx_messageInfo_QueryGetRegistryModuleBalanceRequest proto.InternalMessageInfo // QueryGetRegistryModuleBalanceResponse is response type for registry module accounts balance type QueryGetRegistryModuleBalanceResponse struct { Balances []*AccountBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` } func (m *QueryGetRegistryModuleBalanceResponse) Reset() { *m = QueryGetRegistryModuleBalanceResponse{} } func (m *QueryGetRegistryModuleBalanceResponse) String() string { return proto.CompactTextString(m) } func (*QueryGetRegistryModuleBalanceResponse) ProtoMessage() {} func (*QueryGetRegistryModuleBalanceResponse) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{17} } func (m *QueryGetRegistryModuleBalanceResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *QueryGetRegistryModuleBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_QueryGetRegistryModuleBalanceResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *QueryGetRegistryModuleBalanceResponse) XXX_Merge(src proto.Message) { xxx_messageInfo_QueryGetRegistryModuleBalanceResponse.Merge(m, src) } func (m *QueryGetRegistryModuleBalanceResponse) XXX_Size() int { return m.Size() } func (m *QueryGetRegistryModuleBalanceResponse) XXX_DiscardUnknown() { xxx_messageInfo_QueryGetRegistryModuleBalanceResponse.DiscardUnknown(m) } var xxx_messageInfo_QueryGetRegistryModuleBalanceResponse proto.InternalMessageInfo func (m *QueryGetRegistryModuleBalanceResponse) GetBalances() []*AccountBalance { if m != nil { return m.Balances } return nil } // AccountBalance is registry module account balance type AccountBalance struct { AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty" json:"account_name" yaml:"account_name"` Balance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance" json:"balance" yaml:"balance"` } func (m *AccountBalance) Reset() { *m = AccountBalance{} } func (m *AccountBalance) String() string { return proto.CompactTextString(m) } func (*AccountBalance) ProtoMessage() {} func (*AccountBalance) Descriptor() ([]byte, []int) { return fileDescriptor_c642b96b6da07a30, []int{18} } func (m *AccountBalance) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *AccountBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_AccountBalance.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *AccountBalance) XXX_Merge(src proto.Message) { xxx_messageInfo_AccountBalance.Merge(m, src) } func (m *AccountBalance) XXX_Size() int { return m.Size() } func (m *AccountBalance) XXX_DiscardUnknown() { xxx_messageInfo_AccountBalance.DiscardUnknown(m) } var xxx_messageInfo_AccountBalance proto.InternalMessageInfo func (m *AccountBalance) GetAccountName() string { if m != nil { return m.AccountName } return "" } func (m *AccountBalance) GetBalance() github_com_cosmos_cosmos_sdk_types.Coins { if m != nil { return m.Balance } return nil } func init() { proto.RegisterType((*QueryParamsRequest)(nil), "cerc.registry.v1.QueryParamsRequest") proto.RegisterType((*QueryParamsResponse)(nil), "cerc.registry.v1.QueryParamsResponse") proto.RegisterType((*QueryRecordsRequest)(nil), "cerc.registry.v1.QueryRecordsRequest") proto.RegisterType((*QueryRecordsRequest_ArrayInput)(nil), "cerc.registry.v1.QueryRecordsRequest.ArrayInput") proto.RegisterType((*QueryRecordsRequest_MapInput)(nil), "cerc.registry.v1.QueryRecordsRequest.MapInput") proto.RegisterMapType((map[string]*QueryRecordsRequest_ValueInput)(nil), "cerc.registry.v1.QueryRecordsRequest.MapInput.ValuesEntry") proto.RegisterType((*QueryRecordsRequest_ValueInput)(nil), "cerc.registry.v1.QueryRecordsRequest.ValueInput") proto.RegisterType((*QueryRecordsRequest_KeyValueInput)(nil), "cerc.registry.v1.QueryRecordsRequest.KeyValueInput") proto.RegisterType((*QueryRecordsResponse)(nil), "cerc.registry.v1.QueryRecordsResponse") proto.RegisterType((*QueryRecordByIdRequest)(nil), "cerc.registry.v1.QueryRecordByIdRequest") proto.RegisterType((*QueryRecordByIdResponse)(nil), "cerc.registry.v1.QueryRecordByIdResponse") proto.RegisterType((*QueryRecordsByBondIdRequest)(nil), "cerc.registry.v1.QueryRecordsByBondIdRequest") proto.RegisterType((*QueryRecordsByBondIdResponse)(nil), "cerc.registry.v1.QueryRecordsByBondIdResponse") proto.RegisterType((*QueryNameRecordsRequest)(nil), "cerc.registry.v1.QueryNameRecordsRequest") proto.RegisterType((*QueryNameRecordsResponse)(nil), "cerc.registry.v1.QueryNameRecordsResponse") proto.RegisterType((*QueryWhoisRequest)(nil), "cerc.registry.v1.QueryWhoisRequest") proto.RegisterType((*QueryWhoisResponse)(nil), "cerc.registry.v1.QueryWhoisResponse") proto.RegisterType((*QueryLookupLrnRequest)(nil), "cerc.registry.v1.QueryLookupLrnRequest") proto.RegisterType((*QueryLookupLrnResponse)(nil), "cerc.registry.v1.QueryLookupLrnResponse") proto.RegisterType((*QueryResolveLrnRequest)(nil), "cerc.registry.v1.QueryResolveLrnRequest") proto.RegisterType((*QueryResolveLrnResponse)(nil), "cerc.registry.v1.QueryResolveLrnResponse") proto.RegisterType((*QueryGetRegistryModuleBalanceRequest)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceRequest") proto.RegisterType((*QueryGetRegistryModuleBalanceResponse)(nil), "cerc.registry.v1.QueryGetRegistryModuleBalanceResponse") proto.RegisterType((*AccountBalance)(nil), "cerc.registry.v1.AccountBalance") } func init() { proto.RegisterFile("cerc/registry/v1/query.proto", fileDescriptor_c642b96b6da07a30) } var fileDescriptor_c642b96b6da07a30 = []byte{ // 1295 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x4d, 0x6f, 0x1b, 0xc5, 0x1b, 0xf7, 0xda, 0xb1, 0xdd, 0x3c, 0xfe, 0xb7, 0xea, 0x7f, 0x08, 0xed, 0x66, 0x13, 0x6c, 0xb3, 0xe4, 0xc5, 0x49, 0xe4, 0xdd, 0x26, 0x91, 0xda, 0x2a, 0xe2, 0x12, 0x23, 0x1a, 0x97, 0xbe, 0xa8, 0x59, 0xa4, 0x22, 0x71, 0xa9, 0xc6, 0xde, 0xc5, 0x59, 0xb2, 0xde, 0x71, 0x77, 0xd7, 0x2e, 0x4b, 0x54, 0x09, 0x21, 0x40, 0x1c, 0x41, 0x9c, 0x10, 0x5c, 0xb8, 0x70, 0xe0, 0xc0, 0xe7, 0xa8, 0xc4, 0xa5, 0x12, 0x17, 0x4e, 0x01, 0x25, 0x5c, 0xb8, 0xa1, 0xf2, 0x05, 0xd0, 0xce, 0xcc, 0xae, 0xd7, 0xef, 0x4e, 0x04, 0x12, 0x27, 0xef, 0xcc, 0xfc, 0x9e, 0xe7, 0xf9, 0x3d, 0xaf, 0x33, 0x86, 0xc5, 0xba, 0xe1, 0xd4, 0x55, 0xc7, 0x68, 0x98, 0xae, 0xe7, 0xf8, 0x6a, 0x67, 0x53, 0x7d, 0xdc, 0x36, 0x1c, 0x5f, 0x69, 0x39, 0xc4, 0x23, 0xe8, 0x72, 0x70, 0xaa, 0x84, 0xa7, 0x4a, 0x67, 0x53, 0x5a, 0x6c, 0x10, 0xd2, 0xb0, 0x0c, 0x15, 0xb7, 0x4c, 0x15, 0xdb, 0x36, 0xf1, 0xb0, 0x67, 0x12, 0xdb, 0x65, 0x78, 0x69, 0xbd, 0x4e, 0xdc, 0x26, 0x71, 0xd5, 0x1a, 0x76, 0x0d, 0xa6, 0x48, 0xed, 0x6c, 0xd6, 0x0c, 0x0f, 0x6f, 0xaa, 0x2d, 0xdc, 0x30, 0x6d, 0x0a, 0xe6, 0xd8, 0xb9, 0x06, 0x69, 0x10, 0xfa, 0xa9, 0x06, 0x5f, 0x7c, 0x37, 0x1f, 0xd7, 0x10, 0xca, 0xd6, 0x89, 0x19, 0x4a, 0x15, 0x06, 0xf8, 0x46, 0xec, 0x28, 0x40, 0x9e, 0x03, 0xb4, 0x1f, 0x18, 0x7e, 0x80, 0x1d, 0xdc, 0x74, 0x35, 0xe3, 0x71, 0xdb, 0x70, 0x3d, 0x79, 0x0f, 0x5e, 0xea, 0xd9, 0x75, 0x5b, 0xc4, 0x76, 0x0d, 0x74, 0x0d, 0x32, 0x2d, 0xba, 0x23, 0x0a, 0x45, 0xa1, 0x94, 0xdb, 0x12, 0x95, 0x7e, 0x87, 0x15, 0x2e, 0xc1, 0x71, 0xf2, 0x5f, 0x19, 0xae, 0x49, 0x33, 0xea, 0xc4, 0xd1, 0x43, 0x03, 0xe8, 0x6d, 0x00, 0xec, 0x79, 0x8e, 0x59, 0x6b, 0x7b, 0x46, 0xa0, 0x2d, 0x55, 0xca, 0x6d, 0x6d, 0x0f, 0x6a, 0x1b, 0x22, 0xaa, 0xdc, 0x31, 0xfc, 0x87, 0xd8, 0x6a, 0x1b, 0xb7, 0xed, 0x56, 0xdb, 0xd3, 0x62, 0x6a, 0xd0, 0x65, 0x48, 0x61, 0xcb, 0x12, 0x93, 0x45, 0xa1, 0x74, 0x41, 0x0b, 0x3e, 0xd1, 0x2d, 0x80, 0x6e, 0x20, 0xc5, 0x14, 0x25, 0xbd, 0xa2, 0xb0, 0x98, 0x29, 0x41, 0xcc, 0x14, 0x96, 0x3e, 0x1e, 0x39, 0xe5, 0x01, 0x6e, 0x18, 0xdc, 0x8e, 0x16, 0x93, 0x94, 0x1e, 0x02, 0xec, 0x3a, 0x0e, 0xf6, 0xa9, 0x4d, 0x54, 0x85, 0x4c, 0x27, 0x60, 0x10, 0x12, 0xbf, 0x36, 0x1d, 0xf1, 0x18, 0x6b, 0x2e, 0x2f, 0xfd, 0x24, 0xc0, 0x85, 0x7b, 0xb8, 0xc5, 0xd4, 0x6a, 0x7d, 0x6a, 0x77, 0xa6, 0x53, 0x1b, 0xca, 0x33, 0xfd, 0xee, 0x9b, 0xb6, 0xe7, 0xf8, 0x91, 0x81, 0x43, 0xc8, 0xc5, 0xb6, 0x83, 0x08, 0x1d, 0x1a, 0x3e, 0xcd, 0xde, 0xac, 0x16, 0x7c, 0xa2, 0x5b, 0x90, 0xa6, 0x50, 0x1a, 0xb5, 0xf3, 0xb8, 0xc2, 0xc4, 0x77, 0x92, 0x37, 0x05, 0xe9, 0x9b, 0x24, 0x40, 0xf7, 0x04, 0x89, 0x90, 0x71, 0x3d, 0xc7, 0xb4, 0x1b, 0xcc, 0x5e, 0x35, 0xa1, 0xf1, 0x35, 0x42, 0x90, 0x32, 0x6d, 0x8f, 0x9a, 0x4c, 0x55, 0x13, 0x5a, 0xb0, 0x40, 0x57, 0x20, 0xfd, 0x9e, 0x45, 0xb0, 0x47, 0xb3, 0x24, 0x54, 0x13, 0x1a, 0x5b, 0x22, 0x09, 0xb2, 0x35, 0x42, 0x2c, 0x03, 0xdb, 0xe2, 0x4c, 0x90, 0xd8, 0x6a, 0x42, 0x0b, 0x37, 0xd0, 0x1c, 0xcc, 0x58, 0xa6, 0x7d, 0x28, 0xa6, 0xb9, 0x7e, 0xba, 0x42, 0x55, 0x48, 0xe3, 0x20, 0x59, 0x62, 0xe6, 0x2c, 0x2e, 0x75, 0xf3, 0x1b, 0xd8, 0xa6, 0x0a, 0x50, 0x05, 0x52, 0x4d, 0xdc, 0x12, 0xb3, 0x54, 0x8f, 0x72, 0xb6, 0x74, 0x04, 0x7e, 0x35, 0x71, 0xab, 0x92, 0xe5, 0x01, 0x96, 0x4c, 0xb8, 0xd8, 0x53, 0xba, 0xff, 0x5e, 0x32, 0xe4, 0xaf, 0x05, 0x98, 0xeb, 0x45, 0xf2, 0x06, 0xbe, 0x09, 0x59, 0x87, 0x6d, 0xf1, 0x1a, 0x1b, 0xd2, 0xc1, 0x4c, 0xa6, 0x32, 0xf3, 0xec, 0xb8, 0x90, 0xd0, 0x42, 0x38, 0xda, 0xeb, 0xe9, 0x24, 0xc6, 0x6f, 0x75, 0x62, 0x27, 0x31, 0xb3, 0xf1, 0x56, 0x92, 0x4b, 0x70, 0x25, 0x46, 0xad, 0xe2, 0xdf, 0xd6, 0xc3, 0x99, 0x70, 0x09, 0x92, 0xa6, 0xce, 0xc3, 0x91, 0x34, 0x75, 0x79, 0x1f, 0xae, 0x0e, 0x20, 0xb9, 0x1f, 0xd7, 0x21, 0xc3, 0x88, 0x8d, 0x1e, 0x44, 0x3d, 0x6e, 0x70, 0xb4, 0xdc, 0x86, 0x85, 0x78, 0x5c, 0x2a, 0x7e, 0x85, 0xd8, 0xfa, 0x48, 0x06, 0x7d, 0xe3, 0x23, 0x79, 0xde, 0xf1, 0x21, 0x7f, 0x27, 0xc0, 0xe2, 0x70, 0xbb, 0xff, 0x9d, 0xbc, 0x60, 0x1e, 0xed, 0xfb, 0xb8, 0x69, 0xf4, 0x0d, 0xeb, 0xde, 0x30, 0x08, 0xe7, 0x0e, 0xc3, 0xb7, 0x02, 0x88, 0x83, 0x36, 0x78, 0x08, 0x6e, 0x40, 0xda, 0xc6, 0xcd, 0x68, 0xf8, 0x2d, 0x0c, 0x06, 0x20, 0x90, 0xa2, 0x63, 0x8c, 0xc7, 0x80, 0xe1, 0xff, 0xb9, 0x08, 0xac, 0xc2, 0xff, 0x29, 0xbb, 0x77, 0x0e, 0x88, 0x19, 0xf9, 0x8e, 0x60, 0x26, 0x30, 0xc3, 0x8b, 0x82, 0x7e, 0xcb, 0x5f, 0x0a, 0xfc, 0xd2, 0xe4, 0x48, 0xee, 0xc1, 0x11, 0x5c, 0x0a, 0x8e, 0x1f, 0xe1, 0xb6, 0x77, 0x40, 0x1c, 0xd3, 0xf3, 0x79, 0xa8, 0x0a, 0xc3, 0x5d, 0xd9, 0x0d, 0x61, 0x95, 0xed, 0xc0, 0x9d, 0x17, 0xc7, 0x85, 0x8d, 0xf7, 0x5d, 0x62, 0xef, 0xc8, 0xbd, 0x4a, 0xe4, 0xa2, 0x8f, 0x9b, 0xd6, 0xc0, 0xae, 0x76, 0xd1, 0x8e, 0xeb, 0x90, 0xd7, 0xe0, 0x65, 0x4a, 0xe9, 0x2e, 0x21, 0x87, 0xed, 0xd6, 0x5d, 0xc7, 0x0e, 0x1d, 0xb8, 0x0c, 0x29, 0xcb, 0xb1, 0xc3, 0x29, 0x63, 0x39, 0xb6, 0xfc, 0x16, 0xef, 0xc0, 0x18, 0x34, 0xba, 0xdf, 0xbb, 0xce, 0xe6, 0xb6, 0x16, 0x87, 0xf3, 0x66, 0x89, 0xe3, 0xa1, 0x58, 0x8f, 0xba, 0xd9, 0x25, 0x56, 0xc7, 0x18, 0x6b, 0xf7, 0x4e, 0xd4, 0xcf, 0x5d, 0x6c, 0xf7, 0x61, 0x31, 0x5d, 0x3f, 0x47, 0x9d, 0xbc, 0x02, 0x4b, 0x54, 0xd9, 0x9e, 0xe1, 0x69, 0x1c, 0x75, 0x8f, 0xe8, 0x6d, 0xcb, 0xa8, 0x60, 0x0b, 0xdb, 0xf5, 0xb0, 0xfe, 0x64, 0x03, 0x96, 0x27, 0xe0, 0x38, 0x85, 0xd7, 0xe1, 0x42, 0x8d, 0x6d, 0x85, 0x25, 0x58, 0x1c, 0x24, 0xb1, 0x5b, 0xaf, 0x93, 0xb6, 0xed, 0x85, 0xb2, 0x91, 0x84, 0xfc, 0x87, 0x00, 0x97, 0x7a, 0x0f, 0xd1, 0x7d, 0xf8, 0x1f, 0x66, 0x3b, 0x8f, 0xba, 0x15, 0x54, 0xd9, 0x78, 0x71, 0x5c, 0x58, 0x65, 0x79, 0x8e, 0x9f, 0x86, 0x59, 0xee, 0xd9, 0xd3, 0x72, 0x7c, 0x19, 0x84, 0x1d, 0x7d, 0x26, 0x40, 0x96, 0xdb, 0x13, 0x53, 0x94, 0xe0, 0x7c, 0x4f, 0x95, 0x87, 0xf5, 0xfd, 0x06, 0x31, 0xed, 0xca, 0x3e, 0x2f, 0xa9, 0x57, 0x98, 0x29, 0x2e, 0x17, 0x5a, 0x09, 0x97, 0x3f, 0xfc, 0x5a, 0x28, 0x35, 0x4c, 0xef, 0xa0, 0x5d, 0x53, 0xea, 0xa4, 0xa9, 0xf2, 0xb7, 0x24, 0xfb, 0x29, 0xbb, 0xfa, 0xa1, 0xea, 0xf9, 0x2d, 0xc3, 0xa5, 0x1a, 0x5d, 0x2d, 0x34, 0xbe, 0xf5, 0xe7, 0x2c, 0xa4, 0x69, 0x4c, 0xd1, 0x13, 0xc8, 0xb0, 0xf7, 0x1e, 0x5a, 0x1a, 0x71, 0x55, 0xf5, 0x3c, 0x2b, 0xa5, 0xe5, 0x09, 0x28, 0x96, 0x0a, 0xb9, 0xf8, 0xf1, 0xcf, 0xbf, 0x7f, 0x95, 0x94, 0x90, 0xa8, 0x0e, 0xbc, 0x5e, 0xd9, 0xb3, 0x12, 0x1d, 0x41, 0x96, 0xcf, 0x0f, 0xb4, 0x3c, 0xd5, 0x25, 0x29, 0xad, 0x4c, 0x82, 0x71, 0xdb, 0xaf, 0x52, 0xdb, 0x0b, 0x68, 0x5e, 0x1d, 0xf2, 0x72, 0x66, 0x16, 0x3f, 0x17, 0x60, 0x96, 0x96, 0x53, 0xb0, 0x44, 0xa5, 0xb1, 0x8a, 0x63, 0xf7, 0x9b, 0xb4, 0x36, 0x05, 0x92, 0xb3, 0x58, 0xa1, 0x2c, 0x8a, 0x28, 0x3f, 0x92, 0x85, 0x7a, 0x64, 0xea, 0x4f, 0xd1, 0xf7, 0x02, 0xa0, 0x88, 0x4a, 0x74, 0xad, 0xa0, 0xf2, 0x78, 0x67, 0xfb, 0xae, 0x3d, 0x49, 0x99, 0x16, 0xce, 0xd9, 0x6d, 0x52, 0x76, 0x1b, 0x68, 0x6d, 0x24, 0xbb, 0x72, 0xcd, 0x2f, 0xd7, 0x88, 0xad, 0x97, 0x4d, 0x9d, 0x11, 0xfd, 0x54, 0x80, 0x5c, 0x6c, 0xea, 0xa3, 0x51, 0xb1, 0x18, 0xbc, 0x7d, 0xa4, 0xf5, 0x69, 0xa0, 0x9c, 0x59, 0x81, 0x32, 0x9b, 0x47, 0x57, 0x07, 0x99, 0xb1, 0xcb, 0xe2, 0x43, 0x48, 0xd3, 0xa1, 0x8d, 0x5e, 0x1b, 0xa1, 0x35, 0x3e, 0xfc, 0xa5, 0xa5, 0xf1, 0xa0, 0xc9, 0xc9, 0x7a, 0x12, 0x00, 0xd5, 0xa3, 0xc0, 0xf6, 0x53, 0xf4, 0x91, 0x00, 0xb3, 0xd1, 0xcc, 0x45, 0xab, 0x23, 0x74, 0xf7, 0x0f, 0x70, 0xa9, 0x34, 0x19, 0x38, 0xb9, 0x6f, 0x2c, 0x0a, 0x46, 0x9f, 0x08, 0x00, 0xdd, 0xf1, 0x3b, 0xa6, 0x76, 0xfb, 0xa6, 0xf9, 0x98, 0xda, 0xed, 0x9f, 0xe5, 0xe3, 0x3b, 0x88, 0xa2, 0xd1, 0x8f, 0x02, 0x88, 0xa3, 0x06, 0x32, 0xba, 0x3e, 0xc2, 0xd4, 0x84, 0x49, 0x2f, 0xdd, 0x38, 0xb3, 0xdc, 0x64, 0xc2, 0x7c, 0xe4, 0x55, 0x76, 0x9f, 0x9d, 0xe4, 0x85, 0xe7, 0x27, 0x79, 0xe1, 0xb7, 0x93, 0xbc, 0xf0, 0xc5, 0x69, 0x3e, 0xf1, 0xfc, 0x34, 0x9f, 0xf8, 0xe5, 0x34, 0x9f, 0x78, 0x77, 0xb5, 0x61, 0x7a, 0x4a, 0x47, 0xaf, 0x29, 0x1e, 0xa1, 0xe2, 0x65, 0x93, 0xa8, 0x16, 0xae, 0x13, 0xdb, 0xac, 0x6f, 0xe9, 0xea, 0x07, 0x91, 0xb6, 0x5a, 0x86, 0xfe, 0xdf, 0xde, 0xfe, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x94, 0x6e, 0x34, 0x42, 0x10, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 // QueryClient is the client API for Query service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type QueryClient interface { // Params queries the registry module params. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Records queries all records Records(ctx context.Context, in *QueryRecordsRequest, opts ...grpc.CallOption) (*QueryRecordsResponse, error) // Get record by id GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error) // Get records by bond id GetRecordsByBondId(ctx context.Context, in *QueryRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordsByBondIdResponse, error) // NameRecords queries all name records NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error) // Whois method retrieve the name authority info Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error) // LookupLrn LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) // ResolveLrn ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) // Get registry module balance GetRegistryModuleBalance(ctx context.Context, in *QueryGetRegistryModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetRegistryModuleBalanceResponse, error) } type queryClient struct { cc grpc1.ClientConn } func NewQueryClient(cc grpc1.ClientConn) QueryClient { return &queryClient{cc} } func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { out := new(QueryParamsResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/Params", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) Records(ctx context.Context, in *QueryRecordsRequest, opts ...grpc.CallOption) (*QueryRecordsResponse, error) { out := new(QueryRecordsResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/Records", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) GetRecord(ctx context.Context, in *QueryRecordByIdRequest, opts ...grpc.CallOption) (*QueryRecordByIdResponse, error) { out := new(QueryRecordByIdResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/GetRecord", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) GetRecordsByBondId(ctx context.Context, in *QueryRecordsByBondIdRequest, opts ...grpc.CallOption) (*QueryRecordsByBondIdResponse, error) { out := new(QueryRecordsByBondIdResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/GetRecordsByBondId", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) NameRecords(ctx context.Context, in *QueryNameRecordsRequest, opts ...grpc.CallOption) (*QueryNameRecordsResponse, error) { out := new(QueryNameRecordsResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/NameRecords", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) Whois(ctx context.Context, in *QueryWhoisRequest, opts ...grpc.CallOption) (*QueryWhoisResponse, error) { out := new(QueryWhoisResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/Whois", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) LookupLrn(ctx context.Context, in *QueryLookupLrnRequest, opts ...grpc.CallOption) (*QueryLookupLrnResponse, error) { out := new(QueryLookupLrnResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/LookupLrn", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) ResolveLrn(ctx context.Context, in *QueryResolveLrnRequest, opts ...grpc.CallOption) (*QueryResolveLrnResponse, error) { out := new(QueryResolveLrnResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/ResolveLrn", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *queryClient) GetRegistryModuleBalance(ctx context.Context, in *QueryGetRegistryModuleBalanceRequest, opts ...grpc.CallOption) (*QueryGetRegistryModuleBalanceResponse, error) { out := new(QueryGetRegistryModuleBalanceResponse) err := c.cc.Invoke(ctx, "/cerc.registry.v1.Query/GetRegistryModuleBalance", in, out, opts...) if err != nil { return nil, err } return out, nil } // QueryServer is the server API for Query service. type QueryServer interface { // Params queries the registry module params. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Records queries all records Records(context.Context, *QueryRecordsRequest) (*QueryRecordsResponse, error) // Get record by id GetRecord(context.Context, *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error) // Get records by bond id GetRecordsByBondId(context.Context, *QueryRecordsByBondIdRequest) (*QueryRecordsByBondIdResponse, error) // NameRecords queries all name records NameRecords(context.Context, *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) // Whois method retrieve the name authority info Whois(context.Context, *QueryWhoisRequest) (*QueryWhoisResponse, error) // LookupLrn LookupLrn(context.Context, *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) // ResolveLrn ResolveLrn(context.Context, *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) // Get registry module balance GetRegistryModuleBalance(context.Context, *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) } // UnimplementedQueryServer can be embedded to have forward compatible implementations. type UnimplementedQueryServer struct { } func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") } func (*UnimplementedQueryServer) Records(ctx context.Context, req *QueryRecordsRequest) (*QueryRecordsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Records not implemented") } func (*UnimplementedQueryServer) GetRecord(ctx context.Context, req *QueryRecordByIdRequest) (*QueryRecordByIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRecord not implemented") } func (*UnimplementedQueryServer) GetRecordsByBondId(ctx context.Context, req *QueryRecordsByBondIdRequest) (*QueryRecordsByBondIdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRecordsByBondId not implemented") } func (*UnimplementedQueryServer) NameRecords(ctx context.Context, req *QueryNameRecordsRequest) (*QueryNameRecordsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method NameRecords not implemented") } func (*UnimplementedQueryServer) Whois(ctx context.Context, req *QueryWhoisRequest) (*QueryWhoisResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method Whois not implemented") } func (*UnimplementedQueryServer) LookupLrn(ctx context.Context, req *QueryLookupLrnRequest) (*QueryLookupLrnResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LookupLrn not implemented") } func (*UnimplementedQueryServer) ResolveLrn(ctx context.Context, req *QueryResolveLrnRequest) (*QueryResolveLrnResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ResolveLrn not implemented") } func (*UnimplementedQueryServer) GetRegistryModuleBalance(ctx context.Context, req *QueryGetRegistryModuleBalanceRequest) (*QueryGetRegistryModuleBalanceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRegistryModuleBalance not implemented") } func RegisterQueryServer(s grpc1.Server, srv QueryServer) { s.RegisterService(&_Query_serviceDesc, srv) } func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryParamsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).Params(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/Params", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) } return interceptor(ctx, in, info, handler) } func _Query_Records_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryRecordsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).Records(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/Records", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Records(ctx, req.(*QueryRecordsRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GetRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryRecordByIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).GetRecord(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/GetRecord", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetRecord(ctx, req.(*QueryRecordByIdRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GetRecordsByBondId_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryRecordsByBondIdRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).GetRecordsByBondId(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/GetRecordsByBondId", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetRecordsByBondId(ctx, req.(*QueryRecordsByBondIdRequest)) } return interceptor(ctx, in, info, handler) } func _Query_NameRecords_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryNameRecordsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).NameRecords(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/NameRecords", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).NameRecords(ctx, req.(*QueryNameRecordsRequest)) } return interceptor(ctx, in, info, handler) } func _Query_Whois_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryWhoisRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).Whois(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/Whois", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).Whois(ctx, req.(*QueryWhoisRequest)) } return interceptor(ctx, in, info, handler) } func _Query_LookupLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryLookupLrnRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).LookupLrn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/LookupLrn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).LookupLrn(ctx, req.(*QueryLookupLrnRequest)) } return interceptor(ctx, in, info, handler) } func _Query_ResolveLrn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryResolveLrnRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).ResolveLrn(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/ResolveLrn", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).ResolveLrn(ctx, req.(*QueryResolveLrnRequest)) } return interceptor(ctx, in, info, handler) } func _Query_GetRegistryModuleBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryGetRegistryModuleBalanceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(QueryServer).GetRegistryModuleBalance(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/cerc.registry.v1.Query/GetRegistryModuleBalance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(QueryServer).GetRegistryModuleBalance(ctx, req.(*QueryGetRegistryModuleBalanceRequest)) } return interceptor(ctx, in, info, handler) } var _Query_serviceDesc = grpc.ServiceDesc{ ServiceName: "cerc.registry.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Params", Handler: _Query_Params_Handler, }, { MethodName: "Records", Handler: _Query_Records_Handler, }, { MethodName: "GetRecord", Handler: _Query_GetRecord_Handler, }, { MethodName: "GetRecordsByBondId", Handler: _Query_GetRecordsByBondId_Handler, }, { MethodName: "NameRecords", Handler: _Query_NameRecords_Handler, }, { MethodName: "Whois", Handler: _Query_Whois_Handler, }, { MethodName: "LookupLrn", Handler: _Query_LookupLrn_Handler, }, { MethodName: "ResolveLrn", Handler: _Query_ResolveLrn_Handler, }, { MethodName: "GetRegistryModuleBalance", Handler: _Query_GetRegistryModuleBalance_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cerc/registry/v1/query.proto", } func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Params != nil { { size, err := m.Params.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryRecordsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } if m.All { i-- if m.All { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } if len(m.Attributes) > 0 { for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ArrayInput) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsRequest_ArrayInput) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ArrayInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Values) > 0 { for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Values[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *QueryRecordsRequest_MapInput) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsRequest_MapInput) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_MapInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Values) > 0 { for k := range m.Values { v := m.Values[k] baseI := i if v != nil { { size, err := v.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } i -= len(k) copy(dAtA[i:], k) i = encodeVarintQuery(dAtA, i, uint64(len(k))) i-- dAtA[i] = 0xa i = encodeVarintQuery(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsRequest_ValueInput) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Value != nil { { size := m.Value.Size() i -= size if _, err := m.Value.MarshalTo(dAtA[i:]); err != nil { return 0, err } } } return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput_String_) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput_String_) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.String_) copy(dAtA[i:], m.String_) i = encodeVarintQuery(dAtA, i, uint64(len(m.String_))) i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput_Int) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput_Int) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i = encodeVarintQuery(dAtA, i, uint64(m.Int)) i-- dAtA[i] = 0x10 return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput_Float) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput_Float) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= 8 encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Float)))) i-- dAtA[i] = 0x19 return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput_Boolean) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput_Boolean) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i-- if m.Boolean { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x20 return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput_Link) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput_Link) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) i -= len(m.Link) copy(dAtA[i:], m.Link) i = encodeVarintQuery(dAtA, i, uint64(len(m.Link))) i-- dAtA[i] = 0x2a return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput_Array) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput_Array) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Array != nil { { size, err := m.Array.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x32 } return len(dAtA) - i, nil } func (m *QueryRecordsRequest_ValueInput_Map) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_ValueInput_Map) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) if m.Map != nil { { size, err := m.Map.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x3a } return len(dAtA) - i, nil } func (m *QueryRecordsRequest_KeyValueInput) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsRequest_KeyValueInput) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsRequest_KeyValueInput) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Value != nil { { size, err := m.Value.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.Key) > 0 { i -= len(m.Key) copy(dAtA[i:], m.Key) i = encodeVarintQuery(dAtA, i, uint64(len(m.Key))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryRecordsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.Records) > 0 { for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *QueryRecordByIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordByIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintQuery(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryRecordByIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordByIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *QueryRecordsByBondIdRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsByBondIdRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsByBondIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.Id) > 0 { i -= len(m.Id) copy(dAtA[i:], m.Id) i = encodeVarintQuery(dAtA, i, uint64(len(m.Id))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryRecordsByBondIdResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryRecordsByBondIdResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryRecordsByBondIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.Records) > 0 { for iNdEx := len(m.Records) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Records[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *QueryNameRecordsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryNameRecordsRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryNameRecordsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryNameRecordsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryNameRecordsResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryNameRecordsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Pagination != nil { { size, err := m.Pagination.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } if len(m.Names) > 0 { for iNdEx := len(m.Names) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Names[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *QueryWhoisRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryWhoisRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryWhoisRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintQuery(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryWhoisResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryWhoisResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryWhoisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l { size, err := m.NameAuthority.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa return len(dAtA) - i, nil } func (m *QueryLookupLrnRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryLookupLrnRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryLookupLrnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Lrn) > 0 { i -= len(m.Lrn) copy(dAtA[i:], m.Lrn) i = encodeVarintQuery(dAtA, i, uint64(len(m.Lrn))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryLookupLrnResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryLookupLrnResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryLookupLrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Name != nil { { size, err := m.Name.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryResolveLrnRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryResolveLrnRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryResolveLrnRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Lrn) > 0 { i -= len(m.Lrn) copy(dAtA[i:], m.Lrn) i = encodeVarintQuery(dAtA, i, uint64(len(m.Lrn))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryResolveLrnResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryResolveLrnResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryResolveLrnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Record != nil { { size, err := m.Record.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *QueryGetRegistryModuleBalanceRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetRegistryModuleBalanceRequest) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetRegistryModuleBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l return len(dAtA) - i, nil } func (m *QueryGetRegistryModuleBalanceResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *QueryGetRegistryModuleBalanceResponse) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *QueryGetRegistryModuleBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Balances) > 0 { for iNdEx := len(m.Balances) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Balances[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *AccountBalance) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *AccountBalance) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *AccountBalance) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Balance) > 0 { for iNdEx := len(m.Balance) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Balance[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintQuery(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x1a } } if len(m.AccountName) > 0 { i -= len(m.AccountName) copy(dAtA[i:], m.AccountName) i = encodeVarintQuery(dAtA, i, uint64(len(m.AccountName))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintQuery(dAtA []byte, offset int, v uint64) int { offset -= sovQuery(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *QueryParamsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *QueryParamsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Params != nil { l = m.Params.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Attributes) > 0 { for _, e := range m.Attributes { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } if m.All { n += 2 } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordsRequest_ArrayInput) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Values) > 0 { for _, e := range m.Values { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } return n } func (m *QueryRecordsRequest_MapInput) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Values) > 0 { for k, v := range m.Values { _ = k _ = v l = 0 if v != nil { l = v.Size() l += 1 + sovQuery(uint64(l)) } mapEntrySize := 1 + len(k) + sovQuery(uint64(len(k))) + l n += mapEntrySize + 1 + sovQuery(uint64(mapEntrySize)) } } return n } func (m *QueryRecordsRequest_ValueInput) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Value != nil { n += m.Value.Size() } return n } func (m *QueryRecordsRequest_ValueInput_String_) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.String_) n += 1 + l + sovQuery(uint64(l)) return n } func (m *QueryRecordsRequest_ValueInput_Int) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 1 + sovQuery(uint64(m.Int)) return n } func (m *QueryRecordsRequest_ValueInput_Float) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 9 return n } func (m *QueryRecordsRequest_ValueInput_Boolean) Size() (n int) { if m == nil { return 0 } var l int _ = l n += 2 return n } func (m *QueryRecordsRequest_ValueInput_Link) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Link) n += 1 + l + sovQuery(uint64(l)) return n } func (m *QueryRecordsRequest_ValueInput_Array) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Array != nil { l = m.Array.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordsRequest_ValueInput_Map) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Map != nil { l = m.Map.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordsRequest_KeyValueInput) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Key) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } if m.Value != nil { l = m.Value.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Records) > 0 { for _, e := range m.Records { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordByIdRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordByIdResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.Record.Size() n += 1 + l + sovQuery(uint64(l)) return n } func (m *QueryRecordsByBondIdRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Id) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryRecordsByBondIdResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Records) > 0 { for _, e := range m.Records { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryNameRecordsRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryNameRecordsResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Names) > 0 { for _, e := range m.Names { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } if m.Pagination != nil { l = m.Pagination.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryWhoisRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryWhoisResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l l = m.NameAuthority.Size() n += 1 + l + sovQuery(uint64(l)) return n } func (m *QueryLookupLrnRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Lrn) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryLookupLrnResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Name != nil { l = m.Name.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryResolveLrnRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Lrn) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryResolveLrnResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Record != nil { l = m.Record.Size() n += 1 + l + sovQuery(uint64(l)) } return n } func (m *QueryGetRegistryModuleBalanceRequest) Size() (n int) { if m == nil { return 0 } var l int _ = l return n } func (m *QueryGetRegistryModuleBalanceResponse) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Balances) > 0 { for _, e := range m.Balances { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } return n } func (m *AccountBalance) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.AccountName) if l > 0 { n += 1 + l + sovQuery(uint64(l)) } if len(m.Balance) > 0 { for _, e := range m.Balance { l = e.Size() n += 1 + l + sovQuery(uint64(l)) } } return n } func sovQuery(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozQuery(x uint64) (n int) { return sovQuery(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryParamsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryParamsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryParamsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryParamsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Params == nil { m.Params = &Params{} } if err := m.Params.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryRecordsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryRecordsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Attributes = append(m.Attributes, &QueryRecordsRequest_KeyValueInput{}) if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field All", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.All = bool(v != 0) case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageRequest{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsRequest_ArrayInput) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ArrayInput: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ArrayInput: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Values = append(m.Values, &QueryRecordsRequest_ValueInput{}) if err := m.Values[len(m.Values)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsRequest_MapInput) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: MapInput: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: MapInput: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Values == nil { m.Values = make(map[string]*QueryRecordsRequest_ValueInput) } var mapkey string var mapvalue *QueryRecordsRequest_ValueInput for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) if fieldNum == 1 { var stringLenmapkey uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLenmapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLenmapkey := int(stringLenmapkey) if intStringLenmapkey < 0 { return ErrInvalidLengthQuery } postStringIndexmapkey := iNdEx + intStringLenmapkey if postStringIndexmapkey < 0 { return ErrInvalidLengthQuery } if postStringIndexmapkey > l { return io.ErrUnexpectedEOF } mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) iNdEx = postStringIndexmapkey } else if fieldNum == 2 { var mapmsglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ mapmsglen |= int(b&0x7F) << shift if b < 0x80 { break } } if mapmsglen < 0 { return ErrInvalidLengthQuery } postmsgIndex := iNdEx + mapmsglen if postmsgIndex < 0 { return ErrInvalidLengthQuery } if postmsgIndex > l { return io.ErrUnexpectedEOF } mapvalue = &QueryRecordsRequest_ValueInput{} if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex } else { iNdEx = entryPreIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Values[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsRequest_ValueInput) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: ValueInput: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: ValueInput: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field String_", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Value = &QueryRecordsRequest_ValueInput_String_{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Int", wireType) } var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int64(b&0x7F) << shift if b < 0x80 { break } } m.Value = &QueryRecordsRequest_ValueInput_Int{v} case 3: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field Float", wireType) } var v uint64 if (iNdEx + 8) > l { return io.ErrUnexpectedEOF } v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 m.Value = &QueryRecordsRequest_ValueInput_Float{float64(math.Float64frombits(v))} case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Boolean", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } b := bool(v != 0) m.Value = &QueryRecordsRequest_ValueInput_Boolean{b} case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Link", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Value = &QueryRecordsRequest_ValueInput_Link{string(dAtA[iNdEx:postIndex])} iNdEx = postIndex case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Array", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } v := &QueryRecordsRequest_ArrayInput{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Value = &QueryRecordsRequest_ValueInput_Array{v} iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Map", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } v := &QueryRecordsRequest_MapInput{} if err := v.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } m.Value = &QueryRecordsRequest_ValueInput_Map{v} iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsRequest_KeyValueInput) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: KeyValueInput: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: KeyValueInput: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Key = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Value == nil { m.Value = &QueryRecordsRequest_ValueInput{} } if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryRecordsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Records = append(m.Records, Record{}) if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageResponse{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordByIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryRecordByIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryRecordByIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordByIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryRecordByIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryRecordByIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Record", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.Record.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsByBondIdRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryRecordsByBondIdRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryRecordsByBondIdRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Id = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageRequest{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryRecordsByBondIdResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryRecordsByBondIdResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryRecordsByBondIdResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Records", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Records = append(m.Records, Record{}) if err := m.Records[len(m.Records)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageResponse{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryNameRecordsRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryNameRecordsRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryNameRecordsRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageRequest{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryNameRecordsResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryNameRecordsResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryNameRecordsResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Names", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Names = append(m.Names, NameEntry{}) if err := m.Names[len(m.Names)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Pagination", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Pagination == nil { m.Pagination = &query.PageResponse{} } if err := m.Pagination.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryWhoisRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryWhoisRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryWhoisRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryWhoisResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryWhoisResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryWhoisResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field NameAuthority", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if err := m.NameAuthority.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryLookupLrnRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryLookupLrnRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryLookupLrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryLookupLrnResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryLookupLrnResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryLookupLrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Name == nil { m.Name = &NameRecord{} } if err := m.Name.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryResolveLrnRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryResolveLrnRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryResolveLrnRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Lrn", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Lrn = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryResolveLrnResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryResolveLrnResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryResolveLrnResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Record", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } if m.Record == nil { m.Record = &Record{} } if err := m.Record.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetRegistryModuleBalanceRequest) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetRegistryModuleBalanceRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetRegistryModuleBalanceRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *QueryGetRegistryModuleBalanceResponse) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: QueryGetRegistryModuleBalanceResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: QueryGetRegistryModuleBalanceResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Balances", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Balances = append(m.Balances, &AccountBalance{}) if err := m.Balances[len(m.Balances)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *AccountBalance) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: AccountBalance: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: AccountBalance: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AccountName", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.AccountName = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Balance", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowQuery } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthQuery } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthQuery } if postIndex > l { return io.ErrUnexpectedEOF } m.Balance = append(m.Balance, types.Coin{}) if err := m.Balance[len(m.Balance)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipQuery(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthQuery } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipQuery(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQuery } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQuery } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowQuery } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthQuery } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupQuery } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthQuery } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )