exp.pb.go 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/xuser/api/grpc/v1/exp.proto
  3. package v1
  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 (
  9. context "golang.org/x/net/context"
  10. grpc "google.golang.org/grpc"
  11. )
  12. import io "io"
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  22. type AddUserExpReq struct {
  23. UserInfo *UserExpChunk `protobuf:"bytes,1,opt,name=userInfo" json:"userInfo,omitempty" form:"userInfo" validate:"required"`
  24. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  25. XXX_unrecognized []byte `json:"-"`
  26. XXX_sizecache int32 `json:"-"`
  27. }
  28. func (m *AddUserExpReq) Reset() { *m = AddUserExpReq{} }
  29. func (m *AddUserExpReq) String() string { return proto.CompactTextString(m) }
  30. func (*AddUserExpReq) ProtoMessage() {}
  31. func (*AddUserExpReq) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_exp_57cf1a328d2a0c19, []int{0}
  33. }
  34. func (m *AddUserExpReq) XXX_Unmarshal(b []byte) error {
  35. return m.Unmarshal(b)
  36. }
  37. func (m *AddUserExpReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. if deterministic {
  39. return xxx_messageInfo_AddUserExpReq.Marshal(b, m, deterministic)
  40. } else {
  41. b = b[:cap(b)]
  42. n, err := m.MarshalTo(b)
  43. if err != nil {
  44. return nil, err
  45. }
  46. return b[:n], nil
  47. }
  48. }
  49. func (dst *AddUserExpReq) XXX_Merge(src proto.Message) {
  50. xxx_messageInfo_AddUserExpReq.Merge(dst, src)
  51. }
  52. func (m *AddUserExpReq) XXX_Size() int {
  53. return m.Size()
  54. }
  55. func (m *AddUserExpReq) XXX_DiscardUnknown() {
  56. xxx_messageInfo_AddUserExpReq.DiscardUnknown(m)
  57. }
  58. var xxx_messageInfo_AddUserExpReq proto.InternalMessageInfo
  59. func (m *AddUserExpReq) GetUserInfo() *UserExpChunk {
  60. if m != nil {
  61. return m.UserInfo
  62. }
  63. return nil
  64. }
  65. type UserExpChunk struct {
  66. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"gt=0,required"`
  67. ReqBiz int64 `protobuf:"varint,2,opt,name=req_biz,json=reqBiz,proto3" json:"req_biz,omitempty" form:"req_biz" validate:"required"`
  68. Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty" form:"type" validate:"gt=0,required"`
  69. Num int64 `protobuf:"varint,4,opt,name=num,proto3" json:"num,omitempty" form:"num" validate:"gt=0,required"`
  70. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  71. XXX_unrecognized []byte `json:"-"`
  72. XXX_sizecache int32 `json:"-"`
  73. }
  74. func (m *UserExpChunk) Reset() { *m = UserExpChunk{} }
  75. func (m *UserExpChunk) String() string { return proto.CompactTextString(m) }
  76. func (*UserExpChunk) ProtoMessage() {}
  77. func (*UserExpChunk) Descriptor() ([]byte, []int) {
  78. return fileDescriptor_exp_57cf1a328d2a0c19, []int{1}
  79. }
  80. func (m *UserExpChunk) XXX_Unmarshal(b []byte) error {
  81. return m.Unmarshal(b)
  82. }
  83. func (m *UserExpChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  84. if deterministic {
  85. return xxx_messageInfo_UserExpChunk.Marshal(b, m, deterministic)
  86. } else {
  87. b = b[:cap(b)]
  88. n, err := m.MarshalTo(b)
  89. if err != nil {
  90. return nil, err
  91. }
  92. return b[:n], nil
  93. }
  94. }
  95. func (dst *UserExpChunk) XXX_Merge(src proto.Message) {
  96. xxx_messageInfo_UserExpChunk.Merge(dst, src)
  97. }
  98. func (m *UserExpChunk) XXX_Size() int {
  99. return m.Size()
  100. }
  101. func (m *UserExpChunk) XXX_DiscardUnknown() {
  102. xxx_messageInfo_UserExpChunk.DiscardUnknown(m)
  103. }
  104. var xxx_messageInfo_UserExpChunk proto.InternalMessageInfo
  105. func (m *UserExpChunk) GetUid() int64 {
  106. if m != nil {
  107. return m.Uid
  108. }
  109. return 0
  110. }
  111. func (m *UserExpChunk) GetReqBiz() int64 {
  112. if m != nil {
  113. return m.ReqBiz
  114. }
  115. return 0
  116. }
  117. func (m *UserExpChunk) GetType() int64 {
  118. if m != nil {
  119. return m.Type
  120. }
  121. return 0
  122. }
  123. func (m *UserExpChunk) GetNum() int64 {
  124. if m != nil {
  125. return m.Num
  126. }
  127. return 0
  128. }
  129. type AddUserExpResp struct {
  130. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  131. XXX_unrecognized []byte `json:"-"`
  132. XXX_sizecache int32 `json:"-"`
  133. }
  134. func (m *AddUserExpResp) Reset() { *m = AddUserExpResp{} }
  135. func (m *AddUserExpResp) String() string { return proto.CompactTextString(m) }
  136. func (*AddUserExpResp) ProtoMessage() {}
  137. func (*AddUserExpResp) Descriptor() ([]byte, []int) {
  138. return fileDescriptor_exp_57cf1a328d2a0c19, []int{2}
  139. }
  140. func (m *AddUserExpResp) XXX_Unmarshal(b []byte) error {
  141. return m.Unmarshal(b)
  142. }
  143. func (m *AddUserExpResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  144. if deterministic {
  145. return xxx_messageInfo_AddUserExpResp.Marshal(b, m, deterministic)
  146. } else {
  147. b = b[:cap(b)]
  148. n, err := m.MarshalTo(b)
  149. if err != nil {
  150. return nil, err
  151. }
  152. return b[:n], nil
  153. }
  154. }
  155. func (dst *AddUserExpResp) XXX_Merge(src proto.Message) {
  156. xxx_messageInfo_AddUserExpResp.Merge(dst, src)
  157. }
  158. func (m *AddUserExpResp) XXX_Size() int {
  159. return m.Size()
  160. }
  161. func (m *AddUserExpResp) XXX_DiscardUnknown() {
  162. xxx_messageInfo_AddUserExpResp.DiscardUnknown(m)
  163. }
  164. var xxx_messageInfo_AddUserExpResp proto.InternalMessageInfo
  165. // GetUserExpReq 请求
  166. type GetUserExpReq struct {
  167. Uids []int64 `protobuf:"varint,1,rep,packed,name=uids" json:"uids,omitempty" form:"uids" validate:"gt=0,required"`
  168. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  169. XXX_unrecognized []byte `json:"-"`
  170. XXX_sizecache int32 `json:"-"`
  171. }
  172. func (m *GetUserExpReq) Reset() { *m = GetUserExpReq{} }
  173. func (m *GetUserExpReq) String() string { return proto.CompactTextString(m) }
  174. func (*GetUserExpReq) ProtoMessage() {}
  175. func (*GetUserExpReq) Descriptor() ([]byte, []int) {
  176. return fileDescriptor_exp_57cf1a328d2a0c19, []int{3}
  177. }
  178. func (m *GetUserExpReq) XXX_Unmarshal(b []byte) error {
  179. return m.Unmarshal(b)
  180. }
  181. func (m *GetUserExpReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  182. if deterministic {
  183. return xxx_messageInfo_GetUserExpReq.Marshal(b, m, deterministic)
  184. } else {
  185. b = b[:cap(b)]
  186. n, err := m.MarshalTo(b)
  187. if err != nil {
  188. return nil, err
  189. }
  190. return b[:n], nil
  191. }
  192. }
  193. func (dst *GetUserExpReq) XXX_Merge(src proto.Message) {
  194. xxx_messageInfo_GetUserExpReq.Merge(dst, src)
  195. }
  196. func (m *GetUserExpReq) XXX_Size() int {
  197. return m.Size()
  198. }
  199. func (m *GetUserExpReq) XXX_DiscardUnknown() {
  200. xxx_messageInfo_GetUserExpReq.DiscardUnknown(m)
  201. }
  202. var xxx_messageInfo_GetUserExpReq proto.InternalMessageInfo
  203. func (m *GetUserExpReq) GetUids() []int64 {
  204. if m != nil {
  205. return m.Uids
  206. }
  207. return nil
  208. }
  209. // GetUserExpResp 响应
  210. type GetUserExpResp struct {
  211. Data map[int64]*LevelInfo `protobuf:"bytes,1,rep,name=data" json:"data" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value"`
  212. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  213. XXX_unrecognized []byte `json:"-"`
  214. XXX_sizecache int32 `json:"-"`
  215. }
  216. func (m *GetUserExpResp) Reset() { *m = GetUserExpResp{} }
  217. func (m *GetUserExpResp) String() string { return proto.CompactTextString(m) }
  218. func (*GetUserExpResp) ProtoMessage() {}
  219. func (*GetUserExpResp) Descriptor() ([]byte, []int) {
  220. return fileDescriptor_exp_57cf1a328d2a0c19, []int{4}
  221. }
  222. func (m *GetUserExpResp) XXX_Unmarshal(b []byte) error {
  223. return m.Unmarshal(b)
  224. }
  225. func (m *GetUserExpResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  226. if deterministic {
  227. return xxx_messageInfo_GetUserExpResp.Marshal(b, m, deterministic)
  228. } else {
  229. b = b[:cap(b)]
  230. n, err := m.MarshalTo(b)
  231. if err != nil {
  232. return nil, err
  233. }
  234. return b[:n], nil
  235. }
  236. }
  237. func (dst *GetUserExpResp) XXX_Merge(src proto.Message) {
  238. xxx_messageInfo_GetUserExpResp.Merge(dst, src)
  239. }
  240. func (m *GetUserExpResp) XXX_Size() int {
  241. return m.Size()
  242. }
  243. func (m *GetUserExpResp) XXX_DiscardUnknown() {
  244. xxx_messageInfo_GetUserExpResp.DiscardUnknown(m)
  245. }
  246. var xxx_messageInfo_GetUserExpResp proto.InternalMessageInfo
  247. func (m *GetUserExpResp) GetData() map[int64]*LevelInfo {
  248. if m != nil {
  249. return m.Data
  250. }
  251. return nil
  252. }
  253. type LevelInfo struct {
  254. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  255. UserLevel *UserLevelInfo `protobuf:"bytes,2,opt,name=userLevel" json:"userLevel"`
  256. AnchorLevel *AnchorLevelInfo `protobuf:"bytes,3,opt,name=anchorLevel" json:"anchorLevel"`
  257. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  258. XXX_unrecognized []byte `json:"-"`
  259. XXX_sizecache int32 `json:"-"`
  260. }
  261. func (m *LevelInfo) Reset() { *m = LevelInfo{} }
  262. func (m *LevelInfo) String() string { return proto.CompactTextString(m) }
  263. func (*LevelInfo) ProtoMessage() {}
  264. func (*LevelInfo) Descriptor() ([]byte, []int) {
  265. return fileDescriptor_exp_57cf1a328d2a0c19, []int{5}
  266. }
  267. func (m *LevelInfo) XXX_Unmarshal(b []byte) error {
  268. return m.Unmarshal(b)
  269. }
  270. func (m *LevelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  271. if deterministic {
  272. return xxx_messageInfo_LevelInfo.Marshal(b, m, deterministic)
  273. } else {
  274. b = b[:cap(b)]
  275. n, err := m.MarshalTo(b)
  276. if err != nil {
  277. return nil, err
  278. }
  279. return b[:n], nil
  280. }
  281. }
  282. func (dst *LevelInfo) XXX_Merge(src proto.Message) {
  283. xxx_messageInfo_LevelInfo.Merge(dst, src)
  284. }
  285. func (m *LevelInfo) XXX_Size() int {
  286. return m.Size()
  287. }
  288. func (m *LevelInfo) XXX_DiscardUnknown() {
  289. xxx_messageInfo_LevelInfo.DiscardUnknown(m)
  290. }
  291. var xxx_messageInfo_LevelInfo proto.InternalMessageInfo
  292. func (m *LevelInfo) GetUid() int64 {
  293. if m != nil {
  294. return m.Uid
  295. }
  296. return 0
  297. }
  298. func (m *LevelInfo) GetUserLevel() *UserLevelInfo {
  299. if m != nil {
  300. return m.UserLevel
  301. }
  302. return nil
  303. }
  304. func (m *LevelInfo) GetAnchorLevel() *AnchorLevelInfo {
  305. if m != nil {
  306. return m.AnchorLevel
  307. }
  308. return nil
  309. }
  310. type UserLevelInfo struct {
  311. // 当前用户等级
  312. Level int64 `protobuf:"varint,1,opt,name=level,proto3" json:"level"`
  313. // 下一等级
  314. NextLevel int64 `protobuf:"varint,2,opt,name=nextLevel,proto3" json:"nextLevel"`
  315. // 当前等级对应的经验
  316. UserExpLeft int64 `protobuf:"varint,3,opt,name=userExpLeft,proto3" json:"userExpLeft"`
  317. // 下一等级对应的经验
  318. UserExpRight int64 `protobuf:"varint,4,opt,name=userExpRight,proto3" json:"userExpRight"`
  319. // 用户当前经验
  320. UserExp int64 `protobuf:"varint,5,opt,name=userExp,proto3" json:"userExp"`
  321. // 升级到下一等级对应的经验
  322. UserExpNextLevel int64 `protobuf:"varint,6,opt,name=userExpNextLevel,proto3" json:"userExpNextLevel"`
  323. // 当前等级颜色
  324. Color int64 `protobuf:"varint,7,opt,name=color,proto3" json:"color"`
  325. // 下一等级左侧对应的经验
  326. UserExpNextLeft int64 `protobuf:"varint,8,opt,name=userExpNextLeft,proto3" json:"userExpNextLeft"`
  327. // 下一等级右侧对应的经验
  328. UserExpNextRight int64 `protobuf:"varint,9,opt,name=userExpNextRight,proto3" json:"userExpNextRight"`
  329. IsLevelTop int64 `protobuf:"varint,10,opt,name=isLevelTop,proto3" json:"isLevelTop"`
  330. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  331. XXX_unrecognized []byte `json:"-"`
  332. XXX_sizecache int32 `json:"-"`
  333. }
  334. func (m *UserLevelInfo) Reset() { *m = UserLevelInfo{} }
  335. func (m *UserLevelInfo) String() string { return proto.CompactTextString(m) }
  336. func (*UserLevelInfo) ProtoMessage() {}
  337. func (*UserLevelInfo) Descriptor() ([]byte, []int) {
  338. return fileDescriptor_exp_57cf1a328d2a0c19, []int{6}
  339. }
  340. func (m *UserLevelInfo) XXX_Unmarshal(b []byte) error {
  341. return m.Unmarshal(b)
  342. }
  343. func (m *UserLevelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  344. if deterministic {
  345. return xxx_messageInfo_UserLevelInfo.Marshal(b, m, deterministic)
  346. } else {
  347. b = b[:cap(b)]
  348. n, err := m.MarshalTo(b)
  349. if err != nil {
  350. return nil, err
  351. }
  352. return b[:n], nil
  353. }
  354. }
  355. func (dst *UserLevelInfo) XXX_Merge(src proto.Message) {
  356. xxx_messageInfo_UserLevelInfo.Merge(dst, src)
  357. }
  358. func (m *UserLevelInfo) XXX_Size() int {
  359. return m.Size()
  360. }
  361. func (m *UserLevelInfo) XXX_DiscardUnknown() {
  362. xxx_messageInfo_UserLevelInfo.DiscardUnknown(m)
  363. }
  364. var xxx_messageInfo_UserLevelInfo proto.InternalMessageInfo
  365. func (m *UserLevelInfo) GetLevel() int64 {
  366. if m != nil {
  367. return m.Level
  368. }
  369. return 0
  370. }
  371. func (m *UserLevelInfo) GetNextLevel() int64 {
  372. if m != nil {
  373. return m.NextLevel
  374. }
  375. return 0
  376. }
  377. func (m *UserLevelInfo) GetUserExpLeft() int64 {
  378. if m != nil {
  379. return m.UserExpLeft
  380. }
  381. return 0
  382. }
  383. func (m *UserLevelInfo) GetUserExpRight() int64 {
  384. if m != nil {
  385. return m.UserExpRight
  386. }
  387. return 0
  388. }
  389. func (m *UserLevelInfo) GetUserExp() int64 {
  390. if m != nil {
  391. return m.UserExp
  392. }
  393. return 0
  394. }
  395. func (m *UserLevelInfo) GetUserExpNextLevel() int64 {
  396. if m != nil {
  397. return m.UserExpNextLevel
  398. }
  399. return 0
  400. }
  401. func (m *UserLevelInfo) GetColor() int64 {
  402. if m != nil {
  403. return m.Color
  404. }
  405. return 0
  406. }
  407. func (m *UserLevelInfo) GetUserExpNextLeft() int64 {
  408. if m != nil {
  409. return m.UserExpNextLeft
  410. }
  411. return 0
  412. }
  413. func (m *UserLevelInfo) GetUserExpNextRight() int64 {
  414. if m != nil {
  415. return m.UserExpNextRight
  416. }
  417. return 0
  418. }
  419. func (m *UserLevelInfo) GetIsLevelTop() int64 {
  420. if m != nil {
  421. return m.IsLevelTop
  422. }
  423. return 0
  424. }
  425. type AnchorLevelInfo struct {
  426. // 当前用户等级
  427. Level int64 `protobuf:"varint,1,opt,name=level,proto3" json:"level"`
  428. // 下一等级
  429. NextLevel int64 `protobuf:"varint,2,opt,name=nextLevel,proto3" json:"nextLevel"`
  430. // 当前等级对应的经验
  431. UserExpLeft int64 `protobuf:"varint,3,opt,name=userExpLeft,proto3" json:"userExpLeft"`
  432. // 下一等级对应的经验
  433. UserExpRight int64 `protobuf:"varint,4,opt,name=userExpRight,proto3" json:"userExpRight"`
  434. // 用户当前经验
  435. UserExp int64 `protobuf:"varint,5,opt,name=userExp,proto3" json:"userExp"`
  436. // 升级到下一等级对应的经验
  437. UserExpNextLevel int64 `protobuf:"varint,6,opt,name=userExpNextLevel,proto3" json:"userExpNextLevel"`
  438. // 当前等级颜色
  439. Color int64 `protobuf:"varint,7,opt,name=color,proto3" json:"color"`
  440. // 下一等级左侧对应的经验
  441. UserExpNextLeft int64 `protobuf:"varint,8,opt,name=userExpNextLeft,proto3" json:"userExpNextLeft"`
  442. // 下一等级右侧对应的经验
  443. UserExpNextRight int64 `protobuf:"varint,9,opt,name=userExpNextRight,proto3" json:"userExpNextRight"`
  444. // 主播积分,userExp/100
  445. AnchorScore int64 `protobuf:"varint,10,opt,name=anchorScore,proto3" json:"anchorScore"`
  446. IsLevelTop int64 `protobuf:"varint,11,opt,name=isLevelTop,proto3" json:"isLevelTop"`
  447. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  448. XXX_unrecognized []byte `json:"-"`
  449. XXX_sizecache int32 `json:"-"`
  450. }
  451. func (m *AnchorLevelInfo) Reset() { *m = AnchorLevelInfo{} }
  452. func (m *AnchorLevelInfo) String() string { return proto.CompactTextString(m) }
  453. func (*AnchorLevelInfo) ProtoMessage() {}
  454. func (*AnchorLevelInfo) Descriptor() ([]byte, []int) {
  455. return fileDescriptor_exp_57cf1a328d2a0c19, []int{7}
  456. }
  457. func (m *AnchorLevelInfo) XXX_Unmarshal(b []byte) error {
  458. return m.Unmarshal(b)
  459. }
  460. func (m *AnchorLevelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  461. if deterministic {
  462. return xxx_messageInfo_AnchorLevelInfo.Marshal(b, m, deterministic)
  463. } else {
  464. b = b[:cap(b)]
  465. n, err := m.MarshalTo(b)
  466. if err != nil {
  467. return nil, err
  468. }
  469. return b[:n], nil
  470. }
  471. }
  472. func (dst *AnchorLevelInfo) XXX_Merge(src proto.Message) {
  473. xxx_messageInfo_AnchorLevelInfo.Merge(dst, src)
  474. }
  475. func (m *AnchorLevelInfo) XXX_Size() int {
  476. return m.Size()
  477. }
  478. func (m *AnchorLevelInfo) XXX_DiscardUnknown() {
  479. xxx_messageInfo_AnchorLevelInfo.DiscardUnknown(m)
  480. }
  481. var xxx_messageInfo_AnchorLevelInfo proto.InternalMessageInfo
  482. func (m *AnchorLevelInfo) GetLevel() int64 {
  483. if m != nil {
  484. return m.Level
  485. }
  486. return 0
  487. }
  488. func (m *AnchorLevelInfo) GetNextLevel() int64 {
  489. if m != nil {
  490. return m.NextLevel
  491. }
  492. return 0
  493. }
  494. func (m *AnchorLevelInfo) GetUserExpLeft() int64 {
  495. if m != nil {
  496. return m.UserExpLeft
  497. }
  498. return 0
  499. }
  500. func (m *AnchorLevelInfo) GetUserExpRight() int64 {
  501. if m != nil {
  502. return m.UserExpRight
  503. }
  504. return 0
  505. }
  506. func (m *AnchorLevelInfo) GetUserExp() int64 {
  507. if m != nil {
  508. return m.UserExp
  509. }
  510. return 0
  511. }
  512. func (m *AnchorLevelInfo) GetUserExpNextLevel() int64 {
  513. if m != nil {
  514. return m.UserExpNextLevel
  515. }
  516. return 0
  517. }
  518. func (m *AnchorLevelInfo) GetColor() int64 {
  519. if m != nil {
  520. return m.Color
  521. }
  522. return 0
  523. }
  524. func (m *AnchorLevelInfo) GetUserExpNextLeft() int64 {
  525. if m != nil {
  526. return m.UserExpNextLeft
  527. }
  528. return 0
  529. }
  530. func (m *AnchorLevelInfo) GetUserExpNextRight() int64 {
  531. if m != nil {
  532. return m.UserExpNextRight
  533. }
  534. return 0
  535. }
  536. func (m *AnchorLevelInfo) GetAnchorScore() int64 {
  537. if m != nil {
  538. return m.AnchorScore
  539. }
  540. return 0
  541. }
  542. func (m *AnchorLevelInfo) GetIsLevelTop() int64 {
  543. if m != nil {
  544. return m.IsLevelTop
  545. }
  546. return 0
  547. }
  548. func init() {
  549. proto.RegisterType((*AddUserExpReq)(nil), "live.xuser.v1.AddUserExpReq")
  550. proto.RegisterType((*UserExpChunk)(nil), "live.xuser.v1.UserExpChunk")
  551. proto.RegisterType((*AddUserExpResp)(nil), "live.xuser.v1.AddUserExpResp")
  552. proto.RegisterType((*GetUserExpReq)(nil), "live.xuser.v1.GetUserExpReq")
  553. proto.RegisterType((*GetUserExpResp)(nil), "live.xuser.v1.GetUserExpResp")
  554. proto.RegisterMapType((map[int64]*LevelInfo)(nil), "live.xuser.v1.GetUserExpResp.DataEntry")
  555. proto.RegisterType((*LevelInfo)(nil), "live.xuser.v1.LevelInfo")
  556. proto.RegisterType((*UserLevelInfo)(nil), "live.xuser.v1.UserLevelInfo")
  557. proto.RegisterType((*AnchorLevelInfo)(nil), "live.xuser.v1.AnchorLevelInfo")
  558. }
  559. // Reference imports to suppress errors if they are not otherwise used.
  560. var _ context.Context
  561. var _ grpc.ClientConn
  562. // This is a compile-time assertion to ensure that this generated file
  563. // is compatible with the grpc package it is being compiled against.
  564. const _ = grpc.SupportPackageIsVersion4
  565. // UserExpClient is the client API for UserExp service.
  566. //
  567. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  568. type UserExpClient interface {
  569. // GetUserExpMulti 获取用户经验与等级信息,支持批量
  570. GetUserExp(ctx context.Context, in *GetUserExpReq, opts ...grpc.CallOption) (*GetUserExpResp, error)
  571. // AddUserExp 增加用户经验,不支持批量
  572. AddUserExp(ctx context.Context, in *AddUserExpReq, opts ...grpc.CallOption) (*AddUserExpResp, error)
  573. }
  574. type userExpClient struct {
  575. cc *grpc.ClientConn
  576. }
  577. func NewUserExpClient(cc *grpc.ClientConn) UserExpClient {
  578. return &userExpClient{cc}
  579. }
  580. func (c *userExpClient) GetUserExp(ctx context.Context, in *GetUserExpReq, opts ...grpc.CallOption) (*GetUserExpResp, error) {
  581. out := new(GetUserExpResp)
  582. err := c.cc.Invoke(ctx, "/live.xuser.v1.UserExp/GetUserExp", in, out, opts...)
  583. if err != nil {
  584. return nil, err
  585. }
  586. return out, nil
  587. }
  588. func (c *userExpClient) AddUserExp(ctx context.Context, in *AddUserExpReq, opts ...grpc.CallOption) (*AddUserExpResp, error) {
  589. out := new(AddUserExpResp)
  590. err := c.cc.Invoke(ctx, "/live.xuser.v1.UserExp/AddUserExp", in, out, opts...)
  591. if err != nil {
  592. return nil, err
  593. }
  594. return out, nil
  595. }
  596. // UserExpServer is the server API for UserExp service.
  597. type UserExpServer interface {
  598. // GetUserExpMulti 获取用户经验与等级信息,支持批量
  599. GetUserExp(context.Context, *GetUserExpReq) (*GetUserExpResp, error)
  600. // AddUserExp 增加用户经验,不支持批量
  601. AddUserExp(context.Context, *AddUserExpReq) (*AddUserExpResp, error)
  602. }
  603. func RegisterUserExpServer(s *grpc.Server, srv UserExpServer) {
  604. s.RegisterService(&_UserExp_serviceDesc, srv)
  605. }
  606. func _UserExp_GetUserExp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  607. in := new(GetUserExpReq)
  608. if err := dec(in); err != nil {
  609. return nil, err
  610. }
  611. if interceptor == nil {
  612. return srv.(UserExpServer).GetUserExp(ctx, in)
  613. }
  614. info := &grpc.UnaryServerInfo{
  615. Server: srv,
  616. FullMethod: "/live.xuser.v1.UserExp/GetUserExp",
  617. }
  618. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  619. return srv.(UserExpServer).GetUserExp(ctx, req.(*GetUserExpReq))
  620. }
  621. return interceptor(ctx, in, info, handler)
  622. }
  623. func _UserExp_AddUserExp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  624. in := new(AddUserExpReq)
  625. if err := dec(in); err != nil {
  626. return nil, err
  627. }
  628. if interceptor == nil {
  629. return srv.(UserExpServer).AddUserExp(ctx, in)
  630. }
  631. info := &grpc.UnaryServerInfo{
  632. Server: srv,
  633. FullMethod: "/live.xuser.v1.UserExp/AddUserExp",
  634. }
  635. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  636. return srv.(UserExpServer).AddUserExp(ctx, req.(*AddUserExpReq))
  637. }
  638. return interceptor(ctx, in, info, handler)
  639. }
  640. var _UserExp_serviceDesc = grpc.ServiceDesc{
  641. ServiceName: "live.xuser.v1.UserExp",
  642. HandlerType: (*UserExpServer)(nil),
  643. Methods: []grpc.MethodDesc{
  644. {
  645. MethodName: "GetUserExp",
  646. Handler: _UserExp_GetUserExp_Handler,
  647. },
  648. {
  649. MethodName: "AddUserExp",
  650. Handler: _UserExp_AddUserExp_Handler,
  651. },
  652. },
  653. Streams: []grpc.StreamDesc{},
  654. Metadata: "app/service/live/xuser/api/grpc/v1/exp.proto",
  655. }
  656. func (m *AddUserExpReq) Marshal() (dAtA []byte, err error) {
  657. size := m.Size()
  658. dAtA = make([]byte, size)
  659. n, err := m.MarshalTo(dAtA)
  660. if err != nil {
  661. return nil, err
  662. }
  663. return dAtA[:n], nil
  664. }
  665. func (m *AddUserExpReq) MarshalTo(dAtA []byte) (int, error) {
  666. var i int
  667. _ = i
  668. var l int
  669. _ = l
  670. if m.UserInfo != nil {
  671. dAtA[i] = 0xa
  672. i++
  673. i = encodeVarintExp(dAtA, i, uint64(m.UserInfo.Size()))
  674. n1, err := m.UserInfo.MarshalTo(dAtA[i:])
  675. if err != nil {
  676. return 0, err
  677. }
  678. i += n1
  679. }
  680. if m.XXX_unrecognized != nil {
  681. i += copy(dAtA[i:], m.XXX_unrecognized)
  682. }
  683. return i, nil
  684. }
  685. func (m *UserExpChunk) Marshal() (dAtA []byte, err error) {
  686. size := m.Size()
  687. dAtA = make([]byte, size)
  688. n, err := m.MarshalTo(dAtA)
  689. if err != nil {
  690. return nil, err
  691. }
  692. return dAtA[:n], nil
  693. }
  694. func (m *UserExpChunk) MarshalTo(dAtA []byte) (int, error) {
  695. var i int
  696. _ = i
  697. var l int
  698. _ = l
  699. if m.Uid != 0 {
  700. dAtA[i] = 0x8
  701. i++
  702. i = encodeVarintExp(dAtA, i, uint64(m.Uid))
  703. }
  704. if m.ReqBiz != 0 {
  705. dAtA[i] = 0x10
  706. i++
  707. i = encodeVarintExp(dAtA, i, uint64(m.ReqBiz))
  708. }
  709. if m.Type != 0 {
  710. dAtA[i] = 0x18
  711. i++
  712. i = encodeVarintExp(dAtA, i, uint64(m.Type))
  713. }
  714. if m.Num != 0 {
  715. dAtA[i] = 0x20
  716. i++
  717. i = encodeVarintExp(dAtA, i, uint64(m.Num))
  718. }
  719. if m.XXX_unrecognized != nil {
  720. i += copy(dAtA[i:], m.XXX_unrecognized)
  721. }
  722. return i, nil
  723. }
  724. func (m *AddUserExpResp) Marshal() (dAtA []byte, err error) {
  725. size := m.Size()
  726. dAtA = make([]byte, size)
  727. n, err := m.MarshalTo(dAtA)
  728. if err != nil {
  729. return nil, err
  730. }
  731. return dAtA[:n], nil
  732. }
  733. func (m *AddUserExpResp) MarshalTo(dAtA []byte) (int, error) {
  734. var i int
  735. _ = i
  736. var l int
  737. _ = l
  738. if m.XXX_unrecognized != nil {
  739. i += copy(dAtA[i:], m.XXX_unrecognized)
  740. }
  741. return i, nil
  742. }
  743. func (m *GetUserExpReq) Marshal() (dAtA []byte, err error) {
  744. size := m.Size()
  745. dAtA = make([]byte, size)
  746. n, err := m.MarshalTo(dAtA)
  747. if err != nil {
  748. return nil, err
  749. }
  750. return dAtA[:n], nil
  751. }
  752. func (m *GetUserExpReq) MarshalTo(dAtA []byte) (int, error) {
  753. var i int
  754. _ = i
  755. var l int
  756. _ = l
  757. if len(m.Uids) > 0 {
  758. dAtA3 := make([]byte, len(m.Uids)*10)
  759. var j2 int
  760. for _, num1 := range m.Uids {
  761. num := uint64(num1)
  762. for num >= 1<<7 {
  763. dAtA3[j2] = uint8(uint64(num)&0x7f | 0x80)
  764. num >>= 7
  765. j2++
  766. }
  767. dAtA3[j2] = uint8(num)
  768. j2++
  769. }
  770. dAtA[i] = 0xa
  771. i++
  772. i = encodeVarintExp(dAtA, i, uint64(j2))
  773. i += copy(dAtA[i:], dAtA3[:j2])
  774. }
  775. if m.XXX_unrecognized != nil {
  776. i += copy(dAtA[i:], m.XXX_unrecognized)
  777. }
  778. return i, nil
  779. }
  780. func (m *GetUserExpResp) Marshal() (dAtA []byte, err error) {
  781. size := m.Size()
  782. dAtA = make([]byte, size)
  783. n, err := m.MarshalTo(dAtA)
  784. if err != nil {
  785. return nil, err
  786. }
  787. return dAtA[:n], nil
  788. }
  789. func (m *GetUserExpResp) MarshalTo(dAtA []byte) (int, error) {
  790. var i int
  791. _ = i
  792. var l int
  793. _ = l
  794. if len(m.Data) > 0 {
  795. for k, _ := range m.Data {
  796. dAtA[i] = 0xa
  797. i++
  798. v := m.Data[k]
  799. msgSize := 0
  800. if v != nil {
  801. msgSize = v.Size()
  802. msgSize += 1 + sovExp(uint64(msgSize))
  803. }
  804. mapSize := 1 + sovExp(uint64(k)) + msgSize
  805. i = encodeVarintExp(dAtA, i, uint64(mapSize))
  806. dAtA[i] = 0x8
  807. i++
  808. i = encodeVarintExp(dAtA, i, uint64(k))
  809. if v != nil {
  810. dAtA[i] = 0x12
  811. i++
  812. i = encodeVarintExp(dAtA, i, uint64(v.Size()))
  813. n4, err := v.MarshalTo(dAtA[i:])
  814. if err != nil {
  815. return 0, err
  816. }
  817. i += n4
  818. }
  819. }
  820. }
  821. if m.XXX_unrecognized != nil {
  822. i += copy(dAtA[i:], m.XXX_unrecognized)
  823. }
  824. return i, nil
  825. }
  826. func (m *LevelInfo) Marshal() (dAtA []byte, err error) {
  827. size := m.Size()
  828. dAtA = make([]byte, size)
  829. n, err := m.MarshalTo(dAtA)
  830. if err != nil {
  831. return nil, err
  832. }
  833. return dAtA[:n], nil
  834. }
  835. func (m *LevelInfo) MarshalTo(dAtA []byte) (int, error) {
  836. var i int
  837. _ = i
  838. var l int
  839. _ = l
  840. if m.Uid != 0 {
  841. dAtA[i] = 0x8
  842. i++
  843. i = encodeVarintExp(dAtA, i, uint64(m.Uid))
  844. }
  845. if m.UserLevel != nil {
  846. dAtA[i] = 0x12
  847. i++
  848. i = encodeVarintExp(dAtA, i, uint64(m.UserLevel.Size()))
  849. n5, err := m.UserLevel.MarshalTo(dAtA[i:])
  850. if err != nil {
  851. return 0, err
  852. }
  853. i += n5
  854. }
  855. if m.AnchorLevel != nil {
  856. dAtA[i] = 0x1a
  857. i++
  858. i = encodeVarintExp(dAtA, i, uint64(m.AnchorLevel.Size()))
  859. n6, err := m.AnchorLevel.MarshalTo(dAtA[i:])
  860. if err != nil {
  861. return 0, err
  862. }
  863. i += n6
  864. }
  865. if m.XXX_unrecognized != nil {
  866. i += copy(dAtA[i:], m.XXX_unrecognized)
  867. }
  868. return i, nil
  869. }
  870. func (m *UserLevelInfo) Marshal() (dAtA []byte, err error) {
  871. size := m.Size()
  872. dAtA = make([]byte, size)
  873. n, err := m.MarshalTo(dAtA)
  874. if err != nil {
  875. return nil, err
  876. }
  877. return dAtA[:n], nil
  878. }
  879. func (m *UserLevelInfo) MarshalTo(dAtA []byte) (int, error) {
  880. var i int
  881. _ = i
  882. var l int
  883. _ = l
  884. if m.Level != 0 {
  885. dAtA[i] = 0x8
  886. i++
  887. i = encodeVarintExp(dAtA, i, uint64(m.Level))
  888. }
  889. if m.NextLevel != 0 {
  890. dAtA[i] = 0x10
  891. i++
  892. i = encodeVarintExp(dAtA, i, uint64(m.NextLevel))
  893. }
  894. if m.UserExpLeft != 0 {
  895. dAtA[i] = 0x18
  896. i++
  897. i = encodeVarintExp(dAtA, i, uint64(m.UserExpLeft))
  898. }
  899. if m.UserExpRight != 0 {
  900. dAtA[i] = 0x20
  901. i++
  902. i = encodeVarintExp(dAtA, i, uint64(m.UserExpRight))
  903. }
  904. if m.UserExp != 0 {
  905. dAtA[i] = 0x28
  906. i++
  907. i = encodeVarintExp(dAtA, i, uint64(m.UserExp))
  908. }
  909. if m.UserExpNextLevel != 0 {
  910. dAtA[i] = 0x30
  911. i++
  912. i = encodeVarintExp(dAtA, i, uint64(m.UserExpNextLevel))
  913. }
  914. if m.Color != 0 {
  915. dAtA[i] = 0x38
  916. i++
  917. i = encodeVarintExp(dAtA, i, uint64(m.Color))
  918. }
  919. if m.UserExpNextLeft != 0 {
  920. dAtA[i] = 0x40
  921. i++
  922. i = encodeVarintExp(dAtA, i, uint64(m.UserExpNextLeft))
  923. }
  924. if m.UserExpNextRight != 0 {
  925. dAtA[i] = 0x48
  926. i++
  927. i = encodeVarintExp(dAtA, i, uint64(m.UserExpNextRight))
  928. }
  929. if m.IsLevelTop != 0 {
  930. dAtA[i] = 0x50
  931. i++
  932. i = encodeVarintExp(dAtA, i, uint64(m.IsLevelTop))
  933. }
  934. if m.XXX_unrecognized != nil {
  935. i += copy(dAtA[i:], m.XXX_unrecognized)
  936. }
  937. return i, nil
  938. }
  939. func (m *AnchorLevelInfo) Marshal() (dAtA []byte, err error) {
  940. size := m.Size()
  941. dAtA = make([]byte, size)
  942. n, err := m.MarshalTo(dAtA)
  943. if err != nil {
  944. return nil, err
  945. }
  946. return dAtA[:n], nil
  947. }
  948. func (m *AnchorLevelInfo) MarshalTo(dAtA []byte) (int, error) {
  949. var i int
  950. _ = i
  951. var l int
  952. _ = l
  953. if m.Level != 0 {
  954. dAtA[i] = 0x8
  955. i++
  956. i = encodeVarintExp(dAtA, i, uint64(m.Level))
  957. }
  958. if m.NextLevel != 0 {
  959. dAtA[i] = 0x10
  960. i++
  961. i = encodeVarintExp(dAtA, i, uint64(m.NextLevel))
  962. }
  963. if m.UserExpLeft != 0 {
  964. dAtA[i] = 0x18
  965. i++
  966. i = encodeVarintExp(dAtA, i, uint64(m.UserExpLeft))
  967. }
  968. if m.UserExpRight != 0 {
  969. dAtA[i] = 0x20
  970. i++
  971. i = encodeVarintExp(dAtA, i, uint64(m.UserExpRight))
  972. }
  973. if m.UserExp != 0 {
  974. dAtA[i] = 0x28
  975. i++
  976. i = encodeVarintExp(dAtA, i, uint64(m.UserExp))
  977. }
  978. if m.UserExpNextLevel != 0 {
  979. dAtA[i] = 0x30
  980. i++
  981. i = encodeVarintExp(dAtA, i, uint64(m.UserExpNextLevel))
  982. }
  983. if m.Color != 0 {
  984. dAtA[i] = 0x38
  985. i++
  986. i = encodeVarintExp(dAtA, i, uint64(m.Color))
  987. }
  988. if m.UserExpNextLeft != 0 {
  989. dAtA[i] = 0x40
  990. i++
  991. i = encodeVarintExp(dAtA, i, uint64(m.UserExpNextLeft))
  992. }
  993. if m.UserExpNextRight != 0 {
  994. dAtA[i] = 0x48
  995. i++
  996. i = encodeVarintExp(dAtA, i, uint64(m.UserExpNextRight))
  997. }
  998. if m.AnchorScore != 0 {
  999. dAtA[i] = 0x50
  1000. i++
  1001. i = encodeVarintExp(dAtA, i, uint64(m.AnchorScore))
  1002. }
  1003. if m.IsLevelTop != 0 {
  1004. dAtA[i] = 0x58
  1005. i++
  1006. i = encodeVarintExp(dAtA, i, uint64(m.IsLevelTop))
  1007. }
  1008. if m.XXX_unrecognized != nil {
  1009. i += copy(dAtA[i:], m.XXX_unrecognized)
  1010. }
  1011. return i, nil
  1012. }
  1013. func encodeVarintExp(dAtA []byte, offset int, v uint64) int {
  1014. for v >= 1<<7 {
  1015. dAtA[offset] = uint8(v&0x7f | 0x80)
  1016. v >>= 7
  1017. offset++
  1018. }
  1019. dAtA[offset] = uint8(v)
  1020. return offset + 1
  1021. }
  1022. func (m *AddUserExpReq) Size() (n int) {
  1023. if m == nil {
  1024. return 0
  1025. }
  1026. var l int
  1027. _ = l
  1028. if m.UserInfo != nil {
  1029. l = m.UserInfo.Size()
  1030. n += 1 + l + sovExp(uint64(l))
  1031. }
  1032. if m.XXX_unrecognized != nil {
  1033. n += len(m.XXX_unrecognized)
  1034. }
  1035. return n
  1036. }
  1037. func (m *UserExpChunk) Size() (n int) {
  1038. if m == nil {
  1039. return 0
  1040. }
  1041. var l int
  1042. _ = l
  1043. if m.Uid != 0 {
  1044. n += 1 + sovExp(uint64(m.Uid))
  1045. }
  1046. if m.ReqBiz != 0 {
  1047. n += 1 + sovExp(uint64(m.ReqBiz))
  1048. }
  1049. if m.Type != 0 {
  1050. n += 1 + sovExp(uint64(m.Type))
  1051. }
  1052. if m.Num != 0 {
  1053. n += 1 + sovExp(uint64(m.Num))
  1054. }
  1055. if m.XXX_unrecognized != nil {
  1056. n += len(m.XXX_unrecognized)
  1057. }
  1058. return n
  1059. }
  1060. func (m *AddUserExpResp) Size() (n int) {
  1061. if m == nil {
  1062. return 0
  1063. }
  1064. var l int
  1065. _ = l
  1066. if m.XXX_unrecognized != nil {
  1067. n += len(m.XXX_unrecognized)
  1068. }
  1069. return n
  1070. }
  1071. func (m *GetUserExpReq) Size() (n int) {
  1072. if m == nil {
  1073. return 0
  1074. }
  1075. var l int
  1076. _ = l
  1077. if len(m.Uids) > 0 {
  1078. l = 0
  1079. for _, e := range m.Uids {
  1080. l += sovExp(uint64(e))
  1081. }
  1082. n += 1 + sovExp(uint64(l)) + l
  1083. }
  1084. if m.XXX_unrecognized != nil {
  1085. n += len(m.XXX_unrecognized)
  1086. }
  1087. return n
  1088. }
  1089. func (m *GetUserExpResp) Size() (n int) {
  1090. if m == nil {
  1091. return 0
  1092. }
  1093. var l int
  1094. _ = l
  1095. if len(m.Data) > 0 {
  1096. for k, v := range m.Data {
  1097. _ = k
  1098. _ = v
  1099. l = 0
  1100. if v != nil {
  1101. l = v.Size()
  1102. l += 1 + sovExp(uint64(l))
  1103. }
  1104. mapEntrySize := 1 + sovExp(uint64(k)) + l
  1105. n += mapEntrySize + 1 + sovExp(uint64(mapEntrySize))
  1106. }
  1107. }
  1108. if m.XXX_unrecognized != nil {
  1109. n += len(m.XXX_unrecognized)
  1110. }
  1111. return n
  1112. }
  1113. func (m *LevelInfo) Size() (n int) {
  1114. if m == nil {
  1115. return 0
  1116. }
  1117. var l int
  1118. _ = l
  1119. if m.Uid != 0 {
  1120. n += 1 + sovExp(uint64(m.Uid))
  1121. }
  1122. if m.UserLevel != nil {
  1123. l = m.UserLevel.Size()
  1124. n += 1 + l + sovExp(uint64(l))
  1125. }
  1126. if m.AnchorLevel != nil {
  1127. l = m.AnchorLevel.Size()
  1128. n += 1 + l + sovExp(uint64(l))
  1129. }
  1130. if m.XXX_unrecognized != nil {
  1131. n += len(m.XXX_unrecognized)
  1132. }
  1133. return n
  1134. }
  1135. func (m *UserLevelInfo) Size() (n int) {
  1136. if m == nil {
  1137. return 0
  1138. }
  1139. var l int
  1140. _ = l
  1141. if m.Level != 0 {
  1142. n += 1 + sovExp(uint64(m.Level))
  1143. }
  1144. if m.NextLevel != 0 {
  1145. n += 1 + sovExp(uint64(m.NextLevel))
  1146. }
  1147. if m.UserExpLeft != 0 {
  1148. n += 1 + sovExp(uint64(m.UserExpLeft))
  1149. }
  1150. if m.UserExpRight != 0 {
  1151. n += 1 + sovExp(uint64(m.UserExpRight))
  1152. }
  1153. if m.UserExp != 0 {
  1154. n += 1 + sovExp(uint64(m.UserExp))
  1155. }
  1156. if m.UserExpNextLevel != 0 {
  1157. n += 1 + sovExp(uint64(m.UserExpNextLevel))
  1158. }
  1159. if m.Color != 0 {
  1160. n += 1 + sovExp(uint64(m.Color))
  1161. }
  1162. if m.UserExpNextLeft != 0 {
  1163. n += 1 + sovExp(uint64(m.UserExpNextLeft))
  1164. }
  1165. if m.UserExpNextRight != 0 {
  1166. n += 1 + sovExp(uint64(m.UserExpNextRight))
  1167. }
  1168. if m.IsLevelTop != 0 {
  1169. n += 1 + sovExp(uint64(m.IsLevelTop))
  1170. }
  1171. if m.XXX_unrecognized != nil {
  1172. n += len(m.XXX_unrecognized)
  1173. }
  1174. return n
  1175. }
  1176. func (m *AnchorLevelInfo) Size() (n int) {
  1177. if m == nil {
  1178. return 0
  1179. }
  1180. var l int
  1181. _ = l
  1182. if m.Level != 0 {
  1183. n += 1 + sovExp(uint64(m.Level))
  1184. }
  1185. if m.NextLevel != 0 {
  1186. n += 1 + sovExp(uint64(m.NextLevel))
  1187. }
  1188. if m.UserExpLeft != 0 {
  1189. n += 1 + sovExp(uint64(m.UserExpLeft))
  1190. }
  1191. if m.UserExpRight != 0 {
  1192. n += 1 + sovExp(uint64(m.UserExpRight))
  1193. }
  1194. if m.UserExp != 0 {
  1195. n += 1 + sovExp(uint64(m.UserExp))
  1196. }
  1197. if m.UserExpNextLevel != 0 {
  1198. n += 1 + sovExp(uint64(m.UserExpNextLevel))
  1199. }
  1200. if m.Color != 0 {
  1201. n += 1 + sovExp(uint64(m.Color))
  1202. }
  1203. if m.UserExpNextLeft != 0 {
  1204. n += 1 + sovExp(uint64(m.UserExpNextLeft))
  1205. }
  1206. if m.UserExpNextRight != 0 {
  1207. n += 1 + sovExp(uint64(m.UserExpNextRight))
  1208. }
  1209. if m.AnchorScore != 0 {
  1210. n += 1 + sovExp(uint64(m.AnchorScore))
  1211. }
  1212. if m.IsLevelTop != 0 {
  1213. n += 1 + sovExp(uint64(m.IsLevelTop))
  1214. }
  1215. if m.XXX_unrecognized != nil {
  1216. n += len(m.XXX_unrecognized)
  1217. }
  1218. return n
  1219. }
  1220. func sovExp(x uint64) (n int) {
  1221. for {
  1222. n++
  1223. x >>= 7
  1224. if x == 0 {
  1225. break
  1226. }
  1227. }
  1228. return n
  1229. }
  1230. func sozExp(x uint64) (n int) {
  1231. return sovExp(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1232. }
  1233. func (m *AddUserExpReq) Unmarshal(dAtA []byte) error {
  1234. l := len(dAtA)
  1235. iNdEx := 0
  1236. for iNdEx < l {
  1237. preIndex := iNdEx
  1238. var wire uint64
  1239. for shift := uint(0); ; shift += 7 {
  1240. if shift >= 64 {
  1241. return ErrIntOverflowExp
  1242. }
  1243. if iNdEx >= l {
  1244. return io.ErrUnexpectedEOF
  1245. }
  1246. b := dAtA[iNdEx]
  1247. iNdEx++
  1248. wire |= (uint64(b) & 0x7F) << shift
  1249. if b < 0x80 {
  1250. break
  1251. }
  1252. }
  1253. fieldNum := int32(wire >> 3)
  1254. wireType := int(wire & 0x7)
  1255. if wireType == 4 {
  1256. return fmt.Errorf("proto: AddUserExpReq: wiretype end group for non-group")
  1257. }
  1258. if fieldNum <= 0 {
  1259. return fmt.Errorf("proto: AddUserExpReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1260. }
  1261. switch fieldNum {
  1262. case 1:
  1263. if wireType != 2 {
  1264. return fmt.Errorf("proto: wrong wireType = %d for field UserInfo", wireType)
  1265. }
  1266. var msglen int
  1267. for shift := uint(0); ; shift += 7 {
  1268. if shift >= 64 {
  1269. return ErrIntOverflowExp
  1270. }
  1271. if iNdEx >= l {
  1272. return io.ErrUnexpectedEOF
  1273. }
  1274. b := dAtA[iNdEx]
  1275. iNdEx++
  1276. msglen |= (int(b) & 0x7F) << shift
  1277. if b < 0x80 {
  1278. break
  1279. }
  1280. }
  1281. if msglen < 0 {
  1282. return ErrInvalidLengthExp
  1283. }
  1284. postIndex := iNdEx + msglen
  1285. if postIndex > l {
  1286. return io.ErrUnexpectedEOF
  1287. }
  1288. if m.UserInfo == nil {
  1289. m.UserInfo = &UserExpChunk{}
  1290. }
  1291. if err := m.UserInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1292. return err
  1293. }
  1294. iNdEx = postIndex
  1295. default:
  1296. iNdEx = preIndex
  1297. skippy, err := skipExp(dAtA[iNdEx:])
  1298. if err != nil {
  1299. return err
  1300. }
  1301. if skippy < 0 {
  1302. return ErrInvalidLengthExp
  1303. }
  1304. if (iNdEx + skippy) > l {
  1305. return io.ErrUnexpectedEOF
  1306. }
  1307. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1308. iNdEx += skippy
  1309. }
  1310. }
  1311. if iNdEx > l {
  1312. return io.ErrUnexpectedEOF
  1313. }
  1314. return nil
  1315. }
  1316. func (m *UserExpChunk) Unmarshal(dAtA []byte) error {
  1317. l := len(dAtA)
  1318. iNdEx := 0
  1319. for iNdEx < l {
  1320. preIndex := iNdEx
  1321. var wire uint64
  1322. for shift := uint(0); ; shift += 7 {
  1323. if shift >= 64 {
  1324. return ErrIntOverflowExp
  1325. }
  1326. if iNdEx >= l {
  1327. return io.ErrUnexpectedEOF
  1328. }
  1329. b := dAtA[iNdEx]
  1330. iNdEx++
  1331. wire |= (uint64(b) & 0x7F) << shift
  1332. if b < 0x80 {
  1333. break
  1334. }
  1335. }
  1336. fieldNum := int32(wire >> 3)
  1337. wireType := int(wire & 0x7)
  1338. if wireType == 4 {
  1339. return fmt.Errorf("proto: UserExpChunk: wiretype end group for non-group")
  1340. }
  1341. if fieldNum <= 0 {
  1342. return fmt.Errorf("proto: UserExpChunk: illegal tag %d (wire type %d)", fieldNum, wire)
  1343. }
  1344. switch fieldNum {
  1345. case 1:
  1346. if wireType != 0 {
  1347. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1348. }
  1349. m.Uid = 0
  1350. for shift := uint(0); ; shift += 7 {
  1351. if shift >= 64 {
  1352. return ErrIntOverflowExp
  1353. }
  1354. if iNdEx >= l {
  1355. return io.ErrUnexpectedEOF
  1356. }
  1357. b := dAtA[iNdEx]
  1358. iNdEx++
  1359. m.Uid |= (int64(b) & 0x7F) << shift
  1360. if b < 0x80 {
  1361. break
  1362. }
  1363. }
  1364. case 2:
  1365. if wireType != 0 {
  1366. return fmt.Errorf("proto: wrong wireType = %d for field ReqBiz", wireType)
  1367. }
  1368. m.ReqBiz = 0
  1369. for shift := uint(0); ; shift += 7 {
  1370. if shift >= 64 {
  1371. return ErrIntOverflowExp
  1372. }
  1373. if iNdEx >= l {
  1374. return io.ErrUnexpectedEOF
  1375. }
  1376. b := dAtA[iNdEx]
  1377. iNdEx++
  1378. m.ReqBiz |= (int64(b) & 0x7F) << shift
  1379. if b < 0x80 {
  1380. break
  1381. }
  1382. }
  1383. case 3:
  1384. if wireType != 0 {
  1385. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1386. }
  1387. m.Type = 0
  1388. for shift := uint(0); ; shift += 7 {
  1389. if shift >= 64 {
  1390. return ErrIntOverflowExp
  1391. }
  1392. if iNdEx >= l {
  1393. return io.ErrUnexpectedEOF
  1394. }
  1395. b := dAtA[iNdEx]
  1396. iNdEx++
  1397. m.Type |= (int64(b) & 0x7F) << shift
  1398. if b < 0x80 {
  1399. break
  1400. }
  1401. }
  1402. case 4:
  1403. if wireType != 0 {
  1404. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  1405. }
  1406. m.Num = 0
  1407. for shift := uint(0); ; shift += 7 {
  1408. if shift >= 64 {
  1409. return ErrIntOverflowExp
  1410. }
  1411. if iNdEx >= l {
  1412. return io.ErrUnexpectedEOF
  1413. }
  1414. b := dAtA[iNdEx]
  1415. iNdEx++
  1416. m.Num |= (int64(b) & 0x7F) << shift
  1417. if b < 0x80 {
  1418. break
  1419. }
  1420. }
  1421. default:
  1422. iNdEx = preIndex
  1423. skippy, err := skipExp(dAtA[iNdEx:])
  1424. if err != nil {
  1425. return err
  1426. }
  1427. if skippy < 0 {
  1428. return ErrInvalidLengthExp
  1429. }
  1430. if (iNdEx + skippy) > l {
  1431. return io.ErrUnexpectedEOF
  1432. }
  1433. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1434. iNdEx += skippy
  1435. }
  1436. }
  1437. if iNdEx > l {
  1438. return io.ErrUnexpectedEOF
  1439. }
  1440. return nil
  1441. }
  1442. func (m *AddUserExpResp) Unmarshal(dAtA []byte) error {
  1443. l := len(dAtA)
  1444. iNdEx := 0
  1445. for iNdEx < l {
  1446. preIndex := iNdEx
  1447. var wire uint64
  1448. for shift := uint(0); ; shift += 7 {
  1449. if shift >= 64 {
  1450. return ErrIntOverflowExp
  1451. }
  1452. if iNdEx >= l {
  1453. return io.ErrUnexpectedEOF
  1454. }
  1455. b := dAtA[iNdEx]
  1456. iNdEx++
  1457. wire |= (uint64(b) & 0x7F) << shift
  1458. if b < 0x80 {
  1459. break
  1460. }
  1461. }
  1462. fieldNum := int32(wire >> 3)
  1463. wireType := int(wire & 0x7)
  1464. if wireType == 4 {
  1465. return fmt.Errorf("proto: AddUserExpResp: wiretype end group for non-group")
  1466. }
  1467. if fieldNum <= 0 {
  1468. return fmt.Errorf("proto: AddUserExpResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1469. }
  1470. switch fieldNum {
  1471. default:
  1472. iNdEx = preIndex
  1473. skippy, err := skipExp(dAtA[iNdEx:])
  1474. if err != nil {
  1475. return err
  1476. }
  1477. if skippy < 0 {
  1478. return ErrInvalidLengthExp
  1479. }
  1480. if (iNdEx + skippy) > l {
  1481. return io.ErrUnexpectedEOF
  1482. }
  1483. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1484. iNdEx += skippy
  1485. }
  1486. }
  1487. if iNdEx > l {
  1488. return io.ErrUnexpectedEOF
  1489. }
  1490. return nil
  1491. }
  1492. func (m *GetUserExpReq) Unmarshal(dAtA []byte) error {
  1493. l := len(dAtA)
  1494. iNdEx := 0
  1495. for iNdEx < l {
  1496. preIndex := iNdEx
  1497. var wire uint64
  1498. for shift := uint(0); ; shift += 7 {
  1499. if shift >= 64 {
  1500. return ErrIntOverflowExp
  1501. }
  1502. if iNdEx >= l {
  1503. return io.ErrUnexpectedEOF
  1504. }
  1505. b := dAtA[iNdEx]
  1506. iNdEx++
  1507. wire |= (uint64(b) & 0x7F) << shift
  1508. if b < 0x80 {
  1509. break
  1510. }
  1511. }
  1512. fieldNum := int32(wire >> 3)
  1513. wireType := int(wire & 0x7)
  1514. if wireType == 4 {
  1515. return fmt.Errorf("proto: GetUserExpReq: wiretype end group for non-group")
  1516. }
  1517. if fieldNum <= 0 {
  1518. return fmt.Errorf("proto: GetUserExpReq: illegal tag %d (wire type %d)", fieldNum, wire)
  1519. }
  1520. switch fieldNum {
  1521. case 1:
  1522. if wireType == 0 {
  1523. var v int64
  1524. for shift := uint(0); ; shift += 7 {
  1525. if shift >= 64 {
  1526. return ErrIntOverflowExp
  1527. }
  1528. if iNdEx >= l {
  1529. return io.ErrUnexpectedEOF
  1530. }
  1531. b := dAtA[iNdEx]
  1532. iNdEx++
  1533. v |= (int64(b) & 0x7F) << shift
  1534. if b < 0x80 {
  1535. break
  1536. }
  1537. }
  1538. m.Uids = append(m.Uids, v)
  1539. } else if wireType == 2 {
  1540. var packedLen int
  1541. for shift := uint(0); ; shift += 7 {
  1542. if shift >= 64 {
  1543. return ErrIntOverflowExp
  1544. }
  1545. if iNdEx >= l {
  1546. return io.ErrUnexpectedEOF
  1547. }
  1548. b := dAtA[iNdEx]
  1549. iNdEx++
  1550. packedLen |= (int(b) & 0x7F) << shift
  1551. if b < 0x80 {
  1552. break
  1553. }
  1554. }
  1555. if packedLen < 0 {
  1556. return ErrInvalidLengthExp
  1557. }
  1558. postIndex := iNdEx + packedLen
  1559. if postIndex > l {
  1560. return io.ErrUnexpectedEOF
  1561. }
  1562. var elementCount int
  1563. var count int
  1564. for _, integer := range dAtA {
  1565. if integer < 128 {
  1566. count++
  1567. }
  1568. }
  1569. elementCount = count
  1570. if elementCount != 0 && len(m.Uids) == 0 {
  1571. m.Uids = make([]int64, 0, elementCount)
  1572. }
  1573. for iNdEx < postIndex {
  1574. var v int64
  1575. for shift := uint(0); ; shift += 7 {
  1576. if shift >= 64 {
  1577. return ErrIntOverflowExp
  1578. }
  1579. if iNdEx >= l {
  1580. return io.ErrUnexpectedEOF
  1581. }
  1582. b := dAtA[iNdEx]
  1583. iNdEx++
  1584. v |= (int64(b) & 0x7F) << shift
  1585. if b < 0x80 {
  1586. break
  1587. }
  1588. }
  1589. m.Uids = append(m.Uids, v)
  1590. }
  1591. } else {
  1592. return fmt.Errorf("proto: wrong wireType = %d for field Uids", wireType)
  1593. }
  1594. default:
  1595. iNdEx = preIndex
  1596. skippy, err := skipExp(dAtA[iNdEx:])
  1597. if err != nil {
  1598. return err
  1599. }
  1600. if skippy < 0 {
  1601. return ErrInvalidLengthExp
  1602. }
  1603. if (iNdEx + skippy) > l {
  1604. return io.ErrUnexpectedEOF
  1605. }
  1606. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1607. iNdEx += skippy
  1608. }
  1609. }
  1610. if iNdEx > l {
  1611. return io.ErrUnexpectedEOF
  1612. }
  1613. return nil
  1614. }
  1615. func (m *GetUserExpResp) Unmarshal(dAtA []byte) error {
  1616. l := len(dAtA)
  1617. iNdEx := 0
  1618. for iNdEx < l {
  1619. preIndex := iNdEx
  1620. var wire uint64
  1621. for shift := uint(0); ; shift += 7 {
  1622. if shift >= 64 {
  1623. return ErrIntOverflowExp
  1624. }
  1625. if iNdEx >= l {
  1626. return io.ErrUnexpectedEOF
  1627. }
  1628. b := dAtA[iNdEx]
  1629. iNdEx++
  1630. wire |= (uint64(b) & 0x7F) << shift
  1631. if b < 0x80 {
  1632. break
  1633. }
  1634. }
  1635. fieldNum := int32(wire >> 3)
  1636. wireType := int(wire & 0x7)
  1637. if wireType == 4 {
  1638. return fmt.Errorf("proto: GetUserExpResp: wiretype end group for non-group")
  1639. }
  1640. if fieldNum <= 0 {
  1641. return fmt.Errorf("proto: GetUserExpResp: illegal tag %d (wire type %d)", fieldNum, wire)
  1642. }
  1643. switch fieldNum {
  1644. case 1:
  1645. if wireType != 2 {
  1646. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  1647. }
  1648. var msglen int
  1649. for shift := uint(0); ; shift += 7 {
  1650. if shift >= 64 {
  1651. return ErrIntOverflowExp
  1652. }
  1653. if iNdEx >= l {
  1654. return io.ErrUnexpectedEOF
  1655. }
  1656. b := dAtA[iNdEx]
  1657. iNdEx++
  1658. msglen |= (int(b) & 0x7F) << shift
  1659. if b < 0x80 {
  1660. break
  1661. }
  1662. }
  1663. if msglen < 0 {
  1664. return ErrInvalidLengthExp
  1665. }
  1666. postIndex := iNdEx + msglen
  1667. if postIndex > l {
  1668. return io.ErrUnexpectedEOF
  1669. }
  1670. if m.Data == nil {
  1671. m.Data = make(map[int64]*LevelInfo)
  1672. }
  1673. var mapkey int64
  1674. var mapvalue *LevelInfo
  1675. for iNdEx < postIndex {
  1676. entryPreIndex := iNdEx
  1677. var wire uint64
  1678. for shift := uint(0); ; shift += 7 {
  1679. if shift >= 64 {
  1680. return ErrIntOverflowExp
  1681. }
  1682. if iNdEx >= l {
  1683. return io.ErrUnexpectedEOF
  1684. }
  1685. b := dAtA[iNdEx]
  1686. iNdEx++
  1687. wire |= (uint64(b) & 0x7F) << shift
  1688. if b < 0x80 {
  1689. break
  1690. }
  1691. }
  1692. fieldNum := int32(wire >> 3)
  1693. if fieldNum == 1 {
  1694. for shift := uint(0); ; shift += 7 {
  1695. if shift >= 64 {
  1696. return ErrIntOverflowExp
  1697. }
  1698. if iNdEx >= l {
  1699. return io.ErrUnexpectedEOF
  1700. }
  1701. b := dAtA[iNdEx]
  1702. iNdEx++
  1703. mapkey |= (int64(b) & 0x7F) << shift
  1704. if b < 0x80 {
  1705. break
  1706. }
  1707. }
  1708. } else if fieldNum == 2 {
  1709. var mapmsglen int
  1710. for shift := uint(0); ; shift += 7 {
  1711. if shift >= 64 {
  1712. return ErrIntOverflowExp
  1713. }
  1714. if iNdEx >= l {
  1715. return io.ErrUnexpectedEOF
  1716. }
  1717. b := dAtA[iNdEx]
  1718. iNdEx++
  1719. mapmsglen |= (int(b) & 0x7F) << shift
  1720. if b < 0x80 {
  1721. break
  1722. }
  1723. }
  1724. if mapmsglen < 0 {
  1725. return ErrInvalidLengthExp
  1726. }
  1727. postmsgIndex := iNdEx + mapmsglen
  1728. if mapmsglen < 0 {
  1729. return ErrInvalidLengthExp
  1730. }
  1731. if postmsgIndex > l {
  1732. return io.ErrUnexpectedEOF
  1733. }
  1734. mapvalue = &LevelInfo{}
  1735. if err := mapvalue.Unmarshal(dAtA[iNdEx:postmsgIndex]); err != nil {
  1736. return err
  1737. }
  1738. iNdEx = postmsgIndex
  1739. } else {
  1740. iNdEx = entryPreIndex
  1741. skippy, err := skipExp(dAtA[iNdEx:])
  1742. if err != nil {
  1743. return err
  1744. }
  1745. if skippy < 0 {
  1746. return ErrInvalidLengthExp
  1747. }
  1748. if (iNdEx + skippy) > postIndex {
  1749. return io.ErrUnexpectedEOF
  1750. }
  1751. iNdEx += skippy
  1752. }
  1753. }
  1754. m.Data[mapkey] = mapvalue
  1755. iNdEx = postIndex
  1756. default:
  1757. iNdEx = preIndex
  1758. skippy, err := skipExp(dAtA[iNdEx:])
  1759. if err != nil {
  1760. return err
  1761. }
  1762. if skippy < 0 {
  1763. return ErrInvalidLengthExp
  1764. }
  1765. if (iNdEx + skippy) > l {
  1766. return io.ErrUnexpectedEOF
  1767. }
  1768. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1769. iNdEx += skippy
  1770. }
  1771. }
  1772. if iNdEx > l {
  1773. return io.ErrUnexpectedEOF
  1774. }
  1775. return nil
  1776. }
  1777. func (m *LevelInfo) Unmarshal(dAtA []byte) error {
  1778. l := len(dAtA)
  1779. iNdEx := 0
  1780. for iNdEx < l {
  1781. preIndex := iNdEx
  1782. var wire uint64
  1783. for shift := uint(0); ; shift += 7 {
  1784. if shift >= 64 {
  1785. return ErrIntOverflowExp
  1786. }
  1787. if iNdEx >= l {
  1788. return io.ErrUnexpectedEOF
  1789. }
  1790. b := dAtA[iNdEx]
  1791. iNdEx++
  1792. wire |= (uint64(b) & 0x7F) << shift
  1793. if b < 0x80 {
  1794. break
  1795. }
  1796. }
  1797. fieldNum := int32(wire >> 3)
  1798. wireType := int(wire & 0x7)
  1799. if wireType == 4 {
  1800. return fmt.Errorf("proto: LevelInfo: wiretype end group for non-group")
  1801. }
  1802. if fieldNum <= 0 {
  1803. return fmt.Errorf("proto: LevelInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1804. }
  1805. switch fieldNum {
  1806. case 1:
  1807. if wireType != 0 {
  1808. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  1809. }
  1810. m.Uid = 0
  1811. for shift := uint(0); ; shift += 7 {
  1812. if shift >= 64 {
  1813. return ErrIntOverflowExp
  1814. }
  1815. if iNdEx >= l {
  1816. return io.ErrUnexpectedEOF
  1817. }
  1818. b := dAtA[iNdEx]
  1819. iNdEx++
  1820. m.Uid |= (int64(b) & 0x7F) << shift
  1821. if b < 0x80 {
  1822. break
  1823. }
  1824. }
  1825. case 2:
  1826. if wireType != 2 {
  1827. return fmt.Errorf("proto: wrong wireType = %d for field UserLevel", wireType)
  1828. }
  1829. var msglen int
  1830. for shift := uint(0); ; shift += 7 {
  1831. if shift >= 64 {
  1832. return ErrIntOverflowExp
  1833. }
  1834. if iNdEx >= l {
  1835. return io.ErrUnexpectedEOF
  1836. }
  1837. b := dAtA[iNdEx]
  1838. iNdEx++
  1839. msglen |= (int(b) & 0x7F) << shift
  1840. if b < 0x80 {
  1841. break
  1842. }
  1843. }
  1844. if msglen < 0 {
  1845. return ErrInvalidLengthExp
  1846. }
  1847. postIndex := iNdEx + msglen
  1848. if postIndex > l {
  1849. return io.ErrUnexpectedEOF
  1850. }
  1851. if m.UserLevel == nil {
  1852. m.UserLevel = &UserLevelInfo{}
  1853. }
  1854. if err := m.UserLevel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1855. return err
  1856. }
  1857. iNdEx = postIndex
  1858. case 3:
  1859. if wireType != 2 {
  1860. return fmt.Errorf("proto: wrong wireType = %d for field AnchorLevel", wireType)
  1861. }
  1862. var msglen int
  1863. for shift := uint(0); ; shift += 7 {
  1864. if shift >= 64 {
  1865. return ErrIntOverflowExp
  1866. }
  1867. if iNdEx >= l {
  1868. return io.ErrUnexpectedEOF
  1869. }
  1870. b := dAtA[iNdEx]
  1871. iNdEx++
  1872. msglen |= (int(b) & 0x7F) << shift
  1873. if b < 0x80 {
  1874. break
  1875. }
  1876. }
  1877. if msglen < 0 {
  1878. return ErrInvalidLengthExp
  1879. }
  1880. postIndex := iNdEx + msglen
  1881. if postIndex > l {
  1882. return io.ErrUnexpectedEOF
  1883. }
  1884. if m.AnchorLevel == nil {
  1885. m.AnchorLevel = &AnchorLevelInfo{}
  1886. }
  1887. if err := m.AnchorLevel.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1888. return err
  1889. }
  1890. iNdEx = postIndex
  1891. default:
  1892. iNdEx = preIndex
  1893. skippy, err := skipExp(dAtA[iNdEx:])
  1894. if err != nil {
  1895. return err
  1896. }
  1897. if skippy < 0 {
  1898. return ErrInvalidLengthExp
  1899. }
  1900. if (iNdEx + skippy) > l {
  1901. return io.ErrUnexpectedEOF
  1902. }
  1903. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  1904. iNdEx += skippy
  1905. }
  1906. }
  1907. if iNdEx > l {
  1908. return io.ErrUnexpectedEOF
  1909. }
  1910. return nil
  1911. }
  1912. func (m *UserLevelInfo) Unmarshal(dAtA []byte) error {
  1913. l := len(dAtA)
  1914. iNdEx := 0
  1915. for iNdEx < l {
  1916. preIndex := iNdEx
  1917. var wire uint64
  1918. for shift := uint(0); ; shift += 7 {
  1919. if shift >= 64 {
  1920. return ErrIntOverflowExp
  1921. }
  1922. if iNdEx >= l {
  1923. return io.ErrUnexpectedEOF
  1924. }
  1925. b := dAtA[iNdEx]
  1926. iNdEx++
  1927. wire |= (uint64(b) & 0x7F) << shift
  1928. if b < 0x80 {
  1929. break
  1930. }
  1931. }
  1932. fieldNum := int32(wire >> 3)
  1933. wireType := int(wire & 0x7)
  1934. if wireType == 4 {
  1935. return fmt.Errorf("proto: UserLevelInfo: wiretype end group for non-group")
  1936. }
  1937. if fieldNum <= 0 {
  1938. return fmt.Errorf("proto: UserLevelInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  1939. }
  1940. switch fieldNum {
  1941. case 1:
  1942. if wireType != 0 {
  1943. return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
  1944. }
  1945. m.Level = 0
  1946. for shift := uint(0); ; shift += 7 {
  1947. if shift >= 64 {
  1948. return ErrIntOverflowExp
  1949. }
  1950. if iNdEx >= l {
  1951. return io.ErrUnexpectedEOF
  1952. }
  1953. b := dAtA[iNdEx]
  1954. iNdEx++
  1955. m.Level |= (int64(b) & 0x7F) << shift
  1956. if b < 0x80 {
  1957. break
  1958. }
  1959. }
  1960. case 2:
  1961. if wireType != 0 {
  1962. return fmt.Errorf("proto: wrong wireType = %d for field NextLevel", wireType)
  1963. }
  1964. m.NextLevel = 0
  1965. for shift := uint(0); ; shift += 7 {
  1966. if shift >= 64 {
  1967. return ErrIntOverflowExp
  1968. }
  1969. if iNdEx >= l {
  1970. return io.ErrUnexpectedEOF
  1971. }
  1972. b := dAtA[iNdEx]
  1973. iNdEx++
  1974. m.NextLevel |= (int64(b) & 0x7F) << shift
  1975. if b < 0x80 {
  1976. break
  1977. }
  1978. }
  1979. case 3:
  1980. if wireType != 0 {
  1981. return fmt.Errorf("proto: wrong wireType = %d for field UserExpLeft", wireType)
  1982. }
  1983. m.UserExpLeft = 0
  1984. for shift := uint(0); ; shift += 7 {
  1985. if shift >= 64 {
  1986. return ErrIntOverflowExp
  1987. }
  1988. if iNdEx >= l {
  1989. return io.ErrUnexpectedEOF
  1990. }
  1991. b := dAtA[iNdEx]
  1992. iNdEx++
  1993. m.UserExpLeft |= (int64(b) & 0x7F) << shift
  1994. if b < 0x80 {
  1995. break
  1996. }
  1997. }
  1998. case 4:
  1999. if wireType != 0 {
  2000. return fmt.Errorf("proto: wrong wireType = %d for field UserExpRight", wireType)
  2001. }
  2002. m.UserExpRight = 0
  2003. for shift := uint(0); ; shift += 7 {
  2004. if shift >= 64 {
  2005. return ErrIntOverflowExp
  2006. }
  2007. if iNdEx >= l {
  2008. return io.ErrUnexpectedEOF
  2009. }
  2010. b := dAtA[iNdEx]
  2011. iNdEx++
  2012. m.UserExpRight |= (int64(b) & 0x7F) << shift
  2013. if b < 0x80 {
  2014. break
  2015. }
  2016. }
  2017. case 5:
  2018. if wireType != 0 {
  2019. return fmt.Errorf("proto: wrong wireType = %d for field UserExp", wireType)
  2020. }
  2021. m.UserExp = 0
  2022. for shift := uint(0); ; shift += 7 {
  2023. if shift >= 64 {
  2024. return ErrIntOverflowExp
  2025. }
  2026. if iNdEx >= l {
  2027. return io.ErrUnexpectedEOF
  2028. }
  2029. b := dAtA[iNdEx]
  2030. iNdEx++
  2031. m.UserExp |= (int64(b) & 0x7F) << shift
  2032. if b < 0x80 {
  2033. break
  2034. }
  2035. }
  2036. case 6:
  2037. if wireType != 0 {
  2038. return fmt.Errorf("proto: wrong wireType = %d for field UserExpNextLevel", wireType)
  2039. }
  2040. m.UserExpNextLevel = 0
  2041. for shift := uint(0); ; shift += 7 {
  2042. if shift >= 64 {
  2043. return ErrIntOverflowExp
  2044. }
  2045. if iNdEx >= l {
  2046. return io.ErrUnexpectedEOF
  2047. }
  2048. b := dAtA[iNdEx]
  2049. iNdEx++
  2050. m.UserExpNextLevel |= (int64(b) & 0x7F) << shift
  2051. if b < 0x80 {
  2052. break
  2053. }
  2054. }
  2055. case 7:
  2056. if wireType != 0 {
  2057. return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType)
  2058. }
  2059. m.Color = 0
  2060. for shift := uint(0); ; shift += 7 {
  2061. if shift >= 64 {
  2062. return ErrIntOverflowExp
  2063. }
  2064. if iNdEx >= l {
  2065. return io.ErrUnexpectedEOF
  2066. }
  2067. b := dAtA[iNdEx]
  2068. iNdEx++
  2069. m.Color |= (int64(b) & 0x7F) << shift
  2070. if b < 0x80 {
  2071. break
  2072. }
  2073. }
  2074. case 8:
  2075. if wireType != 0 {
  2076. return fmt.Errorf("proto: wrong wireType = %d for field UserExpNextLeft", wireType)
  2077. }
  2078. m.UserExpNextLeft = 0
  2079. for shift := uint(0); ; shift += 7 {
  2080. if shift >= 64 {
  2081. return ErrIntOverflowExp
  2082. }
  2083. if iNdEx >= l {
  2084. return io.ErrUnexpectedEOF
  2085. }
  2086. b := dAtA[iNdEx]
  2087. iNdEx++
  2088. m.UserExpNextLeft |= (int64(b) & 0x7F) << shift
  2089. if b < 0x80 {
  2090. break
  2091. }
  2092. }
  2093. case 9:
  2094. if wireType != 0 {
  2095. return fmt.Errorf("proto: wrong wireType = %d for field UserExpNextRight", wireType)
  2096. }
  2097. m.UserExpNextRight = 0
  2098. for shift := uint(0); ; shift += 7 {
  2099. if shift >= 64 {
  2100. return ErrIntOverflowExp
  2101. }
  2102. if iNdEx >= l {
  2103. return io.ErrUnexpectedEOF
  2104. }
  2105. b := dAtA[iNdEx]
  2106. iNdEx++
  2107. m.UserExpNextRight |= (int64(b) & 0x7F) << shift
  2108. if b < 0x80 {
  2109. break
  2110. }
  2111. }
  2112. case 10:
  2113. if wireType != 0 {
  2114. return fmt.Errorf("proto: wrong wireType = %d for field IsLevelTop", wireType)
  2115. }
  2116. m.IsLevelTop = 0
  2117. for shift := uint(0); ; shift += 7 {
  2118. if shift >= 64 {
  2119. return ErrIntOverflowExp
  2120. }
  2121. if iNdEx >= l {
  2122. return io.ErrUnexpectedEOF
  2123. }
  2124. b := dAtA[iNdEx]
  2125. iNdEx++
  2126. m.IsLevelTop |= (int64(b) & 0x7F) << shift
  2127. if b < 0x80 {
  2128. break
  2129. }
  2130. }
  2131. default:
  2132. iNdEx = preIndex
  2133. skippy, err := skipExp(dAtA[iNdEx:])
  2134. if err != nil {
  2135. return err
  2136. }
  2137. if skippy < 0 {
  2138. return ErrInvalidLengthExp
  2139. }
  2140. if (iNdEx + skippy) > l {
  2141. return io.ErrUnexpectedEOF
  2142. }
  2143. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2144. iNdEx += skippy
  2145. }
  2146. }
  2147. if iNdEx > l {
  2148. return io.ErrUnexpectedEOF
  2149. }
  2150. return nil
  2151. }
  2152. func (m *AnchorLevelInfo) Unmarshal(dAtA []byte) error {
  2153. l := len(dAtA)
  2154. iNdEx := 0
  2155. for iNdEx < l {
  2156. preIndex := iNdEx
  2157. var wire uint64
  2158. for shift := uint(0); ; shift += 7 {
  2159. if shift >= 64 {
  2160. return ErrIntOverflowExp
  2161. }
  2162. if iNdEx >= l {
  2163. return io.ErrUnexpectedEOF
  2164. }
  2165. b := dAtA[iNdEx]
  2166. iNdEx++
  2167. wire |= (uint64(b) & 0x7F) << shift
  2168. if b < 0x80 {
  2169. break
  2170. }
  2171. }
  2172. fieldNum := int32(wire >> 3)
  2173. wireType := int(wire & 0x7)
  2174. if wireType == 4 {
  2175. return fmt.Errorf("proto: AnchorLevelInfo: wiretype end group for non-group")
  2176. }
  2177. if fieldNum <= 0 {
  2178. return fmt.Errorf("proto: AnchorLevelInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2179. }
  2180. switch fieldNum {
  2181. case 1:
  2182. if wireType != 0 {
  2183. return fmt.Errorf("proto: wrong wireType = %d for field Level", wireType)
  2184. }
  2185. m.Level = 0
  2186. for shift := uint(0); ; shift += 7 {
  2187. if shift >= 64 {
  2188. return ErrIntOverflowExp
  2189. }
  2190. if iNdEx >= l {
  2191. return io.ErrUnexpectedEOF
  2192. }
  2193. b := dAtA[iNdEx]
  2194. iNdEx++
  2195. m.Level |= (int64(b) & 0x7F) << shift
  2196. if b < 0x80 {
  2197. break
  2198. }
  2199. }
  2200. case 2:
  2201. if wireType != 0 {
  2202. return fmt.Errorf("proto: wrong wireType = %d for field NextLevel", wireType)
  2203. }
  2204. m.NextLevel = 0
  2205. for shift := uint(0); ; shift += 7 {
  2206. if shift >= 64 {
  2207. return ErrIntOverflowExp
  2208. }
  2209. if iNdEx >= l {
  2210. return io.ErrUnexpectedEOF
  2211. }
  2212. b := dAtA[iNdEx]
  2213. iNdEx++
  2214. m.NextLevel |= (int64(b) & 0x7F) << shift
  2215. if b < 0x80 {
  2216. break
  2217. }
  2218. }
  2219. case 3:
  2220. if wireType != 0 {
  2221. return fmt.Errorf("proto: wrong wireType = %d for field UserExpLeft", wireType)
  2222. }
  2223. m.UserExpLeft = 0
  2224. for shift := uint(0); ; shift += 7 {
  2225. if shift >= 64 {
  2226. return ErrIntOverflowExp
  2227. }
  2228. if iNdEx >= l {
  2229. return io.ErrUnexpectedEOF
  2230. }
  2231. b := dAtA[iNdEx]
  2232. iNdEx++
  2233. m.UserExpLeft |= (int64(b) & 0x7F) << shift
  2234. if b < 0x80 {
  2235. break
  2236. }
  2237. }
  2238. case 4:
  2239. if wireType != 0 {
  2240. return fmt.Errorf("proto: wrong wireType = %d for field UserExpRight", wireType)
  2241. }
  2242. m.UserExpRight = 0
  2243. for shift := uint(0); ; shift += 7 {
  2244. if shift >= 64 {
  2245. return ErrIntOverflowExp
  2246. }
  2247. if iNdEx >= l {
  2248. return io.ErrUnexpectedEOF
  2249. }
  2250. b := dAtA[iNdEx]
  2251. iNdEx++
  2252. m.UserExpRight |= (int64(b) & 0x7F) << shift
  2253. if b < 0x80 {
  2254. break
  2255. }
  2256. }
  2257. case 5:
  2258. if wireType != 0 {
  2259. return fmt.Errorf("proto: wrong wireType = %d for field UserExp", wireType)
  2260. }
  2261. m.UserExp = 0
  2262. for shift := uint(0); ; shift += 7 {
  2263. if shift >= 64 {
  2264. return ErrIntOverflowExp
  2265. }
  2266. if iNdEx >= l {
  2267. return io.ErrUnexpectedEOF
  2268. }
  2269. b := dAtA[iNdEx]
  2270. iNdEx++
  2271. m.UserExp |= (int64(b) & 0x7F) << shift
  2272. if b < 0x80 {
  2273. break
  2274. }
  2275. }
  2276. case 6:
  2277. if wireType != 0 {
  2278. return fmt.Errorf("proto: wrong wireType = %d for field UserExpNextLevel", wireType)
  2279. }
  2280. m.UserExpNextLevel = 0
  2281. for shift := uint(0); ; shift += 7 {
  2282. if shift >= 64 {
  2283. return ErrIntOverflowExp
  2284. }
  2285. if iNdEx >= l {
  2286. return io.ErrUnexpectedEOF
  2287. }
  2288. b := dAtA[iNdEx]
  2289. iNdEx++
  2290. m.UserExpNextLevel |= (int64(b) & 0x7F) << shift
  2291. if b < 0x80 {
  2292. break
  2293. }
  2294. }
  2295. case 7:
  2296. if wireType != 0 {
  2297. return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType)
  2298. }
  2299. m.Color = 0
  2300. for shift := uint(0); ; shift += 7 {
  2301. if shift >= 64 {
  2302. return ErrIntOverflowExp
  2303. }
  2304. if iNdEx >= l {
  2305. return io.ErrUnexpectedEOF
  2306. }
  2307. b := dAtA[iNdEx]
  2308. iNdEx++
  2309. m.Color |= (int64(b) & 0x7F) << shift
  2310. if b < 0x80 {
  2311. break
  2312. }
  2313. }
  2314. case 8:
  2315. if wireType != 0 {
  2316. return fmt.Errorf("proto: wrong wireType = %d for field UserExpNextLeft", wireType)
  2317. }
  2318. m.UserExpNextLeft = 0
  2319. for shift := uint(0); ; shift += 7 {
  2320. if shift >= 64 {
  2321. return ErrIntOverflowExp
  2322. }
  2323. if iNdEx >= l {
  2324. return io.ErrUnexpectedEOF
  2325. }
  2326. b := dAtA[iNdEx]
  2327. iNdEx++
  2328. m.UserExpNextLeft |= (int64(b) & 0x7F) << shift
  2329. if b < 0x80 {
  2330. break
  2331. }
  2332. }
  2333. case 9:
  2334. if wireType != 0 {
  2335. return fmt.Errorf("proto: wrong wireType = %d for field UserExpNextRight", wireType)
  2336. }
  2337. m.UserExpNextRight = 0
  2338. for shift := uint(0); ; shift += 7 {
  2339. if shift >= 64 {
  2340. return ErrIntOverflowExp
  2341. }
  2342. if iNdEx >= l {
  2343. return io.ErrUnexpectedEOF
  2344. }
  2345. b := dAtA[iNdEx]
  2346. iNdEx++
  2347. m.UserExpNextRight |= (int64(b) & 0x7F) << shift
  2348. if b < 0x80 {
  2349. break
  2350. }
  2351. }
  2352. case 10:
  2353. if wireType != 0 {
  2354. return fmt.Errorf("proto: wrong wireType = %d for field AnchorScore", wireType)
  2355. }
  2356. m.AnchorScore = 0
  2357. for shift := uint(0); ; shift += 7 {
  2358. if shift >= 64 {
  2359. return ErrIntOverflowExp
  2360. }
  2361. if iNdEx >= l {
  2362. return io.ErrUnexpectedEOF
  2363. }
  2364. b := dAtA[iNdEx]
  2365. iNdEx++
  2366. m.AnchorScore |= (int64(b) & 0x7F) << shift
  2367. if b < 0x80 {
  2368. break
  2369. }
  2370. }
  2371. case 11:
  2372. if wireType != 0 {
  2373. return fmt.Errorf("proto: wrong wireType = %d for field IsLevelTop", wireType)
  2374. }
  2375. m.IsLevelTop = 0
  2376. for shift := uint(0); ; shift += 7 {
  2377. if shift >= 64 {
  2378. return ErrIntOverflowExp
  2379. }
  2380. if iNdEx >= l {
  2381. return io.ErrUnexpectedEOF
  2382. }
  2383. b := dAtA[iNdEx]
  2384. iNdEx++
  2385. m.IsLevelTop |= (int64(b) & 0x7F) << shift
  2386. if b < 0x80 {
  2387. break
  2388. }
  2389. }
  2390. default:
  2391. iNdEx = preIndex
  2392. skippy, err := skipExp(dAtA[iNdEx:])
  2393. if err != nil {
  2394. return err
  2395. }
  2396. if skippy < 0 {
  2397. return ErrInvalidLengthExp
  2398. }
  2399. if (iNdEx + skippy) > l {
  2400. return io.ErrUnexpectedEOF
  2401. }
  2402. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  2403. iNdEx += skippy
  2404. }
  2405. }
  2406. if iNdEx > l {
  2407. return io.ErrUnexpectedEOF
  2408. }
  2409. return nil
  2410. }
  2411. func skipExp(dAtA []byte) (n int, err error) {
  2412. l := len(dAtA)
  2413. iNdEx := 0
  2414. for iNdEx < l {
  2415. var wire uint64
  2416. for shift := uint(0); ; shift += 7 {
  2417. if shift >= 64 {
  2418. return 0, ErrIntOverflowExp
  2419. }
  2420. if iNdEx >= l {
  2421. return 0, io.ErrUnexpectedEOF
  2422. }
  2423. b := dAtA[iNdEx]
  2424. iNdEx++
  2425. wire |= (uint64(b) & 0x7F) << shift
  2426. if b < 0x80 {
  2427. break
  2428. }
  2429. }
  2430. wireType := int(wire & 0x7)
  2431. switch wireType {
  2432. case 0:
  2433. for shift := uint(0); ; shift += 7 {
  2434. if shift >= 64 {
  2435. return 0, ErrIntOverflowExp
  2436. }
  2437. if iNdEx >= l {
  2438. return 0, io.ErrUnexpectedEOF
  2439. }
  2440. iNdEx++
  2441. if dAtA[iNdEx-1] < 0x80 {
  2442. break
  2443. }
  2444. }
  2445. return iNdEx, nil
  2446. case 1:
  2447. iNdEx += 8
  2448. return iNdEx, nil
  2449. case 2:
  2450. var length int
  2451. for shift := uint(0); ; shift += 7 {
  2452. if shift >= 64 {
  2453. return 0, ErrIntOverflowExp
  2454. }
  2455. if iNdEx >= l {
  2456. return 0, io.ErrUnexpectedEOF
  2457. }
  2458. b := dAtA[iNdEx]
  2459. iNdEx++
  2460. length |= (int(b) & 0x7F) << shift
  2461. if b < 0x80 {
  2462. break
  2463. }
  2464. }
  2465. iNdEx += length
  2466. if length < 0 {
  2467. return 0, ErrInvalidLengthExp
  2468. }
  2469. return iNdEx, nil
  2470. case 3:
  2471. for {
  2472. var innerWire uint64
  2473. var start int = iNdEx
  2474. for shift := uint(0); ; shift += 7 {
  2475. if shift >= 64 {
  2476. return 0, ErrIntOverflowExp
  2477. }
  2478. if iNdEx >= l {
  2479. return 0, io.ErrUnexpectedEOF
  2480. }
  2481. b := dAtA[iNdEx]
  2482. iNdEx++
  2483. innerWire |= (uint64(b) & 0x7F) << shift
  2484. if b < 0x80 {
  2485. break
  2486. }
  2487. }
  2488. innerWireType := int(innerWire & 0x7)
  2489. if innerWireType == 4 {
  2490. break
  2491. }
  2492. next, err := skipExp(dAtA[start:])
  2493. if err != nil {
  2494. return 0, err
  2495. }
  2496. iNdEx = start + next
  2497. }
  2498. return iNdEx, nil
  2499. case 4:
  2500. return iNdEx, nil
  2501. case 5:
  2502. iNdEx += 4
  2503. return iNdEx, nil
  2504. default:
  2505. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2506. }
  2507. }
  2508. panic("unreachable")
  2509. }
  2510. var (
  2511. ErrInvalidLengthExp = fmt.Errorf("proto: negative length found during unmarshaling")
  2512. ErrIntOverflowExp = fmt.Errorf("proto: integer overflow")
  2513. )
  2514. func init() {
  2515. proto.RegisterFile("app/service/live/xuser/api/grpc/v1/exp.proto", fileDescriptor_exp_57cf1a328d2a0c19)
  2516. }
  2517. var fileDescriptor_exp_57cf1a328d2a0c19 = []byte{
  2518. // 767 bytes of a gzipped FileDescriptorProto
  2519. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x56, 0xcf, 0x6e, 0xd3, 0x4c,
  2520. 0x10, 0x97, 0x93, 0xb4, 0x69, 0x26, 0x4d, 0x1b, 0xed, 0xf7, 0x1d, 0xfc, 0xf5, 0x2b, 0xd9, 0xca,
  2521. 0xfc, 0x69, 0x25, 0x8a, 0x4d, 0x02, 0x07, 0xa8, 0x5a, 0x41, 0x03, 0x15, 0xaa, 0x54, 0x90, 0xba,
  2522. 0xc0, 0x85, 0x0b, 0x38, 0xf1, 0x26, 0xb1, 0x9a, 0xc4, 0x8e, 0x63, 0x5b, 0x69, 0x6f, 0x88, 0x07,
  2523. 0xe1, 0xce, 0x03, 0xf0, 0x04, 0x1c, 0x38, 0xf2, 0x04, 0x16, 0xea, 0xd1, 0xc7, 0x3e, 0x01, 0xf2,
  2524. 0xae, 0x13, 0xaf, 0x9d, 0x2a, 0x9c, 0x91, 0xb8, 0xc4, 0x33, 0xbf, 0x99, 0xdf, 0x6f, 0xc7, 0x3b,
  2525. 0xa3, 0x71, 0x60, 0x57, 0xb7, 0x6d, 0x6d, 0x4c, 0x1d, 0xdf, 0x6c, 0x53, 0xad, 0x6f, 0xfa, 0x54,
  2526. 0x9b, 0x78, 0x63, 0xea, 0x68, 0xba, 0x6d, 0x6a, 0x5d, 0xc7, 0x6e, 0x6b, 0x7e, 0x5d, 0xa3, 0x13,
  2527. 0x5b, 0xb5, 0x1d, 0xcb, 0xb5, 0x50, 0x25, 0xca, 0x50, 0x59, 0x86, 0xea, 0xd7, 0x37, 0xee, 0x75,
  2528. 0x4d, 0xb7, 0xe7, 0xb5, 0xd4, 0xb6, 0x35, 0xd0, 0xba, 0x56, 0xd7, 0xd2, 0x58, 0x56, 0xcb, 0xeb,
  2529. 0x30, 0x8f, 0x39, 0xcc, 0xe2, 0x6c, 0x65, 0x04, 0x95, 0x43, 0xc3, 0x78, 0x3b, 0xa6, 0xce, 0xd1,
  2530. 0xc4, 0x26, 0x74, 0x84, 0x3e, 0xc0, 0x4a, 0x24, 0x75, 0x3c, 0xec, 0x58, 0xb2, 0xb4, 0x25, 0xed,
  2531. 0x94, 0x1b, 0xff, 0xab, 0xa9, 0x13, 0xd4, 0x38, 0xf9, 0x59, 0xcf, 0x1b, 0x9e, 0x35, 0xb7, 0xaf,
  2532. 0x02, 0x7c, 0xb3, 0x63, 0x39, 0x83, 0x3d, 0x65, 0x4a, 0x53, 0xb6, 0x7c, 0xbd, 0x6f, 0x1a, 0xba,
  2533. 0x4b, 0xf7, 0x14, 0x87, 0x8e, 0x3c, 0xd3, 0xa1, 0x86, 0x42, 0x66, 0xaa, 0xca, 0xa7, 0x1c, 0xac,
  2534. 0x8a, 0x1a, 0xe8, 0x31, 0xe4, 0x3d, 0xd3, 0x60, 0xa7, 0xe5, 0x53, 0x82, 0xa6, 0x21, 0x6a, 0x75,
  2535. 0xdd, 0x83, 0xfb, 0xbb, 0x89, 0x60, 0xc4, 0x41, 0x4f, 0xa0, 0xe8, 0xd0, 0xd1, 0xfb, 0x96, 0x79,
  2536. 0x21, 0xe7, 0x18, 0xfd, 0xce, 0x55, 0x80, 0x15, 0x4e, 0x8f, 0x03, 0xd7, 0x97, 0xb3, 0xec, 0xd0,
  2537. 0x51, 0xd3, 0xbc, 0x40, 0xfb, 0x50, 0x70, 0xcf, 0x6d, 0x2a, 0xe7, 0x19, 0x7b, 0xe7, 0x2a, 0xc0,
  2538. 0xb7, 0x38, 0x3b, 0x42, 0x17, 0x9c, 0xce, 0x58, 0x51, 0xe5, 0x43, 0x6f, 0x20, 0x17, 0xb2, 0x95,
  2539. 0x0f, 0xbd, 0xc1, 0xa2, 0xca, 0xa3, 0x70, 0x15, 0xd6, 0xc4, 0x8b, 0x1f, 0xdb, 0xca, 0x4b, 0xa8,
  2540. 0xbc, 0xa0, 0xae, 0xd0, 0x8a, 0x7d, 0x28, 0x78, 0xa6, 0x31, 0x96, 0xa5, 0xad, 0x7c, 0xba, 0xb6,
  2541. 0x08, 0x5d, 0x54, 0x1b, 0x8b, 0x7f, 0x91, 0x60, 0x4d, 0xd4, 0x1b, 0xdb, 0xe8, 0x08, 0x0a, 0x86,
  2542. 0xee, 0xea, 0x4c, 0xb0, 0xdc, 0xd8, 0xce, 0xf4, 0x35, 0x9d, 0xac, 0x3e, 0xd7, 0x5d, 0xfd, 0x68,
  2543. 0xe8, 0x3a, 0xe7, 0xcd, 0x95, 0x30, 0xc0, 0x8c, 0x48, 0xd8, 0xef, 0xc6, 0x29, 0x94, 0x66, 0x41,
  2544. 0x54, 0x85, 0xfc, 0x19, 0x3d, 0xe7, 0xcd, 0x23, 0x91, 0x89, 0x54, 0x58, 0xf2, 0xf5, 0xbe, 0x47,
  2545. 0x59, 0x47, 0xca, 0x0d, 0x39, 0x73, 0xcc, 0x09, 0xf5, 0x69, 0x3f, 0x1a, 0x04, 0xc2, 0xd3, 0xf6,
  2546. 0x72, 0x8f, 0x24, 0xe5, 0x9b, 0x04, 0xa5, 0x59, 0x00, 0xfd, 0x27, 0x0e, 0x44, 0x31, 0x0c, 0x70,
  2547. 0xe4, 0xf2, 0x86, 0x1f, 0x43, 0x29, 0x12, 0x62, 0xb9, 0xf1, 0x01, 0x9b, 0xd7, 0xcc, 0xe7, 0x4c,
  2548. 0xab, 0x59, 0x09, 0x03, 0x9c, 0x50, 0x48, 0x62, 0xa2, 0x53, 0x28, 0xeb, 0xc3, 0x76, 0xcf, 0x8a,
  2549. 0xc5, 0xf2, 0x4c, 0xac, 0x96, 0x11, 0x3b, 0x4c, 0x32, 0x98, 0xdc, 0x7a, 0x18, 0x60, 0x91, 0x46,
  2550. 0x44, 0x47, 0xf9, 0x58, 0x80, 0x4a, 0xea, 0x78, 0x84, 0x61, 0xa9, 0xcf, 0xe4, 0xf9, 0xcb, 0x94,
  2551. 0xc2, 0x00, 0x73, 0x80, 0xf0, 0x07, 0xba, 0x0b, 0xa5, 0x21, 0x9d, 0xb8, 0xc9, 0x0b, 0xe5, 0x79,
  2552. 0xc9, 0x33, 0x90, 0x24, 0x26, 0xaa, 0x43, 0xd9, 0xe3, 0x2d, 0x3a, 0xa1, 0x1d, 0x37, 0x1e, 0x5a,
  2553. 0x56, 0x92, 0x00, 0x13, 0xd1, 0x41, 0x0f, 0x61, 0x35, 0x76, 0x89, 0xd9, 0xed, 0xb9, 0xf1, 0xac,
  2554. 0x56, 0xc3, 0x00, 0xa7, 0x70, 0x92, 0xf2, 0xd0, 0x6d, 0x28, 0xc6, 0xbe, 0xbc, 0xc4, 0x08, 0xe5,
  2555. 0x30, 0xc0, 0x53, 0x88, 0x4c, 0x0d, 0xf4, 0x14, 0xaa, 0xb1, 0xf9, 0x6a, 0xf6, 0x0e, 0xcb, 0x2c,
  2556. 0xff, 0xdf, 0x30, 0xc0, 0x73, 0x31, 0x32, 0x87, 0x44, 0xf7, 0xd3, 0xb6, 0xfa, 0x96, 0x23, 0x17,
  2557. 0x93, 0xfb, 0x61, 0x00, 0xe1, 0x0f, 0x74, 0x00, 0xeb, 0x29, 0x52, 0xc7, 0x95, 0x57, 0x58, 0xea,
  2558. 0x3f, 0x61, 0x80, 0xb3, 0x21, 0x92, 0x05, 0x32, 0x15, 0xf2, 0x2b, 0x28, 0x5d, 0x5b, 0x21, 0xbf,
  2559. 0x86, 0x39, 0x04, 0xa9, 0x00, 0xe6, 0x98, 0x15, 0xfb, 0xc6, 0xb2, 0x65, 0x60, 0xdc, 0xb5, 0x30,
  2560. 0xc0, 0x02, 0x4a, 0x04, 0x5b, 0xf9, 0x5a, 0x80, 0xf5, 0xcc, 0xd4, 0xfc, 0x9d, 0x82, 0x3f, 0x7e,
  2561. 0x0a, 0xea, 0xd3, 0x65, 0xf1, 0xba, 0x6d, 0x39, 0x34, 0x1e, 0x03, 0x61, 0x19, 0x30, 0x98, 0x88,
  2562. 0x4e, 0x66, 0x70, 0xca, 0xbf, 0x1b, 0x9c, 0xc6, 0x67, 0x09, 0x8a, 0xf1, 0x02, 0x46, 0xc7, 0x00,
  2563. 0xc9, 0x3a, 0x46, 0x9b, 0x0b, 0x36, 0xf5, 0x68, 0xe3, 0xc6, 0xc2, 0x3d, 0x1e, 0x49, 0x25, 0x1f,
  2564. 0x9a, 0x39, 0xa9, 0xd4, 0xc7, 0x7f, 0x4e, 0x2a, 0xfd, 0x85, 0x6a, 0x56, 0xbf, 0x5f, 0xd6, 0xa4,
  2565. 0x1f, 0x97, 0x35, 0xe9, 0xe7, 0x65, 0x4d, 0x7a, 0x97, 0xf3, 0xeb, 0xad, 0x65, 0xf6, 0x2f, 0xe2,
  2566. 0xc1, 0xaf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x59, 0x18, 0xa3, 0x2e, 0xb3, 0x08, 0x00, 0x00,
  2567. }