github.com/alibaba/ilogtail/pkg@v0.0.0-20250526110833-c53b480d046c/protocol/log_event.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: log_event.proto 3 4 package protocol 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 type LogEvent struct { 26 Timestamp uint64 `protobuf:"varint,1,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` 27 Contents []*LogEvent_Content `protobuf:"bytes,2,rep,name=Contents,proto3" json:"Contents,omitempty"` 28 Level []byte `protobuf:"bytes,3,opt,name=Level,proto3" json:"Level,omitempty"` 29 FileOffset uint64 `protobuf:"varint,4,opt,name=FileOffset,proto3" json:"FileOffset,omitempty"` 30 RawSize uint64 `protobuf:"varint,5,opt,name=RawSize,proto3" json:"RawSize,omitempty"` 31 } 32 33 func (m *LogEvent) Reset() { *m = LogEvent{} } 34 func (m *LogEvent) String() string { return proto.CompactTextString(m) } 35 func (*LogEvent) ProtoMessage() {} 36 func (*LogEvent) Descriptor() ([]byte, []int) { 37 return fileDescriptor_9ab154f10bf01af7, []int{0} 38 } 39 func (m *LogEvent) XXX_Unmarshal(b []byte) error { 40 return m.Unmarshal(b) 41 } 42 func (m *LogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 43 if deterministic { 44 return xxx_messageInfo_LogEvent.Marshal(b, m, deterministic) 45 } else { 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 } 54 func (m *LogEvent) XXX_Merge(src proto.Message) { 55 xxx_messageInfo_LogEvent.Merge(m, src) 56 } 57 func (m *LogEvent) XXX_Size() int { 58 return m.Size() 59 } 60 func (m *LogEvent) XXX_DiscardUnknown() { 61 xxx_messageInfo_LogEvent.DiscardUnknown(m) 62 } 63 64 var xxx_messageInfo_LogEvent proto.InternalMessageInfo 65 66 func (m *LogEvent) GetTimestamp() uint64 { 67 if m != nil { 68 return m.Timestamp 69 } 70 return 0 71 } 72 73 func (m *LogEvent) GetContents() []*LogEvent_Content { 74 if m != nil { 75 return m.Contents 76 } 77 return nil 78 } 79 80 func (m *LogEvent) GetLevel() []byte { 81 if m != nil { 82 return m.Level 83 } 84 return nil 85 } 86 87 func (m *LogEvent) GetFileOffset() uint64 { 88 if m != nil { 89 return m.FileOffset 90 } 91 return 0 92 } 93 94 func (m *LogEvent) GetRawSize() uint64 { 95 if m != nil { 96 return m.RawSize 97 } 98 return 0 99 } 100 101 type LogEvent_Content struct { 102 Key []byte `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"` 103 Value []byte `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"` 104 } 105 106 func (m *LogEvent_Content) Reset() { *m = LogEvent_Content{} } 107 func (m *LogEvent_Content) String() string { return proto.CompactTextString(m) } 108 func (*LogEvent_Content) ProtoMessage() {} 109 func (*LogEvent_Content) Descriptor() ([]byte, []int) { 110 return fileDescriptor_9ab154f10bf01af7, []int{0, 0} 111 } 112 func (m *LogEvent_Content) XXX_Unmarshal(b []byte) error { 113 return m.Unmarshal(b) 114 } 115 func (m *LogEvent_Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 116 if deterministic { 117 return xxx_messageInfo_LogEvent_Content.Marshal(b, m, deterministic) 118 } else { 119 b = b[:cap(b)] 120 n, err := m.MarshalToSizedBuffer(b) 121 if err != nil { 122 return nil, err 123 } 124 return b[:n], nil 125 } 126 } 127 func (m *LogEvent_Content) XXX_Merge(src proto.Message) { 128 xxx_messageInfo_LogEvent_Content.Merge(m, src) 129 } 130 func (m *LogEvent_Content) XXX_Size() int { 131 return m.Size() 132 } 133 func (m *LogEvent_Content) XXX_DiscardUnknown() { 134 xxx_messageInfo_LogEvent_Content.DiscardUnknown(m) 135 } 136 137 var xxx_messageInfo_LogEvent_Content proto.InternalMessageInfo 138 139 func (m *LogEvent_Content) GetKey() []byte { 140 if m != nil { 141 return m.Key 142 } 143 return nil 144 } 145 146 func (m *LogEvent_Content) GetValue() []byte { 147 if m != nil { 148 return m.Value 149 } 150 return nil 151 } 152 153 func init() { 154 proto.RegisterType((*LogEvent)(nil), "logtail.models.LogEvent") 155 proto.RegisterType((*LogEvent_Content)(nil), "logtail.models.LogEvent.Content") 156 } 157 158 func init() { proto.RegisterFile("log_event.proto", fileDescriptor_9ab154f10bf01af7) } 159 160 var fileDescriptor_9ab154f10bf01af7 = []byte{ 161 // 242 bytes of a gzipped FileDescriptorProto 162 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xcf, 0xc9, 0x4f, 0x8f, 163 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xcb, 0xc9, 0x4f, 164 0x2f, 0x49, 0xcc, 0xcc, 0xd1, 0xcb, 0xcd, 0x4f, 0x49, 0xcd, 0x29, 0x56, 0x7a, 0xc9, 0xc8, 0xc5, 165 0xe1, 0x93, 0x9f, 0xee, 0x0a, 0x52, 0x22, 0x24, 0xc3, 0xc5, 0x19, 0x92, 0x99, 0x9b, 0x5a, 0x5c, 166 0x92, 0x98, 0x5b, 0x20, 0xc1, 0xa8, 0xc0, 0xa8, 0xc1, 0x12, 0x84, 0x10, 0x10, 0xb2, 0xe1, 0xe2, 167 0x70, 0xce, 0xcf, 0x2b, 0x49, 0xcd, 0x2b, 0x29, 0x96, 0x60, 0x52, 0x60, 0xd6, 0xe0, 0x36, 0x52, 168 0xd0, 0x43, 0x35, 0x4d, 0x0f, 0x66, 0x92, 0x1e, 0x54, 0x61, 0x10, 0x5c, 0x87, 0x90, 0x08, 0x17, 169 0xab, 0x4f, 0x6a, 0x59, 0x6a, 0x8e, 0x04, 0xb3, 0x02, 0xa3, 0x06, 0x4f, 0x10, 0x84, 0x23, 0x24, 170 0xc7, 0xc5, 0xe5, 0x96, 0x99, 0x93, 0xea, 0x9f, 0x96, 0x56, 0x9c, 0x5a, 0x22, 0xc1, 0x02, 0xb6, 171 0x12, 0x49, 0x44, 0x48, 0x82, 0x8b, 0x3d, 0x28, 0xb1, 0x3c, 0x38, 0xb3, 0x2a, 0x55, 0x82, 0x15, 172 0x2c, 0x09, 0xe3, 0x4a, 0x19, 0x72, 0xb1, 0x43, 0xcd, 0x16, 0x12, 0xe0, 0x62, 0xf6, 0x4e, 0xad, 173 0x04, 0x3b, 0x98, 0x27, 0x08, 0xc4, 0x04, 0x59, 0x16, 0x96, 0x98, 0x53, 0x9a, 0x2a, 0xc1, 0x04, 174 0xb1, 0x0c, 0xcc, 0x71, 0x92, 0x38, 0xf1, 0x48, 0x8e, 0xf1, 0xc2, 0x23, 0x39, 0xc6, 0x07, 0x8f, 175 0xe4, 0x18, 0x27, 0x3c, 0x96, 0x63, 0xb8, 0xf0, 0x58, 0x8e, 0xe1, 0xc6, 0x63, 0x39, 0x86, 0x24, 176 0x36, 0x70, 0xe0, 0x18, 0x03, 0x02, 0x00, 0x00, 0xff, 0xff, 0xb9, 0xc8, 0x0b, 0xdc, 0x2f, 0x01, 177 0x00, 0x00, 178 } 179 180 func (m *LogEvent) Marshal() (dAtA []byte, err error) { 181 size := m.Size() 182 dAtA = make([]byte, size) 183 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 184 if err != nil { 185 return nil, err 186 } 187 return dAtA[:n], nil 188 } 189 190 func (m *LogEvent) MarshalTo(dAtA []byte) (int, error) { 191 size := m.Size() 192 return m.MarshalToSizedBuffer(dAtA[:size]) 193 } 194 195 func (m *LogEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { 196 i := len(dAtA) 197 _ = i 198 var l int 199 _ = l 200 if m.RawSize != 0 { 201 i = encodeVarintLogEvent(dAtA, i, uint64(m.RawSize)) 202 i-- 203 dAtA[i] = 0x28 204 } 205 if m.FileOffset != 0 { 206 i = encodeVarintLogEvent(dAtA, i, uint64(m.FileOffset)) 207 i-- 208 dAtA[i] = 0x20 209 } 210 if len(m.Level) > 0 { 211 i -= len(m.Level) 212 copy(dAtA[i:], m.Level) 213 i = encodeVarintLogEvent(dAtA, i, uint64(len(m.Level))) 214 i-- 215 dAtA[i] = 0x1a 216 } 217 if len(m.Contents) > 0 { 218 for iNdEx := len(m.Contents) - 1; iNdEx >= 0; iNdEx-- { 219 { 220 size, err := m.Contents[iNdEx].MarshalToSizedBuffer(dAtA[:i]) 221 if err != nil { 222 return 0, err 223 } 224 i -= size 225 i = encodeVarintLogEvent(dAtA, i, uint64(size)) 226 } 227 i-- 228 dAtA[i] = 0x12 229 } 230 } 231 if m.Timestamp != 0 { 232 i = encodeVarintLogEvent(dAtA, i, uint64(m.Timestamp)) 233 i-- 234 dAtA[i] = 0x8 235 } 236 return len(dAtA) - i, nil 237 } 238 239 func (m *LogEvent_Content) Marshal() (dAtA []byte, err error) { 240 size := m.Size() 241 dAtA = make([]byte, size) 242 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 243 if err != nil { 244 return nil, err 245 } 246 return dAtA[:n], nil 247 } 248 249 func (m *LogEvent_Content) MarshalTo(dAtA []byte) (int, error) { 250 size := m.Size() 251 return m.MarshalToSizedBuffer(dAtA[:size]) 252 } 253 254 func (m *LogEvent_Content) MarshalToSizedBuffer(dAtA []byte) (int, error) { 255 i := len(dAtA) 256 _ = i 257 var l int 258 _ = l 259 if len(m.Value) > 0 { 260 i -= len(m.Value) 261 copy(dAtA[i:], m.Value) 262 i = encodeVarintLogEvent(dAtA, i, uint64(len(m.Value))) 263 i-- 264 dAtA[i] = 0x12 265 } 266 if len(m.Key) > 0 { 267 i -= len(m.Key) 268 copy(dAtA[i:], m.Key) 269 i = encodeVarintLogEvent(dAtA, i, uint64(len(m.Key))) 270 i-- 271 dAtA[i] = 0xa 272 } 273 return len(dAtA) - i, nil 274 } 275 276 func encodeVarintLogEvent(dAtA []byte, offset int, v uint64) int { 277 offset -= sovLogEvent(v) 278 base := offset 279 for v >= 1<<7 { 280 dAtA[offset] = uint8(v&0x7f | 0x80) 281 v >>= 7 282 offset++ 283 } 284 dAtA[offset] = uint8(v) 285 return base 286 } 287 func (m *LogEvent) Size() (n int) { 288 if m == nil { 289 return 0 290 } 291 var l int 292 _ = l 293 if m.Timestamp != 0 { 294 n += 1 + sovLogEvent(uint64(m.Timestamp)) 295 } 296 if len(m.Contents) > 0 { 297 for _, e := range m.Contents { 298 l = e.Size() 299 n += 1 + l + sovLogEvent(uint64(l)) 300 } 301 } 302 l = len(m.Level) 303 if l > 0 { 304 n += 1 + l + sovLogEvent(uint64(l)) 305 } 306 if m.FileOffset != 0 { 307 n += 1 + sovLogEvent(uint64(m.FileOffset)) 308 } 309 if m.RawSize != 0 { 310 n += 1 + sovLogEvent(uint64(m.RawSize)) 311 } 312 return n 313 } 314 315 func (m *LogEvent_Content) Size() (n int) { 316 if m == nil { 317 return 0 318 } 319 var l int 320 _ = l 321 l = len(m.Key) 322 if l > 0 { 323 n += 1 + l + sovLogEvent(uint64(l)) 324 } 325 l = len(m.Value) 326 if l > 0 { 327 n += 1 + l + sovLogEvent(uint64(l)) 328 } 329 return n 330 } 331 332 func sovLogEvent(x uint64) (n int) { 333 return (math_bits.Len64(x|1) + 6) / 7 334 } 335 func sozLogEvent(x uint64) (n int) { 336 return sovLogEvent(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 337 } 338 func (m *LogEvent) Unmarshal(dAtA []byte) error { 339 l := len(dAtA) 340 iNdEx := 0 341 for iNdEx < l { 342 preIndex := iNdEx 343 var wire uint64 344 for shift := uint(0); ; shift += 7 { 345 if shift >= 64 { 346 return ErrIntOverflowLogEvent 347 } 348 if iNdEx >= l { 349 return io.ErrUnexpectedEOF 350 } 351 b := dAtA[iNdEx] 352 iNdEx++ 353 wire |= uint64(b&0x7F) << shift 354 if b < 0x80 { 355 break 356 } 357 } 358 fieldNum := int32(wire >> 3) 359 wireType := int(wire & 0x7) 360 if wireType == 4 { 361 return fmt.Errorf("proto: LogEvent: wiretype end group for non-group") 362 } 363 if fieldNum <= 0 { 364 return fmt.Errorf("proto: LogEvent: illegal tag %d (wire type %d)", fieldNum, wire) 365 } 366 switch fieldNum { 367 case 1: 368 if wireType != 0 { 369 return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType) 370 } 371 m.Timestamp = 0 372 for shift := uint(0); ; shift += 7 { 373 if shift >= 64 { 374 return ErrIntOverflowLogEvent 375 } 376 if iNdEx >= l { 377 return io.ErrUnexpectedEOF 378 } 379 b := dAtA[iNdEx] 380 iNdEx++ 381 m.Timestamp |= uint64(b&0x7F) << shift 382 if b < 0x80 { 383 break 384 } 385 } 386 case 2: 387 if wireType != 2 { 388 return fmt.Errorf("proto: wrong wireType = %d for field Contents", wireType) 389 } 390 var msglen int 391 for shift := uint(0); ; shift += 7 { 392 if shift >= 64 { 393 return ErrIntOverflowLogEvent 394 } 395 if iNdEx >= l { 396 return io.ErrUnexpectedEOF 397 } 398 b := dAtA[iNdEx] 399 iNdEx++ 400 msglen |= int(b&0x7F) << shift 401 if b < 0x80 { 402 break 403 } 404 } 405 if msglen < 0 { 406 return ErrInvalidLengthLogEvent 407 } 408 postIndex := iNdEx + msglen 409 if postIndex < 0 { 410 return ErrInvalidLengthLogEvent 411 } 412 if postIndex > l { 413 return io.ErrUnexpectedEOF 414 } 415 m.Contents = append(m.Contents, &LogEvent_Content{}) 416 if err := m.Contents[len(m.Contents)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 417 return err 418 } 419 iNdEx = postIndex 420 case 3: 421 if wireType != 2 { 422 return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType) 423 } 424 var byteLen int 425 for shift := uint(0); ; shift += 7 { 426 if shift >= 64 { 427 return ErrIntOverflowLogEvent 428 } 429 if iNdEx >= l { 430 return io.ErrUnexpectedEOF 431 } 432 b := dAtA[iNdEx] 433 iNdEx++ 434 byteLen |= int(b&0x7F) << shift 435 if b < 0x80 { 436 break 437 } 438 } 439 if byteLen < 0 { 440 return ErrInvalidLengthLogEvent 441 } 442 postIndex := iNdEx + byteLen 443 if postIndex < 0 { 444 return ErrInvalidLengthLogEvent 445 } 446 if postIndex > l { 447 return io.ErrUnexpectedEOF 448 } 449 m.Level = append(m.Level[:0], dAtA[iNdEx:postIndex]...) 450 if m.Level == nil { 451 m.Level = []byte{} 452 } 453 iNdEx = postIndex 454 case 4: 455 if wireType != 0 { 456 return fmt.Errorf("proto: wrong wireType = %d for field FileOffset", wireType) 457 } 458 m.FileOffset = 0 459 for shift := uint(0); ; shift += 7 { 460 if shift >= 64 { 461 return ErrIntOverflowLogEvent 462 } 463 if iNdEx >= l { 464 return io.ErrUnexpectedEOF 465 } 466 b := dAtA[iNdEx] 467 iNdEx++ 468 m.FileOffset |= uint64(b&0x7F) << shift 469 if b < 0x80 { 470 break 471 } 472 } 473 case 5: 474 if wireType != 0 { 475 return fmt.Errorf("proto: wrong wireType = %d for field RawSize", wireType) 476 } 477 m.RawSize = 0 478 for shift := uint(0); ; shift += 7 { 479 if shift >= 64 { 480 return ErrIntOverflowLogEvent 481 } 482 if iNdEx >= l { 483 return io.ErrUnexpectedEOF 484 } 485 b := dAtA[iNdEx] 486 iNdEx++ 487 m.RawSize |= uint64(b&0x7F) << shift 488 if b < 0x80 { 489 break 490 } 491 } 492 default: 493 iNdEx = preIndex 494 skippy, err := skipLogEvent(dAtA[iNdEx:]) 495 if err != nil { 496 return err 497 } 498 if (skippy < 0) || (iNdEx+skippy) < 0 { 499 return ErrInvalidLengthLogEvent 500 } 501 if (iNdEx + skippy) > l { 502 return io.ErrUnexpectedEOF 503 } 504 iNdEx += skippy 505 } 506 } 507 508 if iNdEx > l { 509 return io.ErrUnexpectedEOF 510 } 511 return nil 512 } 513 func (m *LogEvent_Content) Unmarshal(dAtA []byte) error { 514 l := len(dAtA) 515 iNdEx := 0 516 for iNdEx < l { 517 preIndex := iNdEx 518 var wire uint64 519 for shift := uint(0); ; shift += 7 { 520 if shift >= 64 { 521 return ErrIntOverflowLogEvent 522 } 523 if iNdEx >= l { 524 return io.ErrUnexpectedEOF 525 } 526 b := dAtA[iNdEx] 527 iNdEx++ 528 wire |= uint64(b&0x7F) << shift 529 if b < 0x80 { 530 break 531 } 532 } 533 fieldNum := int32(wire >> 3) 534 wireType := int(wire & 0x7) 535 if wireType == 4 { 536 return fmt.Errorf("proto: Content: wiretype end group for non-group") 537 } 538 if fieldNum <= 0 { 539 return fmt.Errorf("proto: Content: illegal tag %d (wire type %d)", fieldNum, wire) 540 } 541 switch fieldNum { 542 case 1: 543 if wireType != 2 { 544 return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType) 545 } 546 var byteLen int 547 for shift := uint(0); ; shift += 7 { 548 if shift >= 64 { 549 return ErrIntOverflowLogEvent 550 } 551 if iNdEx >= l { 552 return io.ErrUnexpectedEOF 553 } 554 b := dAtA[iNdEx] 555 iNdEx++ 556 byteLen |= int(b&0x7F) << shift 557 if b < 0x80 { 558 break 559 } 560 } 561 if byteLen < 0 { 562 return ErrInvalidLengthLogEvent 563 } 564 postIndex := iNdEx + byteLen 565 if postIndex < 0 { 566 return ErrInvalidLengthLogEvent 567 } 568 if postIndex > l { 569 return io.ErrUnexpectedEOF 570 } 571 m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...) 572 if m.Key == nil { 573 m.Key = []byte{} 574 } 575 iNdEx = postIndex 576 case 2: 577 if wireType != 2 { 578 return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) 579 } 580 var byteLen int 581 for shift := uint(0); ; shift += 7 { 582 if shift >= 64 { 583 return ErrIntOverflowLogEvent 584 } 585 if iNdEx >= l { 586 return io.ErrUnexpectedEOF 587 } 588 b := dAtA[iNdEx] 589 iNdEx++ 590 byteLen |= int(b&0x7F) << shift 591 if b < 0x80 { 592 break 593 } 594 } 595 if byteLen < 0 { 596 return ErrInvalidLengthLogEvent 597 } 598 postIndex := iNdEx + byteLen 599 if postIndex < 0 { 600 return ErrInvalidLengthLogEvent 601 } 602 if postIndex > l { 603 return io.ErrUnexpectedEOF 604 } 605 m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...) 606 if m.Value == nil { 607 m.Value = []byte{} 608 } 609 iNdEx = postIndex 610 default: 611 iNdEx = preIndex 612 skippy, err := skipLogEvent(dAtA[iNdEx:]) 613 if err != nil { 614 return err 615 } 616 if (skippy < 0) || (iNdEx+skippy) < 0 { 617 return ErrInvalidLengthLogEvent 618 } 619 if (iNdEx + skippy) > l { 620 return io.ErrUnexpectedEOF 621 } 622 iNdEx += skippy 623 } 624 } 625 626 if iNdEx > l { 627 return io.ErrUnexpectedEOF 628 } 629 return nil 630 } 631 func skipLogEvent(dAtA []byte) (n int, err error) { 632 l := len(dAtA) 633 iNdEx := 0 634 depth := 0 635 for iNdEx < l { 636 var wire uint64 637 for shift := uint(0); ; shift += 7 { 638 if shift >= 64 { 639 return 0, ErrIntOverflowLogEvent 640 } 641 if iNdEx >= l { 642 return 0, io.ErrUnexpectedEOF 643 } 644 b := dAtA[iNdEx] 645 iNdEx++ 646 wire |= (uint64(b) & 0x7F) << shift 647 if b < 0x80 { 648 break 649 } 650 } 651 wireType := int(wire & 0x7) 652 switch wireType { 653 case 0: 654 for shift := uint(0); ; shift += 7 { 655 if shift >= 64 { 656 return 0, ErrIntOverflowLogEvent 657 } 658 if iNdEx >= l { 659 return 0, io.ErrUnexpectedEOF 660 } 661 iNdEx++ 662 if dAtA[iNdEx-1] < 0x80 { 663 break 664 } 665 } 666 case 1: 667 iNdEx += 8 668 case 2: 669 var length int 670 for shift := uint(0); ; shift += 7 { 671 if shift >= 64 { 672 return 0, ErrIntOverflowLogEvent 673 } 674 if iNdEx >= l { 675 return 0, io.ErrUnexpectedEOF 676 } 677 b := dAtA[iNdEx] 678 iNdEx++ 679 length |= (int(b) & 0x7F) << shift 680 if b < 0x80 { 681 break 682 } 683 } 684 if length < 0 { 685 return 0, ErrInvalidLengthLogEvent 686 } 687 iNdEx += length 688 case 3: 689 depth++ 690 case 4: 691 if depth == 0 { 692 return 0, ErrUnexpectedEndOfGroupLogEvent 693 } 694 depth-- 695 case 5: 696 iNdEx += 4 697 default: 698 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 699 } 700 if iNdEx < 0 { 701 return 0, ErrInvalidLengthLogEvent 702 } 703 if depth == 0 { 704 return iNdEx, nil 705 } 706 } 707 return 0, io.ErrUnexpectedEOF 708 } 709 710 var ( 711 ErrInvalidLengthLogEvent = fmt.Errorf("proto: negative length found during unmarshaling") 712 ErrIntOverflowLogEvent = fmt.Errorf("proto: integer overflow") 713 ErrUnexpectedEndOfGroupLogEvent = fmt.Errorf("proto: unexpected end of group") 714 )