model.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: model.proto
  3. /*
  4. Package model is a generated protocol buffer package.
  5. It is generated from these files:
  6. model.proto
  7. It has these top-level messages:
  8. Info
  9. Perm
  10. */
  11. package model
  12. import proto "github.com/golang/protobuf/proto"
  13. import fmt "fmt"
  14. import math "math"
  15. import _ "github.com/gogo/protobuf/gogoproto"
  16. import io "io"
  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. // This is a compile-time assertion to ensure that this generated file
  22. // is compatible with the proto package it is being compiled against.
  23. // A compilation error at this line likely means your copy of the
  24. // proto package needs to be updated.
  25. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  26. // Info account info.
  27. type Info struct {
  28. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  29. UserID string `protobuf:"bytes,2,opt,name=UserID,proto3" json:"userid"`
  30. Uname string `protobuf:"bytes,3,opt,name=Uname,proto3" json:"uname"`
  31. Face string `protobuf:"bytes,4,opt,name=Face,proto3" json:"face"`
  32. HasEmail bool `protobuf:"varint,5,opt,name=HasEmail,proto3" json:"has_email"`
  33. HasTel bool `protobuf:"varint,6,opt,name=HasTel,proto3" json:"has_tel"`
  34. }
  35. func (m *Info) Reset() { *m = Info{} }
  36. func (m *Info) String() string { return proto.CompactTextString(m) }
  37. func (*Info) ProtoMessage() {}
  38. func (*Info) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{0} }
  39. func (m *Info) GetMid() int64 {
  40. if m != nil {
  41. return m.Mid
  42. }
  43. return 0
  44. }
  45. func (m *Info) GetUserID() string {
  46. if m != nil {
  47. return m.UserID
  48. }
  49. return ""
  50. }
  51. func (m *Info) GetUname() string {
  52. if m != nil {
  53. return m.Uname
  54. }
  55. return ""
  56. }
  57. func (m *Info) GetFace() string {
  58. if m != nil {
  59. return m.Face
  60. }
  61. return ""
  62. }
  63. func (m *Info) GetHasEmail() bool {
  64. if m != nil {
  65. return m.HasEmail
  66. }
  67. return false
  68. }
  69. func (m *Info) GetHasTel() bool {
  70. if m != nil {
  71. return m.HasTel
  72. }
  73. return false
  74. }
  75. // Perm token.
  76. type Perm struct {
  77. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  78. AppID int32 `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"`
  79. AppSubID int32 `protobuf:"varint,3,opt,name=AppSubID,proto3" json:"app_subid"`
  80. AccessToken string `protobuf:"bytes,4,opt,name=AccessToken,proto3" json:"access_token"`
  81. RefreshToken string `protobuf:"bytes,5,opt,name=RefreshToken,proto3" json:"refresh_token"`
  82. CreateAt int64 `protobuf:"varint,6,opt,name=CreateAt,proto3" json:"create_at"`
  83. Expires int64 `protobuf:"varint,7,opt,name=Expires,proto3" json:"expires"`
  84. }
  85. func (m *Perm) Reset() { *m = Perm{} }
  86. func (m *Perm) String() string { return proto.CompactTextString(m) }
  87. func (*Perm) ProtoMessage() {}
  88. func (*Perm) Descriptor() ([]byte, []int) { return fileDescriptorModel, []int{1} }
  89. func (m *Perm) GetMid() int64 {
  90. if m != nil {
  91. return m.Mid
  92. }
  93. return 0
  94. }
  95. func (m *Perm) GetAppID() int32 {
  96. if m != nil {
  97. return m.AppID
  98. }
  99. return 0
  100. }
  101. func (m *Perm) GetAppSubID() int32 {
  102. if m != nil {
  103. return m.AppSubID
  104. }
  105. return 0
  106. }
  107. func (m *Perm) GetAccessToken() string {
  108. if m != nil {
  109. return m.AccessToken
  110. }
  111. return ""
  112. }
  113. func (m *Perm) GetRefreshToken() string {
  114. if m != nil {
  115. return m.RefreshToken
  116. }
  117. return ""
  118. }
  119. func (m *Perm) GetCreateAt() int64 {
  120. if m != nil {
  121. return m.CreateAt
  122. }
  123. return 0
  124. }
  125. func (m *Perm) GetExpires() int64 {
  126. if m != nil {
  127. return m.Expires
  128. }
  129. return 0
  130. }
  131. func init() {
  132. proto.RegisterType((*Info)(nil), "model.Info")
  133. proto.RegisterType((*Perm)(nil), "model.Perm")
  134. }
  135. func (m *Info) Marshal() (dAtA []byte, err error) {
  136. size := m.Size()
  137. dAtA = make([]byte, size)
  138. n, err := m.MarshalTo(dAtA)
  139. if err != nil {
  140. return nil, err
  141. }
  142. return dAtA[:n], nil
  143. }
  144. func (m *Info) MarshalTo(dAtA []byte) (int, error) {
  145. var i int
  146. _ = i
  147. var l int
  148. _ = l
  149. if m.Mid != 0 {
  150. dAtA[i] = 0x8
  151. i++
  152. i = encodeVarintModel(dAtA, i, uint64(m.Mid))
  153. }
  154. if len(m.UserID) > 0 {
  155. dAtA[i] = 0x12
  156. i++
  157. i = encodeVarintModel(dAtA, i, uint64(len(m.UserID)))
  158. i += copy(dAtA[i:], m.UserID)
  159. }
  160. if len(m.Uname) > 0 {
  161. dAtA[i] = 0x1a
  162. i++
  163. i = encodeVarintModel(dAtA, i, uint64(len(m.Uname)))
  164. i += copy(dAtA[i:], m.Uname)
  165. }
  166. if len(m.Face) > 0 {
  167. dAtA[i] = 0x22
  168. i++
  169. i = encodeVarintModel(dAtA, i, uint64(len(m.Face)))
  170. i += copy(dAtA[i:], m.Face)
  171. }
  172. if m.HasEmail {
  173. dAtA[i] = 0x28
  174. i++
  175. if m.HasEmail {
  176. dAtA[i] = 1
  177. } else {
  178. dAtA[i] = 0
  179. }
  180. i++
  181. }
  182. if m.HasTel {
  183. dAtA[i] = 0x30
  184. i++
  185. if m.HasTel {
  186. dAtA[i] = 1
  187. } else {
  188. dAtA[i] = 0
  189. }
  190. i++
  191. }
  192. return i, nil
  193. }
  194. func (m *Perm) Marshal() (dAtA []byte, err error) {
  195. size := m.Size()
  196. dAtA = make([]byte, size)
  197. n, err := m.MarshalTo(dAtA)
  198. if err != nil {
  199. return nil, err
  200. }
  201. return dAtA[:n], nil
  202. }
  203. func (m *Perm) MarshalTo(dAtA []byte) (int, error) {
  204. var i int
  205. _ = i
  206. var l int
  207. _ = l
  208. if m.Mid != 0 {
  209. dAtA[i] = 0x8
  210. i++
  211. i = encodeVarintModel(dAtA, i, uint64(m.Mid))
  212. }
  213. if m.AppID != 0 {
  214. dAtA[i] = 0x10
  215. i++
  216. i = encodeVarintModel(dAtA, i, uint64(m.AppID))
  217. }
  218. if m.AppSubID != 0 {
  219. dAtA[i] = 0x18
  220. i++
  221. i = encodeVarintModel(dAtA, i, uint64(m.AppSubID))
  222. }
  223. if len(m.AccessToken) > 0 {
  224. dAtA[i] = 0x22
  225. i++
  226. i = encodeVarintModel(dAtA, i, uint64(len(m.AccessToken)))
  227. i += copy(dAtA[i:], m.AccessToken)
  228. }
  229. if len(m.RefreshToken) > 0 {
  230. dAtA[i] = 0x2a
  231. i++
  232. i = encodeVarintModel(dAtA, i, uint64(len(m.RefreshToken)))
  233. i += copy(dAtA[i:], m.RefreshToken)
  234. }
  235. if m.CreateAt != 0 {
  236. dAtA[i] = 0x30
  237. i++
  238. i = encodeVarintModel(dAtA, i, uint64(m.CreateAt))
  239. }
  240. if m.Expires != 0 {
  241. dAtA[i] = 0x38
  242. i++
  243. i = encodeVarintModel(dAtA, i, uint64(m.Expires))
  244. }
  245. return i, nil
  246. }
  247. func encodeVarintModel(dAtA []byte, offset int, v uint64) int {
  248. for v >= 1<<7 {
  249. dAtA[offset] = uint8(v&0x7f | 0x80)
  250. v >>= 7
  251. offset++
  252. }
  253. dAtA[offset] = uint8(v)
  254. return offset + 1
  255. }
  256. func (m *Info) Size() (n int) {
  257. var l int
  258. _ = l
  259. if m.Mid != 0 {
  260. n += 1 + sovModel(uint64(m.Mid))
  261. }
  262. l = len(m.UserID)
  263. if l > 0 {
  264. n += 1 + l + sovModel(uint64(l))
  265. }
  266. l = len(m.Uname)
  267. if l > 0 {
  268. n += 1 + l + sovModel(uint64(l))
  269. }
  270. l = len(m.Face)
  271. if l > 0 {
  272. n += 1 + l + sovModel(uint64(l))
  273. }
  274. if m.HasEmail {
  275. n += 2
  276. }
  277. if m.HasTel {
  278. n += 2
  279. }
  280. return n
  281. }
  282. func (m *Perm) Size() (n int) {
  283. var l int
  284. _ = l
  285. if m.Mid != 0 {
  286. n += 1 + sovModel(uint64(m.Mid))
  287. }
  288. if m.AppID != 0 {
  289. n += 1 + sovModel(uint64(m.AppID))
  290. }
  291. if m.AppSubID != 0 {
  292. n += 1 + sovModel(uint64(m.AppSubID))
  293. }
  294. l = len(m.AccessToken)
  295. if l > 0 {
  296. n += 1 + l + sovModel(uint64(l))
  297. }
  298. l = len(m.RefreshToken)
  299. if l > 0 {
  300. n += 1 + l + sovModel(uint64(l))
  301. }
  302. if m.CreateAt != 0 {
  303. n += 1 + sovModel(uint64(m.CreateAt))
  304. }
  305. if m.Expires != 0 {
  306. n += 1 + sovModel(uint64(m.Expires))
  307. }
  308. return n
  309. }
  310. func sovModel(x uint64) (n int) {
  311. for {
  312. n++
  313. x >>= 7
  314. if x == 0 {
  315. break
  316. }
  317. }
  318. return n
  319. }
  320. func sozModel(x uint64) (n int) {
  321. return sovModel(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  322. }
  323. func (m *Info) Unmarshal(dAtA []byte) error {
  324. l := len(dAtA)
  325. iNdEx := 0
  326. for iNdEx < l {
  327. preIndex := iNdEx
  328. var wire uint64
  329. for shift := uint(0); ; shift += 7 {
  330. if shift >= 64 {
  331. return ErrIntOverflowModel
  332. }
  333. if iNdEx >= l {
  334. return io.ErrUnexpectedEOF
  335. }
  336. b := dAtA[iNdEx]
  337. iNdEx++
  338. wire |= (uint64(b) & 0x7F) << shift
  339. if b < 0x80 {
  340. break
  341. }
  342. }
  343. fieldNum := int32(wire >> 3)
  344. wireType := int(wire & 0x7)
  345. if wireType == 4 {
  346. return fmt.Errorf("proto: Info: wiretype end group for non-group")
  347. }
  348. if fieldNum <= 0 {
  349. return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire)
  350. }
  351. switch fieldNum {
  352. case 1:
  353. if wireType != 0 {
  354. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  355. }
  356. m.Mid = 0
  357. for shift := uint(0); ; shift += 7 {
  358. if shift >= 64 {
  359. return ErrIntOverflowModel
  360. }
  361. if iNdEx >= l {
  362. return io.ErrUnexpectedEOF
  363. }
  364. b := dAtA[iNdEx]
  365. iNdEx++
  366. m.Mid |= (int64(b) & 0x7F) << shift
  367. if b < 0x80 {
  368. break
  369. }
  370. }
  371. case 2:
  372. if wireType != 2 {
  373. return fmt.Errorf("proto: wrong wireType = %d for field UserID", wireType)
  374. }
  375. var stringLen uint64
  376. for shift := uint(0); ; shift += 7 {
  377. if shift >= 64 {
  378. return ErrIntOverflowModel
  379. }
  380. if iNdEx >= l {
  381. return io.ErrUnexpectedEOF
  382. }
  383. b := dAtA[iNdEx]
  384. iNdEx++
  385. stringLen |= (uint64(b) & 0x7F) << shift
  386. if b < 0x80 {
  387. break
  388. }
  389. }
  390. intStringLen := int(stringLen)
  391. if intStringLen < 0 {
  392. return ErrInvalidLengthModel
  393. }
  394. postIndex := iNdEx + intStringLen
  395. if postIndex > l {
  396. return io.ErrUnexpectedEOF
  397. }
  398. m.UserID = string(dAtA[iNdEx:postIndex])
  399. iNdEx = postIndex
  400. case 3:
  401. if wireType != 2 {
  402. return fmt.Errorf("proto: wrong wireType = %d for field Uname", wireType)
  403. }
  404. var stringLen uint64
  405. for shift := uint(0); ; shift += 7 {
  406. if shift >= 64 {
  407. return ErrIntOverflowModel
  408. }
  409. if iNdEx >= l {
  410. return io.ErrUnexpectedEOF
  411. }
  412. b := dAtA[iNdEx]
  413. iNdEx++
  414. stringLen |= (uint64(b) & 0x7F) << shift
  415. if b < 0x80 {
  416. break
  417. }
  418. }
  419. intStringLen := int(stringLen)
  420. if intStringLen < 0 {
  421. return ErrInvalidLengthModel
  422. }
  423. postIndex := iNdEx + intStringLen
  424. if postIndex > l {
  425. return io.ErrUnexpectedEOF
  426. }
  427. m.Uname = string(dAtA[iNdEx:postIndex])
  428. iNdEx = postIndex
  429. case 4:
  430. if wireType != 2 {
  431. return fmt.Errorf("proto: wrong wireType = %d for field Face", wireType)
  432. }
  433. var stringLen uint64
  434. for shift := uint(0); ; shift += 7 {
  435. if shift >= 64 {
  436. return ErrIntOverflowModel
  437. }
  438. if iNdEx >= l {
  439. return io.ErrUnexpectedEOF
  440. }
  441. b := dAtA[iNdEx]
  442. iNdEx++
  443. stringLen |= (uint64(b) & 0x7F) << shift
  444. if b < 0x80 {
  445. break
  446. }
  447. }
  448. intStringLen := int(stringLen)
  449. if intStringLen < 0 {
  450. return ErrInvalidLengthModel
  451. }
  452. postIndex := iNdEx + intStringLen
  453. if postIndex > l {
  454. return io.ErrUnexpectedEOF
  455. }
  456. m.Face = string(dAtA[iNdEx:postIndex])
  457. iNdEx = postIndex
  458. case 5:
  459. if wireType != 0 {
  460. return fmt.Errorf("proto: wrong wireType = %d for field HasEmail", wireType)
  461. }
  462. var v int
  463. for shift := uint(0); ; shift += 7 {
  464. if shift >= 64 {
  465. return ErrIntOverflowModel
  466. }
  467. if iNdEx >= l {
  468. return io.ErrUnexpectedEOF
  469. }
  470. b := dAtA[iNdEx]
  471. iNdEx++
  472. v |= (int(b) & 0x7F) << shift
  473. if b < 0x80 {
  474. break
  475. }
  476. }
  477. m.HasEmail = bool(v != 0)
  478. case 6:
  479. if wireType != 0 {
  480. return fmt.Errorf("proto: wrong wireType = %d for field HasTel", wireType)
  481. }
  482. var v int
  483. for shift := uint(0); ; shift += 7 {
  484. if shift >= 64 {
  485. return ErrIntOverflowModel
  486. }
  487. if iNdEx >= l {
  488. return io.ErrUnexpectedEOF
  489. }
  490. b := dAtA[iNdEx]
  491. iNdEx++
  492. v |= (int(b) & 0x7F) << shift
  493. if b < 0x80 {
  494. break
  495. }
  496. }
  497. m.HasTel = bool(v != 0)
  498. default:
  499. iNdEx = preIndex
  500. skippy, err := skipModel(dAtA[iNdEx:])
  501. if err != nil {
  502. return err
  503. }
  504. if skippy < 0 {
  505. return ErrInvalidLengthModel
  506. }
  507. if (iNdEx + skippy) > l {
  508. return io.ErrUnexpectedEOF
  509. }
  510. iNdEx += skippy
  511. }
  512. }
  513. if iNdEx > l {
  514. return io.ErrUnexpectedEOF
  515. }
  516. return nil
  517. }
  518. func (m *Perm) Unmarshal(dAtA []byte) error {
  519. l := len(dAtA)
  520. iNdEx := 0
  521. for iNdEx < l {
  522. preIndex := iNdEx
  523. var wire uint64
  524. for shift := uint(0); ; shift += 7 {
  525. if shift >= 64 {
  526. return ErrIntOverflowModel
  527. }
  528. if iNdEx >= l {
  529. return io.ErrUnexpectedEOF
  530. }
  531. b := dAtA[iNdEx]
  532. iNdEx++
  533. wire |= (uint64(b) & 0x7F) << shift
  534. if b < 0x80 {
  535. break
  536. }
  537. }
  538. fieldNum := int32(wire >> 3)
  539. wireType := int(wire & 0x7)
  540. if wireType == 4 {
  541. return fmt.Errorf("proto: Perm: wiretype end group for non-group")
  542. }
  543. if fieldNum <= 0 {
  544. return fmt.Errorf("proto: Perm: illegal tag %d (wire type %d)", fieldNum, wire)
  545. }
  546. switch fieldNum {
  547. case 1:
  548. if wireType != 0 {
  549. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  550. }
  551. m.Mid = 0
  552. for shift := uint(0); ; shift += 7 {
  553. if shift >= 64 {
  554. return ErrIntOverflowModel
  555. }
  556. if iNdEx >= l {
  557. return io.ErrUnexpectedEOF
  558. }
  559. b := dAtA[iNdEx]
  560. iNdEx++
  561. m.Mid |= (int64(b) & 0x7F) << shift
  562. if b < 0x80 {
  563. break
  564. }
  565. }
  566. case 2:
  567. if wireType != 0 {
  568. return fmt.Errorf("proto: wrong wireType = %d for field AppID", wireType)
  569. }
  570. m.AppID = 0
  571. for shift := uint(0); ; shift += 7 {
  572. if shift >= 64 {
  573. return ErrIntOverflowModel
  574. }
  575. if iNdEx >= l {
  576. return io.ErrUnexpectedEOF
  577. }
  578. b := dAtA[iNdEx]
  579. iNdEx++
  580. m.AppID |= (int32(b) & 0x7F) << shift
  581. if b < 0x80 {
  582. break
  583. }
  584. }
  585. case 3:
  586. if wireType != 0 {
  587. return fmt.Errorf("proto: wrong wireType = %d for field AppSubID", wireType)
  588. }
  589. m.AppSubID = 0
  590. for shift := uint(0); ; shift += 7 {
  591. if shift >= 64 {
  592. return ErrIntOverflowModel
  593. }
  594. if iNdEx >= l {
  595. return io.ErrUnexpectedEOF
  596. }
  597. b := dAtA[iNdEx]
  598. iNdEx++
  599. m.AppSubID |= (int32(b) & 0x7F) << shift
  600. if b < 0x80 {
  601. break
  602. }
  603. }
  604. case 4:
  605. if wireType != 2 {
  606. return fmt.Errorf("proto: wrong wireType = %d for field AccessToken", wireType)
  607. }
  608. var stringLen uint64
  609. for shift := uint(0); ; shift += 7 {
  610. if shift >= 64 {
  611. return ErrIntOverflowModel
  612. }
  613. if iNdEx >= l {
  614. return io.ErrUnexpectedEOF
  615. }
  616. b := dAtA[iNdEx]
  617. iNdEx++
  618. stringLen |= (uint64(b) & 0x7F) << shift
  619. if b < 0x80 {
  620. break
  621. }
  622. }
  623. intStringLen := int(stringLen)
  624. if intStringLen < 0 {
  625. return ErrInvalidLengthModel
  626. }
  627. postIndex := iNdEx + intStringLen
  628. if postIndex > l {
  629. return io.ErrUnexpectedEOF
  630. }
  631. m.AccessToken = string(dAtA[iNdEx:postIndex])
  632. iNdEx = postIndex
  633. case 5:
  634. if wireType != 2 {
  635. return fmt.Errorf("proto: wrong wireType = %d for field RefreshToken", wireType)
  636. }
  637. var stringLen uint64
  638. for shift := uint(0); ; shift += 7 {
  639. if shift >= 64 {
  640. return ErrIntOverflowModel
  641. }
  642. if iNdEx >= l {
  643. return io.ErrUnexpectedEOF
  644. }
  645. b := dAtA[iNdEx]
  646. iNdEx++
  647. stringLen |= (uint64(b) & 0x7F) << shift
  648. if b < 0x80 {
  649. break
  650. }
  651. }
  652. intStringLen := int(stringLen)
  653. if intStringLen < 0 {
  654. return ErrInvalidLengthModel
  655. }
  656. postIndex := iNdEx + intStringLen
  657. if postIndex > l {
  658. return io.ErrUnexpectedEOF
  659. }
  660. m.RefreshToken = string(dAtA[iNdEx:postIndex])
  661. iNdEx = postIndex
  662. case 6:
  663. if wireType != 0 {
  664. return fmt.Errorf("proto: wrong wireType = %d for field CreateAt", wireType)
  665. }
  666. m.CreateAt = 0
  667. for shift := uint(0); ; shift += 7 {
  668. if shift >= 64 {
  669. return ErrIntOverflowModel
  670. }
  671. if iNdEx >= l {
  672. return io.ErrUnexpectedEOF
  673. }
  674. b := dAtA[iNdEx]
  675. iNdEx++
  676. m.CreateAt |= (int64(b) & 0x7F) << shift
  677. if b < 0x80 {
  678. break
  679. }
  680. }
  681. case 7:
  682. if wireType != 0 {
  683. return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  684. }
  685. m.Expires = 0
  686. for shift := uint(0); ; shift += 7 {
  687. if shift >= 64 {
  688. return ErrIntOverflowModel
  689. }
  690. if iNdEx >= l {
  691. return io.ErrUnexpectedEOF
  692. }
  693. b := dAtA[iNdEx]
  694. iNdEx++
  695. m.Expires |= (int64(b) & 0x7F) << shift
  696. if b < 0x80 {
  697. break
  698. }
  699. }
  700. default:
  701. iNdEx = preIndex
  702. skippy, err := skipModel(dAtA[iNdEx:])
  703. if err != nil {
  704. return err
  705. }
  706. if skippy < 0 {
  707. return ErrInvalidLengthModel
  708. }
  709. if (iNdEx + skippy) > l {
  710. return io.ErrUnexpectedEOF
  711. }
  712. iNdEx += skippy
  713. }
  714. }
  715. if iNdEx > l {
  716. return io.ErrUnexpectedEOF
  717. }
  718. return nil
  719. }
  720. func skipModel(dAtA []byte) (n int, err error) {
  721. l := len(dAtA)
  722. iNdEx := 0
  723. for iNdEx < l {
  724. var wire uint64
  725. for shift := uint(0); ; shift += 7 {
  726. if shift >= 64 {
  727. return 0, ErrIntOverflowModel
  728. }
  729. if iNdEx >= l {
  730. return 0, io.ErrUnexpectedEOF
  731. }
  732. b := dAtA[iNdEx]
  733. iNdEx++
  734. wire |= (uint64(b) & 0x7F) << shift
  735. if b < 0x80 {
  736. break
  737. }
  738. }
  739. wireType := int(wire & 0x7)
  740. switch wireType {
  741. case 0:
  742. for shift := uint(0); ; shift += 7 {
  743. if shift >= 64 {
  744. return 0, ErrIntOverflowModel
  745. }
  746. if iNdEx >= l {
  747. return 0, io.ErrUnexpectedEOF
  748. }
  749. iNdEx++
  750. if dAtA[iNdEx-1] < 0x80 {
  751. break
  752. }
  753. }
  754. return iNdEx, nil
  755. case 1:
  756. iNdEx += 8
  757. return iNdEx, nil
  758. case 2:
  759. var length int
  760. for shift := uint(0); ; shift += 7 {
  761. if shift >= 64 {
  762. return 0, ErrIntOverflowModel
  763. }
  764. if iNdEx >= l {
  765. return 0, io.ErrUnexpectedEOF
  766. }
  767. b := dAtA[iNdEx]
  768. iNdEx++
  769. length |= (int(b) & 0x7F) << shift
  770. if b < 0x80 {
  771. break
  772. }
  773. }
  774. iNdEx += length
  775. if length < 0 {
  776. return 0, ErrInvalidLengthModel
  777. }
  778. return iNdEx, nil
  779. case 3:
  780. for {
  781. var innerWire uint64
  782. var start int = iNdEx
  783. for shift := uint(0); ; shift += 7 {
  784. if shift >= 64 {
  785. return 0, ErrIntOverflowModel
  786. }
  787. if iNdEx >= l {
  788. return 0, io.ErrUnexpectedEOF
  789. }
  790. b := dAtA[iNdEx]
  791. iNdEx++
  792. innerWire |= (uint64(b) & 0x7F) << shift
  793. if b < 0x80 {
  794. break
  795. }
  796. }
  797. innerWireType := int(innerWire & 0x7)
  798. if innerWireType == 4 {
  799. break
  800. }
  801. next, err := skipModel(dAtA[start:])
  802. if err != nil {
  803. return 0, err
  804. }
  805. iNdEx = start + next
  806. }
  807. return iNdEx, nil
  808. case 4:
  809. return iNdEx, nil
  810. case 5:
  811. iNdEx += 4
  812. return iNdEx, nil
  813. default:
  814. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  815. }
  816. }
  817. panic("unreachable")
  818. }
  819. var (
  820. ErrInvalidLengthModel = fmt.Errorf("proto: negative length found during unmarshaling")
  821. ErrIntOverflowModel = fmt.Errorf("proto: integer overflow")
  822. )
  823. func init() { proto.RegisterFile("model.proto", fileDescriptorModel) }
  824. var fileDescriptorModel = []byte{
  825. // 409 bytes of a gzipped FileDescriptorProto
  826. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x4f, 0x8e, 0xd3, 0x30,
  827. 0x14, 0xc6, 0xc9, 0xe4, 0x4f, 0x5b, 0x77, 0x46, 0x1a, 0xbc, 0x0a, 0x08, 0xd5, 0x55, 0x11, 0x52,
  828. 0x59, 0x30, 0x23, 0x81, 0x38, 0x40, 0xcb, 0x0c, 0x9a, 0x2e, 0x90, 0x90, 0x99, 0xae, 0x2b, 0x27,
  829. 0x79, 0x6d, 0x23, 0x92, 0xda, 0xb2, 0x13, 0x89, 0xa3, 0x70, 0x06, 0x4e, 0xc2, 0x92, 0x05, 0x6b,
  830. 0x0b, 0x95, 0x9d, 0x4f, 0x81, 0xf2, 0x1c, 0x2a, 0xd8, 0xcc, 0x2e, 0xef, 0xf7, 0xfb, 0x9e, 0xf4,
  831. 0x3d, 0x2b, 0x64, 0x5c, 0xcb, 0x02, 0xaa, 0x2b, 0xa5, 0x65, 0x23, 0x69, 0x8c, 0xc3, 0xd3, 0x57,
  832. 0xbb, 0xb2, 0xd9, 0xb7, 0xd9, 0x55, 0x2e, 0xeb, 0xeb, 0x9d, 0xdc, 0xc9, 0x6b, 0xb4, 0x59, 0xbb,
  833. 0xc5, 0x09, 0x07, 0xfc, 0xf2, 0x5b, 0xb3, 0x9f, 0x01, 0x89, 0x56, 0x87, 0xad, 0xa4, 0x4f, 0x48,
  834. 0xf8, 0xa1, 0x2c, 0xd2, 0x60, 0x1a, 0xcc, 0xc3, 0xe5, 0xc0, 0x59, 0x16, 0xd6, 0x65, 0xc1, 0x3b,
  835. 0x46, 0x67, 0x24, 0x59, 0x1b, 0xd0, 0xab, 0x9b, 0xf4, 0x6c, 0x1a, 0xcc, 0x47, 0x4b, 0xe2, 0x2c,
  836. 0x4b, 0x5a, 0x03, 0xba, 0x2c, 0x78, 0x6f, 0x28, 0x23, 0xf1, 0xfa, 0x20, 0x6a, 0x48, 0x43, 0x8c,
  837. 0x8c, 0x9c, 0x65, 0x71, 0xdb, 0x01, 0xee, 0x39, 0x7d, 0x46, 0xa2, 0xf7, 0x22, 0x87, 0x34, 0x42,
  838. 0x3f, 0x74, 0x96, 0x45, 0x5b, 0x91, 0x03, 0x47, 0x4a, 0x5f, 0x92, 0xe1, 0x9d, 0x30, 0xb7, 0xb5,
  839. 0x28, 0xab, 0x34, 0x9e, 0x06, 0xf3, 0xe1, 0xf2, 0xc2, 0x59, 0x36, 0xda, 0x0b, 0xb3, 0x81, 0x0e,
  840. 0xf2, 0x93, 0xa6, 0xcf, 0x49, 0x72, 0x27, 0xcc, 0x3d, 0x54, 0x69, 0x82, 0xc1, 0xb1, 0xb3, 0x6c,
  841. 0xd0, 0x05, 0x1b, 0xa8, 0x78, 0xaf, 0x66, 0xdf, 0xce, 0x48, 0xf4, 0x11, 0x74, 0xfd, 0xd0, 0x59,
  842. 0x8c, 0xc4, 0x0b, 0xa5, 0xfa, 0xab, 0x62, 0x5f, 0x59, 0x28, 0x55, 0x16, 0xdc, 0xf3, 0xae, 0xd4,
  843. 0x42, 0xa9, 0x4f, 0x6d, 0xb6, 0xba, 0xc1, 0xb3, 0x62, 0x5f, 0x4a, 0x28, 0xb5, 0x31, 0x6d, 0x56,
  844. 0x16, 0xfc, 0xa4, 0xe9, 0x6b, 0x32, 0x5e, 0xe4, 0x39, 0x18, 0x73, 0x2f, 0x3f, 0xc3, 0xa1, 0x3f,
  845. 0xf2, 0xd2, 0x59, 0x76, 0x2e, 0x10, 0x6f, 0x9a, 0x8e, 0xf3, 0x7f, 0x43, 0xf4, 0x2d, 0x39, 0xe7,
  846. 0xb0, 0xd5, 0x60, 0xf6, 0x7e, 0x29, 0xc6, 0xa5, 0xc7, 0xce, 0xb2, 0x0b, 0xed, 0x79, 0xbf, 0xf5,
  847. 0x5f, 0xac, 0x6b, 0xf5, 0x4e, 0x83, 0x68, 0x60, 0xd1, 0xe0, 0x0b, 0x84, 0xbe, 0x55, 0x8e, 0x6c,
  848. 0x23, 0x1a, 0x7e, 0xd2, 0xf4, 0x05, 0x19, 0xdc, 0x7e, 0x51, 0xa5, 0x06, 0x93, 0x0e, 0x30, 0x89,
  849. 0x6f, 0x05, 0x1e, 0xf1, 0xbf, 0x6e, 0x79, 0xf9, 0xfd, 0x38, 0x09, 0x7e, 0x1c, 0x27, 0xc1, 0xaf,
  850. 0xe3, 0x24, 0xf8, 0xfa, 0x7b, 0xf2, 0x28, 0x4b, 0xf0, 0xe7, 0x78, 0xf3, 0x27, 0x00, 0x00, 0xff,
  851. 0xff, 0x4a, 0x98, 0xa7, 0x40, 0x61, 0x02, 0x00, 0x00,
  852. }