github.com/m3db/m3@v1.5.0/src/metrics/generated/proto/rulepb/namespace.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/m3db/m3/src/metrics/generated/proto/rulepb/namespace.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  /*
    25  	Package rulepb is a generated protocol buffer package.
    26  
    27  	It is generated from these files:
    28  		github.com/m3db/m3/src/metrics/generated/proto/rulepb/namespace.proto
    29  		github.com/m3db/m3/src/metrics/generated/proto/rulepb/rule.proto
    30  
    31  	It has these top-level messages:
    32  		NamespaceSnapshot
    33  		Namespace
    34  		Namespaces
    35  		MappingRuleSnapshot
    36  		MappingRule
    37  		RollupTarget
    38  		RollupTargetV2
    39  		RollupRuleSnapshot
    40  		RollupRule
    41  		RuleSet
    42  */
    43  package rulepb
    44  
    45  import proto "github.com/gogo/protobuf/proto"
    46  import fmt "fmt"
    47  import math "math"
    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 NamespaceSnapshot struct {
    63  	ForRulesetVersion  int32  `protobuf:"varint,1,opt,name=for_ruleset_version,json=forRulesetVersion,proto3" json:"for_ruleset_version,omitempty"`
    64  	Tombstoned         bool   `protobuf:"varint,2,opt,name=tombstoned,proto3" json:"tombstoned,omitempty"`
    65  	LastUpdatedAtNanos int64  `protobuf:"varint,3,opt,name=last_updated_at_nanos,json=lastUpdatedAtNanos,proto3" json:"last_updated_at_nanos,omitempty"`
    66  	LastUpdatedBy      string `protobuf:"bytes,4,opt,name=last_updated_by,json=lastUpdatedBy,proto3" json:"last_updated_by,omitempty"`
    67  }
    68  
    69  func (m *NamespaceSnapshot) Reset()                    { *m = NamespaceSnapshot{} }
    70  func (m *NamespaceSnapshot) String() string            { return proto.CompactTextString(m) }
    71  func (*NamespaceSnapshot) ProtoMessage()               {}
    72  func (*NamespaceSnapshot) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{0} }
    73  
    74  func (m *NamespaceSnapshot) GetForRulesetVersion() int32 {
    75  	if m != nil {
    76  		return m.ForRulesetVersion
    77  	}
    78  	return 0
    79  }
    80  
    81  func (m *NamespaceSnapshot) GetTombstoned() bool {
    82  	if m != nil {
    83  		return m.Tombstoned
    84  	}
    85  	return false
    86  }
    87  
    88  func (m *NamespaceSnapshot) GetLastUpdatedAtNanos() int64 {
    89  	if m != nil {
    90  		return m.LastUpdatedAtNanos
    91  	}
    92  	return 0
    93  }
    94  
    95  func (m *NamespaceSnapshot) GetLastUpdatedBy() string {
    96  	if m != nil {
    97  		return m.LastUpdatedBy
    98  	}
    99  	return ""
   100  }
   101  
   102  type Namespace struct {
   103  	Name      string               `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   104  	Snapshots []*NamespaceSnapshot `protobuf:"bytes,2,rep,name=snapshots" json:"snapshots,omitempty"`
   105  }
   106  
   107  func (m *Namespace) Reset()                    { *m = Namespace{} }
   108  func (m *Namespace) String() string            { return proto.CompactTextString(m) }
   109  func (*Namespace) ProtoMessage()               {}
   110  func (*Namespace) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{1} }
   111  
   112  func (m *Namespace) GetName() string {
   113  	if m != nil {
   114  		return m.Name
   115  	}
   116  	return ""
   117  }
   118  
   119  func (m *Namespace) GetSnapshots() []*NamespaceSnapshot {
   120  	if m != nil {
   121  		return m.Snapshots
   122  	}
   123  	return nil
   124  }
   125  
   126  type Namespaces struct {
   127  	Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces" json:"namespaces,omitempty"`
   128  }
   129  
   130  func (m *Namespaces) Reset()                    { *m = Namespaces{} }
   131  func (m *Namespaces) String() string            { return proto.CompactTextString(m) }
   132  func (*Namespaces) ProtoMessage()               {}
   133  func (*Namespaces) Descriptor() ([]byte, []int) { return fileDescriptorNamespace, []int{2} }
   134  
   135  func (m *Namespaces) GetNamespaces() []*Namespace {
   136  	if m != nil {
   137  		return m.Namespaces
   138  	}
   139  	return nil
   140  }
   141  
   142  func init() {
   143  	proto.RegisterType((*NamespaceSnapshot)(nil), "rulepb.NamespaceSnapshot")
   144  	proto.RegisterType((*Namespace)(nil), "rulepb.Namespace")
   145  	proto.RegisterType((*Namespaces)(nil), "rulepb.Namespaces")
   146  }
   147  func (m *NamespaceSnapshot) Marshal() (dAtA []byte, err error) {
   148  	size := m.Size()
   149  	dAtA = make([]byte, size)
   150  	n, err := m.MarshalTo(dAtA)
   151  	if err != nil {
   152  		return nil, err
   153  	}
   154  	return dAtA[:n], nil
   155  }
   156  
   157  func (m *NamespaceSnapshot) MarshalTo(dAtA []byte) (int, error) {
   158  	var i int
   159  	_ = i
   160  	var l int
   161  	_ = l
   162  	if m.ForRulesetVersion != 0 {
   163  		dAtA[i] = 0x8
   164  		i++
   165  		i = encodeVarintNamespace(dAtA, i, uint64(m.ForRulesetVersion))
   166  	}
   167  	if m.Tombstoned {
   168  		dAtA[i] = 0x10
   169  		i++
   170  		if m.Tombstoned {
   171  			dAtA[i] = 1
   172  		} else {
   173  			dAtA[i] = 0
   174  		}
   175  		i++
   176  	}
   177  	if m.LastUpdatedAtNanos != 0 {
   178  		dAtA[i] = 0x18
   179  		i++
   180  		i = encodeVarintNamespace(dAtA, i, uint64(m.LastUpdatedAtNanos))
   181  	}
   182  	if len(m.LastUpdatedBy) > 0 {
   183  		dAtA[i] = 0x22
   184  		i++
   185  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.LastUpdatedBy)))
   186  		i += copy(dAtA[i:], m.LastUpdatedBy)
   187  	}
   188  	return i, nil
   189  }
   190  
   191  func (m *Namespace) Marshal() (dAtA []byte, err error) {
   192  	size := m.Size()
   193  	dAtA = make([]byte, size)
   194  	n, err := m.MarshalTo(dAtA)
   195  	if err != nil {
   196  		return nil, err
   197  	}
   198  	return dAtA[:n], nil
   199  }
   200  
   201  func (m *Namespace) MarshalTo(dAtA []byte) (int, error) {
   202  	var i int
   203  	_ = i
   204  	var l int
   205  	_ = l
   206  	if len(m.Name) > 0 {
   207  		dAtA[i] = 0xa
   208  		i++
   209  		i = encodeVarintNamespace(dAtA, i, uint64(len(m.Name)))
   210  		i += copy(dAtA[i:], m.Name)
   211  	}
   212  	if len(m.Snapshots) > 0 {
   213  		for _, msg := range m.Snapshots {
   214  			dAtA[i] = 0x12
   215  			i++
   216  			i = encodeVarintNamespace(dAtA, i, uint64(msg.Size()))
   217  			n, err := msg.MarshalTo(dAtA[i:])
   218  			if err != nil {
   219  				return 0, err
   220  			}
   221  			i += n
   222  		}
   223  	}
   224  	return i, nil
   225  }
   226  
   227  func (m *Namespaces) Marshal() (dAtA []byte, err error) {
   228  	size := m.Size()
   229  	dAtA = make([]byte, size)
   230  	n, err := m.MarshalTo(dAtA)
   231  	if err != nil {
   232  		return nil, err
   233  	}
   234  	return dAtA[:n], nil
   235  }
   236  
   237  func (m *Namespaces) MarshalTo(dAtA []byte) (int, error) {
   238  	var i int
   239  	_ = i
   240  	var l int
   241  	_ = l
   242  	if len(m.Namespaces) > 0 {
   243  		for _, msg := range m.Namespaces {
   244  			dAtA[i] = 0xa
   245  			i++
   246  			i = encodeVarintNamespace(dAtA, i, uint64(msg.Size()))
   247  			n, err := msg.MarshalTo(dAtA[i:])
   248  			if err != nil {
   249  				return 0, err
   250  			}
   251  			i += n
   252  		}
   253  	}
   254  	return i, nil
   255  }
   256  
   257  func encodeVarintNamespace(dAtA []byte, offset int, v uint64) int {
   258  	for v >= 1<<7 {
   259  		dAtA[offset] = uint8(v&0x7f | 0x80)
   260  		v >>= 7
   261  		offset++
   262  	}
   263  	dAtA[offset] = uint8(v)
   264  	return offset + 1
   265  }
   266  func (m *NamespaceSnapshot) Size() (n int) {
   267  	var l int
   268  	_ = l
   269  	if m.ForRulesetVersion != 0 {
   270  		n += 1 + sovNamespace(uint64(m.ForRulesetVersion))
   271  	}
   272  	if m.Tombstoned {
   273  		n += 2
   274  	}
   275  	if m.LastUpdatedAtNanos != 0 {
   276  		n += 1 + sovNamespace(uint64(m.LastUpdatedAtNanos))
   277  	}
   278  	l = len(m.LastUpdatedBy)
   279  	if l > 0 {
   280  		n += 1 + l + sovNamespace(uint64(l))
   281  	}
   282  	return n
   283  }
   284  
   285  func (m *Namespace) Size() (n int) {
   286  	var l int
   287  	_ = l
   288  	l = len(m.Name)
   289  	if l > 0 {
   290  		n += 1 + l + sovNamespace(uint64(l))
   291  	}
   292  	if len(m.Snapshots) > 0 {
   293  		for _, e := range m.Snapshots {
   294  			l = e.Size()
   295  			n += 1 + l + sovNamespace(uint64(l))
   296  		}
   297  	}
   298  	return n
   299  }
   300  
   301  func (m *Namespaces) Size() (n int) {
   302  	var l int
   303  	_ = l
   304  	if len(m.Namespaces) > 0 {
   305  		for _, e := range m.Namespaces {
   306  			l = e.Size()
   307  			n += 1 + l + sovNamespace(uint64(l))
   308  		}
   309  	}
   310  	return n
   311  }
   312  
   313  func sovNamespace(x uint64) (n int) {
   314  	for {
   315  		n++
   316  		x >>= 7
   317  		if x == 0 {
   318  			break
   319  		}
   320  	}
   321  	return n
   322  }
   323  func sozNamespace(x uint64) (n int) {
   324  	return sovNamespace(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   325  }
   326  func (m *NamespaceSnapshot) Unmarshal(dAtA []byte) error {
   327  	l := len(dAtA)
   328  	iNdEx := 0
   329  	for iNdEx < l {
   330  		preIndex := iNdEx
   331  		var wire uint64
   332  		for shift := uint(0); ; shift += 7 {
   333  			if shift >= 64 {
   334  				return ErrIntOverflowNamespace
   335  			}
   336  			if iNdEx >= l {
   337  				return io.ErrUnexpectedEOF
   338  			}
   339  			b := dAtA[iNdEx]
   340  			iNdEx++
   341  			wire |= (uint64(b) & 0x7F) << shift
   342  			if b < 0x80 {
   343  				break
   344  			}
   345  		}
   346  		fieldNum := int32(wire >> 3)
   347  		wireType := int(wire & 0x7)
   348  		if wireType == 4 {
   349  			return fmt.Errorf("proto: NamespaceSnapshot: wiretype end group for non-group")
   350  		}
   351  		if fieldNum <= 0 {
   352  			return fmt.Errorf("proto: NamespaceSnapshot: illegal tag %d (wire type %d)", fieldNum, wire)
   353  		}
   354  		switch fieldNum {
   355  		case 1:
   356  			if wireType != 0 {
   357  				return fmt.Errorf("proto: wrong wireType = %d for field ForRulesetVersion", wireType)
   358  			}
   359  			m.ForRulesetVersion = 0
   360  			for shift := uint(0); ; shift += 7 {
   361  				if shift >= 64 {
   362  					return ErrIntOverflowNamespace
   363  				}
   364  				if iNdEx >= l {
   365  					return io.ErrUnexpectedEOF
   366  				}
   367  				b := dAtA[iNdEx]
   368  				iNdEx++
   369  				m.ForRulesetVersion |= (int32(b) & 0x7F) << shift
   370  				if b < 0x80 {
   371  					break
   372  				}
   373  			}
   374  		case 2:
   375  			if wireType != 0 {
   376  				return fmt.Errorf("proto: wrong wireType = %d for field Tombstoned", wireType)
   377  			}
   378  			var v int
   379  			for shift := uint(0); ; shift += 7 {
   380  				if shift >= 64 {
   381  					return ErrIntOverflowNamespace
   382  				}
   383  				if iNdEx >= l {
   384  					return io.ErrUnexpectedEOF
   385  				}
   386  				b := dAtA[iNdEx]
   387  				iNdEx++
   388  				v |= (int(b) & 0x7F) << shift
   389  				if b < 0x80 {
   390  					break
   391  				}
   392  			}
   393  			m.Tombstoned = bool(v != 0)
   394  		case 3:
   395  			if wireType != 0 {
   396  				return fmt.Errorf("proto: wrong wireType = %d for field LastUpdatedAtNanos", wireType)
   397  			}
   398  			m.LastUpdatedAtNanos = 0
   399  			for shift := uint(0); ; shift += 7 {
   400  				if shift >= 64 {
   401  					return ErrIntOverflowNamespace
   402  				}
   403  				if iNdEx >= l {
   404  					return io.ErrUnexpectedEOF
   405  				}
   406  				b := dAtA[iNdEx]
   407  				iNdEx++
   408  				m.LastUpdatedAtNanos |= (int64(b) & 0x7F) << shift
   409  				if b < 0x80 {
   410  					break
   411  				}
   412  			}
   413  		case 4:
   414  			if wireType != 2 {
   415  				return fmt.Errorf("proto: wrong wireType = %d for field LastUpdatedBy", wireType)
   416  			}
   417  			var stringLen uint64
   418  			for shift := uint(0); ; shift += 7 {
   419  				if shift >= 64 {
   420  					return ErrIntOverflowNamespace
   421  				}
   422  				if iNdEx >= l {
   423  					return io.ErrUnexpectedEOF
   424  				}
   425  				b := dAtA[iNdEx]
   426  				iNdEx++
   427  				stringLen |= (uint64(b) & 0x7F) << shift
   428  				if b < 0x80 {
   429  					break
   430  				}
   431  			}
   432  			intStringLen := int(stringLen)
   433  			if intStringLen < 0 {
   434  				return ErrInvalidLengthNamespace
   435  			}
   436  			postIndex := iNdEx + intStringLen
   437  			if postIndex > l {
   438  				return io.ErrUnexpectedEOF
   439  			}
   440  			m.LastUpdatedBy = string(dAtA[iNdEx:postIndex])
   441  			iNdEx = postIndex
   442  		default:
   443  			iNdEx = preIndex
   444  			skippy, err := skipNamespace(dAtA[iNdEx:])
   445  			if err != nil {
   446  				return err
   447  			}
   448  			if skippy < 0 {
   449  				return ErrInvalidLengthNamespace
   450  			}
   451  			if (iNdEx + skippy) > l {
   452  				return io.ErrUnexpectedEOF
   453  			}
   454  			iNdEx += skippy
   455  		}
   456  	}
   457  
   458  	if iNdEx > l {
   459  		return io.ErrUnexpectedEOF
   460  	}
   461  	return nil
   462  }
   463  func (m *Namespace) Unmarshal(dAtA []byte) error {
   464  	l := len(dAtA)
   465  	iNdEx := 0
   466  	for iNdEx < l {
   467  		preIndex := iNdEx
   468  		var wire uint64
   469  		for shift := uint(0); ; shift += 7 {
   470  			if shift >= 64 {
   471  				return ErrIntOverflowNamespace
   472  			}
   473  			if iNdEx >= l {
   474  				return io.ErrUnexpectedEOF
   475  			}
   476  			b := dAtA[iNdEx]
   477  			iNdEx++
   478  			wire |= (uint64(b) & 0x7F) << shift
   479  			if b < 0x80 {
   480  				break
   481  			}
   482  		}
   483  		fieldNum := int32(wire >> 3)
   484  		wireType := int(wire & 0x7)
   485  		if wireType == 4 {
   486  			return fmt.Errorf("proto: Namespace: wiretype end group for non-group")
   487  		}
   488  		if fieldNum <= 0 {
   489  			return fmt.Errorf("proto: Namespace: illegal tag %d (wire type %d)", fieldNum, wire)
   490  		}
   491  		switch fieldNum {
   492  		case 1:
   493  			if wireType != 2 {
   494  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
   495  			}
   496  			var stringLen uint64
   497  			for shift := uint(0); ; shift += 7 {
   498  				if shift >= 64 {
   499  					return ErrIntOverflowNamespace
   500  				}
   501  				if iNdEx >= l {
   502  					return io.ErrUnexpectedEOF
   503  				}
   504  				b := dAtA[iNdEx]
   505  				iNdEx++
   506  				stringLen |= (uint64(b) & 0x7F) << shift
   507  				if b < 0x80 {
   508  					break
   509  				}
   510  			}
   511  			intStringLen := int(stringLen)
   512  			if intStringLen < 0 {
   513  				return ErrInvalidLengthNamespace
   514  			}
   515  			postIndex := iNdEx + intStringLen
   516  			if postIndex > l {
   517  				return io.ErrUnexpectedEOF
   518  			}
   519  			m.Name = string(dAtA[iNdEx:postIndex])
   520  			iNdEx = postIndex
   521  		case 2:
   522  			if wireType != 2 {
   523  				return fmt.Errorf("proto: wrong wireType = %d for field Snapshots", wireType)
   524  			}
   525  			var msglen int
   526  			for shift := uint(0); ; shift += 7 {
   527  				if shift >= 64 {
   528  					return ErrIntOverflowNamespace
   529  				}
   530  				if iNdEx >= l {
   531  					return io.ErrUnexpectedEOF
   532  				}
   533  				b := dAtA[iNdEx]
   534  				iNdEx++
   535  				msglen |= (int(b) & 0x7F) << shift
   536  				if b < 0x80 {
   537  					break
   538  				}
   539  			}
   540  			if msglen < 0 {
   541  				return ErrInvalidLengthNamespace
   542  			}
   543  			postIndex := iNdEx + msglen
   544  			if postIndex > l {
   545  				return io.ErrUnexpectedEOF
   546  			}
   547  			m.Snapshots = append(m.Snapshots, &NamespaceSnapshot{})
   548  			if err := m.Snapshots[len(m.Snapshots)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   549  				return err
   550  			}
   551  			iNdEx = postIndex
   552  		default:
   553  			iNdEx = preIndex
   554  			skippy, err := skipNamespace(dAtA[iNdEx:])
   555  			if err != nil {
   556  				return err
   557  			}
   558  			if skippy < 0 {
   559  				return ErrInvalidLengthNamespace
   560  			}
   561  			if (iNdEx + skippy) > l {
   562  				return io.ErrUnexpectedEOF
   563  			}
   564  			iNdEx += skippy
   565  		}
   566  	}
   567  
   568  	if iNdEx > l {
   569  		return io.ErrUnexpectedEOF
   570  	}
   571  	return nil
   572  }
   573  func (m *Namespaces) Unmarshal(dAtA []byte) error {
   574  	l := len(dAtA)
   575  	iNdEx := 0
   576  	for iNdEx < l {
   577  		preIndex := iNdEx
   578  		var wire uint64
   579  		for shift := uint(0); ; shift += 7 {
   580  			if shift >= 64 {
   581  				return ErrIntOverflowNamespace
   582  			}
   583  			if iNdEx >= l {
   584  				return io.ErrUnexpectedEOF
   585  			}
   586  			b := dAtA[iNdEx]
   587  			iNdEx++
   588  			wire |= (uint64(b) & 0x7F) << shift
   589  			if b < 0x80 {
   590  				break
   591  			}
   592  		}
   593  		fieldNum := int32(wire >> 3)
   594  		wireType := int(wire & 0x7)
   595  		if wireType == 4 {
   596  			return fmt.Errorf("proto: Namespaces: wiretype end group for non-group")
   597  		}
   598  		if fieldNum <= 0 {
   599  			return fmt.Errorf("proto: Namespaces: illegal tag %d (wire type %d)", fieldNum, wire)
   600  		}
   601  		switch fieldNum {
   602  		case 1:
   603  			if wireType != 2 {
   604  				return fmt.Errorf("proto: wrong wireType = %d for field Namespaces", wireType)
   605  			}
   606  			var msglen int
   607  			for shift := uint(0); ; shift += 7 {
   608  				if shift >= 64 {
   609  					return ErrIntOverflowNamespace
   610  				}
   611  				if iNdEx >= l {
   612  					return io.ErrUnexpectedEOF
   613  				}
   614  				b := dAtA[iNdEx]
   615  				iNdEx++
   616  				msglen |= (int(b) & 0x7F) << shift
   617  				if b < 0x80 {
   618  					break
   619  				}
   620  			}
   621  			if msglen < 0 {
   622  				return ErrInvalidLengthNamespace
   623  			}
   624  			postIndex := iNdEx + msglen
   625  			if postIndex > l {
   626  				return io.ErrUnexpectedEOF
   627  			}
   628  			m.Namespaces = append(m.Namespaces, &Namespace{})
   629  			if err := m.Namespaces[len(m.Namespaces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   630  				return err
   631  			}
   632  			iNdEx = postIndex
   633  		default:
   634  			iNdEx = preIndex
   635  			skippy, err := skipNamespace(dAtA[iNdEx:])
   636  			if err != nil {
   637  				return err
   638  			}
   639  			if skippy < 0 {
   640  				return ErrInvalidLengthNamespace
   641  			}
   642  			if (iNdEx + skippy) > l {
   643  				return io.ErrUnexpectedEOF
   644  			}
   645  			iNdEx += skippy
   646  		}
   647  	}
   648  
   649  	if iNdEx > l {
   650  		return io.ErrUnexpectedEOF
   651  	}
   652  	return nil
   653  }
   654  func skipNamespace(dAtA []byte) (n int, err error) {
   655  	l := len(dAtA)
   656  	iNdEx := 0
   657  	for iNdEx < l {
   658  		var wire uint64
   659  		for shift := uint(0); ; shift += 7 {
   660  			if shift >= 64 {
   661  				return 0, ErrIntOverflowNamespace
   662  			}
   663  			if iNdEx >= l {
   664  				return 0, io.ErrUnexpectedEOF
   665  			}
   666  			b := dAtA[iNdEx]
   667  			iNdEx++
   668  			wire |= (uint64(b) & 0x7F) << shift
   669  			if b < 0x80 {
   670  				break
   671  			}
   672  		}
   673  		wireType := int(wire & 0x7)
   674  		switch wireType {
   675  		case 0:
   676  			for shift := uint(0); ; shift += 7 {
   677  				if shift >= 64 {
   678  					return 0, ErrIntOverflowNamespace
   679  				}
   680  				if iNdEx >= l {
   681  					return 0, io.ErrUnexpectedEOF
   682  				}
   683  				iNdEx++
   684  				if dAtA[iNdEx-1] < 0x80 {
   685  					break
   686  				}
   687  			}
   688  			return iNdEx, nil
   689  		case 1:
   690  			iNdEx += 8
   691  			return iNdEx, nil
   692  		case 2:
   693  			var length int
   694  			for shift := uint(0); ; shift += 7 {
   695  				if shift >= 64 {
   696  					return 0, ErrIntOverflowNamespace
   697  				}
   698  				if iNdEx >= l {
   699  					return 0, io.ErrUnexpectedEOF
   700  				}
   701  				b := dAtA[iNdEx]
   702  				iNdEx++
   703  				length |= (int(b) & 0x7F) << shift
   704  				if b < 0x80 {
   705  					break
   706  				}
   707  			}
   708  			iNdEx += length
   709  			if length < 0 {
   710  				return 0, ErrInvalidLengthNamespace
   711  			}
   712  			return iNdEx, nil
   713  		case 3:
   714  			for {
   715  				var innerWire uint64
   716  				var start int = iNdEx
   717  				for shift := uint(0); ; shift += 7 {
   718  					if shift >= 64 {
   719  						return 0, ErrIntOverflowNamespace
   720  					}
   721  					if iNdEx >= l {
   722  						return 0, io.ErrUnexpectedEOF
   723  					}
   724  					b := dAtA[iNdEx]
   725  					iNdEx++
   726  					innerWire |= (uint64(b) & 0x7F) << shift
   727  					if b < 0x80 {
   728  						break
   729  					}
   730  				}
   731  				innerWireType := int(innerWire & 0x7)
   732  				if innerWireType == 4 {
   733  					break
   734  				}
   735  				next, err := skipNamespace(dAtA[start:])
   736  				if err != nil {
   737  					return 0, err
   738  				}
   739  				iNdEx = start + next
   740  			}
   741  			return iNdEx, nil
   742  		case 4:
   743  			return iNdEx, nil
   744  		case 5:
   745  			iNdEx += 4
   746  			return iNdEx, nil
   747  		default:
   748  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   749  		}
   750  	}
   751  	panic("unreachable")
   752  }
   753  
   754  var (
   755  	ErrInvalidLengthNamespace = fmt.Errorf("proto: negative length found during unmarshaling")
   756  	ErrIntOverflowNamespace   = fmt.Errorf("proto: integer overflow")
   757  )
   758  
   759  func init() {
   760  	proto.RegisterFile("github.com/m3db/m3/src/metrics/generated/proto/rulepb/namespace.proto", fileDescriptorNamespace)
   761  }
   762  
   763  var fileDescriptorNamespace = []byte{
   764  	// 321 bytes of a gzipped FileDescriptorProto
   765  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x91, 0xcf, 0x4a, 0x33, 0x31,
   766  	0x14, 0xc5, 0xbf, 0xb4, 0xfd, 0x8a, 0x73, 0x45, 0xa4, 0x11, 0x61, 0xdc, 0x0c, 0x43, 0x17, 0x32,
   767  	0xab, 0x09, 0xb5, 0x88, 0x4b, 0xb1, 0x20, 0xee, 0xba, 0x88, 0x28, 0xe2, 0x66, 0x48, 0x66, 0xd2,
   768  	0x3f, 0xd0, 0x24, 0x43, 0x6e, 0x2a, 0xf4, 0x2d, 0x7c, 0x22, 0xd7, 0x2e, 0x7d, 0x04, 0xa9, 0x2f,
   769  	0x22, 0x33, 0xa3, 0xb5, 0xd2, 0x9d, 0xbb, 0xe4, 0xfc, 0x4e, 0x2e, 0xe7, 0xe4, 0xc2, 0xf5, 0x74,
   770  	0xee, 0x67, 0x4b, 0x99, 0xe6, 0x56, 0x33, 0x3d, 0x2c, 0x24, 0xd3, 0x43, 0x86, 0x2e, 0x67, 0x5a,
   771  	0x79, 0x37, 0xcf, 0x91, 0x4d, 0x95, 0x51, 0x4e, 0x78, 0x55, 0xb0, 0xd2, 0x59, 0x6f, 0x99, 0x5b,
   772  	0x2e, 0x54, 0x29, 0x99, 0x11, 0x5a, 0x61, 0x29, 0x72, 0x95, 0xd6, 0x32, 0xed, 0x36, 0x7a, 0xff,
   773  	0x85, 0x40, 0x6f, 0xfc, 0xcd, 0x6e, 0x8d, 0x28, 0x71, 0x66, 0x3d, 0x4d, 0xe1, 0x68, 0x62, 0x5d,
   774  	0x56, 0x79, 0x50, 0xf9, 0xec, 0x49, 0x39, 0x9c, 0x5b, 0x13, 0x92, 0x98, 0x24, 0xff, 0x79, 0x6f,
   775  	0x62, 0x1d, 0x6f, 0xc8, 0x7d, 0x03, 0x68, 0x04, 0xe0, 0xad, 0x96, 0xe8, 0xad, 0x51, 0x45, 0xd8,
   776  	0x8a, 0x49, 0xb2, 0xc7, 0xb7, 0x14, 0x3a, 0x80, 0xe3, 0x85, 0x40, 0x9f, 0x2d, 0xcb, 0xa2, 0x8a,
   777  	0x96, 0x09, 0x9f, 0x19, 0x61, 0x2c, 0x86, 0xed, 0x98, 0x24, 0x6d, 0x4e, 0x2b, 0x78, 0xd7, 0xb0,
   778  	0x2b, 0x3f, 0xae, 0x08, 0x3d, 0x85, 0xc3, 0x5f, 0x4f, 0xe4, 0x2a, 0xec, 0xc4, 0x24, 0x09, 0xf8,
   779  	0xc1, 0x96, 0x79, 0xb4, 0xea, 0x3f, 0x40, 0xb0, 0xc9, 0x4f, 0x29, 0x74, 0xaa, 0xa2, 0x75, 0xd0,
   780  	0x80, 0xd7, 0x67, 0x7a, 0x01, 0x01, 0x7e, 0xf5, 0xc2, 0xb0, 0x15, 0xb7, 0x93, 0xfd, 0xb3, 0x93,
   781  	0xb4, 0x69, 0x9f, 0xee, 0x34, 0xe7, 0x3f, 0xde, 0xfe, 0x25, 0xc0, 0x86, 0x23, 0x1d, 0x00, 0x6c,
   782  	0xfe, 0x10, 0x43, 0x52, 0xcf, 0xe9, 0xed, 0xcc, 0xe1, 0x5b, 0xa6, 0xd1, 0xcd, 0xeb, 0x3a, 0x22,
   783  	0x6f, 0xeb, 0x88, 0xbc, 0xaf, 0x23, 0xf2, 0xfc, 0x11, 0xfd, 0x7b, 0x3c, 0xff, 0xd3, 0xf2, 0x64,
   784  	0xb7, 0xbe, 0x0d, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x2c, 0xd7, 0x1c, 0xfc, 0x01, 0x00,
   785  	0x00,
   786  }