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