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