// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: cudos/admin/tx.proto

package types

import (
	context "context"
	fmt "fmt"
	github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
	types "github.com/cosmos/cosmos-sdk/types"
	_ "github.com/gogo/protobuf/gogoproto"
	grpc1 "github.com/gogo/protobuf/grpc"
	proto "github.com/gogo/protobuf/proto"
	_ "github.com/regen-network/cosmos-proto"
	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

type MsgAdminSpendCommunityPool struct {
	Initiator string                                   `protobuf:"bytes,1,opt,name=initiator,proto3" json:"initiator,omitempty"`
	ToAddress string                                   `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"`
	Coins     github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=coins,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coins"`
}

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

var xxx_messageInfo_MsgAdminSpendCommunityPool proto.InternalMessageInfo

func (m *MsgAdminSpendCommunityPool) GetInitiator() string {
	if m != nil {
		return m.Initiator
	}
	return ""
}

func (m *MsgAdminSpendCommunityPool) GetToAddress() string {
	if m != nil {
		return m.ToAddress
	}
	return ""
}

func (m *MsgAdminSpendCommunityPool) GetCoins() github_com_cosmos_cosmos_sdk_types.Coins {
	if m != nil {
		return m.Coins
	}
	return nil
}

type MsgAdminSpendResponse struct {
}

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

var xxx_messageInfo_MsgAdminSpendResponse proto.InternalMessageInfo

func init() {
	proto.RegisterType((*MsgAdminSpendCommunityPool)(nil), "cudosnode.cudosnode.pocbasecosmos.MsgAdminSpendCommunityPool")
	proto.RegisterType((*MsgAdminSpendResponse)(nil), "cudosnode.cudosnode.pocbasecosmos.MsgAdminSpendResponse")
}

func init() { proto.RegisterFile("cudos/admin/tx.proto", fileDescriptor_fccaad5bfce9e863) }

var fileDescriptor_fccaad5bfce9e863 = []byte{
	// 356 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0xb1, 0x4e, 0xc3, 0x30,
	0x10, 0x8d, 0xa9, 0x40, 0xaa, 0xd9, 0xa2, 0xa2, 0xb6, 0x11, 0xa4, 0xa5, 0x53, 0x97, 0xda, 0x6d,
	0x59, 0x58, 0x18, 0xda, 0x6e, 0x48, 0x95, 0x50, 0x91, 0x18, 0x58, 0xaa, 0x24, 0xb6, 0x82, 0x05,
	0xf1, 0x45, 0xb1, 0x83, 0xda, 0xbf, 0x40, 0x8c, 0x7c, 0x02, 0xdf, 0xc0, 0x07, 0x74, 0xec, 0xc8,
	0x04, 0xa8, 0xfd, 0x11, 0x94, 0x38, 0x55, 0x61, 0xa8, 0x10, 0x93, 0xef, 0xee, 0xf9, 0xee, 0xbd,
	0x7b, 0x36, 0xae, 0x04, 0x29, 0x03, 0x45, 0x3d, 0x16, 0x09, 0x49, 0xf5, 0x8c, 0xc4, 0x09, 0x68,
	0xb0, 0x4f, 0xf3, 0xaa, 0x04, 0xc6, 0xc9, 0x36, 0x8a, 0x21, 0xf0, 0x3d, 0xc5, 0x03, 0x50, 0x11,
	0x28, 0xa7, 0x12, 0x42, 0x08, 0xf9, 0x6d, 0x9a, 0x45, 0xa6, 0xd1, 0xa9, 0x1b, 0x74, 0x6a, 0x00,
	0x93, 0x14, 0x90, 0x6b, 0x32, 0x9a, 0xcd, 0xa0, 0x8f, 0x3d, 0x9f, 0x6b, 0xaf, 0x47, 0x03, 0x10,
	0xd2, 0xe0, 0xad, 0x37, 0x84, 0x9d, 0xb1, 0x0a, 0x07, 0x99, 0x92, 0xeb, 0x98, 0x4b, 0x36, 0x82,
	0x28, 0x4a, 0xa5, 0xd0, 0xf3, 0x2b, 0x80, 0x07, 0xfb, 0x18, 0x97, 0x85, 0x14, 0x5a, 0x78, 0x1a,
	0x92, 0x1a, 0x6a, 0xa2, 0x76, 0x79, 0xb2, 0x2d, 0xd8, 0x27, 0x18, 0x6b, 0x98, 0x7a, 0x8c, 0x25,
	0x5c, 0xa9, 0xda, 0x9e, 0x81, 0x35, 0x0c, 0x4c, 0xc1, 0xf6, 0xf0, 0x7e, 0xc6, 0xa4, 0x6a, 0xa5,
	0x66, 0xa9, 0x7d, 0xd8, 0xaf, 0x93, 0x42, 0x59, 0xa6, 0x85, 0x14, 0x5a, 0xc8, 0x08, 0x84, 0x1c,
	0x76, 0x17, 0x1f, 0x0d, 0xeb, 0xf5, 0xb3, 0xd1, 0x0e, 0x85, 0xbe, 0x4b, 0x7d, 0x12, 0x40, 0x54,
	0xac, 0x51, 0x1c, 0x1d, 0xc5, 0xee, 0xa9, 0x9e, 0xc7, 0x5c, 0xe5, 0x0d, 0x6a, 0x62, 0x26, 0xb7,
	0xaa, 0xf8, 0xe8, 0x97, 0xfa, 0x09, 0x57, 0x31, 0x48, 0xc5, 0xfb, 0x2f, 0x08, 0x97, 0xc6, 0x2a,
	0xb4, 0x9f, 0x11, 0xae, 0xee, 0x5a, 0xee, 0x82, 0xfc, 0x69, 0x38, 0xd9, 0xed, 0x8d, 0x73, 0xfe,
	0xdf, 0xf6, 0x8d, 0xb8, 0xe1, 0xe5, 0x62, 0xe5, 0xa2, 0xe5, 0xca, 0x45, 0x5f, 0x2b, 0x17, 0x3d,
	0xad, 0x5d, 0x6b, 0xb9, 0x76, 0xad, 0xf7, 0xb5, 0x6b, 0xdd, 0x76, 0x7f, 0x18, 0x30, 0x4a, 0x19,
	0xdc, 0x70, 0xa9, 0xd3, 0x84, 0x2b, 0x9a, 0x13, 0x74, 0x32, 0x06, 0x3a, 0xdb, 0xfc, 0x9b, 0xcc,
	0x0e, 0xff, 0x20, 0x7f, 0xc7, 0xb3, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x4b, 0x0d, 0xa5,
	0x53, 0x02, 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

// MsgClient is the client API for Msg service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgClient interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	AdminSpendCommunityPool(ctx context.Context, in *MsgAdminSpendCommunityPool, opts ...grpc.CallOption) (*MsgAdminSpendResponse, error)
}

type msgClient struct {
	cc grpc1.ClientConn
}

func NewMsgClient(cc grpc1.ClientConn) MsgClient {
	return &msgClient{cc}
}

func (c *msgClient) AdminSpendCommunityPool(ctx context.Context, in *MsgAdminSpendCommunityPool, opts ...grpc.CallOption) (*MsgAdminSpendResponse, error) {
	out := new(MsgAdminSpendResponse)
	err := c.cc.Invoke(ctx, "/cudosnode.cudosnode.pocbasecosmos.Msg/AdminSpendCommunityPool", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// MsgServer is the server API for Msg service.
type MsgServer interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	AdminSpendCommunityPool(context.Context, *MsgAdminSpendCommunityPool) (*MsgAdminSpendResponse, error)
}

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

func (*UnimplementedMsgServer) AdminSpendCommunityPool(ctx context.Context, req *MsgAdminSpendCommunityPool) (*MsgAdminSpendResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method AdminSpendCommunityPool not implemented")
}

func RegisterMsgServer(s grpc1.Server, srv MsgServer) {
	s.RegisterService(&_Msg_serviceDesc, srv)
}

func _Msg_AdminSpendCommunityPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(MsgAdminSpendCommunityPool)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(MsgServer).AdminSpendCommunityPool(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/cudosnode.cudosnode.pocbasecosmos.Msg/AdminSpendCommunityPool",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(MsgServer).AdminSpendCommunityPool(ctx, req.(*MsgAdminSpendCommunityPool))
	}
	return interceptor(ctx, in, info, handler)
}

var _Msg_serviceDesc = grpc.ServiceDesc{
	ServiceName: "cudosnode.cudosnode.pocbasecosmos.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AdminSpendCommunityPool",
			Handler:    _Msg_AdminSpendCommunityPool_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cudos/admin/tx.proto",
}

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

func (m *MsgAdminSpendCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error) {
	i := len(dAtA)
	_ = i
	var l int
	_ = l
	if len(m.Coins) > 0 {
		for iNdEx := len(m.Coins) - 1; iNdEx >= 0; iNdEx-- {
			{
				size, err := m.Coins[iNdEx].MarshalToSizedBuffer(dAtA[:i])
				if err != nil {
					return 0, err
				}
				i -= size
				i = encodeVarintTx(dAtA, i, uint64(size))
			}
			i--
			dAtA[i] = 0x1a
		}
	}
	if len(m.ToAddress) > 0 {
		i -= len(m.ToAddress)
		copy(dAtA[i:], m.ToAddress)
		i = encodeVarintTx(dAtA, i, uint64(len(m.ToAddress)))
		i--
		dAtA[i] = 0x12
	}
	if len(m.Initiator) > 0 {
		i -= len(m.Initiator)
		copy(dAtA[i:], m.Initiator)
		i = encodeVarintTx(dAtA, i, uint64(len(m.Initiator)))
		i--
		dAtA[i] = 0xa
	}
	return len(dAtA) - i, nil
}

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

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

func encodeVarintTx(dAtA []byte, offset int, v uint64) int {
	offset -= sovTx(v)
	base := offset
	for v >= 1<<7 {
		dAtA[offset] = uint8(v&0x7f | 0x80)
		v >>= 7
		offset++
	}
	dAtA[offset] = uint8(v)
	return base
}
func (m *MsgAdminSpendCommunityPool) Size() (n int) {
	if m == nil {
		return 0
	}
	var l int
	_ = l
	l = len(m.Initiator)
	if l > 0 {
		n += 1 + l + sovTx(uint64(l))
	}
	l = len(m.ToAddress)
	if l > 0 {
		n += 1 + l + sovTx(uint64(l))
	}
	if len(m.Coins) > 0 {
		for _, e := range m.Coins {
			l = e.Size()
			n += 1 + l + sovTx(uint64(l))
		}
	}
	return n
}

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

func sovTx(x uint64) (n int) {
	return (math_bits.Len64(x|1) + 6) / 7
}
func sozTx(x uint64) (n int) {
	return sovTx(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgAdminSpendCommunityPool) 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 ErrIntOverflowTx
			}
			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: MsgAdminSpendCommunityPool: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: MsgAdminSpendCommunityPool: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		case 1:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Initiator", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTx
				}
				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 ErrInvalidLengthTx
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthTx
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Initiator = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 2:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field ToAddress", wireType)
			}
			var stringLen uint64
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTx
				}
				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 ErrInvalidLengthTx
			}
			postIndex := iNdEx + intStringLen
			if postIndex < 0 {
				return ErrInvalidLengthTx
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.ToAddress = string(dAtA[iNdEx:postIndex])
			iNdEx = postIndex
		case 3:
			if wireType != 2 {
				return fmt.Errorf("proto: wrong wireType = %d for field Coins", wireType)
			}
			var msglen int
			for shift := uint(0); ; shift += 7 {
				if shift >= 64 {
					return ErrIntOverflowTx
				}
				if iNdEx >= l {
					return io.ErrUnexpectedEOF
				}
				b := dAtA[iNdEx]
				iNdEx++
				msglen |= int(b&0x7F) << shift
				if b < 0x80 {
					break
				}
			}
			if msglen < 0 {
				return ErrInvalidLengthTx
			}
			postIndex := iNdEx + msglen
			if postIndex < 0 {
				return ErrInvalidLengthTx
			}
			if postIndex > l {
				return io.ErrUnexpectedEOF
			}
			m.Coins = append(m.Coins, types.Coin{})
			if err := m.Coins[len(m.Coins)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
				return err
			}
			iNdEx = postIndex
		default:
			iNdEx = preIndex
			skippy, err := skipTx(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTx
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTx
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

	if iNdEx > l {
		return io.ErrUnexpectedEOF
	}
	return nil
}
func (m *MsgAdminSpendResponse) 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 ErrIntOverflowTx
			}
			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: MsgAdminSpendResponse: wiretype end group for non-group")
		}
		if fieldNum <= 0 {
			return fmt.Errorf("proto: MsgAdminSpendResponse: illegal tag %d (wire type %d)", fieldNum, wire)
		}
		switch fieldNum {
		default:
			iNdEx = preIndex
			skippy, err := skipTx(dAtA[iNdEx:])
			if err != nil {
				return err
			}
			if skippy < 0 {
				return ErrInvalidLengthTx
			}
			if (iNdEx + skippy) < 0 {
				return ErrInvalidLengthTx
			}
			if (iNdEx + skippy) > l {
				return io.ErrUnexpectedEOF
			}
			iNdEx += skippy
		}
	}

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

var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
