github.com/m3db/m3@v1.5.0/src/aggregator/generated/proto/flush/flush.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/m3db/m3/src/aggregator/generated/proto/flush/flush.proto 3 4 // Copyright (c) 2018 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 flush is a generated protocol buffer package. 26 27 It is generated from these files: 28 github.com/m3db/m3/src/aggregator/generated/proto/flush/flush.proto 29 30 It has these top-level messages: 31 ShardSetFlushTimes 32 ShardFlushTimes 33 ForwardedFlushTimesForResolution 34 */ 35 package flush 36 37 import proto "github.com/gogo/protobuf/proto" 38 import fmt "fmt" 39 import math "math" 40 41 import io "io" 42 43 // Reference imports to suppress errors if they are not otherwise used. 44 var _ = proto.Marshal 45 var _ = fmt.Errorf 46 var _ = math.Inf 47 48 // This is a compile-time assertion to ensure that this generated file 49 // is compatible with the proto package it is being compiled against. 50 // A compilation error at this line likely means your copy of the 51 // proto package needs to be updated. 52 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 53 54 type ShardSetFlushTimes struct { 55 ByShard map[uint32]*ShardFlushTimes `protobuf:"bytes,1,rep,name=by_shard,json=byShard" json:"by_shard,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` 56 } 57 58 func (m *ShardSetFlushTimes) Reset() { *m = ShardSetFlushTimes{} } 59 func (m *ShardSetFlushTimes) String() string { return proto.CompactTextString(m) } 60 func (*ShardSetFlushTimes) ProtoMessage() {} 61 func (*ShardSetFlushTimes) Descriptor() ([]byte, []int) { return fileDescriptorFlush, []int{0} } 62 63 func (m *ShardSetFlushTimes) GetByShard() map[uint32]*ShardFlushTimes { 64 if m != nil { 65 return m.ByShard 66 } 67 return nil 68 } 69 70 type ShardFlushTimes struct { 71 StandardByResolution map[int64]int64 `protobuf:"bytes,1,rep,name=standard_by_resolution,json=standardByResolution" json:"standard_by_resolution,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 72 Tombstoned bool `protobuf:"varint,2,opt,name=tombstoned,proto3" json:"tombstoned,omitempty"` 73 ForwardedByResolution map[int64]*ForwardedFlushTimesForResolution `protobuf:"bytes,3,rep,name=forwarded_by_resolution,json=forwardedByResolution" json:"forwarded_by_resolution,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"` 74 TimedByResolution map[int64]int64 `protobuf:"bytes,4,rep,name=timed_by_resolution,json=timedByResolution" json:"timed_by_resolution,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 75 } 76 77 func (m *ShardFlushTimes) Reset() { *m = ShardFlushTimes{} } 78 func (m *ShardFlushTimes) String() string { return proto.CompactTextString(m) } 79 func (*ShardFlushTimes) ProtoMessage() {} 80 func (*ShardFlushTimes) Descriptor() ([]byte, []int) { return fileDescriptorFlush, []int{1} } 81 82 func (m *ShardFlushTimes) GetStandardByResolution() map[int64]int64 { 83 if m != nil { 84 return m.StandardByResolution 85 } 86 return nil 87 } 88 89 func (m *ShardFlushTimes) GetTombstoned() bool { 90 if m != nil { 91 return m.Tombstoned 92 } 93 return false 94 } 95 96 func (m *ShardFlushTimes) GetForwardedByResolution() map[int64]*ForwardedFlushTimesForResolution { 97 if m != nil { 98 return m.ForwardedByResolution 99 } 100 return nil 101 } 102 103 func (m *ShardFlushTimes) GetTimedByResolution() map[int64]int64 { 104 if m != nil { 105 return m.TimedByResolution 106 } 107 return nil 108 } 109 110 type ForwardedFlushTimesForResolution struct { 111 ByNumForwardedTimes map[int32]int64 `protobuf:"bytes,1,rep,name=by_num_forwarded_times,json=byNumForwardedTimes" json:"by_num_forwarded_times,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 112 } 113 114 func (m *ForwardedFlushTimesForResolution) Reset() { *m = ForwardedFlushTimesForResolution{} } 115 func (m *ForwardedFlushTimesForResolution) String() string { return proto.CompactTextString(m) } 116 func (*ForwardedFlushTimesForResolution) ProtoMessage() {} 117 func (*ForwardedFlushTimesForResolution) Descriptor() ([]byte, []int) { 118 return fileDescriptorFlush, []int{2} 119 } 120 121 func (m *ForwardedFlushTimesForResolution) GetByNumForwardedTimes() map[int32]int64 { 122 if m != nil { 123 return m.ByNumForwardedTimes 124 } 125 return nil 126 } 127 128 func init() { 129 proto.RegisterType((*ShardSetFlushTimes)(nil), "ShardSetFlushTimes") 130 proto.RegisterType((*ShardFlushTimes)(nil), "ShardFlushTimes") 131 proto.RegisterType((*ForwardedFlushTimesForResolution)(nil), "ForwardedFlushTimesForResolution") 132 } 133 func (m *ShardSetFlushTimes) Marshal() (dAtA []byte, err error) { 134 size := m.Size() 135 dAtA = make([]byte, size) 136 n, err := m.MarshalTo(dAtA) 137 if err != nil { 138 return nil, err 139 } 140 return dAtA[:n], nil 141 } 142 143 func (m *ShardSetFlushTimes) MarshalTo(dAtA []byte) (int, error) { 144 var i int 145 _ = i 146 var l int 147 _ = l 148 if len(m.ByShard) > 0 { 149 for k, _ := range m.ByShard { 150 dAtA[i] = 0xa 151 i++ 152 v := m.ByShard[k] 153 msgSize := 0 154 if v != nil { 155 msgSize = v.Size() 156 msgSize += 1 + sovFlush(uint64(msgSize)) 157 } 158 mapSize := 1 + sovFlush(uint64(k)) + msgSize 159 i = encodeVarintFlush(dAtA, i, uint64(mapSize)) 160 dAtA[i] = 0x8 161 i++ 162 i = encodeVarintFlush(dAtA, i, uint64(k)) 163 if v != nil { 164 dAtA[i] = 0x12 165 i++ 166 i = encodeVarintFlush(dAtA, i, uint64(v.Size())) 167 n1, err := v.MarshalTo(dAtA[i:]) 168 if err != nil { 169 return 0, err 170 } 171 i += n1 172 } 173 } 174 } 175 return i, nil 176 } 177 178 func (m *ShardFlushTimes) Marshal() (dAtA []byte, err error) { 179 size := m.Size() 180 dAtA = make([]byte, size) 181 n, err := m.MarshalTo(dAtA) 182 if err != nil { 183 return nil, err 184 } 185 return dAtA[:n], nil 186 } 187 188 func (m *ShardFlushTimes) MarshalTo(dAtA []byte) (int, error) { 189 var i int 190 _ = i 191 var l int 192 _ = l 193 if len(m.StandardByResolution) > 0 { 194 for k, _ := range m.StandardByResolution { 195 dAtA[i] = 0xa 196 i++ 197 v := m.StandardByResolution[k] 198 mapSize := 1 + sovFlush(uint64(k)) + 1 + sovFlush(uint64(v)) 199 i = encodeVarintFlush(dAtA, i, uint64(mapSize)) 200 dAtA[i] = 0x8 201 i++ 202 i = encodeVarintFlush(dAtA, i, uint64(k)) 203 dAtA[i] = 0x10 204 i++ 205 i = encodeVarintFlush(dAtA, i, uint64(v)) 206 } 207 } 208 if m.Tombstoned { 209 dAtA[i] = 0x10 210 i++ 211 if m.Tombstoned { 212 dAtA[i] = 1 213 } else { 214 dAtA[i] = 0 215 } 216 i++ 217 } 218 if len(m.ForwardedByResolution) > 0 { 219 for k, _ := range m.ForwardedByResolution { 220 dAtA[i] = 0x1a 221 i++ 222 v := m.ForwardedByResolution[k] 223 msgSize := 0 224 if v != nil { 225 msgSize = v.Size() 226 msgSize += 1 + sovFlush(uint64(msgSize)) 227 } 228 mapSize := 1 + sovFlush(uint64(k)) + msgSize 229 i = encodeVarintFlush(dAtA, i, uint64(mapSize)) 230 dAtA[i] = 0x8 231 i++ 232 i = encodeVarintFlush(dAtA, i, uint64(k)) 233 if v != nil { 234 dAtA[i] = 0x12 235 i++ 236 i = encodeVarintFlush(dAtA, i, uint64(v.Size())) 237 n2, err := v.MarshalTo(dAtA[i:]) 238 if err != nil { 239 return 0, err 240 } 241 i += n2 242 } 243 } 244 } 245 if len(m.TimedByResolution) > 0 { 246 for k, _ := range m.TimedByResolution { 247 dAtA[i] = 0x22 248 i++ 249 v := m.TimedByResolution[k] 250 mapSize := 1 + sovFlush(uint64(k)) + 1 + sovFlush(uint64(v)) 251 i = encodeVarintFlush(dAtA, i, uint64(mapSize)) 252 dAtA[i] = 0x8 253 i++ 254 i = encodeVarintFlush(dAtA, i, uint64(k)) 255 dAtA[i] = 0x10 256 i++ 257 i = encodeVarintFlush(dAtA, i, uint64(v)) 258 } 259 } 260 return i, nil 261 } 262 263 func (m *ForwardedFlushTimesForResolution) Marshal() (dAtA []byte, err error) { 264 size := m.Size() 265 dAtA = make([]byte, size) 266 n, err := m.MarshalTo(dAtA) 267 if err != nil { 268 return nil, err 269 } 270 return dAtA[:n], nil 271 } 272 273 func (m *ForwardedFlushTimesForResolution) MarshalTo(dAtA []byte) (int, error) { 274 var i int 275 _ = i 276 var l int 277 _ = l 278 if len(m.ByNumForwardedTimes) > 0 { 279 for k, _ := range m.ByNumForwardedTimes { 280 dAtA[i] = 0xa 281 i++ 282 v := m.ByNumForwardedTimes[k] 283 mapSize := 1 + sovFlush(uint64(k)) + 1 + sovFlush(uint64(v)) 284 i = encodeVarintFlush(dAtA, i, uint64(mapSize)) 285 dAtA[i] = 0x8 286 i++ 287 i = encodeVarintFlush(dAtA, i, uint64(k)) 288 dAtA[i] = 0x10 289 i++ 290 i = encodeVarintFlush(dAtA, i, uint64(v)) 291 } 292 } 293 return i, nil 294 } 295 296 func encodeVarintFlush(dAtA []byte, offset int, v uint64) int { 297 for v >= 1<<7 { 298 dAtA[offset] = uint8(v&0x7f | 0x80) 299 v >>= 7 300 offset++ 301 } 302 dAtA[offset] = uint8(v) 303 return offset + 1 304 } 305 func (m *ShardSetFlushTimes) Size() (n int) { 306 var l int 307 _ = l 308 if len(m.ByShard) > 0 { 309 for k, v := range m.ByShard { 310 _ = k 311 _ = v 312 l = 0 313 if v != nil { 314 l = v.Size() 315 l += 1 + sovFlush(uint64(l)) 316 } 317 mapEntrySize := 1 + sovFlush(uint64(k)) + l 318 n += mapEntrySize + 1 + sovFlush(uint64(mapEntrySize)) 319 } 320 } 321 return n 322 } 323 324 func (m *ShardFlushTimes) Size() (n int) { 325 var l int 326 _ = l 327 if len(m.StandardByResolution) > 0 { 328 for k, v := range m.StandardByResolution { 329 _ = k 330 _ = v 331 mapEntrySize := 1 + sovFlush(uint64(k)) + 1 + sovFlush(uint64(v)) 332 n += mapEntrySize + 1 + sovFlush(uint64(mapEntrySize)) 333 } 334 } 335 if m.Tombstoned { 336 n += 2 337 } 338 if len(m.ForwardedByResolution) > 0 { 339 for k, v := range m.ForwardedByResolution { 340 _ = k 341 _ = v 342 l = 0 343 if v != nil { 344 l = v.Size() 345 l += 1 + sovFlush(uint64(l)) 346 } 347 mapEntrySize := 1 + sovFlush(uint64(k)) + l 348 n += mapEntrySize + 1 + sovFlush(uint64(mapEntrySize)) 349 } 350 } 351 if len(m.TimedByResolution) > 0 { 352 for k, v := range m.TimedByResolution { 353 _ = k 354 _ = v 355 mapEntrySize := 1 + sovFlush(uint64(k)) + 1 + sovFlush(uint64(v)) 356 n += mapEntrySize + 1 + sovFlush(uint64(mapEntrySize)) 357 } 358 } 359 return n 360 } 361 362 func (m *ForwardedFlushTimesForResolution) Size() (n int) { 363 var l int 364 _ = l 365 if len(m.ByNumForwardedTimes) > 0 { 366 for k, v := range m.ByNumForwardedTimes { 367 _ = k 368 _ = v 369 mapEntrySize := 1 + sovFlush(uint64(k)) + 1 + sovFlush(uint64(v)) 370 n += mapEntrySize + 1 + sovFlush(uint64(mapEntrySize)) 371 } 372 } 373 return n 374 } 375 376 func sovFlush(x uint64) (n int) { 377 for { 378 n++ 379 x >>= 7 380 if x == 0 { 381 break 382 } 383 } 384 return n 385 } 386 func sozFlush(x uint64) (n int) { 387 return sovFlush(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 388 } 389 func (m *ShardSetFlushTimes) Unmarshal(dAtA []byte) error { 390 l := len(dAtA) 391 iNdEx := 0 392 for iNdEx < l { 393 preIndex := iNdEx 394 var wire uint64 395 for shift := uint(0); ; shift += 7 { 396 if shift >= 64 { 397 return ErrIntOverflowFlush 398 } 399 if iNdEx >= l { 400 return io.ErrUnexpectedEOF 401 } 402 b := dAtA[iNdEx] 403 iNdEx++ 404 wire |= (uint64(b) & 0x7F) << shift 405 if b < 0x80 { 406 break 407 } 408 } 409 fieldNum := int32(wire >> 3) 410 wireType := int(wire & 0x7) 411 if wireType == 4 { 412 return fmt.Errorf("proto: ShardSetFlushTimes: wiretype end group for non-group") 413 } 414 if fieldNum <= 0 { 415 return fmt.Errorf("proto: ShardSetFlushTimes: illegal tag %d (wire type %d)", fieldNum, wire) 416 } 417 switch fieldNum { 418 case 1: 419 if wireType != 2 { 420 return fmt.Errorf("proto: wrong wireType = %d for field ByShard", wireType) 421 } 422 var msglen int 423 for shift := uint(0); ; shift += 7 { 424 if shift >= 64 { 425 return ErrIntOverflowFlush 426 } 427 if iNdEx >= l { 428 return io.ErrUnexpectedEOF 429 } 430 b := dAtA[iNdEx] 431 iNdEx++ 432 msglen |= (int(b) & 0x7F) << shift 433 if b < 0x80 { 434 break 435 } 436 } 437 if msglen < 0 { 438 return ErrInvalidLengthFlush 439 } 440 postIndex := iNdEx + msglen 441 if postIndex > l { 442 return io.ErrUnexpectedEOF 443 } 444 if m.ByShard == nil { 445 m.ByShard = make(map[uint32]*ShardFlushTimes) 446 } 447 var mapkey uint32 448 var mapvalue *ShardFlushTimes 449 for iNdEx < postIndex { 450 entryPreIndex := iNdEx 451 var wire uint64 452 for shift := uint(0); ; shift += 7 { 453 if shift >= 64 { 454 return ErrIntOverflowFlush 455 } 456 if iNdEx >= l { 457 return io.ErrUnexpectedEOF 458 } 459 b := dAtA[iNdEx] 460 iNdEx++ 461 wire |= (uint64(b) & 0x7F) << shift 462 if b < 0x80 { 463 break 464 } 465 } 466 fieldNum := int32(wire >> 3) 467 if fieldNum == 1 { 468 for shift := uint(0); ; shift += 7 { 469 if shift >= 64 { 470 return ErrIntOverflowFlush 471 } 472 if iNdEx >= l { 473 return io.ErrUnexpectedEOF 474 } 475 b := dAtA[iNdEx] 476 iNdEx++ 477 mapkey |= (uint32(b) & 0x7F) << shift 478 if b < 0x80 { 479 break 480 } 481 } 482 } else if fieldNum == 2 { 483 var mapmsglen int 484 for shift := uint(0); ; shift += 7 { 485 if shift >= 64 { 486 return ErrIntOverflowFlush 487 } 488 if iNdEx >= l { 489 return io.ErrUnexpectedEOF 490 } 491 b := dAtA[iNdEx] 492 iNdEx++ 493 mapmsglen |= (int(b) & 0x7F) << shift 494 if b < 0x80 { 495 break 496 } 497 } 498 if mapmsglen < 0 { 499 return ErrInvalidLengthFlush 500 } 501 postmsgIndex := iNdEx + mapmsglen 502 if mapmsglen < 0 { 503 return ErrInvalidLengthFlush 504 } 505 if postmsgIndex > l { 506 return io.ErrUnexpectedEOF 507 } 508 mapvalue = &ShardFlushTimes{} 509 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 510 return err 511 } 512 iNdEx = postmsgIndex 513 } else { 514 iNdEx = entryPreIndex 515 skippy, err := skipFlush(dAtA[iNdEx:]) 516 if err != nil { 517 return err 518 } 519 if skippy < 0 { 520 return ErrInvalidLengthFlush 521 } 522 if (iNdEx + skippy) > postIndex { 523 return io.ErrUnexpectedEOF 524 } 525 iNdEx += skippy 526 } 527 } 528 m.ByShard[mapkey] = mapvalue 529 iNdEx = postIndex 530 default: 531 iNdEx = preIndex 532 skippy, err := skipFlush(dAtA[iNdEx:]) 533 if err != nil { 534 return err 535 } 536 if skippy < 0 { 537 return ErrInvalidLengthFlush 538 } 539 if (iNdEx + skippy) > l { 540 return io.ErrUnexpectedEOF 541 } 542 iNdEx += skippy 543 } 544 } 545 546 if iNdEx > l { 547 return io.ErrUnexpectedEOF 548 } 549 return nil 550 } 551 func (m *ShardFlushTimes) Unmarshal(dAtA []byte) error { 552 l := len(dAtA) 553 iNdEx := 0 554 for iNdEx < l { 555 preIndex := iNdEx 556 var wire uint64 557 for shift := uint(0); ; shift += 7 { 558 if shift >= 64 { 559 return ErrIntOverflowFlush 560 } 561 if iNdEx >= l { 562 return io.ErrUnexpectedEOF 563 } 564 b := dAtA[iNdEx] 565 iNdEx++ 566 wire |= (uint64(b) & 0x7F) << shift 567 if b < 0x80 { 568 break 569 } 570 } 571 fieldNum := int32(wire >> 3) 572 wireType := int(wire & 0x7) 573 if wireType == 4 { 574 return fmt.Errorf("proto: ShardFlushTimes: wiretype end group for non-group") 575 } 576 if fieldNum <= 0 { 577 return fmt.Errorf("proto: ShardFlushTimes: illegal tag %d (wire type %d)", fieldNum, wire) 578 } 579 switch fieldNum { 580 case 1: 581 if wireType != 2 { 582 return fmt.Errorf("proto: wrong wireType = %d for field StandardByResolution", wireType) 583 } 584 var msglen int 585 for shift := uint(0); ; shift += 7 { 586 if shift >= 64 { 587 return ErrIntOverflowFlush 588 } 589 if iNdEx >= l { 590 return io.ErrUnexpectedEOF 591 } 592 b := dAtA[iNdEx] 593 iNdEx++ 594 msglen |= (int(b) & 0x7F) << shift 595 if b < 0x80 { 596 break 597 } 598 } 599 if msglen < 0 { 600 return ErrInvalidLengthFlush 601 } 602 postIndex := iNdEx + msglen 603 if postIndex > l { 604 return io.ErrUnexpectedEOF 605 } 606 if m.StandardByResolution == nil { 607 m.StandardByResolution = make(map[int64]int64) 608 } 609 var mapkey int64 610 var mapvalue int64 611 for iNdEx < postIndex { 612 entryPreIndex := iNdEx 613 var wire uint64 614 for shift := uint(0); ; shift += 7 { 615 if shift >= 64 { 616 return ErrIntOverflowFlush 617 } 618 if iNdEx >= l { 619 return io.ErrUnexpectedEOF 620 } 621 b := dAtA[iNdEx] 622 iNdEx++ 623 wire |= (uint64(b) & 0x7F) << shift 624 if b < 0x80 { 625 break 626 } 627 } 628 fieldNum := int32(wire >> 3) 629 if fieldNum == 1 { 630 for shift := uint(0); ; shift += 7 { 631 if shift >= 64 { 632 return ErrIntOverflowFlush 633 } 634 if iNdEx >= l { 635 return io.ErrUnexpectedEOF 636 } 637 b := dAtA[iNdEx] 638 iNdEx++ 639 mapkey |= (int64(b) & 0x7F) << shift 640 if b < 0x80 { 641 break 642 } 643 } 644 } else if fieldNum == 2 { 645 for shift := uint(0); ; shift += 7 { 646 if shift >= 64 { 647 return ErrIntOverflowFlush 648 } 649 if iNdEx >= l { 650 return io.ErrUnexpectedEOF 651 } 652 b := dAtA[iNdEx] 653 iNdEx++ 654 mapvalue |= (int64(b) & 0x7F) << shift 655 if b < 0x80 { 656 break 657 } 658 } 659 } else { 660 iNdEx = entryPreIndex 661 skippy, err := skipFlush(dAtA[iNdEx:]) 662 if err != nil { 663 return err 664 } 665 if skippy < 0 { 666 return ErrInvalidLengthFlush 667 } 668 if (iNdEx + skippy) > postIndex { 669 return io.ErrUnexpectedEOF 670 } 671 iNdEx += skippy 672 } 673 } 674 m.StandardByResolution[mapkey] = mapvalue 675 iNdEx = postIndex 676 case 2: 677 if wireType != 0 { 678 return fmt.Errorf("proto: wrong wireType = %d for field Tombstoned", wireType) 679 } 680 var v int 681 for shift := uint(0); ; shift += 7 { 682 if shift >= 64 { 683 return ErrIntOverflowFlush 684 } 685 if iNdEx >= l { 686 return io.ErrUnexpectedEOF 687 } 688 b := dAtA[iNdEx] 689 iNdEx++ 690 v |= (int(b) & 0x7F) << shift 691 if b < 0x80 { 692 break 693 } 694 } 695 m.Tombstoned = bool(v != 0) 696 case 3: 697 if wireType != 2 { 698 return fmt.Errorf("proto: wrong wireType = %d for field ForwardedByResolution", wireType) 699 } 700 var msglen int 701 for shift := uint(0); ; shift += 7 { 702 if shift >= 64 { 703 return ErrIntOverflowFlush 704 } 705 if iNdEx >= l { 706 return io.ErrUnexpectedEOF 707 } 708 b := dAtA[iNdEx] 709 iNdEx++ 710 msglen |= (int(b) & 0x7F) << shift 711 if b < 0x80 { 712 break 713 } 714 } 715 if msglen < 0 { 716 return ErrInvalidLengthFlush 717 } 718 postIndex := iNdEx + msglen 719 if postIndex > l { 720 return io.ErrUnexpectedEOF 721 } 722 if m.ForwardedByResolution == nil { 723 m.ForwardedByResolution = make(map[int64]*ForwardedFlushTimesForResolution) 724 } 725 var mapkey int64 726 var mapvalue *ForwardedFlushTimesForResolution 727 for iNdEx < postIndex { 728 entryPreIndex := iNdEx 729 var wire uint64 730 for shift := uint(0); ; shift += 7 { 731 if shift >= 64 { 732 return ErrIntOverflowFlush 733 } 734 if iNdEx >= l { 735 return io.ErrUnexpectedEOF 736 } 737 b := dAtA[iNdEx] 738 iNdEx++ 739 wire |= (uint64(b) & 0x7F) << shift 740 if b < 0x80 { 741 break 742 } 743 } 744 fieldNum := int32(wire >> 3) 745 if fieldNum == 1 { 746 for shift := uint(0); ; shift += 7 { 747 if shift >= 64 { 748 return ErrIntOverflowFlush 749 } 750 if iNdEx >= l { 751 return io.ErrUnexpectedEOF 752 } 753 b := dAtA[iNdEx] 754 iNdEx++ 755 mapkey |= (int64(b) & 0x7F) << shift 756 if b < 0x80 { 757 break 758 } 759 } 760 } else if fieldNum == 2 { 761 var mapmsglen int 762 for shift := uint(0); ; shift += 7 { 763 if shift >= 64 { 764 return ErrIntOverflowFlush 765 } 766 if iNdEx >= l { 767 return io.ErrUnexpectedEOF 768 } 769 b := dAtA[iNdEx] 770 iNdEx++ 771 mapmsglen |= (int(b) & 0x7F) << shift 772 if b < 0x80 { 773 break 774 } 775 } 776 if mapmsglen < 0 { 777 return ErrInvalidLengthFlush 778 } 779 postmsgIndex := iNdEx + mapmsglen 780 if mapmsglen < 0 { 781 return ErrInvalidLengthFlush 782 } 783 if postmsgIndex > l { 784 return io.ErrUnexpectedEOF 785 } 786 mapvalue = &ForwardedFlushTimesForResolution{} 787 if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil { 788 return err 789 } 790 iNdEx = postmsgIndex 791 } else { 792 iNdEx = entryPreIndex 793 skippy, err := skipFlush(dAtA[iNdEx:]) 794 if err != nil { 795 return err 796 } 797 if skippy < 0 { 798 return ErrInvalidLengthFlush 799 } 800 if (iNdEx + skippy) > postIndex { 801 return io.ErrUnexpectedEOF 802 } 803 iNdEx += skippy 804 } 805 } 806 m.ForwardedByResolution[mapkey] = mapvalue 807 iNdEx = postIndex 808 case 4: 809 if wireType != 2 { 810 return fmt.Errorf("proto: wrong wireType = %d for field TimedByResolution", wireType) 811 } 812 var msglen int 813 for shift := uint(0); ; shift += 7 { 814 if shift >= 64 { 815 return ErrIntOverflowFlush 816 } 817 if iNdEx >= l { 818 return io.ErrUnexpectedEOF 819 } 820 b := dAtA[iNdEx] 821 iNdEx++ 822 msglen |= (int(b) & 0x7F) << shift 823 if b < 0x80 { 824 break 825 } 826 } 827 if msglen < 0 { 828 return ErrInvalidLengthFlush 829 } 830 postIndex := iNdEx + msglen 831 if postIndex > l { 832 return io.ErrUnexpectedEOF 833 } 834 if m.TimedByResolution == nil { 835 m.TimedByResolution = make(map[int64]int64) 836 } 837 var mapkey int64 838 var mapvalue int64 839 for iNdEx < postIndex { 840 entryPreIndex := iNdEx 841 var wire uint64 842 for shift := uint(0); ; shift += 7 { 843 if shift >= 64 { 844 return ErrIntOverflowFlush 845 } 846 if iNdEx >= l { 847 return io.ErrUnexpectedEOF 848 } 849 b := dAtA[iNdEx] 850 iNdEx++ 851 wire |= (uint64(b) & 0x7F) << shift 852 if b < 0x80 { 853 break 854 } 855 } 856 fieldNum := int32(wire >> 3) 857 if fieldNum == 1 { 858 for shift := uint(0); ; shift += 7 { 859 if shift >= 64 { 860 return ErrIntOverflowFlush 861 } 862 if iNdEx >= l { 863 return io.ErrUnexpectedEOF 864 } 865 b := dAtA[iNdEx] 866 iNdEx++ 867 mapkey |= (int64(b) & 0x7F) << shift 868 if b < 0x80 { 869 break 870 } 871 } 872 } else if fieldNum == 2 { 873 for shift := uint(0); ; shift += 7 { 874 if shift >= 64 { 875 return ErrIntOverflowFlush 876 } 877 if iNdEx >= l { 878 return io.ErrUnexpectedEOF 879 } 880 b := dAtA[iNdEx] 881 iNdEx++ 882 mapvalue |= (int64(b) & 0x7F) << shift 883 if b < 0x80 { 884 break 885 } 886 } 887 } else { 888 iNdEx = entryPreIndex 889 skippy, err := skipFlush(dAtA[iNdEx:]) 890 if err != nil { 891 return err 892 } 893 if skippy < 0 { 894 return ErrInvalidLengthFlush 895 } 896 if (iNdEx + skippy) > postIndex { 897 return io.ErrUnexpectedEOF 898 } 899 iNdEx += skippy 900 } 901 } 902 m.TimedByResolution[mapkey] = mapvalue 903 iNdEx = postIndex 904 default: 905 iNdEx = preIndex 906 skippy, err := skipFlush(dAtA[iNdEx:]) 907 if err != nil { 908 return err 909 } 910 if skippy < 0 { 911 return ErrInvalidLengthFlush 912 } 913 if (iNdEx + skippy) > l { 914 return io.ErrUnexpectedEOF 915 } 916 iNdEx += skippy 917 } 918 } 919 920 if iNdEx > l { 921 return io.ErrUnexpectedEOF 922 } 923 return nil 924 } 925 func (m *ForwardedFlushTimesForResolution) Unmarshal(dAtA []byte) error { 926 l := len(dAtA) 927 iNdEx := 0 928 for iNdEx < l { 929 preIndex := iNdEx 930 var wire uint64 931 for shift := uint(0); ; shift += 7 { 932 if shift >= 64 { 933 return ErrIntOverflowFlush 934 } 935 if iNdEx >= l { 936 return io.ErrUnexpectedEOF 937 } 938 b := dAtA[iNdEx] 939 iNdEx++ 940 wire |= (uint64(b) & 0x7F) << shift 941 if b < 0x80 { 942 break 943 } 944 } 945 fieldNum := int32(wire >> 3) 946 wireType := int(wire & 0x7) 947 if wireType == 4 { 948 return fmt.Errorf("proto: ForwardedFlushTimesForResolution: wiretype end group for non-group") 949 } 950 if fieldNum <= 0 { 951 return fmt.Errorf("proto: ForwardedFlushTimesForResolution: illegal tag %d (wire type %d)", fieldNum, wire) 952 } 953 switch fieldNum { 954 case 1: 955 if wireType != 2 { 956 return fmt.Errorf("proto: wrong wireType = %d for field ByNumForwardedTimes", wireType) 957 } 958 var msglen int 959 for shift := uint(0); ; shift += 7 { 960 if shift >= 64 { 961 return ErrIntOverflowFlush 962 } 963 if iNdEx >= l { 964 return io.ErrUnexpectedEOF 965 } 966 b := dAtA[iNdEx] 967 iNdEx++ 968 msglen |= (int(b) & 0x7F) << shift 969 if b < 0x80 { 970 break 971 } 972 } 973 if msglen < 0 { 974 return ErrInvalidLengthFlush 975 } 976 postIndex := iNdEx + msglen 977 if postIndex > l { 978 return io.ErrUnexpectedEOF 979 } 980 if m.ByNumForwardedTimes == nil { 981 m.ByNumForwardedTimes = make(map[int32]int64) 982 } 983 var mapkey int32 984 var mapvalue int64 985 for iNdEx < postIndex { 986 entryPreIndex := iNdEx 987 var wire uint64 988 for shift := uint(0); ; shift += 7 { 989 if shift >= 64 { 990 return ErrIntOverflowFlush 991 } 992 if iNdEx >= l { 993 return io.ErrUnexpectedEOF 994 } 995 b := dAtA[iNdEx] 996 iNdEx++ 997 wire |= (uint64(b) & 0x7F) << shift 998 if b < 0x80 { 999 break 1000 } 1001 } 1002 fieldNum := int32(wire >> 3) 1003 if fieldNum == 1 { 1004 for shift := uint(0); ; shift += 7 { 1005 if shift >= 64 { 1006 return ErrIntOverflowFlush 1007 } 1008 if iNdEx >= l { 1009 return io.ErrUnexpectedEOF 1010 } 1011 b := dAtA[iNdEx] 1012 iNdEx++ 1013 mapkey |= (int32(b) & 0x7F) << shift 1014 if b < 0x80 { 1015 break 1016 } 1017 } 1018 } else if fieldNum == 2 { 1019 for shift := uint(0); ; shift += 7 { 1020 if shift >= 64 { 1021 return ErrIntOverflowFlush 1022 } 1023 if iNdEx >= l { 1024 return io.ErrUnexpectedEOF 1025 } 1026 b := dAtA[iNdEx] 1027 iNdEx++ 1028 mapvalue |= (int64(b) & 0x7F) << shift 1029 if b < 0x80 { 1030 break 1031 } 1032 } 1033 } else { 1034 iNdEx = entryPreIndex 1035 skippy, err := skipFlush(dAtA[iNdEx:]) 1036 if err != nil { 1037 return err 1038 } 1039 if skippy < 0 { 1040 return ErrInvalidLengthFlush 1041 } 1042 if (iNdEx + skippy) > postIndex { 1043 return io.ErrUnexpectedEOF 1044 } 1045 iNdEx += skippy 1046 } 1047 } 1048 m.ByNumForwardedTimes[mapkey] = mapvalue 1049 iNdEx = postIndex 1050 default: 1051 iNdEx = preIndex 1052 skippy, err := skipFlush(dAtA[iNdEx:]) 1053 if err != nil { 1054 return err 1055 } 1056 if skippy < 0 { 1057 return ErrInvalidLengthFlush 1058 } 1059 if (iNdEx + skippy) > l { 1060 return io.ErrUnexpectedEOF 1061 } 1062 iNdEx += skippy 1063 } 1064 } 1065 1066 if iNdEx > l { 1067 return io.ErrUnexpectedEOF 1068 } 1069 return nil 1070 } 1071 func skipFlush(dAtA []byte) (n int, err error) { 1072 l := len(dAtA) 1073 iNdEx := 0 1074 for iNdEx < l { 1075 var wire uint64 1076 for shift := uint(0); ; shift += 7 { 1077 if shift >= 64 { 1078 return 0, ErrIntOverflowFlush 1079 } 1080 if iNdEx >= l { 1081 return 0, io.ErrUnexpectedEOF 1082 } 1083 b := dAtA[iNdEx] 1084 iNdEx++ 1085 wire |= (uint64(b) & 0x7F) << shift 1086 if b < 0x80 { 1087 break 1088 } 1089 } 1090 wireType := int(wire & 0x7) 1091 switch wireType { 1092 case 0: 1093 for shift := uint(0); ; shift += 7 { 1094 if shift >= 64 { 1095 return 0, ErrIntOverflowFlush 1096 } 1097 if iNdEx >= l { 1098 return 0, io.ErrUnexpectedEOF 1099 } 1100 iNdEx++ 1101 if dAtA[iNdEx-1] < 0x80 { 1102 break 1103 } 1104 } 1105 return iNdEx, nil 1106 case 1: 1107 iNdEx += 8 1108 return iNdEx, nil 1109 case 2: 1110 var length int 1111 for shift := uint(0); ; shift += 7 { 1112 if shift >= 64 { 1113 return 0, ErrIntOverflowFlush 1114 } 1115 if iNdEx >= l { 1116 return 0, io.ErrUnexpectedEOF 1117 } 1118 b := dAtA[iNdEx] 1119 iNdEx++ 1120 length |= (int(b) & 0x7F) << shift 1121 if b < 0x80 { 1122 break 1123 } 1124 } 1125 iNdEx += length 1126 if length < 0 { 1127 return 0, ErrInvalidLengthFlush 1128 } 1129 return iNdEx, nil 1130 case 3: 1131 for { 1132 var innerWire uint64 1133 var start int = iNdEx 1134 for shift := uint(0); ; shift += 7 { 1135 if shift >= 64 { 1136 return 0, ErrIntOverflowFlush 1137 } 1138 if iNdEx >= l { 1139 return 0, io.ErrUnexpectedEOF 1140 } 1141 b := dAtA[iNdEx] 1142 iNdEx++ 1143 innerWire |= (uint64(b) & 0x7F) << shift 1144 if b < 0x80 { 1145 break 1146 } 1147 } 1148 innerWireType := int(innerWire & 0x7) 1149 if innerWireType == 4 { 1150 break 1151 } 1152 next, err := skipFlush(dAtA[start:]) 1153 if err != nil { 1154 return 0, err 1155 } 1156 iNdEx = start + next 1157 } 1158 return iNdEx, nil 1159 case 4: 1160 return iNdEx, nil 1161 case 5: 1162 iNdEx += 4 1163 return iNdEx, nil 1164 default: 1165 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1166 } 1167 } 1168 panic("unreachable") 1169 } 1170 1171 var ( 1172 ErrInvalidLengthFlush = fmt.Errorf("proto: negative length found during unmarshaling") 1173 ErrIntOverflowFlush = fmt.Errorf("proto: integer overflow") 1174 ) 1175 1176 func init() { 1177 proto.RegisterFile("github.com/m3db/m3/src/aggregator/generated/proto/flush/flush.proto", fileDescriptorFlush) 1178 } 1179 1180 var fileDescriptorFlush = []byte{ 1181 // 445 bytes of a gzipped FileDescriptorProto 1182 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xc1, 0x8e, 0xd3, 0x30, 1183 0x10, 0xc5, 0x9b, 0x5d, 0x58, 0xcd, 0x82, 0x28, 0xde, 0xa5, 0x94, 0x1c, 0xa2, 0xd0, 0x03, 0x54, 1184 0x20, 0x25, 0xd2, 0xf6, 0x00, 0x5a, 0x6e, 0x05, 0xc2, 0x05, 0x71, 0x48, 0x91, 0x38, 0x06, 0xbb, 1185 0x71, 0xd3, 0x68, 0xeb, 0x18, 0xd9, 0x0e, 0xc8, 0x7f, 0xc1, 0x1f, 0xf0, 0x3b, 0x5c, 0x90, 0xb8, 1186 0x73, 0x41, 0xe5, 0x47, 0x50, 0x92, 0xb2, 0x09, 0x49, 0xaa, 0x8a, 0x8b, 0x95, 0xcc, 0x7b, 0x79, 1187 0xf3, 0x66, 0x5e, 0x0c, 0x2f, 0x92, 0x54, 0xaf, 0x72, 0xea, 0x2d, 0x04, 0xf7, 0xf9, 0x34, 0xa6, 1188 0x3e, 0x9f, 0xfa, 0x4a, 0x2e, 0x7c, 0x92, 0x24, 0x92, 0x25, 0x44, 0x0b, 0xe9, 0x27, 0x2c, 0x63, 1189 0x92, 0x68, 0x16, 0xfb, 0x1f, 0xa5, 0xd0, 0xc2, 0x5f, 0xae, 0x73, 0xb5, 0xaa, 0x4e, 0xaf, 0xac, 1190 0x8c, 0xbf, 0x22, 0xc0, 0xf3, 0x15, 0x91, 0xf1, 0x9c, 0xe9, 0xa0, 0xa8, 0xbf, 0x4b, 0x39, 0x53, 1191 0xf8, 0x39, 0x1c, 0x53, 0x13, 0xa9, 0x02, 0x18, 0x21, 0xd7, 0x9a, 0x9c, 0x9c, 0xbb, 0x5e, 0x97, 1192 0xe6, 0xcd, 0x4c, 0x59, 0x7c, 0x95, 0x69, 0x69, 0xc2, 0x1b, 0xb4, 0x7a, 0xb3, 0xdf, 0xc0, 0xcd, 1193 0x26, 0x80, 0x07, 0x60, 0x5d, 0x32, 0x33, 0x42, 0x2e, 0x9a, 0xdc, 0x0a, 0x8b, 0x47, 0xfc, 0x10, 1194 0x8e, 0x3e, 0x91, 0x75, 0xce, 0x46, 0x07, 0x2e, 0x9a, 0x9c, 0x9c, 0x0f, 0x2a, 0xed, 0x5a, 0x38, 1195 0xac, 0xe0, 0x8b, 0x83, 0x67, 0x68, 0xfc, 0xfd, 0x10, 0x6e, 0xb7, 0x60, 0xfc, 0x01, 0x86, 0x4a, 1196 0x93, 0x2c, 0x26, 0x32, 0x8e, 0xa8, 0x89, 0x24, 0x53, 0x62, 0x9d, 0xeb, 0x54, 0x64, 0x5b, 0xb3, 1197 0x8f, 0xdb, 0x82, 0xde, 0x7c, 0x4b, 0x9f, 0x99, 0xf0, 0x8a, 0x5c, 0xd9, 0x3e, 0x53, 0x3d, 0x10, 1198 0x76, 0x00, 0xb4, 0xe0, 0x54, 0x69, 0x91, 0xb1, 0xb8, 0xb4, 0x79, 0x1c, 0x36, 0x2a, 0x78, 0x01, 1199 0xf7, 0x96, 0x42, 0x7e, 0x26, 0x32, 0x66, 0x6d, 0x0b, 0x56, 0x69, 0xe1, 0x49, 0xc7, 0x42, 0xf0, 1200 0x97, 0xdf, 0xf5, 0x70, 0x77, 0xd9, 0x87, 0xe1, 0xf7, 0x70, 0xaa, 0x53, 0xde, 0x69, 0x70, 0x58, 1201 0x36, 0x78, 0xd4, 0x69, 0x50, 0x9c, 0x3d, 0xe2, 0x77, 0x74, 0xbb, 0x6e, 0xbf, 0x86, 0xfb, 0x3b, 1202 0x17, 0xd2, 0x8c, 0xcb, 0xaa, 0xe2, 0x3a, 0x6b, 0xc6, 0x65, 0x35, 0xc2, 0xb1, 0x2f, 0xc1, 0xde, 1203 0x3d, 0x56, 0x8f, 0xd2, 0xd3, 0x7f, 0x83, 0x7f, 0x50, 0x2f, 0xa5, 0x9e, 0x23, 0x10, 0xb2, 0x16, 1204 0x6a, 0x36, 0x7b, 0x09, 0xc3, 0xfe, 0x11, 0xff, 0xc7, 0xf2, 0xf8, 0x27, 0x02, 0x77, 0x5f, 0x57, 1205 0x2c, 0x60, 0x48, 0x4d, 0x94, 0xe5, 0x3c, 0xaa, 0x53, 0x2e, 0xd6, 0xa8, 0xb6, 0x3f, 0xd8, 0xc5, 1206 0x5e, 0xe3, 0xde, 0xcc, 0xbc, 0xcd, 0xf9, 0x15, 0xab, 0x24, 0x54, 0x79, 0x9c, 0xd2, 0x2e, 0x62, 1207 0x07, 0x30, 0xda, 0xf5, 0x41, 0x73, 0xba, 0xa3, 0x3d, 0xd3, 0xcd, 0x06, 0xdf, 0x36, 0x0e, 0xfa, 1208 0xb1, 0x71, 0xd0, 0xaf, 0x8d, 0x83, 0xbe, 0xfc, 0x76, 0xae, 0xd1, 0xeb, 0xe5, 0x45, 0x9f, 0xfe, 1209 0x09, 0x00, 0x00, 0xff, 0xff, 0x79, 0x43, 0x3d, 0x62, 0x2f, 0x04, 0x00, 0x00, 1210 }