github.com/cockroachdb/cockroachdb-parser@v0.23.3-0.20240213214944-911057d40c9a/pkg/sql/pgwire/pgerror/errors.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: sql/pgwire/pgerror/errors.proto 3 4 package pgerror 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 io "io" 10 math "math" 11 math_bits "math/bits" 12 ) 13 14 // Reference imports to suppress errors if they are not otherwise used. 15 var _ = proto.Marshal 16 var _ = fmt.Errorf 17 var _ = math.Inf 18 19 // This is a compile-time assertion to ensure that this generated file 20 // is compatible with the proto package it is being compiled against. 21 // A compilation error at this line likely means your copy of the 22 // proto package needs to be updated. 23 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 24 25 // Error contains all Postgres wire protocol error fields. 26 // See https://www.postgresql.org/docs/current/static/protocol-error-fields.html 27 // for a list of all Postgres error fields, most of which are optional and can 28 // be used to provide auxiliary error information. 29 type Error struct { 30 // standard pg error fields. This can be passed 31 // over the pg wire protocol. 32 Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` 33 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 34 Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` 35 Hint string `protobuf:"bytes,4,opt,name=hint,proto3" json:"hint,omitempty"` 36 Severity string `protobuf:"bytes,8,opt,name=severity,proto3" json:"severity,omitempty"` 37 ConstraintName string `protobuf:"bytes,9,opt,name=constraint_name,json=constraintName,proto3" json:"constraint_name,omitempty"` 38 Source *Error_Source `protobuf:"bytes,5,opt,name=source,proto3" json:"source,omitempty"` 39 } 40 41 func (m *Error) Reset() { *m = Error{} } 42 func (m *Error) String() string { return proto.CompactTextString(m) } 43 func (*Error) ProtoMessage() {} 44 func (*Error) Descriptor() ([]byte, []int) { 45 return fileDescriptor_79fd880909da5328, []int{0} 46 } 47 func (m *Error) XXX_Unmarshal(b []byte) error { 48 return m.Unmarshal(b) 49 } 50 func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 51 b = b[:cap(b)] 52 n, err := m.MarshalToSizedBuffer(b) 53 if err != nil { 54 return nil, err 55 } 56 return b[:n], nil 57 } 58 func (m *Error) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_Error.Merge(m, src) 60 } 61 func (m *Error) XXX_Size() int { 62 return m.Size() 63 } 64 func (m *Error) XXX_DiscardUnknown() { 65 xxx_messageInfo_Error.DiscardUnknown(m) 66 } 67 68 var xxx_messageInfo_Error proto.InternalMessageInfo 69 70 type Error_Source struct { 71 File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` 72 Line int32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` 73 Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` 74 } 75 76 func (m *Error_Source) Reset() { *m = Error_Source{} } 77 func (m *Error_Source) String() string { return proto.CompactTextString(m) } 78 func (*Error_Source) ProtoMessage() {} 79 func (*Error_Source) Descriptor() ([]byte, []int) { 80 return fileDescriptor_79fd880909da5328, []int{0, 0} 81 } 82 func (m *Error_Source) XXX_Unmarshal(b []byte) error { 83 return m.Unmarshal(b) 84 } 85 func (m *Error_Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 86 b = b[:cap(b)] 87 n, err := m.MarshalToSizedBuffer(b) 88 if err != nil { 89 return nil, err 90 } 91 return b[:n], nil 92 } 93 func (m *Error_Source) XXX_Merge(src proto.Message) { 94 xxx_messageInfo_Error_Source.Merge(m, src) 95 } 96 func (m *Error_Source) XXX_Size() int { 97 return m.Size() 98 } 99 func (m *Error_Source) XXX_DiscardUnknown() { 100 xxx_messageInfo_Error_Source.DiscardUnknown(m) 101 } 102 103 var xxx_messageInfo_Error_Source proto.InternalMessageInfo 104 105 func init() { 106 proto.RegisterType((*Error)(nil), "cockroach.parser.pgerror.Error") 107 proto.RegisterType((*Error_Source)(nil), "cockroach.parser.pgerror.Error.Source") 108 } 109 110 func init() { proto.RegisterFile("sql/pgwire/pgerror/errors.proto", fileDescriptor_79fd880909da5328) } 111 112 var fileDescriptor_79fd880909da5328 = []byte{ 113 // 324 bytes of a gzipped FileDescriptorProto 114 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x31, 0x4e, 0xc3, 0x30, 115 0x18, 0x85, 0xe3, 0x92, 0xa6, 0xa9, 0x91, 0xa0, 0x78, 0x40, 0x56, 0x07, 0xb7, 0x62, 0xa1, 0x53, 116 0x22, 0xc1, 0xd0, 0x1d, 0x89, 0xa5, 0x42, 0x0c, 0x65, 0x82, 0x05, 0xa5, 0xae, 0x9b, 0x5a, 0x4d, 117 0xec, 0x60, 0xbb, 0x20, 0x6e, 0xc1, 0x75, 0xb8, 0x41, 0xc7, 0x8e, 0x1d, 0x21, 0xbd, 0x08, 0xb2, 118 0x13, 0xd2, 0xa1, 0x8b, 0xf5, 0xbd, 0xe7, 0x5f, 0xbf, 0xde, 0xd3, 0x0f, 0x07, 0xfa, 0x2d, 0x8b, 119 0x8b, 0xf4, 0x83, 0x2b, 0x16, 0x17, 0x29, 0x53, 0x4a, 0xaa, 0xd8, 0xbd, 0x3a, 0x2a, 0x94, 0x34, 120 0x12, 0x5d, 0x50, 0x49, 0x57, 0x4a, 0x26, 0x74, 0x19, 0xd5, 0xff, 0x57, 0xdf, 0x2d, 0xd8, 0xbe, 121 0xb7, 0x84, 0x10, 0xf4, 0xa9, 0x9c, 0x33, 0x0c, 0x86, 0x60, 0xd4, 0x9d, 0x3a, 0x46, 0x18, 0x76, 122 0x72, 0xa6, 0x75, 0x92, 0x32, 0xdc, 0x72, 0xf6, 0xbf, 0x44, 0x97, 0x30, 0x98, 0x33, 0x93, 0xf0, 123 0x0c, 0x9f, 0xb8, 0x8f, 0x5a, 0xd9, 0x2d, 0x4b, 0x2e, 0x0c, 0xf6, 0xab, 0x2d, 0x96, 0x51, 0x1f, 124 0x86, 0x9a, 0xbd, 0x33, 0xc5, 0xcd, 0x27, 0x0e, 0x9d, 0xdf, 0x68, 0x74, 0x0d, 0xcf, 0xa9, 0x14, 125 0xda, 0xa8, 0x84, 0x0b, 0xf3, 0x2a, 0x92, 0x9c, 0xe1, 0xae, 0x1b, 0x39, 0x3b, 0xd8, 0x8f, 0x49, 126 0xce, 0xd0, 0x18, 0x06, 0x5a, 0xae, 0x15, 0x65, 0xb8, 0x3d, 0x04, 0xa3, 0xd3, 0x9b, 0x41, 0x74, 127 0x54, 0x26, 0x72, 0x45, 0xa2, 0x27, 0x37, 0x36, 0xad, 0xc7, 0xfb, 0x0f, 0x30, 0xa8, 0x1c, 0x9b, 128 0x6d, 0xc1, 0xb3, 0xa6, 0xa1, 0x65, 0xeb, 0x65, 0x5c, 0x54, 0xf5, 0xda, 0x53, 0xc7, 0x36, 0xef, 129 0x62, 0x2d, 0xa8, 0xe1, 0x52, 0xd4, 0xed, 0x1a, 0x3d, 0xf1, 0xc3, 0xa0, 0xd7, 0x99, 0xf8, 0x61, 130 0xa7, 0x17, 0xde, 0x3d, 0x6f, 0x7e, 0x89, 0xb7, 0x29, 0x09, 0xd8, 0x96, 0x04, 0xec, 0x4a, 0x02, 131 0x7e, 0x4a, 0x02, 0xbe, 0xf6, 0xc4, 0xdb, 0xee, 0x89, 0xb7, 0xdb, 0x13, 0xef, 0x65, 0x9c, 0x72, 132 0xb3, 0x5c, 0xcf, 0x22, 0x2a, 0xf3, 0xb8, 0x89, 0x3b, 0x9f, 0x1d, 0x38, 0x2e, 0x56, 0x69, 0x7c, 133 0x7c, 0xb6, 0x59, 0xe0, 0x0e, 0x76, 0xfb, 0x17, 0x00, 0x00, 0xff, 0xff, 0x39, 0xa1, 0x2f, 0xff, 134 0xd3, 0x01, 0x00, 0x00, 135 } 136 137 func (m *Error) Marshal() (dAtA []byte, err error) { 138 size := m.Size() 139 dAtA = make([]byte, size) 140 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 141 if err != nil { 142 return nil, err 143 } 144 return dAtA[:n], nil 145 } 146 147 func (m *Error) MarshalTo(dAtA []byte) (int, error) { 148 size := m.Size() 149 return m.MarshalToSizedBuffer(dAtA[:size]) 150 } 151 152 func (m *Error) MarshalToSizedBuffer(dAtA []byte) (int, error) { 153 i := len(dAtA) 154 _ = i 155 var l int 156 _ = l 157 if len(m.ConstraintName) > 0 { 158 i -= len(m.ConstraintName) 159 copy(dAtA[i:], m.ConstraintName) 160 i = encodeVarintErrors(dAtA, i, uint64(len(m.ConstraintName))) 161 i-- 162 dAtA[i] = 0x4a 163 } 164 if len(m.Severity) > 0 { 165 i -= len(m.Severity) 166 copy(dAtA[i:], m.Severity) 167 i = encodeVarintErrors(dAtA, i, uint64(len(m.Severity))) 168 i-- 169 dAtA[i] = 0x42 170 } 171 if m.Source != nil { 172 { 173 size, err := m.Source.MarshalToSizedBuffer(dAtA[:i]) 174 if err != nil { 175 return 0, err 176 } 177 i -= size 178 i = encodeVarintErrors(dAtA, i, uint64(size)) 179 } 180 i-- 181 dAtA[i] = 0x2a 182 } 183 if len(m.Hint) > 0 { 184 i -= len(m.Hint) 185 copy(dAtA[i:], m.Hint) 186 i = encodeVarintErrors(dAtA, i, uint64(len(m.Hint))) 187 i-- 188 dAtA[i] = 0x22 189 } 190 if len(m.Detail) > 0 { 191 i -= len(m.Detail) 192 copy(dAtA[i:], m.Detail) 193 i = encodeVarintErrors(dAtA, i, uint64(len(m.Detail))) 194 i-- 195 dAtA[i] = 0x1a 196 } 197 if len(m.Message) > 0 { 198 i -= len(m.Message) 199 copy(dAtA[i:], m.Message) 200 i = encodeVarintErrors(dAtA, i, uint64(len(m.Message))) 201 i-- 202 dAtA[i] = 0x12 203 } 204 if len(m.Code) > 0 { 205 i -= len(m.Code) 206 copy(dAtA[i:], m.Code) 207 i = encodeVarintErrors(dAtA, i, uint64(len(m.Code))) 208 i-- 209 dAtA[i] = 0xa 210 } 211 return len(dAtA) - i, nil 212 } 213 214 func (m *Error_Source) Marshal() (dAtA []byte, err error) { 215 size := m.Size() 216 dAtA = make([]byte, size) 217 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 218 if err != nil { 219 return nil, err 220 } 221 return dAtA[:n], nil 222 } 223 224 func (m *Error_Source) MarshalTo(dAtA []byte) (int, error) { 225 size := m.Size() 226 return m.MarshalToSizedBuffer(dAtA[:size]) 227 } 228 229 func (m *Error_Source) MarshalToSizedBuffer(dAtA []byte) (int, error) { 230 i := len(dAtA) 231 _ = i 232 var l int 233 _ = l 234 if len(m.Function) > 0 { 235 i -= len(m.Function) 236 copy(dAtA[i:], m.Function) 237 i = encodeVarintErrors(dAtA, i, uint64(len(m.Function))) 238 i-- 239 dAtA[i] = 0x1a 240 } 241 if m.Line != 0 { 242 i = encodeVarintErrors(dAtA, i, uint64(m.Line)) 243 i-- 244 dAtA[i] = 0x10 245 } 246 if len(m.File) > 0 { 247 i -= len(m.File) 248 copy(dAtA[i:], m.File) 249 i = encodeVarintErrors(dAtA, i, uint64(len(m.File))) 250 i-- 251 dAtA[i] = 0xa 252 } 253 return len(dAtA) - i, nil 254 } 255 256 func encodeVarintErrors(dAtA []byte, offset int, v uint64) int { 257 offset -= sovErrors(v) 258 base := offset 259 for v >= 1<<7 { 260 dAtA[offset] = uint8(v&0x7f | 0x80) 261 v >>= 7 262 offset++ 263 } 264 dAtA[offset] = uint8(v) 265 return base 266 } 267 func (m *Error) Size() (n int) { 268 if m == nil { 269 return 0 270 } 271 var l int 272 _ = l 273 l = len(m.Code) 274 if l > 0 { 275 n += 1 + l + sovErrors(uint64(l)) 276 } 277 l = len(m.Message) 278 if l > 0 { 279 n += 1 + l + sovErrors(uint64(l)) 280 } 281 l = len(m.Detail) 282 if l > 0 { 283 n += 1 + l + sovErrors(uint64(l)) 284 } 285 l = len(m.Hint) 286 if l > 0 { 287 n += 1 + l + sovErrors(uint64(l)) 288 } 289 if m.Source != nil { 290 l = m.Source.Size() 291 n += 1 + l + sovErrors(uint64(l)) 292 } 293 l = len(m.Severity) 294 if l > 0 { 295 n += 1 + l + sovErrors(uint64(l)) 296 } 297 l = len(m.ConstraintName) 298 if l > 0 { 299 n += 1 + l + sovErrors(uint64(l)) 300 } 301 return n 302 } 303 304 func (m *Error_Source) Size() (n int) { 305 if m == nil { 306 return 0 307 } 308 var l int 309 _ = l 310 l = len(m.File) 311 if l > 0 { 312 n += 1 + l + sovErrors(uint64(l)) 313 } 314 if m.Line != 0 { 315 n += 1 + sovErrors(uint64(m.Line)) 316 } 317 l = len(m.Function) 318 if l > 0 { 319 n += 1 + l + sovErrors(uint64(l)) 320 } 321 return n 322 } 323 324 func sovErrors(x uint64) (n int) { 325 return (math_bits.Len64(x|1) + 6) / 7 326 } 327 func sozErrors(x uint64) (n int) { 328 return sovErrors(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 329 } 330 func (m *Error) Unmarshal(dAtA []byte) error { 331 l := len(dAtA) 332 iNdEx := 0 333 for iNdEx < l { 334 preIndex := iNdEx 335 var wire uint64 336 for shift := uint(0); ; shift += 7 { 337 if shift >= 64 { 338 return ErrIntOverflowErrors 339 } 340 if iNdEx >= l { 341 return io.ErrUnexpectedEOF 342 } 343 b := dAtA[iNdEx] 344 iNdEx++ 345 wire |= uint64(b&0x7F) << shift 346 if b < 0x80 { 347 break 348 } 349 } 350 fieldNum := int32(wire >> 3) 351 wireType := int(wire & 0x7) 352 if wireType == 4 { 353 return fmt.Errorf("proto: Error: wiretype end group for non-group") 354 } 355 if fieldNum <= 0 { 356 return fmt.Errorf("proto: Error: illegal tag %d (wire type %d)", fieldNum, wire) 357 } 358 switch fieldNum { 359 case 1: 360 if wireType != 2 { 361 return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType) 362 } 363 var stringLen uint64 364 for shift := uint(0); ; shift += 7 { 365 if shift >= 64 { 366 return ErrIntOverflowErrors 367 } 368 if iNdEx >= l { 369 return io.ErrUnexpectedEOF 370 } 371 b := dAtA[iNdEx] 372 iNdEx++ 373 stringLen |= uint64(b&0x7F) << shift 374 if b < 0x80 { 375 break 376 } 377 } 378 intStringLen := int(stringLen) 379 if intStringLen < 0 { 380 return ErrInvalidLengthErrors 381 } 382 postIndex := iNdEx + intStringLen 383 if postIndex < 0 { 384 return ErrInvalidLengthErrors 385 } 386 if postIndex > l { 387 return io.ErrUnexpectedEOF 388 } 389 m.Code = string(dAtA[iNdEx:postIndex]) 390 iNdEx = postIndex 391 case 2: 392 if wireType != 2 { 393 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 394 } 395 var stringLen uint64 396 for shift := uint(0); ; shift += 7 { 397 if shift >= 64 { 398 return ErrIntOverflowErrors 399 } 400 if iNdEx >= l { 401 return io.ErrUnexpectedEOF 402 } 403 b := dAtA[iNdEx] 404 iNdEx++ 405 stringLen |= uint64(b&0x7F) << shift 406 if b < 0x80 { 407 break 408 } 409 } 410 intStringLen := int(stringLen) 411 if intStringLen < 0 { 412 return ErrInvalidLengthErrors 413 } 414 postIndex := iNdEx + intStringLen 415 if postIndex < 0 { 416 return ErrInvalidLengthErrors 417 } 418 if postIndex > l { 419 return io.ErrUnexpectedEOF 420 } 421 m.Message = string(dAtA[iNdEx:postIndex]) 422 iNdEx = postIndex 423 case 3: 424 if wireType != 2 { 425 return fmt.Errorf("proto: wrong wireType = %d for field Detail", wireType) 426 } 427 var stringLen uint64 428 for shift := uint(0); ; shift += 7 { 429 if shift >= 64 { 430 return ErrIntOverflowErrors 431 } 432 if iNdEx >= l { 433 return io.ErrUnexpectedEOF 434 } 435 b := dAtA[iNdEx] 436 iNdEx++ 437 stringLen |= uint64(b&0x7F) << shift 438 if b < 0x80 { 439 break 440 } 441 } 442 intStringLen := int(stringLen) 443 if intStringLen < 0 { 444 return ErrInvalidLengthErrors 445 } 446 postIndex := iNdEx + intStringLen 447 if postIndex < 0 { 448 return ErrInvalidLengthErrors 449 } 450 if postIndex > l { 451 return io.ErrUnexpectedEOF 452 } 453 m.Detail = string(dAtA[iNdEx:postIndex]) 454 iNdEx = postIndex 455 case 4: 456 if wireType != 2 { 457 return fmt.Errorf("proto: wrong wireType = %d for field Hint", wireType) 458 } 459 var stringLen uint64 460 for shift := uint(0); ; shift += 7 { 461 if shift >= 64 { 462 return ErrIntOverflowErrors 463 } 464 if iNdEx >= l { 465 return io.ErrUnexpectedEOF 466 } 467 b := dAtA[iNdEx] 468 iNdEx++ 469 stringLen |= uint64(b&0x7F) << shift 470 if b < 0x80 { 471 break 472 } 473 } 474 intStringLen := int(stringLen) 475 if intStringLen < 0 { 476 return ErrInvalidLengthErrors 477 } 478 postIndex := iNdEx + intStringLen 479 if postIndex < 0 { 480 return ErrInvalidLengthErrors 481 } 482 if postIndex > l { 483 return io.ErrUnexpectedEOF 484 } 485 m.Hint = string(dAtA[iNdEx:postIndex]) 486 iNdEx = postIndex 487 case 5: 488 if wireType != 2 { 489 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 490 } 491 var msglen int 492 for shift := uint(0); ; shift += 7 { 493 if shift >= 64 { 494 return ErrIntOverflowErrors 495 } 496 if iNdEx >= l { 497 return io.ErrUnexpectedEOF 498 } 499 b := dAtA[iNdEx] 500 iNdEx++ 501 msglen |= int(b&0x7F) << shift 502 if b < 0x80 { 503 break 504 } 505 } 506 if msglen < 0 { 507 return ErrInvalidLengthErrors 508 } 509 postIndex := iNdEx + msglen 510 if postIndex < 0 { 511 return ErrInvalidLengthErrors 512 } 513 if postIndex > l { 514 return io.ErrUnexpectedEOF 515 } 516 if m.Source == nil { 517 m.Source = &Error_Source{} 518 } 519 if err := m.Source.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 520 return err 521 } 522 iNdEx = postIndex 523 case 8: 524 if wireType != 2 { 525 return fmt.Errorf("proto: wrong wireType = %d for field Severity", wireType) 526 } 527 var stringLen uint64 528 for shift := uint(0); ; shift += 7 { 529 if shift >= 64 { 530 return ErrIntOverflowErrors 531 } 532 if iNdEx >= l { 533 return io.ErrUnexpectedEOF 534 } 535 b := dAtA[iNdEx] 536 iNdEx++ 537 stringLen |= uint64(b&0x7F) << shift 538 if b < 0x80 { 539 break 540 } 541 } 542 intStringLen := int(stringLen) 543 if intStringLen < 0 { 544 return ErrInvalidLengthErrors 545 } 546 postIndex := iNdEx + intStringLen 547 if postIndex < 0 { 548 return ErrInvalidLengthErrors 549 } 550 if postIndex > l { 551 return io.ErrUnexpectedEOF 552 } 553 m.Severity = string(dAtA[iNdEx:postIndex]) 554 iNdEx = postIndex 555 case 9: 556 if wireType != 2 { 557 return fmt.Errorf("proto: wrong wireType = %d for field ConstraintName", wireType) 558 } 559 var stringLen uint64 560 for shift := uint(0); ; shift += 7 { 561 if shift >= 64 { 562 return ErrIntOverflowErrors 563 } 564 if iNdEx >= l { 565 return io.ErrUnexpectedEOF 566 } 567 b := dAtA[iNdEx] 568 iNdEx++ 569 stringLen |= uint64(b&0x7F) << shift 570 if b < 0x80 { 571 break 572 } 573 } 574 intStringLen := int(stringLen) 575 if intStringLen < 0 { 576 return ErrInvalidLengthErrors 577 } 578 postIndex := iNdEx + intStringLen 579 if postIndex < 0 { 580 return ErrInvalidLengthErrors 581 } 582 if postIndex > l { 583 return io.ErrUnexpectedEOF 584 } 585 m.ConstraintName = string(dAtA[iNdEx:postIndex]) 586 iNdEx = postIndex 587 default: 588 iNdEx = preIndex 589 skippy, err := skipErrors(dAtA[iNdEx:]) 590 if err != nil { 591 return err 592 } 593 if (skippy < 0) || (iNdEx+skippy) < 0 { 594 return ErrInvalidLengthErrors 595 } 596 if (iNdEx + skippy) > l { 597 return io.ErrUnexpectedEOF 598 } 599 iNdEx += skippy 600 } 601 } 602 603 if iNdEx > l { 604 return io.ErrUnexpectedEOF 605 } 606 return nil 607 } 608 func (m *Error_Source) Unmarshal(dAtA []byte) error { 609 l := len(dAtA) 610 iNdEx := 0 611 for iNdEx < l { 612 preIndex := iNdEx 613 var wire uint64 614 for shift := uint(0); ; shift += 7 { 615 if shift >= 64 { 616 return ErrIntOverflowErrors 617 } 618 if iNdEx >= l { 619 return io.ErrUnexpectedEOF 620 } 621 b := dAtA[iNdEx] 622 iNdEx++ 623 wire |= uint64(b&0x7F) << shift 624 if b < 0x80 { 625 break 626 } 627 } 628 fieldNum := int32(wire >> 3) 629 wireType := int(wire & 0x7) 630 if wireType == 4 { 631 return fmt.Errorf("proto: Source: wiretype end group for non-group") 632 } 633 if fieldNum <= 0 { 634 return fmt.Errorf("proto: Source: illegal tag %d (wire type %d)", fieldNum, wire) 635 } 636 switch fieldNum { 637 case 1: 638 if wireType != 2 { 639 return fmt.Errorf("proto: wrong wireType = %d for field File", wireType) 640 } 641 var stringLen uint64 642 for shift := uint(0); ; shift += 7 { 643 if shift >= 64 { 644 return ErrIntOverflowErrors 645 } 646 if iNdEx >= l { 647 return io.ErrUnexpectedEOF 648 } 649 b := dAtA[iNdEx] 650 iNdEx++ 651 stringLen |= uint64(b&0x7F) << shift 652 if b < 0x80 { 653 break 654 } 655 } 656 intStringLen := int(stringLen) 657 if intStringLen < 0 { 658 return ErrInvalidLengthErrors 659 } 660 postIndex := iNdEx + intStringLen 661 if postIndex < 0 { 662 return ErrInvalidLengthErrors 663 } 664 if postIndex > l { 665 return io.ErrUnexpectedEOF 666 } 667 m.File = string(dAtA[iNdEx:postIndex]) 668 iNdEx = postIndex 669 case 2: 670 if wireType != 0 { 671 return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType) 672 } 673 m.Line = 0 674 for shift := uint(0); ; shift += 7 { 675 if shift >= 64 { 676 return ErrIntOverflowErrors 677 } 678 if iNdEx >= l { 679 return io.ErrUnexpectedEOF 680 } 681 b := dAtA[iNdEx] 682 iNdEx++ 683 m.Line |= int32(b&0x7F) << shift 684 if b < 0x80 { 685 break 686 } 687 } 688 case 3: 689 if wireType != 2 { 690 return fmt.Errorf("proto: wrong wireType = %d for field Function", wireType) 691 } 692 var stringLen uint64 693 for shift := uint(0); ; shift += 7 { 694 if shift >= 64 { 695 return ErrIntOverflowErrors 696 } 697 if iNdEx >= l { 698 return io.ErrUnexpectedEOF 699 } 700 b := dAtA[iNdEx] 701 iNdEx++ 702 stringLen |= uint64(b&0x7F) << shift 703 if b < 0x80 { 704 break 705 } 706 } 707 intStringLen := int(stringLen) 708 if intStringLen < 0 { 709 return ErrInvalidLengthErrors 710 } 711 postIndex := iNdEx + intStringLen 712 if postIndex < 0 { 713 return ErrInvalidLengthErrors 714 } 715 if postIndex > l { 716 return io.ErrUnexpectedEOF 717 } 718 m.Function = string(dAtA[iNdEx:postIndex]) 719 iNdEx = postIndex 720 default: 721 iNdEx = preIndex 722 skippy, err := skipErrors(dAtA[iNdEx:]) 723 if err != nil { 724 return err 725 } 726 if (skippy < 0) || (iNdEx+skippy) < 0 { 727 return ErrInvalidLengthErrors 728 } 729 if (iNdEx + skippy) > l { 730 return io.ErrUnexpectedEOF 731 } 732 iNdEx += skippy 733 } 734 } 735 736 if iNdEx > l { 737 return io.ErrUnexpectedEOF 738 } 739 return nil 740 } 741 func skipErrors(dAtA []byte) (n int, err error) { 742 l := len(dAtA) 743 iNdEx := 0 744 depth := 0 745 for iNdEx < l { 746 var wire uint64 747 for shift := uint(0); ; shift += 7 { 748 if shift >= 64 { 749 return 0, ErrIntOverflowErrors 750 } 751 if iNdEx >= l { 752 return 0, io.ErrUnexpectedEOF 753 } 754 b := dAtA[iNdEx] 755 iNdEx++ 756 wire |= (uint64(b) & 0x7F) << shift 757 if b < 0x80 { 758 break 759 } 760 } 761 wireType := int(wire & 0x7) 762 switch wireType { 763 case 0: 764 for shift := uint(0); ; shift += 7 { 765 if shift >= 64 { 766 return 0, ErrIntOverflowErrors 767 } 768 if iNdEx >= l { 769 return 0, io.ErrUnexpectedEOF 770 } 771 iNdEx++ 772 if dAtA[iNdEx-1] < 0x80 { 773 break 774 } 775 } 776 case 1: 777 iNdEx += 8 778 case 2: 779 var length int 780 for shift := uint(0); ; shift += 7 { 781 if shift >= 64 { 782 return 0, ErrIntOverflowErrors 783 } 784 if iNdEx >= l { 785 return 0, io.ErrUnexpectedEOF 786 } 787 b := dAtA[iNdEx] 788 iNdEx++ 789 length |= (int(b) & 0x7F) << shift 790 if b < 0x80 { 791 break 792 } 793 } 794 if length < 0 { 795 return 0, ErrInvalidLengthErrors 796 } 797 iNdEx += length 798 case 3: 799 depth++ 800 case 4: 801 if depth == 0 { 802 return 0, ErrUnexpectedEndOfGroupErrors 803 } 804 depth-- 805 case 5: 806 iNdEx += 4 807 default: 808 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 809 } 810 if iNdEx < 0 { 811 return 0, ErrInvalidLengthErrors 812 } 813 if depth == 0 { 814 return iNdEx, nil 815 } 816 } 817 return 0, io.ErrUnexpectedEOF 818 } 819 820 var ( 821 ErrInvalidLengthErrors = fmt.Errorf("proto: negative length found during unmarshaling") 822 ErrIntOverflowErrors = fmt.Errorf("proto: integer overflow") 823 ErrUnexpectedEndOfGroupErrors = fmt.Errorf("proto: unexpected end of group") 824 ) 825