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