github.com/datachainlab/burrow@v0.25.0/execution/errors/errors.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: errors.proto
     3  
     4  package errors
     5  
     6  import (
     7  	fmt "fmt"
     8  	io "io"
     9  	math "math"
    10  
    11  	_ "github.com/gogo/protobuf/gogoproto"
    12  	proto "github.com/gogo/protobuf/proto"
    13  	golang_proto "github.com/golang/protobuf/proto"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = golang_proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    27  
    28  type Exception struct {
    29  	Code                 Code     `protobuf:"varint,1,opt,name=Code,proto3,casttype=Code" json:"Code,omitempty"`
    30  	Exception            string   `protobuf:"bytes,2,opt,name=Exception,proto3" json:"Exception,omitempty"`
    31  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    32  	XXX_unrecognized     []byte   `json:"-"`
    33  	XXX_sizecache        int32    `json:"-"`
    34  }
    35  
    36  func (m *Exception) Reset()      { *m = Exception{} }
    37  func (*Exception) ProtoMessage() {}
    38  func (*Exception) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_24fe73c7f0ddb19c, []int{0}
    40  }
    41  func (m *Exception) XXX_Unmarshal(b []byte) error {
    42  	return m.Unmarshal(b)
    43  }
    44  func (m *Exception) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    45  	if deterministic {
    46  		return xxx_messageInfo_Exception.Marshal(b, m, deterministic)
    47  	} else {
    48  		b = b[:cap(b)]
    49  		n, err := m.MarshalTo(b)
    50  		if err != nil {
    51  			return nil, err
    52  		}
    53  		return b[:n], nil
    54  	}
    55  }
    56  func (m *Exception) XXX_Merge(src proto.Message) {
    57  	xxx_messageInfo_Exception.Merge(m, src)
    58  }
    59  func (m *Exception) XXX_Size() int {
    60  	return m.Size()
    61  }
    62  func (m *Exception) XXX_DiscardUnknown() {
    63  	xxx_messageInfo_Exception.DiscardUnknown(m)
    64  }
    65  
    66  var xxx_messageInfo_Exception proto.InternalMessageInfo
    67  
    68  func (m *Exception) GetCode() Code {
    69  	if m != nil {
    70  		return m.Code
    71  	}
    72  	return 0
    73  }
    74  
    75  func (m *Exception) GetException() string {
    76  	if m != nil {
    77  		return m.Exception
    78  	}
    79  	return ""
    80  }
    81  
    82  func (*Exception) XXX_MessageName() string {
    83  	return "errors.Exception"
    84  }
    85  func init() {
    86  	proto.RegisterType((*Exception)(nil), "errors.Exception")
    87  	golang_proto.RegisterType((*Exception)(nil), "errors.Exception")
    88  }
    89  
    90  func init() { proto.RegisterFile("errors.proto", fileDescriptor_24fe73c7f0ddb19c) }
    91  func init() { golang_proto.RegisterFile("errors.proto", fileDescriptor_24fe73c7f0ddb19c) }
    92  
    93  var fileDescriptor_24fe73c7f0ddb19c = []byte{
    94  	// 190 bytes of a gzipped FileDescriptorProto
    95  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0x2d, 0x2a, 0xca,
    96  	0x2f, 0x2a, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x83, 0xf0, 0xa4, 0x74, 0xd3, 0x33,
    97  	0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0xd3, 0xf3, 0xd3, 0xf3, 0xf5, 0xc1, 0xd2,
    98  	0x49, 0xa5, 0x69, 0x60, 0x1e, 0x98, 0x03, 0x66, 0x41, 0xb4, 0x29, 0xf9, 0x72, 0x71, 0xba, 0x56,
    99  	0x24, 0xa7, 0x16, 0x94, 0x64, 0xe6, 0xe7, 0x09, 0xc9, 0x70, 0xb1, 0x38, 0xe7, 0xa7, 0xa4, 0x4a,
   100  	0x30, 0x2a, 0x30, 0x6a, 0xf0, 0x3a, 0x71, 0xfc, 0xba, 0x27, 0x0f, 0xe6, 0x07, 0x81, 0x49, 0x21,
   101  	0x19, 0x24, 0xa5, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0x08, 0x01, 0x2b, 0x96, 0x19, 0x0b,
   102  	0xe4, 0x19, 0x9c, 0x5c, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39,
   103  	0xc6, 0x03, 0x8f, 0xe5, 0x18, 0x4f, 0x3c, 0x96, 0x63, 0x8c, 0xd2, 0x43, 0x72, 0x53, 0x46, 0x65,
   104  	0x41, 0x6a, 0x51, 0x4e, 0x6a, 0x4a, 0x7a, 0x6a, 0x91, 0x7e, 0x52, 0x69, 0x51, 0x51, 0x7e, 0xb9,
   105  	0x7e, 0x6a, 0x45, 0x6a, 0x72, 0x29, 0xc8, 0x10, 0x7d, 0x88, 0x1f, 0x92, 0xd8, 0xc0, 0x6e, 0x33,
   106  	0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x33, 0x9a, 0x19, 0x05, 0xe2, 0x00, 0x00, 0x00,
   107  }
   108  
   109  func (m *Exception) Marshal() (dAtA []byte, err error) {
   110  	size := m.Size()
   111  	dAtA = make([]byte, size)
   112  	n, err := m.MarshalTo(dAtA)
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return dAtA[:n], nil
   117  }
   118  
   119  func (m *Exception) MarshalTo(dAtA []byte) (int, error) {
   120  	var i int
   121  	_ = i
   122  	var l int
   123  	_ = l
   124  	if m.Code != 0 {
   125  		dAtA[i] = 0x8
   126  		i++
   127  		i = encodeVarintErrors(dAtA, i, uint64(m.Code))
   128  	}
   129  	if len(m.Exception) > 0 {
   130  		dAtA[i] = 0x12
   131  		i++
   132  		i = encodeVarintErrors(dAtA, i, uint64(len(m.Exception)))
   133  		i += copy(dAtA[i:], m.Exception)
   134  	}
   135  	if m.XXX_unrecognized != nil {
   136  		i += copy(dAtA[i:], m.XXX_unrecognized)
   137  	}
   138  	return i, nil
   139  }
   140  
   141  func encodeVarintErrors(dAtA []byte, offset int, v uint64) int {
   142  	for v >= 1<<7 {
   143  		dAtA[offset] = uint8(v&0x7f | 0x80)
   144  		v >>= 7
   145  		offset++
   146  	}
   147  	dAtA[offset] = uint8(v)
   148  	return offset + 1
   149  }
   150  func (m *Exception) Size() (n int) {
   151  	if m == nil {
   152  		return 0
   153  	}
   154  	var l int
   155  	_ = l
   156  	if m.Code != 0 {
   157  		n += 1 + sovErrors(uint64(m.Code))
   158  	}
   159  	l = len(m.Exception)
   160  	if l > 0 {
   161  		n += 1 + l + sovErrors(uint64(l))
   162  	}
   163  	if m.XXX_unrecognized != nil {
   164  		n += len(m.XXX_unrecognized)
   165  	}
   166  	return n
   167  }
   168  
   169  func sovErrors(x uint64) (n int) {
   170  	for {
   171  		n++
   172  		x >>= 7
   173  		if x == 0 {
   174  			break
   175  		}
   176  	}
   177  	return n
   178  }
   179  func sozErrors(x uint64) (n int) {
   180  	return sovErrors(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   181  }
   182  func (m *Exception) Unmarshal(dAtA []byte) error {
   183  	l := len(dAtA)
   184  	iNdEx := 0
   185  	for iNdEx < l {
   186  		preIndex := iNdEx
   187  		var wire uint64
   188  		for shift := uint(0); ; shift += 7 {
   189  			if shift >= 64 {
   190  				return ErrIntOverflowErrors
   191  			}
   192  			if iNdEx >= l {
   193  				return io.ErrUnexpectedEOF
   194  			}
   195  			b := dAtA[iNdEx]
   196  			iNdEx++
   197  			wire |= uint64(b&0x7F) << shift
   198  			if b < 0x80 {
   199  				break
   200  			}
   201  		}
   202  		fieldNum := int32(wire >> 3)
   203  		wireType := int(wire & 0x7)
   204  		if wireType == 4 {
   205  			return fmt.Errorf("proto: Exception: wiretype end group for non-group")
   206  		}
   207  		if fieldNum <= 0 {
   208  			return fmt.Errorf("proto: Exception: illegal tag %d (wire type %d)", fieldNum, wire)
   209  		}
   210  		switch fieldNum {
   211  		case 1:
   212  			if wireType != 0 {
   213  				return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
   214  			}
   215  			m.Code = 0
   216  			for shift := uint(0); ; shift += 7 {
   217  				if shift >= 64 {
   218  					return ErrIntOverflowErrors
   219  				}
   220  				if iNdEx >= l {
   221  					return io.ErrUnexpectedEOF
   222  				}
   223  				b := dAtA[iNdEx]
   224  				iNdEx++
   225  				m.Code |= Code(b&0x7F) << shift
   226  				if b < 0x80 {
   227  					break
   228  				}
   229  			}
   230  		case 2:
   231  			if wireType != 2 {
   232  				return fmt.Errorf("proto: wrong wireType = %d for field Exception", wireType)
   233  			}
   234  			var stringLen uint64
   235  			for shift := uint(0); ; shift += 7 {
   236  				if shift >= 64 {
   237  					return ErrIntOverflowErrors
   238  				}
   239  				if iNdEx >= l {
   240  					return io.ErrUnexpectedEOF
   241  				}
   242  				b := dAtA[iNdEx]
   243  				iNdEx++
   244  				stringLen |= uint64(b&0x7F) << shift
   245  				if b < 0x80 {
   246  					break
   247  				}
   248  			}
   249  			intStringLen := int(stringLen)
   250  			if intStringLen < 0 {
   251  				return ErrInvalidLengthErrors
   252  			}
   253  			postIndex := iNdEx + intStringLen
   254  			if postIndex < 0 {
   255  				return ErrInvalidLengthErrors
   256  			}
   257  			if postIndex > l {
   258  				return io.ErrUnexpectedEOF
   259  			}
   260  			m.Exception = string(dAtA[iNdEx:postIndex])
   261  			iNdEx = postIndex
   262  		default:
   263  			iNdEx = preIndex
   264  			skippy, err := skipErrors(dAtA[iNdEx:])
   265  			if err != nil {
   266  				return err
   267  			}
   268  			if skippy < 0 {
   269  				return ErrInvalidLengthErrors
   270  			}
   271  			if (iNdEx + skippy) < 0 {
   272  				return ErrInvalidLengthErrors
   273  			}
   274  			if (iNdEx + skippy) > l {
   275  				return io.ErrUnexpectedEOF
   276  			}
   277  			m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
   278  			iNdEx += skippy
   279  		}
   280  	}
   281  
   282  	if iNdEx > l {
   283  		return io.ErrUnexpectedEOF
   284  	}
   285  	return nil
   286  }
   287  func skipErrors(dAtA []byte) (n int, err error) {
   288  	l := len(dAtA)
   289  	iNdEx := 0
   290  	for iNdEx < l {
   291  		var wire uint64
   292  		for shift := uint(0); ; shift += 7 {
   293  			if shift >= 64 {
   294  				return 0, ErrIntOverflowErrors
   295  			}
   296  			if iNdEx >= l {
   297  				return 0, io.ErrUnexpectedEOF
   298  			}
   299  			b := dAtA[iNdEx]
   300  			iNdEx++
   301  			wire |= (uint64(b) & 0x7F) << shift
   302  			if b < 0x80 {
   303  				break
   304  			}
   305  		}
   306  		wireType := int(wire & 0x7)
   307  		switch wireType {
   308  		case 0:
   309  			for shift := uint(0); ; shift += 7 {
   310  				if shift >= 64 {
   311  					return 0, ErrIntOverflowErrors
   312  				}
   313  				if iNdEx >= l {
   314  					return 0, io.ErrUnexpectedEOF
   315  				}
   316  				iNdEx++
   317  				if dAtA[iNdEx-1] < 0x80 {
   318  					break
   319  				}
   320  			}
   321  			return iNdEx, nil
   322  		case 1:
   323  			iNdEx += 8
   324  			return iNdEx, nil
   325  		case 2:
   326  			var length int
   327  			for shift := uint(0); ; shift += 7 {
   328  				if shift >= 64 {
   329  					return 0, ErrIntOverflowErrors
   330  				}
   331  				if iNdEx >= l {
   332  					return 0, io.ErrUnexpectedEOF
   333  				}
   334  				b := dAtA[iNdEx]
   335  				iNdEx++
   336  				length |= (int(b) & 0x7F) << shift
   337  				if b < 0x80 {
   338  					break
   339  				}
   340  			}
   341  			if length < 0 {
   342  				return 0, ErrInvalidLengthErrors
   343  			}
   344  			iNdEx += length
   345  			if iNdEx < 0 {
   346  				return 0, ErrInvalidLengthErrors
   347  			}
   348  			return iNdEx, nil
   349  		case 3:
   350  			for {
   351  				var innerWire uint64
   352  				var start int = iNdEx
   353  				for shift := uint(0); ; shift += 7 {
   354  					if shift >= 64 {
   355  						return 0, ErrIntOverflowErrors
   356  					}
   357  					if iNdEx >= l {
   358  						return 0, io.ErrUnexpectedEOF
   359  					}
   360  					b := dAtA[iNdEx]
   361  					iNdEx++
   362  					innerWire |= (uint64(b) & 0x7F) << shift
   363  					if b < 0x80 {
   364  						break
   365  					}
   366  				}
   367  				innerWireType := int(innerWire & 0x7)
   368  				if innerWireType == 4 {
   369  					break
   370  				}
   371  				next, err := skipErrors(dAtA[start:])
   372  				if err != nil {
   373  					return 0, err
   374  				}
   375  				iNdEx = start + next
   376  				if iNdEx < 0 {
   377  					return 0, ErrInvalidLengthErrors
   378  				}
   379  			}
   380  			return iNdEx, nil
   381  		case 4:
   382  			return iNdEx, nil
   383  		case 5:
   384  			iNdEx += 4
   385  			return iNdEx, nil
   386  		default:
   387  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   388  		}
   389  	}
   390  	panic("unreachable")
   391  }
   392  
   393  var (
   394  	ErrInvalidLengthErrors = fmt.Errorf("proto: negative length found during unmarshaling")
   395  	ErrIntOverflowErrors   = fmt.Errorf("proto: integer overflow")
   396  )