cosmos-sdk/x/evidence/types/types.pb.go

721 lines
18 KiB
Go

// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: x/evidence/types/types.proto
package types
import (
bytes "bytes"
fmt "fmt"
types "github.com/cosmos/cosmos-sdk/codec/types"
github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
_ "github.com/golang/protobuf/ptypes/timestamp"
io "io"
math "math"
math_bits "math/bits"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// 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
// MsgSubmitEvidence defines an sdk.Msg type that supports submitting arbitrary
// Evidence.
type MsgSubmitEvidence struct {
Submitter github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,1,opt,name=submitter,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"submitter,omitempty"`
Evidence *types.Any `protobuf:"bytes,2,opt,name=evidence,proto3" json:"evidence,omitempty"`
}
func (m *MsgSubmitEvidence) Reset() { *m = MsgSubmitEvidence{} }
func (m *MsgSubmitEvidence) String() string { return proto.CompactTextString(m) }
func (*MsgSubmitEvidence) ProtoMessage() {}
func (*MsgSubmitEvidence) Descriptor() ([]byte, []int) {
return fileDescriptor_72113e6a7b2536ae, []int{0}
}
func (m *MsgSubmitEvidence) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MsgSubmitEvidence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MsgSubmitEvidence.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 *MsgSubmitEvidence) XXX_Merge(src proto.Message) {
xxx_messageInfo_MsgSubmitEvidence.Merge(m, src)
}
func (m *MsgSubmitEvidence) XXX_Size() int {
return m.Size()
}
func (m *MsgSubmitEvidence) XXX_DiscardUnknown() {
xxx_messageInfo_MsgSubmitEvidence.DiscardUnknown(m)
}
var xxx_messageInfo_MsgSubmitEvidence proto.InternalMessageInfo
// Equivocation implements the Evidence interface and defines evidence of double
// signing misbehavior.
type Equivocation struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
Time time.Time `protobuf:"bytes,2,opt,name=time,proto3,stdtime" json:"time"`
Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
ConsensusAddress github_com_cosmos_cosmos_sdk_types.ConsAddress `protobuf:"bytes,4,opt,name=consensus_address,json=consensusAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ConsAddress" json:"consensus_address,omitempty" yaml:"consensus_address"`
}
func (m *Equivocation) Reset() { *m = Equivocation{} }
func (*Equivocation) ProtoMessage() {}
func (*Equivocation) Descriptor() ([]byte, []int) {
return fileDescriptor_72113e6a7b2536ae, []int{1}
}
func (m *Equivocation) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Equivocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Equivocation.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 *Equivocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Equivocation.Merge(m, src)
}
func (m *Equivocation) XXX_Size() int {
return m.Size()
}
func (m *Equivocation) XXX_DiscardUnknown() {
xxx_messageInfo_Equivocation.DiscardUnknown(m)
}
var xxx_messageInfo_Equivocation proto.InternalMessageInfo
func init() {
proto.RegisterType((*MsgSubmitEvidence)(nil), "cosmos_sdk.x.evidence.v1.MsgSubmitEvidence")
proto.RegisterType((*Equivocation)(nil), "cosmos_sdk.x.evidence.v1.Equivocation")
}
func init() { proto.RegisterFile("x/evidence/types/types.proto", fileDescriptor_72113e6a7b2536ae) }
var fileDescriptor_72113e6a7b2536ae = []byte{
// 414 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xbd, 0xae, 0xd3, 0x30,
0x18, 0x8d, 0xb9, 0xe5, 0xaa, 0x98, 0x3b, 0xd0, 0xa8, 0x42, 0xa1, 0x42, 0x71, 0x95, 0x01, 0x75,
0xa9, 0x43, 0x61, 0x41, 0xdd, 0x5a, 0xd4, 0x09, 0x01, 0x52, 0x60, 0x62, 0xa9, 0xf2, 0x63, 0x12,
0xab, 0x4d, 0x1c, 0x62, 0xa7, 0x34, 0xe2, 0x05, 0x18, 0x3b, 0x32, 0x30, 0x74, 0xe4, 0x51, 0x3a,
0x76, 0x64, 0x0a, 0x28, 0x7d, 0x03, 0xc6, 0x4a, 0x48, 0xa8, 0x71, 0xd2, 0x4a, 0xad, 0x84, 0xee,
0x62, 0xfb, 0xfb, 0x7c, 0x7c, 0x7c, 0xce, 0xb1, 0xe1, 0xe3, 0xa5, 0x49, 0x16, 0xd4, 0x23, 0x91,
0x4b, 0x4c, 0x91, 0xc5, 0x84, 0xcb, 0x11, 0xc7, 0x09, 0x13, 0x4c, 0xd5, 0x5c, 0xc6, 0x43, 0xc6,
0xa7, 0xdc, 0x9b, 0xe1, 0x25, 0xae, 0x81, 0x78, 0x31, 0xe8, 0x3c, 0x11, 0x01, 0x4d, 0xbc, 0x69,
0x6c, 0x27, 0x22, 0x33, 0x4b, 0xb0, 0xe9, 0x33, 0x9f, 0x9d, 0x56, 0x92, 0xa1, 0x83, 0x7c, 0xc6,
0xfc, 0x39, 0x91, 0x10, 0x27, 0xfd, 0x68, 0x0a, 0x1a, 0x12, 0x2e, 0xec, 0x30, 0xae, 0x00, 0x8f,
0xce, 0x01, 0x76, 0x94, 0xc9, 0x2d, 0xe3, 0x3b, 0x80, 0xad, 0xd7, 0xdc, 0x7f, 0x97, 0x3a, 0x21,
0x15, 0x93, 0xea, 0x72, 0xf5, 0x2d, 0xbc, 0xc7, 0xcb, 0x8e, 0x20, 0x89, 0x06, 0xba, 0xa0, 0x77,
0x33, 0x1e, 0xec, 0x73, 0xd4, 0xf7, 0xa9, 0x08, 0x52, 0x07, 0xbb, 0x2c, 0x34, 0xa5, 0xea, 0x6a,
0xea, 0x73, 0x6f, 0x56, 0x99, 0x1a, 0xb9, 0xee, 0xc8, 0xf3, 0x12, 0xc2, 0xb9, 0x75, 0xe2, 0x50,
0x9f, 0xc2, 0x66, 0xed, 0x4c, 0xbb, 0xd3, 0x05, 0xbd, 0xfb, 0xcf, 0xda, 0x58, 0x8a, 0xc2, 0xb5,
0x28, 0x3c, 0x8a, 0x32, 0xeb, 0x88, 0x1a, 0x36, 0xbe, 0xae, 0x91, 0x62, 0xfc, 0x05, 0xf0, 0x66,
0xf2, 0x29, 0xa5, 0x0b, 0xe6, 0xda, 0x82, 0xb2, 0x48, 0x7d, 0x08, 0xaf, 0x03, 0x42, 0xfd, 0x40,
0x94, 0xb2, 0xae, 0xac, 0xaa, 0x52, 0x5f, 0xc0, 0xc6, 0xc1, 0x75, 0x45, 0xde, 0xb9, 0x20, 0x7f,
0x5f, 0x47, 0x32, 0x6e, 0x6e, 0x72, 0xa4, 0xac, 0x7e, 0x21, 0x60, 0x95, 0x27, 0xd4, 0x36, 0xbc,
0x1b, 0xb3, 0xcf, 0x24, 0xd1, 0xae, 0x4a, 0x42, 0x59, 0xa8, 0x5f, 0x60, 0xcb, 0x65, 0x11, 0x27,
0x11, 0x4f, 0xf9, 0xd4, 0x96, 0x86, 0xb4, 0x46, 0x99, 0xc4, 0x9b, 0x3f, 0x39, 0xd2, 0x32, 0x3b,
0x9c, 0x0f, 0x8d, 0x0b, 0x88, 0xb1, 0xcf, 0x11, 0xbe, 0x45, 0x4a, 0x2f, 0x59, 0xc4, 0xeb, 0x98,
0x1e, 0x1c, 0x59, 0xaa, 0xce, 0xb0, 0x79, 0xf0, 0xfe, 0x6d, 0x8d, 0x94, 0xf1, 0xab, 0x1f, 0x85,
0x0e, 0x36, 0x85, 0x0e, 0xb6, 0x85, 0x0e, 0x7e, 0x17, 0x3a, 0x58, 0xed, 0x74, 0x65, 0xbb, 0xd3,
0x95, 0x9f, 0x3b, 0x5d, 0xf9, 0xf0, 0xff, 0xf7, 0x38, 0xff, 0x75, 0xce, 0x75, 0x99, 0xc6, 0xf3,
0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2c, 0xbe, 0x1a, 0x9c, 0x90, 0x02, 0x00, 0x00,
}
func (this *MsgSubmitEvidence) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*MsgSubmitEvidence)
if !ok {
that2, ok := that.(MsgSubmitEvidence)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if !bytes.Equal(this.Submitter, that1.Submitter) {
return false
}
if !this.Evidence.Equal(that1.Evidence) {
return false
}
return true
}
func (this *Equivocation) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
that1, ok := that.(*Equivocation)
if !ok {
that2, ok := that.(Equivocation)
if ok {
that1 = &that2
} else {
return false
}
}
if that1 == nil {
return this == nil
} else if this == nil {
return false
}
if this.Height != that1.Height {
return false
}
if !this.Time.Equal(that1.Time) {
return false
}
if this.Power != that1.Power {
return false
}
if !bytes.Equal(this.ConsensusAddress, that1.ConsensusAddress) {
return false
}
return true
}
func (m *MsgSubmitEvidence) 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 *MsgSubmitEvidence) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *MsgSubmitEvidence) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Evidence != nil {
{
size, err := m.Evidence.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintTypes(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x12
}
if len(m.Submitter) > 0 {
i -= len(m.Submitter)
copy(dAtA[i:], m.Submitter)
i = encodeVarintTypes(dAtA, i, uint64(len(m.Submitter)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *Equivocation) 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 *Equivocation) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *Equivocation) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if len(m.ConsensusAddress) > 0 {
i -= len(m.ConsensusAddress)
copy(dAtA[i:], m.ConsensusAddress)
i = encodeVarintTypes(dAtA, i, uint64(len(m.ConsensusAddress)))
i--
dAtA[i] = 0x22
}
if m.Power != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Power))
i--
dAtA[i] = 0x18
}
n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):])
if err2 != nil {
return 0, err2
}
i -= n2
i = encodeVarintTypes(dAtA, i, uint64(n2))
i--
dAtA[i] = 0x12
if m.Height != 0 {
i = encodeVarintTypes(dAtA, i, uint64(m.Height))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
offset -= sovTypes(v)
base := offset
for v >= 1<<7 {
dAtA[offset] = uint8(v&0x7f | 0x80)
v >>= 7
offset++
}
dAtA[offset] = uint8(v)
return base
}
func (m *MsgSubmitEvidence) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Submitter)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
if m.Evidence != nil {
l = m.Evidence.Size()
n += 1 + l + sovTypes(uint64(l))
}
return n
}
func (m *Equivocation) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Height != 0 {
n += 1 + sovTypes(uint64(m.Height))
}
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
n += 1 + l + sovTypes(uint64(l))
if m.Power != 0 {
n += 1 + sovTypes(uint64(m.Power))
}
l = len(m.ConsensusAddress)
if l > 0 {
n += 1 + l + sovTypes(uint64(l))
}
return n
}
func sovTypes(x uint64) (n int) {
return (math_bits.Len64(x|1) + 6) / 7
}
func sozTypes(x uint64) (n int) {
return sovTypes(uint64((x << 1) ^ uint64((int64(x) >> 63))))
}
func (m *MsgSubmitEvidence) 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 ErrIntOverflowTypes
}
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: MsgSubmitEvidence: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: MsgSubmitEvidence: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Submitter", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Submitter = append(m.Submitter[:0], dAtA[iNdEx:postIndex]...)
if m.Submitter == nil {
m.Submitter = []byte{}
}
iNdEx = postIndex
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Evidence", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.Evidence == nil {
m.Evidence = &types.Any{}
}
if err := m.Evidence.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Equivocation) 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 ErrIntOverflowTypes
}
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: Equivocation: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: Equivocation: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType)
}
m.Height = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Height |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 2:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field Power", wireType)
}
m.Power = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.Power |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ConsensusAddress", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowTypes
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthTypes
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthTypes
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ConsensusAddress = append(m.ConsensusAddress[:0], dAtA[iNdEx:postIndex]...)
if m.ConsensusAddress == nil {
m.ConsensusAddress = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipTypes(dAtA[iNdEx:])
if err != nil {
return err
}
if skippy < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) < 0 {
return ErrInvalidLengthTypes
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func skipTypes(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, ErrIntOverflowTypes
}
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, ErrIntOverflowTypes
}
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, ErrIntOverflowTypes
}
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, ErrInvalidLengthTypes
}
iNdEx += length
case 3:
depth++
case 4:
if depth == 0 {
return 0, ErrUnexpectedEndOfGroupTypes
}
depth--
case 5:
iNdEx += 4
default:
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
}
if iNdEx < 0 {
return 0, ErrInvalidLengthTypes
}
if depth == 0 {
return iNdEx, nil
}
}
return 0, io.ErrUnexpectedEOF
}
var (
ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling")
ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow")
ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)