// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: provenance/exchange/v1/params.proto

package exchange

import (
	fmt "fmt"
	types "github.com/cosmos/cosmos-sdk/types"
	_ "github.com/cosmos/cosmos-sdk/types/tx/amino"
	_ "github.com/cosmos/gogoproto/gogoproto"
	proto "github.com/cosmos/gogoproto/proto"
	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

// Params is a representation of the exchange module parameters.
type Params struct {
	// default_split is the default proportion of fees the exchange receives in basis points.
	// It is used if there isn't an applicable denom-specific split defined.
	// E.g. 100 = 1%. Min = 0, Max = 10000.
	DefaultSplit uint32 `protobuf:"varint,1,opt,name=default_split,json=defaultSplit,proto3" json:"default_split,omitempty"`
	// denom_splits are the denom-specific amounts the exchange receives.
	DenomSplits []DenomSplit `protobuf:"bytes,2,rep,name=denom_splits,json=denomSplits,proto3" json:"denom_splits"`
	// fee_create_payment_flat is the flat fee options for creating a payment.
	// If the source amount is not zero then one of these fee entries is required to create the payment.
	// This field is currently limited to zero or one entries.
	FeeCreatePaymentFlat []types.Coin `protobuf:"bytes,3,rep,name=fee_create_payment_flat,json=feeCreatePaymentFlat,proto3" json:"fee_create_payment_flat"`
	// fee_accept_payment_flat is the flat fee options for accepting a payment.
	// If the target amount is not zero then one of these fee entries is required to accept the payment.
	// This field is currently limited to zero or one entries.
	FeeAcceptPaymentFlat []types.Coin `protobuf:"bytes,4,rep,name=fee_accept_payment_flat,json=feeAcceptPaymentFlat,proto3" json:"fee_accept_payment_flat"`
}

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

var xxx_messageInfo_Params proto.InternalMessageInfo

func (m *Params) GetDefaultSplit() uint32 {
	if m != nil {
		return m.DefaultSplit
	}
	return 0
}

func (m *Params) GetDenomSplits() []DenomSplit {
	if m != nil {
		return m.DenomSplits
	}
	return nil
}

func (m *Params) GetFeeCreatePaymentFlat() []types.Coin {
	if m != nil {
		return m.FeeCreatePaymentFlat
	}
	return nil
}

func (m *Params) GetFeeAcceptPaymentFlat() []types.Coin {
	if m != nil {
		return m.FeeAcceptPaymentFlat
	}
	return nil
}

// DenomSplit associates a coin denomination with an amount the exchange receives for that denom.
type DenomSplit struct {
	// denom is the coin denomination this split applies to.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// split is the proportion of fees the exchange receives for this denom in basis points.
	// E.g. 100 = 1%. Min = 0, Max = 10000.
	Split uint32 `protobuf:"varint,2,opt,name=split,proto3" json:"split,omitempty"`
}

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

var xxx_messageInfo_DenomSplit proto.InternalMessageInfo

func (m *DenomSplit) GetDenom() string {
	if m != nil {
		return m.Denom
	}
	return ""
}

func (m *DenomSplit) GetSplit() uint32 {
	if m != nil {
		return m.Split
	}
	return 0
}

func init() {
	proto.RegisterType((*Params)(nil), "provenance.exchange.v1.Params")
	proto.RegisterType((*DenomSplit)(nil), "provenance.exchange.v1.DenomSplit")
}

func init() {
	proto.RegisterFile("provenance/exchange/v1/params.proto", fileDescriptor_5d689cfc7a7422f1)
}

var fileDescriptor_5d689cfc7a7422f1 = []byte{
	// 372 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x3f, 0x4f, 0xfa, 0x40,
	0x1c, 0xc6, 0x5b, 0xf8, 0xfd, 0x48, 0x38, 0x60, 0xb0, 0x21, 0x0a, 0x0c, 0x95, 0xc0, 0x42, 0x4c,
	0xbc, 0x0b, 0xba, 0xb8, 0x0a, 0xc6, 0xb9, 0xc1, 0x4d, 0x87, 0xe6, 0x7a, 0x7c, 0x5b, 0x9a, 0xb4,
	0x77, 0x4d, 0x7b, 0x10, 0x7c, 0x17, 0xbe, 0x0c, 0x47, 0x57, 0xdf, 0x01, 0x23, 0xa3, 0x93, 0x31,
	0x30, 0xf8, 0x36, 0x4c, 0xef, 0xf8, 0x67, 0xa2, 0x83, 0x4b, 0xf3, 0xfd, 0x3e, 0x7d, 0xfa, 0x69,
	0x9f, 0xa7, 0x87, 0xba, 0x49, 0x2a, 0x66, 0xc0, 0x29, 0x67, 0x40, 0x60, 0xce, 0x26, 0x94, 0x07,
	0x40, 0x66, 0x7d, 0x92, 0xd0, 0x94, 0xc6, 0x19, 0x4e, 0x52, 0x21, 0x85, 0x75, 0xbc, 0x37, 0xe1,
	0xad, 0x09, 0xcf, 0xfa, 0xad, 0x23, 0x1a, 0x87, 0x5c, 0x10, 0x75, 0xd5, 0xd6, 0x56, 0x3d, 0x10,
	0x81, 0x50, 0x23, 0xc9, 0xa7, 0x8d, 0x6a, 0x33, 0x91, 0xc5, 0x22, 0x23, 0x1e, 0xcd, 0x72, 0xba,
	0x07, 0x92, 0xf6, 0x09, 0x13, 0x21, 0xd7, 0xf7, 0x3b, 0xaf, 0x05, 0x54, 0x72, 0xd4, 0x1b, 0xad,
	0x2e, 0xaa, 0x8d, 0xc1, 0xa7, 0xd3, 0x48, 0xba, 0x59, 0x12, 0x85, 0xb2, 0x61, 0xb6, 0xcd, 0x5e,
	0x6d, 0x54, 0xdd, 0x88, 0x77, 0xb9, 0x66, 0x39, 0xa8, 0x3a, 0x06, 0x2e, 0x62, 0x6d, 0xc9, 0x1a,
	0x85, 0x76, 0xb1, 0x57, 0xb9, 0xe8, 0xe0, 0x9f, 0xbf, 0x13, 0xdf, 0xe4, 0x5e, 0xf5, 0xe4, 0xa0,
	0xbc, 0x78, 0x3f, 0x35, 0x9e, 0x3f, 0x5f, 0xce, 0xcc, 0x51, 0x65, 0xbc, 0x93, 0x33, 0xeb, 0x01,
	0x9d, 0xf8, 0x00, 0x2e, 0x4b, 0x81, 0x4a, 0x70, 0x13, 0xfa, 0x18, 0x03, 0x97, 0xae, 0x1f, 0x51,
	0xd9, 0x28, 0x2a, 0x78, 0x13, 0xeb, 0x0c, 0x38, 0xcf, 0x80, 0x37, 0x19, 0xf0, 0x50, 0x84, 0xfc,
	0x90, 0x59, 0xf7, 0x01, 0x86, 0x8a, 0xe1, 0x68, 0xc4, 0x6d, 0x44, 0xe5, 0x16, 0x4e, 0x19, 0x83,
	0x44, 0x7e, 0x87, 0xff, 0xfb, 0x23, 0xfc, 0x5a, 0x31, 0x0e, 0xe0, 0x9d, 0x2b, 0x84, 0xf6, 0xf9,
	0xac, 0x3a, 0xfa, 0xaf, 0x62, 0xa9, 0xda, 0xca, 0x23, 0xbd, 0xe4, 0xaa, 0x2e, 0xb3, 0xa0, 0xca,
	0xd4, 0xcb, 0x00, 0x16, 0x2b, 0xdb, 0x5c, 0xae, 0x6c, 0xf3, 0x63, 0x65, 0x9b, 0x4f, 0x6b, 0xdb,
	0x58, 0xae, 0x6d, 0xe3, 0x6d, 0x6d, 0x1b, 0xa8, 0x19, 0x8a, 0x5f, 0xba, 0x74, 0xcc, 0x7b, 0x1c,
	0x84, 0x72, 0x32, 0xf5, 0x30, 0x13, 0x31, 0xd9, 0x9b, 0xce, 0x43, 0x71, 0xb0, 0x91, 0xf9, 0xee,
	0x34, 0x79, 0x25, 0xf5, 0x8f, 0x2f, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x9c, 0x91, 0x75,
	0x6b, 0x02, 0x00, 0x00,
}

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

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.FeeAcceptPaymentFlat) > 0 {
		for iNdEx := len(m.FeeAcceptPaymentFlat) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.FeeAcceptPaymentFlat[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintParams(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x22
		}
	}
	if len(m.FeeCreatePaymentFlat) > 0 {
		for iNdEx := len(m.FeeCreatePaymentFlat) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.FeeCreatePaymentFlat[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintParams(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x1a
		}
	}
	if len(m.DenomSplits) > 0 {
		for iNdEx := len(m.DenomSplits) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.DenomSplits[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintParams(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x12
		}
	}
	if m.DefaultSplit != 0 {
		i = encodeVarintParams(dAtA, i, uint64(m.DefaultSplit))
		i--
		dAtA[i] = 0x8
	}
	return len(dAtA) - i, nil
}

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

func (m *DenomSplit) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if m.Split != 0 {
		i = encodeVarintParams(dAtA, i, uint64(m.Split))
		i--
		dAtA[i] = 0x10
	}
	if len(m.Denom) > 0 {
		i -= len(m.Denom)
		copy(dAtA[i:], m.Denom)
		i = encodeVarintParams(dAtA, i, uint64(len(m.Denom)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

func encodeVarintParams(dAtA []byte, offset int, v uint64) int {
	offset -= sovParams(v)
	base := offset
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
	return base
}
func (m *Params) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	if m.DefaultSplit != 0 {
		n += 1 + sovParams(uint64(m.DefaultSplit))
	}
	if len(m.DenomSplits) > 0 {
		for _, e := range m.DenomSplits {
			l = e.Size()
			n += 1 + l + sovParams(uint64(l))
		}
	}
	if len(m.FeeCreatePaymentFlat) > 0 {
		for _, e := range m.FeeCreatePaymentFlat {
			l = e.Size()
			n += 1 + l + sovParams(uint64(l))
		}
	}
	if len(m.FeeAcceptPaymentFlat) > 0 {
		for _, e := range m.FeeAcceptPaymentFlat {
			l = e.Size()
			n += 1 + l + sovParams(uint64(l))
		}
	}
	return n
}

func (m *DenomSplit) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Denom)
	if l > 0 {
		n += 1 + l + sovParams(uint64(l))
	}
	if m.Split != 0 {
		n += 1 + sovParams(uint64(m.Split))
	}
	return n
}

func sovParams(x uint64) (n int) {
	return (math_bits.Len64(x|1) + 6) / 7
}
func sozParams(x uint64) (n int) {
	return sovParams(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *Params) 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 ErrIntOverflowParams
			}
			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: Params: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: Params: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field DefaultSplit", wireType)
			}
			m.DefaultSplit = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.DefaultSplit |= uint32(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field DenomSplits", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthParams
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthParams
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.DenomSplits = append(m.DenomSplits, DenomSplit{})
			if err := m.DenomSplits[len(m.DenomSplits)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field FeeCreatePaymentFlat", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthParams
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthParams
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.FeeCreatePaymentFlat = append(m.FeeCreatePaymentFlat, types.Coin{})
			if err := m.FeeCreatePaymentFlat[len(m.FeeCreatePaymentFlat)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 4:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field FeeAcceptPaymentFlat", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthParams
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthParams
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.FeeAcceptPaymentFlat = append(m.FeeAcceptPaymentFlat, types.Coin{})
			if err := m.FeeAcceptPaymentFlat[len(m.FeeAcceptPaymentFlat)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipParams(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthParams
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *DenomSplit) 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 ErrIntOverflowParams
			}
			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: DenomSplit: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: DenomSplit: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Denom", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				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 ErrInvalidLengthParams
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthParams
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Denom = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 2:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field Split", wireType)
			}
			m.Split = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.Split |= uint32(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		default:
			iNdEx = preIndex
			skippy, err := skipParams(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if (skippy < 0) || (iNdEx+skippy) < 0 {
				return ErrInvalidLengthParams
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func skipParams(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, ErrIntOverflowParams
			}
			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, ErrIntOverflowParams
				}
				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, ErrIntOverflowParams
				}
				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, ErrInvalidLengthParams
			}
			iNdEx += length
		case 3:
			depth++
		case 4:
			if depth == 0 {
				return 0, ErrUnexpectedEndOfGroupParams
			}
			depth--
		case 5:
			iNdEx += 4
		default:
			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
		}
		if iNdEx < 0 {
			return 0, ErrInvalidLengthParams
		}
		if depth == 0 {
			return iNdEx, nil
		}
	}
	return 0, io.ErrUnexpectedEOF
}

var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
