kv.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: kv.proto
  3. /*
  4. Package mvccpb is a generated protocol buffer package.
  5. It is generated from these files:
  6. kv.proto
  7. It has these top-level messages:
  8. KeyValue
  9. Event
  10. */
  11. package mvccpb
  12. import (
  13. "fmt"
  14. proto "github.com/golang/protobuf/proto"
  15. math "math"
  16. _ "github.com/gogo/protobuf/gogoproto"
  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 encodeVarintKv(dAtA []byte, offset int, v uint64) int {
  180. for v >= 1<<7 {
  181. dAtA[offset] = uint8(v&0x7f | 0x80)
  182. v >>= 7
  183. offset++
  184. }
  185. dAtA[offset] = uint8(v)
  186. return offset + 1
  187. }
  188. func (m *KeyValue) Size() (n int) {
  189. var l int
  190. _ = l
  191. l = len(m.Key)
  192. if l > 0 {
  193. n += 1 + l + sovKv(uint64(l))
  194. }
  195. if m.CreateRevision != 0 {
  196. n += 1 + sovKv(uint64(m.CreateRevision))
  197. }
  198. if m.ModRevision != 0 {
  199. n += 1 + sovKv(uint64(m.ModRevision))
  200. }
  201. if m.Version != 0 {
  202. n += 1 + sovKv(uint64(m.Version))
  203. }
  204. l = len(m.Value)
  205. if l > 0 {
  206. n += 1 + l + sovKv(uint64(l))
  207. }
  208. if m.Lease != 0 {
  209. n += 1 + sovKv(uint64(m.Lease))
  210. }
  211. return n
  212. }
  213. func (m *Event) Size() (n int) {
  214. var l int
  215. _ = l
  216. if m.Type != 0 {
  217. n += 1 + sovKv(uint64(m.Type))
  218. }
  219. if m.Kv != nil {
  220. l = m.Kv.Size()
  221. n += 1 + l + sovKv(uint64(l))
  222. }
  223. if m.PrevKv != nil {
  224. l = m.PrevKv.Size()
  225. n += 1 + l + sovKv(uint64(l))
  226. }
  227. return n
  228. }
  229. func sovKv(x uint64) (n int) {
  230. for {
  231. n++
  232. x >>= 7
  233. if x == 0 {
  234. break
  235. }
  236. }
  237. return n
  238. }
  239. func sozKv(x uint64) (n int) {
  240. return sovKv(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  241. }
  242. func (m *KeyValue) Unmarshal(dAtA []byte) error {
  243. l := len(dAtA)
  244. iNdEx := 0
  245. for iNdEx < l {
  246. preIndex := iNdEx
  247. var wire uint64
  248. for shift := uint(0); ; shift += 7 {
  249. if shift >= 64 {
  250. return ErrIntOverflowKv
  251. }
  252. if iNdEx >= l {
  253. return io.ErrUnexpectedEOF
  254. }
  255. b := dAtA[iNdEx]
  256. iNdEx++
  257. wire |= (uint64(b) & 0x7F) << shift
  258. if b < 0x80 {
  259. break
  260. }
  261. }
  262. fieldNum := int32(wire >> 3)
  263. wireType := int(wire & 0x7)
  264. if wireType == 4 {
  265. return fmt.Errorf("proto: KeyValue: wiretype end group for non-group")
  266. }
  267. if fieldNum <= 0 {
  268. return fmt.Errorf("proto: KeyValue: illegal tag %d (wire type %d)", fieldNum, wire)
  269. }
  270. switch fieldNum {
  271. case 1:
  272. if wireType != 2 {
  273. return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  274. }
  275. var byteLen int
  276. for shift := uint(0); ; shift += 7 {
  277. if shift >= 64 {
  278. return ErrIntOverflowKv
  279. }
  280. if iNdEx >= l {
  281. return io.ErrUnexpectedEOF
  282. }
  283. b := dAtA[iNdEx]
  284. iNdEx++
  285. byteLen |= (int(b) & 0x7F) << shift
  286. if b < 0x80 {
  287. break
  288. }
  289. }
  290. if byteLen < 0 {
  291. return ErrInvalidLengthKv
  292. }
  293. postIndex := iNdEx + byteLen
  294. if postIndex > l {
  295. return io.ErrUnexpectedEOF
  296. }
  297. m.Key = append(m.Key[:0], dAtA[iNdEx:postIndex]...)
  298. if m.Key == nil {
  299. m.Key = []byte{}
  300. }
  301. iNdEx = postIndex
  302. case 2:
  303. if wireType != 0 {
  304. return fmt.Errorf("proto: wrong wireType = %d for field CreateRevision", wireType)
  305. }
  306. m.CreateRevision = 0
  307. for shift := uint(0); ; shift += 7 {
  308. if shift >= 64 {
  309. return ErrIntOverflowKv
  310. }
  311. if iNdEx >= l {
  312. return io.ErrUnexpectedEOF
  313. }
  314. b := dAtA[iNdEx]
  315. iNdEx++
  316. m.CreateRevision |= (int64(b) & 0x7F) << shift
  317. if b < 0x80 {
  318. break
  319. }
  320. }
  321. case 3:
  322. if wireType != 0 {
  323. return fmt.Errorf("proto: wrong wireType = %d for field ModRevision", wireType)
  324. }
  325. m.ModRevision = 0
  326. for shift := uint(0); ; shift += 7 {
  327. if shift >= 64 {
  328. return ErrIntOverflowKv
  329. }
  330. if iNdEx >= l {
  331. return io.ErrUnexpectedEOF
  332. }
  333. b := dAtA[iNdEx]
  334. iNdEx++
  335. m.ModRevision |= (int64(b) & 0x7F) << shift
  336. if b < 0x80 {
  337. break
  338. }
  339. }
  340. case 4:
  341. if wireType != 0 {
  342. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  343. }
  344. m.Version = 0
  345. for shift := uint(0); ; shift += 7 {
  346. if shift >= 64 {
  347. return ErrIntOverflowKv
  348. }
  349. if iNdEx >= l {
  350. return io.ErrUnexpectedEOF
  351. }
  352. b := dAtA[iNdEx]
  353. iNdEx++
  354. m.Version |= (int64(b) & 0x7F) << shift
  355. if b < 0x80 {
  356. break
  357. }
  358. }
  359. case 5:
  360. if wireType != 2 {
  361. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  362. }
  363. var byteLen int
  364. for shift := uint(0); ; shift += 7 {
  365. if shift >= 64 {
  366. return ErrIntOverflowKv
  367. }
  368. if iNdEx >= l {
  369. return io.ErrUnexpectedEOF
  370. }
  371. b := dAtA[iNdEx]
  372. iNdEx++
  373. byteLen |= (int(b) & 0x7F) << shift
  374. if b < 0x80 {
  375. break
  376. }
  377. }
  378. if byteLen < 0 {
  379. return ErrInvalidLengthKv
  380. }
  381. postIndex := iNdEx + byteLen
  382. if postIndex > l {
  383. return io.ErrUnexpectedEOF
  384. }
  385. m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  386. if m.Value == nil {
  387. m.Value = []byte{}
  388. }
  389. iNdEx = postIndex
  390. case 6:
  391. if wireType != 0 {
  392. return fmt.Errorf("proto: wrong wireType = %d for field Lease", wireType)
  393. }
  394. m.Lease = 0
  395. for shift := uint(0); ; shift += 7 {
  396. if shift >= 64 {
  397. return ErrIntOverflowKv
  398. }
  399. if iNdEx >= l {
  400. return io.ErrUnexpectedEOF
  401. }
  402. b := dAtA[iNdEx]
  403. iNdEx++
  404. m.Lease |= (int64(b) & 0x7F) << shift
  405. if b < 0x80 {
  406. break
  407. }
  408. }
  409. default:
  410. iNdEx = preIndex
  411. skippy, err := skipKv(dAtA[iNdEx:])
  412. if err != nil {
  413. return err
  414. }
  415. if skippy < 0 {
  416. return ErrInvalidLengthKv
  417. }
  418. if (iNdEx + skippy) > l {
  419. return io.ErrUnexpectedEOF
  420. }
  421. iNdEx += skippy
  422. }
  423. }
  424. if iNdEx > l {
  425. return io.ErrUnexpectedEOF
  426. }
  427. return nil
  428. }
  429. func (m *Event) Unmarshal(dAtA []byte) error {
  430. l := len(dAtA)
  431. iNdEx := 0
  432. for iNdEx < l {
  433. preIndex := iNdEx
  434. var wire uint64
  435. for shift := uint(0); ; shift += 7 {
  436. if shift >= 64 {
  437. return ErrIntOverflowKv
  438. }
  439. if iNdEx >= l {
  440. return io.ErrUnexpectedEOF
  441. }
  442. b := dAtA[iNdEx]
  443. iNdEx++
  444. wire |= (uint64(b) & 0x7F) << shift
  445. if b < 0x80 {
  446. break
  447. }
  448. }
  449. fieldNum := int32(wire >> 3)
  450. wireType := int(wire & 0x7)
  451. if wireType == 4 {
  452. return fmt.Errorf("proto: Event: wiretype end group for non-group")
  453. }
  454. if fieldNum <= 0 {
  455. return fmt.Errorf("proto: Event: illegal tag %d (wire type %d)", fieldNum, wire)
  456. }
  457. switch fieldNum {
  458. case 1:
  459. if wireType != 0 {
  460. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  461. }
  462. m.Type = 0
  463. for shift := uint(0); ; shift += 7 {
  464. if shift >= 64 {
  465. return ErrIntOverflowKv
  466. }
  467. if iNdEx >= l {
  468. return io.ErrUnexpectedEOF
  469. }
  470. b := dAtA[iNdEx]
  471. iNdEx++
  472. m.Type |= (Event_EventType(b) & 0x7F) << shift
  473. if b < 0x80 {
  474. break
  475. }
  476. }
  477. case 2:
  478. if wireType != 2 {
  479. return fmt.Errorf("proto: wrong wireType = %d for field Kv", wireType)
  480. }
  481. var msglen int
  482. for shift := uint(0); ; shift += 7 {
  483. if shift >= 64 {
  484. return ErrIntOverflowKv
  485. }
  486. if iNdEx >= l {
  487. return io.ErrUnexpectedEOF
  488. }
  489. b := dAtA[iNdEx]
  490. iNdEx++
  491. msglen |= (int(b) & 0x7F) << shift
  492. if b < 0x80 {
  493. break
  494. }
  495. }
  496. if msglen < 0 {
  497. return ErrInvalidLengthKv
  498. }
  499. postIndex := iNdEx + msglen
  500. if postIndex > l {
  501. return io.ErrUnexpectedEOF
  502. }
  503. if m.Kv == nil {
  504. m.Kv = &KeyValue{}
  505. }
  506. if err := m.Kv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  507. return err
  508. }
  509. iNdEx = postIndex
  510. case 3:
  511. if wireType != 2 {
  512. return fmt.Errorf("proto: wrong wireType = %d for field PrevKv", wireType)
  513. }
  514. var msglen int
  515. for shift := uint(0); ; shift += 7 {
  516. if shift >= 64 {
  517. return ErrIntOverflowKv
  518. }
  519. if iNdEx >= l {
  520. return io.ErrUnexpectedEOF
  521. }
  522. b := dAtA[iNdEx]
  523. iNdEx++
  524. msglen |= (int(b) & 0x7F) << shift
  525. if b < 0x80 {
  526. break
  527. }
  528. }
  529. if msglen < 0 {
  530. return ErrInvalidLengthKv
  531. }
  532. postIndex := iNdEx + msglen
  533. if postIndex > l {
  534. return io.ErrUnexpectedEOF
  535. }
  536. if m.PrevKv == nil {
  537. m.PrevKv = &KeyValue{}
  538. }
  539. if err := m.PrevKv.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  540. return err
  541. }
  542. iNdEx = postIndex
  543. default:
  544. iNdEx = preIndex
  545. skippy, err := skipKv(dAtA[iNdEx:])
  546. if err != nil {
  547. return err
  548. }
  549. if skippy < 0 {
  550. return ErrInvalidLengthKv
  551. }
  552. if (iNdEx + skippy) > l {
  553. return io.ErrUnexpectedEOF
  554. }
  555. iNdEx += skippy
  556. }
  557. }
  558. if iNdEx > l {
  559. return io.ErrUnexpectedEOF
  560. }
  561. return nil
  562. }
  563. func skipKv(dAtA []byte) (n int, err error) {
  564. l := len(dAtA)
  565. iNdEx := 0
  566. for iNdEx < l {
  567. var wire uint64
  568. for shift := uint(0); ; shift += 7 {
  569. if shift >= 64 {
  570. return 0, ErrIntOverflowKv
  571. }
  572. if iNdEx >= l {
  573. return 0, io.ErrUnexpectedEOF
  574. }
  575. b := dAtA[iNdEx]
  576. iNdEx++
  577. wire |= (uint64(b) & 0x7F) << shift
  578. if b < 0x80 {
  579. break
  580. }
  581. }
  582. wireType := int(wire & 0x7)
  583. switch wireType {
  584. case 0:
  585. for shift := uint(0); ; shift += 7 {
  586. if shift >= 64 {
  587. return 0, ErrIntOverflowKv
  588. }
  589. if iNdEx >= l {
  590. return 0, io.ErrUnexpectedEOF
  591. }
  592. iNdEx++
  593. if dAtA[iNdEx-1] < 0x80 {
  594. break
  595. }
  596. }
  597. return iNdEx, nil
  598. case 1:
  599. iNdEx += 8
  600. return iNdEx, nil
  601. case 2:
  602. var length int
  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. b := dAtA[iNdEx]
  611. iNdEx++
  612. length |= (int(b) & 0x7F) << shift
  613. if b < 0x80 {
  614. break
  615. }
  616. }
  617. iNdEx += length
  618. if length < 0 {
  619. return 0, ErrInvalidLengthKv
  620. }
  621. return iNdEx, nil
  622. case 3:
  623. for {
  624. var innerWire uint64
  625. var start int = iNdEx
  626. for shift := uint(0); ; shift += 7 {
  627. if shift >= 64 {
  628. return 0, ErrIntOverflowKv
  629. }
  630. if iNdEx >= l {
  631. return 0, io.ErrUnexpectedEOF
  632. }
  633. b := dAtA[iNdEx]
  634. iNdEx++
  635. innerWire |= (uint64(b) & 0x7F) << shift
  636. if b < 0x80 {
  637. break
  638. }
  639. }
  640. innerWireType := int(innerWire & 0x7)
  641. if innerWireType == 4 {
  642. break
  643. }
  644. next, err := skipKv(dAtA[start:])
  645. if err != nil {
  646. return 0, err
  647. }
  648. iNdEx = start + next
  649. }
  650. return iNdEx, nil
  651. case 4:
  652. return iNdEx, nil
  653. case 5:
  654. iNdEx += 4
  655. return iNdEx, nil
  656. default:
  657. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  658. }
  659. }
  660. panic("unreachable")
  661. }
  662. var (
  663. ErrInvalidLengthKv = fmt.Errorf("proto: negative length found during unmarshaling")
  664. ErrIntOverflowKv = fmt.Errorf("proto: integer overflow")
  665. )
  666. func init() { proto.RegisterFile("kv.proto", fileDescriptorKv) }
  667. var fileDescriptorKv = []byte{
  668. // 303 bytes of a gzipped FileDescriptorProto
  669. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x41, 0x4e, 0xc2, 0x40,
  670. 0x14, 0x86, 0x3b, 0x14, 0x0a, 0x3e, 0x08, 0x36, 0x13, 0x12, 0x27, 0x2e, 0x26, 0x95, 0x8d, 0x18,
  671. 0x13, 0x4c, 0xf0, 0x06, 0xc6, 0xae, 0x70, 0x61, 0x1a, 0x74, 0x4b, 0x4a, 0x79, 0x21, 0xa4, 0x94,
  672. 0x69, 0x4a, 0x9d, 0xa4, 0x37, 0x71, 0xef, 0xde, 0x73, 0xb0, 0xe4, 0x08, 0x52, 0x2f, 0x62, 0xfa,
  673. 0xc6, 0xe2, 0xc6, 0xcd, 0xe4, 0xfd, 0xff, 0xff, 0x65, 0xe6, 0x7f, 0x03, 0x9d, 0x58, 0x8f, 0xd3,
  674. 0x4c, 0xe5, 0x8a, 0x3b, 0x89, 0x8e, 0xa2, 0x74, 0x71, 0x39, 0x58, 0xa9, 0x95, 0x22, 0xeb, 0xae,
  675. 0x9a, 0x4c, 0x3a, 0xfc, 0x64, 0xd0, 0x99, 0x62, 0xf1, 0x1a, 0x6e, 0xde, 0x90, 0xbb, 0x60, 0xc7,
  676. 0x58, 0x08, 0xe6, 0xb1, 0x51, 0x2f, 0xa8, 0x46, 0x7e, 0x0d, 0xe7, 0x51, 0x86, 0x61, 0x8e, 0xf3,
  677. 0x0c, 0xf5, 0x7a, 0xb7, 0x56, 0x5b, 0xd1, 0xf0, 0xd8, 0xc8, 0x0e, 0xfa, 0xc6, 0x0e, 0x7e, 0x5d,
  678. 0x7e, 0x05, 0xbd, 0x44, 0x2d, 0xff, 0x28, 0x9b, 0xa8, 0x6e, 0xa2, 0x96, 0x27, 0x44, 0x40, 0x5b,
  679. 0x63, 0x46, 0x69, 0x93, 0xd2, 0x5a, 0xf2, 0x01, 0xb4, 0x74, 0x55, 0x40, 0xb4, 0xe8, 0x65, 0x23,
  680. 0x2a, 0x77, 0x83, 0xe1, 0x0e, 0x85, 0x43, 0xb4, 0x11, 0xc3, 0x0f, 0x06, 0x2d, 0x5f, 0xe3, 0x36,
  681. 0xe7, 0xb7, 0xd0, 0xcc, 0x8b, 0x14, 0xa9, 0x6e, 0x7f, 0x72, 0x31, 0x36, 0x7b, 0x8e, 0x29, 0x34,
  682. 0xe7, 0xac, 0x48, 0x31, 0x20, 0x88, 0x7b, 0xd0, 0x88, 0x35, 0x75, 0xef, 0x4e, 0xdc, 0x1a, 0xad,
  683. 0x17, 0x0f, 0x1a, 0xb1, 0xe6, 0x37, 0xd0, 0x4e, 0x33, 0xd4, 0xf3, 0x58, 0x53, 0xf9, 0xff, 0x30,
  684. 0xa7, 0x02, 0xa6, 0x7a, 0xe8, 0xc1, 0xd9, 0xe9, 0x7e, 0xde, 0x06, 0xfb, 0xf9, 0x65, 0xe6, 0x5a,
  685. 0x1c, 0xc0, 0x79, 0xf4, 0x9f, 0xfc, 0x99, 0xef, 0xb2, 0x07, 0xb1, 0x3f, 0x4a, 0xeb, 0x70, 0x94,
  686. 0xd6, 0xbe, 0x94, 0xec, 0x50, 0x4a, 0xf6, 0x55, 0x4a, 0xf6, 0xfe, 0x2d, 0xad, 0x85, 0x43, 0xff,
  687. 0x7e, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xb5, 0x45, 0x92, 0x5d, 0xa1, 0x01, 0x00, 0x00,
  688. }