github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/generated/proto/index/index.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/m3db/m3/src/dbnode/generated/proto/index/index.proto 3 4 // Copyright (c) 2020 Uber Technologies, Inc. 5 // 6 // Permission is hereby granted, free of charge, to any person obtaining a copy 7 // of this software and associated documentation files (the "Software"), to deal 8 // in the Software without restriction, including without limitation the rights 9 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 // copies of the Software, and to permit persons to whom the Software is 11 // furnished to do so, subject to the following conditions: 12 // 13 // The above copyright notice and this permission notice shall be included in 14 // all copies or substantial portions of the Software. 15 // 16 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 // THE SOFTWARE. 23 24 /* 25 Package index is a generated protocol buffer package. 26 27 It is generated from these files: 28 github.com/m3db/m3/src/dbnode/generated/proto/index/index.proto 29 30 It has these top-level messages: 31 IndexVolumeInfo 32 SegmentInfo 33 SegmentFileInfo 34 IndexDigests 35 SegmentDigest 36 SegmentFileDigest 37 */ 38 package index 39 40 import proto "github.com/gogo/protobuf/proto" 41 import fmt "fmt" 42 import math "math" 43 import google_protobuf "github.com/gogo/protobuf/types" 44 45 import io "io" 46 47 // Reference imports to suppress errors if they are not otherwise used. 48 var _ = proto.Marshal 49 var _ = fmt.Errorf 50 var _ = math.Inf 51 52 // This is a compile-time assertion to ensure that this generated file 53 // is compatible with the proto package it is being compiled against. 54 // A compilation error at this line likely means your copy of the 55 // proto package needs to be updated. 56 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 57 58 type IndexVolumeInfo struct { 59 MajorVersion int64 `protobuf:"varint,1,opt,name=majorVersion,proto3" json:"majorVersion,omitempty"` 60 BlockStart int64 `protobuf:"varint,2,opt,name=blockStart,proto3" json:"blockStart,omitempty"` 61 BlockSize int64 `protobuf:"varint,3,opt,name=blockSize,proto3" json:"blockSize,omitempty"` 62 FileType int64 `protobuf:"varint,4,opt,name=fileType,proto3" json:"fileType,omitempty"` 63 Shards []uint32 `protobuf:"varint,5,rep,packed,name=shards" json:"shards,omitempty"` 64 SnapshotTime int64 `protobuf:"varint,6,opt,name=snapshotTime,proto3" json:"snapshotTime,omitempty"` 65 Segments []*SegmentInfo `protobuf:"bytes,7,rep,name=segments" json:"segments,omitempty"` 66 IndexVolumeType *google_protobuf.StringValue `protobuf:"bytes,8,opt,name=indexVolumeType" json:"indexVolumeType,omitempty"` 67 } 68 69 func (m *IndexVolumeInfo) Reset() { *m = IndexVolumeInfo{} } 70 func (m *IndexVolumeInfo) String() string { return proto.CompactTextString(m) } 71 func (*IndexVolumeInfo) ProtoMessage() {} 72 func (*IndexVolumeInfo) Descriptor() ([]byte, []int) { return fileDescriptorIndex, []int{0} } 73 74 func (m *IndexVolumeInfo) GetMajorVersion() int64 { 75 if m != nil { 76 return m.MajorVersion 77 } 78 return 0 79 } 80 81 func (m *IndexVolumeInfo) GetBlockStart() int64 { 82 if m != nil { 83 return m.BlockStart 84 } 85 return 0 86 } 87 88 func (m *IndexVolumeInfo) GetBlockSize() int64 { 89 if m != nil { 90 return m.BlockSize 91 } 92 return 0 93 } 94 95 func (m *IndexVolumeInfo) GetFileType() int64 { 96 if m != nil { 97 return m.FileType 98 } 99 return 0 100 } 101 102 func (m *IndexVolumeInfo) GetShards() []uint32 { 103 if m != nil { 104 return m.Shards 105 } 106 return nil 107 } 108 109 func (m *IndexVolumeInfo) GetSnapshotTime() int64 { 110 if m != nil { 111 return m.SnapshotTime 112 } 113 return 0 114 } 115 116 func (m *IndexVolumeInfo) GetSegments() []*SegmentInfo { 117 if m != nil { 118 return m.Segments 119 } 120 return nil 121 } 122 123 func (m *IndexVolumeInfo) GetIndexVolumeType() *google_protobuf.StringValue { 124 if m != nil { 125 return m.IndexVolumeType 126 } 127 return nil 128 } 129 130 type SegmentInfo struct { 131 SegmentType string `protobuf:"bytes,1,opt,name=segmentType,proto3" json:"segmentType,omitempty"` 132 MajorVersion int64 `protobuf:"varint,2,opt,name=majorVersion,proto3" json:"majorVersion,omitempty"` 133 MinorVersion int64 `protobuf:"varint,3,opt,name=minorVersion,proto3" json:"minorVersion,omitempty"` 134 Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` 135 Files []*SegmentFileInfo `protobuf:"bytes,5,rep,name=files" json:"files,omitempty"` 136 } 137 138 func (m *SegmentInfo) Reset() { *m = SegmentInfo{} } 139 func (m *SegmentInfo) String() string { return proto.CompactTextString(m) } 140 func (*SegmentInfo) ProtoMessage() {} 141 func (*SegmentInfo) Descriptor() ([]byte, []int) { return fileDescriptorIndex, []int{1} } 142 143 func (m *SegmentInfo) GetSegmentType() string { 144 if m != nil { 145 return m.SegmentType 146 } 147 return "" 148 } 149 150 func (m *SegmentInfo) GetMajorVersion() int64 { 151 if m != nil { 152 return m.MajorVersion 153 } 154 return 0 155 } 156 157 func (m *SegmentInfo) GetMinorVersion() int64 { 158 if m != nil { 159 return m.MinorVersion 160 } 161 return 0 162 } 163 164 func (m *SegmentInfo) GetMetadata() []byte { 165 if m != nil { 166 return m.Metadata 167 } 168 return nil 169 } 170 171 func (m *SegmentInfo) GetFiles() []*SegmentFileInfo { 172 if m != nil { 173 return m.Files 174 } 175 return nil 176 } 177 178 type SegmentFileInfo struct { 179 SegmentFileType string `protobuf:"bytes,1,opt,name=segmentFileType,proto3" json:"segmentFileType,omitempty"` 180 } 181 182 func (m *SegmentFileInfo) Reset() { *m = SegmentFileInfo{} } 183 func (m *SegmentFileInfo) String() string { return proto.CompactTextString(m) } 184 func (*SegmentFileInfo) ProtoMessage() {} 185 func (*SegmentFileInfo) Descriptor() ([]byte, []int) { return fileDescriptorIndex, []int{2} } 186 187 func (m *SegmentFileInfo) GetSegmentFileType() string { 188 if m != nil { 189 return m.SegmentFileType 190 } 191 return "" 192 } 193 194 type IndexDigests struct { 195 InfoDigest uint32 `protobuf:"varint,1,opt,name=infoDigest,proto3" json:"infoDigest,omitempty"` 196 SegmentDigests []*SegmentDigest `protobuf:"bytes,2,rep,name=segmentDigests" json:"segmentDigests,omitempty"` 197 } 198 199 func (m *IndexDigests) Reset() { *m = IndexDigests{} } 200 func (m *IndexDigests) String() string { return proto.CompactTextString(m) } 201 func (*IndexDigests) ProtoMessage() {} 202 func (*IndexDigests) Descriptor() ([]byte, []int) { return fileDescriptorIndex, []int{3} } 203 204 func (m *IndexDigests) GetInfoDigest() uint32 { 205 if m != nil { 206 return m.InfoDigest 207 } 208 return 0 209 } 210 211 func (m *IndexDigests) GetSegmentDigests() []*SegmentDigest { 212 if m != nil { 213 return m.SegmentDigests 214 } 215 return nil 216 } 217 218 type SegmentDigest struct { 219 SegmentType string `protobuf:"bytes,1,opt,name=segmentType,proto3" json:"segmentType,omitempty"` 220 Files []*SegmentFileDigest `protobuf:"bytes,2,rep,name=files" json:"files,omitempty"` 221 } 222 223 func (m *SegmentDigest) Reset() { *m = SegmentDigest{} } 224 func (m *SegmentDigest) String() string { return proto.CompactTextString(m) } 225 func (*SegmentDigest) ProtoMessage() {} 226 func (*SegmentDigest) Descriptor() ([]byte, []int) { return fileDescriptorIndex, []int{4} } 227 228 func (m *SegmentDigest) GetSegmentType() string { 229 if m != nil { 230 return m.SegmentType 231 } 232 return "" 233 } 234 235 func (m *SegmentDigest) GetFiles() []*SegmentFileDigest { 236 if m != nil { 237 return m.Files 238 } 239 return nil 240 } 241 242 type SegmentFileDigest struct { 243 SegmentFileType string `protobuf:"bytes,1,opt,name=segmentFileType,proto3" json:"segmentFileType,omitempty"` 244 Digest uint32 `protobuf:"varint,2,opt,name=digest,proto3" json:"digest,omitempty"` 245 } 246 247 func (m *SegmentFileDigest) Reset() { *m = SegmentFileDigest{} } 248 func (m *SegmentFileDigest) String() string { return proto.CompactTextString(m) } 249 func (*SegmentFileDigest) ProtoMessage() {} 250 func (*SegmentFileDigest) Descriptor() ([]byte, []int) { return fileDescriptorIndex, []int{5} } 251 252 func (m *SegmentFileDigest) GetSegmentFileType() string { 253 if m != nil { 254 return m.SegmentFileType 255 } 256 return "" 257 } 258 259 func (m *SegmentFileDigest) GetDigest() uint32 { 260 if m != nil { 261 return m.Digest 262 } 263 return 0 264 } 265 266 func init() { 267 proto.RegisterType((*IndexVolumeInfo)(nil), "index.IndexVolumeInfo") 268 proto.RegisterType((*SegmentInfo)(nil), "index.SegmentInfo") 269 proto.RegisterType((*SegmentFileInfo)(nil), "index.SegmentFileInfo") 270 proto.RegisterType((*IndexDigests)(nil), "index.IndexDigests") 271 proto.RegisterType((*SegmentDigest)(nil), "index.SegmentDigest") 272 proto.RegisterType((*SegmentFileDigest)(nil), "index.SegmentFileDigest") 273 } 274 func (m *IndexVolumeInfo) Marshal() (dAtA []byte, err error) { 275 size := m.Size() 276 dAtA = make([]byte, size) 277 n, err := m.MarshalTo(dAtA) 278 if err != nil { 279 return nil, err 280 } 281 return dAtA[:n], nil 282 } 283 284 func (m *IndexVolumeInfo) MarshalTo(dAtA []byte) (int, error) { 285 var i int 286 _ = i 287 var l int 288 _ = l 289 if m.MajorVersion != 0 { 290 dAtA[i] = 0x8 291 i++ 292 i = encodeVarintIndex(dAtA, i, uint64(m.MajorVersion)) 293 } 294 if m.BlockStart != 0 { 295 dAtA[i] = 0x10 296 i++ 297 i = encodeVarintIndex(dAtA, i, uint64(m.BlockStart)) 298 } 299 if m.BlockSize != 0 { 300 dAtA[i] = 0x18 301 i++ 302 i = encodeVarintIndex(dAtA, i, uint64(m.BlockSize)) 303 } 304 if m.FileType != 0 { 305 dAtA[i] = 0x20 306 i++ 307 i = encodeVarintIndex(dAtA, i, uint64(m.FileType)) 308 } 309 if len(m.Shards) > 0 { 310 dAtA2 := make([]byte, len(m.Shards)*10) 311 var j1 int 312 for _, num := range m.Shards { 313 for num >= 1<<7 { 314 dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) 315 num >>= 7 316 j1++ 317 } 318 dAtA2[j1] = uint8(num) 319 j1++ 320 } 321 dAtA[i] = 0x2a 322 i++ 323 i = encodeVarintIndex(dAtA, i, uint64(j1)) 324 i += copy(dAtA[i:], dAtA2[:j1]) 325 } 326 if m.SnapshotTime != 0 { 327 dAtA[i] = 0x30 328 i++ 329 i = encodeVarintIndex(dAtA, i, uint64(m.SnapshotTime)) 330 } 331 if len(m.Segments) > 0 { 332 for _, msg := range m.Segments { 333 dAtA[i] = 0x3a 334 i++ 335 i = encodeVarintIndex(dAtA, i, uint64(msg.Size())) 336 n, err := msg.MarshalTo(dAtA[i:]) 337 if err != nil { 338 return 0, err 339 } 340 i += n 341 } 342 } 343 if m.IndexVolumeType != nil { 344 dAtA[i] = 0x42 345 i++ 346 i = encodeVarintIndex(dAtA, i, uint64(m.IndexVolumeType.Size())) 347 n3, err := m.IndexVolumeType.MarshalTo(dAtA[i:]) 348 if err != nil { 349 return 0, err 350 } 351 i += n3 352 } 353 return i, nil 354 } 355 356 func (m *SegmentInfo) Marshal() (dAtA []byte, err error) { 357 size := m.Size() 358 dAtA = make([]byte, size) 359 n, err := m.MarshalTo(dAtA) 360 if err != nil { 361 return nil, err 362 } 363 return dAtA[:n], nil 364 } 365 366 func (m *SegmentInfo) MarshalTo(dAtA []byte) (int, error) { 367 var i int 368 _ = i 369 var l int 370 _ = l 371 if len(m.SegmentType) > 0 { 372 dAtA[i] = 0xa 373 i++ 374 i = encodeVarintIndex(dAtA, i, uint64(len(m.SegmentType))) 375 i += copy(dAtA[i:], m.SegmentType) 376 } 377 if m.MajorVersion != 0 { 378 dAtA[i] = 0x10 379 i++ 380 i = encodeVarintIndex(dAtA, i, uint64(m.MajorVersion)) 381 } 382 if m.MinorVersion != 0 { 383 dAtA[i] = 0x18 384 i++ 385 i = encodeVarintIndex(dAtA, i, uint64(m.MinorVersion)) 386 } 387 if len(m.Metadata) > 0 { 388 dAtA[i] = 0x22 389 i++ 390 i = encodeVarintIndex(dAtA, i, uint64(len(m.Metadata))) 391 i += copy(dAtA[i:], m.Metadata) 392 } 393 if len(m.Files) > 0 { 394 for _, msg := range m.Files { 395 dAtA[i] = 0x2a 396 i++ 397 i = encodeVarintIndex(dAtA, i, uint64(msg.Size())) 398 n, err := msg.MarshalTo(dAtA[i:]) 399 if err != nil { 400 return 0, err 401 } 402 i += n 403 } 404 } 405 return i, nil 406 } 407 408 func (m *SegmentFileInfo) Marshal() (dAtA []byte, err error) { 409 size := m.Size() 410 dAtA = make([]byte, size) 411 n, err := m.MarshalTo(dAtA) 412 if err != nil { 413 return nil, err 414 } 415 return dAtA[:n], nil 416 } 417 418 func (m *SegmentFileInfo) MarshalTo(dAtA []byte) (int, error) { 419 var i int 420 _ = i 421 var l int 422 _ = l 423 if len(m.SegmentFileType) > 0 { 424 dAtA[i] = 0xa 425 i++ 426 i = encodeVarintIndex(dAtA, i, uint64(len(m.SegmentFileType))) 427 i += copy(dAtA[i:], m.SegmentFileType) 428 } 429 return i, nil 430 } 431 432 func (m *IndexDigests) Marshal() (dAtA []byte, err error) { 433 size := m.Size() 434 dAtA = make([]byte, size) 435 n, err := m.MarshalTo(dAtA) 436 if err != nil { 437 return nil, err 438 } 439 return dAtA[:n], nil 440 } 441 442 func (m *IndexDigests) MarshalTo(dAtA []byte) (int, error) { 443 var i int 444 _ = i 445 var l int 446 _ = l 447 if m.InfoDigest != 0 { 448 dAtA[i] = 0x8 449 i++ 450 i = encodeVarintIndex(dAtA, i, uint64(m.InfoDigest)) 451 } 452 if len(m.SegmentDigests) > 0 { 453 for _, msg := range m.SegmentDigests { 454 dAtA[i] = 0x12 455 i++ 456 i = encodeVarintIndex(dAtA, i, uint64(msg.Size())) 457 n, err := msg.MarshalTo(dAtA[i:]) 458 if err != nil { 459 return 0, err 460 } 461 i += n 462 } 463 } 464 return i, nil 465 } 466 467 func (m *SegmentDigest) Marshal() (dAtA []byte, err error) { 468 size := m.Size() 469 dAtA = make([]byte, size) 470 n, err := m.MarshalTo(dAtA) 471 if err != nil { 472 return nil, err 473 } 474 return dAtA[:n], nil 475 } 476 477 func (m *SegmentDigest) MarshalTo(dAtA []byte) (int, error) { 478 var i int 479 _ = i 480 var l int 481 _ = l 482 if len(m.SegmentType) > 0 { 483 dAtA[i] = 0xa 484 i++ 485 i = encodeVarintIndex(dAtA, i, uint64(len(m.SegmentType))) 486 i += copy(dAtA[i:], m.SegmentType) 487 } 488 if len(m.Files) > 0 { 489 for _, msg := range m.Files { 490 dAtA[i] = 0x12 491 i++ 492 i = encodeVarintIndex(dAtA, i, uint64(msg.Size())) 493 n, err := msg.MarshalTo(dAtA[i:]) 494 if err != nil { 495 return 0, err 496 } 497 i += n 498 } 499 } 500 return i, nil 501 } 502 503 func (m *SegmentFileDigest) Marshal() (dAtA []byte, err error) { 504 size := m.Size() 505 dAtA = make([]byte, size) 506 n, err := m.MarshalTo(dAtA) 507 if err != nil { 508 return nil, err 509 } 510 return dAtA[:n], nil 511 } 512 513 func (m *SegmentFileDigest) MarshalTo(dAtA []byte) (int, error) { 514 var i int 515 _ = i 516 var l int 517 _ = l 518 if len(m.SegmentFileType) > 0 { 519 dAtA[i] = 0xa 520 i++ 521 i = encodeVarintIndex(dAtA, i, uint64(len(m.SegmentFileType))) 522 i += copy(dAtA[i:], m.SegmentFileType) 523 } 524 if m.Digest != 0 { 525 dAtA[i] = 0x10 526 i++ 527 i = encodeVarintIndex(dAtA, i, uint64(m.Digest)) 528 } 529 return i, nil 530 } 531 532 func encodeVarintIndex(dAtA []byte, offset int, v uint64) int { 533 for v >= 1<<7 { 534 dAtA[offset] = uint8(v&0x7f | 0x80) 535 v >>= 7 536 offset++ 537 } 538 dAtA[offset] = uint8(v) 539 return offset + 1 540 } 541 func (m *IndexVolumeInfo) Size() (n int) { 542 var l int 543 _ = l 544 if m.MajorVersion != 0 { 545 n += 1 + sovIndex(uint64(m.MajorVersion)) 546 } 547 if m.BlockStart != 0 { 548 n += 1 + sovIndex(uint64(m.BlockStart)) 549 } 550 if m.BlockSize != 0 { 551 n += 1 + sovIndex(uint64(m.BlockSize)) 552 } 553 if m.FileType != 0 { 554 n += 1 + sovIndex(uint64(m.FileType)) 555 } 556 if len(m.Shards) > 0 { 557 l = 0 558 for _, e := range m.Shards { 559 l += sovIndex(uint64(e)) 560 } 561 n += 1 + sovIndex(uint64(l)) + l 562 } 563 if m.SnapshotTime != 0 { 564 n += 1 + sovIndex(uint64(m.SnapshotTime)) 565 } 566 if len(m.Segments) > 0 { 567 for _, e := range m.Segments { 568 l = e.Size() 569 n += 1 + l + sovIndex(uint64(l)) 570 } 571 } 572 if m.IndexVolumeType != nil { 573 l = m.IndexVolumeType.Size() 574 n += 1 + l + sovIndex(uint64(l)) 575 } 576 return n 577 } 578 579 func (m *SegmentInfo) Size() (n int) { 580 var l int 581 _ = l 582 l = len(m.SegmentType) 583 if l > 0 { 584 n += 1 + l + sovIndex(uint64(l)) 585 } 586 if m.MajorVersion != 0 { 587 n += 1 + sovIndex(uint64(m.MajorVersion)) 588 } 589 if m.MinorVersion != 0 { 590 n += 1 + sovIndex(uint64(m.MinorVersion)) 591 } 592 l = len(m.Metadata) 593 if l > 0 { 594 n += 1 + l + sovIndex(uint64(l)) 595 } 596 if len(m.Files) > 0 { 597 for _, e := range m.Files { 598 l = e.Size() 599 n += 1 + l + sovIndex(uint64(l)) 600 } 601 } 602 return n 603 } 604 605 func (m *SegmentFileInfo) Size() (n int) { 606 var l int 607 _ = l 608 l = len(m.SegmentFileType) 609 if l > 0 { 610 n += 1 + l + sovIndex(uint64(l)) 611 } 612 return n 613 } 614 615 func (m *IndexDigests) Size() (n int) { 616 var l int 617 _ = l 618 if m.InfoDigest != 0 { 619 n += 1 + sovIndex(uint64(m.InfoDigest)) 620 } 621 if len(m.SegmentDigests) > 0 { 622 for _, e := range m.SegmentDigests { 623 l = e.Size() 624 n += 1 + l + sovIndex(uint64(l)) 625 } 626 } 627 return n 628 } 629 630 func (m *SegmentDigest) Size() (n int) { 631 var l int 632 _ = l 633 l = len(m.SegmentType) 634 if l > 0 { 635 n += 1 + l + sovIndex(uint64(l)) 636 } 637 if len(m.Files) > 0 { 638 for _, e := range m.Files { 639 l = e.Size() 640 n += 1 + l + sovIndex(uint64(l)) 641 } 642 } 643 return n 644 } 645 646 func (m *SegmentFileDigest) Size() (n int) { 647 var l int 648 _ = l 649 l = len(m.SegmentFileType) 650 if l > 0 { 651 n += 1 + l + sovIndex(uint64(l)) 652 } 653 if m.Digest != 0 { 654 n += 1 + sovIndex(uint64(m.Digest)) 655 } 656 return n 657 } 658 659 func sovIndex(x uint64) (n int) { 660 for { 661 n++ 662 x >>= 7 663 if x == 0 { 664 break 665 } 666 } 667 return n 668 } 669 func sozIndex(x uint64) (n int) { 670 return sovIndex(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 671 } 672 func (m *IndexVolumeInfo) Unmarshal(dAtA []byte) error { 673 l := len(dAtA) 674 iNdEx := 0 675 for iNdEx < l { 676 preIndex := iNdEx 677 var wire uint64 678 for shift := uint(0); ; shift += 7 { 679 if shift >= 64 { 680 return ErrIntOverflowIndex 681 } 682 if iNdEx >= l { 683 return io.ErrUnexpectedEOF 684 } 685 b := dAtA[iNdEx] 686 iNdEx++ 687 wire |= (uint64(b) & 0x7F) << shift 688 if b < 0x80 { 689 break 690 } 691 } 692 fieldNum := int32(wire >> 3) 693 wireType := int(wire & 0x7) 694 if wireType == 4 { 695 return fmt.Errorf("proto: IndexVolumeInfo: wiretype end group for non-group") 696 } 697 if fieldNum <= 0 { 698 return fmt.Errorf("proto: IndexVolumeInfo: illegal tag %d (wire type %d)", fieldNum, wire) 699 } 700 switch fieldNum { 701 case 1: 702 if wireType != 0 { 703 return fmt.Errorf("proto: wrong wireType = %d for field MajorVersion", wireType) 704 } 705 m.MajorVersion = 0 706 for shift := uint(0); ; shift += 7 { 707 if shift >= 64 { 708 return ErrIntOverflowIndex 709 } 710 if iNdEx >= l { 711 return io.ErrUnexpectedEOF 712 } 713 b := dAtA[iNdEx] 714 iNdEx++ 715 m.MajorVersion |= (int64(b) & 0x7F) << shift 716 if b < 0x80 { 717 break 718 } 719 } 720 case 2: 721 if wireType != 0 { 722 return fmt.Errorf("proto: wrong wireType = %d for field BlockStart", wireType) 723 } 724 m.BlockStart = 0 725 for shift := uint(0); ; shift += 7 { 726 if shift >= 64 { 727 return ErrIntOverflowIndex 728 } 729 if iNdEx >= l { 730 return io.ErrUnexpectedEOF 731 } 732 b := dAtA[iNdEx] 733 iNdEx++ 734 m.BlockStart |= (int64(b) & 0x7F) << shift 735 if b < 0x80 { 736 break 737 } 738 } 739 case 3: 740 if wireType != 0 { 741 return fmt.Errorf("proto: wrong wireType = %d for field BlockSize", wireType) 742 } 743 m.BlockSize = 0 744 for shift := uint(0); ; shift += 7 { 745 if shift >= 64 { 746 return ErrIntOverflowIndex 747 } 748 if iNdEx >= l { 749 return io.ErrUnexpectedEOF 750 } 751 b := dAtA[iNdEx] 752 iNdEx++ 753 m.BlockSize |= (int64(b) & 0x7F) << shift 754 if b < 0x80 { 755 break 756 } 757 } 758 case 4: 759 if wireType != 0 { 760 return fmt.Errorf("proto: wrong wireType = %d for field FileType", wireType) 761 } 762 m.FileType = 0 763 for shift := uint(0); ; shift += 7 { 764 if shift >= 64 { 765 return ErrIntOverflowIndex 766 } 767 if iNdEx >= l { 768 return io.ErrUnexpectedEOF 769 } 770 b := dAtA[iNdEx] 771 iNdEx++ 772 m.FileType |= (int64(b) & 0x7F) << shift 773 if b < 0x80 { 774 break 775 } 776 } 777 case 5: 778 if wireType == 0 { 779 var v uint32 780 for shift := uint(0); ; shift += 7 { 781 if shift >= 64 { 782 return ErrIntOverflowIndex 783 } 784 if iNdEx >= l { 785 return io.ErrUnexpectedEOF 786 } 787 b := dAtA[iNdEx] 788 iNdEx++ 789 v |= (uint32(b) & 0x7F) << shift 790 if b < 0x80 { 791 break 792 } 793 } 794 m.Shards = append(m.Shards, v) 795 } else if wireType == 2 { 796 var packedLen int 797 for shift := uint(0); ; shift += 7 { 798 if shift >= 64 { 799 return ErrIntOverflowIndex 800 } 801 if iNdEx >= l { 802 return io.ErrUnexpectedEOF 803 } 804 b := dAtA[iNdEx] 805 iNdEx++ 806 packedLen |= (int(b) & 0x7F) << shift 807 if b < 0x80 { 808 break 809 } 810 } 811 if packedLen < 0 { 812 return ErrInvalidLengthIndex 813 } 814 postIndex := iNdEx + packedLen 815 if postIndex > l { 816 return io.ErrUnexpectedEOF 817 } 818 for iNdEx < postIndex { 819 var v uint32 820 for shift := uint(0); ; shift += 7 { 821 if shift >= 64 { 822 return ErrIntOverflowIndex 823 } 824 if iNdEx >= l { 825 return io.ErrUnexpectedEOF 826 } 827 b := dAtA[iNdEx] 828 iNdEx++ 829 v |= (uint32(b) & 0x7F) << shift 830 if b < 0x80 { 831 break 832 } 833 } 834 m.Shards = append(m.Shards, v) 835 } 836 } else { 837 return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) 838 } 839 case 6: 840 if wireType != 0 { 841 return fmt.Errorf("proto: wrong wireType = %d for field SnapshotTime", wireType) 842 } 843 m.SnapshotTime = 0 844 for shift := uint(0); ; shift += 7 { 845 if shift >= 64 { 846 return ErrIntOverflowIndex 847 } 848 if iNdEx >= l { 849 return io.ErrUnexpectedEOF 850 } 851 b := dAtA[iNdEx] 852 iNdEx++ 853 m.SnapshotTime |= (int64(b) & 0x7F) << shift 854 if b < 0x80 { 855 break 856 } 857 } 858 case 7: 859 if wireType != 2 { 860 return fmt.Errorf("proto: wrong wireType = %d for field Segments", wireType) 861 } 862 var msglen int 863 for shift := uint(0); ; shift += 7 { 864 if shift >= 64 { 865 return ErrIntOverflowIndex 866 } 867 if iNdEx >= l { 868 return io.ErrUnexpectedEOF 869 } 870 b := dAtA[iNdEx] 871 iNdEx++ 872 msglen |= (int(b) & 0x7F) << shift 873 if b < 0x80 { 874 break 875 } 876 } 877 if msglen < 0 { 878 return ErrInvalidLengthIndex 879 } 880 postIndex := iNdEx + msglen 881 if postIndex > l { 882 return io.ErrUnexpectedEOF 883 } 884 m.Segments = append(m.Segments, &SegmentInfo{}) 885 if err := m.Segments[len(m.Segments)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 886 return err 887 } 888 iNdEx = postIndex 889 case 8: 890 if wireType != 2 { 891 return fmt.Errorf("proto: wrong wireType = %d for field IndexVolumeType", wireType) 892 } 893 var msglen int 894 for shift := uint(0); ; shift += 7 { 895 if shift >= 64 { 896 return ErrIntOverflowIndex 897 } 898 if iNdEx >= l { 899 return io.ErrUnexpectedEOF 900 } 901 b := dAtA[iNdEx] 902 iNdEx++ 903 msglen |= (int(b) & 0x7F) << shift 904 if b < 0x80 { 905 break 906 } 907 } 908 if msglen < 0 { 909 return ErrInvalidLengthIndex 910 } 911 postIndex := iNdEx + msglen 912 if postIndex > l { 913 return io.ErrUnexpectedEOF 914 } 915 if m.IndexVolumeType == nil { 916 m.IndexVolumeType = &google_protobuf.StringValue{} 917 } 918 if err := m.IndexVolumeType.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 919 return err 920 } 921 iNdEx = postIndex 922 default: 923 iNdEx = preIndex 924 skippy, err := skipIndex(dAtA[iNdEx:]) 925 if err != nil { 926 return err 927 } 928 if skippy < 0 { 929 return ErrInvalidLengthIndex 930 } 931 if (iNdEx + skippy) > l { 932 return io.ErrUnexpectedEOF 933 } 934 iNdEx += skippy 935 } 936 } 937 938 if iNdEx > l { 939 return io.ErrUnexpectedEOF 940 } 941 return nil 942 } 943 func (m *SegmentInfo) Unmarshal(dAtA []byte) error { 944 l := len(dAtA) 945 iNdEx := 0 946 for iNdEx < l { 947 preIndex := iNdEx 948 var wire uint64 949 for shift := uint(0); ; shift += 7 { 950 if shift >= 64 { 951 return ErrIntOverflowIndex 952 } 953 if iNdEx >= l { 954 return io.ErrUnexpectedEOF 955 } 956 b := dAtA[iNdEx] 957 iNdEx++ 958 wire |= (uint64(b) & 0x7F) << shift 959 if b < 0x80 { 960 break 961 } 962 } 963 fieldNum := int32(wire >> 3) 964 wireType := int(wire & 0x7) 965 if wireType == 4 { 966 return fmt.Errorf("proto: SegmentInfo: wiretype end group for non-group") 967 } 968 if fieldNum <= 0 { 969 return fmt.Errorf("proto: SegmentInfo: illegal tag %d (wire type %d)", fieldNum, wire) 970 } 971 switch fieldNum { 972 case 1: 973 if wireType != 2 { 974 return fmt.Errorf("proto: wrong wireType = %d for field SegmentType", wireType) 975 } 976 var stringLen uint64 977 for shift := uint(0); ; shift += 7 { 978 if shift >= 64 { 979 return ErrIntOverflowIndex 980 } 981 if iNdEx >= l { 982 return io.ErrUnexpectedEOF 983 } 984 b := dAtA[iNdEx] 985 iNdEx++ 986 stringLen |= (uint64(b) & 0x7F) << shift 987 if b < 0x80 { 988 break 989 } 990 } 991 intStringLen := int(stringLen) 992 if intStringLen < 0 { 993 return ErrInvalidLengthIndex 994 } 995 postIndex := iNdEx + intStringLen 996 if postIndex > l { 997 return io.ErrUnexpectedEOF 998 } 999 m.SegmentType = string(dAtA[iNdEx:postIndex]) 1000 iNdEx = postIndex 1001 case 2: 1002 if wireType != 0 { 1003 return fmt.Errorf("proto: wrong wireType = %d for field MajorVersion", wireType) 1004 } 1005 m.MajorVersion = 0 1006 for shift := uint(0); ; shift += 7 { 1007 if shift >= 64 { 1008 return ErrIntOverflowIndex 1009 } 1010 if iNdEx >= l { 1011 return io.ErrUnexpectedEOF 1012 } 1013 b := dAtA[iNdEx] 1014 iNdEx++ 1015 m.MajorVersion |= (int64(b) & 0x7F) << shift 1016 if b < 0x80 { 1017 break 1018 } 1019 } 1020 case 3: 1021 if wireType != 0 { 1022 return fmt.Errorf("proto: wrong wireType = %d for field MinorVersion", wireType) 1023 } 1024 m.MinorVersion = 0 1025 for shift := uint(0); ; shift += 7 { 1026 if shift >= 64 { 1027 return ErrIntOverflowIndex 1028 } 1029 if iNdEx >= l { 1030 return io.ErrUnexpectedEOF 1031 } 1032 b := dAtA[iNdEx] 1033 iNdEx++ 1034 m.MinorVersion |= (int64(b) & 0x7F) << shift 1035 if b < 0x80 { 1036 break 1037 } 1038 } 1039 case 4: 1040 if wireType != 2 { 1041 return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType) 1042 } 1043 var byteLen int 1044 for shift := uint(0); ; shift += 7 { 1045 if shift >= 64 { 1046 return ErrIntOverflowIndex 1047 } 1048 if iNdEx >= l { 1049 return io.ErrUnexpectedEOF 1050 } 1051 b := dAtA[iNdEx] 1052 iNdEx++ 1053 byteLen |= (int(b) & 0x7F) << shift 1054 if b < 0x80 { 1055 break 1056 } 1057 } 1058 if byteLen < 0 { 1059 return ErrInvalidLengthIndex 1060 } 1061 postIndex := iNdEx + byteLen 1062 if postIndex > l { 1063 return io.ErrUnexpectedEOF 1064 } 1065 m.Metadata = append(m.Metadata[:0], dAtA[iNdEx:postIndex]...) 1066 if m.Metadata == nil { 1067 m.Metadata = []byte{} 1068 } 1069 iNdEx = postIndex 1070 case 5: 1071 if wireType != 2 { 1072 return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType) 1073 } 1074 var msglen int 1075 for shift := uint(0); ; shift += 7 { 1076 if shift >= 64 { 1077 return ErrIntOverflowIndex 1078 } 1079 if iNdEx >= l { 1080 return io.ErrUnexpectedEOF 1081 } 1082 b := dAtA[iNdEx] 1083 iNdEx++ 1084 msglen |= (int(b) & 0x7F) << shift 1085 if b < 0x80 { 1086 break 1087 } 1088 } 1089 if msglen < 0 { 1090 return ErrInvalidLengthIndex 1091 } 1092 postIndex := iNdEx + msglen 1093 if postIndex > l { 1094 return io.ErrUnexpectedEOF 1095 } 1096 m.Files = append(m.Files, &SegmentFileInfo{}) 1097 if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1098 return err 1099 } 1100 iNdEx = postIndex 1101 default: 1102 iNdEx = preIndex 1103 skippy, err := skipIndex(dAtA[iNdEx:]) 1104 if err != nil { 1105 return err 1106 } 1107 if skippy < 0 { 1108 return ErrInvalidLengthIndex 1109 } 1110 if (iNdEx + skippy) > l { 1111 return io.ErrUnexpectedEOF 1112 } 1113 iNdEx += skippy 1114 } 1115 } 1116 1117 if iNdEx > l { 1118 return io.ErrUnexpectedEOF 1119 } 1120 return nil 1121 } 1122 func (m *SegmentFileInfo) Unmarshal(dAtA []byte) error { 1123 l := len(dAtA) 1124 iNdEx := 0 1125 for iNdEx < l { 1126 preIndex := iNdEx 1127 var wire uint64 1128 for shift := uint(0); ; shift += 7 { 1129 if shift >= 64 { 1130 return ErrIntOverflowIndex 1131 } 1132 if iNdEx >= l { 1133 return io.ErrUnexpectedEOF 1134 } 1135 b := dAtA[iNdEx] 1136 iNdEx++ 1137 wire |= (uint64(b) & 0x7F) << shift 1138 if b < 0x80 { 1139 break 1140 } 1141 } 1142 fieldNum := int32(wire >> 3) 1143 wireType := int(wire & 0x7) 1144 if wireType == 4 { 1145 return fmt.Errorf("proto: SegmentFileInfo: wiretype end group for non-group") 1146 } 1147 if fieldNum <= 0 { 1148 return fmt.Errorf("proto: SegmentFileInfo: illegal tag %d (wire type %d)", fieldNum, wire) 1149 } 1150 switch fieldNum { 1151 case 1: 1152 if wireType != 2 { 1153 return fmt.Errorf("proto: wrong wireType = %d for field SegmentFileType", wireType) 1154 } 1155 var stringLen uint64 1156 for shift := uint(0); ; shift += 7 { 1157 if shift >= 64 { 1158 return ErrIntOverflowIndex 1159 } 1160 if iNdEx >= l { 1161 return io.ErrUnexpectedEOF 1162 } 1163 b := dAtA[iNdEx] 1164 iNdEx++ 1165 stringLen |= (uint64(b) & 0x7F) << shift 1166 if b < 0x80 { 1167 break 1168 } 1169 } 1170 intStringLen := int(stringLen) 1171 if intStringLen < 0 { 1172 return ErrInvalidLengthIndex 1173 } 1174 postIndex := iNdEx + intStringLen 1175 if postIndex > l { 1176 return io.ErrUnexpectedEOF 1177 } 1178 m.SegmentFileType = string(dAtA[iNdEx:postIndex]) 1179 iNdEx = postIndex 1180 default: 1181 iNdEx = preIndex 1182 skippy, err := skipIndex(dAtA[iNdEx:]) 1183 if err != nil { 1184 return err 1185 } 1186 if skippy < 0 { 1187 return ErrInvalidLengthIndex 1188 } 1189 if (iNdEx + skippy) > l { 1190 return io.ErrUnexpectedEOF 1191 } 1192 iNdEx += skippy 1193 } 1194 } 1195 1196 if iNdEx > l { 1197 return io.ErrUnexpectedEOF 1198 } 1199 return nil 1200 } 1201 func (m *IndexDigests) Unmarshal(dAtA []byte) error { 1202 l := len(dAtA) 1203 iNdEx := 0 1204 for iNdEx < l { 1205 preIndex := iNdEx 1206 var wire uint64 1207 for shift := uint(0); ; shift += 7 { 1208 if shift >= 64 { 1209 return ErrIntOverflowIndex 1210 } 1211 if iNdEx >= l { 1212 return io.ErrUnexpectedEOF 1213 } 1214 b := dAtA[iNdEx] 1215 iNdEx++ 1216 wire |= (uint64(b) & 0x7F) << shift 1217 if b < 0x80 { 1218 break 1219 } 1220 } 1221 fieldNum := int32(wire >> 3) 1222 wireType := int(wire & 0x7) 1223 if wireType == 4 { 1224 return fmt.Errorf("proto: IndexDigests: wiretype end group for non-group") 1225 } 1226 if fieldNum <= 0 { 1227 return fmt.Errorf("proto: IndexDigests: illegal tag %d (wire type %d)", fieldNum, wire) 1228 } 1229 switch fieldNum { 1230 case 1: 1231 if wireType != 0 { 1232 return fmt.Errorf("proto: wrong wireType = %d for field InfoDigest", wireType) 1233 } 1234 m.InfoDigest = 0 1235 for shift := uint(0); ; shift += 7 { 1236 if shift >= 64 { 1237 return ErrIntOverflowIndex 1238 } 1239 if iNdEx >= l { 1240 return io.ErrUnexpectedEOF 1241 } 1242 b := dAtA[iNdEx] 1243 iNdEx++ 1244 m.InfoDigest |= (uint32(b) & 0x7F) << shift 1245 if b < 0x80 { 1246 break 1247 } 1248 } 1249 case 2: 1250 if wireType != 2 { 1251 return fmt.Errorf("proto: wrong wireType = %d for field SegmentDigests", wireType) 1252 } 1253 var msglen int 1254 for shift := uint(0); ; shift += 7 { 1255 if shift >= 64 { 1256 return ErrIntOverflowIndex 1257 } 1258 if iNdEx >= l { 1259 return io.ErrUnexpectedEOF 1260 } 1261 b := dAtA[iNdEx] 1262 iNdEx++ 1263 msglen |= (int(b) & 0x7F) << shift 1264 if b < 0x80 { 1265 break 1266 } 1267 } 1268 if msglen < 0 { 1269 return ErrInvalidLengthIndex 1270 } 1271 postIndex := iNdEx + msglen 1272 if postIndex > l { 1273 return io.ErrUnexpectedEOF 1274 } 1275 m.SegmentDigests = append(m.SegmentDigests, &SegmentDigest{}) 1276 if err := m.SegmentDigests[len(m.SegmentDigests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1277 return err 1278 } 1279 iNdEx = postIndex 1280 default: 1281 iNdEx = preIndex 1282 skippy, err := skipIndex(dAtA[iNdEx:]) 1283 if err != nil { 1284 return err 1285 } 1286 if skippy < 0 { 1287 return ErrInvalidLengthIndex 1288 } 1289 if (iNdEx + skippy) > l { 1290 return io.ErrUnexpectedEOF 1291 } 1292 iNdEx += skippy 1293 } 1294 } 1295 1296 if iNdEx > l { 1297 return io.ErrUnexpectedEOF 1298 } 1299 return nil 1300 } 1301 func (m *SegmentDigest) Unmarshal(dAtA []byte) error { 1302 l := len(dAtA) 1303 iNdEx := 0 1304 for iNdEx < l { 1305 preIndex := iNdEx 1306 var wire uint64 1307 for shift := uint(0); ; shift += 7 { 1308 if shift >= 64 { 1309 return ErrIntOverflowIndex 1310 } 1311 if iNdEx >= l { 1312 return io.ErrUnexpectedEOF 1313 } 1314 b := dAtA[iNdEx] 1315 iNdEx++ 1316 wire |= (uint64(b) & 0x7F) << shift 1317 if b < 0x80 { 1318 break 1319 } 1320 } 1321 fieldNum := int32(wire >> 3) 1322 wireType := int(wire & 0x7) 1323 if wireType == 4 { 1324 return fmt.Errorf("proto: SegmentDigest: wiretype end group for non-group") 1325 } 1326 if fieldNum <= 0 { 1327 return fmt.Errorf("proto: SegmentDigest: illegal tag %d (wire type %d)", fieldNum, wire) 1328 } 1329 switch fieldNum { 1330 case 1: 1331 if wireType != 2 { 1332 return fmt.Errorf("proto: wrong wireType = %d for field SegmentType", wireType) 1333 } 1334 var stringLen uint64 1335 for shift := uint(0); ; shift += 7 { 1336 if shift >= 64 { 1337 return ErrIntOverflowIndex 1338 } 1339 if iNdEx >= l { 1340 return io.ErrUnexpectedEOF 1341 } 1342 b := dAtA[iNdEx] 1343 iNdEx++ 1344 stringLen |= (uint64(b) & 0x7F) << shift 1345 if b < 0x80 { 1346 break 1347 } 1348 } 1349 intStringLen := int(stringLen) 1350 if intStringLen < 0 { 1351 return ErrInvalidLengthIndex 1352 } 1353 postIndex := iNdEx + intStringLen 1354 if postIndex > l { 1355 return io.ErrUnexpectedEOF 1356 } 1357 m.SegmentType = string(dAtA[iNdEx:postIndex]) 1358 iNdEx = postIndex 1359 case 2: 1360 if wireType != 2 { 1361 return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType) 1362 } 1363 var msglen int 1364 for shift := uint(0); ; shift += 7 { 1365 if shift >= 64 { 1366 return ErrIntOverflowIndex 1367 } 1368 if iNdEx >= l { 1369 return io.ErrUnexpectedEOF 1370 } 1371 b := dAtA[iNdEx] 1372 iNdEx++ 1373 msglen |= (int(b) & 0x7F) << shift 1374 if b < 0x80 { 1375 break 1376 } 1377 } 1378 if msglen < 0 { 1379 return ErrInvalidLengthIndex 1380 } 1381 postIndex := iNdEx + msglen 1382 if postIndex > l { 1383 return io.ErrUnexpectedEOF 1384 } 1385 m.Files = append(m.Files, &SegmentFileDigest{}) 1386 if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1387 return err 1388 } 1389 iNdEx = postIndex 1390 default: 1391 iNdEx = preIndex 1392 skippy, err := skipIndex(dAtA[iNdEx:]) 1393 if err != nil { 1394 return err 1395 } 1396 if skippy < 0 { 1397 return ErrInvalidLengthIndex 1398 } 1399 if (iNdEx + skippy) > l { 1400 return io.ErrUnexpectedEOF 1401 } 1402 iNdEx += skippy 1403 } 1404 } 1405 1406 if iNdEx > l { 1407 return io.ErrUnexpectedEOF 1408 } 1409 return nil 1410 } 1411 func (m *SegmentFileDigest) Unmarshal(dAtA []byte) error { 1412 l := len(dAtA) 1413 iNdEx := 0 1414 for iNdEx < l { 1415 preIndex := iNdEx 1416 var wire uint64 1417 for shift := uint(0); ; shift += 7 { 1418 if shift >= 64 { 1419 return ErrIntOverflowIndex 1420 } 1421 if iNdEx >= l { 1422 return io.ErrUnexpectedEOF 1423 } 1424 b := dAtA[iNdEx] 1425 iNdEx++ 1426 wire |= (uint64(b) & 0x7F) << shift 1427 if b < 0x80 { 1428 break 1429 } 1430 } 1431 fieldNum := int32(wire >> 3) 1432 wireType := int(wire & 0x7) 1433 if wireType == 4 { 1434 return fmt.Errorf("proto: SegmentFileDigest: wiretype end group for non-group") 1435 } 1436 if fieldNum <= 0 { 1437 return fmt.Errorf("proto: SegmentFileDigest: illegal tag %d (wire type %d)", fieldNum, wire) 1438 } 1439 switch fieldNum { 1440 case 1: 1441 if wireType != 2 { 1442 return fmt.Errorf("proto: wrong wireType = %d for field SegmentFileType", wireType) 1443 } 1444 var stringLen uint64 1445 for shift := uint(0); ; shift += 7 { 1446 if shift >= 64 { 1447 return ErrIntOverflowIndex 1448 } 1449 if iNdEx >= l { 1450 return io.ErrUnexpectedEOF 1451 } 1452 b := dAtA[iNdEx] 1453 iNdEx++ 1454 stringLen |= (uint64(b) & 0x7F) << shift 1455 if b < 0x80 { 1456 break 1457 } 1458 } 1459 intStringLen := int(stringLen) 1460 if intStringLen < 0 { 1461 return ErrInvalidLengthIndex 1462 } 1463 postIndex := iNdEx + intStringLen 1464 if postIndex > l { 1465 return io.ErrUnexpectedEOF 1466 } 1467 m.SegmentFileType = string(dAtA[iNdEx:postIndex]) 1468 iNdEx = postIndex 1469 case 2: 1470 if wireType != 0 { 1471 return fmt.Errorf("proto: wrong wireType = %d for field Digest", wireType) 1472 } 1473 m.Digest = 0 1474 for shift := uint(0); ; shift += 7 { 1475 if shift >= 64 { 1476 return ErrIntOverflowIndex 1477 } 1478 if iNdEx >= l { 1479 return io.ErrUnexpectedEOF 1480 } 1481 b := dAtA[iNdEx] 1482 iNdEx++ 1483 m.Digest |= (uint32(b) & 0x7F) << shift 1484 if b < 0x80 { 1485 break 1486 } 1487 } 1488 default: 1489 iNdEx = preIndex 1490 skippy, err := skipIndex(dAtA[iNdEx:]) 1491 if err != nil { 1492 return err 1493 } 1494 if skippy < 0 { 1495 return ErrInvalidLengthIndex 1496 } 1497 if (iNdEx + skippy) > l { 1498 return io.ErrUnexpectedEOF 1499 } 1500 iNdEx += skippy 1501 } 1502 } 1503 1504 if iNdEx > l { 1505 return io.ErrUnexpectedEOF 1506 } 1507 return nil 1508 } 1509 func skipIndex(dAtA []byte) (n int, err error) { 1510 l := len(dAtA) 1511 iNdEx := 0 1512 for iNdEx < l { 1513 var wire uint64 1514 for shift := uint(0); ; shift += 7 { 1515 if shift >= 64 { 1516 return 0, ErrIntOverflowIndex 1517 } 1518 if iNdEx >= l { 1519 return 0, io.ErrUnexpectedEOF 1520 } 1521 b := dAtA[iNdEx] 1522 iNdEx++ 1523 wire |= (uint64(b) & 0x7F) << shift 1524 if b < 0x80 { 1525 break 1526 } 1527 } 1528 wireType := int(wire & 0x7) 1529 switch wireType { 1530 case 0: 1531 for shift := uint(0); ; shift += 7 { 1532 if shift >= 64 { 1533 return 0, ErrIntOverflowIndex 1534 } 1535 if iNdEx >= l { 1536 return 0, io.ErrUnexpectedEOF 1537 } 1538 iNdEx++ 1539 if dAtA[iNdEx-1] < 0x80 { 1540 break 1541 } 1542 } 1543 return iNdEx, nil 1544 case 1: 1545 iNdEx += 8 1546 return iNdEx, nil 1547 case 2: 1548 var length int 1549 for shift := uint(0); ; shift += 7 { 1550 if shift >= 64 { 1551 return 0, ErrIntOverflowIndex 1552 } 1553 if iNdEx >= l { 1554 return 0, io.ErrUnexpectedEOF 1555 } 1556 b := dAtA[iNdEx] 1557 iNdEx++ 1558 length |= (int(b) & 0x7F) << shift 1559 if b < 0x80 { 1560 break 1561 } 1562 } 1563 iNdEx += length 1564 if length < 0 { 1565 return 0, ErrInvalidLengthIndex 1566 } 1567 return iNdEx, nil 1568 case 3: 1569 for { 1570 var innerWire uint64 1571 var start int = iNdEx 1572 for shift := uint(0); ; shift += 7 { 1573 if shift >= 64 { 1574 return 0, ErrIntOverflowIndex 1575 } 1576 if iNdEx >= l { 1577 return 0, io.ErrUnexpectedEOF 1578 } 1579 b := dAtA[iNdEx] 1580 iNdEx++ 1581 innerWire |= (uint64(b) & 0x7F) << shift 1582 if b < 0x80 { 1583 break 1584 } 1585 } 1586 innerWireType := int(innerWire & 0x7) 1587 if innerWireType == 4 { 1588 break 1589 } 1590 next, err := skipIndex(dAtA[start:]) 1591 if err != nil { 1592 return 0, err 1593 } 1594 iNdEx = start + next 1595 } 1596 return iNdEx, nil 1597 case 4: 1598 return iNdEx, nil 1599 case 5: 1600 iNdEx += 4 1601 return iNdEx, nil 1602 default: 1603 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1604 } 1605 } 1606 panic("unreachable") 1607 } 1608 1609 var ( 1610 ErrInvalidLengthIndex = fmt.Errorf("proto: negative length found during unmarshaling") 1611 ErrIntOverflowIndex = fmt.Errorf("proto: integer overflow") 1612 ) 1613 1614 func init() { 1615 proto.RegisterFile("github.com/m3db/m3/src/dbnode/generated/proto/index/index.proto", fileDescriptorIndex) 1616 } 1617 1618 var fileDescriptorIndex = []byte{ 1619 // 484 bytes of a gzipped FileDescriptorProto 1620 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xcf, 0x8a, 0xdb, 0x30, 1621 0x10, 0xc6, 0x6b, 0xbb, 0x49, 0xb3, 0xe3, 0xa4, 0x69, 0x45, 0x59, 0xcc, 0xb2, 0x18, 0xe3, 0x93, 1622 0x0f, 0xc5, 0x86, 0xe4, 0xd8, 0x42, 0xa1, 0x94, 0x85, 0xbd, 0x3a, 0xdb, 0xdc, 0xe5, 0x58, 0x71, 1623 0xd4, 0xda, 0x92, 0x91, 0x14, 0xfa, 0xe7, 0x29, 0xfa, 0x4a, 0xa5, 0x97, 0x1e, 0xfb, 0x08, 0x25, 1624 0x7d, 0x91, 0x22, 0xc9, 0x9b, 0x38, 0xc9, 0x1e, 0xf6, 0x12, 0xf8, 0xbe, 0xf9, 0xe4, 0x99, 0xf9, 1625 0x65, 0xe0, 0x5d, 0x45, 0xd5, 0x66, 0x5b, 0xa4, 0x2b, 0xde, 0x64, 0xcd, 0xbc, 0x2c, 0xb2, 0x66, 1626 0x9e, 0x49, 0xb1, 0xca, 0xca, 0x82, 0xf1, 0x92, 0x64, 0x15, 0x61, 0x44, 0x60, 0x45, 0xca, 0xac, 1627 0x15, 0x5c, 0xf1, 0x8c, 0xb2, 0x92, 0x7c, 0xb5, 0xbf, 0xa9, 0x71, 0xd0, 0xc0, 0x88, 0xab, 0xb0, 1628 0xe2, 0xbc, 0xaa, 0x89, 0x8d, 0x15, 0xdb, 0x75, 0xf6, 0x45, 0xe0, 0xb6, 0x25, 0x42, 0xda, 0x58, 1629 0xfc, 0xcb, 0x85, 0xe9, 0xad, 0x4e, 0x2e, 0x79, 0xbd, 0x6d, 0xc8, 0x2d, 0x5b, 0x73, 0x14, 0xc3, 1630 0xb8, 0xc1, 0x9f, 0xb8, 0x58, 0x12, 0x21, 0x29, 0x67, 0x81, 0x13, 0x39, 0x89, 0x97, 0x1f, 0x79, 1631 0x28, 0x04, 0x28, 0x6a, 0xbe, 0xfa, 0xbc, 0x50, 0x58, 0xa8, 0xc0, 0x35, 0x89, 0x9e, 0x83, 0xae, 1632 0xe1, 0xc2, 0x2a, 0xfa, 0x9d, 0x04, 0x9e, 0x29, 0x1f, 0x0c, 0x74, 0x05, 0xa3, 0x35, 0xad, 0xc9, 1633 0xdd, 0xb7, 0x96, 0x04, 0x4f, 0x4d, 0x71, 0xaf, 0xd1, 0x25, 0x0c, 0xe5, 0x06, 0x8b, 0x52, 0x06, 1634 0x83, 0xc8, 0x4b, 0x26, 0x79, 0xa7, 0xf4, 0x54, 0x92, 0xe1, 0x56, 0x6e, 0xb8, 0xba, 0xa3, 0x0d, 1635 0x09, 0x86, 0x76, 0xaa, 0xbe, 0x87, 0x52, 0x18, 0x49, 0x52, 0x35, 0x84, 0x29, 0x19, 0x3c, 0x8b, 1636 0xbc, 0xc4, 0x9f, 0xa1, 0xd4, 0x42, 0x59, 0x58, 0x5b, 0xef, 0x97, 0xef, 0x33, 0xe8, 0x06, 0xa6, 1637 0xf4, 0xb0, 0xbc, 0x19, 0x67, 0x14, 0x39, 0x89, 0x3f, 0xbb, 0x4e, 0x2d, 0xb7, 0xf4, 0x9e, 0x5b, 1638 0xba, 0x50, 0x82, 0xb2, 0x6a, 0x89, 0xeb, 0x2d, 0xc9, 0x4f, 0x1f, 0xc5, 0x3f, 0x1d, 0xf0, 0x7b, 1639 0x1d, 0x50, 0x04, 0x7e, 0xd7, 0xc3, 0x7c, 0x53, 0x03, 0xbc, 0xc8, 0xfb, 0xd6, 0x19, 0x63, 0xf7, 1640 0x01, 0xc6, 0x3a, 0x43, 0xd9, 0x21, 0xe3, 0x75, 0x99, 0x9e, 0xa7, 0x49, 0x36, 0x44, 0xe1, 0x12, 1641 0x2b, 0x6c, 0x48, 0x8e, 0xf3, 0xbd, 0x46, 0xaf, 0x61, 0xa0, 0xa9, 0x5a, 0x90, 0xfe, 0xec, 0xf2, 1642 0x18, 0xc5, 0x0d, 0xad, 0xcd, 0xdf, 0x9d, 0xdb, 0x50, 0xfc, 0x06, 0xa6, 0x27, 0x15, 0x94, 0xc0, 1643 0x54, 0x1e, 0xac, 0xde, 0x2a, 0xa7, 0x76, 0x5c, 0xc3, 0xd8, 0x5c, 0xd1, 0x07, 0x5a, 0x11, 0xa9, 1644 0xa4, 0x3e, 0x0f, 0xca, 0xd6, 0xdc, 0x4a, 0xf3, 0x68, 0x92, 0xf7, 0x1c, 0xf4, 0x16, 0x9e, 0x77, 1645 0x9f, 0xe8, 0x5e, 0x04, 0xae, 0x99, 0xf1, 0xd5, 0xf1, 0x8c, 0xb6, 0x98, 0x9f, 0x64, 0x63, 0x0c, 1646 0x93, 0xa3, 0xc0, 0x23, 0x78, 0xa7, 0xf7, 0x2c, 0x6c, 0x9f, 0xe0, 0x9c, 0x45, 0xd7, 0xab, 0xa3, 1647 0xf1, 0x11, 0x5e, 0x9e, 0xd5, 0x1e, 0xcf, 0x43, 0x1f, 0x71, 0x69, 0x77, 0x77, 0xcd, 0xee, 0x9d, 1648 0x7a, 0xff, 0xe2, 0xf7, 0x2e, 0x74, 0xfe, 0xec, 0x42, 0xe7, 0xef, 0x2e, 0x74, 0x7e, 0xfc, 0x0b, 1649 0x9f, 0x14, 0x43, 0x73, 0x61, 0xf3, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x48, 0x32, 0xee, 0x47, 1650 0xf1, 0x03, 0x00, 0x00, 1651 }