github.com/hyperledger/burrow@v0.34.5-0.20220512172541-77f09336001d/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 math_bits "math/bits" 11 12 _ "github.com/gogo/protobuf/gogoproto" 13 proto "github.com/gogo/protobuf/proto" 14 golang_proto "github.com/golang/protobuf/proto" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = golang_proto.Marshal 20 var _ = fmt.Errorf 21 var _ = math.Inf 22 23 // This is a compile-time assertion to ensure that this generated file 24 // is compatible with the proto package it is being compiled against. 25 // A compilation error at this line likely means your copy of the 26 // proto package needs to be updated. 27 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 28 29 type Exception struct { 30 CodeNumber uint32 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"` 31 Exception string `protobuf:"bytes,2,opt,name=Exception,proto3" json:"Exception,omitempty"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35 } 36 37 func (m *Exception) Reset() { *m = Exception{} } 38 func (*Exception) ProtoMessage() {} 39 func (*Exception) Descriptor() ([]byte, []int) { 40 return fileDescriptor_24fe73c7f0ddb19c, []int{0} 41 } 42 func (m *Exception) XXX_Unmarshal(b []byte) error { 43 return m.Unmarshal(b) 44 } 45 func (m *Exception) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 b = b[:cap(b)] 47 n, err := m.MarshalToSizedBuffer(b) 48 if err != nil { 49 return nil, err 50 } 51 return b[:n], nil 52 } 53 func (m *Exception) XXX_Merge(src proto.Message) { 54 xxx_messageInfo_Exception.Merge(m, src) 55 } 56 func (m *Exception) XXX_Size() int { 57 return m.Size() 58 } 59 func (m *Exception) XXX_DiscardUnknown() { 60 xxx_messageInfo_Exception.DiscardUnknown(m) 61 } 62 63 var xxx_messageInfo_Exception proto.InternalMessageInfo 64 65 func (m *Exception) GetCodeNumber() uint32 { 66 if m != nil { 67 return m.CodeNumber 68 } 69 return 0 70 } 71 72 func (m *Exception) GetException() string { 73 if m != nil { 74 return m.Exception 75 } 76 return "" 77 } 78 79 func (*Exception) XXX_MessageName() string { 80 return "errors.Exception" 81 } 82 func init() { 83 proto.RegisterType((*Exception)(nil), "errors.Exception") 84 golang_proto.RegisterType((*Exception)(nil), "errors.Exception") 85 } 86 87 func init() { proto.RegisterFile("errors.proto", fileDescriptor_24fe73c7f0ddb19c) } 88 func init() { golang_proto.RegisterFile("errors.proto", fileDescriptor_24fe73c7f0ddb19c) } 89 90 var fileDescriptor_24fe73c7f0ddb19c = []byte{ 91 // 193 bytes of a gzipped FileDescriptorProto 92 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x49, 0x2d, 0x2a, 0xca, 93 0x2f, 0x2a, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x83, 0xf0, 0xa4, 0x44, 0xd2, 0xf3, 94 0xd3, 0xf3, 0xc1, 0x42, 0xfa, 0x20, 0x16, 0x44, 0x56, 0x29, 0x98, 0x8b, 0xd3, 0xb5, 0x22, 0x39, 95 0xb5, 0xa0, 0x24, 0x33, 0x3f, 0x4f, 0x48, 0x89, 0x8b, 0xc5, 0x39, 0x3f, 0x25, 0x55, 0x82, 0x51, 96 0x81, 0x51, 0x83, 0xd7, 0x89, 0xef, 0xd1, 0x3d, 0x79, 0x2e, 0x10, 0xdf, 0xaf, 0x34, 0x37, 0x29, 97 0xb5, 0x28, 0x08, 0x2c, 0x27, 0x24, 0x83, 0xa4, 0x41, 0x82, 0x49, 0x81, 0x51, 0x83, 0x33, 0x08, 98 0x21, 0x60, 0xc5, 0x32, 0x63, 0x81, 0x3c, 0x83, 0x93, 0xc7, 0x89, 0x47, 0x72, 0x8c, 0x17, 0x1e, 99 0xc9, 0x31, 0xde, 0x78, 0x24, 0xc7, 0xf8, 0xe0, 0x91, 0x1c, 0xe3, 0x81, 0xc7, 0x72, 0x8c, 0x27, 100 0x1e, 0xcb, 0x31, 0x46, 0xe9, 0xa5, 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 101 0x67, 0x54, 0x16, 0xa4, 0x16, 0xe5, 0xa4, 0xa6, 0xa4, 0xa7, 0x16, 0xe9, 0x27, 0x95, 0x16, 0x15, 102 0xe5, 0x97, 0xeb, 0xa7, 0x56, 0xa4, 0x26, 0x97, 0x82, 0x0c, 0xd2, 0x87, 0x38, 0x3a, 0x89, 0x0d, 103 0xec, 0x4a, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x6d, 0xcb, 0x28, 0xd3, 0x00, 0x00, 104 0x00, 105 } 106 107 func (m *Exception) Marshal() (dAtA []byte, err error) { 108 size := m.Size() 109 dAtA = make([]byte, size) 110 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 111 if err != nil { 112 return nil, err 113 } 114 return dAtA[:n], nil 115 } 116 117 func (m *Exception) MarshalTo(dAtA []byte) (int, error) { 118 size := m.Size() 119 return m.MarshalToSizedBuffer(dAtA[:size]) 120 } 121 122 func (m *Exception) MarshalToSizedBuffer(dAtA []byte) (int, error) { 123 i := len(dAtA) 124 _ = i 125 var l int 126 _ = l 127 if m.XXX_unrecognized != nil { 128 i -= len(m.XXX_unrecognized) 129 copy(dAtA[i:], m.XXX_unrecognized) 130 } 131 if len(m.Exception) > 0 { 132 i -= len(m.Exception) 133 copy(dAtA[i:], m.Exception) 134 i = encodeVarintErrors(dAtA, i, uint64(len(m.Exception))) 135 i-- 136 dAtA[i] = 0x12 137 } 138 if m.CodeNumber != 0 { 139 i = encodeVarintErrors(dAtA, i, uint64(m.CodeNumber)) 140 i-- 141 dAtA[i] = 0x8 142 } 143 return len(dAtA) - i, nil 144 } 145 146 func encodeVarintErrors(dAtA []byte, offset int, v uint64) int { 147 offset -= sovErrors(v) 148 base := offset 149 for v >= 1<<7 { 150 dAtA[offset] = uint8(v&0x7f | 0x80) 151 v >>= 7 152 offset++ 153 } 154 dAtA[offset] = uint8(v) 155 return base 156 } 157 func (m *Exception) Size() (n int) { 158 if m == nil { 159 return 0 160 } 161 var l int 162 _ = l 163 if m.CodeNumber != 0 { 164 n += 1 + sovErrors(uint64(m.CodeNumber)) 165 } 166 l = len(m.Exception) 167 if l > 0 { 168 n += 1 + l + sovErrors(uint64(l)) 169 } 170 if m.XXX_unrecognized != nil { 171 n += len(m.XXX_unrecognized) 172 } 173 return n 174 } 175 176 func sovErrors(x uint64) (n int) { 177 return (math_bits.Len64(x|1) + 6) / 7 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 CodeNumber", wireType) 214 } 215 m.CodeNumber = 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.CodeNumber |= uint32(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) || (iNdEx+skippy) < 0 { 269 return ErrInvalidLengthErrors 270 } 271 if (iNdEx + skippy) > l { 272 return io.ErrUnexpectedEOF 273 } 274 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 275 iNdEx += skippy 276 } 277 } 278 279 if iNdEx > l { 280 return io.ErrUnexpectedEOF 281 } 282 return nil 283 } 284 func skipErrors(dAtA []byte) (n int, err error) { 285 l := len(dAtA) 286 iNdEx := 0 287 depth := 0 288 for iNdEx < l { 289 var wire uint64 290 for shift := uint(0); ; shift += 7 { 291 if shift >= 64 { 292 return 0, ErrIntOverflowErrors 293 } 294 if iNdEx >= l { 295 return 0, io.ErrUnexpectedEOF 296 } 297 b := dAtA[iNdEx] 298 iNdEx++ 299 wire |= (uint64(b) & 0x7F) << shift 300 if b < 0x80 { 301 break 302 } 303 } 304 wireType := int(wire & 0x7) 305 switch wireType { 306 case 0: 307 for shift := uint(0); ; shift += 7 { 308 if shift >= 64 { 309 return 0, ErrIntOverflowErrors 310 } 311 if iNdEx >= l { 312 return 0, io.ErrUnexpectedEOF 313 } 314 iNdEx++ 315 if dAtA[iNdEx-1] < 0x80 { 316 break 317 } 318 } 319 case 1: 320 iNdEx += 8 321 case 2: 322 var length int 323 for shift := uint(0); ; shift += 7 { 324 if shift >= 64 { 325 return 0, ErrIntOverflowErrors 326 } 327 if iNdEx >= l { 328 return 0, io.ErrUnexpectedEOF 329 } 330 b := dAtA[iNdEx] 331 iNdEx++ 332 length |= (int(b) & 0x7F) << shift 333 if b < 0x80 { 334 break 335 } 336 } 337 if length < 0 { 338 return 0, ErrInvalidLengthErrors 339 } 340 iNdEx += length 341 case 3: 342 depth++ 343 case 4: 344 if depth == 0 { 345 return 0, ErrUnexpectedEndOfGroupErrors 346 } 347 depth-- 348 case 5: 349 iNdEx += 4 350 default: 351 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 352 } 353 if iNdEx < 0 { 354 return 0, ErrInvalidLengthErrors 355 } 356 if depth == 0 { 357 return iNdEx, nil 358 } 359 } 360 return 0, io.ErrUnexpectedEOF 361 } 362 363 var ( 364 ErrInvalidLengthErrors = fmt.Errorf("proto: negative length found during unmarshaling") 365 ErrIntOverflowErrors = fmt.Errorf("proto: integer overflow") 366 ErrUnexpectedEndOfGroupErrors = fmt.Errorf("proto: unexpected end of group") 367 )