github.com/m3db/m3@v1.5.0/src/query/generated/proto/admin/topic.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/m3db/m3/src/query/generated/proto/admin/topic.proto
     3  
     4  // Copyright (c) 2020 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  package admin
    25  
    26  import proto "github.com/gogo/protobuf/proto"
    27  import fmt "fmt"
    28  import math "math"
    29  import topicpb "github.com/m3db/m3/src/msg/generated/proto/topicpb"
    30  
    31  import io "io"
    32  
    33  // Reference imports to suppress errors if they are not otherwise used.
    34  var _ = proto.Marshal
    35  var _ = fmt.Errorf
    36  var _ = math.Inf
    37  
    38  type TopicGetResponse struct {
    39  	Topic   *topicpb.Topic `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
    40  	Version uint32         `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
    41  }
    42  
    43  func (m *TopicGetResponse) Reset()                    { *m = TopicGetResponse{} }
    44  func (m *TopicGetResponse) String() string            { return proto.CompactTextString(m) }
    45  func (*TopicGetResponse) ProtoMessage()               {}
    46  func (*TopicGetResponse) Descriptor() ([]byte, []int) { return fileDescriptorTopic, []int{0} }
    47  
    48  func (m *TopicGetResponse) GetTopic() *topicpb.Topic {
    49  	if m != nil {
    50  		return m.Topic
    51  	}
    52  	return nil
    53  }
    54  
    55  func (m *TopicGetResponse) GetVersion() uint32 {
    56  	if m != nil {
    57  		return m.Version
    58  	}
    59  	return 0
    60  }
    61  
    62  type TopicInitRequest struct {
    63  	NumberOfShards uint32 `protobuf:"varint,1,opt,name=number_of_shards,json=numberOfShards,proto3" json:"number_of_shards,omitempty"`
    64  }
    65  
    66  func (m *TopicInitRequest) Reset()                    { *m = TopicInitRequest{} }
    67  func (m *TopicInitRequest) String() string            { return proto.CompactTextString(m) }
    68  func (*TopicInitRequest) ProtoMessage()               {}
    69  func (*TopicInitRequest) Descriptor() ([]byte, []int) { return fileDescriptorTopic, []int{1} }
    70  
    71  func (m *TopicInitRequest) GetNumberOfShards() uint32 {
    72  	if m != nil {
    73  		return m.NumberOfShards
    74  	}
    75  	return 0
    76  }
    77  
    78  type TopicAddRequest struct {
    79  	ConsumerService *topicpb.ConsumerService `protobuf:"bytes,1,opt,name=consumer_service,json=consumerService" json:"consumer_service,omitempty"`
    80  }
    81  
    82  func (m *TopicAddRequest) Reset()                    { *m = TopicAddRequest{} }
    83  func (m *TopicAddRequest) String() string            { return proto.CompactTextString(m) }
    84  func (*TopicAddRequest) ProtoMessage()               {}
    85  func (*TopicAddRequest) Descriptor() ([]byte, []int) { return fileDescriptorTopic, []int{2} }
    86  
    87  func (m *TopicAddRequest) GetConsumerService() *topicpb.ConsumerService {
    88  	if m != nil {
    89  		return m.ConsumerService
    90  	}
    91  	return nil
    92  }
    93  
    94  // Request to update a topic and set its consumer services to a new value.
    95  // CheckAndSet is used based on the version passed.
    96  type TopicUpdateRequest struct {
    97  	ConsumerServices []*topicpb.ConsumerService `protobuf:"bytes,1,rep,name=consumer_services,json=consumerServices" json:"consumer_services,omitempty"`
    98  	Version          uint32                     `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
    99  }
   100  
   101  func (m *TopicUpdateRequest) Reset()                    { *m = TopicUpdateRequest{} }
   102  func (m *TopicUpdateRequest) String() string            { return proto.CompactTextString(m) }
   103  func (*TopicUpdateRequest) ProtoMessage()               {}
   104  func (*TopicUpdateRequest) Descriptor() ([]byte, []int) { return fileDescriptorTopic, []int{3} }
   105  
   106  func (m *TopicUpdateRequest) GetConsumerServices() []*topicpb.ConsumerService {
   107  	if m != nil {
   108  		return m.ConsumerServices
   109  	}
   110  	return nil
   111  }
   112  
   113  func (m *TopicUpdateRequest) GetVersion() uint32 {
   114  	if m != nil {
   115  		return m.Version
   116  	}
   117  	return 0
   118  }
   119  
   120  func init() {
   121  	proto.RegisterType((*TopicGetResponse)(nil), "admin.TopicGetResponse")
   122  	proto.RegisterType((*TopicInitRequest)(nil), "admin.TopicInitRequest")
   123  	proto.RegisterType((*TopicAddRequest)(nil), "admin.TopicAddRequest")
   124  	proto.RegisterType((*TopicUpdateRequest)(nil), "admin.TopicUpdateRequest")
   125  }
   126  func (m *TopicGetResponse) Marshal() (dAtA []byte, err error) {
   127  	size := m.Size()
   128  	dAtA = make([]byte, size)
   129  	n, err := m.MarshalTo(dAtA)
   130  	if err != nil {
   131  		return nil, err
   132  	}
   133  	return dAtA[:n], nil
   134  }
   135  
   136  func (m *TopicGetResponse) MarshalTo(dAtA []byte) (int, error) {
   137  	var i int
   138  	_ = i
   139  	var l int
   140  	_ = l
   141  	if m.Topic != nil {
   142  		dAtA[i] = 0xa
   143  		i++
   144  		i = encodeVarintTopic(dAtA, i, uint64(m.Topic.Size()))
   145  		n1, err := m.Topic.MarshalTo(dAtA[i:])
   146  		if err != nil {
   147  			return 0, err
   148  		}
   149  		i += n1
   150  	}
   151  	if m.Version != 0 {
   152  		dAtA[i] = 0x10
   153  		i++
   154  		i = encodeVarintTopic(dAtA, i, uint64(m.Version))
   155  	}
   156  	return i, nil
   157  }
   158  
   159  func (m *TopicInitRequest) Marshal() (dAtA []byte, err error) {
   160  	size := m.Size()
   161  	dAtA = make([]byte, size)
   162  	n, err := m.MarshalTo(dAtA)
   163  	if err != nil {
   164  		return nil, err
   165  	}
   166  	return dAtA[:n], nil
   167  }
   168  
   169  func (m *TopicInitRequest) MarshalTo(dAtA []byte) (int, error) {
   170  	var i int
   171  	_ = i
   172  	var l int
   173  	_ = l
   174  	if m.NumberOfShards != 0 {
   175  		dAtA[i] = 0x8
   176  		i++
   177  		i = encodeVarintTopic(dAtA, i, uint64(m.NumberOfShards))
   178  	}
   179  	return i, nil
   180  }
   181  
   182  func (m *TopicAddRequest) Marshal() (dAtA []byte, err error) {
   183  	size := m.Size()
   184  	dAtA = make([]byte, size)
   185  	n, err := m.MarshalTo(dAtA)
   186  	if err != nil {
   187  		return nil, err
   188  	}
   189  	return dAtA[:n], nil
   190  }
   191  
   192  func (m *TopicAddRequest) MarshalTo(dAtA []byte) (int, error) {
   193  	var i int
   194  	_ = i
   195  	var l int
   196  	_ = l
   197  	if m.ConsumerService != nil {
   198  		dAtA[i] = 0xa
   199  		i++
   200  		i = encodeVarintTopic(dAtA, i, uint64(m.ConsumerService.Size()))
   201  		n2, err := m.ConsumerService.MarshalTo(dAtA[i:])
   202  		if err != nil {
   203  			return 0, err
   204  		}
   205  		i += n2
   206  	}
   207  	return i, nil
   208  }
   209  
   210  func (m *TopicUpdateRequest) Marshal() (dAtA []byte, err error) {
   211  	size := m.Size()
   212  	dAtA = make([]byte, size)
   213  	n, err := m.MarshalTo(dAtA)
   214  	if err != nil {
   215  		return nil, err
   216  	}
   217  	return dAtA[:n], nil
   218  }
   219  
   220  func (m *TopicUpdateRequest) MarshalTo(dAtA []byte) (int, error) {
   221  	var i int
   222  	_ = i
   223  	var l int
   224  	_ = l
   225  	if len(m.ConsumerServices) > 0 {
   226  		for _, msg := range m.ConsumerServices {
   227  			dAtA[i] = 0xa
   228  			i++
   229  			i = encodeVarintTopic(dAtA, i, uint64(msg.Size()))
   230  			n, err := msg.MarshalTo(dAtA[i:])
   231  			if err != nil {
   232  				return 0, err
   233  			}
   234  			i += n
   235  		}
   236  	}
   237  	if m.Version != 0 {
   238  		dAtA[i] = 0x10
   239  		i++
   240  		i = encodeVarintTopic(dAtA, i, uint64(m.Version))
   241  	}
   242  	return i, nil
   243  }
   244  
   245  func encodeVarintTopic(dAtA []byte, offset int, v uint64) int {
   246  	for v >= 1<<7 {
   247  		dAtA[offset] = uint8(v&0x7f | 0x80)
   248  		v >>= 7
   249  		offset++
   250  	}
   251  	dAtA[offset] = uint8(v)
   252  	return offset + 1
   253  }
   254  func (m *TopicGetResponse) Size() (n int) {
   255  	var l int
   256  	_ = l
   257  	if m.Topic != nil {
   258  		l = m.Topic.Size()
   259  		n += 1 + l + sovTopic(uint64(l))
   260  	}
   261  	if m.Version != 0 {
   262  		n += 1 + sovTopic(uint64(m.Version))
   263  	}
   264  	return n
   265  }
   266  
   267  func (m *TopicInitRequest) Size() (n int) {
   268  	var l int
   269  	_ = l
   270  	if m.NumberOfShards != 0 {
   271  		n += 1 + sovTopic(uint64(m.NumberOfShards))
   272  	}
   273  	return n
   274  }
   275  
   276  func (m *TopicAddRequest) Size() (n int) {
   277  	var l int
   278  	_ = l
   279  	if m.ConsumerService != nil {
   280  		l = m.ConsumerService.Size()
   281  		n += 1 + l + sovTopic(uint64(l))
   282  	}
   283  	return n
   284  }
   285  
   286  func (m *TopicUpdateRequest) Size() (n int) {
   287  	var l int
   288  	_ = l
   289  	if len(m.ConsumerServices) > 0 {
   290  		for _, e := range m.ConsumerServices {
   291  			l = e.Size()
   292  			n += 1 + l + sovTopic(uint64(l))
   293  		}
   294  	}
   295  	if m.Version != 0 {
   296  		n += 1 + sovTopic(uint64(m.Version))
   297  	}
   298  	return n
   299  }
   300  
   301  func sovTopic(x uint64) (n int) {
   302  	for {
   303  		n++
   304  		x >>= 7
   305  		if x == 0 {
   306  			break
   307  		}
   308  	}
   309  	return n
   310  }
   311  func sozTopic(x uint64) (n int) {
   312  	return sovTopic(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   313  }
   314  func (m *TopicGetResponse) Unmarshal(dAtA []byte) error {
   315  	l := len(dAtA)
   316  	iNdEx := 0
   317  	for iNdEx < l {
   318  		preIndex := iNdEx
   319  		var wire uint64
   320  		for shift := uint(0); ; shift += 7 {
   321  			if shift >= 64 {
   322  				return ErrIntOverflowTopic
   323  			}
   324  			if iNdEx >= l {
   325  				return io.ErrUnexpectedEOF
   326  			}
   327  			b := dAtA[iNdEx]
   328  			iNdEx++
   329  			wire |= (uint64(b) & 0x7F) << shift
   330  			if b < 0x80 {
   331  				break
   332  			}
   333  		}
   334  		fieldNum := int32(wire >> 3)
   335  		wireType := int(wire & 0x7)
   336  		if wireType == 4 {
   337  			return fmt.Errorf("proto: TopicGetResponse: wiretype end group for non-group")
   338  		}
   339  		if fieldNum <= 0 {
   340  			return fmt.Errorf("proto: TopicGetResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   341  		}
   342  		switch fieldNum {
   343  		case 1:
   344  			if wireType != 2 {
   345  				return fmt.Errorf("proto: wrong wireType = %d for field Topic", wireType)
   346  			}
   347  			var msglen int
   348  			for shift := uint(0); ; shift += 7 {
   349  				if shift >= 64 {
   350  					return ErrIntOverflowTopic
   351  				}
   352  				if iNdEx >= l {
   353  					return io.ErrUnexpectedEOF
   354  				}
   355  				b := dAtA[iNdEx]
   356  				iNdEx++
   357  				msglen |= (int(b) & 0x7F) << shift
   358  				if b < 0x80 {
   359  					break
   360  				}
   361  			}
   362  			if msglen < 0 {
   363  				return ErrInvalidLengthTopic
   364  			}
   365  			postIndex := iNdEx + msglen
   366  			if postIndex > l {
   367  				return io.ErrUnexpectedEOF
   368  			}
   369  			if m.Topic == nil {
   370  				m.Topic = &topicpb.Topic{}
   371  			}
   372  			if err := m.Topic.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   373  				return err
   374  			}
   375  			iNdEx = postIndex
   376  		case 2:
   377  			if wireType != 0 {
   378  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
   379  			}
   380  			m.Version = 0
   381  			for shift := uint(0); ; shift += 7 {
   382  				if shift >= 64 {
   383  					return ErrIntOverflowTopic
   384  				}
   385  				if iNdEx >= l {
   386  					return io.ErrUnexpectedEOF
   387  				}
   388  				b := dAtA[iNdEx]
   389  				iNdEx++
   390  				m.Version |= (uint32(b) & 0x7F) << shift
   391  				if b < 0x80 {
   392  					break
   393  				}
   394  			}
   395  		default:
   396  			iNdEx = preIndex
   397  			skippy, err := skipTopic(dAtA[iNdEx:])
   398  			if err != nil {
   399  				return err
   400  			}
   401  			if skippy < 0 {
   402  				return ErrInvalidLengthTopic
   403  			}
   404  			if (iNdEx + skippy) > l {
   405  				return io.ErrUnexpectedEOF
   406  			}
   407  			iNdEx += skippy
   408  		}
   409  	}
   410  
   411  	if iNdEx > l {
   412  		return io.ErrUnexpectedEOF
   413  	}
   414  	return nil
   415  }
   416  func (m *TopicInitRequest) Unmarshal(dAtA []byte) error {
   417  	l := len(dAtA)
   418  	iNdEx := 0
   419  	for iNdEx < l {
   420  		preIndex := iNdEx
   421  		var wire uint64
   422  		for shift := uint(0); ; shift += 7 {
   423  			if shift >= 64 {
   424  				return ErrIntOverflowTopic
   425  			}
   426  			if iNdEx >= l {
   427  				return io.ErrUnexpectedEOF
   428  			}
   429  			b := dAtA[iNdEx]
   430  			iNdEx++
   431  			wire |= (uint64(b) & 0x7F) << shift
   432  			if b < 0x80 {
   433  				break
   434  			}
   435  		}
   436  		fieldNum := int32(wire >> 3)
   437  		wireType := int(wire & 0x7)
   438  		if wireType == 4 {
   439  			return fmt.Errorf("proto: TopicInitRequest: wiretype end group for non-group")
   440  		}
   441  		if fieldNum <= 0 {
   442  			return fmt.Errorf("proto: TopicInitRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   443  		}
   444  		switch fieldNum {
   445  		case 1:
   446  			if wireType != 0 {
   447  				return fmt.Errorf("proto: wrong wireType = %d for field NumberOfShards", wireType)
   448  			}
   449  			m.NumberOfShards = 0
   450  			for shift := uint(0); ; shift += 7 {
   451  				if shift >= 64 {
   452  					return ErrIntOverflowTopic
   453  				}
   454  				if iNdEx >= l {
   455  					return io.ErrUnexpectedEOF
   456  				}
   457  				b := dAtA[iNdEx]
   458  				iNdEx++
   459  				m.NumberOfShards |= (uint32(b) & 0x7F) << shift
   460  				if b < 0x80 {
   461  					break
   462  				}
   463  			}
   464  		default:
   465  			iNdEx = preIndex
   466  			skippy, err := skipTopic(dAtA[iNdEx:])
   467  			if err != nil {
   468  				return err
   469  			}
   470  			if skippy < 0 {
   471  				return ErrInvalidLengthTopic
   472  			}
   473  			if (iNdEx + skippy) > l {
   474  				return io.ErrUnexpectedEOF
   475  			}
   476  			iNdEx += skippy
   477  		}
   478  	}
   479  
   480  	if iNdEx > l {
   481  		return io.ErrUnexpectedEOF
   482  	}
   483  	return nil
   484  }
   485  func (m *TopicAddRequest) Unmarshal(dAtA []byte) error {
   486  	l := len(dAtA)
   487  	iNdEx := 0
   488  	for iNdEx < l {
   489  		preIndex := iNdEx
   490  		var wire uint64
   491  		for shift := uint(0); ; shift += 7 {
   492  			if shift >= 64 {
   493  				return ErrIntOverflowTopic
   494  			}
   495  			if iNdEx >= l {
   496  				return io.ErrUnexpectedEOF
   497  			}
   498  			b := dAtA[iNdEx]
   499  			iNdEx++
   500  			wire |= (uint64(b) & 0x7F) << shift
   501  			if b < 0x80 {
   502  				break
   503  			}
   504  		}
   505  		fieldNum := int32(wire >> 3)
   506  		wireType := int(wire & 0x7)
   507  		if wireType == 4 {
   508  			return fmt.Errorf("proto: TopicAddRequest: wiretype end group for non-group")
   509  		}
   510  		if fieldNum <= 0 {
   511  			return fmt.Errorf("proto: TopicAddRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   512  		}
   513  		switch fieldNum {
   514  		case 1:
   515  			if wireType != 2 {
   516  				return fmt.Errorf("proto: wrong wireType = %d for field ConsumerService", wireType)
   517  			}
   518  			var msglen int
   519  			for shift := uint(0); ; shift += 7 {
   520  				if shift >= 64 {
   521  					return ErrIntOverflowTopic
   522  				}
   523  				if iNdEx >= l {
   524  					return io.ErrUnexpectedEOF
   525  				}
   526  				b := dAtA[iNdEx]
   527  				iNdEx++
   528  				msglen |= (int(b) & 0x7F) << shift
   529  				if b < 0x80 {
   530  					break
   531  				}
   532  			}
   533  			if msglen < 0 {
   534  				return ErrInvalidLengthTopic
   535  			}
   536  			postIndex := iNdEx + msglen
   537  			if postIndex > l {
   538  				return io.ErrUnexpectedEOF
   539  			}
   540  			if m.ConsumerService == nil {
   541  				m.ConsumerService = &topicpb.ConsumerService{}
   542  			}
   543  			if err := m.ConsumerService.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   544  				return err
   545  			}
   546  			iNdEx = postIndex
   547  		default:
   548  			iNdEx = preIndex
   549  			skippy, err := skipTopic(dAtA[iNdEx:])
   550  			if err != nil {
   551  				return err
   552  			}
   553  			if skippy < 0 {
   554  				return ErrInvalidLengthTopic
   555  			}
   556  			if (iNdEx + skippy) > l {
   557  				return io.ErrUnexpectedEOF
   558  			}
   559  			iNdEx += skippy
   560  		}
   561  	}
   562  
   563  	if iNdEx > l {
   564  		return io.ErrUnexpectedEOF
   565  	}
   566  	return nil
   567  }
   568  func (m *TopicUpdateRequest) Unmarshal(dAtA []byte) error {
   569  	l := len(dAtA)
   570  	iNdEx := 0
   571  	for iNdEx < l {
   572  		preIndex := iNdEx
   573  		var wire uint64
   574  		for shift := uint(0); ; shift += 7 {
   575  			if shift >= 64 {
   576  				return ErrIntOverflowTopic
   577  			}
   578  			if iNdEx >= l {
   579  				return io.ErrUnexpectedEOF
   580  			}
   581  			b := dAtA[iNdEx]
   582  			iNdEx++
   583  			wire |= (uint64(b) & 0x7F) << shift
   584  			if b < 0x80 {
   585  				break
   586  			}
   587  		}
   588  		fieldNum := int32(wire >> 3)
   589  		wireType := int(wire & 0x7)
   590  		if wireType == 4 {
   591  			return fmt.Errorf("proto: TopicUpdateRequest: wiretype end group for non-group")
   592  		}
   593  		if fieldNum <= 0 {
   594  			return fmt.Errorf("proto: TopicUpdateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   595  		}
   596  		switch fieldNum {
   597  		case 1:
   598  			if wireType != 2 {
   599  				return fmt.Errorf("proto: wrong wireType = %d for field ConsumerServices", wireType)
   600  			}
   601  			var msglen int
   602  			for shift := uint(0); ; shift += 7 {
   603  				if shift >= 64 {
   604  					return ErrIntOverflowTopic
   605  				}
   606  				if iNdEx >= l {
   607  					return io.ErrUnexpectedEOF
   608  				}
   609  				b := dAtA[iNdEx]
   610  				iNdEx++
   611  				msglen |= (int(b) & 0x7F) << shift
   612  				if b < 0x80 {
   613  					break
   614  				}
   615  			}
   616  			if msglen < 0 {
   617  				return ErrInvalidLengthTopic
   618  			}
   619  			postIndex := iNdEx + msglen
   620  			if postIndex > l {
   621  				return io.ErrUnexpectedEOF
   622  			}
   623  			m.ConsumerServices = append(m.ConsumerServices, &topicpb.ConsumerService{})
   624  			if err := m.ConsumerServices[len(m.ConsumerServices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   625  				return err
   626  			}
   627  			iNdEx = postIndex
   628  		case 2:
   629  			if wireType != 0 {
   630  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
   631  			}
   632  			m.Version = 0
   633  			for shift := uint(0); ; shift += 7 {
   634  				if shift >= 64 {
   635  					return ErrIntOverflowTopic
   636  				}
   637  				if iNdEx >= l {
   638  					return io.ErrUnexpectedEOF
   639  				}
   640  				b := dAtA[iNdEx]
   641  				iNdEx++
   642  				m.Version |= (uint32(b) & 0x7F) << shift
   643  				if b < 0x80 {
   644  					break
   645  				}
   646  			}
   647  		default:
   648  			iNdEx = preIndex
   649  			skippy, err := skipTopic(dAtA[iNdEx:])
   650  			if err != nil {
   651  				return err
   652  			}
   653  			if skippy < 0 {
   654  				return ErrInvalidLengthTopic
   655  			}
   656  			if (iNdEx + skippy) > l {
   657  				return io.ErrUnexpectedEOF
   658  			}
   659  			iNdEx += skippy
   660  		}
   661  	}
   662  
   663  	if iNdEx > l {
   664  		return io.ErrUnexpectedEOF
   665  	}
   666  	return nil
   667  }
   668  func skipTopic(dAtA []byte) (n int, err error) {
   669  	l := len(dAtA)
   670  	iNdEx := 0
   671  	for iNdEx < l {
   672  		var wire uint64
   673  		for shift := uint(0); ; shift += 7 {
   674  			if shift >= 64 {
   675  				return 0, ErrIntOverflowTopic
   676  			}
   677  			if iNdEx >= l {
   678  				return 0, io.ErrUnexpectedEOF
   679  			}
   680  			b := dAtA[iNdEx]
   681  			iNdEx++
   682  			wire |= (uint64(b) & 0x7F) << shift
   683  			if b < 0x80 {
   684  				break
   685  			}
   686  		}
   687  		wireType := int(wire & 0x7)
   688  		switch wireType {
   689  		case 0:
   690  			for shift := uint(0); ; shift += 7 {
   691  				if shift >= 64 {
   692  					return 0, ErrIntOverflowTopic
   693  				}
   694  				if iNdEx >= l {
   695  					return 0, io.ErrUnexpectedEOF
   696  				}
   697  				iNdEx++
   698  				if dAtA[iNdEx-1] < 0x80 {
   699  					break
   700  				}
   701  			}
   702  			return iNdEx, nil
   703  		case 1:
   704  			iNdEx += 8
   705  			return iNdEx, nil
   706  		case 2:
   707  			var length int
   708  			for shift := uint(0); ; shift += 7 {
   709  				if shift >= 64 {
   710  					return 0, ErrIntOverflowTopic
   711  				}
   712  				if iNdEx >= l {
   713  					return 0, io.ErrUnexpectedEOF
   714  				}
   715  				b := dAtA[iNdEx]
   716  				iNdEx++
   717  				length |= (int(b) & 0x7F) << shift
   718  				if b < 0x80 {
   719  					break
   720  				}
   721  			}
   722  			iNdEx += length
   723  			if length < 0 {
   724  				return 0, ErrInvalidLengthTopic
   725  			}
   726  			return iNdEx, nil
   727  		case 3:
   728  			for {
   729  				var innerWire uint64
   730  				var start int = iNdEx
   731  				for shift := uint(0); ; shift += 7 {
   732  					if shift >= 64 {
   733  						return 0, ErrIntOverflowTopic
   734  					}
   735  					if iNdEx >= l {
   736  						return 0, io.ErrUnexpectedEOF
   737  					}
   738  					b := dAtA[iNdEx]
   739  					iNdEx++
   740  					innerWire |= (uint64(b) & 0x7F) << shift
   741  					if b < 0x80 {
   742  						break
   743  					}
   744  				}
   745  				innerWireType := int(innerWire & 0x7)
   746  				if innerWireType == 4 {
   747  					break
   748  				}
   749  				next, err := skipTopic(dAtA[start:])
   750  				if err != nil {
   751  					return 0, err
   752  				}
   753  				iNdEx = start + next
   754  			}
   755  			return iNdEx, nil
   756  		case 4:
   757  			return iNdEx, nil
   758  		case 5:
   759  			iNdEx += 4
   760  			return iNdEx, nil
   761  		default:
   762  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   763  		}
   764  	}
   765  	panic("unreachable")
   766  }
   767  
   768  var (
   769  	ErrInvalidLengthTopic = fmt.Errorf("proto: negative length found during unmarshaling")
   770  	ErrIntOverflowTopic   = fmt.Errorf("proto: integer overflow")
   771  )
   772  
   773  func init() {
   774  	proto.RegisterFile("github.com/m3db/m3/src/query/generated/proto/admin/topic.proto", fileDescriptorTopic)
   775  }
   776  
   777  var fileDescriptorTopic = []byte{
   778  	// 303 bytes of a gzipped FileDescriptorProto
   779  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xcd, 0x4a, 0xf3, 0x40,
   780  	0x14, 0x86, 0xbf, 0xf9, 0xa4, 0x0a, 0x23, 0x6d, 0x63, 0x56, 0xc1, 0x45, 0x28, 0xc1, 0x45, 0x57,
   781  	0x19, 0xb0, 0x5b, 0x11, 0xb4, 0x88, 0xb8, 0x12, 0xa6, 0xea, 0xb6, 0x24, 0x33, 0xa7, 0xed, 0x2c,
   782  	0x66, 0x26, 0x9d, 0x9f, 0x82, 0x77, 0xe1, 0x65, 0xb9, 0xf4, 0x12, 0x24, 0xde, 0x88, 0x74, 0x92,
   783  	0x88, 0x56, 0xea, 0xf2, 0x3c, 0xe7, 0xbc, 0x0f, 0x2f, 0x07, 0x5f, 0x2e, 0x85, 0x5b, 0xf9, 0x32,
   784  	0x67, 0x5a, 0x12, 0x39, 0xe1, 0x25, 0x91, 0x13, 0x62, 0x0d, 0x23, 0x6b, 0x0f, 0xe6, 0x99, 0x2c,
   785  	0x41, 0x81, 0x29, 0x1c, 0x70, 0x52, 0x19, 0xed, 0x34, 0x29, 0xb8, 0x14, 0x8a, 0x38, 0x5d, 0x09,
   786  	0x96, 0x07, 0x12, 0xf7, 0x02, 0x3a, 0xdd, 0xa7, 0x91, 0x76, 0xf9, 0x4b, 0x12, 0xe2, 0x55, 0xf9,
   787  	0x5d, 0x93, 0x51, 0x1c, 0x3d, 0x6c, 0xc7, 0x5b, 0x70, 0x14, 0x6c, 0xa5, 0x95, 0x85, 0xf8, 0x0c,
   788  	0xf7, 0xc2, 0x49, 0x82, 0x46, 0x68, 0x7c, 0x7c, 0x3e, 0xc8, 0xdb, 0x60, 0x1e, 0x2e, 0x69, 0xb3,
   789  	0x8c, 0x13, 0x7c, 0xb4, 0x01, 0x63, 0x85, 0x56, 0xc9, 0xff, 0x11, 0x1a, 0xf7, 0x69, 0x37, 0x66,
   790  	0x17, 0xad, 0xf3, 0x4e, 0x09, 0x47, 0x61, 0xed, 0xc1, 0xba, 0x78, 0x8c, 0x23, 0xe5, 0x65, 0x09,
   791  	0x66, 0xae, 0x17, 0x73, 0xbb, 0x2a, 0x0c, 0xb7, 0x41, 0xdf, 0xa7, 0x83, 0x86, 0xdf, 0x2f, 0x66,
   792  	0x81, 0x66, 0x4f, 0x78, 0x18, 0xd2, 0x57, 0x9c, 0x77, 0xe1, 0x29, 0x8e, 0x98, 0x56, 0xd6, 0x4b,
   793  	0x30, 0x73, 0x0b, 0x66, 0x23, 0x18, 0xb4, 0xdd, 0x92, 0xaf, 0x6e, 0xd3, 0xf6, 0x60, 0xd6, 0xec,
   794  	0xe9, 0x90, 0xfd, 0x04, 0x99, 0xc7, 0x71, 0xf0, 0x3e, 0x56, 0xbc, 0x70, 0xd0, 0xa9, 0x6f, 0xf0,
   795  	0xc9, 0xae, 0x7a, 0x5b, 0xec, 0xe0, 0x4f, 0x77, 0xb4, 0xe3, 0xb6, 0xfb, 0x9f, 0x71, 0x1d, 0xbd,
   796  	0xd6, 0x29, 0x7a, 0xab, 0x53, 0xf4, 0x5e, 0xa7, 0xe8, 0xe5, 0x23, 0xfd, 0x57, 0x1e, 0x86, 0xcf,
   797  	0x4f, 0x3e, 0x03, 0x00, 0x00, 0xff, 0xff, 0x38, 0x38, 0xc7, 0xf0, 0x02, 0x02, 0x00, 0x00,
   798  }