user.pb.go 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: user.proto
  3. package http
  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 encoding_binary "encoding/binary"
  9. import io "io"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  19. // GetInfoReq get user info req, uid and platform get from header.metadata
  20. type GetInfoReq struct {
  21. // platform in url
  22. Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty" form:"platform"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *GetInfoReq) Reset() { *m = GetInfoReq{} }
  28. func (m *GetInfoReq) String() string { return proto.CompactTextString(m) }
  29. func (*GetInfoReq) ProtoMessage() {}
  30. func (*GetInfoReq) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_user_7ff157935b3a3e82, []int{0}
  32. }
  33. func (m *GetInfoReq) XXX_Unmarshal(b []byte) error {
  34. return m.Unmarshal(b)
  35. }
  36. func (m *GetInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. if deterministic {
  38. return xxx_messageInfo_GetInfoReq.Marshal(b, m, deterministic)
  39. } else {
  40. b = b[:cap(b)]
  41. n, err := m.MarshalTo(b)
  42. if err != nil {
  43. return nil, err
  44. }
  45. return b[:n], nil
  46. }
  47. }
  48. func (dst *GetInfoReq) XXX_Merge(src proto.Message) {
  49. xxx_messageInfo_GetInfoReq.Merge(dst, src)
  50. }
  51. func (m *GetInfoReq) XXX_Size() int {
  52. return m.Size()
  53. }
  54. func (m *GetInfoReq) XXX_DiscardUnknown() {
  55. xxx_messageInfo_GetInfoReq.DiscardUnknown(m)
  56. }
  57. var xxx_messageInfo_GetInfoReq proto.InternalMessageInfo
  58. func (m *GetInfoReq) GetPlatform() string {
  59. if m != nil {
  60. return m.Platform
  61. }
  62. return ""
  63. }
  64. // GetInfoResp
  65. type GetInfoResp struct {
  66. // 用户uid
  67. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  68. // 用户名
  69. Uname string `protobuf:"bytes,2,opt,name=uname,proto3" json:"uname"`
  70. // 头像
  71. Face string `protobuf:"bytes,3,opt,name=face,proto3" json:"face"`
  72. // 主站硬币
  73. Coin float64 `protobuf:"fixed64,4,opt,name=coin,proto3" json:"billCoin"`
  74. // 用户银瓜子
  75. Silver int64 `protobuf:"varint,5,opt,name=silver,proto3" json:"silver"`
  76. // 用户金瓜子
  77. Gold int64 `protobuf:"varint,6,opt,name=gold,proto3" json:"gold"`
  78. // 用户成就点
  79. Achieve int64 `protobuf:"varint,7,opt,name=achieve,proto3" json:"achieve"`
  80. // 月费姥爷
  81. Vip int `protobuf:"varint,8,opt,name=vip,proto3,casttype=int" json:"vip"`
  82. // 年费姥爷
  83. Svip int `protobuf:"varint,9,opt,name=svip,proto3,casttype=int" json:"svip"`
  84. // 用户等级
  85. UserLevel int64 `protobuf:"varint,10,opt,name=user_level,json=userLevel,proto3" json:"user_level"`
  86. // 用户下一等级
  87. UserNextLevel int64 `protobuf:"varint,11,opt,name=user_next_level,json=userNextLevel,proto3" json:"user_next_level"`
  88. // 用户在当前等级已经获得的经验
  89. UserIntimacy int64 `protobuf:"varint,12,opt,name=user_intimacy,json=userIntimacy,proto3" json:"user_intimacy"`
  90. // 用户从当前等级升级到下一级所需总经验
  91. UserNextIntimacy int64 `protobuf:"varint,13,opt,name=user_next_intimacy,json=userNextIntimacy,proto3" json:"user_next_intimacy"`
  92. // 新增字段,判断用户是否达到满级 0:没有1:满级
  93. IsLevelTop int64 `protobuf:"varint,14,opt,name=is_level_top,json=isLevelTop,proto3" json:"is_level_top"`
  94. // 用户等级排名
  95. UserLevelRank string `protobuf:"bytes,15,opt,name=user_level_rank,json=userLevelRank,proto3" json:"user_level_rank"`
  96. // 年返逻辑,已失效
  97. UserCharged int `protobuf:"varint,16,opt,name=user_charged,json=userCharged,proto3,casttype=int" json:"user_charged"`
  98. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  99. XXX_unrecognized []byte `json:"-"`
  100. XXX_sizecache int32 `json:"-"`
  101. }
  102. func (m *GetInfoResp) Reset() { *m = GetInfoResp{} }
  103. func (m *GetInfoResp) String() string { return proto.CompactTextString(m) }
  104. func (*GetInfoResp) ProtoMessage() {}
  105. func (*GetInfoResp) Descriptor() ([]byte, []int) {
  106. return fileDescriptor_user_7ff157935b3a3e82, []int{1}
  107. }
  108. func (m *GetInfoResp) XXX_Unmarshal(b []byte) error {
  109. return m.Unmarshal(b)
  110. }
  111. func (m *GetInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  112. if deterministic {
  113. return xxx_messageInfo_GetInfoResp.Marshal(b, m, deterministic)
  114. } else {
  115. b = b[:cap(b)]
  116. n, err := m.MarshalTo(b)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return b[:n], nil
  121. }
  122. }
  123. func (dst *GetInfoResp) XXX_Merge(src proto.Message) {
  124. xxx_messageInfo_GetInfoResp.Merge(dst, src)
  125. }
  126. func (m *GetInfoResp) XXX_Size() int {
  127. return m.Size()
  128. }
  129. func (m *GetInfoResp) XXX_DiscardUnknown() {
  130. xxx_messageInfo_GetInfoResp.DiscardUnknown(m)
  131. }
  132. var xxx_messageInfo_GetInfoResp proto.InternalMessageInfo
  133. func (m *GetInfoResp) GetUid() int64 {
  134. if m != nil {
  135. return m.Uid
  136. }
  137. return 0
  138. }
  139. func (m *GetInfoResp) GetUname() string {
  140. if m != nil {
  141. return m.Uname
  142. }
  143. return ""
  144. }
  145. func (m *GetInfoResp) GetFace() string {
  146. if m != nil {
  147. return m.Face
  148. }
  149. return ""
  150. }
  151. func (m *GetInfoResp) GetCoin() float64 {
  152. if m != nil {
  153. return m.Coin
  154. }
  155. return 0
  156. }
  157. func (m *GetInfoResp) GetSilver() int64 {
  158. if m != nil {
  159. return m.Silver
  160. }
  161. return 0
  162. }
  163. func (m *GetInfoResp) GetGold() int64 {
  164. if m != nil {
  165. return m.Gold
  166. }
  167. return 0
  168. }
  169. func (m *GetInfoResp) GetAchieve() int64 {
  170. if m != nil {
  171. return m.Achieve
  172. }
  173. return 0
  174. }
  175. func (m *GetInfoResp) GetVip() int {
  176. if m != nil {
  177. return m.Vip
  178. }
  179. return 0
  180. }
  181. func (m *GetInfoResp) GetSvip() int {
  182. if m != nil {
  183. return m.Svip
  184. }
  185. return 0
  186. }
  187. func (m *GetInfoResp) GetUserLevel() int64 {
  188. if m != nil {
  189. return m.UserLevel
  190. }
  191. return 0
  192. }
  193. func (m *GetInfoResp) GetUserNextLevel() int64 {
  194. if m != nil {
  195. return m.UserNextLevel
  196. }
  197. return 0
  198. }
  199. func (m *GetInfoResp) GetUserIntimacy() int64 {
  200. if m != nil {
  201. return m.UserIntimacy
  202. }
  203. return 0
  204. }
  205. func (m *GetInfoResp) GetUserNextIntimacy() int64 {
  206. if m != nil {
  207. return m.UserNextIntimacy
  208. }
  209. return 0
  210. }
  211. func (m *GetInfoResp) GetIsLevelTop() int64 {
  212. if m != nil {
  213. return m.IsLevelTop
  214. }
  215. return 0
  216. }
  217. func (m *GetInfoResp) GetUserLevelRank() string {
  218. if m != nil {
  219. return m.UserLevelRank
  220. }
  221. return ""
  222. }
  223. func (m *GetInfoResp) GetUserCharged() int {
  224. if m != nil {
  225. return m.UserCharged
  226. }
  227. return 0
  228. }
  229. func init() {
  230. proto.RegisterType((*GetInfoReq)(nil), "live.webucenter.GetInfoReq")
  231. proto.RegisterType((*GetInfoResp)(nil), "live.webucenter.GetInfoResp")
  232. }
  233. func (m *GetInfoReq) Marshal() (dAtA []byte, err error) {
  234. size := m.Size()
  235. dAtA = make([]byte, size)
  236. n, err := m.MarshalTo(dAtA)
  237. if err != nil {
  238. return nil, err
  239. }
  240. return dAtA[:n], nil
  241. }
  242. func (m *GetInfoReq) MarshalTo(dAtA []byte) (int, error) {
  243. var i int
  244. _ = i
  245. var l int
  246. _ = l
  247. if len(m.Platform) > 0 {
  248. dAtA[i] = 0xa
  249. i++
  250. i = encodeVarintUser(dAtA, i, uint64(len(m.Platform)))
  251. i += copy(dAtA[i:], m.Platform)
  252. }
  253. if m.XXX_unrecognized != nil {
  254. i += copy(dAtA[i:], m.XXX_unrecognized)
  255. }
  256. return i, nil
  257. }
  258. func (m *GetInfoResp) Marshal() (dAtA []byte, err error) {
  259. size := m.Size()
  260. dAtA = make([]byte, size)
  261. n, err := m.MarshalTo(dAtA)
  262. if err != nil {
  263. return nil, err
  264. }
  265. return dAtA[:n], nil
  266. }
  267. func (m *GetInfoResp) MarshalTo(dAtA []byte) (int, error) {
  268. var i int
  269. _ = i
  270. var l int
  271. _ = l
  272. if m.Uid != 0 {
  273. dAtA[i] = 0x8
  274. i++
  275. i = encodeVarintUser(dAtA, i, uint64(m.Uid))
  276. }
  277. if len(m.Uname) > 0 {
  278. dAtA[i] = 0x12
  279. i++
  280. i = encodeVarintUser(dAtA, i, uint64(len(m.Uname)))
  281. i += copy(dAtA[i:], m.Uname)
  282. }
  283. if len(m.Face) > 0 {
  284. dAtA[i] = 0x1a
  285. i++
  286. i = encodeVarintUser(dAtA, i, uint64(len(m.Face)))
  287. i += copy(dAtA[i:], m.Face)
  288. }
  289. if m.Coin != 0 {
  290. dAtA[i] = 0x21
  291. i++
  292. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Coin))))
  293. i += 8
  294. }
  295. if m.Silver != 0 {
  296. dAtA[i] = 0x28
  297. i++
  298. i = encodeVarintUser(dAtA, i, uint64(m.Silver))
  299. }
  300. if m.Gold != 0 {
  301. dAtA[i] = 0x30
  302. i++
  303. i = encodeVarintUser(dAtA, i, uint64(m.Gold))
  304. }
  305. if m.Achieve != 0 {
  306. dAtA[i] = 0x38
  307. i++
  308. i = encodeVarintUser(dAtA, i, uint64(m.Achieve))
  309. }
  310. if m.Vip != 0 {
  311. dAtA[i] = 0x40
  312. i++
  313. i = encodeVarintUser(dAtA, i, uint64(m.Vip))
  314. }
  315. if m.Svip != 0 {
  316. dAtA[i] = 0x48
  317. i++
  318. i = encodeVarintUser(dAtA, i, uint64(m.Svip))
  319. }
  320. if m.UserLevel != 0 {
  321. dAtA[i] = 0x50
  322. i++
  323. i = encodeVarintUser(dAtA, i, uint64(m.UserLevel))
  324. }
  325. if m.UserNextLevel != 0 {
  326. dAtA[i] = 0x58
  327. i++
  328. i = encodeVarintUser(dAtA, i, uint64(m.UserNextLevel))
  329. }
  330. if m.UserIntimacy != 0 {
  331. dAtA[i] = 0x60
  332. i++
  333. i = encodeVarintUser(dAtA, i, uint64(m.UserIntimacy))
  334. }
  335. if m.UserNextIntimacy != 0 {
  336. dAtA[i] = 0x68
  337. i++
  338. i = encodeVarintUser(dAtA, i, uint64(m.UserNextIntimacy))
  339. }
  340. if m.IsLevelTop != 0 {
  341. dAtA[i] = 0x70
  342. i++
  343. i = encodeVarintUser(dAtA, i, uint64(m.IsLevelTop))
  344. }
  345. if len(m.UserLevelRank) > 0 {
  346. dAtA[i] = 0x7a
  347. i++
  348. i = encodeVarintUser(dAtA, i, uint64(len(m.UserLevelRank)))
  349. i += copy(dAtA[i:], m.UserLevelRank)
  350. }
  351. if m.UserCharged != 0 {
  352. dAtA[i] = 0x80
  353. i++
  354. dAtA[i] = 0x1
  355. i++
  356. i = encodeVarintUser(dAtA, i, uint64(m.UserCharged))
  357. }
  358. if m.XXX_unrecognized != nil {
  359. i += copy(dAtA[i:], m.XXX_unrecognized)
  360. }
  361. return i, nil
  362. }
  363. func encodeVarintUser(dAtA []byte, offset int, v uint64) int {
  364. for v >= 1<<7 {
  365. dAtA[offset] = uint8(v&0x7f | 0x80)
  366. v >>= 7
  367. offset++
  368. }
  369. dAtA[offset] = uint8(v)
  370. return offset + 1
  371. }
  372. func (m *GetInfoReq) Size() (n int) {
  373. if m == nil {
  374. return 0
  375. }
  376. var l int
  377. _ = l
  378. l = len(m.Platform)
  379. if l > 0 {
  380. n += 1 + l + sovUser(uint64(l))
  381. }
  382. if m.XXX_unrecognized != nil {
  383. n += len(m.XXX_unrecognized)
  384. }
  385. return n
  386. }
  387. func (m *GetInfoResp) Size() (n int) {
  388. if m == nil {
  389. return 0
  390. }
  391. var l int
  392. _ = l
  393. if m.Uid != 0 {
  394. n += 1 + sovUser(uint64(m.Uid))
  395. }
  396. l = len(m.Uname)
  397. if l > 0 {
  398. n += 1 + l + sovUser(uint64(l))
  399. }
  400. l = len(m.Face)
  401. if l > 0 {
  402. n += 1 + l + sovUser(uint64(l))
  403. }
  404. if m.Coin != 0 {
  405. n += 9
  406. }
  407. if m.Silver != 0 {
  408. n += 1 + sovUser(uint64(m.Silver))
  409. }
  410. if m.Gold != 0 {
  411. n += 1 + sovUser(uint64(m.Gold))
  412. }
  413. if m.Achieve != 0 {
  414. n += 1 + sovUser(uint64(m.Achieve))
  415. }
  416. if m.Vip != 0 {
  417. n += 1 + sovUser(uint64(m.Vip))
  418. }
  419. if m.Svip != 0 {
  420. n += 1 + sovUser(uint64(m.Svip))
  421. }
  422. if m.UserLevel != 0 {
  423. n += 1 + sovUser(uint64(m.UserLevel))
  424. }
  425. if m.UserNextLevel != 0 {
  426. n += 1 + sovUser(uint64(m.UserNextLevel))
  427. }
  428. if m.UserIntimacy != 0 {
  429. n += 1 + sovUser(uint64(m.UserIntimacy))
  430. }
  431. if m.UserNextIntimacy != 0 {
  432. n += 1 + sovUser(uint64(m.UserNextIntimacy))
  433. }
  434. if m.IsLevelTop != 0 {
  435. n += 1 + sovUser(uint64(m.IsLevelTop))
  436. }
  437. l = len(m.UserLevelRank)
  438. if l > 0 {
  439. n += 1 + l + sovUser(uint64(l))
  440. }
  441. if m.UserCharged != 0 {
  442. n += 2 + sovUser(uint64(m.UserCharged))
  443. }
  444. if m.XXX_unrecognized != nil {
  445. n += len(m.XXX_unrecognized)
  446. }
  447. return n
  448. }
  449. func sovUser(x uint64) (n int) {
  450. for {
  451. n++
  452. x >>= 7
  453. if x == 0 {
  454. break
  455. }
  456. }
  457. return n
  458. }
  459. func sozUser(x uint64) (n int) {
  460. return sovUser(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  461. }
  462. func (m *GetInfoReq) Unmarshal(dAtA []byte) error {
  463. l := len(dAtA)
  464. iNdEx := 0
  465. for iNdEx < l {
  466. preIndex := iNdEx
  467. var wire uint64
  468. for shift := uint(0); ; shift += 7 {
  469. if shift >= 64 {
  470. return ErrIntOverflowUser
  471. }
  472. if iNdEx >= l {
  473. return io.ErrUnexpectedEOF
  474. }
  475. b := dAtA[iNdEx]
  476. iNdEx++
  477. wire |= (uint64(b) & 0x7F) << shift
  478. if b < 0x80 {
  479. break
  480. }
  481. }
  482. fieldNum := int32(wire >> 3)
  483. wireType := int(wire & 0x7)
  484. if wireType == 4 {
  485. return fmt.Errorf("proto: GetInfoReq: wiretype end group for non-group")
  486. }
  487. if fieldNum <= 0 {
  488. return fmt.Errorf("proto: GetInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  489. }
  490. switch fieldNum {
  491. case 1:
  492. if wireType != 2 {
  493. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  494. }
  495. var stringLen uint64
  496. for shift := uint(0); ; shift += 7 {
  497. if shift >= 64 {
  498. return ErrIntOverflowUser
  499. }
  500. if iNdEx >= l {
  501. return io.ErrUnexpectedEOF
  502. }
  503. b := dAtA[iNdEx]
  504. iNdEx++
  505. stringLen |= (uint64(b) & 0x7F) << shift
  506. if b < 0x80 {
  507. break
  508. }
  509. }
  510. intStringLen := int(stringLen)
  511. if intStringLen < 0 {
  512. return ErrInvalidLengthUser
  513. }
  514. postIndex := iNdEx + intStringLen
  515. if postIndex > l {
  516. return io.ErrUnexpectedEOF
  517. }
  518. m.Platform = string(dAtA[iNdEx:postIndex])
  519. iNdEx = postIndex
  520. default:
  521. iNdEx = preIndex
  522. skippy, err := skipUser(dAtA[iNdEx:])
  523. if err != nil {
  524. return err
  525. }
  526. if skippy < 0 {
  527. return ErrInvalidLengthUser
  528. }
  529. if (iNdEx + skippy) > l {
  530. return io.ErrUnexpectedEOF
  531. }
  532. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  533. iNdEx += skippy
  534. }
  535. }
  536. if iNdEx > l {
  537. return io.ErrUnexpectedEOF
  538. }
  539. return nil
  540. }
  541. func (m *GetInfoResp) Unmarshal(dAtA []byte) error {
  542. l := len(dAtA)
  543. iNdEx := 0
  544. for iNdEx < l {
  545. preIndex := iNdEx
  546. var wire uint64
  547. for shift := uint(0); ; shift += 7 {
  548. if shift >= 64 {
  549. return ErrIntOverflowUser
  550. }
  551. if iNdEx >= l {
  552. return io.ErrUnexpectedEOF
  553. }
  554. b := dAtA[iNdEx]
  555. iNdEx++
  556. wire |= (uint64(b) & 0x7F) << shift
  557. if b < 0x80 {
  558. break
  559. }
  560. }
  561. fieldNum := int32(wire >> 3)
  562. wireType := int(wire & 0x7)
  563. if wireType == 4 {
  564. return fmt.Errorf("proto: GetInfoResp: wiretype end group for non-group")
  565. }
  566. if fieldNum <= 0 {
  567. return fmt.Errorf("proto: GetInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
  568. }
  569. switch fieldNum {
  570. case 1:
  571. if wireType != 0 {
  572. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  573. }
  574. m.Uid = 0
  575. for shift := uint(0); ; shift += 7 {
  576. if shift >= 64 {
  577. return ErrIntOverflowUser
  578. }
  579. if iNdEx >= l {
  580. return io.ErrUnexpectedEOF
  581. }
  582. b := dAtA[iNdEx]
  583. iNdEx++
  584. m.Uid |= (int64(b) & 0x7F) << shift
  585. if b < 0x80 {
  586. break
  587. }
  588. }
  589. case 2:
  590. if wireType != 2 {
  591. return fmt.Errorf("proto: wrong wireType = %d for field Uname", wireType)
  592. }
  593. var stringLen uint64
  594. for shift := uint(0); ; shift += 7 {
  595. if shift >= 64 {
  596. return ErrIntOverflowUser
  597. }
  598. if iNdEx >= l {
  599. return io.ErrUnexpectedEOF
  600. }
  601. b := dAtA[iNdEx]
  602. iNdEx++
  603. stringLen |= (uint64(b) & 0x7F) << shift
  604. if b < 0x80 {
  605. break
  606. }
  607. }
  608. intStringLen := int(stringLen)
  609. if intStringLen < 0 {
  610. return ErrInvalidLengthUser
  611. }
  612. postIndex := iNdEx + intStringLen
  613. if postIndex > l {
  614. return io.ErrUnexpectedEOF
  615. }
  616. m.Uname = string(dAtA[iNdEx:postIndex])
  617. iNdEx = postIndex
  618. case 3:
  619. if wireType != 2 {
  620. return fmt.Errorf("proto: wrong wireType = %d for field Face", wireType)
  621. }
  622. var stringLen uint64
  623. for shift := uint(0); ; shift += 7 {
  624. if shift >= 64 {
  625. return ErrIntOverflowUser
  626. }
  627. if iNdEx >= l {
  628. return io.ErrUnexpectedEOF
  629. }
  630. b := dAtA[iNdEx]
  631. iNdEx++
  632. stringLen |= (uint64(b) & 0x7F) << shift
  633. if b < 0x80 {
  634. break
  635. }
  636. }
  637. intStringLen := int(stringLen)
  638. if intStringLen < 0 {
  639. return ErrInvalidLengthUser
  640. }
  641. postIndex := iNdEx + intStringLen
  642. if postIndex > l {
  643. return io.ErrUnexpectedEOF
  644. }
  645. m.Face = string(dAtA[iNdEx:postIndex])
  646. iNdEx = postIndex
  647. case 4:
  648. if wireType != 1 {
  649. return fmt.Errorf("proto: wrong wireType = %d for field Coin", wireType)
  650. }
  651. var v uint64
  652. if (iNdEx + 8) > l {
  653. return io.ErrUnexpectedEOF
  654. }
  655. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  656. iNdEx += 8
  657. m.Coin = float64(math.Float64frombits(v))
  658. case 5:
  659. if wireType != 0 {
  660. return fmt.Errorf("proto: wrong wireType = %d for field Silver", wireType)
  661. }
  662. m.Silver = 0
  663. for shift := uint(0); ; shift += 7 {
  664. if shift >= 64 {
  665. return ErrIntOverflowUser
  666. }
  667. if iNdEx >= l {
  668. return io.ErrUnexpectedEOF
  669. }
  670. b := dAtA[iNdEx]
  671. iNdEx++
  672. m.Silver |= (int64(b) & 0x7F) << shift
  673. if b < 0x80 {
  674. break
  675. }
  676. }
  677. case 6:
  678. if wireType != 0 {
  679. return fmt.Errorf("proto: wrong wireType = %d for field Gold", wireType)
  680. }
  681. m.Gold = 0
  682. for shift := uint(0); ; shift += 7 {
  683. if shift >= 64 {
  684. return ErrIntOverflowUser
  685. }
  686. if iNdEx >= l {
  687. return io.ErrUnexpectedEOF
  688. }
  689. b := dAtA[iNdEx]
  690. iNdEx++
  691. m.Gold |= (int64(b) & 0x7F) << shift
  692. if b < 0x80 {
  693. break
  694. }
  695. }
  696. case 7:
  697. if wireType != 0 {
  698. return fmt.Errorf("proto: wrong wireType = %d for field Achieve", wireType)
  699. }
  700. m.Achieve = 0
  701. for shift := uint(0); ; shift += 7 {
  702. if shift >= 64 {
  703. return ErrIntOverflowUser
  704. }
  705. if iNdEx >= l {
  706. return io.ErrUnexpectedEOF
  707. }
  708. b := dAtA[iNdEx]
  709. iNdEx++
  710. m.Achieve |= (int64(b) & 0x7F) << shift
  711. if b < 0x80 {
  712. break
  713. }
  714. }
  715. case 8:
  716. if wireType != 0 {
  717. return fmt.Errorf("proto: wrong wireType = %d for field Vip", wireType)
  718. }
  719. m.Vip = 0
  720. for shift := uint(0); ; shift += 7 {
  721. if shift >= 64 {
  722. return ErrIntOverflowUser
  723. }
  724. if iNdEx >= l {
  725. return io.ErrUnexpectedEOF
  726. }
  727. b := dAtA[iNdEx]
  728. iNdEx++
  729. m.Vip |= (int(b) & 0x7F) << shift
  730. if b < 0x80 {
  731. break
  732. }
  733. }
  734. case 9:
  735. if wireType != 0 {
  736. return fmt.Errorf("proto: wrong wireType = %d for field Svip", wireType)
  737. }
  738. m.Svip = 0
  739. for shift := uint(0); ; shift += 7 {
  740. if shift >= 64 {
  741. return ErrIntOverflowUser
  742. }
  743. if iNdEx >= l {
  744. return io.ErrUnexpectedEOF
  745. }
  746. b := dAtA[iNdEx]
  747. iNdEx++
  748. m.Svip |= (int(b) & 0x7F) << shift
  749. if b < 0x80 {
  750. break
  751. }
  752. }
  753. case 10:
  754. if wireType != 0 {
  755. return fmt.Errorf("proto: wrong wireType = %d for field UserLevel", wireType)
  756. }
  757. m.UserLevel = 0
  758. for shift := uint(0); ; shift += 7 {
  759. if shift >= 64 {
  760. return ErrIntOverflowUser
  761. }
  762. if iNdEx >= l {
  763. return io.ErrUnexpectedEOF
  764. }
  765. b := dAtA[iNdEx]
  766. iNdEx++
  767. m.UserLevel |= (int64(b) & 0x7F) << shift
  768. if b < 0x80 {
  769. break
  770. }
  771. }
  772. case 11:
  773. if wireType != 0 {
  774. return fmt.Errorf("proto: wrong wireType = %d for field UserNextLevel", wireType)
  775. }
  776. m.UserNextLevel = 0
  777. for shift := uint(0); ; shift += 7 {
  778. if shift >= 64 {
  779. return ErrIntOverflowUser
  780. }
  781. if iNdEx >= l {
  782. return io.ErrUnexpectedEOF
  783. }
  784. b := dAtA[iNdEx]
  785. iNdEx++
  786. m.UserNextLevel |= (int64(b) & 0x7F) << shift
  787. if b < 0x80 {
  788. break
  789. }
  790. }
  791. case 12:
  792. if wireType != 0 {
  793. return fmt.Errorf("proto: wrong wireType = %d for field UserIntimacy", wireType)
  794. }
  795. m.UserIntimacy = 0
  796. for shift := uint(0); ; shift += 7 {
  797. if shift >= 64 {
  798. return ErrIntOverflowUser
  799. }
  800. if iNdEx >= l {
  801. return io.ErrUnexpectedEOF
  802. }
  803. b := dAtA[iNdEx]
  804. iNdEx++
  805. m.UserIntimacy |= (int64(b) & 0x7F) << shift
  806. if b < 0x80 {
  807. break
  808. }
  809. }
  810. case 13:
  811. if wireType != 0 {
  812. return fmt.Errorf("proto: wrong wireType = %d for field UserNextIntimacy", wireType)
  813. }
  814. m.UserNextIntimacy = 0
  815. for shift := uint(0); ; shift += 7 {
  816. if shift >= 64 {
  817. return ErrIntOverflowUser
  818. }
  819. if iNdEx >= l {
  820. return io.ErrUnexpectedEOF
  821. }
  822. b := dAtA[iNdEx]
  823. iNdEx++
  824. m.UserNextIntimacy |= (int64(b) & 0x7F) << shift
  825. if b < 0x80 {
  826. break
  827. }
  828. }
  829. case 14:
  830. if wireType != 0 {
  831. return fmt.Errorf("proto: wrong wireType = %d for field IsLevelTop", wireType)
  832. }
  833. m.IsLevelTop = 0
  834. for shift := uint(0); ; shift += 7 {
  835. if shift >= 64 {
  836. return ErrIntOverflowUser
  837. }
  838. if iNdEx >= l {
  839. return io.ErrUnexpectedEOF
  840. }
  841. b := dAtA[iNdEx]
  842. iNdEx++
  843. m.IsLevelTop |= (int64(b) & 0x7F) << shift
  844. if b < 0x80 {
  845. break
  846. }
  847. }
  848. case 15:
  849. if wireType != 2 {
  850. return fmt.Errorf("proto: wrong wireType = %d for field UserLevelRank", wireType)
  851. }
  852. var stringLen uint64
  853. for shift := uint(0); ; shift += 7 {
  854. if shift >= 64 {
  855. return ErrIntOverflowUser
  856. }
  857. if iNdEx >= l {
  858. return io.ErrUnexpectedEOF
  859. }
  860. b := dAtA[iNdEx]
  861. iNdEx++
  862. stringLen |= (uint64(b) & 0x7F) << shift
  863. if b < 0x80 {
  864. break
  865. }
  866. }
  867. intStringLen := int(stringLen)
  868. if intStringLen < 0 {
  869. return ErrInvalidLengthUser
  870. }
  871. postIndex := iNdEx + intStringLen
  872. if postIndex > l {
  873. return io.ErrUnexpectedEOF
  874. }
  875. m.UserLevelRank = string(dAtA[iNdEx:postIndex])
  876. iNdEx = postIndex
  877. case 16:
  878. if wireType != 0 {
  879. return fmt.Errorf("proto: wrong wireType = %d for field UserCharged", wireType)
  880. }
  881. m.UserCharged = 0
  882. for shift := uint(0); ; shift += 7 {
  883. if shift >= 64 {
  884. return ErrIntOverflowUser
  885. }
  886. if iNdEx >= l {
  887. return io.ErrUnexpectedEOF
  888. }
  889. b := dAtA[iNdEx]
  890. iNdEx++
  891. m.UserCharged |= (int(b) & 0x7F) << shift
  892. if b < 0x80 {
  893. break
  894. }
  895. }
  896. default:
  897. iNdEx = preIndex
  898. skippy, err := skipUser(dAtA[iNdEx:])
  899. if err != nil {
  900. return err
  901. }
  902. if skippy < 0 {
  903. return ErrInvalidLengthUser
  904. }
  905. if (iNdEx + skippy) > l {
  906. return io.ErrUnexpectedEOF
  907. }
  908. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  909. iNdEx += skippy
  910. }
  911. }
  912. if iNdEx > l {
  913. return io.ErrUnexpectedEOF
  914. }
  915. return nil
  916. }
  917. func skipUser(dAtA []byte) (n int, err error) {
  918. l := len(dAtA)
  919. iNdEx := 0
  920. for iNdEx < l {
  921. var wire uint64
  922. for shift := uint(0); ; shift += 7 {
  923. if shift >= 64 {
  924. return 0, ErrIntOverflowUser
  925. }
  926. if iNdEx >= l {
  927. return 0, io.ErrUnexpectedEOF
  928. }
  929. b := dAtA[iNdEx]
  930. iNdEx++
  931. wire |= (uint64(b) & 0x7F) << shift
  932. if b < 0x80 {
  933. break
  934. }
  935. }
  936. wireType := int(wire & 0x7)
  937. switch wireType {
  938. case 0:
  939. for shift := uint(0); ; shift += 7 {
  940. if shift >= 64 {
  941. return 0, ErrIntOverflowUser
  942. }
  943. if iNdEx >= l {
  944. return 0, io.ErrUnexpectedEOF
  945. }
  946. iNdEx++
  947. if dAtA[iNdEx-1] < 0x80 {
  948. break
  949. }
  950. }
  951. return iNdEx, nil
  952. case 1:
  953. iNdEx += 8
  954. return iNdEx, nil
  955. case 2:
  956. var length int
  957. for shift := uint(0); ; shift += 7 {
  958. if shift >= 64 {
  959. return 0, ErrIntOverflowUser
  960. }
  961. if iNdEx >= l {
  962. return 0, io.ErrUnexpectedEOF
  963. }
  964. b := dAtA[iNdEx]
  965. iNdEx++
  966. length |= (int(b) & 0x7F) << shift
  967. if b < 0x80 {
  968. break
  969. }
  970. }
  971. iNdEx += length
  972. if length < 0 {
  973. return 0, ErrInvalidLengthUser
  974. }
  975. return iNdEx, nil
  976. case 3:
  977. for {
  978. var innerWire uint64
  979. var start int = iNdEx
  980. for shift := uint(0); ; shift += 7 {
  981. if shift >= 64 {
  982. return 0, ErrIntOverflowUser
  983. }
  984. if iNdEx >= l {
  985. return 0, io.ErrUnexpectedEOF
  986. }
  987. b := dAtA[iNdEx]
  988. iNdEx++
  989. innerWire |= (uint64(b) & 0x7F) << shift
  990. if b < 0x80 {
  991. break
  992. }
  993. }
  994. innerWireType := int(innerWire & 0x7)
  995. if innerWireType == 4 {
  996. break
  997. }
  998. next, err := skipUser(dAtA[start:])
  999. if err != nil {
  1000. return 0, err
  1001. }
  1002. iNdEx = start + next
  1003. }
  1004. return iNdEx, nil
  1005. case 4:
  1006. return iNdEx, nil
  1007. case 5:
  1008. iNdEx += 4
  1009. return iNdEx, nil
  1010. default:
  1011. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1012. }
  1013. }
  1014. panic("unreachable")
  1015. }
  1016. var (
  1017. ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling")
  1018. ErrIntOverflowUser = fmt.Errorf("proto: integer overflow")
  1019. )
  1020. func init() { proto.RegisterFile("user.proto", fileDescriptor_user_7ff157935b3a3e82) }
  1021. var fileDescriptor_user_7ff157935b3a3e82 = []byte{
  1022. // 548 bytes of a gzipped FileDescriptorProto
  1023. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x41, 0x6f, 0xd3, 0x30,
  1024. 0x14, 0x56, 0x68, 0xba, 0xb5, 0xaf, 0xdd, 0x5a, 0x3c, 0x09, 0xcc, 0x98, 0xea, 0xaa, 0x08, 0xa9,
  1025. 0x97, 0xb5, 0xd2, 0x90, 0x38, 0x0c, 0x71, 0xe9, 0x90, 0xd0, 0x10, 0xe2, 0x60, 0xc1, 0x85, 0x4b,
  1026. 0x95, 0xa6, 0x6e, 0x6a, 0x2d, 0x8d, 0x43, 0xe2, 0x84, 0xf1, 0x0f, 0x39, 0xee, 0x17, 0x58, 0xa8,
  1027. 0xc7, 0x1c, 0x39, 0x72, 0x42, 0x7e, 0x69, 0xd3, 0x6e, 0x82, 0x8b, 0xfd, 0xbe, 0xef, 0x7b, 0xdf,
  1028. 0x7b, 0x7e, 0x71, 0x0c, 0x90, 0xa5, 0x22, 0x19, 0xc5, 0x89, 0xd2, 0x8a, 0x74, 0x42, 0x99, 0x8b,
  1029. 0xd1, 0x77, 0x31, 0xcb, 0x7c, 0x11, 0x69, 0x91, 0x9c, 0x9e, 0x07, 0x52, 0x2f, 0xb3, 0xd9, 0xc8,
  1030. 0x57, 0xab, 0x71, 0xa0, 0x02, 0x35, 0xc6, 0xbc, 0x59, 0xb6, 0x40, 0x84, 0x00, 0xa3, 0xd2, 0x3f,
  1031. 0x78, 0x0b, 0xf0, 0x5e, 0xe8, 0xeb, 0x68, 0xa1, 0xb8, 0xf8, 0x46, 0xc6, 0xd0, 0x88, 0x43, 0x4f,
  1032. 0x2f, 0x54, 0xb2, 0xa2, 0x4e, 0xdf, 0x19, 0x36, 0x27, 0x27, 0xbf, 0x0d, 0xeb, 0x58, 0x7c, 0x39,
  1033. 0xd8, 0x2a, 0x03, 0x5e, 0x25, 0x0d, 0xee, 0xea, 0xd0, 0xaa, 0xfc, 0x69, 0x4c, 0x9e, 0x41, 0x2d,
  1034. 0x93, 0x73, 0xf4, 0xd6, 0x26, 0x87, 0x85, 0x61, 0x16, 0x72, 0xbb, 0x10, 0x06, 0xf5, 0x2c, 0xf2,
  1035. 0x56, 0x82, 0x3e, 0xc2, 0xc2, 0xcd, 0xc2, 0xb0, 0x92, 0xe0, 0xe5, 0x46, 0xce, 0xc0, 0x5d, 0x78,
  1036. 0xbe, 0xa0, 0x35, 0xd4, 0x1b, 0x85, 0x61, 0x88, 0x39, 0xae, 0xa4, 0x0f, 0xae, 0xaf, 0x64, 0x44,
  1037. 0xdd, 0xbe, 0x33, 0x74, 0x26, 0xed, 0xc2, 0xb0, 0xc6, 0x4c, 0x86, 0xe1, 0x95, 0x92, 0x11, 0x47,
  1038. 0x85, 0x0c, 0xe0, 0x20, 0x95, 0x61, 0x2e, 0x12, 0x5a, 0xc7, 0xf6, 0x50, 0x18, 0xb6, 0x61, 0xf8,
  1039. 0x66, 0xb7, 0x3d, 0x02, 0x15, 0xce, 0xe9, 0x01, 0x66, 0x60, 0x0f, 0x8b, 0x39, 0xae, 0xe4, 0x25,
  1040. 0x1c, 0x7a, 0xfe, 0x52, 0x8a, 0x5c, 0xd0, 0x43, 0x4c, 0x68, 0x15, 0x86, 0x6d, 0x29, 0xbe, 0x0d,
  1041. 0x48, 0x1f, 0x6a, 0xb9, 0x8c, 0x69, 0xa3, 0xef, 0x0c, 0xeb, 0x93, 0x63, 0x3b, 0x64, 0x2e, 0xe3,
  1042. 0x3f, 0x86, 0xd5, 0x64, 0xa4, 0xb9, 0x8d, 0xc9, 0x0b, 0x70, 0x53, 0x9b, 0xd2, 0xc4, 0x94, 0x8e,
  1043. 0x6d, 0x93, 0xee, 0xe5, 0x20, 0x20, 0xe7, 0xe5, 0x45, 0x4e, 0x43, 0x91, 0x8b, 0x90, 0x02, 0x36,
  1044. 0xb4, 0xd5, 0xf6, 0x58, 0xde, 0xb4, 0xf1, 0x47, 0x1b, 0x92, 0x37, 0xd0, 0x41, 0x21, 0x12, 0xb7,
  1045. 0x7a, 0xe3, 0x69, 0xa1, 0xe7, 0xa4, 0x30, 0xec, 0xa1, 0xc4, 0x8f, 0x2c, 0xf1, 0x49, 0xdc, 0xea,
  1046. 0xd2, 0xfc, 0x1a, 0x90, 0x98, 0xca, 0x48, 0xcb, 0x95, 0xe7, 0xff, 0xa0, 0x6d, 0xb4, 0x3e, 0x2e,
  1047. 0x0c, 0xbb, 0x2f, 0xf0, 0xb6, 0x85, 0xd7, 0x1b, 0x44, 0xde, 0x01, 0xd9, 0x55, 0xae, 0xcc, 0x47,
  1048. 0x68, 0x7e, 0x52, 0x18, 0xf6, 0x0f, 0x95, 0x77, 0xb7, 0xad, 0xab, 0x2a, 0x17, 0xd0, 0x96, 0x69,
  1049. 0x79, 0xb0, 0xa9, 0x56, 0x31, 0x3d, 0x46, 0x7f, 0xb7, 0x30, 0xec, 0x1e, 0xcf, 0x41, 0xa6, 0x78,
  1050. 0xdc, 0xcf, 0x2a, 0xae, 0xc6, 0x2d, 0xd5, 0xc4, 0x8b, 0x6e, 0x68, 0xa7, 0xfc, 0x23, 0xab, 0x71,
  1051. 0x77, 0x52, 0x39, 0x2e, 0x7a, 0xb9, 0x17, 0xdd, 0x90, 0x4b, 0xc0, 0x31, 0xa6, 0xfe, 0xd2, 0x4b,
  1052. 0x02, 0x31, 0xa7, 0x5d, 0xbc, 0x87, 0xa7, 0xb6, 0xe1, 0x3e, 0xbf, 0xbd, 0x8f, 0x96, 0x25, 0xaf,
  1053. 0x4a, 0xee, 0x82, 0x83, 0xfb, 0x25, 0x15, 0x09, 0xf9, 0x00, 0x47, 0x81, 0xd0, 0xd3, 0xcd, 0xd7,
  1054. 0x59, 0x28, 0xf2, 0x7c, 0xf4, 0xe0, 0xad, 0x8d, 0x76, 0x2f, 0xe7, 0xf4, 0xec, 0xff, 0x62, 0x1a,
  1055. 0x4f, 0xc8, 0xcf, 0x75, 0xcf, 0xb9, 0x5b, 0xf7, 0x9c, 0x5f, 0xeb, 0x9e, 0xf3, 0xd5, 0x5d, 0x6a,
  1056. 0x1d, 0xcf, 0x0e, 0xf0, 0x01, 0xbe, 0xfa, 0x1b, 0x00, 0x00, 0xff, 0xff, 0xda, 0x13, 0xdc, 0xb3,
  1057. 0xce, 0x03, 0x00, 0x00,
  1058. }