github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/dbnode/generated/proto/namespace/schema.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/m3db/m3/src/dbnode/generated/proto/namespace/schema.proto
     3  
     4  // Copyright (c) 2019 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 namespace
    25  
    26  import proto "github.com/gogo/protobuf/proto"
    27  import fmt "fmt"
    28  import math "math"
    29  
    30  import io "io"
    31  
    32  // Reference imports to suppress errors if they are not otherwise used.
    33  var _ = proto.Marshal
    34  var _ = fmt.Errorf
    35  var _ = math.Inf
    36  
    37  // SchemaOptions contains schema information for a namespace.
    38  type SchemaOptions struct {
    39  	// history contains a history of deployed schema definitions.
    40  	History *SchemaHistory `protobuf:"bytes,1,opt,name=history" json:"history,omitempty"`
    41  	// defaultMessageName identifies the proto message that contains the default schema for the namespace.
    42  	DefaultMessageName string `protobuf:"bytes,2,opt,name=defaultMessageName,proto3" json:"defaultMessageName,omitempty"`
    43  }
    44  
    45  func (m *SchemaOptions) Reset()                    { *m = SchemaOptions{} }
    46  func (m *SchemaOptions) String() string            { return proto.CompactTextString(m) }
    47  func (*SchemaOptions) ProtoMessage()               {}
    48  func (*SchemaOptions) Descriptor() ([]byte, []int) { return fileDescriptorSchema, []int{0} }
    49  
    50  func (m *SchemaOptions) GetHistory() *SchemaHistory {
    51  	if m != nil {
    52  		return m.History
    53  	}
    54  	return nil
    55  }
    56  
    57  func (m *SchemaOptions) GetDefaultMessageName() string {
    58  	if m != nil {
    59  		return m.DefaultMessageName
    60  	}
    61  	return ""
    62  }
    63  
    64  // SchemaHistory is versioned FileDescriptorSet.
    65  type SchemaHistory struct {
    66  	// versions is a list of FileDescriptorSet sorted by version in ascending order.
    67  	// the list is a linked list and we use FileDescriptorSet.prevId to ensure the order is ascending.
    68  	Versions []*FileDescriptorSet `protobuf:"bytes,1,rep,name=versions" json:"versions,omitempty"`
    69  }
    70  
    71  func (m *SchemaHistory) Reset()                    { *m = SchemaHistory{} }
    72  func (m *SchemaHistory) String() string            { return proto.CompactTextString(m) }
    73  func (*SchemaHistory) ProtoMessage()               {}
    74  func (*SchemaHistory) Descriptor() ([]byte, []int) { return fileDescriptorSchema, []int{1} }
    75  
    76  func (m *SchemaHistory) GetVersions() []*FileDescriptorSet {
    77  	if m != nil {
    78  		return m.Versions
    79  	}
    80  	return nil
    81  }
    82  
    83  // FileDescriptorSet is a set of proto file descriptors.
    84  type FileDescriptorSet struct {
    85  	// id identifies a deployed version of FileDescriptorSet.
    86  	DeployId string `protobuf:"bytes,1,opt,name=deployId,proto3" json:"deployId,omitempty"`
    87  	// prevId identifies the previous deploy id of FileDescriptorSet.
    88  	PrevId string `protobuf:"bytes,2,opt,name=prevId,proto3" json:"prevId,omitempty"`
    89  	// descriptors is a list of proto file descriptors sorted by dependency in topological order.
    90  	Descriptors [][]byte `protobuf:"bytes,3,rep,name=descriptors" json:"descriptors,omitempty"`
    91  }
    92  
    93  func (m *FileDescriptorSet) Reset()                    { *m = FileDescriptorSet{} }
    94  func (m *FileDescriptorSet) String() string            { return proto.CompactTextString(m) }
    95  func (*FileDescriptorSet) ProtoMessage()               {}
    96  func (*FileDescriptorSet) Descriptor() ([]byte, []int) { return fileDescriptorSchema, []int{2} }
    97  
    98  func (m *FileDescriptorSet) GetDeployId() string {
    99  	if m != nil {
   100  		return m.DeployId
   101  	}
   102  	return ""
   103  }
   104  
   105  func (m *FileDescriptorSet) GetPrevId() string {
   106  	if m != nil {
   107  		return m.PrevId
   108  	}
   109  	return ""
   110  }
   111  
   112  func (m *FileDescriptorSet) GetDescriptors() [][]byte {
   113  	if m != nil {
   114  		return m.Descriptors
   115  	}
   116  	return nil
   117  }
   118  
   119  func init() {
   120  	proto.RegisterType((*SchemaOptions)(nil), "namespace.SchemaOptions")
   121  	proto.RegisterType((*SchemaHistory)(nil), "namespace.SchemaHistory")
   122  	proto.RegisterType((*FileDescriptorSet)(nil), "namespace.FileDescriptorSet")
   123  }
   124  func (m *SchemaOptions) Marshal() (dAtA []byte, err error) {
   125  	size := m.Size()
   126  	dAtA = make([]byte, size)
   127  	n, err := m.MarshalTo(dAtA)
   128  	if err != nil {
   129  		return nil, err
   130  	}
   131  	return dAtA[:n], nil
   132  }
   133  
   134  func (m *SchemaOptions) MarshalTo(dAtA []byte) (int, error) {
   135  	var i int
   136  	_ = i
   137  	var l int
   138  	_ = l
   139  	if m.History != nil {
   140  		dAtA[i] = 0xa
   141  		i++
   142  		i = encodeVarintSchema(dAtA, i, uint64(m.History.Size()))
   143  		n1, err := m.History.MarshalTo(dAtA[i:])
   144  		if err != nil {
   145  			return 0, err
   146  		}
   147  		i += n1
   148  	}
   149  	if len(m.DefaultMessageName) > 0 {
   150  		dAtA[i] = 0x12
   151  		i++
   152  		i = encodeVarintSchema(dAtA, i, uint64(len(m.DefaultMessageName)))
   153  		i += copy(dAtA[i:], m.DefaultMessageName)
   154  	}
   155  	return i, nil
   156  }
   157  
   158  func (m *SchemaHistory) Marshal() (dAtA []byte, err error) {
   159  	size := m.Size()
   160  	dAtA = make([]byte, size)
   161  	n, err := m.MarshalTo(dAtA)
   162  	if err != nil {
   163  		return nil, err
   164  	}
   165  	return dAtA[:n], nil
   166  }
   167  
   168  func (m *SchemaHistory) MarshalTo(dAtA []byte) (int, error) {
   169  	var i int
   170  	_ = i
   171  	var l int
   172  	_ = l
   173  	if len(m.Versions) > 0 {
   174  		for _, msg := range m.Versions {
   175  			dAtA[i] = 0xa
   176  			i++
   177  			i = encodeVarintSchema(dAtA, i, uint64(msg.Size()))
   178  			n, err := msg.MarshalTo(dAtA[i:])
   179  			if err != nil {
   180  				return 0, err
   181  			}
   182  			i += n
   183  		}
   184  	}
   185  	return i, nil
   186  }
   187  
   188  func (m *FileDescriptorSet) Marshal() (dAtA []byte, err error) {
   189  	size := m.Size()
   190  	dAtA = make([]byte, size)
   191  	n, err := m.MarshalTo(dAtA)
   192  	if err != nil {
   193  		return nil, err
   194  	}
   195  	return dAtA[:n], nil
   196  }
   197  
   198  func (m *FileDescriptorSet) MarshalTo(dAtA []byte) (int, error) {
   199  	var i int
   200  	_ = i
   201  	var l int
   202  	_ = l
   203  	if len(m.DeployId) > 0 {
   204  		dAtA[i] = 0xa
   205  		i++
   206  		i = encodeVarintSchema(dAtA, i, uint64(len(m.DeployId)))
   207  		i += copy(dAtA[i:], m.DeployId)
   208  	}
   209  	if len(m.PrevId) > 0 {
   210  		dAtA[i] = 0x12
   211  		i++
   212  		i = encodeVarintSchema(dAtA, i, uint64(len(m.PrevId)))
   213  		i += copy(dAtA[i:], m.PrevId)
   214  	}
   215  	if len(m.Descriptors) > 0 {
   216  		for _, b := range m.Descriptors {
   217  			dAtA[i] = 0x1a
   218  			i++
   219  			i = encodeVarintSchema(dAtA, i, uint64(len(b)))
   220  			i += copy(dAtA[i:], b)
   221  		}
   222  	}
   223  	return i, nil
   224  }
   225  
   226  func encodeVarintSchema(dAtA []byte, offset int, v uint64) int {
   227  	for v >= 1<<7 {
   228  		dAtA[offset] = uint8(v&0x7f | 0x80)
   229  		v >>= 7
   230  		offset++
   231  	}
   232  	dAtA[offset] = uint8(v)
   233  	return offset + 1
   234  }
   235  func (m *SchemaOptions) Size() (n int) {
   236  	var l int
   237  	_ = l
   238  	if m.History != nil {
   239  		l = m.History.Size()
   240  		n += 1 + l + sovSchema(uint64(l))
   241  	}
   242  	l = len(m.DefaultMessageName)
   243  	if l > 0 {
   244  		n += 1 + l + sovSchema(uint64(l))
   245  	}
   246  	return n
   247  }
   248  
   249  func (m *SchemaHistory) Size() (n int) {
   250  	var l int
   251  	_ = l
   252  	if len(m.Versions) > 0 {
   253  		for _, e := range m.Versions {
   254  			l = e.Size()
   255  			n += 1 + l + sovSchema(uint64(l))
   256  		}
   257  	}
   258  	return n
   259  }
   260  
   261  func (m *FileDescriptorSet) Size() (n int) {
   262  	var l int
   263  	_ = l
   264  	l = len(m.DeployId)
   265  	if l > 0 {
   266  		n += 1 + l + sovSchema(uint64(l))
   267  	}
   268  	l = len(m.PrevId)
   269  	if l > 0 {
   270  		n += 1 + l + sovSchema(uint64(l))
   271  	}
   272  	if len(m.Descriptors) > 0 {
   273  		for _, b := range m.Descriptors {
   274  			l = len(b)
   275  			n += 1 + l + sovSchema(uint64(l))
   276  		}
   277  	}
   278  	return n
   279  }
   280  
   281  func sovSchema(x uint64) (n int) {
   282  	for {
   283  		n++
   284  		x >>= 7
   285  		if x == 0 {
   286  			break
   287  		}
   288  	}
   289  	return n
   290  }
   291  func sozSchema(x uint64) (n int) {
   292  	return sovSchema(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   293  }
   294  func (m *SchemaOptions) Unmarshal(dAtA []byte) error {
   295  	l := len(dAtA)
   296  	iNdEx := 0
   297  	for iNdEx < l {
   298  		preIndex := iNdEx
   299  		var wire uint64
   300  		for shift := uint(0); ; shift += 7 {
   301  			if shift >= 64 {
   302  				return ErrIntOverflowSchema
   303  			}
   304  			if iNdEx >= l {
   305  				return io.ErrUnexpectedEOF
   306  			}
   307  			b := dAtA[iNdEx]
   308  			iNdEx++
   309  			wire |= (uint64(b) & 0x7F) << shift
   310  			if b < 0x80 {
   311  				break
   312  			}
   313  		}
   314  		fieldNum := int32(wire >> 3)
   315  		wireType := int(wire & 0x7)
   316  		if wireType == 4 {
   317  			return fmt.Errorf("proto: SchemaOptions: wiretype end group for non-group")
   318  		}
   319  		if fieldNum <= 0 {
   320  			return fmt.Errorf("proto: SchemaOptions: illegal tag %d (wire type %d)", fieldNum, wire)
   321  		}
   322  		switch fieldNum {
   323  		case 1:
   324  			if wireType != 2 {
   325  				return fmt.Errorf("proto: wrong wireType = %d for field History", wireType)
   326  			}
   327  			var msglen int
   328  			for shift := uint(0); ; shift += 7 {
   329  				if shift >= 64 {
   330  					return ErrIntOverflowSchema
   331  				}
   332  				if iNdEx >= l {
   333  					return io.ErrUnexpectedEOF
   334  				}
   335  				b := dAtA[iNdEx]
   336  				iNdEx++
   337  				msglen |= (int(b) & 0x7F) << shift
   338  				if b < 0x80 {
   339  					break
   340  				}
   341  			}
   342  			if msglen < 0 {
   343  				return ErrInvalidLengthSchema
   344  			}
   345  			postIndex := iNdEx + msglen
   346  			if postIndex > l {
   347  				return io.ErrUnexpectedEOF
   348  			}
   349  			if m.History == nil {
   350  				m.History = &SchemaHistory{}
   351  			}
   352  			if err := m.History.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   353  				return err
   354  			}
   355  			iNdEx = postIndex
   356  		case 2:
   357  			if wireType != 2 {
   358  				return fmt.Errorf("proto: wrong wireType = %d for field DefaultMessageName", wireType)
   359  			}
   360  			var stringLen uint64
   361  			for shift := uint(0); ; shift += 7 {
   362  				if shift >= 64 {
   363  					return ErrIntOverflowSchema
   364  				}
   365  				if iNdEx >= l {
   366  					return io.ErrUnexpectedEOF
   367  				}
   368  				b := dAtA[iNdEx]
   369  				iNdEx++
   370  				stringLen |= (uint64(b) & 0x7F) << shift
   371  				if b < 0x80 {
   372  					break
   373  				}
   374  			}
   375  			intStringLen := int(stringLen)
   376  			if intStringLen < 0 {
   377  				return ErrInvalidLengthSchema
   378  			}
   379  			postIndex := iNdEx + intStringLen
   380  			if postIndex > l {
   381  				return io.ErrUnexpectedEOF
   382  			}
   383  			m.DefaultMessageName = string(dAtA[iNdEx:postIndex])
   384  			iNdEx = postIndex
   385  		default:
   386  			iNdEx = preIndex
   387  			skippy, err := skipSchema(dAtA[iNdEx:])
   388  			if err != nil {
   389  				return err
   390  			}
   391  			if skippy < 0 {
   392  				return ErrInvalidLengthSchema
   393  			}
   394  			if (iNdEx + skippy) > l {
   395  				return io.ErrUnexpectedEOF
   396  			}
   397  			iNdEx += skippy
   398  		}
   399  	}
   400  
   401  	if iNdEx > l {
   402  		return io.ErrUnexpectedEOF
   403  	}
   404  	return nil
   405  }
   406  func (m *SchemaHistory) Unmarshal(dAtA []byte) error {
   407  	l := len(dAtA)
   408  	iNdEx := 0
   409  	for iNdEx < l {
   410  		preIndex := iNdEx
   411  		var wire uint64
   412  		for shift := uint(0); ; shift += 7 {
   413  			if shift >= 64 {
   414  				return ErrIntOverflowSchema
   415  			}
   416  			if iNdEx >= l {
   417  				return io.ErrUnexpectedEOF
   418  			}
   419  			b := dAtA[iNdEx]
   420  			iNdEx++
   421  			wire |= (uint64(b) & 0x7F) << shift
   422  			if b < 0x80 {
   423  				break
   424  			}
   425  		}
   426  		fieldNum := int32(wire >> 3)
   427  		wireType := int(wire & 0x7)
   428  		if wireType == 4 {
   429  			return fmt.Errorf("proto: SchemaHistory: wiretype end group for non-group")
   430  		}
   431  		if fieldNum <= 0 {
   432  			return fmt.Errorf("proto: SchemaHistory: illegal tag %d (wire type %d)", fieldNum, wire)
   433  		}
   434  		switch fieldNum {
   435  		case 1:
   436  			if wireType != 2 {
   437  				return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType)
   438  			}
   439  			var msglen int
   440  			for shift := uint(0); ; shift += 7 {
   441  				if shift >= 64 {
   442  					return ErrIntOverflowSchema
   443  				}
   444  				if iNdEx >= l {
   445  					return io.ErrUnexpectedEOF
   446  				}
   447  				b := dAtA[iNdEx]
   448  				iNdEx++
   449  				msglen |= (int(b) & 0x7F) << shift
   450  				if b < 0x80 {
   451  					break
   452  				}
   453  			}
   454  			if msglen < 0 {
   455  				return ErrInvalidLengthSchema
   456  			}
   457  			postIndex := iNdEx + msglen
   458  			if postIndex > l {
   459  				return io.ErrUnexpectedEOF
   460  			}
   461  			m.Versions = append(m.Versions, &FileDescriptorSet{})
   462  			if err := m.Versions[len(m.Versions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   463  				return err
   464  			}
   465  			iNdEx = postIndex
   466  		default:
   467  			iNdEx = preIndex
   468  			skippy, err := skipSchema(dAtA[iNdEx:])
   469  			if err != nil {
   470  				return err
   471  			}
   472  			if skippy < 0 {
   473  				return ErrInvalidLengthSchema
   474  			}
   475  			if (iNdEx + skippy) > l {
   476  				return io.ErrUnexpectedEOF
   477  			}
   478  			iNdEx += skippy
   479  		}
   480  	}
   481  
   482  	if iNdEx > l {
   483  		return io.ErrUnexpectedEOF
   484  	}
   485  	return nil
   486  }
   487  func (m *FileDescriptorSet) Unmarshal(dAtA []byte) error {
   488  	l := len(dAtA)
   489  	iNdEx := 0
   490  	for iNdEx < l {
   491  		preIndex := iNdEx
   492  		var wire uint64
   493  		for shift := uint(0); ; shift += 7 {
   494  			if shift >= 64 {
   495  				return ErrIntOverflowSchema
   496  			}
   497  			if iNdEx >= l {
   498  				return io.ErrUnexpectedEOF
   499  			}
   500  			b := dAtA[iNdEx]
   501  			iNdEx++
   502  			wire |= (uint64(b) & 0x7F) << shift
   503  			if b < 0x80 {
   504  				break
   505  			}
   506  		}
   507  		fieldNum := int32(wire >> 3)
   508  		wireType := int(wire & 0x7)
   509  		if wireType == 4 {
   510  			return fmt.Errorf("proto: FileDescriptorSet: wiretype end group for non-group")
   511  		}
   512  		if fieldNum <= 0 {
   513  			return fmt.Errorf("proto: FileDescriptorSet: illegal tag %d (wire type %d)", fieldNum, wire)
   514  		}
   515  		switch fieldNum {
   516  		case 1:
   517  			if wireType != 2 {
   518  				return fmt.Errorf("proto: wrong wireType = %d for field DeployId", wireType)
   519  			}
   520  			var stringLen uint64
   521  			for shift := uint(0); ; shift += 7 {
   522  				if shift >= 64 {
   523  					return ErrIntOverflowSchema
   524  				}
   525  				if iNdEx >= l {
   526  					return io.ErrUnexpectedEOF
   527  				}
   528  				b := dAtA[iNdEx]
   529  				iNdEx++
   530  				stringLen |= (uint64(b) & 0x7F) << shift
   531  				if b < 0x80 {
   532  					break
   533  				}
   534  			}
   535  			intStringLen := int(stringLen)
   536  			if intStringLen < 0 {
   537  				return ErrInvalidLengthSchema
   538  			}
   539  			postIndex := iNdEx + intStringLen
   540  			if postIndex > l {
   541  				return io.ErrUnexpectedEOF
   542  			}
   543  			m.DeployId = string(dAtA[iNdEx:postIndex])
   544  			iNdEx = postIndex
   545  		case 2:
   546  			if wireType != 2 {
   547  				return fmt.Errorf("proto: wrong wireType = %d for field PrevId", wireType)
   548  			}
   549  			var stringLen uint64
   550  			for shift := uint(0); ; shift += 7 {
   551  				if shift >= 64 {
   552  					return ErrIntOverflowSchema
   553  				}
   554  				if iNdEx >= l {
   555  					return io.ErrUnexpectedEOF
   556  				}
   557  				b := dAtA[iNdEx]
   558  				iNdEx++
   559  				stringLen |= (uint64(b) & 0x7F) << shift
   560  				if b < 0x80 {
   561  					break
   562  				}
   563  			}
   564  			intStringLen := int(stringLen)
   565  			if intStringLen < 0 {
   566  				return ErrInvalidLengthSchema
   567  			}
   568  			postIndex := iNdEx + intStringLen
   569  			if postIndex > l {
   570  				return io.ErrUnexpectedEOF
   571  			}
   572  			m.PrevId = string(dAtA[iNdEx:postIndex])
   573  			iNdEx = postIndex
   574  		case 3:
   575  			if wireType != 2 {
   576  				return fmt.Errorf("proto: wrong wireType = %d for field Descriptors", wireType)
   577  			}
   578  			var byteLen int
   579  			for shift := uint(0); ; shift += 7 {
   580  				if shift >= 64 {
   581  					return ErrIntOverflowSchema
   582  				}
   583  				if iNdEx >= l {
   584  					return io.ErrUnexpectedEOF
   585  				}
   586  				b := dAtA[iNdEx]
   587  				iNdEx++
   588  				byteLen |= (int(b) & 0x7F) << shift
   589  				if b < 0x80 {
   590  					break
   591  				}
   592  			}
   593  			if byteLen < 0 {
   594  				return ErrInvalidLengthSchema
   595  			}
   596  			postIndex := iNdEx + byteLen
   597  			if postIndex > l {
   598  				return io.ErrUnexpectedEOF
   599  			}
   600  			m.Descriptors = append(m.Descriptors, make([]byte, postIndex-iNdEx))
   601  			copy(m.Descriptors[len(m.Descriptors)-1], dAtA[iNdEx:postIndex])
   602  			iNdEx = postIndex
   603  		default:
   604  			iNdEx = preIndex
   605  			skippy, err := skipSchema(dAtA[iNdEx:])
   606  			if err != nil {
   607  				return err
   608  			}
   609  			if skippy < 0 {
   610  				return ErrInvalidLengthSchema
   611  			}
   612  			if (iNdEx + skippy) > l {
   613  				return io.ErrUnexpectedEOF
   614  			}
   615  			iNdEx += skippy
   616  		}
   617  	}
   618  
   619  	if iNdEx > l {
   620  		return io.ErrUnexpectedEOF
   621  	}
   622  	return nil
   623  }
   624  func skipSchema(dAtA []byte) (n int, err error) {
   625  	l := len(dAtA)
   626  	iNdEx := 0
   627  	for iNdEx < l {
   628  		var wire uint64
   629  		for shift := uint(0); ; shift += 7 {
   630  			if shift >= 64 {
   631  				return 0, ErrIntOverflowSchema
   632  			}
   633  			if iNdEx >= l {
   634  				return 0, io.ErrUnexpectedEOF
   635  			}
   636  			b := dAtA[iNdEx]
   637  			iNdEx++
   638  			wire |= (uint64(b) & 0x7F) << shift
   639  			if b < 0x80 {
   640  				break
   641  			}
   642  		}
   643  		wireType := int(wire & 0x7)
   644  		switch wireType {
   645  		case 0:
   646  			for shift := uint(0); ; shift += 7 {
   647  				if shift >= 64 {
   648  					return 0, ErrIntOverflowSchema
   649  				}
   650  				if iNdEx >= l {
   651  					return 0, io.ErrUnexpectedEOF
   652  				}
   653  				iNdEx++
   654  				if dAtA[iNdEx-1] < 0x80 {
   655  					break
   656  				}
   657  			}
   658  			return iNdEx, nil
   659  		case 1:
   660  			iNdEx += 8
   661  			return iNdEx, nil
   662  		case 2:
   663  			var length int
   664  			for shift := uint(0); ; shift += 7 {
   665  				if shift >= 64 {
   666  					return 0, ErrIntOverflowSchema
   667  				}
   668  				if iNdEx >= l {
   669  					return 0, io.ErrUnexpectedEOF
   670  				}
   671  				b := dAtA[iNdEx]
   672  				iNdEx++
   673  				length |= (int(b) & 0x7F) << shift
   674  				if b < 0x80 {
   675  					break
   676  				}
   677  			}
   678  			iNdEx += length
   679  			if length < 0 {
   680  				return 0, ErrInvalidLengthSchema
   681  			}
   682  			return iNdEx, nil
   683  		case 3:
   684  			for {
   685  				var innerWire uint64
   686  				var start int = iNdEx
   687  				for shift := uint(0); ; shift += 7 {
   688  					if shift >= 64 {
   689  						return 0, ErrIntOverflowSchema
   690  					}
   691  					if iNdEx >= l {
   692  						return 0, io.ErrUnexpectedEOF
   693  					}
   694  					b := dAtA[iNdEx]
   695  					iNdEx++
   696  					innerWire |= (uint64(b) & 0x7F) << shift
   697  					if b < 0x80 {
   698  						break
   699  					}
   700  				}
   701  				innerWireType := int(innerWire & 0x7)
   702  				if innerWireType == 4 {
   703  					break
   704  				}
   705  				next, err := skipSchema(dAtA[start:])
   706  				if err != nil {
   707  					return 0, err
   708  				}
   709  				iNdEx = start + next
   710  			}
   711  			return iNdEx, nil
   712  		case 4:
   713  			return iNdEx, nil
   714  		case 5:
   715  			iNdEx += 4
   716  			return iNdEx, nil
   717  		default:
   718  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   719  		}
   720  	}
   721  	panic("unreachable")
   722  }
   723  
   724  var (
   725  	ErrInvalidLengthSchema = fmt.Errorf("proto: negative length found during unmarshaling")
   726  	ErrIntOverflowSchema   = fmt.Errorf("proto: integer overflow")
   727  )
   728  
   729  func init() {
   730  	proto.RegisterFile("github.com/m3db/m3/src/dbnode/generated/proto/namespace/schema.proto", fileDescriptorSchema)
   731  }
   732  
   733  var fileDescriptorSchema = []byte{
   734  	// 286 bytes of a gzipped FileDescriptorProto
   735  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x4a, 0xec, 0x30,
   736  	0x14, 0x86, 0x6f, 0xee, 0xc0, 0x38, 0x4d, 0x15, 0x34, 0x0b, 0x29, 0x22, 0xa5, 0x74, 0xd5, 0x55,
   737  	0x03, 0xed, 0xc6, 0xb5, 0x0c, 0x62, 0x17, 0x2a, 0x74, 0x9e, 0x20, 0x6d, 0x8e, 0x6d, 0xa0, 0x69,
   738  	0x42, 0x92, 0x19, 0x98, 0xb7, 0xf0, 0xb1, 0x5c, 0xfa, 0x08, 0x52, 0x5f, 0x44, 0xec, 0x74, 0xca,
   739  	0x80, 0x2e, 0xcf, 0xff, 0x7d, 0x9c, 0xf3, 0x27, 0x78, 0xdd, 0x08, 0xd7, 0x6e, 0xab, 0xb4, 0x56,
   740  	0x92, 0xca, 0x9c, 0x57, 0x54, 0xe6, 0xd4, 0x9a, 0x9a, 0xf2, 0xaa, 0x57, 0x1c, 0x68, 0x03, 0x3d,
   741  	0x18, 0xe6, 0x80, 0x53, 0x6d, 0x94, 0x53, 0xb4, 0x67, 0x12, 0xac, 0x66, 0x35, 0x50, 0x5b, 0xb7,
   742  	0x20, 0x59, 0x3a, 0xc6, 0xc4, 0x9b, 0xf3, 0xd8, 0xe2, 0x8b, 0xcd, 0x88, 0x5e, 0xb4, 0x13, 0xaa,
   743  	0xb7, 0x24, 0xc3, 0x67, 0xad, 0xb0, 0x4e, 0x99, 0x7d, 0x80, 0x22, 0x94, 0xf8, 0x59, 0x90, 0xce,
   744  	0x76, 0x7a, 0x50, 0x1f, 0x0f, 0xbc, 0x3c, 0x8a, 0x24, 0xc5, 0x84, 0xc3, 0x2b, 0xdb, 0x76, 0xee,
   745  	0x09, 0xac, 0x65, 0x0d, 0x3c, 0x33, 0x09, 0xc1, 0xff, 0x08, 0x25, 0x5e, 0xf9, 0x07, 0x89, 0x8b,
   746  	0xe3, 0xd1, 0x69, 0x13, 0xb9, 0xc3, 0xab, 0x1d, 0x18, 0xfb, 0x53, 0x20, 0x40, 0xd1, 0x22, 0xf1,
   747  	0xb3, 0xdb, 0x93, 0xab, 0x0f, 0xa2, 0x83, 0x35, 0xd8, 0xda, 0x08, 0xed, 0x94, 0xd9, 0x80, 0x2b,
   748  	0x67, 0x3b, 0x16, 0xf8, 0xea, 0x17, 0x26, 0x37, 0x78, 0xc5, 0x41, 0x77, 0x6a, 0x5f, 0xf0, 0xf1,
   749  	0x11, 0x5e, 0x39, 0xcf, 0xe4, 0x1a, 0x2f, 0xb5, 0x81, 0x5d, 0xc1, 0xa7, 0x7e, 0xd3, 0x44, 0x22,
   750  	0xec, 0xf3, 0x79, 0x89, 0x0d, 0x16, 0xd1, 0x22, 0x39, 0x2f, 0x4f, 0xa3, 0xfb, 0xcb, 0xf7, 0x21,
   751  	0x44, 0x1f, 0x43, 0x88, 0x3e, 0x87, 0x10, 0xbd, 0x7d, 0x85, 0xff, 0xaa, 0xe5, 0xf8, 0x9d, 0xf9,
   752  	0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x98, 0xeb, 0x4b, 0x47, 0x96, 0x01, 0x00, 0x00,
   753  }