kv.pb.go 18 KB

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