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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: github.com/m3db/m3/src/dbnode/generated/proto/pagetoken/pagetoken.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  /*
    25  	Package pagetoken is a generated protocol buffer package.
    26  
    27  	It is generated from these files:
    28  		github.com/m3db/m3/src/dbnode/generated/proto/pagetoken/pagetoken.proto
    29  
    30  	It has these top-level messages:
    31  		PageToken
    32  */
    33  package pagetoken
    34  
    35  import proto "github.com/gogo/protobuf/proto"
    36  import fmt "fmt"
    37  import math "math"
    38  
    39  import io "io"
    40  
    41  // Reference imports to suppress errors if they are not otherwise used.
    42  var _ = proto.Marshal
    43  var _ = fmt.Errorf
    44  var _ = math.Inf
    45  
    46  // This is a compile-time assertion to ensure that this generated file
    47  // is compatible with the proto package it is being compiled against.
    48  // A compilation error at this line likely means your copy of the
    49  // proto package needs to be updated.
    50  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    51  
    52  type PageToken struct {
    53  	ActiveSeriesPhase  *PageToken_ActiveSeriesPhase  `protobuf:"bytes,1,opt,name=active_series_phase,json=activeSeriesPhase" json:"active_series_phase,omitempty"`
    54  	FlushedSeriesPhase *PageToken_FlushedSeriesPhase `protobuf:"bytes,2,opt,name=flushed_series_phase,json=flushedSeriesPhase" json:"flushed_series_phase,omitempty"`
    55  }
    56  
    57  func (m *PageToken) Reset()                    { *m = PageToken{} }
    58  func (m *PageToken) String() string            { return proto.CompactTextString(m) }
    59  func (*PageToken) ProtoMessage()               {}
    60  func (*PageToken) Descriptor() ([]byte, []int) { return fileDescriptorPagetoken, []int{0} }
    61  
    62  func (m *PageToken) GetActiveSeriesPhase() *PageToken_ActiveSeriesPhase {
    63  	if m != nil {
    64  		return m.ActiveSeriesPhase
    65  	}
    66  	return nil
    67  }
    68  
    69  func (m *PageToken) GetFlushedSeriesPhase() *PageToken_FlushedSeriesPhase {
    70  	if m != nil {
    71  		return m.FlushedSeriesPhase
    72  	}
    73  	return nil
    74  }
    75  
    76  type PageToken_ActiveSeriesPhase struct {
    77  	IndexCursor int64 `protobuf:"varint,1,opt,name=indexCursor,proto3" json:"indexCursor,omitempty"`
    78  }
    79  
    80  func (m *PageToken_ActiveSeriesPhase) Reset()         { *m = PageToken_ActiveSeriesPhase{} }
    81  func (m *PageToken_ActiveSeriesPhase) String() string { return proto.CompactTextString(m) }
    82  func (*PageToken_ActiveSeriesPhase) ProtoMessage()    {}
    83  func (*PageToken_ActiveSeriesPhase) Descriptor() ([]byte, []int) {
    84  	return fileDescriptorPagetoken, []int{0, 0}
    85  }
    86  
    87  func (m *PageToken_ActiveSeriesPhase) GetIndexCursor() int64 {
    88  	if m != nil {
    89  		return m.IndexCursor
    90  	}
    91  	return 0
    92  }
    93  
    94  type PageToken_FlushedSeriesPhase struct {
    95  	CurrBlockStartUnixNanos int64 `protobuf:"varint,1,opt,name=currBlockStartUnixNanos,proto3" json:"currBlockStartUnixNanos,omitempty"`
    96  	CurrBlockEntryIdx       int64 `protobuf:"varint,2,opt,name=currBlockEntryIdx,proto3" json:"currBlockEntryIdx,omitempty"`
    97  	Volume                  int64 `protobuf:"varint,3,opt,name=volume,proto3" json:"volume,omitempty"`
    98  }
    99  
   100  func (m *PageToken_FlushedSeriesPhase) Reset()         { *m = PageToken_FlushedSeriesPhase{} }
   101  func (m *PageToken_FlushedSeriesPhase) String() string { return proto.CompactTextString(m) }
   102  func (*PageToken_FlushedSeriesPhase) ProtoMessage()    {}
   103  func (*PageToken_FlushedSeriesPhase) Descriptor() ([]byte, []int) {
   104  	return fileDescriptorPagetoken, []int{0, 1}
   105  }
   106  
   107  func (m *PageToken_FlushedSeriesPhase) GetCurrBlockStartUnixNanos() int64 {
   108  	if m != nil {
   109  		return m.CurrBlockStartUnixNanos
   110  	}
   111  	return 0
   112  }
   113  
   114  func (m *PageToken_FlushedSeriesPhase) GetCurrBlockEntryIdx() int64 {
   115  	if m != nil {
   116  		return m.CurrBlockEntryIdx
   117  	}
   118  	return 0
   119  }
   120  
   121  func (m *PageToken_FlushedSeriesPhase) GetVolume() int64 {
   122  	if m != nil {
   123  		return m.Volume
   124  	}
   125  	return 0
   126  }
   127  
   128  func init() {
   129  	proto.RegisterType((*PageToken)(nil), "pagetoken.PageToken")
   130  	proto.RegisterType((*PageToken_ActiveSeriesPhase)(nil), "pagetoken.PageToken.ActiveSeriesPhase")
   131  	proto.RegisterType((*PageToken_FlushedSeriesPhase)(nil), "pagetoken.PageToken.FlushedSeriesPhase")
   132  }
   133  func (m *PageToken) Marshal() (dAtA []byte, err error) {
   134  	size := m.Size()
   135  	dAtA = make([]byte, size)
   136  	n, err := m.MarshalTo(dAtA)
   137  	if err != nil {
   138  		return nil, err
   139  	}
   140  	return dAtA[:n], nil
   141  }
   142  
   143  func (m *PageToken) MarshalTo(dAtA []byte) (int, error) {
   144  	var i int
   145  	_ = i
   146  	var l int
   147  	_ = l
   148  	if m.ActiveSeriesPhase != nil {
   149  		dAtA[i] = 0xa
   150  		i++
   151  		i = encodeVarintPagetoken(dAtA, i, uint64(m.ActiveSeriesPhase.Size()))
   152  		n1, err := m.ActiveSeriesPhase.MarshalTo(dAtA[i:])
   153  		if err != nil {
   154  			return 0, err
   155  		}
   156  		i += n1
   157  	}
   158  	if m.FlushedSeriesPhase != nil {
   159  		dAtA[i] = 0x12
   160  		i++
   161  		i = encodeVarintPagetoken(dAtA, i, uint64(m.FlushedSeriesPhase.Size()))
   162  		n2, err := m.FlushedSeriesPhase.MarshalTo(dAtA[i:])
   163  		if err != nil {
   164  			return 0, err
   165  		}
   166  		i += n2
   167  	}
   168  	return i, nil
   169  }
   170  
   171  func (m *PageToken_ActiveSeriesPhase) Marshal() (dAtA []byte, err error) {
   172  	size := m.Size()
   173  	dAtA = make([]byte, size)
   174  	n, err := m.MarshalTo(dAtA)
   175  	if err != nil {
   176  		return nil, err
   177  	}
   178  	return dAtA[:n], nil
   179  }
   180  
   181  func (m *PageToken_ActiveSeriesPhase) MarshalTo(dAtA []byte) (int, error) {
   182  	var i int
   183  	_ = i
   184  	var l int
   185  	_ = l
   186  	if m.IndexCursor != 0 {
   187  		dAtA[i] = 0x8
   188  		i++
   189  		i = encodeVarintPagetoken(dAtA, i, uint64(m.IndexCursor))
   190  	}
   191  	return i, nil
   192  }
   193  
   194  func (m *PageToken_FlushedSeriesPhase) Marshal() (dAtA []byte, err error) {
   195  	size := m.Size()
   196  	dAtA = make([]byte, size)
   197  	n, err := m.MarshalTo(dAtA)
   198  	if err != nil {
   199  		return nil, err
   200  	}
   201  	return dAtA[:n], nil
   202  }
   203  
   204  func (m *PageToken_FlushedSeriesPhase) MarshalTo(dAtA []byte) (int, error) {
   205  	var i int
   206  	_ = i
   207  	var l int
   208  	_ = l
   209  	if m.CurrBlockStartUnixNanos != 0 {
   210  		dAtA[i] = 0x8
   211  		i++
   212  		i = encodeVarintPagetoken(dAtA, i, uint64(m.CurrBlockStartUnixNanos))
   213  	}
   214  	if m.CurrBlockEntryIdx != 0 {
   215  		dAtA[i] = 0x10
   216  		i++
   217  		i = encodeVarintPagetoken(dAtA, i, uint64(m.CurrBlockEntryIdx))
   218  	}
   219  	if m.Volume != 0 {
   220  		dAtA[i] = 0x18
   221  		i++
   222  		i = encodeVarintPagetoken(dAtA, i, uint64(m.Volume))
   223  	}
   224  	return i, nil
   225  }
   226  
   227  func encodeVarintPagetoken(dAtA []byte, offset int, v uint64) int {
   228  	for v >= 1<<7 {
   229  		dAtA[offset] = uint8(v&0x7f | 0x80)
   230  		v >>= 7
   231  		offset++
   232  	}
   233  	dAtA[offset] = uint8(v)
   234  	return offset + 1
   235  }
   236  func (m *PageToken) Size() (n int) {
   237  	var l int
   238  	_ = l
   239  	if m.ActiveSeriesPhase != nil {
   240  		l = m.ActiveSeriesPhase.Size()
   241  		n += 1 + l + sovPagetoken(uint64(l))
   242  	}
   243  	if m.FlushedSeriesPhase != nil {
   244  		l = m.FlushedSeriesPhase.Size()
   245  		n += 1 + l + sovPagetoken(uint64(l))
   246  	}
   247  	return n
   248  }
   249  
   250  func (m *PageToken_ActiveSeriesPhase) Size() (n int) {
   251  	var l int
   252  	_ = l
   253  	if m.IndexCursor != 0 {
   254  		n += 1 + sovPagetoken(uint64(m.IndexCursor))
   255  	}
   256  	return n
   257  }
   258  
   259  func (m *PageToken_FlushedSeriesPhase) Size() (n int) {
   260  	var l int
   261  	_ = l
   262  	if m.CurrBlockStartUnixNanos != 0 {
   263  		n += 1 + sovPagetoken(uint64(m.CurrBlockStartUnixNanos))
   264  	}
   265  	if m.CurrBlockEntryIdx != 0 {
   266  		n += 1 + sovPagetoken(uint64(m.CurrBlockEntryIdx))
   267  	}
   268  	if m.Volume != 0 {
   269  		n += 1 + sovPagetoken(uint64(m.Volume))
   270  	}
   271  	return n
   272  }
   273  
   274  func sovPagetoken(x uint64) (n int) {
   275  	for {
   276  		n++
   277  		x >>= 7
   278  		if x == 0 {
   279  			break
   280  		}
   281  	}
   282  	return n
   283  }
   284  func sozPagetoken(x uint64) (n int) {
   285  	return sovPagetoken(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   286  }
   287  func (m *PageToken) Unmarshal(dAtA []byte) error {
   288  	l := len(dAtA)
   289  	iNdEx := 0
   290  	for iNdEx < l {
   291  		preIndex := iNdEx
   292  		var wire uint64
   293  		for shift := uint(0); ; shift += 7 {
   294  			if shift >= 64 {
   295  				return ErrIntOverflowPagetoken
   296  			}
   297  			if iNdEx >= l {
   298  				return io.ErrUnexpectedEOF
   299  			}
   300  			b := dAtA[iNdEx]
   301  			iNdEx++
   302  			wire |= (uint64(b) & 0x7F) << shift
   303  			if b < 0x80 {
   304  				break
   305  			}
   306  		}
   307  		fieldNum := int32(wire >> 3)
   308  		wireType := int(wire & 0x7)
   309  		if wireType == 4 {
   310  			return fmt.Errorf("proto: PageToken: wiretype end group for non-group")
   311  		}
   312  		if fieldNum <= 0 {
   313  			return fmt.Errorf("proto: PageToken: illegal tag %d (wire type %d)", fieldNum, wire)
   314  		}
   315  		switch fieldNum {
   316  		case 1:
   317  			if wireType != 2 {
   318  				return fmt.Errorf("proto: wrong wireType = %d for field ActiveSeriesPhase", wireType)
   319  			}
   320  			var msglen int
   321  			for shift := uint(0); ; shift += 7 {
   322  				if shift >= 64 {
   323  					return ErrIntOverflowPagetoken
   324  				}
   325  				if iNdEx >= l {
   326  					return io.ErrUnexpectedEOF
   327  				}
   328  				b := dAtA[iNdEx]
   329  				iNdEx++
   330  				msglen |= (int(b) & 0x7F) << shift
   331  				if b < 0x80 {
   332  					break
   333  				}
   334  			}
   335  			if msglen < 0 {
   336  				return ErrInvalidLengthPagetoken
   337  			}
   338  			postIndex := iNdEx + msglen
   339  			if postIndex > l {
   340  				return io.ErrUnexpectedEOF
   341  			}
   342  			if m.ActiveSeriesPhase == nil {
   343  				m.ActiveSeriesPhase = &PageToken_ActiveSeriesPhase{}
   344  			}
   345  			if err := m.ActiveSeriesPhase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   346  				return err
   347  			}
   348  			iNdEx = postIndex
   349  		case 2:
   350  			if wireType != 2 {
   351  				return fmt.Errorf("proto: wrong wireType = %d for field FlushedSeriesPhase", wireType)
   352  			}
   353  			var msglen int
   354  			for shift := uint(0); ; shift += 7 {
   355  				if shift >= 64 {
   356  					return ErrIntOverflowPagetoken
   357  				}
   358  				if iNdEx >= l {
   359  					return io.ErrUnexpectedEOF
   360  				}
   361  				b := dAtA[iNdEx]
   362  				iNdEx++
   363  				msglen |= (int(b) & 0x7F) << shift
   364  				if b < 0x80 {
   365  					break
   366  				}
   367  			}
   368  			if msglen < 0 {
   369  				return ErrInvalidLengthPagetoken
   370  			}
   371  			postIndex := iNdEx + msglen
   372  			if postIndex > l {
   373  				return io.ErrUnexpectedEOF
   374  			}
   375  			if m.FlushedSeriesPhase == nil {
   376  				m.FlushedSeriesPhase = &PageToken_FlushedSeriesPhase{}
   377  			}
   378  			if err := m.FlushedSeriesPhase.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   379  				return err
   380  			}
   381  			iNdEx = postIndex
   382  		default:
   383  			iNdEx = preIndex
   384  			skippy, err := skipPagetoken(dAtA[iNdEx:])
   385  			if err != nil {
   386  				return err
   387  			}
   388  			if skippy < 0 {
   389  				return ErrInvalidLengthPagetoken
   390  			}
   391  			if (iNdEx + skippy) > l {
   392  				return io.ErrUnexpectedEOF
   393  			}
   394  			iNdEx += skippy
   395  		}
   396  	}
   397  
   398  	if iNdEx > l {
   399  		return io.ErrUnexpectedEOF
   400  	}
   401  	return nil
   402  }
   403  func (m *PageToken_ActiveSeriesPhase) Unmarshal(dAtA []byte) error {
   404  	l := len(dAtA)
   405  	iNdEx := 0
   406  	for iNdEx < l {
   407  		preIndex := iNdEx
   408  		var wire uint64
   409  		for shift := uint(0); ; shift += 7 {
   410  			if shift >= 64 {
   411  				return ErrIntOverflowPagetoken
   412  			}
   413  			if iNdEx >= l {
   414  				return io.ErrUnexpectedEOF
   415  			}
   416  			b := dAtA[iNdEx]
   417  			iNdEx++
   418  			wire |= (uint64(b) & 0x7F) << shift
   419  			if b < 0x80 {
   420  				break
   421  			}
   422  		}
   423  		fieldNum := int32(wire >> 3)
   424  		wireType := int(wire & 0x7)
   425  		if wireType == 4 {
   426  			return fmt.Errorf("proto: ActiveSeriesPhase: wiretype end group for non-group")
   427  		}
   428  		if fieldNum <= 0 {
   429  			return fmt.Errorf("proto: ActiveSeriesPhase: illegal tag %d (wire type %d)", fieldNum, wire)
   430  		}
   431  		switch fieldNum {
   432  		case 1:
   433  			if wireType != 0 {
   434  				return fmt.Errorf("proto: wrong wireType = %d for field IndexCursor", wireType)
   435  			}
   436  			m.IndexCursor = 0
   437  			for shift := uint(0); ; shift += 7 {
   438  				if shift >= 64 {
   439  					return ErrIntOverflowPagetoken
   440  				}
   441  				if iNdEx >= l {
   442  					return io.ErrUnexpectedEOF
   443  				}
   444  				b := dAtA[iNdEx]
   445  				iNdEx++
   446  				m.IndexCursor |= (int64(b) & 0x7F) << shift
   447  				if b < 0x80 {
   448  					break
   449  				}
   450  			}
   451  		default:
   452  			iNdEx = preIndex
   453  			skippy, err := skipPagetoken(dAtA[iNdEx:])
   454  			if err != nil {
   455  				return err
   456  			}
   457  			if skippy < 0 {
   458  				return ErrInvalidLengthPagetoken
   459  			}
   460  			if (iNdEx + skippy) > l {
   461  				return io.ErrUnexpectedEOF
   462  			}
   463  			iNdEx += skippy
   464  		}
   465  	}
   466  
   467  	if iNdEx > l {
   468  		return io.ErrUnexpectedEOF
   469  	}
   470  	return nil
   471  }
   472  func (m *PageToken_FlushedSeriesPhase) Unmarshal(dAtA []byte) error {
   473  	l := len(dAtA)
   474  	iNdEx := 0
   475  	for iNdEx < l {
   476  		preIndex := iNdEx
   477  		var wire uint64
   478  		for shift := uint(0); ; shift += 7 {
   479  			if shift >= 64 {
   480  				return ErrIntOverflowPagetoken
   481  			}
   482  			if iNdEx >= l {
   483  				return io.ErrUnexpectedEOF
   484  			}
   485  			b := dAtA[iNdEx]
   486  			iNdEx++
   487  			wire |= (uint64(b) & 0x7F) << shift
   488  			if b < 0x80 {
   489  				break
   490  			}
   491  		}
   492  		fieldNum := int32(wire >> 3)
   493  		wireType := int(wire & 0x7)
   494  		if wireType == 4 {
   495  			return fmt.Errorf("proto: FlushedSeriesPhase: wiretype end group for non-group")
   496  		}
   497  		if fieldNum <= 0 {
   498  			return fmt.Errorf("proto: FlushedSeriesPhase: illegal tag %d (wire type %d)", fieldNum, wire)
   499  		}
   500  		switch fieldNum {
   501  		case 1:
   502  			if wireType != 0 {
   503  				return fmt.Errorf("proto: wrong wireType = %d for field CurrBlockStartUnixNanos", wireType)
   504  			}
   505  			m.CurrBlockStartUnixNanos = 0
   506  			for shift := uint(0); ; shift += 7 {
   507  				if shift >= 64 {
   508  					return ErrIntOverflowPagetoken
   509  				}
   510  				if iNdEx >= l {
   511  					return io.ErrUnexpectedEOF
   512  				}
   513  				b := dAtA[iNdEx]
   514  				iNdEx++
   515  				m.CurrBlockStartUnixNanos |= (int64(b) & 0x7F) << shift
   516  				if b < 0x80 {
   517  					break
   518  				}
   519  			}
   520  		case 2:
   521  			if wireType != 0 {
   522  				return fmt.Errorf("proto: wrong wireType = %d for field CurrBlockEntryIdx", wireType)
   523  			}
   524  			m.CurrBlockEntryIdx = 0
   525  			for shift := uint(0); ; shift += 7 {
   526  				if shift >= 64 {
   527  					return ErrIntOverflowPagetoken
   528  				}
   529  				if iNdEx >= l {
   530  					return io.ErrUnexpectedEOF
   531  				}
   532  				b := dAtA[iNdEx]
   533  				iNdEx++
   534  				m.CurrBlockEntryIdx |= (int64(b) & 0x7F) << shift
   535  				if b < 0x80 {
   536  					break
   537  				}
   538  			}
   539  		case 3:
   540  			if wireType != 0 {
   541  				return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType)
   542  			}
   543  			m.Volume = 0
   544  			for shift := uint(0); ; shift += 7 {
   545  				if shift >= 64 {
   546  					return ErrIntOverflowPagetoken
   547  				}
   548  				if iNdEx >= l {
   549  					return io.ErrUnexpectedEOF
   550  				}
   551  				b := dAtA[iNdEx]
   552  				iNdEx++
   553  				m.Volume |= (int64(b) & 0x7F) << shift
   554  				if b < 0x80 {
   555  					break
   556  				}
   557  			}
   558  		default:
   559  			iNdEx = preIndex
   560  			skippy, err := skipPagetoken(dAtA[iNdEx:])
   561  			if err != nil {
   562  				return err
   563  			}
   564  			if skippy < 0 {
   565  				return ErrInvalidLengthPagetoken
   566  			}
   567  			if (iNdEx + skippy) > l {
   568  				return io.ErrUnexpectedEOF
   569  			}
   570  			iNdEx += skippy
   571  		}
   572  	}
   573  
   574  	if iNdEx > l {
   575  		return io.ErrUnexpectedEOF
   576  	}
   577  	return nil
   578  }
   579  func skipPagetoken(dAtA []byte) (n int, err error) {
   580  	l := len(dAtA)
   581  	iNdEx := 0
   582  	for iNdEx < l {
   583  		var wire uint64
   584  		for shift := uint(0); ; shift += 7 {
   585  			if shift >= 64 {
   586  				return 0, ErrIntOverflowPagetoken
   587  			}
   588  			if iNdEx >= l {
   589  				return 0, io.ErrUnexpectedEOF
   590  			}
   591  			b := dAtA[iNdEx]
   592  			iNdEx++
   593  			wire |= (uint64(b) & 0x7F) << shift
   594  			if b < 0x80 {
   595  				break
   596  			}
   597  		}
   598  		wireType := int(wire & 0x7)
   599  		switch wireType {
   600  		case 0:
   601  			for shift := uint(0); ; shift += 7 {
   602  				if shift >= 64 {
   603  					return 0, ErrIntOverflowPagetoken
   604  				}
   605  				if iNdEx >= l {
   606  					return 0, io.ErrUnexpectedEOF
   607  				}
   608  				iNdEx++
   609  				if dAtA[iNdEx-1] < 0x80 {
   610  					break
   611  				}
   612  			}
   613  			return iNdEx, nil
   614  		case 1:
   615  			iNdEx += 8
   616  			return iNdEx, nil
   617  		case 2:
   618  			var length int
   619  			for shift := uint(0); ; shift += 7 {
   620  				if shift >= 64 {
   621  					return 0, ErrIntOverflowPagetoken
   622  				}
   623  				if iNdEx >= l {
   624  					return 0, io.ErrUnexpectedEOF
   625  				}
   626  				b := dAtA[iNdEx]
   627  				iNdEx++
   628  				length |= (int(b) & 0x7F) << shift
   629  				if b < 0x80 {
   630  					break
   631  				}
   632  			}
   633  			iNdEx += length
   634  			if length < 0 {
   635  				return 0, ErrInvalidLengthPagetoken
   636  			}
   637  			return iNdEx, nil
   638  		case 3:
   639  			for {
   640  				var innerWire uint64
   641  				var start int = iNdEx
   642  				for shift := uint(0); ; shift += 7 {
   643  					if shift >= 64 {
   644  						return 0, ErrIntOverflowPagetoken
   645  					}
   646  					if iNdEx >= l {
   647  						return 0, io.ErrUnexpectedEOF
   648  					}
   649  					b := dAtA[iNdEx]
   650  					iNdEx++
   651  					innerWire |= (uint64(b) & 0x7F) << shift
   652  					if b < 0x80 {
   653  						break
   654  					}
   655  				}
   656  				innerWireType := int(innerWire & 0x7)
   657  				if innerWireType == 4 {
   658  					break
   659  				}
   660  				next, err := skipPagetoken(dAtA[start:])
   661  				if err != nil {
   662  					return 0, err
   663  				}
   664  				iNdEx = start + next
   665  			}
   666  			return iNdEx, nil
   667  		case 4:
   668  			return iNdEx, nil
   669  		case 5:
   670  			iNdEx += 4
   671  			return iNdEx, nil
   672  		default:
   673  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   674  		}
   675  	}
   676  	panic("unreachable")
   677  }
   678  
   679  var (
   680  	ErrInvalidLengthPagetoken = fmt.Errorf("proto: negative length found during unmarshaling")
   681  	ErrIntOverflowPagetoken   = fmt.Errorf("proto: integer overflow")
   682  )
   683  
   684  func init() {
   685  	proto.RegisterFile("github.com/m3db/m3/src/dbnode/generated/proto/pagetoken/pagetoken.proto", fileDescriptorPagetoken)
   686  }
   687  
   688  var fileDescriptorPagetoken = []byte{
   689  	// 307 bytes of a gzipped FileDescriptorProto
   690  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0xc1, 0x4a, 0xc3, 0x30,
   691  	0x1c, 0xc6, 0x8d, 0x85, 0xc1, 0xb2, 0x8b, 0x8b, 0xa2, 0x63, 0x87, 0x32, 0x3c, 0xa8, 0x07, 0x69,
   692  	0xc0, 0x21, 0x78, 0x75, 0xa2, 0xe2, 0x45, 0xc6, 0xa6, 0x82, 0xa7, 0x91, 0x36, 0xff, 0xb5, 0x65,
   693  	0x6d, 0x52, 0x92, 0x74, 0xd4, 0x77, 0xf0, 0xe0, 0xc1, 0x87, 0xf2, 0xe8, 0x23, 0x48, 0x7d, 0x11,
   694  	0x59, 0x1c, 0xdd, 0xb4, 0x7a, 0xcb, 0xff, 0xfb, 0xbe, 0xff, 0x2f, 0x5f, 0x08, 0xbe, 0x0e, 0x63,
   695  	0x13, 0xe5, 0xbe, 0x17, 0xc8, 0x94, 0xa6, 0x7d, 0xee, 0xd3, 0xb4, 0x4f, 0xb5, 0x0a, 0x28, 0xf7,
   696  	0x85, 0xe4, 0x40, 0x43, 0x10, 0xa0, 0x98, 0x01, 0x4e, 0x33, 0x25, 0x8d, 0xa4, 0x19, 0x0b, 0xc1,
   697  	0xc8, 0x19, 0x88, 0xd5, 0xc9, 0xb3, 0x0e, 0x69, 0x56, 0xc2, 0xfe, 0xb3, 0x83, 0x9b, 0x43, 0x16,
   698  	0xc2, 0xdd, 0x62, 0x22, 0x0f, 0x78, 0x9b, 0x05, 0x26, 0x9e, 0xc3, 0x44, 0x83, 0x8a, 0x41, 0x4f,
   699  	0xb2, 0x88, 0x69, 0xe8, 0xa0, 0x1e, 0x3a, 0x6a, 0x9d, 0x1c, 0x78, 0x2b, 0x4e, 0xb5, 0xe2, 0x9d,
   700  	0xdb, 0xfc, 0xd8, 0xc6, 0x87, 0x8b, 0xf4, 0xa8, 0xcd, 0x7e, 0x4b, 0xe4, 0x11, 0xef, 0x4c, 0x93,
   701  	0x5c, 0x47, 0xc0, 0x7f, 0x82, 0x37, 0x2d, 0xf8, 0xf0, 0x4f, 0xf0, 0xd5, 0xf7, 0xc2, 0x3a, 0x99,
   702  	0x4c, 0x6b, 0x5a, 0xf7, 0x14, 0xb7, 0x6b, 0x15, 0x48, 0x0f, 0xb7, 0x62, 0xc1, 0xa1, 0xb8, 0xc8,
   703  	0x95, 0x96, 0xca, 0xf6, 0x77, 0x46, 0xeb, 0x52, 0xf7, 0x15, 0x61, 0x52, 0xbf, 0x81, 0x9c, 0xe1,
   704  	0xbd, 0x20, 0x57, 0x6a, 0x90, 0xc8, 0x60, 0x36, 0x36, 0x4c, 0x99, 0x7b, 0x11, 0x17, 0xb7, 0x4c,
   705  	0x48, 0xbd, 0x84, 0xfc, 0x67, 0x93, 0x63, 0xdc, 0xae, 0xac, 0x4b, 0x61, 0xd4, 0xd3, 0x0d, 0x2f,
   706  	0xec, 0xfb, 0x9c, 0x51, 0xdd, 0x20, 0xbb, 0xb8, 0x31, 0x97, 0x49, 0x9e, 0x42, 0xc7, 0xb1, 0x91,
   707  	0xe5, 0x34, 0xd8, 0x7a, 0x2b, 0x5d, 0xf4, 0x5e, 0xba, 0xe8, 0xa3, 0x74, 0xd1, 0xcb, 0xa7, 0xbb,
   708  	0xe1, 0x37, 0xec, 0x97, 0xf5, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x6b, 0x8d, 0x80, 0xf2, 0xfd,
   709  	0x01, 0x00, 0x00,
   710  }