FansMedal.pb.go 65 KB

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