// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: ununifi/nftfactory/query.proto

package types

import (
	context "context"
	fmt "fmt"
	_ "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 the request type for the Query/Params RPC method.
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_ce869c90a3ee4b0a, []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 the response type for the Query/Params RPC method.
type QueryParamsResponse struct {
	// params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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_ce869c90a3ee4b0a, []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 Params{}
}

type QueryClassAuthorityMetadataRequest struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
	Subclass string `protobuf:"bytes,2,opt,name=subclass,proto3" json:"subclass,omitempty" yaml:"subclass"`
}

func (m *QueryClassAuthorityMetadataRequest) Reset()         { *m = QueryClassAuthorityMetadataRequest{} }
func (m *QueryClassAuthorityMetadataRequest) String() string { return proto.CompactTextString(m) }
func (*QueryClassAuthorityMetadataRequest) ProtoMessage()    {}
func (*QueryClassAuthorityMetadataRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_ce869c90a3ee4b0a, []int{2}
}
func (m *QueryClassAuthorityMetadataRequest) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *QueryClassAuthorityMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_QueryClassAuthorityMetadataRequest.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 *QueryClassAuthorityMetadataRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QueryClassAuthorityMetadataRequest.Merge(m, src)
}
func (m *QueryClassAuthorityMetadataRequest) XXX_Size() int {
	return m.Size()
}
func (m *QueryClassAuthorityMetadataRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_QueryClassAuthorityMetadataRequest.DiscardUnknown(m)
}

var xxx_messageInfo_QueryClassAuthorityMetadataRequest proto.InternalMessageInfo

func (m *QueryClassAuthorityMetadataRequest) GetCreator() string {
	if m != nil {
		return m.Creator
	}
	return ""
}

func (m *QueryClassAuthorityMetadataRequest) GetSubclass() string {
	if m != nil {
		return m.Subclass
	}
	return ""
}

type QueryClassAuthorityMetadataResponse struct {
	AuthorityMetadata ClassAuthorityMetadata `protobuf:"bytes,1,opt,name=authority_metadata,json=authorityMetadata,proto3" json:"authority_metadata" yaml:"authority_metadata"`
}

func (m *QueryClassAuthorityMetadataResponse) Reset()         { *m = QueryClassAuthorityMetadataResponse{} }
func (m *QueryClassAuthorityMetadataResponse) String() string { return proto.CompactTextString(m) }
func (*QueryClassAuthorityMetadataResponse) ProtoMessage()    {}
func (*QueryClassAuthorityMetadataResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_ce869c90a3ee4b0a, []int{3}
}
func (m *QueryClassAuthorityMetadataResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *QueryClassAuthorityMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_QueryClassAuthorityMetadataResponse.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 *QueryClassAuthorityMetadataResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QueryClassAuthorityMetadataResponse.Merge(m, src)
}
func (m *QueryClassAuthorityMetadataResponse) XXX_Size() int {
	return m.Size()
}
func (m *QueryClassAuthorityMetadataResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_QueryClassAuthorityMetadataResponse.DiscardUnknown(m)
}

var xxx_messageInfo_QueryClassAuthorityMetadataResponse proto.InternalMessageInfo

func (m *QueryClassAuthorityMetadataResponse) GetAuthorityMetadata() ClassAuthorityMetadata {
	if m != nil {
		return m.AuthorityMetadata
	}
	return ClassAuthorityMetadata{}
}

type QueryClassesFromCreatorRequest struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

func (m *QueryClassesFromCreatorRequest) Reset()         { *m = QueryClassesFromCreatorRequest{} }
func (m *QueryClassesFromCreatorRequest) String() string { return proto.CompactTextString(m) }
func (*QueryClassesFromCreatorRequest) ProtoMessage()    {}
func (*QueryClassesFromCreatorRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_ce869c90a3ee4b0a, []int{4}
}
func (m *QueryClassesFromCreatorRequest) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *QueryClassesFromCreatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_QueryClassesFromCreatorRequest.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 *QueryClassesFromCreatorRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QueryClassesFromCreatorRequest.Merge(m, src)
}
func (m *QueryClassesFromCreatorRequest) XXX_Size() int {
	return m.Size()
}
func (m *QueryClassesFromCreatorRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_QueryClassesFromCreatorRequest.DiscardUnknown(m)
}

var xxx_messageInfo_QueryClassesFromCreatorRequest proto.InternalMessageInfo

func (m *QueryClassesFromCreatorRequest) GetCreator() string {
	if m != nil {
		return m.Creator
	}
	return ""
}

type QueryClassesFromCreatorResponse struct {
	Classes []string `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty" yaml:"classes"`
}

func (m *QueryClassesFromCreatorResponse) Reset()         { *m = QueryClassesFromCreatorResponse{} }
func (m *QueryClassesFromCreatorResponse) String() string { return proto.CompactTextString(m) }
func (*QueryClassesFromCreatorResponse) ProtoMessage()    {}
func (*QueryClassesFromCreatorResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_ce869c90a3ee4b0a, []int{5}
}
func (m *QueryClassesFromCreatorResponse) XXX_Unmarshal(b []byte) error {
	return m.Unmarshal(b)
}
func (m *QueryClassesFromCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	if deterministic {
		return xxx_messageInfo_QueryClassesFromCreatorResponse.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 *QueryClassesFromCreatorResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_QueryClassesFromCreatorResponse.Merge(m, src)
}
func (m *QueryClassesFromCreatorResponse) XXX_Size() int {
	return m.Size()
}
func (m *QueryClassesFromCreatorResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_QueryClassesFromCreatorResponse.DiscardUnknown(m)
}

var xxx_messageInfo_QueryClassesFromCreatorResponse proto.InternalMessageInfo

func (m *QueryClassesFromCreatorResponse) GetClasses() []string {
	if m != nil {
		return m.Classes
	}
	return nil
}

func init() {
	proto.RegisterType((*QueryParamsRequest)(nil), "ununifi.nftfactory.QueryParamsRequest")
	proto.RegisterType((*QueryParamsResponse)(nil), "ununifi.nftfactory.QueryParamsResponse")
	proto.RegisterType((*QueryClassAuthorityMetadataRequest)(nil), "ununifi.nftfactory.QueryClassAuthorityMetadataRequest")
	proto.RegisterType((*QueryClassAuthorityMetadataResponse)(nil), "ununifi.nftfactory.QueryClassAuthorityMetadataResponse")
	proto.RegisterType((*QueryClassesFromCreatorRequest)(nil), "ununifi.nftfactory.QueryClassesFromCreatorRequest")
	proto.RegisterType((*QueryClassesFromCreatorResponse)(nil), "ununifi.nftfactory.QueryClassesFromCreatorResponse")
}

func init() { proto.RegisterFile("ununifi/nftfactory/query.proto", fileDescriptor_ce869c90a3ee4b0a) }

var fileDescriptor_ce869c90a3ee4b0a = []byte{
	// 544 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xd1, 0x6a, 0x13, 0x4d,
	0x18, 0xcd, 0xf4, 0xef, 0x1f, 0x75, 0x04, 0xc5, 0x69, 0x91, 0xb8, 0x94, 0x4d, 0x9d, 0x82, 0x8a,
	0x9a, 0x0c, 0xa4, 0xa2, 0xd2, 0x3b, 0x53, 0x2c, 0x88, 0x68, 0xed, 0x42, 0x6f, 0xbc, 0x91, 0xc9,
	0x3a, 0xd9, 0x2c, 0x64, 0x67, 0xb6, 0x3b, 0xb3, 0xe0, 0x52, 0x73, 0xa3, 0x2f, 0x20, 0xf8, 0x04,
	0xe2, 0x53, 0xf8, 0x06, 0xbd, 0x2c, 0x78, 0xe3, 0x85, 0x04, 0x49, 0x7c, 0x82, 0x3c, 0x81, 0xec,
	0xcc, 0x6c, 0xa3, 0xcd, 0x26, 0x52, 0xef, 0x26, 0x7b, 0xce, 0x9c, 0xef, 0x9c, 0x6f, 0x0e, 0x81,
	0x6e, 0xca, 0x53, 0x1e, 0x76, 0x43, 0xc2, 0xbb, 0xaa, 0x4b, 0x7d, 0x25, 0x92, 0x8c, 0x1c, 0xa4,
	0x2c, 0xc9, 0x9a, 0x71, 0x22, 0x94, 0x40, 0xc8, 0xe2, 0xcd, 0x29, 0xee, 0xac, 0x06, 0x22, 0x10,
	0x1a, 0x26, 0xf9, 0xc9, 0x30, 0x9d, 0xb5, 0x40, 0x88, 0xa0, 0xcf, 0x08, 0x8d, 0x43, 0x42, 0x39,
	0x17, 0x8a, 0xaa, 0x50, 0x70, 0x69, 0xd1, 0x8d, 0x92, 0x39, 0xd3, 0xa3, 0x21, 0xe1, 0x55, 0x88,
	0xf6, 0xf2, 0xd9, 0x2f, 0x68, 0x42, 0x23, 0xe9, 0xb1, 0x83, 0x94, 0x49, 0x85, 0x77, 0xe1, 0xca,
	0x1f, 0x5f, 0x65, 0x2c, 0xb8, 0x64, 0xe8, 0x21, 0xac, 0xc6, 0xfa, 0x4b, 0x0d, 0xac, 0x83, 0x5b,
	0x17, 0x5b, 0x4e, 0x73, 0xd6, 0x6a, 0xd3, 0xdc, 0x69, 0x2f, 0x1f, 0x0d, 0xeb, 0x15, 0xcf, 0xf2,
	0xf1, 0x7b, 0x00, 0xb1, 0x56, 0xdc, 0xee, 0x53, 0x29, 0x1f, 0xa5, 0xaa, 0x27, 0x92, 0x50, 0x65,
	0xcf, 0x98, 0xa2, 0xaf, 0xa9, 0xa2, 0x76, 0x2e, 0xba, 0x0b, 0xcf, 0xf9, 0x09, 0xa3, 0x4a, 0x24,
	0x7a, 0xc2, 0x85, 0x36, 0x9a, 0x0c, 0xeb, 0x97, 0x32, 0x1a, 0xf5, 0xb7, 0xb0, 0x05, 0xb0, 0x57,
	0x50, 0x10, 0x81, 0xe7, 0x65, 0xda, 0xf1, 0x73, 0xc5, 0xda, 0x92, 0xa6, 0xaf, 0x4c, 0x86, 0xf5,
	0xcb, 0x86, 0x5e, 0x20, 0xd8, 0x3b, 0x21, 0xe1, 0xcf, 0x00, 0x6e, 0x2c, 0x74, 0x61, 0x73, 0xbe,
	0x85, 0x88, 0x16, 0xe0, 0xab, 0xc8, 0xa2, 0x36, 0xf3, 0xed, 0xb2, 0xcc, 0xe5, 0x7a, 0xed, 0xeb,
	0xf9, 0x0e, 0x26, 0xc3, 0xfa, 0x35, 0x63, 0x69, 0x56, 0x13, 0x7b, 0x57, 0xe8, 0xe9, 0x5b, 0xf8,
	0x39, 0x74, 0xa7, 0x26, 0x99, 0xdc, 0x49, 0x44, 0xb4, 0x6d, 0x12, 0xff, 0xd3, 0x9a, 0xf0, 0x2e,
	0xac, 0xcf, 0xd5, 0xb3, 0x81, 0x73, 0x41, 0x83, 0xd6, 0xc0, 0xfa, 0x7f, 0xa7, 0x04, 0x0d, 0x90,
	0x0b, 0x9a, 0x53, 0xeb, 0xd3, 0x32, 0xfc, 0x5f, 0x2b, 0xa2, 0x01, 0xac, 0x9a, 0xe7, 0x46, 0x37,
	0xca, 0xd6, 0x32, 0xdb, 0x2c, 0xe7, 0xe6, 0x5f, 0x79, 0xc6, 0x12, 0xc6, 0xef, 0xbe, 0xfe, 0xfc,
	0xb8, 0xb4, 0x86, 0x1c, 0x52, 0x52, 0x63, 0xd3, 0x2a, 0xf4, 0x1d, 0xc0, 0xab, 0xe5, 0xab, 0x47,
	0xf7, 0xe7, 0xce, 0x59, 0xd8, 0x40, 0xe7, 0xc1, 0x99, 0xef, 0x59, 0xbf, 0x7b, 0xda, 0xef, 0x53,
	0xf4, 0xa4, 0xcc, 0xaf, 0xde, 0x1c, 0x29, 0x7e, 0x1d, 0xda, 0x97, 0x19, 0x90, 0xc3, 0xa2, 0x9a,
	0x03, 0x72, 0xd2, 0x83, 0x46, 0x51, 0x0e, 0xf4, 0x05, 0x40, 0x34, 0xfb, 0x68, 0xa8, 0xb5, 0xd8,
	0x62, 0x59, 0x63, 0x9c, 0xcd, 0x33, 0xdd, 0xb1, 0x91, 0xb6, 0x74, 0xa4, 0x7b, 0xa8, 0x35, 0x37,
	0x12, 0x93, 0x8d, 0x6e, 0x22, 0xa2, 0x86, 0x0d, 0x34, 0x4d, 0xd6, 0x7e, 0x7c, 0x34, 0x72, 0xc1,
	0xf1, 0xc8, 0x05, 0x3f, 0x46, 0x2e, 0xf8, 0x30, 0x76, 0x2b, 0xc7, 0x63, 0xb7, 0xf2, 0x6d, 0xec,
	0x56, 0x5e, 0xde, 0x09, 0x42, 0xd5, 0x4b, 0x3b, 0x4d, 0x5f, 0x44, 0x64, 0x9f, 0xef, 0xf3, 0x70,
	0x27, 0x24, 0x7e, 0x8f, 0x86, 0x9c, 0xbc, 0xf9, 0x5d, 0x5f, 0x65, 0x31, 0x93, 0x9d, 0xaa, 0xfe,
	0x97, 0xda, 0xfc, 0x15, 0x00, 0x00, 0xff, 0xff, 0xdc, 0x0a, 0xef, 0x26, 0x34, 0x05, 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(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	ClassAuthorityMetadata(ctx context.Context, in *QueryClassAuthorityMetadataRequest, opts ...grpc.CallOption) (*QueryClassAuthorityMetadataResponse, error)
	ClassesFromCreator(ctx context.Context, in *QueryClassesFromCreatorRequest, opts ...grpc.CallOption) (*QueryClassesFromCreatorResponse, 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, "/ununifi.nftfactory.Query/Params", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *queryClient) ClassAuthorityMetadata(ctx context.Context, in *QueryClassAuthorityMetadataRequest, opts ...grpc.CallOption) (*QueryClassAuthorityMetadataResponse, error) {
	out := new(QueryClassAuthorityMetadataResponse)
	err := c.cc.Invoke(ctx, "/ununifi.nftfactory.Query/ClassAuthorityMetadata", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *queryClient) ClassesFromCreator(ctx context.Context, in *QueryClassesFromCreatorRequest, opts ...grpc.CallOption) (*QueryClassesFromCreatorResponse, error) {
	out := new(QueryClassesFromCreatorResponse)
	err := c.cc.Invoke(ctx, "/ununifi.nftfactory.Query/ClassesFromCreator", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// QueryServer is the server API for Query service.
type QueryServer interface {
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	ClassAuthorityMetadata(context.Context, *QueryClassAuthorityMetadataRequest) (*QueryClassAuthorityMetadataResponse, error)
	ClassesFromCreator(context.Context, *QueryClassesFromCreatorRequest) (*QueryClassesFromCreatorResponse, 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) ClassAuthorityMetadata(ctx context.Context, req *QueryClassAuthorityMetadataRequest) (*QueryClassAuthorityMetadataResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ClassAuthorityMetadata not implemented")
}
func (*UnimplementedQueryServer) ClassesFromCreator(ctx context.Context, req *QueryClassesFromCreatorRequest) (*QueryClassesFromCreatorResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method ClassesFromCreator 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: "/ununifi.nftfactory.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_ClassAuthorityMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryClassAuthorityMetadataRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).ClassAuthorityMetadata(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/ununifi.nftfactory.Query/ClassAuthorityMetadata",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).ClassAuthorityMetadata(ctx, req.(*QueryClassAuthorityMetadataRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Query_ClassesFromCreator_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryClassesFromCreatorRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).ClassesFromCreator(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/ununifi.nftfactory.Query/ClassesFromCreator",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).ClassesFromCreator(ctx, req.(*QueryClassesFromCreatorRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var _Query_serviceDesc = grpc.ServiceDesc{
	ServiceName: "ununifi.nftfactory.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "ClassAuthorityMetadata",
			Handler:    _Query_ClassAuthorityMetadata_Handler,
		},
		{
			MethodName: "ClassesFromCreator",
			Handler:    _Query_ClassesFromCreator_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ununifi/nftfactory/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
	{
		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 *QueryClassAuthorityMetadataRequest) 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 *QueryClassAuthorityMetadataRequest) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *QueryClassAuthorityMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Subclass) > 0 {
		i -= len(m.Subclass)
		copy(dAtA[i:], m.Subclass)
		i = encodeVarintQuery(dAtA, i, uint64(len(m.Subclass)))
		i--
		dAtA[i] = 0x12
	}
	if len(m.Creator) > 0 {
		i -= len(m.Creator)
		copy(dAtA[i:], m.Creator)
		i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *QueryClassAuthorityMetadataResponse) 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 *QueryClassAuthorityMetadataResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *QueryClassAuthorityMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	{
		size, err := m.AuthorityMetadata.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 *QueryClassesFromCreatorRequest) 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 *QueryClassesFromCreatorRequest) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *QueryClassesFromCreatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Creator) > 0 {
		i -= len(m.Creator)
		copy(dAtA[i:], m.Creator)
		i = encodeVarintQuery(dAtA, i, uint64(len(m.Creator)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func (m *QueryClassesFromCreatorResponse) 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 *QueryClassesFromCreatorResponse) MarshalTo(dAtA []byte) (int, error) {
	size := m.Size()
	return m.MarshalToSizedBuffer(dAtA[:size])
}

func (m *QueryClassesFromCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Classes) > 0 {
		for iNdEx := len(m.Classes) - 1; iNdEx >= 0; iNdEx-- {
			i -= len(m.Classes[iNdEx])
			copy(dAtA[i:], m.Classes[iNdEx])
			i = encodeVarintQuery(dAtA, i, uint64(len(m.Classes[iNdEx])))
			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
	l = m.Params.Size()
	n += 1 + l + sovQuery(uint64(l))
	return n
}

func (m *QueryClassAuthorityMetadataRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Creator)
	if l > 0 {
		n += 1 + l + sovQuery(uint64(l))
	}
	l = len(m.Subclass)
	if l > 0 {
		n += 1 + l + sovQuery(uint64(l))
	}
	return n
}

func (m *QueryClassAuthorityMetadataResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = m.AuthorityMetadata.Size()
	n += 1 + l + sovQuery(uint64(l))
	return n
}

func (m *QueryClassesFromCreatorRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Creator)
	if l > 0 {
		n += 1 + l + sovQuery(uint64(l))
	}
	return n
}

func (m *QueryClassesFromCreatorResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if len(m.Classes) > 0 {
		for _, s := range m.Classes {
			l = len(s)
			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 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 *QueryClassAuthorityMetadataRequest) 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: QueryClassAuthorityMetadataRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryClassAuthorityMetadataRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Subclass", 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.Subclass = 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 *QueryClassAuthorityMetadataResponse) 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: QueryClassAuthorityMetadataResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryClassAuthorityMetadataResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field AuthorityMetadata", 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.AuthorityMetadata.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 *QueryClassesFromCreatorRequest) 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: QueryClassesFromCreatorRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryClassesFromCreatorRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Creator", 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.Creator = 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 *QueryClassesFromCreatorResponse) 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: QueryClassesFromCreatorResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryClassesFromCreatorResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Classes", 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.Classes = append(m.Classes, 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 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")
)
