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

package types

import (
	fmt "fmt"
	_ "github.com/cosmos/cosmos-proto"
	_ "github.com/cosmos/cosmos-sdk/types"
	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
	_ "github.com/cosmos/gogoproto/gogoproto"
	proto "github.com/cosmos/gogoproto/proto"
	_ "google.golang.org/protobuf/types/known/durationpb"
	_ "google.golang.org/protobuf/types/known/timestamppb"
	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

type Params struct {
	MinStakingForListing            github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=min_staking_for_listing,json=minStakingForListing,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_staking_for_listing" yaml:"min_staking_for_listing"`
	BidTokens                       []string                               `protobuf:"bytes,2,rep,name=bid_tokens,json=bidTokens,proto3" json:"bid_tokens,omitempty"`
	NftListingCancelRequiredSeconds uint64                                 `protobuf:"varint,3,opt,name=nft_listing_cancel_required_seconds,json=nftListingCancelRequiredSeconds,proto3" json:"nft_listing_cancel_required_seconds,omitempty"`
	BidCancelRequiredSeconds        uint64                                 `protobuf:"varint,4,opt,name=bid_cancel_required_seconds,json=bidCancelRequiredSeconds,proto3" json:"bid_cancel_required_seconds,omitempty"`
	NftListingFullPaymentPeriod     uint64                                 `protobuf:"varint,5,opt,name=nft_listing_full_payment_period,json=nftListingFullPaymentPeriod,proto3" json:"nft_listing_full_payment_period,omitempty"`
	NftListingNftDeliveryPeriod     uint64                                 `protobuf:"varint,6,opt,name=nft_listing_nft_delivery_period,json=nftListingNftDeliveryPeriod,proto3" json:"nft_listing_nft_delivery_period,omitempty"`
	NftListingCommissionRate        github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,7,opt,name=nft_listing_commission_rate,json=nftListingCommissionRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"nft_listing_commission_rate" yaml:"nft_listing_commission_rate"`
}

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_09867a85e3b187de, []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) GetBidTokens() []string {
	if m != nil {
		return m.BidTokens
	}
	return nil
}

func (m *Params) GetNftListingCancelRequiredSeconds() uint64 {
	if m != nil {
		return m.NftListingCancelRequiredSeconds
	}
	return 0
}

func (m *Params) GetBidCancelRequiredSeconds() uint64 {
	if m != nil {
		return m.BidCancelRequiredSeconds
	}
	return 0
}

func (m *Params) GetNftListingFullPaymentPeriod() uint64 {
	if m != nil {
		return m.NftListingFullPaymentPeriod
	}
	return 0
}

func (m *Params) GetNftListingNftDeliveryPeriod() uint64 {
	if m != nil {
		return m.NftListingNftDeliveryPeriod
	}
	return 0
}

func init() {
	proto.RegisterType((*Params)(nil), "ununifi.nftbackedloan.Params")
}

func init() {
	proto.RegisterFile("ununifi/nftbackedloan/params.proto", fileDescriptor_09867a85e3b187de)
}

var fileDescriptor_09867a85e3b187de = []byte{
	// 496 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0xc1, 0x6a, 0xdb, 0x3e,
	0x1c, 0xc7, 0xe3, 0x7f, 0xf3, 0xcf, 0x88, 0x8f, 0xa1, 0x63, 0x5e, 0xc3, 0xec, 0xe0, 0xc1, 0xc8,
	0x65, 0x16, 0x65, 0xb7, 0xc1, 0x2e, 0x5d, 0x08, 0x1b, 0x94, 0x11, 0xdc, 0xf6, 0xb2, 0x8b, 0x90,
	0x6d, 0xd9, 0xfd, 0x11, 0xeb, 0x27, 0xcf, 0x92, 0xcb, 0xf2, 0x04, 0xbb, 0x0e, 0xf6, 0x52, 0x3d,
	0xf6, 0x38, 0x76, 0x08, 0x25, 0x79, 0x83, 0x3e, 0xc1, 0x88, 0xe4, 0x6c, 0x69, 0x58, 0x07, 0x3b,
	0x59, 0xd2, 0xf7, 0xe3, 0x8f, 0xbe, 0x48, 0xb6, 0x1b, 0x36, 0xd8, 0x20, 0xe4, 0x40, 0x30, 0xd7,
	0x09, 0x4b, 0xe7, 0x3c, 0x2b, 0x25, 0x43, 0x52, 0xb1, 0x9a, 0x09, 0x15, 0x55, 0xb5, 0xd4, 0x72,
	0xf0, 0xb8, 0x65, 0xa2, 0x7b, 0xcc, 0xd1, 0x61, 0x21, 0x0b, 0x69, 0x08, 0xb2, 0x19, 0x59, 0xf8,
	0x28, 0x28, 0xa4, 0x2c, 0x4a, 0x4e, 0xcc, 0x2c, 0x69, 0x72, 0xa2, 0x41, 0x70, 0xa5, 0x99, 0xa8,
	0x5a, 0xc0, 0xdf, 0x07, 0xb2, 0xa6, 0x66, 0x1a, 0x24, 0x6e, 0xf3, 0x54, 0x2a, 0x21, 0x15, 0x49,
	0x98, 0xe2, 0xe4, 0xea, 0x38, 0xe1, 0x9a, 0x1d, 0x93, 0x54, 0x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0x38, 0x6a, 0x5a, 0xf1, 0x1a, 0x64, 0xe6, 0xfd, 0x6f, 0x14, 0xc3, 0xdf, 0x45, 0xa6, 0x4d, 0x59,
	0xce, 0x2c, 0x33, 0x33, 0xc8, 0xbe, 0x65, 0x33, 0xce, 0x78, 0x09, 0x57, 0xbc, 0x5e, 0x6c, 0x2d,
	0xbd, 0x7d, 0xcb, 0x87, 0x5c, 0x4f, 0x5a, 0xa6, 0xb5, 0x7c, 0x73, 0xdc, 0xe1, 0xbd, 0x93, 0x91,
	0x42, 0x80, 0x52, 0x20, 0x91, 0xd6, 0x4c, 0x73, 0xef, 0x91, 0xb9, 0xc5, 0xf3, 0x7f, 0xb8, 0xc5,
	0x09, 0x4f, 0xef, 0x96, 0x41, 0x68, 0x6f, 0xf1, 0x2f, 0xea, 0x30, 0xf6, 0x76, 0xce, 0xf9, 0x57,
	0x16, 0x33, 0xcd, 0x4f, 0xde, 0x5d, 0xaf, 0x7c, 0xe7, 0x66, 0xe5, 0x3b, 0xb7, 0x2b, 0xdf, 0xf9,
	0xba, 0xf6, 0x3b, 0x37, 0x6b, 0xbf, 0xf3, 0x7d, 0xed, 0x77, 0x3e, 0x46, 0x3b, 0x0d, 0x2e, 0xf0,
	0x02, 0x61, 0x0a, 0x24, 0xbd, 0x64, 0x80, 0xe4, 0xf3, 0xde, 0xcf, 0x65, 0xda, 0x24, 0x3d, 0xf3,
	0xcd, 0xbe, 0xfa, 0x19, 0x00, 0x00, 0xff, 0xff, 0xd3, 0xba, 0x4a, 0x8b, 0x82, 0x03, 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
	{
		size := m.NftListingCommissionRate.Size()
		i -= size
		if _, err := m.NftListingCommissionRate.MarshalTo(dAtA[i:]); err != nil {
			return 0, err
		}
		i = encodeVarintParams(dAtA, i, uint64(size))
	}
	i--
	dAtA[i] = 0x3a
	if m.NftListingNftDeliveryPeriod != 0 {
		i = encodeVarintParams(dAtA, i, uint64(m.NftListingNftDeliveryPeriod))
		i--
		dAtA[i] = 0x30
	}
	if m.NftListingFullPaymentPeriod != 0 {
		i = encodeVarintParams(dAtA, i, uint64(m.NftListingFullPaymentPeriod))
		i--
		dAtA[i] = 0x28
	}
	if m.BidCancelRequiredSeconds != 0 {
		i = encodeVarintParams(dAtA, i, uint64(m.BidCancelRequiredSeconds))
		i--
		dAtA[i] = 0x20
	}
	if m.NftListingCancelRequiredSeconds != 0 {
		i = encodeVarintParams(dAtA, i, uint64(m.NftListingCancelRequiredSeconds))
		i--
		dAtA[i] = 0x18
	}
	if len(m.BidTokens) > 0 {
		for iNdEx := len(m.BidTokens) - 1; iNdEx >= 0; iNdEx-- {
			i -= len(m.BidTokens[iNdEx])
			copy(dAtA[i:], m.BidTokens[iNdEx])
			i = encodeVarintParams(dAtA, i, uint64(len(m.BidTokens[iNdEx])))
			i--
			dAtA[i] = 0x12
		}
	}
	{
		size := m.MinStakingForListing.Size()
		i -= size
		if _, err := m.MinStakingForListing.MarshalTo(dAtA[i:]); err != nil {
			return 0, err
		}
		i = encodeVarintParams(dAtA, i, uint64(size))
	}
	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
	l = m.MinStakingForListing.Size()
	n += 1 + l + sovParams(uint64(l))
	if len(m.BidTokens) > 0 {
		for _, s := range m.BidTokens {
			l = len(s)
			n += 1 + l + sovParams(uint64(l))
		}
	}
	if m.NftListingCancelRequiredSeconds != 0 {
		n += 1 + sovParams(uint64(m.NftListingCancelRequiredSeconds))
	}
	if m.BidCancelRequiredSeconds != 0 {
		n += 1 + sovParams(uint64(m.BidCancelRequiredSeconds))
	}
	if m.NftListingFullPaymentPeriod != 0 {
		n += 1 + sovParams(uint64(m.NftListingFullPaymentPeriod))
	}
	if m.NftListingNftDeliveryPeriod != 0 {
		n += 1 + sovParams(uint64(m.NftListingNftDeliveryPeriod))
	}
	l = m.NftListingCommissionRate.Size()
	n += 1 + l + sovParams(uint64(l))
	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 != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field MinStakingForListing", 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
			}
			if err := m.MinStakingForListing.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field BidTokens", 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.BidTokens = append(m.BidTokens, string(dAtA[iNdEx:postIndex]))
			iNdEx = postIndex
		case 3:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field NftListingCancelRequiredSeconds", wireType)
			}
			m.NftListingCancelRequiredSeconds = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.NftListingCancelRequiredSeconds |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 4:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field BidCancelRequiredSeconds", wireType)
			}
			m.BidCancelRequiredSeconds = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.BidCancelRequiredSeconds |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 5:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field NftListingFullPaymentPeriod", wireType)
			}
			m.NftListingFullPaymentPeriod = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.NftListingFullPaymentPeriod |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 6:
			if wireType != 0 {
				return fmt.Errorf("proto: wrong wireType = %d for field NftListingNftDeliveryPeriod", wireType)
			}
			m.NftListingNftDeliveryPeriod = 0
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowParams
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				m.NftListingNftDeliveryPeriod |= uint64(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
		case 7:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field NftListingCommissionRate", 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
			}
			if err := m.NftListingCommissionRate.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 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")
)
