token.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/main/identify-game/model/token.proto
  3. package model
  4. import proto "github.com/gogo/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/gogo/protobuf/gogoproto"
  8. import io "io"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  18. // result of http access info.
  19. type AccessInfo struct {
  20. Mid int64 `protobuf:"varint,1,opt,name=Mid,proto3" json:"mid"`
  21. AppID int64 `protobuf:"varint,2,opt,name=AppID,proto3" json:"appid"`
  22. Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"access_key"`
  23. CreateAt int64 `protobuf:"varint,4,opt,name=CreateAt,proto3" json:"create_at"`
  24. UserID string `protobuf:"bytes,5,opt,name=UserID,proto3" json:"userid"`
  25. Name string `protobuf:"bytes,6,opt,name=Name,proto3" json:"uname"`
  26. Expires int64 `protobuf:"varint,7,opt,name=Expires,proto3" json:"expires"`
  27. Permission string `protobuf:"bytes,8,opt,name=Permission,proto3" json:"permission"`
  28. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  29. XXX_unrecognized []byte `json:"-"`
  30. XXX_sizecache int32 `json:"-"`
  31. }
  32. func (m *AccessInfo) Reset() { *m = AccessInfo{} }
  33. func (m *AccessInfo) String() string { return proto.CompactTextString(m) }
  34. func (*AccessInfo) ProtoMessage() {}
  35. func (*AccessInfo) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_token_a3d7e52fbb774120, []int{0}
  37. }
  38. func (m *AccessInfo) XXX_Unmarshal(b []byte) error {
  39. return m.Unmarshal(b)
  40. }
  41. func (m *AccessInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. if deterministic {
  43. return xxx_messageInfo_AccessInfo.Marshal(b, m, deterministic)
  44. } else {
  45. b = b[:cap(b)]
  46. n, err := m.MarshalTo(b)
  47. if err != nil {
  48. return nil, err
  49. }
  50. return b[:n], nil
  51. }
  52. }
  53. func (dst *AccessInfo) XXX_Merge(src proto.Message) {
  54. xxx_messageInfo_AccessInfo.Merge(dst, src)
  55. }
  56. func (m *AccessInfo) XXX_Size() int {
  57. return m.Size()
  58. }
  59. func (m *AccessInfo) XXX_DiscardUnknown() {
  60. xxx_messageInfo_AccessInfo.DiscardUnknown(m)
  61. }
  62. var xxx_messageInfo_AccessInfo proto.InternalMessageInfo
  63. func (m *AccessInfo) GetMid() int64 {
  64. if m != nil {
  65. return m.Mid
  66. }
  67. return 0
  68. }
  69. func (m *AccessInfo) GetAppID() int64 {
  70. if m != nil {
  71. return m.AppID
  72. }
  73. return 0
  74. }
  75. func (m *AccessInfo) GetToken() string {
  76. if m != nil {
  77. return m.Token
  78. }
  79. return ""
  80. }
  81. func (m *AccessInfo) GetCreateAt() int64 {
  82. if m != nil {
  83. return m.CreateAt
  84. }
  85. return 0
  86. }
  87. func (m *AccessInfo) GetUserID() string {
  88. if m != nil {
  89. return m.UserID
  90. }
  91. return ""
  92. }
  93. func (m *AccessInfo) GetName() string {
  94. if m != nil {
  95. return m.Name
  96. }
  97. return ""
  98. }
  99. func (m *AccessInfo) GetExpires() int64 {
  100. if m != nil {
  101. return m.Expires
  102. }
  103. return 0
  104. }
  105. func (m *AccessInfo) GetPermission() string {
  106. if m != nil {
  107. return m.Permission
  108. }
  109. return ""
  110. }
  111. type RenewInfo struct {
  112. Expires int64 `protobuf:"varint,1,opt,name=Expires,proto3" json:"expires"`
  113. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  114. XXX_unrecognized []byte `json:"-"`
  115. XXX_sizecache int32 `json:"-"`
  116. }
  117. func (m *RenewInfo) Reset() { *m = RenewInfo{} }
  118. func (m *RenewInfo) String() string { return proto.CompactTextString(m) }
  119. func (*RenewInfo) ProtoMessage() {}
  120. func (*RenewInfo) Descriptor() ([]byte, []int) {
  121. return fileDescriptor_token_a3d7e52fbb774120, []int{1}
  122. }
  123. func (m *RenewInfo) XXX_Unmarshal(b []byte) error {
  124. return m.Unmarshal(b)
  125. }
  126. func (m *RenewInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  127. if deterministic {
  128. return xxx_messageInfo_RenewInfo.Marshal(b, m, deterministic)
  129. } else {
  130. b = b[:cap(b)]
  131. n, err := m.MarshalTo(b)
  132. if err != nil {
  133. return nil, err
  134. }
  135. return b[:n], nil
  136. }
  137. }
  138. func (dst *RenewInfo) XXX_Merge(src proto.Message) {
  139. xxx_messageInfo_RenewInfo.Merge(dst, src)
  140. }
  141. func (m *RenewInfo) XXX_Size() int {
  142. return m.Size()
  143. }
  144. func (m *RenewInfo) XXX_DiscardUnknown() {
  145. xxx_messageInfo_RenewInfo.DiscardUnknown(m)
  146. }
  147. var xxx_messageInfo_RenewInfo proto.InternalMessageInfo
  148. func (m *RenewInfo) GetExpires() int64 {
  149. if m != nil {
  150. return m.Expires
  151. }
  152. return 0
  153. }
  154. func init() {
  155. proto.RegisterType((*AccessInfo)(nil), "model.accessInfo")
  156. proto.RegisterType((*RenewInfo)(nil), "model.renewInfo")
  157. }
  158. func (m *AccessInfo) Marshal() (dAtA []byte, err error) {
  159. size := m.Size()
  160. dAtA = make([]byte, size)
  161. n, err := m.MarshalTo(dAtA)
  162. if err != nil {
  163. return nil, err
  164. }
  165. return dAtA[:n], nil
  166. }
  167. func (m *AccessInfo) MarshalTo(dAtA []byte) (int, error) {
  168. var i int
  169. _ = i
  170. var l int
  171. _ = l
  172. if m.Mid != 0 {
  173. dAtA[i] = 0x8
  174. i++
  175. i = encodeVarintToken(dAtA, i, uint64(m.Mid))
  176. }
  177. if m.AppID != 0 {
  178. dAtA[i] = 0x10
  179. i++
  180. i = encodeVarintToken(dAtA, i, uint64(m.AppID))
  181. }
  182. if len(m.Token) > 0 {
  183. dAtA[i] = 0x1a
  184. i++
  185. i = encodeVarintToken(dAtA, i, uint64(len(m.Token)))
  186. i += copy(dAtA[i:], m.Token)
  187. }
  188. if m.CreateAt != 0 {
  189. dAtA[i] = 0x20
  190. i++
  191. i = encodeVarintToken(dAtA, i, uint64(m.CreateAt))
  192. }
  193. if len(m.UserID) > 0 {
  194. dAtA[i] = 0x2a
  195. i++
  196. i = encodeVarintToken(dAtA, i, uint64(len(m.UserID)))
  197. i += copy(dAtA[i:], m.UserID)
  198. }
  199. if len(m.Name) > 0 {
  200. dAtA[i] = 0x32
  201. i++
  202. i = encodeVarintToken(dAtA, i, uint64(len(m.Name)))
  203. i += copy(dAtA[i:], m.Name)
  204. }
  205. if m.Expires != 0 {
  206. dAtA[i] = 0x38
  207. i++
  208. i = encodeVarintToken(dAtA, i, uint64(m.Expires))
  209. }
  210. if len(m.Permission) > 0 {
  211. dAtA[i] = 0x42
  212. i++
  213. i = encodeVarintToken(dAtA, i, uint64(len(m.Permission)))
  214. i += copy(dAtA[i:], m.Permission)
  215. }
  216. if m.XXX_unrecognized != nil {
  217. i += copy(dAtA[i:], m.XXX_unrecognized)
  218. }
  219. return i, nil
  220. }
  221. func (m *RenewInfo) Marshal() (dAtA []byte, err error) {
  222. size := m.Size()
  223. dAtA = make([]byte, size)
  224. n, err := m.MarshalTo(dAtA)
  225. if err != nil {
  226. return nil, err
  227. }
  228. return dAtA[:n], nil
  229. }
  230. func (m *RenewInfo) MarshalTo(dAtA []byte) (int, error) {
  231. var i int
  232. _ = i
  233. var l int
  234. _ = l
  235. if m.Expires != 0 {
  236. dAtA[i] = 0x8
  237. i++
  238. i = encodeVarintToken(dAtA, i, uint64(m.Expires))
  239. }
  240. if m.XXX_unrecognized != nil {
  241. i += copy(dAtA[i:], m.XXX_unrecognized)
  242. }
  243. return i, nil
  244. }
  245. func encodeVarintToken(dAtA []byte, offset int, v uint64) int {
  246. for v >= 1<<7 {
  247. dAtA[offset] = uint8(v&0x7f | 0x80)
  248. v >>= 7
  249. offset++
  250. }
  251. dAtA[offset] = uint8(v)
  252. return offset + 1
  253. }
  254. func (m *AccessInfo) Size() (n int) {
  255. if m == nil {
  256. return 0
  257. }
  258. var l int
  259. _ = l
  260. if m.Mid != 0 {
  261. n += 1 + sovToken(uint64(m.Mid))
  262. }
  263. if m.AppID != 0 {
  264. n += 1 + sovToken(uint64(m.AppID))
  265. }
  266. l = len(m.Token)
  267. if l > 0 {
  268. n += 1 + l + sovToken(uint64(l))
  269. }
  270. if m.CreateAt != 0 {
  271. n += 1 + sovToken(uint64(m.CreateAt))
  272. }
  273. l = len(m.UserID)
  274. if l > 0 {
  275. n += 1 + l + sovToken(uint64(l))
  276. }
  277. l = len(m.Name)
  278. if l > 0 {
  279. n += 1 + l + sovToken(uint64(l))
  280. }
  281. if m.Expires != 0 {
  282. n += 1 + sovToken(uint64(m.Expires))
  283. }
  284. l = len(m.Permission)
  285. if l > 0 {
  286. n += 1 + l + sovToken(uint64(l))
  287. }
  288. if m.XXX_unrecognized != nil {
  289. n += len(m.XXX_unrecognized)
  290. }
  291. return n
  292. }
  293. func (m *RenewInfo) Size() (n int) {
  294. if m == nil {
  295. return 0
  296. }
  297. var l int
  298. _ = l
  299. if m.Expires != 0 {
  300. n += 1 + sovToken(uint64(m.Expires))
  301. }
  302. if m.XXX_unrecognized != nil {
  303. n += len(m.XXX_unrecognized)
  304. }
  305. return n
  306. }
  307. func sovToken(x uint64) (n int) {
  308. for {
  309. n++
  310. x >>= 7
  311. if x == 0 {
  312. break
  313. }
  314. }
  315. return n
  316. }
  317. func sozToken(x uint64) (n int) {
  318. return sovToken(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  319. }
  320. func (m *AccessInfo) Unmarshal(dAtA []byte) error {
  321. l := len(dAtA)
  322. iNdEx := 0
  323. for iNdEx < l {
  324. preIndex := iNdEx
  325. var wire uint64
  326. for shift := uint(0); ; shift += 7 {
  327. if shift >= 64 {
  328. return ErrIntOverflowToken
  329. }
  330. if iNdEx >= l {
  331. return io.ErrUnexpectedEOF
  332. }
  333. b := dAtA[iNdEx]
  334. iNdEx++
  335. wire |= (uint64(b) & 0x7F) << shift
  336. if b < 0x80 {
  337. break
  338. }
  339. }
  340. fieldNum := int32(wire >> 3)
  341. wireType := int(wire & 0x7)
  342. if wireType == 4 {
  343. return fmt.Errorf("proto: accessInfo: wiretype end group for non-group")
  344. }
  345. if fieldNum <= 0 {
  346. return fmt.Errorf("proto: accessInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  347. }
  348. switch fieldNum {
  349. case 1:
  350. if wireType != 0 {
  351. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  352. }
  353. m.Mid = 0
  354. for shift := uint(0); ; shift += 7 {
  355. if shift >= 64 {
  356. return ErrIntOverflowToken
  357. }
  358. if iNdEx >= l {
  359. return io.ErrUnexpectedEOF
  360. }
  361. b := dAtA[iNdEx]
  362. iNdEx++
  363. m.Mid |= (int64(b) & 0x7F) << shift
  364. if b < 0x80 {
  365. break
  366. }
  367. }
  368. case 2:
  369. if wireType != 0 {
  370. return fmt.Errorf("proto: wrong wireType = %d for field AppID", wireType)
  371. }
  372. m.AppID = 0
  373. for shift := uint(0); ; shift += 7 {
  374. if shift >= 64 {
  375. return ErrIntOverflowToken
  376. }
  377. if iNdEx >= l {
  378. return io.ErrUnexpectedEOF
  379. }
  380. b := dAtA[iNdEx]
  381. iNdEx++
  382. m.AppID |= (int64(b) & 0x7F) << shift
  383. if b < 0x80 {
  384. break
  385. }
  386. }
  387. case 3:
  388. if wireType != 2 {
  389. return fmt.Errorf("proto: wrong wireType = %d for field Token", wireType)
  390. }
  391. var stringLen uint64
  392. for shift := uint(0); ; shift += 7 {
  393. if shift >= 64 {
  394. return ErrIntOverflowToken
  395. }
  396. if iNdEx >= l {
  397. return io.ErrUnexpectedEOF
  398. }
  399. b := dAtA[iNdEx]
  400. iNdEx++
  401. stringLen |= (uint64(b) & 0x7F) << shift
  402. if b < 0x80 {
  403. break
  404. }
  405. }
  406. intStringLen := int(stringLen)
  407. if intStringLen < 0 {
  408. return ErrInvalidLengthToken
  409. }
  410. postIndex := iNdEx + intStringLen
  411. if postIndex > l {
  412. return io.ErrUnexpectedEOF
  413. }
  414. m.Token = string(dAtA[iNdEx:postIndex])
  415. iNdEx = postIndex
  416. case 4:
  417. if wireType != 0 {
  418. return fmt.Errorf("proto: wrong wireType = %d for field CreateAt", wireType)
  419. }
  420. m.CreateAt = 0
  421. for shift := uint(0); ; shift += 7 {
  422. if shift >= 64 {
  423. return ErrIntOverflowToken
  424. }
  425. if iNdEx >= l {
  426. return io.ErrUnexpectedEOF
  427. }
  428. b := dAtA[iNdEx]
  429. iNdEx++
  430. m.CreateAt |= (int64(b) & 0x7F) << shift
  431. if b < 0x80 {
  432. break
  433. }
  434. }
  435. case 5:
  436. if wireType != 2 {
  437. return fmt.Errorf("proto: wrong wireType = %d for field UserID", wireType)
  438. }
  439. var stringLen uint64
  440. for shift := uint(0); ; shift += 7 {
  441. if shift >= 64 {
  442. return ErrIntOverflowToken
  443. }
  444. if iNdEx >= l {
  445. return io.ErrUnexpectedEOF
  446. }
  447. b := dAtA[iNdEx]
  448. iNdEx++
  449. stringLen |= (uint64(b) & 0x7F) << shift
  450. if b < 0x80 {
  451. break
  452. }
  453. }
  454. intStringLen := int(stringLen)
  455. if intStringLen < 0 {
  456. return ErrInvalidLengthToken
  457. }
  458. postIndex := iNdEx + intStringLen
  459. if postIndex > l {
  460. return io.ErrUnexpectedEOF
  461. }
  462. m.UserID = string(dAtA[iNdEx:postIndex])
  463. iNdEx = postIndex
  464. case 6:
  465. if wireType != 2 {
  466. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  467. }
  468. var stringLen uint64
  469. for shift := uint(0); ; shift += 7 {
  470. if shift >= 64 {
  471. return ErrIntOverflowToken
  472. }
  473. if iNdEx >= l {
  474. return io.ErrUnexpectedEOF
  475. }
  476. b := dAtA[iNdEx]
  477. iNdEx++
  478. stringLen |= (uint64(b) & 0x7F) << shift
  479. if b < 0x80 {
  480. break
  481. }
  482. }
  483. intStringLen := int(stringLen)
  484. if intStringLen < 0 {
  485. return ErrInvalidLengthToken
  486. }
  487. postIndex := iNdEx + intStringLen
  488. if postIndex > l {
  489. return io.ErrUnexpectedEOF
  490. }
  491. m.Name = string(dAtA[iNdEx:postIndex])
  492. iNdEx = postIndex
  493. case 7:
  494. if wireType != 0 {
  495. return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  496. }
  497. m.Expires = 0
  498. for shift := uint(0); ; shift += 7 {
  499. if shift >= 64 {
  500. return ErrIntOverflowToken
  501. }
  502. if iNdEx >= l {
  503. return io.ErrUnexpectedEOF
  504. }
  505. b := dAtA[iNdEx]
  506. iNdEx++
  507. m.Expires |= (int64(b) & 0x7F) << shift
  508. if b < 0x80 {
  509. break
  510. }
  511. }
  512. case 8:
  513. if wireType != 2 {
  514. return fmt.Errorf("proto: wrong wireType = %d for field Permission", wireType)
  515. }
  516. var stringLen uint64
  517. for shift := uint(0); ; shift += 7 {
  518. if shift >= 64 {
  519. return ErrIntOverflowToken
  520. }
  521. if iNdEx >= l {
  522. return io.ErrUnexpectedEOF
  523. }
  524. b := dAtA[iNdEx]
  525. iNdEx++
  526. stringLen |= (uint64(b) & 0x7F) << shift
  527. if b < 0x80 {
  528. break
  529. }
  530. }
  531. intStringLen := int(stringLen)
  532. if intStringLen < 0 {
  533. return ErrInvalidLengthToken
  534. }
  535. postIndex := iNdEx + intStringLen
  536. if postIndex > l {
  537. return io.ErrUnexpectedEOF
  538. }
  539. m.Permission = string(dAtA[iNdEx:postIndex])
  540. iNdEx = postIndex
  541. default:
  542. iNdEx = preIndex
  543. skippy, err := skipToken(dAtA[iNdEx:])
  544. if err != nil {
  545. return err
  546. }
  547. if skippy < 0 {
  548. return ErrInvalidLengthToken
  549. }
  550. if (iNdEx + skippy) > l {
  551. return io.ErrUnexpectedEOF
  552. }
  553. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  554. iNdEx += skippy
  555. }
  556. }
  557. if iNdEx > l {
  558. return io.ErrUnexpectedEOF
  559. }
  560. return nil
  561. }
  562. func (m *RenewInfo) Unmarshal(dAtA []byte) error {
  563. l := len(dAtA)
  564. iNdEx := 0
  565. for iNdEx < l {
  566. preIndex := iNdEx
  567. var wire uint64
  568. for shift := uint(0); ; shift += 7 {
  569. if shift >= 64 {
  570. return ErrIntOverflowToken
  571. }
  572. if iNdEx >= l {
  573. return io.ErrUnexpectedEOF
  574. }
  575. b := dAtA[iNdEx]
  576. iNdEx++
  577. wire |= (uint64(b) & 0x7F) << shift
  578. if b < 0x80 {
  579. break
  580. }
  581. }
  582. fieldNum := int32(wire >> 3)
  583. wireType := int(wire & 0x7)
  584. if wireType == 4 {
  585. return fmt.Errorf("proto: renewInfo: wiretype end group for non-group")
  586. }
  587. if fieldNum <= 0 {
  588. return fmt.Errorf("proto: renewInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  589. }
  590. switch fieldNum {
  591. case 1:
  592. if wireType != 0 {
  593. return fmt.Errorf("proto: wrong wireType = %d for field Expires", wireType)
  594. }
  595. m.Expires = 0
  596. for shift := uint(0); ; shift += 7 {
  597. if shift >= 64 {
  598. return ErrIntOverflowToken
  599. }
  600. if iNdEx >= l {
  601. return io.ErrUnexpectedEOF
  602. }
  603. b := dAtA[iNdEx]
  604. iNdEx++
  605. m.Expires |= (int64(b) & 0x7F) << shift
  606. if b < 0x80 {
  607. break
  608. }
  609. }
  610. default:
  611. iNdEx = preIndex
  612. skippy, err := skipToken(dAtA[iNdEx:])
  613. if err != nil {
  614. return err
  615. }
  616. if skippy < 0 {
  617. return ErrInvalidLengthToken
  618. }
  619. if (iNdEx + skippy) > l {
  620. return io.ErrUnexpectedEOF
  621. }
  622. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  623. iNdEx += skippy
  624. }
  625. }
  626. if iNdEx > l {
  627. return io.ErrUnexpectedEOF
  628. }
  629. return nil
  630. }
  631. func skipToken(dAtA []byte) (n int, err error) {
  632. l := len(dAtA)
  633. iNdEx := 0
  634. for iNdEx < l {
  635. var wire uint64
  636. for shift := uint(0); ; shift += 7 {
  637. if shift >= 64 {
  638. return 0, ErrIntOverflowToken
  639. }
  640. if iNdEx >= l {
  641. return 0, io.ErrUnexpectedEOF
  642. }
  643. b := dAtA[iNdEx]
  644. iNdEx++
  645. wire |= (uint64(b) & 0x7F) << shift
  646. if b < 0x80 {
  647. break
  648. }
  649. }
  650. wireType := int(wire & 0x7)
  651. switch wireType {
  652. case 0:
  653. for shift := uint(0); ; shift += 7 {
  654. if shift >= 64 {
  655. return 0, ErrIntOverflowToken
  656. }
  657. if iNdEx >= l {
  658. return 0, io.ErrUnexpectedEOF
  659. }
  660. iNdEx++
  661. if dAtA[iNdEx-1] < 0x80 {
  662. break
  663. }
  664. }
  665. return iNdEx, nil
  666. case 1:
  667. iNdEx += 8
  668. return iNdEx, nil
  669. case 2:
  670. var length int
  671. for shift := uint(0); ; shift += 7 {
  672. if shift >= 64 {
  673. return 0, ErrIntOverflowToken
  674. }
  675. if iNdEx >= l {
  676. return 0, io.ErrUnexpectedEOF
  677. }
  678. b := dAtA[iNdEx]
  679. iNdEx++
  680. length |= (int(b) & 0x7F) << shift
  681. if b < 0x80 {
  682. break
  683. }
  684. }
  685. iNdEx += length
  686. if length < 0 {
  687. return 0, ErrInvalidLengthToken
  688. }
  689. return iNdEx, nil
  690. case 3:
  691. for {
  692. var innerWire uint64
  693. var start int = iNdEx
  694. for shift := uint(0); ; shift += 7 {
  695. if shift >= 64 {
  696. return 0, ErrIntOverflowToken
  697. }
  698. if iNdEx >= l {
  699. return 0, io.ErrUnexpectedEOF
  700. }
  701. b := dAtA[iNdEx]
  702. iNdEx++
  703. innerWire |= (uint64(b) & 0x7F) << shift
  704. if b < 0x80 {
  705. break
  706. }
  707. }
  708. innerWireType := int(innerWire & 0x7)
  709. if innerWireType == 4 {
  710. break
  711. }
  712. next, err := skipToken(dAtA[start:])
  713. if err != nil {
  714. return 0, err
  715. }
  716. iNdEx = start + next
  717. }
  718. return iNdEx, nil
  719. case 4:
  720. return iNdEx, nil
  721. case 5:
  722. iNdEx += 4
  723. return iNdEx, nil
  724. default:
  725. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  726. }
  727. }
  728. panic("unreachable")
  729. }
  730. var (
  731. ErrInvalidLengthToken = fmt.Errorf("proto: negative length found during unmarshaling")
  732. ErrIntOverflowToken = fmt.Errorf("proto: integer overflow")
  733. )
  734. func init() {
  735. proto.RegisterFile("app/service/main/identify-game/model/token.proto", fileDescriptor_token_a3d7e52fbb774120)
  736. }
  737. var fileDescriptor_token_a3d7e52fbb774120 = []byte{
  738. // 348 bytes of a gzipped FileDescriptorProto
  739. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x4f, 0x4e, 0xeb, 0x30,
  740. 0x10, 0x87, 0x95, 0xa6, 0x49, 0x1a, 0xbf, 0x3f, 0x0b, 0xaf, 0xfc, 0x9e, 0x44, 0x53, 0x55, 0x20,
  741. 0x95, 0x45, 0x1b, 0x04, 0x27, 0x68, 0x29, 0x8b, 0x2e, 0x40, 0xc8, 0x82, 0x75, 0xe5, 0x26, 0xd3,
  742. 0x60, 0x15, 0xc7, 0x96, 0x9d, 0x00, 0x3d, 0x17, 0x97, 0x60, 0xc9, 0x09, 0x22, 0xd4, 0x65, 0x4e,
  743. 0x81, 0xea, 0x94, 0xd2, 0x0d, 0x3b, 0xcf, 0xf7, 0x8d, 0x67, 0x7e, 0x1a, 0x74, 0xc6, 0x94, 0x8a,
  744. 0x0d, 0xe8, 0x27, 0x9e, 0x40, 0x2c, 0x18, 0xcf, 0x63, 0x9e, 0x42, 0x5e, 0xf0, 0xe5, 0x7a, 0x98,
  745. 0x31, 0x01, 0xb1, 0x90, 0x29, 0x3c, 0xc6, 0x85, 0x5c, 0x41, 0x3e, 0x52, 0x5a, 0x16, 0x12, 0x7b,
  746. 0x16, 0xfd, 0x1f, 0x66, 0xbc, 0x78, 0x28, 0x17, 0xa3, 0x44, 0x8a, 0x38, 0x93, 0x99, 0x8c, 0xad,
  747. 0x5d, 0x94, 0x4b, 0x5b, 0xd9, 0xc2, 0xbe, 0x9a, 0x5f, 0xfd, 0xd7, 0x16, 0x42, 0x2c, 0x49, 0xc0,
  748. 0x98, 0x59, 0xbe, 0x94, 0xf8, 0x1f, 0x72, 0xaf, 0x79, 0x4a, 0x9c, 0x9e, 0x33, 0x70, 0x27, 0x41,
  749. 0x5d, 0x45, 0xae, 0xe0, 0x29, 0xdd, 0x32, 0x1c, 0x21, 0x6f, 0xac, 0xd4, 0x6c, 0x4a, 0x5a, 0x56,
  750. 0x86, 0x75, 0x15, 0x79, 0x4c, 0x29, 0x9e, 0xd2, 0x86, 0xe3, 0x63, 0xe4, 0xdd, 0x6d, 0xf3, 0x10,
  751. 0xb7, 0xe7, 0x0c, 0xc2, 0xc9, 0xdf, 0xba, 0x8a, 0x76, 0xa3, 0xe7, 0x2b, 0x58, 0xd3, 0x46, 0xe2,
  752. 0x53, 0xd4, 0xb9, 0xd4, 0xc0, 0x0a, 0x18, 0x17, 0xa4, 0x6d, 0x27, 0xfd, 0xa9, 0xab, 0x28, 0x4c,
  753. 0x2c, 0x9b, 0xb3, 0x82, 0xee, 0x35, 0xee, 0x23, 0xff, 0xde, 0x80, 0x9e, 0x4d, 0x89, 0x67, 0x27,
  754. 0xa2, 0xba, 0x8a, 0xfc, 0xd2, 0x80, 0xe6, 0x29, 0xdd, 0x19, 0x7c, 0x84, 0xda, 0x37, 0x4c, 0x00,
  755. 0xf1, 0x6d, 0x87, 0x0d, 0x55, 0xe6, 0x4c, 0x00, 0xb5, 0x18, 0x9f, 0xa0, 0xe0, 0xea, 0x45, 0x71,
  756. 0x0d, 0x86, 0x04, 0x76, 0xd9, 0xaf, 0xba, 0x8a, 0x02, 0x68, 0x10, 0xfd, 0x72, 0x78, 0x84, 0xd0,
  757. 0x2d, 0x68, 0xc1, 0x8d, 0xe1, 0x32, 0x27, 0x9d, 0xef, 0xfc, 0x6a, 0x4f, 0xe9, 0x41, 0x47, 0xff,
  758. 0x1c, 0x85, 0x1a, 0x72, 0x78, 0xb6, 0x37, 0x3b, 0xd8, 0xe1, 0xfc, 0xbc, 0x63, 0xf2, 0xfb, 0x6d,
  759. 0xd3, 0x75, 0xde, 0x37, 0x5d, 0xe7, 0x63, 0xd3, 0x75, 0x16, 0xbe, 0x3d, 0xff, 0xc5, 0x67, 0x00,
  760. 0x00, 0x00, 0xff, 0xff, 0xe3, 0x2b, 0xe9, 0x37, 0xe8, 0x01, 0x00, 0x00,
  761. }