// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: celestia/signal/v1/query.proto

package types

import (
	context "context"
	fmt "fmt"
	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

// QueryVersionTallyRequest is the request type for the VersionTally query.
type QueryVersionTallyRequest struct {
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
}

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

var xxx_messageInfo_QueryVersionTallyRequest proto.InternalMessageInfo

func (m *QueryVersionTallyRequest) GetVersion() uint64 {
	if m != nil {
		return m.Version
	}
	return 0
}

// QueryVersionTallyResponse is the response type for the VersionTally query.
type QueryVersionTallyResponse struct {
	VotingPower      uint64 `protobuf:"varint,1,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	ThresholdPower   uint64 `protobuf:"varint,2,opt,name=threshold_power,json=thresholdPower,proto3" json:"threshold_power,omitempty"`
	TotalVotingPower uint64 `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"`
}

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

var xxx_messageInfo_QueryVersionTallyResponse proto.InternalMessageInfo

func (m *QueryVersionTallyResponse) GetVotingPower() uint64 {
	if m != nil {
		return m.VotingPower
	}
	return 0
}

func (m *QueryVersionTallyResponse) GetThresholdPower() uint64 {
	if m != nil {
		return m.ThresholdPower
	}
	return 0
}

func (m *QueryVersionTallyResponse) GetTotalVotingPower() uint64 {
	if m != nil {
		return m.TotalVotingPower
	}
	return 0
}

// QueryGetUpgradeRequest is the request type for the GetUpgrade query.
type QueryGetUpgradeRequest struct {
}

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

var xxx_messageInfo_QueryGetUpgradeRequest proto.InternalMessageInfo

// QueryGetUpgradeResponse is the response type for the GetUpgrade query.
type QueryGetUpgradeResponse struct {
	Upgrade *Upgrade `protobuf:"bytes,1,opt,name=upgrade,proto3" json:"upgrade,omitempty"`
}

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

var xxx_messageInfo_QueryGetUpgradeResponse proto.InternalMessageInfo

func (m *QueryGetUpgradeResponse) GetUpgrade() *Upgrade {
	if m != nil {
		return m.Upgrade
	}
	return nil
}

// QueryGetMissingValidatorsRequest is the request type for the MissingValidators query.
type QueryGetMissingValidatorsRequest struct {
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
}

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

var xxx_messageInfo_QueryGetMissingValidatorsRequest proto.InternalMessageInfo

func (m *QueryGetMissingValidatorsRequest) GetVersion() uint64 {
	if m != nil {
		return m.Version
	}
	return 0
}

// QueryGetMissingValidatorsResponse is the response type for the MissingValidators query.
type QueryGetMissingValidatorsResponse struct {
	// MissingValidators is a string of validator monikers
	MissingValidators []string `protobuf:"bytes,1,rep,name=missing_validators,json=missingValidators,proto3" json:"missing_validators,omitempty"`
}

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

var xxx_messageInfo_QueryGetMissingValidatorsResponse proto.InternalMessageInfo

func (m *QueryGetMissingValidatorsResponse) GetMissingValidators() []string {
	if m != nil {
		return m.MissingValidators
	}
	return nil
}

func init() {
	proto.RegisterType((*QueryVersionTallyRequest)(nil), "celestia.signal.v1.QueryVersionTallyRequest")
	proto.RegisterType((*QueryVersionTallyResponse)(nil), "celestia.signal.v1.QueryVersionTallyResponse")
	proto.RegisterType((*QueryGetUpgradeRequest)(nil), "celestia.signal.v1.QueryGetUpgradeRequest")
	proto.RegisterType((*QueryGetUpgradeResponse)(nil), "celestia.signal.v1.QueryGetUpgradeResponse")
	proto.RegisterType((*QueryGetMissingValidatorsRequest)(nil), "celestia.signal.v1.QueryGetMissingValidatorsRequest")
	proto.RegisterType((*QueryGetMissingValidatorsResponse)(nil), "celestia.signal.v1.QueryGetMissingValidatorsResponse")
}

func init() { proto.RegisterFile("celestia/signal/v1/query.proto", fileDescriptor_7af24246367e432c) }

var fileDescriptor_7af24246367e432c = []byte{
	// 490 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x4d, 0x6f, 0xd3, 0x40,
	0x10, 0xcd, 0x36, 0x40, 0xc5, 0xb4, 0xe2, 0x63, 0x54, 0x81, 0x31, 0x91, 0x95, 0x5a, 0x48, 0x54,
	0xd0, 0xd8, 0x6a, 0x68, 0x6f, 0x9c, 0xb8, 0x70, 0x01, 0xa9, 0x44, 0x90, 0x03, 0x97, 0x68, 0xdb,
	0xac, 0x9c, 0x95, 0x1c, 0xaf, 0xbb, 0xbb, 0x31, 0x44, 0x88, 0x03, 0xfc, 0x01, 0x90, 0x10, 0x3f,
	0x82, 0x7f, 0x02, 0xb7, 0x4a, 0x5c, 0x38, 0xa2, 0x84, 0x1f, 0x82, 0xb2, 0xbb, 0x4e, 0x02, 0x49,
	0x4a, 0xb9, 0x25, 0x33, 0xef, 0xbd, 0x79, 0xf3, 0x66, 0x0d, 0xc1, 0x31, 0x4b, 0x99, 0xd2, 0x9c,
	0xc6, 0x8a, 0x27, 0x19, 0x4d, 0xe3, 0x62, 0x2f, 0x3e, 0x19, 0x30, 0x39, 0x8c, 0x72, 0x29, 0xb4,
	0x40, 0x2c, 0xfb, 0x91, 0xed, 0x47, 0xc5, 0x9e, 0x5f, 0x4b, 0x84, 0x48, 0x52, 0x16, 0xd3, 0x9c,
	0xc7, 0x34, 0xcb, 0x84, 0xa6, 0x9a, 0x8b, 0x4c, 0x59, 0x86, 0x5f, 0x5f, 0xa2, 0x38, 0xc8, 0x13,
	0x49, 0xbb, 0xcc, 0x22, 0xc2, 0x7d, 0xf0, 0x9e, 0x4d, 0x46, 0xb4, 0x99, 0x54, 0x5c, 0x64, 0xcf,
	0x69, 0x9a, 0x0e, 0x5b, 0xec, 0x64, 0xc0, 0x94, 0x46, 0x0f, 0xd6, 0x0b, 0x5b, 0xf6, 0x48, 0x9d,
	0xec, 0x5c, 0x68, 0x95, 0x7f, 0xc3, 0xcf, 0x04, 0x6e, 0x2d, 0xa1, 0xa9, 0x5c, 0x64, 0x8a, 0xe1,
	0x36, 0x6c, 0x16, 0x42, 0xf3, 0x2c, 0xe9, 0xe4, 0xe2, 0x15, 0x93, 0x8e, 0xbc, 0x61, 0x6b, 0x87,
	0x93, 0x12, 0xde, 0x85, 0xab, 0xba, 0x27, 0x99, 0xea, 0x89, 0xb4, 0xeb, 0x50, 0x6b, 0x06, 0x75,
	0x65, 0x5a, 0xb6, 0xc0, 0x5d, 0x40, 0x2d, 0x34, 0x4d, 0x3b, 0x7f, 0x28, 0x56, 0x0d, 0xf6, 0x9a,
	0xe9, 0xb4, 0x67, 0xb2, 0xa1, 0x07, 0x37, 0x8c, 0xad, 0xc7, 0x4c, 0xbf, 0xb0, 0x6b, 0xba, 0x5d,
	0xc2, 0x43, 0xb8, 0xb9, 0xd0, 0x71, 0x76, 0x0f, 0x60, 0xdd, 0x65, 0x62, 0x9c, 0x6e, 0x34, 0x6f,
	0x47, 0x8b, 0x41, 0x47, 0x25, 0xab, 0xc4, 0x86, 0x0f, 0xa1, 0x5e, 0x2a, 0x3e, 0xe5, 0x4a, 0xf1,
	0x2c, 0x69, 0xd3, 0x94, 0x77, 0xa9, 0x16, 0x52, 0xfd, 0x3b, 0xc1, 0x16, 0x6c, 0x9f, 0xc1, 0x76,
	0xce, 0x1a, 0x80, 0x7d, 0xdb, 0xec, 0x14, 0xd3, 0xae, 0x47, 0xea, 0xd5, 0x9d, 0xcb, 0xad, 0xeb,
	0xfd, 0xbf, 0x69, 0xcd, 0x6f, 0x55, 0xb8, 0x68, 0x44, 0xf1, 0x03, 0x81, 0xcd, 0xf9, 0xd3, 0xe0,
	0xee, 0xb2, 0x95, 0x56, 0x1d, 0xde, 0x6f, 0x9c, 0x13, 0x6d, 0x6d, 0x86, 0xe1, 0xfb, 0xef, 0xbf,
	0x3e, 0xad, 0xd5, 0xd0, 0x9f, 0x7b, 0x65, 0x7a, 0x82, 0x88, 0xdf, 0xb8, 0x75, 0xdf, 0xe2, 0x3b,
	0x02, 0x30, 0xcb, 0x1e, 0xef, 0xad, 0x9c, 0xb0, 0x70, 0x3a, 0xff, 0xfe, 0xb9, 0xb0, 0xce, 0x8b,
	0x6f, 0xbc, 0x6c, 0x21, 0x2e, 0xbe, 0x78, 0xfc, 0x42, 0x60, 0x6b, 0x59, 0xde, 0xb8, 0x7f, 0xd6,
	0x84, 0x55, 0xc7, 0xf5, 0x0f, 0xfe, 0x93, 0xe5, 0x1c, 0xde, 0x31, 0x0e, 0x03, 0xac, 0xcd, 0x39,
	0x74, 0xb7, 0x9c, 0xe5, 0xf5, 0xe8, 0xc9, 0xd7, 0x51, 0x40, 0x4e, 0x47, 0x01, 0xf9, 0x39, 0x0a,
	0xc8, 0xc7, 0x71, 0x50, 0x39, 0x1d, 0x07, 0x95, 0x1f, 0xe3, 0xa0, 0xf2, 0xb2, 0x99, 0x70, 0xdd,
	0x1b, 0x1c, 0x45, 0xc7, 0xa2, 0x1f, 0x97, 0x06, 0x84, 0x4c, 0xa6, 0xbf, 0x1b, 0x34, 0xcf, 0xe3,
	0xd7, 0xa5, 0xb8, 0x1e, 0xe6, 0x4c, 0x1d, 0x5d, 0x32, 0x1f, 0xfb, 0x83, 0xdf, 0x01, 0x00, 0x00,
	0xff, 0xff, 0x79, 0xc3, 0x7d, 0xbc, 0x62, 0x04, 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 {
	// VersionTally enables a client to query for the tally of voting power that
	// has signalled for a particular version.
	VersionTally(ctx context.Context, in *QueryVersionTallyRequest, opts ...grpc.CallOption) (*QueryVersionTallyResponse, error)
	// GetUpgrade enables a client to query for upgrade information if an upgrade
	// is pending. The response will be empty if no upgrade is pending.
	GetUpgrade(ctx context.Context, in *QueryGetUpgradeRequest, opts ...grpc.CallOption) (*QueryGetUpgradeResponse, error)
	// GetMissingValidators enables a client to query for the validators that
	// have not yet signalled for a particular version
	GetMissingValidators(ctx context.Context, in *QueryGetMissingValidatorsRequest, opts ...grpc.CallOption) (*QueryGetMissingValidatorsResponse, error)
}

type queryClient struct {
	cc grpc1.ClientConn
}

func NewQueryClient(cc grpc1.ClientConn) QueryClient {
	return &queryClient{cc}
}

func (c *queryClient) VersionTally(ctx context.Context, in *QueryVersionTallyRequest, opts ...grpc.CallOption) (*QueryVersionTallyResponse, error) {
	out := new(QueryVersionTallyResponse)
	err := c.cc.Invoke(ctx, "/celestia.signal.v1.Query/VersionTally", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *queryClient) GetUpgrade(ctx context.Context, in *QueryGetUpgradeRequest, opts ...grpc.CallOption) (*QueryGetUpgradeResponse, error) {
	out := new(QueryGetUpgradeResponse)
	err := c.cc.Invoke(ctx, "/celestia.signal.v1.Query/GetUpgrade", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *queryClient) GetMissingValidators(ctx context.Context, in *QueryGetMissingValidatorsRequest, opts ...grpc.CallOption) (*QueryGetMissingValidatorsResponse, error) {
	out := new(QueryGetMissingValidatorsResponse)
	err := c.cc.Invoke(ctx, "/celestia.signal.v1.Query/GetMissingValidators", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// QueryServer is the server API for Query service.
type QueryServer interface {
	// VersionTally enables a client to query for the tally of voting power that
	// has signalled for a particular version.
	VersionTally(context.Context, *QueryVersionTallyRequest) (*QueryVersionTallyResponse, error)
	// GetUpgrade enables a client to query for upgrade information if an upgrade
	// is pending. The response will be empty if no upgrade is pending.
	GetUpgrade(context.Context, *QueryGetUpgradeRequest) (*QueryGetUpgradeResponse, error)
	// GetMissingValidators enables a client to query for the validators that
	// have not yet signalled for a particular version
	GetMissingValidators(context.Context, *QueryGetMissingValidatorsRequest) (*QueryGetMissingValidatorsResponse, error)
}

// UnimplementedQueryServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServer struct {
}

func (*UnimplementedQueryServer) VersionTally(ctx context.Context, req *QueryVersionTallyRequest) (*QueryVersionTallyResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method VersionTally not implemented")
}
func (*UnimplementedQueryServer) GetUpgrade(ctx context.Context, req *QueryGetUpgradeRequest) (*QueryGetUpgradeResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetUpgrade not implemented")
}
func (*UnimplementedQueryServer) GetMissingValidators(ctx context.Context, req *QueryGetMissingValidatorsRequest) (*QueryGetMissingValidatorsResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method GetMissingValidators not implemented")
}

func RegisterQueryServer(s grpc1.Server, srv QueryServer) {
	s.RegisterService(&_Query_serviceDesc, srv)
}

func _Query_VersionTally_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryVersionTallyRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).VersionTally(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/celestia.signal.v1.Query/VersionTally",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).VersionTally(ctx, req.(*QueryVersionTallyRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Query_GetUpgrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryGetUpgradeRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).GetUpgrade(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/celestia.signal.v1.Query/GetUpgrade",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).GetUpgrade(ctx, req.(*QueryGetUpgradeRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Query_GetMissingValidators_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(QueryGetMissingValidatorsRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(QueryServer).GetMissingValidators(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/celestia.signal.v1.Query/GetMissingValidators",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(QueryServer).GetMissingValidators(ctx, req.(*QueryGetMissingValidatorsRequest))
	}
	return interceptor(ctx, in, info, handler)
}

var Query_serviceDesc = _Query_serviceDesc
var _Query_serviceDesc = grpc.ServiceDesc{
	ServiceName: "celestia.signal.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "VersionTally",
			Handler:    _Query_VersionTally_Handler,
		},
		{
			MethodName: "GetUpgrade",
			Handler:    _Query_GetUpgrade_Handler,
		},
		{
			MethodName: "GetMissingValidators",
			Handler:    _Query_GetMissingValidators_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "celestia/signal/v1/query.proto",
}

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

func (m *QueryVersionTallyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Version != 0 {
		i = encodeVarintQuery(dAtA, i, uint64(m.Version))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

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

func (m *QueryVersionTallyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.TotalVotingPower != 0 {
		i = encodeVarintQuery(dAtA, i, uint64(m.TotalVotingPower))
		i--
		dAtA[i] = 0x18
	}
	if m.ThresholdPower != 0 {
		i = encodeVarintQuery(dAtA, i, uint64(m.ThresholdPower))
		i--
		dAtA[i] = 0x10
	}
	if m.VotingPower != 0 {
		i = encodeVarintQuery(dAtA, i, uint64(m.VotingPower))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

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

func (m *QueryGetUpgradeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	return len(dAtA) - i, nil
}

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

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

func (m *QueryGetMissingValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Version != 0 {
		i = encodeVarintQuery(dAtA, i, uint64(m.Version))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

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

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

func (m *QueryVersionTallyResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.VotingPower != 0 {
		n += 1 + sovQuery(uint64(m.VotingPower))
	}
	if m.ThresholdPower != 0 {
		n += 1 + sovQuery(uint64(m.ThresholdPower))
	}
	if m.TotalVotingPower != 0 {
		n += 1 + sovQuery(uint64(m.TotalVotingPower))
	}
	return n
}

func (m *QueryGetUpgradeRequest) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	return n
}

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

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

func (m *QueryGetMissingValidatorsResponse) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if len(m.MissingValidators) > 0 {
		for _, s := range m.MissingValidators {
			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 *QueryVersionTallyRequest) 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: QueryVersionTallyRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryVersionTallyRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
			}
			m.Version = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowQuery
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Version |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		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 *QueryVersionTallyResponse) 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: QueryVersionTallyResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryVersionTallyResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field VotingPower", wireType)
			}
			m.VotingPower = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowQuery
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.VotingPower |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 2:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field ThresholdPower", wireType)
			}
			m.ThresholdPower = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowQuery
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.ThresholdPower |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 3:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field TotalVotingPower", wireType)
			}
			m.TotalVotingPower = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowQuery
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.TotalVotingPower |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		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 *QueryGetUpgradeRequest) 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: QueryGetUpgradeRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryGetUpgradeRequest: 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 *QueryGetUpgradeResponse) 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: QueryGetUpgradeResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryGetUpgradeResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Upgrade", 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.Upgrade == nil {
				m.Upgrade = &Upgrade{}
			}
			if err := m.Upgrade.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 *QueryGetMissingValidatorsRequest) 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: QueryGetMissingValidatorsRequest: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryGetMissingValidatorsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
			}
			m.Version = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowQuery
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Version |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		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 *QueryGetMissingValidatorsResponse) 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: QueryGetMissingValidatorsResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: QueryGetMissingValidatorsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MissingValidators", 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.MissingValidators = append(m.MissingValidators, 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")
)
