github.com/m3db/m3@v1.5.0/src/msg/generated/proto/topicpb/topic.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/m3db/m3/src/msg/generated/proto/topicpb/topic.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 topicpb is a generated protocol buffer package. 26 27 It is generated from these files: 28 github.com/m3db/m3/src/msg/generated/proto/topicpb/topic.proto 29 30 It has these top-level messages: 31 Topic 32 ConsumerService 33 ServiceID 34 */ 35 package topicpb 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 ConsumptionType int32 55 56 const ( 57 ConsumptionType_UNKNOWN ConsumptionType = 0 58 ConsumptionType_SHARED ConsumptionType = 1 59 ConsumptionType_REPLICATED ConsumptionType = 2 60 ) 61 62 var ConsumptionType_name = map[int32]string{ 63 0: "UNKNOWN", 64 1: "SHARED", 65 2: "REPLICATED", 66 } 67 var ConsumptionType_value = map[string]int32{ 68 "UNKNOWN": 0, 69 "SHARED": 1, 70 "REPLICATED": 2, 71 } 72 73 func (x ConsumptionType) String() string { 74 return proto.EnumName(ConsumptionType_name, int32(x)) 75 } 76 func (ConsumptionType) EnumDescriptor() ([]byte, []int) { return fileDescriptorTopic, []int{0} } 77 78 type Topic struct { 79 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 80 NumberOfShards uint32 `protobuf:"varint,2,opt,name=number_of_shards,json=numberOfShards,proto3" json:"number_of_shards,omitempty"` 81 ConsumerServices []*ConsumerService `protobuf:"bytes,3,rep,name=consumer_services,json=consumerServices" json:"consumer_services,omitempty"` 82 } 83 84 func (m *Topic) Reset() { *m = Topic{} } 85 func (m *Topic) String() string { return proto.CompactTextString(m) } 86 func (*Topic) ProtoMessage() {} 87 func (*Topic) Descriptor() ([]byte, []int) { return fileDescriptorTopic, []int{0} } 88 89 func (m *Topic) GetName() string { 90 if m != nil { 91 return m.Name 92 } 93 return "" 94 } 95 96 func (m *Topic) GetNumberOfShards() uint32 { 97 if m != nil { 98 return m.NumberOfShards 99 } 100 return 0 101 } 102 103 func (m *Topic) GetConsumerServices() []*ConsumerService { 104 if m != nil { 105 return m.ConsumerServices 106 } 107 return nil 108 } 109 110 type ConsumerService struct { 111 ServiceId *ServiceID `protobuf:"bytes,1,opt,name=service_id,json=serviceId" json:"service_id,omitempty"` 112 ConsumptionType ConsumptionType `protobuf:"varint,2,opt,name=consumption_type,json=consumptionType,proto3,enum=topicpb.ConsumptionType" json:"consumption_type,omitempty"` 113 MessageTtlNanos int64 `protobuf:"varint,3,opt,name=message_ttl_nanos,json=messageTtlNanos,proto3" json:"message_ttl_nanos,omitempty"` 114 } 115 116 func (m *ConsumerService) Reset() { *m = ConsumerService{} } 117 func (m *ConsumerService) String() string { return proto.CompactTextString(m) } 118 func (*ConsumerService) ProtoMessage() {} 119 func (*ConsumerService) Descriptor() ([]byte, []int) { return fileDescriptorTopic, []int{1} } 120 121 func (m *ConsumerService) GetServiceId() *ServiceID { 122 if m != nil { 123 return m.ServiceId 124 } 125 return nil 126 } 127 128 func (m *ConsumerService) GetConsumptionType() ConsumptionType { 129 if m != nil { 130 return m.ConsumptionType 131 } 132 return ConsumptionType_UNKNOWN 133 } 134 135 func (m *ConsumerService) GetMessageTtlNanos() int64 { 136 if m != nil { 137 return m.MessageTtlNanos 138 } 139 return 0 140 } 141 142 type ServiceID struct { 143 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 144 Environment string `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"` 145 Zone string `protobuf:"bytes,3,opt,name=zone,proto3" json:"zone,omitempty"` 146 } 147 148 func (m *ServiceID) Reset() { *m = ServiceID{} } 149 func (m *ServiceID) String() string { return proto.CompactTextString(m) } 150 func (*ServiceID) ProtoMessage() {} 151 func (*ServiceID) Descriptor() ([]byte, []int) { return fileDescriptorTopic, []int{2} } 152 153 func (m *ServiceID) GetName() string { 154 if m != nil { 155 return m.Name 156 } 157 return "" 158 } 159 160 func (m *ServiceID) GetEnvironment() string { 161 if m != nil { 162 return m.Environment 163 } 164 return "" 165 } 166 167 func (m *ServiceID) GetZone() string { 168 if m != nil { 169 return m.Zone 170 } 171 return "" 172 } 173 174 func init() { 175 proto.RegisterType((*Topic)(nil), "topicpb.Topic") 176 proto.RegisterType((*ConsumerService)(nil), "topicpb.ConsumerService") 177 proto.RegisterType((*ServiceID)(nil), "topicpb.ServiceID") 178 proto.RegisterEnum("topicpb.ConsumptionType", ConsumptionType_name, ConsumptionType_value) 179 } 180 func (m *Topic) Marshal() (dAtA []byte, err error) { 181 size := m.Size() 182 dAtA = make([]byte, size) 183 n, err := m.MarshalTo(dAtA) 184 if err != nil { 185 return nil, err 186 } 187 return dAtA[:n], nil 188 } 189 190 func (m *Topic) MarshalTo(dAtA []byte) (int, error) { 191 var i int 192 _ = i 193 var l int 194 _ = l 195 if len(m.Name) > 0 { 196 dAtA[i] = 0xa 197 i++ 198 i = encodeVarintTopic(dAtA, i, uint64(len(m.Name))) 199 i += copy(dAtA[i:], m.Name) 200 } 201 if m.NumberOfShards != 0 { 202 dAtA[i] = 0x10 203 i++ 204 i = encodeVarintTopic(dAtA, i, uint64(m.NumberOfShards)) 205 } 206 if len(m.ConsumerServices) > 0 { 207 for _, msg := range m.ConsumerServices { 208 dAtA[i] = 0x1a 209 i++ 210 i = encodeVarintTopic(dAtA, i, uint64(msg.Size())) 211 n, err := msg.MarshalTo(dAtA[i:]) 212 if err != nil { 213 return 0, err 214 } 215 i += n 216 } 217 } 218 return i, nil 219 } 220 221 func (m *ConsumerService) Marshal() (dAtA []byte, err error) { 222 size := m.Size() 223 dAtA = make([]byte, size) 224 n, err := m.MarshalTo(dAtA) 225 if err != nil { 226 return nil, err 227 } 228 return dAtA[:n], nil 229 } 230 231 func (m *ConsumerService) MarshalTo(dAtA []byte) (int, error) { 232 var i int 233 _ = i 234 var l int 235 _ = l 236 if m.ServiceId != nil { 237 dAtA[i] = 0xa 238 i++ 239 i = encodeVarintTopic(dAtA, i, uint64(m.ServiceId.Size())) 240 n1, err := m.ServiceId.MarshalTo(dAtA[i:]) 241 if err != nil { 242 return 0, err 243 } 244 i += n1 245 } 246 if m.ConsumptionType != 0 { 247 dAtA[i] = 0x10 248 i++ 249 i = encodeVarintTopic(dAtA, i, uint64(m.ConsumptionType)) 250 } 251 if m.MessageTtlNanos != 0 { 252 dAtA[i] = 0x18 253 i++ 254 i = encodeVarintTopic(dAtA, i, uint64(m.MessageTtlNanos)) 255 } 256 return i, nil 257 } 258 259 func (m *ServiceID) Marshal() (dAtA []byte, err error) { 260 size := m.Size() 261 dAtA = make([]byte, size) 262 n, err := m.MarshalTo(dAtA) 263 if err != nil { 264 return nil, err 265 } 266 return dAtA[:n], nil 267 } 268 269 func (m *ServiceID) MarshalTo(dAtA []byte) (int, error) { 270 var i int 271 _ = i 272 var l int 273 _ = l 274 if len(m.Name) > 0 { 275 dAtA[i] = 0xa 276 i++ 277 i = encodeVarintTopic(dAtA, i, uint64(len(m.Name))) 278 i += copy(dAtA[i:], m.Name) 279 } 280 if len(m.Environment) > 0 { 281 dAtA[i] = 0x12 282 i++ 283 i = encodeVarintTopic(dAtA, i, uint64(len(m.Environment))) 284 i += copy(dAtA[i:], m.Environment) 285 } 286 if len(m.Zone) > 0 { 287 dAtA[i] = 0x1a 288 i++ 289 i = encodeVarintTopic(dAtA, i, uint64(len(m.Zone))) 290 i += copy(dAtA[i:], m.Zone) 291 } 292 return i, nil 293 } 294 295 func encodeVarintTopic(dAtA []byte, offset int, v uint64) int { 296 for v >= 1<<7 { 297 dAtA[offset] = uint8(v&0x7f | 0x80) 298 v >>= 7 299 offset++ 300 } 301 dAtA[offset] = uint8(v) 302 return offset + 1 303 } 304 func (m *Topic) Size() (n int) { 305 var l int 306 _ = l 307 l = len(m.Name) 308 if l > 0 { 309 n += 1 + l + sovTopic(uint64(l)) 310 } 311 if m.NumberOfShards != 0 { 312 n += 1 + sovTopic(uint64(m.NumberOfShards)) 313 } 314 if len(m.ConsumerServices) > 0 { 315 for _, e := range m.ConsumerServices { 316 l = e.Size() 317 n += 1 + l + sovTopic(uint64(l)) 318 } 319 } 320 return n 321 } 322 323 func (m *ConsumerService) Size() (n int) { 324 var l int 325 _ = l 326 if m.ServiceId != nil { 327 l = m.ServiceId.Size() 328 n += 1 + l + sovTopic(uint64(l)) 329 } 330 if m.ConsumptionType != 0 { 331 n += 1 + sovTopic(uint64(m.ConsumptionType)) 332 } 333 if m.MessageTtlNanos != 0 { 334 n += 1 + sovTopic(uint64(m.MessageTtlNanos)) 335 } 336 return n 337 } 338 339 func (m *ServiceID) Size() (n int) { 340 var l int 341 _ = l 342 l = len(m.Name) 343 if l > 0 { 344 n += 1 + l + sovTopic(uint64(l)) 345 } 346 l = len(m.Environment) 347 if l > 0 { 348 n += 1 + l + sovTopic(uint64(l)) 349 } 350 l = len(m.Zone) 351 if l > 0 { 352 n += 1 + l + sovTopic(uint64(l)) 353 } 354 return n 355 } 356 357 func sovTopic(x uint64) (n int) { 358 for { 359 n++ 360 x >>= 7 361 if x == 0 { 362 break 363 } 364 } 365 return n 366 } 367 func sozTopic(x uint64) (n int) { 368 return sovTopic(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 369 } 370 func (m *Topic) Unmarshal(dAtA []byte) error { 371 l := len(dAtA) 372 iNdEx := 0 373 for iNdEx < l { 374 preIndex := iNdEx 375 var wire uint64 376 for shift := uint(0); ; shift += 7 { 377 if shift >= 64 { 378 return ErrIntOverflowTopic 379 } 380 if iNdEx >= l { 381 return io.ErrUnexpectedEOF 382 } 383 b := dAtA[iNdEx] 384 iNdEx++ 385 wire |= (uint64(b) & 0x7F) << shift 386 if b < 0x80 { 387 break 388 } 389 } 390 fieldNum := int32(wire >> 3) 391 wireType := int(wire & 0x7) 392 if wireType == 4 { 393 return fmt.Errorf("proto: Topic: wiretype end group for non-group") 394 } 395 if fieldNum <= 0 { 396 return fmt.Errorf("proto: Topic: illegal tag %d (wire type %d)", fieldNum, wire) 397 } 398 switch fieldNum { 399 case 1: 400 if wireType != 2 { 401 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 402 } 403 var stringLen uint64 404 for shift := uint(0); ; shift += 7 { 405 if shift >= 64 { 406 return ErrIntOverflowTopic 407 } 408 if iNdEx >= l { 409 return io.ErrUnexpectedEOF 410 } 411 b := dAtA[iNdEx] 412 iNdEx++ 413 stringLen |= (uint64(b) & 0x7F) << shift 414 if b < 0x80 { 415 break 416 } 417 } 418 intStringLen := int(stringLen) 419 if intStringLen < 0 { 420 return ErrInvalidLengthTopic 421 } 422 postIndex := iNdEx + intStringLen 423 if postIndex > l { 424 return io.ErrUnexpectedEOF 425 } 426 m.Name = string(dAtA[iNdEx:postIndex]) 427 iNdEx = postIndex 428 case 2: 429 if wireType != 0 { 430 return fmt.Errorf("proto: wrong wireType = %d for field NumberOfShards", wireType) 431 } 432 m.NumberOfShards = 0 433 for shift := uint(0); ; shift += 7 { 434 if shift >= 64 { 435 return ErrIntOverflowTopic 436 } 437 if iNdEx >= l { 438 return io.ErrUnexpectedEOF 439 } 440 b := dAtA[iNdEx] 441 iNdEx++ 442 m.NumberOfShards |= (uint32(b) & 0x7F) << shift 443 if b < 0x80 { 444 break 445 } 446 } 447 case 3: 448 if wireType != 2 { 449 return fmt.Errorf("proto: wrong wireType = %d for field ConsumerServices", wireType) 450 } 451 var msglen int 452 for shift := uint(0); ; shift += 7 { 453 if shift >= 64 { 454 return ErrIntOverflowTopic 455 } 456 if iNdEx >= l { 457 return io.ErrUnexpectedEOF 458 } 459 b := dAtA[iNdEx] 460 iNdEx++ 461 msglen |= (int(b) & 0x7F) << shift 462 if b < 0x80 { 463 break 464 } 465 } 466 if msglen < 0 { 467 return ErrInvalidLengthTopic 468 } 469 postIndex := iNdEx + msglen 470 if postIndex > l { 471 return io.ErrUnexpectedEOF 472 } 473 m.ConsumerServices = append(m.ConsumerServices, &ConsumerService{}) 474 if err := m.ConsumerServices[len(m.ConsumerServices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 475 return err 476 } 477 iNdEx = postIndex 478 default: 479 iNdEx = preIndex 480 skippy, err := skipTopic(dAtA[iNdEx:]) 481 if err != nil { 482 return err 483 } 484 if skippy < 0 { 485 return ErrInvalidLengthTopic 486 } 487 if (iNdEx + skippy) > l { 488 return io.ErrUnexpectedEOF 489 } 490 iNdEx += skippy 491 } 492 } 493 494 if iNdEx > l { 495 return io.ErrUnexpectedEOF 496 } 497 return nil 498 } 499 func (m *ConsumerService) Unmarshal(dAtA []byte) error { 500 l := len(dAtA) 501 iNdEx := 0 502 for iNdEx < l { 503 preIndex := iNdEx 504 var wire uint64 505 for shift := uint(0); ; shift += 7 { 506 if shift >= 64 { 507 return ErrIntOverflowTopic 508 } 509 if iNdEx >= l { 510 return io.ErrUnexpectedEOF 511 } 512 b := dAtA[iNdEx] 513 iNdEx++ 514 wire |= (uint64(b) & 0x7F) << shift 515 if b < 0x80 { 516 break 517 } 518 } 519 fieldNum := int32(wire >> 3) 520 wireType := int(wire & 0x7) 521 if wireType == 4 { 522 return fmt.Errorf("proto: ConsumerService: wiretype end group for non-group") 523 } 524 if fieldNum <= 0 { 525 return fmt.Errorf("proto: ConsumerService: illegal tag %d (wire type %d)", fieldNum, wire) 526 } 527 switch fieldNum { 528 case 1: 529 if wireType != 2 { 530 return fmt.Errorf("proto: wrong wireType = %d for field ServiceId", wireType) 531 } 532 var msglen int 533 for shift := uint(0); ; shift += 7 { 534 if shift >= 64 { 535 return ErrIntOverflowTopic 536 } 537 if iNdEx >= l { 538 return io.ErrUnexpectedEOF 539 } 540 b := dAtA[iNdEx] 541 iNdEx++ 542 msglen |= (int(b) & 0x7F) << shift 543 if b < 0x80 { 544 break 545 } 546 } 547 if msglen < 0 { 548 return ErrInvalidLengthTopic 549 } 550 postIndex := iNdEx + msglen 551 if postIndex > l { 552 return io.ErrUnexpectedEOF 553 } 554 if m.ServiceId == nil { 555 m.ServiceId = &ServiceID{} 556 } 557 if err := m.ServiceId.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 558 return err 559 } 560 iNdEx = postIndex 561 case 2: 562 if wireType != 0 { 563 return fmt.Errorf("proto: wrong wireType = %d for field ConsumptionType", wireType) 564 } 565 m.ConsumptionType = 0 566 for shift := uint(0); ; shift += 7 { 567 if shift >= 64 { 568 return ErrIntOverflowTopic 569 } 570 if iNdEx >= l { 571 return io.ErrUnexpectedEOF 572 } 573 b := dAtA[iNdEx] 574 iNdEx++ 575 m.ConsumptionType |= (ConsumptionType(b) & 0x7F) << shift 576 if b < 0x80 { 577 break 578 } 579 } 580 case 3: 581 if wireType != 0 { 582 return fmt.Errorf("proto: wrong wireType = %d for field MessageTtlNanos", wireType) 583 } 584 m.MessageTtlNanos = 0 585 for shift := uint(0); ; shift += 7 { 586 if shift >= 64 { 587 return ErrIntOverflowTopic 588 } 589 if iNdEx >= l { 590 return io.ErrUnexpectedEOF 591 } 592 b := dAtA[iNdEx] 593 iNdEx++ 594 m.MessageTtlNanos |= (int64(b) & 0x7F) << shift 595 if b < 0x80 { 596 break 597 } 598 } 599 default: 600 iNdEx = preIndex 601 skippy, err := skipTopic(dAtA[iNdEx:]) 602 if err != nil { 603 return err 604 } 605 if skippy < 0 { 606 return ErrInvalidLengthTopic 607 } 608 if (iNdEx + skippy) > l { 609 return io.ErrUnexpectedEOF 610 } 611 iNdEx += skippy 612 } 613 } 614 615 if iNdEx > l { 616 return io.ErrUnexpectedEOF 617 } 618 return nil 619 } 620 func (m *ServiceID) Unmarshal(dAtA []byte) error { 621 l := len(dAtA) 622 iNdEx := 0 623 for iNdEx < l { 624 preIndex := iNdEx 625 var wire uint64 626 for shift := uint(0); ; shift += 7 { 627 if shift >= 64 { 628 return ErrIntOverflowTopic 629 } 630 if iNdEx >= l { 631 return io.ErrUnexpectedEOF 632 } 633 b := dAtA[iNdEx] 634 iNdEx++ 635 wire |= (uint64(b) & 0x7F) << shift 636 if b < 0x80 { 637 break 638 } 639 } 640 fieldNum := int32(wire >> 3) 641 wireType := int(wire & 0x7) 642 if wireType == 4 { 643 return fmt.Errorf("proto: ServiceID: wiretype end group for non-group") 644 } 645 if fieldNum <= 0 { 646 return fmt.Errorf("proto: ServiceID: illegal tag %d (wire type %d)", fieldNum, wire) 647 } 648 switch fieldNum { 649 case 1: 650 if wireType != 2 { 651 return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) 652 } 653 var stringLen uint64 654 for shift := uint(0); ; shift += 7 { 655 if shift >= 64 { 656 return ErrIntOverflowTopic 657 } 658 if iNdEx >= l { 659 return io.ErrUnexpectedEOF 660 } 661 b := dAtA[iNdEx] 662 iNdEx++ 663 stringLen |= (uint64(b) & 0x7F) << shift 664 if b < 0x80 { 665 break 666 } 667 } 668 intStringLen := int(stringLen) 669 if intStringLen < 0 { 670 return ErrInvalidLengthTopic 671 } 672 postIndex := iNdEx + intStringLen 673 if postIndex > l { 674 return io.ErrUnexpectedEOF 675 } 676 m.Name = string(dAtA[iNdEx:postIndex]) 677 iNdEx = postIndex 678 case 2: 679 if wireType != 2 { 680 return fmt.Errorf("proto: wrong wireType = %d for field Environment", wireType) 681 } 682 var stringLen uint64 683 for shift := uint(0); ; shift += 7 { 684 if shift >= 64 { 685 return ErrIntOverflowTopic 686 } 687 if iNdEx >= l { 688 return io.ErrUnexpectedEOF 689 } 690 b := dAtA[iNdEx] 691 iNdEx++ 692 stringLen |= (uint64(b) & 0x7F) << shift 693 if b < 0x80 { 694 break 695 } 696 } 697 intStringLen := int(stringLen) 698 if intStringLen < 0 { 699 return ErrInvalidLengthTopic 700 } 701 postIndex := iNdEx + intStringLen 702 if postIndex > l { 703 return io.ErrUnexpectedEOF 704 } 705 m.Environment = string(dAtA[iNdEx:postIndex]) 706 iNdEx = postIndex 707 case 3: 708 if wireType != 2 { 709 return fmt.Errorf("proto: wrong wireType = %d for field Zone", wireType) 710 } 711 var stringLen uint64 712 for shift := uint(0); ; shift += 7 { 713 if shift >= 64 { 714 return ErrIntOverflowTopic 715 } 716 if iNdEx >= l { 717 return io.ErrUnexpectedEOF 718 } 719 b := dAtA[iNdEx] 720 iNdEx++ 721 stringLen |= (uint64(b) & 0x7F) << shift 722 if b < 0x80 { 723 break 724 } 725 } 726 intStringLen := int(stringLen) 727 if intStringLen < 0 { 728 return ErrInvalidLengthTopic 729 } 730 postIndex := iNdEx + intStringLen 731 if postIndex > l { 732 return io.ErrUnexpectedEOF 733 } 734 m.Zone = string(dAtA[iNdEx:postIndex]) 735 iNdEx = postIndex 736 default: 737 iNdEx = preIndex 738 skippy, err := skipTopic(dAtA[iNdEx:]) 739 if err != nil { 740 return err 741 } 742 if skippy < 0 { 743 return ErrInvalidLengthTopic 744 } 745 if (iNdEx + skippy) > l { 746 return io.ErrUnexpectedEOF 747 } 748 iNdEx += skippy 749 } 750 } 751 752 if iNdEx > l { 753 return io.ErrUnexpectedEOF 754 } 755 return nil 756 } 757 func skipTopic(dAtA []byte) (n int, err error) { 758 l := len(dAtA) 759 iNdEx := 0 760 for iNdEx < l { 761 var wire uint64 762 for shift := uint(0); ; shift += 7 { 763 if shift >= 64 { 764 return 0, ErrIntOverflowTopic 765 } 766 if iNdEx >= l { 767 return 0, io.ErrUnexpectedEOF 768 } 769 b := dAtA[iNdEx] 770 iNdEx++ 771 wire |= (uint64(b) & 0x7F) << shift 772 if b < 0x80 { 773 break 774 } 775 } 776 wireType := int(wire & 0x7) 777 switch wireType { 778 case 0: 779 for shift := uint(0); ; shift += 7 { 780 if shift >= 64 { 781 return 0, ErrIntOverflowTopic 782 } 783 if iNdEx >= l { 784 return 0, io.ErrUnexpectedEOF 785 } 786 iNdEx++ 787 if dAtA[iNdEx-1] < 0x80 { 788 break 789 } 790 } 791 return iNdEx, nil 792 case 1: 793 iNdEx += 8 794 return iNdEx, nil 795 case 2: 796 var length int 797 for shift := uint(0); ; shift += 7 { 798 if shift >= 64 { 799 return 0, ErrIntOverflowTopic 800 } 801 if iNdEx >= l { 802 return 0, io.ErrUnexpectedEOF 803 } 804 b := dAtA[iNdEx] 805 iNdEx++ 806 length |= (int(b) & 0x7F) << shift 807 if b < 0x80 { 808 break 809 } 810 } 811 iNdEx += length 812 if length < 0 { 813 return 0, ErrInvalidLengthTopic 814 } 815 return iNdEx, nil 816 case 3: 817 for { 818 var innerWire uint64 819 var start int = iNdEx 820 for shift := uint(0); ; shift += 7 { 821 if shift >= 64 { 822 return 0, ErrIntOverflowTopic 823 } 824 if iNdEx >= l { 825 return 0, io.ErrUnexpectedEOF 826 } 827 b := dAtA[iNdEx] 828 iNdEx++ 829 innerWire |= (uint64(b) & 0x7F) << shift 830 if b < 0x80 { 831 break 832 } 833 } 834 innerWireType := int(innerWire & 0x7) 835 if innerWireType == 4 { 836 break 837 } 838 next, err := skipTopic(dAtA[start:]) 839 if err != nil { 840 return 0, err 841 } 842 iNdEx = start + next 843 } 844 return iNdEx, nil 845 case 4: 846 return iNdEx, nil 847 case 5: 848 iNdEx += 4 849 return iNdEx, nil 850 default: 851 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 852 } 853 } 854 panic("unreachable") 855 } 856 857 var ( 858 ErrInvalidLengthTopic = fmt.Errorf("proto: negative length found during unmarshaling") 859 ErrIntOverflowTopic = fmt.Errorf("proto: integer overflow") 860 ) 861 862 func init() { 863 proto.RegisterFile("github.com/m3db/m3/src/msg/generated/proto/topicpb/topic.proto", fileDescriptorTopic) 864 } 865 866 var fileDescriptorTopic = []byte{ 867 // 385 bytes of a gzipped FileDescriptorProto 868 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x4f, 0x8e, 0xd3, 0x30, 869 0x14, 0x87, 0xc7, 0x53, 0x98, 0x51, 0x5e, 0x44, 0x9b, 0xf1, 0x2a, 0xab, 0x28, 0xea, 0x2a, 0x9a, 870 0x45, 0x22, 0xa6, 0x3b, 0x16, 0x48, 0x43, 0x1b, 0x89, 0x0a, 0x94, 0x41, 0x6e, 0x46, 0x2c, 0xa3, 871 0xfc, 0xf1, 0x64, 0x22, 0xd5, 0x76, 0x64, 0xbb, 0x95, 0xca, 0x19, 0x58, 0x70, 0x19, 0xee, 0xc0, 872 0x92, 0x23, 0xa0, 0x72, 0x11, 0x14, 0xd7, 0x14, 0x0a, 0xb3, 0xca, 0xd3, 0x97, 0x9f, 0xdf, 0xfb, 873 0xfc, 0x0c, 0xaf, 0xdb, 0x4e, 0x3f, 0x6e, 0xaa, 0xb8, 0x16, 0x2c, 0x61, 0xb3, 0xa6, 0x4a, 0xd8, 874 0x2c, 0x51, 0xb2, 0x4e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