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