kv.pb.go 17 KB

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