github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/kv/kvserver/closedts/ctpb/entry.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: kv/kvserver/closedts/ctpb/entry.proto
     3  
     4  package ctpb
     5  
     6  import proto "github.com/gogo/protobuf/proto"
     7  import fmt "fmt"
     8  import math "math"
     9  import hlc "github.com/cockroachdb/cockroach/pkg/util/hlc"
    10  
    11  import github_com_cockroachdb_cockroach_pkg_roachpb "github.com/cockroachdb/cockroach/pkg/roachpb"
    12  
    13  import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
    14  
    15  import io "io"
    16  
    17  // Reference imports to suppress errors if they are not otherwise used.
    18  var _ = proto.Marshal
    19  var _ = fmt.Errorf
    20  var _ = math.Inf
    21  
    22  // This is a compile-time assertion to ensure that this generated file
    23  // is compatible with the proto package it is being compiled against.
    24  // A compilation error at this line likely means your copy of the
    25  // proto package needs to be updated.
    26  const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
    27  
    28  // An Entry is a closed timestamp update. It consists of a closed timestamp
    29  // (i.e. a timestamp at or below which the origin node guarantees no more new
    30  // writes are going to be permitted), an associated epoch in which the origin
    31  // node promises it was live (for the closed timestamp), a map of minimum lease
    32  // applied indexes (which have to be caught up to before being allowed to use
    33  // the closed timestamp) as well as an indicator of whether this update supplies
    34  // a full initial state or an increment to be merged into a previous state. In
    35  // practice, the first Entry received for each epoch is full, while the remainder
    36  // are incremental. An incremental update represents the implicit promise that
    37  // the state accumulated since the last full Entry is the true full state.
    38  type Entry struct {
    39  	Epoch           Epoch                                                        `protobuf:"varint,1,opt,name=epoch,proto3,casttype=Epoch" json:"epoch,omitempty"`
    40  	ClosedTimestamp hlc.Timestamp                                                `protobuf:"bytes,2,opt,name=closed_timestamp,json=closedTimestamp,proto3" json:"closed_timestamp"`
    41  	MLAI            map[github_com_cockroachdb_cockroach_pkg_roachpb.RangeID]LAI `protobuf:"bytes,3,rep,name=mlai,proto3,castkey=github.com/cockroachdb/cockroach/pkg/roachpb.RangeID,castvalue=LAI" json:"mlai,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
    42  	// Full is true if the emitter promises that any future write to any range
    43  	// mentioned in this Entry will be reflected in a subsequent Entry before any
    44  	// stale follower reads are possible. For example, if range 1 is assigned an
    45  	// MLAI of 12 in this Entry and isn't mentioned in the five subsequent
    46  	// entries, the recipient may behave as if the MLAI of 12 were repeated across
    47  	// all of these entries.
    48  	//
    49  	// In practice, a Full message is received when a stream of Entries is first
    50  	// established (or the Epoch changes), and all other updates are incremental
    51  	// (i.e. not Full).
    52  	Full bool `protobuf:"varint,4,opt,name=full,proto3" json:"full,omitempty"`
    53  }
    54  
    55  func (m *Entry) Reset()      { *m = Entry{} }
    56  func (*Entry) ProtoMessage() {}
    57  func (*Entry) Descriptor() ([]byte, []int) {
    58  	return fileDescriptor_entry_cedfda89c463dabb, []int{0}
    59  }
    60  func (m *Entry) XXX_Unmarshal(b []byte) error {
    61  	return m.Unmarshal(b)
    62  }
    63  func (m *Entry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    64  	b = b[:cap(b)]
    65  	n, err := m.MarshalTo(b)
    66  	if err != nil {
    67  		return nil, err
    68  	}
    69  	return b[:n], nil
    70  }
    71  func (dst *Entry) XXX_Merge(src proto.Message) {
    72  	xxx_messageInfo_Entry.Merge(dst, src)
    73  }
    74  func (m *Entry) XXX_Size() int {
    75  	return m.Size()
    76  }
    77  func (m *Entry) XXX_DiscardUnknown() {
    78  	xxx_messageInfo_Entry.DiscardUnknown(m)
    79  }
    80  
    81  var xxx_messageInfo_Entry proto.InternalMessageInfo
    82  
    83  // Reactions flow in the direction opposite to Entries and request for ranges to
    84  // be included in the next Entry. Under rare circumstances, ranges may be omitted
    85  // from closed timestamp updates, and so serving follower reads from them would
    86  // fail. The Reaction mechanism serves to explicitly request the missing information
    87  // when that happens.
    88  type Reaction struct {
    89  	Requested []github_com_cockroachdb_cockroach_pkg_roachpb.RangeID `protobuf:"varint,1,rep,packed,name=Requested,proto3,casttype=github.com/cockroachdb/cockroach/pkg/roachpb.RangeID" json:"Requested,omitempty"`
    90  }
    91  
    92  func (m *Reaction) Reset()      { *m = Reaction{} }
    93  func (*Reaction) ProtoMessage() {}
    94  func (*Reaction) Descriptor() ([]byte, []int) {
    95  	return fileDescriptor_entry_cedfda89c463dabb, []int{1}
    96  }
    97  func (m *Reaction) XXX_Unmarshal(b []byte) error {
    98  	return m.Unmarshal(b)
    99  }
   100  func (m *Reaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   101  	b = b[:cap(b)]
   102  	n, err := m.MarshalTo(b)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	return b[:n], nil
   107  }
   108  func (dst *Reaction) XXX_Merge(src proto.Message) {
   109  	xxx_messageInfo_Reaction.Merge(dst, src)
   110  }
   111  func (m *Reaction) XXX_Size() int {
   112  	return m.Size()
   113  }
   114  func (m *Reaction) XXX_DiscardUnknown() {
   115  	xxx_messageInfo_Reaction.DiscardUnknown(m)
   116  }
   117  
   118  var xxx_messageInfo_Reaction proto.InternalMessageInfo
   119  
   120  func init() {
   121  	proto.RegisterType((*Entry)(nil), "cockroach.kv.kvserver.ctupdate.Entry")
   122  	proto.RegisterMapType((map[github_com_cockroachdb_cockroach_pkg_roachpb.RangeID]LAI)(nil), "cockroach.kv.kvserver.ctupdate.Entry.MlaiEntry")
   123  	proto.RegisterType((*Reaction)(nil), "cockroach.kv.kvserver.ctupdate.Reaction")
   124  }
   125  func (m *Entry) Marshal() (dAtA []byte, err error) {
   126  	size := m.Size()
   127  	dAtA = make([]byte, size)
   128  	n, err := m.MarshalTo(dAtA)
   129  	if err != nil {
   130  		return nil, err
   131  	}
   132  	return dAtA[:n], nil
   133  }
   134  
   135  func (m *Entry) MarshalTo(dAtA []byte) (int, error) {
   136  	var i int
   137  	_ = i
   138  	var l int
   139  	_ = l
   140  	if m.Epoch != 0 {
   141  		dAtA[i] = 0x8
   142  		i++
   143  		i = encodeVarintEntry(dAtA, i, uint64(m.Epoch))
   144  	}
   145  	dAtA[i] = 0x12
   146  	i++
   147  	i = encodeVarintEntry(dAtA, i, uint64(m.ClosedTimestamp.Size()))
   148  	n1, err := m.ClosedTimestamp.MarshalTo(dAtA[i:])
   149  	if err != nil {
   150  		return 0, err
   151  	}
   152  	i += n1
   153  	if len(m.MLAI) > 0 {
   154  		keysForMLAI := make([]int32, 0, len(m.MLAI))
   155  		for k := range m.MLAI {
   156  			keysForMLAI = append(keysForMLAI, int32(k))
   157  		}
   158  		github_com_gogo_protobuf_sortkeys.Int32s(keysForMLAI)
   159  		for _, k := range keysForMLAI {
   160  			dAtA[i] = 0x1a
   161  			i++
   162  			v := m.MLAI[github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(k)]
   163  			mapSize := 1 + sovEntry(uint64(k)) + 1 + sovEntry(uint64(v))
   164  			i = encodeVarintEntry(dAtA, i, uint64(mapSize))
   165  			dAtA[i] = 0x8
   166  			i++
   167  			i = encodeVarintEntry(dAtA, i, uint64(k))
   168  			dAtA[i] = 0x10
   169  			i++
   170  			i = encodeVarintEntry(dAtA, i, uint64(v))
   171  		}
   172  	}
   173  	if m.Full {
   174  		dAtA[i] = 0x20
   175  		i++
   176  		if m.Full {
   177  			dAtA[i] = 1
   178  		} else {
   179  			dAtA[i] = 0
   180  		}
   181  		i++
   182  	}
   183  	return i, nil
   184  }
   185  
   186  func (m *Reaction) Marshal() (dAtA []byte, err error) {
   187  	size := m.Size()
   188  	dAtA = make([]byte, size)
   189  	n, err := m.MarshalTo(dAtA)
   190  	if err != nil {
   191  		return nil, err
   192  	}
   193  	return dAtA[:n], nil
   194  }
   195  
   196  func (m *Reaction) MarshalTo(dAtA []byte) (int, error) {
   197  	var i int
   198  	_ = i
   199  	var l int
   200  	_ = l
   201  	if len(m.Requested) > 0 {
   202  		dAtA3 := make([]byte, len(m.Requested)*10)
   203  		var j2 int
   204  		for _, num1 := range m.Requested {
   205  			num := uint64(num1)
   206  			for num >= 1<<7 {
   207  				dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80)
   208  				num >>= 7
   209  				j2++
   210  			}
   211  			dAtA3[j2] = uint8(num)
   212  			j2++
   213  		}
   214  		dAtA[i] = 0xa
   215  		i++
   216  		i = encodeVarintEntry(dAtA, i, uint64(j2))
   217  		i += copy(dAtA[i:], dAtA3[:j2])
   218  	}
   219  	return i, nil
   220  }
   221  
   222  func encodeVarintEntry(dAtA []byte, offset int, v uint64) int {
   223  	for v >= 1<<7 {
   224  		dAtA[offset] = uint8(v&0x7f | 0x80)
   225  		v >>= 7
   226  		offset++
   227  	}
   228  	dAtA[offset] = uint8(v)
   229  	return offset + 1
   230  }
   231  func (m *Entry) Size() (n int) {
   232  	if m == nil {
   233  		return 0
   234  	}
   235  	var l int
   236  	_ = l
   237  	if m.Epoch != 0 {
   238  		n += 1 + sovEntry(uint64(m.Epoch))
   239  	}
   240  	l = m.ClosedTimestamp.Size()
   241  	n += 1 + l + sovEntry(uint64(l))
   242  	if len(m.MLAI) > 0 {
   243  		for k, v := range m.MLAI {
   244  			_ = k
   245  			_ = v
   246  			mapEntrySize := 1 + sovEntry(uint64(k)) + 1 + sovEntry(uint64(v))
   247  			n += mapEntrySize + 1 + sovEntry(uint64(mapEntrySize))
   248  		}
   249  	}
   250  	if m.Full {
   251  		n += 2
   252  	}
   253  	return n
   254  }
   255  
   256  func (m *Reaction) Size() (n int) {
   257  	if m == nil {
   258  		return 0
   259  	}
   260  	var l int
   261  	_ = l
   262  	if len(m.Requested) > 0 {
   263  		l = 0
   264  		for _, e := range m.Requested {
   265  			l += sovEntry(uint64(e))
   266  		}
   267  		n += 1 + sovEntry(uint64(l)) + l
   268  	}
   269  	return n
   270  }
   271  
   272  func sovEntry(x uint64) (n int) {
   273  	for {
   274  		n++
   275  		x >>= 7
   276  		if x == 0 {
   277  			break
   278  		}
   279  	}
   280  	return n
   281  }
   282  func sozEntry(x uint64) (n int) {
   283  	return sovEntry(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   284  }
   285  func (m *Entry) Unmarshal(dAtA []byte) error {
   286  	l := len(dAtA)
   287  	iNdEx := 0
   288  	for iNdEx < l {
   289  		preIndex := iNdEx
   290  		var wire uint64
   291  		for shift := uint(0); ; shift += 7 {
   292  			if shift >= 64 {
   293  				return ErrIntOverflowEntry
   294  			}
   295  			if iNdEx >= l {
   296  				return io.ErrUnexpectedEOF
   297  			}
   298  			b := dAtA[iNdEx]
   299  			iNdEx++
   300  			wire |= (uint64(b) & 0x7F) << shift
   301  			if b < 0x80 {
   302  				break
   303  			}
   304  		}
   305  		fieldNum := int32(wire >> 3)
   306  		wireType := int(wire & 0x7)
   307  		if wireType == 4 {
   308  			return fmt.Errorf("proto: Entry: wiretype end group for non-group")
   309  		}
   310  		if fieldNum <= 0 {
   311  			return fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", fieldNum, wire)
   312  		}
   313  		switch fieldNum {
   314  		case 1:
   315  			if wireType != 0 {
   316  				return fmt.Errorf("proto: wrong wireType = %d for field Epoch", wireType)
   317  			}
   318  			m.Epoch = 0
   319  			for shift := uint(0); ; shift += 7 {
   320  				if shift >= 64 {
   321  					return ErrIntOverflowEntry
   322  				}
   323  				if iNdEx >= l {
   324  					return io.ErrUnexpectedEOF
   325  				}
   326  				b := dAtA[iNdEx]
   327  				iNdEx++
   328  				m.Epoch |= (Epoch(b) & 0x7F) << shift
   329  				if b < 0x80 {
   330  					break
   331  				}
   332  			}
   333  		case 2:
   334  			if wireType != 2 {
   335  				return fmt.Errorf("proto: wrong wireType = %d for field ClosedTimestamp", wireType)
   336  			}
   337  			var msglen int
   338  			for shift := uint(0); ; shift += 7 {
   339  				if shift >= 64 {
   340  					return ErrIntOverflowEntry
   341  				}
   342  				if iNdEx >= l {
   343  					return io.ErrUnexpectedEOF
   344  				}
   345  				b := dAtA[iNdEx]
   346  				iNdEx++
   347  				msglen |= (int(b) & 0x7F) << shift
   348  				if b < 0x80 {
   349  					break
   350  				}
   351  			}
   352  			if msglen < 0 {
   353  				return ErrInvalidLengthEntry
   354  			}
   355  			postIndex := iNdEx + msglen
   356  			if postIndex > l {
   357  				return io.ErrUnexpectedEOF
   358  			}
   359  			if err := m.ClosedTimestamp.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   360  				return err
   361  			}
   362  			iNdEx = postIndex
   363  		case 3:
   364  			if wireType != 2 {
   365  				return fmt.Errorf("proto: wrong wireType = %d for field MLAI", wireType)
   366  			}
   367  			var msglen int
   368  			for shift := uint(0); ; shift += 7 {
   369  				if shift >= 64 {
   370  					return ErrIntOverflowEntry
   371  				}
   372  				if iNdEx >= l {
   373  					return io.ErrUnexpectedEOF
   374  				}
   375  				b := dAtA[iNdEx]
   376  				iNdEx++
   377  				msglen |= (int(b) & 0x7F) << shift
   378  				if b < 0x80 {
   379  					break
   380  				}
   381  			}
   382  			if msglen < 0 {
   383  				return ErrInvalidLengthEntry
   384  			}
   385  			postIndex := iNdEx + msglen
   386  			if postIndex > l {
   387  				return io.ErrUnexpectedEOF
   388  			}
   389  			if m.MLAI == nil {
   390  				m.MLAI = make(map[github_com_cockroachdb_cockroach_pkg_roachpb.RangeID]LAI)
   391  			}
   392  			var mapkey int32
   393  			var mapvalue int64
   394  			for iNdEx < postIndex {
   395  				entryPreIndex := iNdEx
   396  				var wire uint64
   397  				for shift := uint(0); ; shift += 7 {
   398  					if shift >= 64 {
   399  						return ErrIntOverflowEntry
   400  					}
   401  					if iNdEx >= l {
   402  						return io.ErrUnexpectedEOF
   403  					}
   404  					b := dAtA[iNdEx]
   405  					iNdEx++
   406  					wire |= (uint64(b) & 0x7F) << shift
   407  					if b < 0x80 {
   408  						break
   409  					}
   410  				}
   411  				fieldNum := int32(wire >> 3)
   412  				if fieldNum == 1 {
   413  					for shift := uint(0); ; shift += 7 {
   414  						if shift >= 64 {
   415  							return ErrIntOverflowEntry
   416  						}
   417  						if iNdEx >= l {
   418  							return io.ErrUnexpectedEOF
   419  						}
   420  						b := dAtA[iNdEx]
   421  						iNdEx++
   422  						mapkey |= (int32(b) & 0x7F) << shift
   423  						if b < 0x80 {
   424  							break
   425  						}
   426  					}
   427  				} else if fieldNum == 2 {
   428  					for shift := uint(0); ; shift += 7 {
   429  						if shift >= 64 {
   430  							return ErrIntOverflowEntry
   431  						}
   432  						if iNdEx >= l {
   433  							return io.ErrUnexpectedEOF
   434  						}
   435  						b := dAtA[iNdEx]
   436  						iNdEx++
   437  						mapvalue |= (int64(b) & 0x7F) << shift
   438  						if b < 0x80 {
   439  							break
   440  						}
   441  					}
   442  				} else {
   443  					iNdEx = entryPreIndex
   444  					skippy, err := skipEntry(dAtA[iNdEx:])
   445  					if err != nil {
   446  						return err
   447  					}
   448  					if skippy < 0 {
   449  						return ErrInvalidLengthEntry
   450  					}
   451  					if (iNdEx + skippy) > postIndex {
   452  						return io.ErrUnexpectedEOF
   453  					}
   454  					iNdEx += skippy
   455  				}
   456  			}
   457  			m.MLAI[github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(mapkey)] = ((LAI)(mapvalue))
   458  			iNdEx = postIndex
   459  		case 4:
   460  			if wireType != 0 {
   461  				return fmt.Errorf("proto: wrong wireType = %d for field Full", wireType)
   462  			}
   463  			var v int
   464  			for shift := uint(0); ; shift += 7 {
   465  				if shift >= 64 {
   466  					return ErrIntOverflowEntry
   467  				}
   468  				if iNdEx >= l {
   469  					return io.ErrUnexpectedEOF
   470  				}
   471  				b := dAtA[iNdEx]
   472  				iNdEx++
   473  				v |= (int(b) & 0x7F) << shift
   474  				if b < 0x80 {
   475  					break
   476  				}
   477  			}
   478  			m.Full = bool(v != 0)
   479  		default:
   480  			iNdEx = preIndex
   481  			skippy, err := skipEntry(dAtA[iNdEx:])
   482  			if err != nil {
   483  				return err
   484  			}
   485  			if skippy < 0 {
   486  				return ErrInvalidLengthEntry
   487  			}
   488  			if (iNdEx + skippy) > l {
   489  				return io.ErrUnexpectedEOF
   490  			}
   491  			iNdEx += skippy
   492  		}
   493  	}
   494  
   495  	if iNdEx > l {
   496  		return io.ErrUnexpectedEOF
   497  	}
   498  	return nil
   499  }
   500  func (m *Reaction) Unmarshal(dAtA []byte) error {
   501  	l := len(dAtA)
   502  	iNdEx := 0
   503  	for iNdEx < l {
   504  		preIndex := iNdEx
   505  		var wire uint64
   506  		for shift := uint(0); ; shift += 7 {
   507  			if shift >= 64 {
   508  				return ErrIntOverflowEntry
   509  			}
   510  			if iNdEx >= l {
   511  				return io.ErrUnexpectedEOF
   512  			}
   513  			b := dAtA[iNdEx]
   514  			iNdEx++
   515  			wire |= (uint64(b) & 0x7F) << shift
   516  			if b < 0x80 {
   517  				break
   518  			}
   519  		}
   520  		fieldNum := int32(wire >> 3)
   521  		wireType := int(wire & 0x7)
   522  		if wireType == 4 {
   523  			return fmt.Errorf("proto: Reaction: wiretype end group for non-group")
   524  		}
   525  		if fieldNum <= 0 {
   526  			return fmt.Errorf("proto: Reaction: illegal tag %d (wire type %d)", fieldNum, wire)
   527  		}
   528  		switch fieldNum {
   529  		case 1:
   530  			if wireType == 0 {
   531  				var v github_com_cockroachdb_cockroach_pkg_roachpb.RangeID
   532  				for shift := uint(0); ; shift += 7 {
   533  					if shift >= 64 {
   534  						return ErrIntOverflowEntry
   535  					}
   536  					if iNdEx >= l {
   537  						return io.ErrUnexpectedEOF
   538  					}
   539  					b := dAtA[iNdEx]
   540  					iNdEx++
   541  					v |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift
   542  					if b < 0x80 {
   543  						break
   544  					}
   545  				}
   546  				m.Requested = append(m.Requested, v)
   547  			} else if wireType == 2 {
   548  				var packedLen int
   549  				for shift := uint(0); ; shift += 7 {
   550  					if shift >= 64 {
   551  						return ErrIntOverflowEntry
   552  					}
   553  					if iNdEx >= l {
   554  						return io.ErrUnexpectedEOF
   555  					}
   556  					b := dAtA[iNdEx]
   557  					iNdEx++
   558  					packedLen |= (int(b) & 0x7F) << shift
   559  					if b < 0x80 {
   560  						break
   561  					}
   562  				}
   563  				if packedLen < 0 {
   564  					return ErrInvalidLengthEntry
   565  				}
   566  				postIndex := iNdEx + packedLen
   567  				if postIndex > l {
   568  					return io.ErrUnexpectedEOF
   569  				}
   570  				var elementCount int
   571  				var count int
   572  				for _, integer := range dAtA {
   573  					if integer < 128 {
   574  						count++
   575  					}
   576  				}
   577  				elementCount = count
   578  				if elementCount != 0 && len(m.Requested) == 0 {
   579  					m.Requested = make([]github_com_cockroachdb_cockroach_pkg_roachpb.RangeID, 0, elementCount)
   580  				}
   581  				for iNdEx < postIndex {
   582  					var v github_com_cockroachdb_cockroach_pkg_roachpb.RangeID
   583  					for shift := uint(0); ; shift += 7 {
   584  						if shift >= 64 {
   585  							return ErrIntOverflowEntry
   586  						}
   587  						if iNdEx >= l {
   588  							return io.ErrUnexpectedEOF
   589  						}
   590  						b := dAtA[iNdEx]
   591  						iNdEx++
   592  						v |= (github_com_cockroachdb_cockroach_pkg_roachpb.RangeID(b) & 0x7F) << shift
   593  						if b < 0x80 {
   594  							break
   595  						}
   596  					}
   597  					m.Requested = append(m.Requested, v)
   598  				}
   599  			} else {
   600  				return fmt.Errorf("proto: wrong wireType = %d for field Requested", wireType)
   601  			}
   602  		default:
   603  			iNdEx = preIndex
   604  			skippy, err := skipEntry(dAtA[iNdEx:])
   605  			if err != nil {
   606  				return err
   607  			}
   608  			if skippy < 0 {
   609  				return ErrInvalidLengthEntry
   610  			}
   611  			if (iNdEx + skippy) > l {
   612  				return io.ErrUnexpectedEOF
   613  			}
   614  			iNdEx += skippy
   615  		}
   616  	}
   617  
   618  	if iNdEx > l {
   619  		return io.ErrUnexpectedEOF
   620  	}
   621  	return nil
   622  }
   623  func skipEntry(dAtA []byte) (n int, err error) {
   624  	l := len(dAtA)
   625  	iNdEx := 0
   626  	for iNdEx < l {
   627  		var wire uint64
   628  		for shift := uint(0); ; shift += 7 {
   629  			if shift >= 64 {
   630  				return 0, ErrIntOverflowEntry
   631  			}
   632  			if iNdEx >= l {
   633  				return 0, io.ErrUnexpectedEOF
   634  			}
   635  			b := dAtA[iNdEx]
   636  			iNdEx++
   637  			wire |= (uint64(b) & 0x7F) << shift
   638  			if b < 0x80 {
   639  				break
   640  			}
   641  		}
   642  		wireType := int(wire & 0x7)
   643  		switch wireType {
   644  		case 0:
   645  			for shift := uint(0); ; shift += 7 {
   646  				if shift >= 64 {
   647  					return 0, ErrIntOverflowEntry
   648  				}
   649  				if iNdEx >= l {
   650  					return 0, io.ErrUnexpectedEOF
   651  				}
   652  				iNdEx++
   653  				if dAtA[iNdEx-1] < 0x80 {
   654  					break
   655  				}
   656  			}
   657  			return iNdEx, nil
   658  		case 1:
   659  			iNdEx += 8
   660  			return iNdEx, nil
   661  		case 2:
   662  			var length int
   663  			for shift := uint(0); ; shift += 7 {
   664  				if shift >= 64 {
   665  					return 0, ErrIntOverflowEntry
   666  				}
   667  				if iNdEx >= l {
   668  					return 0, io.ErrUnexpectedEOF
   669  				}
   670  				b := dAtA[iNdEx]
   671  				iNdEx++
   672  				length |= (int(b) & 0x7F) << shift
   673  				if b < 0x80 {
   674  					break
   675  				}
   676  			}
   677  			iNdEx += length
   678  			if length < 0 {
   679  				return 0, ErrInvalidLengthEntry
   680  			}
   681  			return iNdEx, nil
   682  		case 3:
   683  			for {
   684  				var innerWire uint64
   685  				var start int = iNdEx
   686  				for shift := uint(0); ; shift += 7 {
   687  					if shift >= 64 {
   688  						return 0, ErrIntOverflowEntry
   689  					}
   690  					if iNdEx >= l {
   691  						return 0, io.ErrUnexpectedEOF
   692  					}
   693  					b := dAtA[iNdEx]
   694  					iNdEx++
   695  					innerWire |= (uint64(b) & 0x7F) << shift
   696  					if b < 0x80 {
   697  						break
   698  					}
   699  				}
   700  				innerWireType := int(innerWire & 0x7)
   701  				if innerWireType == 4 {
   702  					break
   703  				}
   704  				next, err := skipEntry(dAtA[start:])
   705  				if err != nil {
   706  					return 0, err
   707  				}
   708  				iNdEx = start + next
   709  			}
   710  			return iNdEx, nil
   711  		case 4:
   712  			return iNdEx, nil
   713  		case 5:
   714  			iNdEx += 4
   715  			return iNdEx, nil
   716  		default:
   717  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   718  		}
   719  	}
   720  	panic("unreachable")
   721  }
   722  
   723  var (
   724  	ErrInvalidLengthEntry = fmt.Errorf("proto: negative length found during unmarshaling")
   725  	ErrIntOverflowEntry   = fmt.Errorf("proto: integer overflow")
   726  )
   727  
   728  func init() {
   729  	proto.RegisterFile("kv/kvserver/closedts/ctpb/entry.proto", fileDescriptor_entry_cedfda89c463dabb)
   730  }
   731  
   732  var fileDescriptor_entry_cedfda89c463dabb = []byte{
   733  	// 442 bytes of a gzipped FileDescriptorProto
   734  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x3f, 0x6f, 0xd4, 0x30,
   735  	0x18, 0xc6, 0xe3, 0x4b, 0x82, 0x7a, 0xee, 0x40, 0x15, 0x75, 0x88, 0x4e, 0xe0, 0x44, 0x95, 0x40,
   736  	0x99, 0x6c, 0xa9, 0x20, 0x51, 0x75, 0x6b, 0x44, 0x85, 0x4e, 0x6a, 0x19, 0x2c, 0xc4, 0xc0, 0x82,
   737  	0x1c, 0x9f, 0x49, 0xa2, 0xf8, 0xe2, 0x90, 0x38, 0x91, 0xba, 0x32, 0x22, 0x06, 0x46, 0x46, 0x3e,
   738  	0xce, 0x8d, 0x1d, 0x2b, 0x86, 0x2b, 0xe4, 0xbe, 0x45, 0x27, 0x14, 0x87, 0xde, 0x6d, 0x0c, 0xdd,
   739  	0x7e, 0x79, 0xff, 0x3d, 0x4f, 0xde, 0xd7, 0xf0, 0x59, 0xd1, 0x91, 0xa2, 0x6b, 0x44, 0xdd, 0x89,
   740  	0x9a, 0x70, 0xa9, 0x1a, 0xb1, 0xd0, 0x0d, 0xe1, 0xba, 0x4a, 0x88, 0x28, 0x75, 0x7d, 0x85, 0xab,
   741  	0x5a, 0x69, 0xe5, 0x21, 0xae, 0x78, 0x51, 0x2b, 0xc6, 0x33, 0x5c, 0x74, 0xf8, 0xbe, 0x01, 0x73,
   742  	0xdd, 0x56, 0x0b, 0xa6, 0xc5, 0xec, 0x30, 0x55, 0xa9, 0x32, 0xa5, 0x64, 0xa0, 0xb1, 0x6b, 0xf6,
   743  	0x24, 0x55, 0x2a, 0x95, 0x82, 0xb0, 0x2a, 0x27, 0xac, 0x2c, 0x95, 0x66, 0x3a, 0x57, 0x65, 0xf3,
   744  	0x2f, 0xeb, 0xb7, 0x3a, 0x97, 0x24, 0x93, 0x9c, 0xe8, 0x7c, 0x29, 0x1a, 0xcd, 0x96, 0xd5, 0x98,
   745  	0x39, 0xfa, 0x35, 0x81, 0xee, 0xf9, 0xa0, 0xee, 0x05, 0xd0, 0x15, 0x95, 0xe2, 0x99, 0x0f, 0x42,
   746  	0x10, 0xd9, 0xf1, 0xf4, 0x6e, 0x1d, 0xb8, 0xe7, 0x43, 0x80, 0x8e, 0x71, 0xef, 0x2d, 0x3c, 0x18,
   747  	0x5d, 0x7f, 0xdc, 0x0e, 0xf1, 0x27, 0x21, 0x88, 0xf6, 0x8f, 0x9f, 0xe2, 0x9d, 0xe7, 0x41, 0x09,
   748  	0x67, 0x92, 0xe3, 0x77, 0xf7, 0x45, 0xb1, 0xb3, 0x5a, 0x07, 0x16, 0x7d, 0x3c, 0x36, 0x6f, 0xc3,
   749  	0xde, 0x37, 0x00, 0x9d, 0xa5, 0x64, 0xb9, 0x6f, 0x87, 0x76, 0xb4, 0x7f, 0x4c, 0xf0, 0xff, 0x7f,
   750  	0x1c, 0x1b, 0x9b, 0xf8, 0x52, 0xb2, 0xdc, 0x50, 0xfc, 0xa6, 0x5f, 0x07, 0xce, 0xe5, 0xc5, 0xd9,
   751  	0xfc, 0xcb, 0x6d, 0xf0, 0x32, 0xcd, 0x75, 0xd6, 0x26, 0x98, 0xab, 0x25, 0xd9, 0x8e, 0x59, 0x24,
   752  	0x3b, 0x26, 0x55, 0x91, 0x12, 0x43, 0x55, 0x82, 0x29, 0x2b, 0x53, 0x31, 0x7f, 0xfd, 0xf5, 0x36,
   753  	0xb0, 0x2f, 0xce, 0xe6, 0xd4, 0xb8, 0xf0, 0x3c, 0xe8, 0x7c, 0x6a, 0xa5, 0xf4, 0x9d, 0x10, 0x44,
   754  	0x7b, 0xd4, 0xf0, 0xec, 0x15, 0x9c, 0x6e, 0xf5, 0xbc, 0x03, 0x68, 0x17, 0xe2, 0xca, 0xac, 0xc7,
   755  	0xa5, 0x03, 0x7a, 0x87, 0xd0, 0xed, 0x98, 0x6c, 0x85, 0x59, 0x83, 0x4d, 0xc7, 0x8f, 0xd3, 0xc9,
   756  	0x09, 0x38, 0x75, 0x7e, 0xfc, 0x0c, 0xac, 0xa3, 0x0c, 0xee, 0x51, 0xc1, 0xf8, 0x70, 0x09, 0xef,
   757  	0x3d, 0x9c, 0x52, 0xf1, 0xb9, 0x15, 0x8d, 0x16, 0x0b, 0x1f, 0x84, 0x76, 0xe4, 0xc6, 0x27, 0x77,
   758  	0xeb, 0x87, 0x19, 0xa7, 0xbb, 0x51, 0xa3, 0x52, 0xfc, 0x7c, 0xf5, 0x07, 0x59, 0xab, 0x1e, 0x81,
   759  	0xeb, 0x1e, 0x81, 0x9b, 0x1e, 0x81, 0xdf, 0x3d, 0x02, 0xdf, 0x37, 0xc8, 0xba, 0xde, 0x20, 0xeb,
   760  	0x66, 0x83, 0xac, 0x0f, 0xce, 0xf0, 0xd0, 0x92, 0x47, 0xe6, 0xea, 0x2f, 0xfe, 0x06, 0x00, 0x00,
   761  	0xff, 0xff, 0x39, 0x68, 0xb2, 0x7f, 0x8c, 0x02, 0x00, 0x00,
   762  }