api.pb.go 478 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: app/service/live/xlottery/api/grpc/v1/api.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 CapsuleGetDetailReq struct {
  23. // 用户uid
  24. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  25. // 来源 h5 web room
  26. From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *CapsuleGetDetailReq) Reset() { *m = CapsuleGetDetailReq{} }
  32. func (m *CapsuleGetDetailReq) String() string { return proto.CompactTextString(m) }
  33. func (*CapsuleGetDetailReq) ProtoMessage() {}
  34. func (*CapsuleGetDetailReq) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_api_9467f450102a207d, []int{0}
  36. }
  37. func (m *CapsuleGetDetailReq) XXX_Unmarshal(b []byte) error {
  38. return m.Unmarshal(b)
  39. }
  40. func (m *CapsuleGetDetailReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. if deterministic {
  42. return xxx_messageInfo_CapsuleGetDetailReq.Marshal(b, m, deterministic)
  43. } else {
  44. b = b[:cap(b)]
  45. n, err := m.MarshalTo(b)
  46. if err != nil {
  47. return nil, err
  48. }
  49. return b[:n], nil
  50. }
  51. }
  52. func (dst *CapsuleGetDetailReq) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_CapsuleGetDetailReq.Merge(dst, src)
  54. }
  55. func (m *CapsuleGetDetailReq) XXX_Size() int {
  56. return m.Size()
  57. }
  58. func (m *CapsuleGetDetailReq) XXX_DiscardUnknown() {
  59. xxx_messageInfo_CapsuleGetDetailReq.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_CapsuleGetDetailReq proto.InternalMessageInfo
  62. func (m *CapsuleGetDetailReq) GetUid() int64 {
  63. if m != nil {
  64. return m.Uid
  65. }
  66. return 0
  67. }
  68. func (m *CapsuleGetDetailReq) GetFrom() string {
  69. if m != nil {
  70. return m.From
  71. }
  72. return ""
  73. }
  74. type Usage struct {
  75. // 用法描述
  76. Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text"`
  77. // 跳转链接
  78. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url"`
  79. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  80. XXX_unrecognized []byte `json:"-"`
  81. XXX_sizecache int32 `json:"-"`
  82. }
  83. func (m *Usage) Reset() { *m = Usage{} }
  84. func (m *Usage) String() string { return proto.CompactTextString(m) }
  85. func (*Usage) ProtoMessage() {}
  86. func (*Usage) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_api_9467f450102a207d, []int{1}
  88. }
  89. func (m *Usage) XXX_Unmarshal(b []byte) error {
  90. return m.Unmarshal(b)
  91. }
  92. func (m *Usage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. if deterministic {
  94. return xxx_messageInfo_Usage.Marshal(b, m, deterministic)
  95. } else {
  96. b = b[:cap(b)]
  97. n, err := m.MarshalTo(b)
  98. if err != nil {
  99. return nil, err
  100. }
  101. return b[:n], nil
  102. }
  103. }
  104. func (dst *Usage) XXX_Merge(src proto.Message) {
  105. xxx_messageInfo_Usage.Merge(dst, src)
  106. }
  107. func (m *Usage) XXX_Size() int {
  108. return m.Size()
  109. }
  110. func (m *Usage) XXX_DiscardUnknown() {
  111. xxx_messageInfo_Usage.DiscardUnknown(m)
  112. }
  113. var xxx_messageInfo_Usage proto.InternalMessageInfo
  114. func (m *Usage) GetText() string {
  115. if m != nil {
  116. return m.Text
  117. }
  118. return ""
  119. }
  120. func (m *Usage) GetUrl() string {
  121. if m != nil {
  122. return m.Url
  123. }
  124. return ""
  125. }
  126. type Progress struct {
  127. // 当前进度
  128. Now int64 `protobuf:"varint,1,opt,name=now,proto3" json:"now"`
  129. // 最大进度
  130. Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max"`
  131. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  132. XXX_unrecognized []byte `json:"-"`
  133. XXX_sizecache int32 `json:"-"`
  134. }
  135. func (m *Progress) Reset() { *m = Progress{} }
  136. func (m *Progress) String() string { return proto.CompactTextString(m) }
  137. func (*Progress) ProtoMessage() {}
  138. func (*Progress) Descriptor() ([]byte, []int) {
  139. return fileDescriptor_api_9467f450102a207d, []int{2}
  140. }
  141. func (m *Progress) XXX_Unmarshal(b []byte) error {
  142. return m.Unmarshal(b)
  143. }
  144. func (m *Progress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  145. if deterministic {
  146. return xxx_messageInfo_Progress.Marshal(b, m, deterministic)
  147. } else {
  148. b = b[:cap(b)]
  149. n, err := m.MarshalTo(b)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return b[:n], nil
  154. }
  155. }
  156. func (dst *Progress) XXX_Merge(src proto.Message) {
  157. xxx_messageInfo_Progress.Merge(dst, src)
  158. }
  159. func (m *Progress) XXX_Size() int {
  160. return m.Size()
  161. }
  162. func (m *Progress) XXX_DiscardUnknown() {
  163. xxx_messageInfo_Progress.DiscardUnknown(m)
  164. }
  165. var xxx_messageInfo_Progress proto.InternalMessageInfo
  166. func (m *Progress) GetNow() int64 {
  167. if m != nil {
  168. return m.Now
  169. }
  170. return 0
  171. }
  172. func (m *Progress) GetMax() int64 {
  173. if m != nil {
  174. return m.Max
  175. }
  176. return 0
  177. }
  178. type CapsuleGetDetailResp struct {
  179. // 普通扭蛋信息
  180. Normal *CapsuleGetDetailResp_CapsuleInfo `protobuf:"bytes,1,opt,name=normal" json:"normal"`
  181. // 梦幻扭蛋信息,若梦幻扭蛋status=false,则无coin、change、process、gift、list字段
  182. Colorful *CapsuleGetDetailResp_CapsuleInfo `protobuf:"bytes,2,opt,name=colorful" json:"colorful"`
  183. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  184. XXX_unrecognized []byte `json:"-"`
  185. XXX_sizecache int32 `json:"-"`
  186. }
  187. func (m *CapsuleGetDetailResp) Reset() { *m = CapsuleGetDetailResp{} }
  188. func (m *CapsuleGetDetailResp) String() string { return proto.CompactTextString(m) }
  189. func (*CapsuleGetDetailResp) ProtoMessage() {}
  190. func (*CapsuleGetDetailResp) Descriptor() ([]byte, []int) {
  191. return fileDescriptor_api_9467f450102a207d, []int{3}
  192. }
  193. func (m *CapsuleGetDetailResp) XXX_Unmarshal(b []byte) error {
  194. return m.Unmarshal(b)
  195. }
  196. func (m *CapsuleGetDetailResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  197. if deterministic {
  198. return xxx_messageInfo_CapsuleGetDetailResp.Marshal(b, m, deterministic)
  199. } else {
  200. b = b[:cap(b)]
  201. n, err := m.MarshalTo(b)
  202. if err != nil {
  203. return nil, err
  204. }
  205. return b[:n], nil
  206. }
  207. }
  208. func (dst *CapsuleGetDetailResp) XXX_Merge(src proto.Message) {
  209. xxx_messageInfo_CapsuleGetDetailResp.Merge(dst, src)
  210. }
  211. func (m *CapsuleGetDetailResp) XXX_Size() int {
  212. return m.Size()
  213. }
  214. func (m *CapsuleGetDetailResp) XXX_DiscardUnknown() {
  215. xxx_messageInfo_CapsuleGetDetailResp.DiscardUnknown(m)
  216. }
  217. var xxx_messageInfo_CapsuleGetDetailResp proto.InternalMessageInfo
  218. func (m *CapsuleGetDetailResp) GetNormal() *CapsuleGetDetailResp_CapsuleInfo {
  219. if m != nil {
  220. return m.Normal
  221. }
  222. return nil
  223. }
  224. func (m *CapsuleGetDetailResp) GetColorful() *CapsuleGetDetailResp_CapsuleInfo {
  225. if m != nil {
  226. return m.Colorful
  227. }
  228. return nil
  229. }
  230. type CapsuleGetDetailResp_Gift struct {
  231. // 礼物名称
  232. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  233. // 礼物图片
  234. Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image"`
  235. // 用法
  236. Usage *Usage `protobuf:"bytes,4,opt,name=usage" json:"usage"`
  237. // web礼物图片
  238. WebImage string `protobuf:"bytes,5,opt,name=web_image,json=webImage,proto3" json:"web_image"`
  239. // mobile礼物图片
  240. MobileImage string `protobuf:"bytes,6,opt,name=mobile_image,json=mobileImage,proto3" json:"mobile_image"`
  241. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  242. XXX_unrecognized []byte `json:"-"`
  243. XXX_sizecache int32 `json:"-"`
  244. }
  245. func (m *CapsuleGetDetailResp_Gift) Reset() { *m = CapsuleGetDetailResp_Gift{} }
  246. func (m *CapsuleGetDetailResp_Gift) String() string { return proto.CompactTextString(m) }
  247. func (*CapsuleGetDetailResp_Gift) ProtoMessage() {}
  248. func (*CapsuleGetDetailResp_Gift) Descriptor() ([]byte, []int) {
  249. return fileDescriptor_api_9467f450102a207d, []int{3, 0}
  250. }
  251. func (m *CapsuleGetDetailResp_Gift) XXX_Unmarshal(b []byte) error {
  252. return m.Unmarshal(b)
  253. }
  254. func (m *CapsuleGetDetailResp_Gift) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  255. if deterministic {
  256. return xxx_messageInfo_CapsuleGetDetailResp_Gift.Marshal(b, m, deterministic)
  257. } else {
  258. b = b[:cap(b)]
  259. n, err := m.MarshalTo(b)
  260. if err != nil {
  261. return nil, err
  262. }
  263. return b[:n], nil
  264. }
  265. }
  266. func (dst *CapsuleGetDetailResp_Gift) XXX_Merge(src proto.Message) {
  267. xxx_messageInfo_CapsuleGetDetailResp_Gift.Merge(dst, src)
  268. }
  269. func (m *CapsuleGetDetailResp_Gift) XXX_Size() int {
  270. return m.Size()
  271. }
  272. func (m *CapsuleGetDetailResp_Gift) XXX_DiscardUnknown() {
  273. xxx_messageInfo_CapsuleGetDetailResp_Gift.DiscardUnknown(m)
  274. }
  275. var xxx_messageInfo_CapsuleGetDetailResp_Gift proto.InternalMessageInfo
  276. func (m *CapsuleGetDetailResp_Gift) GetName() string {
  277. if m != nil {
  278. return m.Name
  279. }
  280. return ""
  281. }
  282. func (m *CapsuleGetDetailResp_Gift) GetImage() string {
  283. if m != nil {
  284. return m.Image
  285. }
  286. return ""
  287. }
  288. func (m *CapsuleGetDetailResp_Gift) GetUsage() *Usage {
  289. if m != nil {
  290. return m.Usage
  291. }
  292. return nil
  293. }
  294. func (m *CapsuleGetDetailResp_Gift) GetWebImage() string {
  295. if m != nil {
  296. return m.WebImage
  297. }
  298. return ""
  299. }
  300. func (m *CapsuleGetDetailResp_Gift) GetMobileImage() string {
  301. if m != nil {
  302. return m.MobileImage
  303. }
  304. return ""
  305. }
  306. type CapsuleGetDetailResp_List struct {
  307. // 数量
  308. Num int64 `protobuf:"varint,1,opt,name=num,proto3" json:"num"`
  309. // 礼物名称
  310. Gift string `protobuf:"bytes,2,opt,name=gift,proto3" json:"gift"`
  311. // 时间
  312. Date string `protobuf:"bytes,3,opt,name=date,proto3" json:"date"`
  313. // 用户名
  314. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name"`
  315. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  316. XXX_unrecognized []byte `json:"-"`
  317. XXX_sizecache int32 `json:"-"`
  318. }
  319. func (m *CapsuleGetDetailResp_List) Reset() { *m = CapsuleGetDetailResp_List{} }
  320. func (m *CapsuleGetDetailResp_List) String() string { return proto.CompactTextString(m) }
  321. func (*CapsuleGetDetailResp_List) ProtoMessage() {}
  322. func (*CapsuleGetDetailResp_List) Descriptor() ([]byte, []int) {
  323. return fileDescriptor_api_9467f450102a207d, []int{3, 1}
  324. }
  325. func (m *CapsuleGetDetailResp_List) XXX_Unmarshal(b []byte) error {
  326. return m.Unmarshal(b)
  327. }
  328. func (m *CapsuleGetDetailResp_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  329. if deterministic {
  330. return xxx_messageInfo_CapsuleGetDetailResp_List.Marshal(b, m, deterministic)
  331. } else {
  332. b = b[:cap(b)]
  333. n, err := m.MarshalTo(b)
  334. if err != nil {
  335. return nil, err
  336. }
  337. return b[:n], nil
  338. }
  339. }
  340. func (dst *CapsuleGetDetailResp_List) XXX_Merge(src proto.Message) {
  341. xxx_messageInfo_CapsuleGetDetailResp_List.Merge(dst, src)
  342. }
  343. func (m *CapsuleGetDetailResp_List) XXX_Size() int {
  344. return m.Size()
  345. }
  346. func (m *CapsuleGetDetailResp_List) XXX_DiscardUnknown() {
  347. xxx_messageInfo_CapsuleGetDetailResp_List.DiscardUnknown(m)
  348. }
  349. var xxx_messageInfo_CapsuleGetDetailResp_List proto.InternalMessageInfo
  350. func (m *CapsuleGetDetailResp_List) GetNum() int64 {
  351. if m != nil {
  352. return m.Num
  353. }
  354. return 0
  355. }
  356. func (m *CapsuleGetDetailResp_List) GetGift() string {
  357. if m != nil {
  358. return m.Gift
  359. }
  360. return ""
  361. }
  362. func (m *CapsuleGetDetailResp_List) GetDate() string {
  363. if m != nil {
  364. return m.Date
  365. }
  366. return ""
  367. }
  368. func (m *CapsuleGetDetailResp_List) GetName() string {
  369. if m != nil {
  370. return m.Name
  371. }
  372. return ""
  373. }
  374. type CapsuleGetDetailResp_CapsuleInfo struct {
  375. //
  376. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  377. // 扭蛋数量
  378. Coin int64 `protobuf:"varint,2,opt,name=coin,proto3" json:"coin"`
  379. // 变化值
  380. Change int64 `protobuf:"varint,3,opt,name=change,proto3" json:"change"`
  381. // 进度
  382. Progress *Progress `protobuf:"bytes,4,opt,name=progress" json:"progress"`
  383. // 规则
  384. Rule string `protobuf:"bytes,5,opt,name=rule,proto3" json:"rule"`
  385. // 奖品列表
  386. Gift []*CapsuleGetDetailResp_Gift `protobuf:"bytes,6,rep,name=gift" json:"gift"`
  387. // 历史获奖列表
  388. List []*CapsuleGetDetailResp_List `protobuf:"bytes,7,rep,name=list" json:"list"`
  389. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  390. XXX_unrecognized []byte `json:"-"`
  391. XXX_sizecache int32 `json:"-"`
  392. }
  393. func (m *CapsuleGetDetailResp_CapsuleInfo) Reset() { *m = CapsuleGetDetailResp_CapsuleInfo{} }
  394. func (m *CapsuleGetDetailResp_CapsuleInfo) String() string { return proto.CompactTextString(m) }
  395. func (*CapsuleGetDetailResp_CapsuleInfo) ProtoMessage() {}
  396. func (*CapsuleGetDetailResp_CapsuleInfo) Descriptor() ([]byte, []int) {
  397. return fileDescriptor_api_9467f450102a207d, []int{3, 2}
  398. }
  399. func (m *CapsuleGetDetailResp_CapsuleInfo) XXX_Unmarshal(b []byte) error {
  400. return m.Unmarshal(b)
  401. }
  402. func (m *CapsuleGetDetailResp_CapsuleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  403. if deterministic {
  404. return xxx_messageInfo_CapsuleGetDetailResp_CapsuleInfo.Marshal(b, m, deterministic)
  405. } else {
  406. b = b[:cap(b)]
  407. n, err := m.MarshalTo(b)
  408. if err != nil {
  409. return nil, err
  410. }
  411. return b[:n], nil
  412. }
  413. }
  414. func (dst *CapsuleGetDetailResp_CapsuleInfo) XXX_Merge(src proto.Message) {
  415. xxx_messageInfo_CapsuleGetDetailResp_CapsuleInfo.Merge(dst, src)
  416. }
  417. func (m *CapsuleGetDetailResp_CapsuleInfo) XXX_Size() int {
  418. return m.Size()
  419. }
  420. func (m *CapsuleGetDetailResp_CapsuleInfo) XXX_DiscardUnknown() {
  421. xxx_messageInfo_CapsuleGetDetailResp_CapsuleInfo.DiscardUnknown(m)
  422. }
  423. var xxx_messageInfo_CapsuleGetDetailResp_CapsuleInfo proto.InternalMessageInfo
  424. func (m *CapsuleGetDetailResp_CapsuleInfo) GetStatus() bool {
  425. if m != nil {
  426. return m.Status
  427. }
  428. return false
  429. }
  430. func (m *CapsuleGetDetailResp_CapsuleInfo) GetCoin() int64 {
  431. if m != nil {
  432. return m.Coin
  433. }
  434. return 0
  435. }
  436. func (m *CapsuleGetDetailResp_CapsuleInfo) GetChange() int64 {
  437. if m != nil {
  438. return m.Change
  439. }
  440. return 0
  441. }
  442. func (m *CapsuleGetDetailResp_CapsuleInfo) GetProgress() *Progress {
  443. if m != nil {
  444. return m.Progress
  445. }
  446. return nil
  447. }
  448. func (m *CapsuleGetDetailResp_CapsuleInfo) GetRule() string {
  449. if m != nil {
  450. return m.Rule
  451. }
  452. return ""
  453. }
  454. func (m *CapsuleGetDetailResp_CapsuleInfo) GetGift() []*CapsuleGetDetailResp_Gift {
  455. if m != nil {
  456. return m.Gift
  457. }
  458. return nil
  459. }
  460. func (m *CapsuleGetDetailResp_CapsuleInfo) GetList() []*CapsuleGetDetailResp_List {
  461. if m != nil {
  462. return m.List
  463. }
  464. return nil
  465. }
  466. type CapsuleOpenCapsuleReq struct {
  467. // 用户uid
  468. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  469. // 扭蛋类型
  470. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"`
  471. // 扭的个数
  472. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count"`
  473. Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform"`
  474. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  475. XXX_unrecognized []byte `json:"-"`
  476. XXX_sizecache int32 `json:"-"`
  477. }
  478. func (m *CapsuleOpenCapsuleReq) Reset() { *m = CapsuleOpenCapsuleReq{} }
  479. func (m *CapsuleOpenCapsuleReq) String() string { return proto.CompactTextString(m) }
  480. func (*CapsuleOpenCapsuleReq) ProtoMessage() {}
  481. func (*CapsuleOpenCapsuleReq) Descriptor() ([]byte, []int) {
  482. return fileDescriptor_api_9467f450102a207d, []int{4}
  483. }
  484. func (m *CapsuleOpenCapsuleReq) XXX_Unmarshal(b []byte) error {
  485. return m.Unmarshal(b)
  486. }
  487. func (m *CapsuleOpenCapsuleReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  488. if deterministic {
  489. return xxx_messageInfo_CapsuleOpenCapsuleReq.Marshal(b, m, deterministic)
  490. } else {
  491. b = b[:cap(b)]
  492. n, err := m.MarshalTo(b)
  493. if err != nil {
  494. return nil, err
  495. }
  496. return b[:n], nil
  497. }
  498. }
  499. func (dst *CapsuleOpenCapsuleReq) XXX_Merge(src proto.Message) {
  500. xxx_messageInfo_CapsuleOpenCapsuleReq.Merge(dst, src)
  501. }
  502. func (m *CapsuleOpenCapsuleReq) XXX_Size() int {
  503. return m.Size()
  504. }
  505. func (m *CapsuleOpenCapsuleReq) XXX_DiscardUnknown() {
  506. xxx_messageInfo_CapsuleOpenCapsuleReq.DiscardUnknown(m)
  507. }
  508. var xxx_messageInfo_CapsuleOpenCapsuleReq proto.InternalMessageInfo
  509. func (m *CapsuleOpenCapsuleReq) GetUid() int64 {
  510. if m != nil {
  511. return m.Uid
  512. }
  513. return 0
  514. }
  515. func (m *CapsuleOpenCapsuleReq) GetType() string {
  516. if m != nil {
  517. return m.Type
  518. }
  519. return ""
  520. }
  521. func (m *CapsuleOpenCapsuleReq) GetCount() int64 {
  522. if m != nil {
  523. return m.Count
  524. }
  525. return 0
  526. }
  527. func (m *CapsuleOpenCapsuleReq) GetPlatform() string {
  528. if m != nil {
  529. return m.Platform
  530. }
  531. return ""
  532. }
  533. type CapsuleOpenCapsuleResp struct {
  534. // 扭蛋币扣除状态
  535. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  536. // 奖品文案
  537. Text []string `protobuf:"bytes,2,rep,name=text" json:"text"`
  538. // 是否包含实物奖品
  539. IsEntity bool `protobuf:"varint,3,opt,name=isEntity,proto3" json:"isEntity"`
  540. // 用户扭蛋币拥有状态
  541. Info *CapsuleOpenCapsuleResp_Info `protobuf:"bytes,4,opt,name=info" json:"info"`
  542. // 头衔? 恒为空字符串, 忽略之
  543. ShowTitle string `protobuf:"bytes,5,opt,name=showTitle,proto3" json:"showTitle"`
  544. // 奖品列表
  545. Awards []*CapsuleOpenCapsuleResp_Award `protobuf:"bytes,6,rep,name=awards" json:"awards"`
  546. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  547. XXX_unrecognized []byte `json:"-"`
  548. XXX_sizecache int32 `json:"-"`
  549. }
  550. func (m *CapsuleOpenCapsuleResp) Reset() { *m = CapsuleOpenCapsuleResp{} }
  551. func (m *CapsuleOpenCapsuleResp) String() string { return proto.CompactTextString(m) }
  552. func (*CapsuleOpenCapsuleResp) ProtoMessage() {}
  553. func (*CapsuleOpenCapsuleResp) Descriptor() ([]byte, []int) {
  554. return fileDescriptor_api_9467f450102a207d, []int{5}
  555. }
  556. func (m *CapsuleOpenCapsuleResp) XXX_Unmarshal(b []byte) error {
  557. return m.Unmarshal(b)
  558. }
  559. func (m *CapsuleOpenCapsuleResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  560. if deterministic {
  561. return xxx_messageInfo_CapsuleOpenCapsuleResp.Marshal(b, m, deterministic)
  562. } else {
  563. b = b[:cap(b)]
  564. n, err := m.MarshalTo(b)
  565. if err != nil {
  566. return nil, err
  567. }
  568. return b[:n], nil
  569. }
  570. }
  571. func (dst *CapsuleOpenCapsuleResp) XXX_Merge(src proto.Message) {
  572. xxx_messageInfo_CapsuleOpenCapsuleResp.Merge(dst, src)
  573. }
  574. func (m *CapsuleOpenCapsuleResp) XXX_Size() int {
  575. return m.Size()
  576. }
  577. func (m *CapsuleOpenCapsuleResp) XXX_DiscardUnknown() {
  578. xxx_messageInfo_CapsuleOpenCapsuleResp.DiscardUnknown(m)
  579. }
  580. var xxx_messageInfo_CapsuleOpenCapsuleResp proto.InternalMessageInfo
  581. func (m *CapsuleOpenCapsuleResp) GetStatus() bool {
  582. if m != nil {
  583. return m.Status
  584. }
  585. return false
  586. }
  587. func (m *CapsuleOpenCapsuleResp) GetText() []string {
  588. if m != nil {
  589. return m.Text
  590. }
  591. return nil
  592. }
  593. func (m *CapsuleOpenCapsuleResp) GetIsEntity() bool {
  594. if m != nil {
  595. return m.IsEntity
  596. }
  597. return false
  598. }
  599. func (m *CapsuleOpenCapsuleResp) GetInfo() *CapsuleOpenCapsuleResp_Info {
  600. if m != nil {
  601. return m.Info
  602. }
  603. return nil
  604. }
  605. func (m *CapsuleOpenCapsuleResp) GetShowTitle() string {
  606. if m != nil {
  607. return m.ShowTitle
  608. }
  609. return ""
  610. }
  611. func (m *CapsuleOpenCapsuleResp) GetAwards() []*CapsuleOpenCapsuleResp_Award {
  612. if m != nil {
  613. return m.Awards
  614. }
  615. return nil
  616. }
  617. type CapsuleOpenCapsuleResp_CapsuleInfo struct {
  618. // 拥有的币
  619. Coin int64 `protobuf:"varint,1,opt,name=coin,proto3" json:"coin"`
  620. // 变化值
  621. Change int64 `protobuf:"varint,2,opt,name=change,proto3" json:"change"`
  622. // 进度
  623. Progress *Progress `protobuf:"bytes,3,opt,name=progress" json:"progress"`
  624. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  625. XXX_unrecognized []byte `json:"-"`
  626. XXX_sizecache int32 `json:"-"`
  627. }
  628. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) Reset() { *m = CapsuleOpenCapsuleResp_CapsuleInfo{} }
  629. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) String() string { return proto.CompactTextString(m) }
  630. func (*CapsuleOpenCapsuleResp_CapsuleInfo) ProtoMessage() {}
  631. func (*CapsuleOpenCapsuleResp_CapsuleInfo) Descriptor() ([]byte, []int) {
  632. return fileDescriptor_api_9467f450102a207d, []int{5, 0}
  633. }
  634. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) XXX_Unmarshal(b []byte) error {
  635. return m.Unmarshal(b)
  636. }
  637. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  638. if deterministic {
  639. return xxx_messageInfo_CapsuleOpenCapsuleResp_CapsuleInfo.Marshal(b, m, deterministic)
  640. } else {
  641. b = b[:cap(b)]
  642. n, err := m.MarshalTo(b)
  643. if err != nil {
  644. return nil, err
  645. }
  646. return b[:n], nil
  647. }
  648. }
  649. func (dst *CapsuleOpenCapsuleResp_CapsuleInfo) XXX_Merge(src proto.Message) {
  650. xxx_messageInfo_CapsuleOpenCapsuleResp_CapsuleInfo.Merge(dst, src)
  651. }
  652. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) XXX_Size() int {
  653. return m.Size()
  654. }
  655. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) XXX_DiscardUnknown() {
  656. xxx_messageInfo_CapsuleOpenCapsuleResp_CapsuleInfo.DiscardUnknown(m)
  657. }
  658. var xxx_messageInfo_CapsuleOpenCapsuleResp_CapsuleInfo proto.InternalMessageInfo
  659. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) GetCoin() int64 {
  660. if m != nil {
  661. return m.Coin
  662. }
  663. return 0
  664. }
  665. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) GetChange() int64 {
  666. if m != nil {
  667. return m.Change
  668. }
  669. return 0
  670. }
  671. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) GetProgress() *Progress {
  672. if m != nil {
  673. return m.Progress
  674. }
  675. return nil
  676. }
  677. type CapsuleOpenCapsuleResp_Info struct {
  678. // 普通扭蛋币
  679. Normal *CapsuleOpenCapsuleResp_CapsuleInfo `protobuf:"bytes,1,opt,name=normal" json:"normal"`
  680. // 梦幻扭蛋币
  681. Colorful *CapsuleOpenCapsuleResp_CapsuleInfo `protobuf:"bytes,2,opt,name=colorful" json:"colorful"`
  682. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  683. XXX_unrecognized []byte `json:"-"`
  684. XXX_sizecache int32 `json:"-"`
  685. }
  686. func (m *CapsuleOpenCapsuleResp_Info) Reset() { *m = CapsuleOpenCapsuleResp_Info{} }
  687. func (m *CapsuleOpenCapsuleResp_Info) String() string { return proto.CompactTextString(m) }
  688. func (*CapsuleOpenCapsuleResp_Info) ProtoMessage() {}
  689. func (*CapsuleOpenCapsuleResp_Info) Descriptor() ([]byte, []int) {
  690. return fileDescriptor_api_9467f450102a207d, []int{5, 1}
  691. }
  692. func (m *CapsuleOpenCapsuleResp_Info) XXX_Unmarshal(b []byte) error {
  693. return m.Unmarshal(b)
  694. }
  695. func (m *CapsuleOpenCapsuleResp_Info) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  696. if deterministic {
  697. return xxx_messageInfo_CapsuleOpenCapsuleResp_Info.Marshal(b, m, deterministic)
  698. } else {
  699. b = b[:cap(b)]
  700. n, err := m.MarshalTo(b)
  701. if err != nil {
  702. return nil, err
  703. }
  704. return b[:n], nil
  705. }
  706. }
  707. func (dst *CapsuleOpenCapsuleResp_Info) XXX_Merge(src proto.Message) {
  708. xxx_messageInfo_CapsuleOpenCapsuleResp_Info.Merge(dst, src)
  709. }
  710. func (m *CapsuleOpenCapsuleResp_Info) XXX_Size() int {
  711. return m.Size()
  712. }
  713. func (m *CapsuleOpenCapsuleResp_Info) XXX_DiscardUnknown() {
  714. xxx_messageInfo_CapsuleOpenCapsuleResp_Info.DiscardUnknown(m)
  715. }
  716. var xxx_messageInfo_CapsuleOpenCapsuleResp_Info proto.InternalMessageInfo
  717. func (m *CapsuleOpenCapsuleResp_Info) GetNormal() *CapsuleOpenCapsuleResp_CapsuleInfo {
  718. if m != nil {
  719. return m.Normal
  720. }
  721. return nil
  722. }
  723. func (m *CapsuleOpenCapsuleResp_Info) GetColorful() *CapsuleOpenCapsuleResp_CapsuleInfo {
  724. if m != nil {
  725. return m.Colorful
  726. }
  727. return nil
  728. }
  729. type CapsuleOpenCapsuleResp_Award struct {
  730. // 奖品名字
  731. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  732. // 奖品数量
  733. Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num"`
  734. // 奖品 X 数量
  735. Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text"`
  736. // 奖品图片
  737. Img string `protobuf:"bytes,5,opt,name=img,proto3" json:"img"`
  738. // 奖品用法说明
  739. Usage *Usage `protobuf:"bytes,6,opt,name=usage" json:"usage"`
  740. // web礼物图片
  741. WebImage string `protobuf:"bytes,7,opt,name=web_image,json=webImage,proto3" json:"web_image"`
  742. // mobile礼物图片
  743. MobileImage string `protobuf:"bytes,8,opt,name=mobile_image,json=mobileImage,proto3" json:"mobile_image"`
  744. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  745. XXX_unrecognized []byte `json:"-"`
  746. XXX_sizecache int32 `json:"-"`
  747. }
  748. func (m *CapsuleOpenCapsuleResp_Award) Reset() { *m = CapsuleOpenCapsuleResp_Award{} }
  749. func (m *CapsuleOpenCapsuleResp_Award) String() string { return proto.CompactTextString(m) }
  750. func (*CapsuleOpenCapsuleResp_Award) ProtoMessage() {}
  751. func (*CapsuleOpenCapsuleResp_Award) Descriptor() ([]byte, []int) {
  752. return fileDescriptor_api_9467f450102a207d, []int{5, 2}
  753. }
  754. func (m *CapsuleOpenCapsuleResp_Award) XXX_Unmarshal(b []byte) error {
  755. return m.Unmarshal(b)
  756. }
  757. func (m *CapsuleOpenCapsuleResp_Award) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  758. if deterministic {
  759. return xxx_messageInfo_CapsuleOpenCapsuleResp_Award.Marshal(b, m, deterministic)
  760. } else {
  761. b = b[:cap(b)]
  762. n, err := m.MarshalTo(b)
  763. if err != nil {
  764. return nil, err
  765. }
  766. return b[:n], nil
  767. }
  768. }
  769. func (dst *CapsuleOpenCapsuleResp_Award) XXX_Merge(src proto.Message) {
  770. xxx_messageInfo_CapsuleOpenCapsuleResp_Award.Merge(dst, src)
  771. }
  772. func (m *CapsuleOpenCapsuleResp_Award) XXX_Size() int {
  773. return m.Size()
  774. }
  775. func (m *CapsuleOpenCapsuleResp_Award) XXX_DiscardUnknown() {
  776. xxx_messageInfo_CapsuleOpenCapsuleResp_Award.DiscardUnknown(m)
  777. }
  778. var xxx_messageInfo_CapsuleOpenCapsuleResp_Award proto.InternalMessageInfo
  779. func (m *CapsuleOpenCapsuleResp_Award) GetName() string {
  780. if m != nil {
  781. return m.Name
  782. }
  783. return ""
  784. }
  785. func (m *CapsuleOpenCapsuleResp_Award) GetNum() int64 {
  786. if m != nil {
  787. return m.Num
  788. }
  789. return 0
  790. }
  791. func (m *CapsuleOpenCapsuleResp_Award) GetText() string {
  792. if m != nil {
  793. return m.Text
  794. }
  795. return ""
  796. }
  797. func (m *CapsuleOpenCapsuleResp_Award) GetImg() string {
  798. if m != nil {
  799. return m.Img
  800. }
  801. return ""
  802. }
  803. func (m *CapsuleOpenCapsuleResp_Award) GetUsage() *Usage {
  804. if m != nil {
  805. return m.Usage
  806. }
  807. return nil
  808. }
  809. func (m *CapsuleOpenCapsuleResp_Award) GetWebImage() string {
  810. if m != nil {
  811. return m.WebImage
  812. }
  813. return ""
  814. }
  815. func (m *CapsuleOpenCapsuleResp_Award) GetMobileImage() string {
  816. if m != nil {
  817. return m.MobileImage
  818. }
  819. return ""
  820. }
  821. type CapsuleGetCapsuleInfoReq struct {
  822. // 用户uid
  823. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  824. // 类型
  825. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"`
  826. // 来源 h5 web room
  827. From string `protobuf:"bytes,3,opt,name=from,proto3" json:"from"`
  828. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  829. XXX_unrecognized []byte `json:"-"`
  830. XXX_sizecache int32 `json:"-"`
  831. }
  832. func (m *CapsuleGetCapsuleInfoReq) Reset() { *m = CapsuleGetCapsuleInfoReq{} }
  833. func (m *CapsuleGetCapsuleInfoReq) String() string { return proto.CompactTextString(m) }
  834. func (*CapsuleGetCapsuleInfoReq) ProtoMessage() {}
  835. func (*CapsuleGetCapsuleInfoReq) Descriptor() ([]byte, []int) {
  836. return fileDescriptor_api_9467f450102a207d, []int{6}
  837. }
  838. func (m *CapsuleGetCapsuleInfoReq) XXX_Unmarshal(b []byte) error {
  839. return m.Unmarshal(b)
  840. }
  841. func (m *CapsuleGetCapsuleInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  842. if deterministic {
  843. return xxx_messageInfo_CapsuleGetCapsuleInfoReq.Marshal(b, m, deterministic)
  844. } else {
  845. b = b[:cap(b)]
  846. n, err := m.MarshalTo(b)
  847. if err != nil {
  848. return nil, err
  849. }
  850. return b[:n], nil
  851. }
  852. }
  853. func (dst *CapsuleGetCapsuleInfoReq) XXX_Merge(src proto.Message) {
  854. xxx_messageInfo_CapsuleGetCapsuleInfoReq.Merge(dst, src)
  855. }
  856. func (m *CapsuleGetCapsuleInfoReq) XXX_Size() int {
  857. return m.Size()
  858. }
  859. func (m *CapsuleGetCapsuleInfoReq) XXX_DiscardUnknown() {
  860. xxx_messageInfo_CapsuleGetCapsuleInfoReq.DiscardUnknown(m)
  861. }
  862. var xxx_messageInfo_CapsuleGetCapsuleInfoReq proto.InternalMessageInfo
  863. func (m *CapsuleGetCapsuleInfoReq) GetUid() int64 {
  864. if m != nil {
  865. return m.Uid
  866. }
  867. return 0
  868. }
  869. func (m *CapsuleGetCapsuleInfoReq) GetType() string {
  870. if m != nil {
  871. return m.Type
  872. }
  873. return ""
  874. }
  875. func (m *CapsuleGetCapsuleInfoReq) GetFrom() string {
  876. if m != nil {
  877. return m.From
  878. }
  879. return ""
  880. }
  881. type CapsuleGetCapsuleInfoResp struct {
  882. // 扭蛋数量
  883. Coin int64 `protobuf:"varint,1,opt,name=coin,proto3" json:"coin"`
  884. // 规则
  885. Rule string `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule"`
  886. // 奖品列表,包含数量
  887. GiftList []*CapsuleGetCapsuleInfoResp_GiftList `protobuf:"bytes,3,rep,name=gift_list,json=giftList" json:"gift_list"`
  888. // 奖品列表,不包含数量,同一类别只有一条
  889. GiftFilter []*CapsuleGetCapsuleInfoResp_GiftFilter `protobuf:"bytes,4,rep,name=gift_filter,json=giftFilter" json:"gift_filter"`
  890. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  891. XXX_unrecognized []byte `json:"-"`
  892. XXX_sizecache int32 `json:"-"`
  893. }
  894. func (m *CapsuleGetCapsuleInfoResp) Reset() { *m = CapsuleGetCapsuleInfoResp{} }
  895. func (m *CapsuleGetCapsuleInfoResp) String() string { return proto.CompactTextString(m) }
  896. func (*CapsuleGetCapsuleInfoResp) ProtoMessage() {}
  897. func (*CapsuleGetCapsuleInfoResp) Descriptor() ([]byte, []int) {
  898. return fileDescriptor_api_9467f450102a207d, []int{7}
  899. }
  900. func (m *CapsuleGetCapsuleInfoResp) XXX_Unmarshal(b []byte) error {
  901. return m.Unmarshal(b)
  902. }
  903. func (m *CapsuleGetCapsuleInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  904. if deterministic {
  905. return xxx_messageInfo_CapsuleGetCapsuleInfoResp.Marshal(b, m, deterministic)
  906. } else {
  907. b = b[:cap(b)]
  908. n, err := m.MarshalTo(b)
  909. if err != nil {
  910. return nil, err
  911. }
  912. return b[:n], nil
  913. }
  914. }
  915. func (dst *CapsuleGetCapsuleInfoResp) XXX_Merge(src proto.Message) {
  916. xxx_messageInfo_CapsuleGetCapsuleInfoResp.Merge(dst, src)
  917. }
  918. func (m *CapsuleGetCapsuleInfoResp) XXX_Size() int {
  919. return m.Size()
  920. }
  921. func (m *CapsuleGetCapsuleInfoResp) XXX_DiscardUnknown() {
  922. xxx_messageInfo_CapsuleGetCapsuleInfoResp.DiscardUnknown(m)
  923. }
  924. var xxx_messageInfo_CapsuleGetCapsuleInfoResp proto.InternalMessageInfo
  925. func (m *CapsuleGetCapsuleInfoResp) GetCoin() int64 {
  926. if m != nil {
  927. return m.Coin
  928. }
  929. return 0
  930. }
  931. func (m *CapsuleGetCapsuleInfoResp) GetRule() string {
  932. if m != nil {
  933. return m.Rule
  934. }
  935. return ""
  936. }
  937. func (m *CapsuleGetCapsuleInfoResp) GetGiftList() []*CapsuleGetCapsuleInfoResp_GiftList {
  938. if m != nil {
  939. return m.GiftList
  940. }
  941. return nil
  942. }
  943. func (m *CapsuleGetCapsuleInfoResp) GetGiftFilter() []*CapsuleGetCapsuleInfoResp_GiftFilter {
  944. if m != nil {
  945. return m.GiftFilter
  946. }
  947. return nil
  948. }
  949. type CapsuleGetCapsuleInfoResp_GiftList struct {
  950. // 礼物id
  951. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  952. // 礼物名称
  953. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  954. // 礼物数量
  955. Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num"`
  956. // 权重
  957. Weight int64 `protobuf:"varint,4,opt,name=weight,proto3" json:"weight"`
  958. // 礼物图片
  959. WebUrl string `protobuf:"bytes,5,opt,name=web_url,json=webUrl,proto3" json:"web_url"`
  960. // 礼物图片
  961. MobileUrl string `protobuf:"bytes,6,opt,name=mobile_url,json=mobileUrl,proto3" json:"mobile_url"`
  962. // 用法
  963. Usage *Usage `protobuf:"bytes,7,opt,name=usage" json:"usage"`
  964. // 奖品类型 2 头衔
  965. Type int64 `protobuf:"varint,8,opt,name=type,proto3" json:"type"`
  966. // 过期时间
  967. Expire string `protobuf:"bytes,9,opt,name=expire,proto3" json:"expire"`
  968. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  969. XXX_unrecognized []byte `json:"-"`
  970. XXX_sizecache int32 `json:"-"`
  971. }
  972. func (m *CapsuleGetCapsuleInfoResp_GiftList) Reset() { *m = CapsuleGetCapsuleInfoResp_GiftList{} }
  973. func (m *CapsuleGetCapsuleInfoResp_GiftList) String() string { return proto.CompactTextString(m) }
  974. func (*CapsuleGetCapsuleInfoResp_GiftList) ProtoMessage() {}
  975. func (*CapsuleGetCapsuleInfoResp_GiftList) Descriptor() ([]byte, []int) {
  976. return fileDescriptor_api_9467f450102a207d, []int{7, 0}
  977. }
  978. func (m *CapsuleGetCapsuleInfoResp_GiftList) XXX_Unmarshal(b []byte) error {
  979. return m.Unmarshal(b)
  980. }
  981. func (m *CapsuleGetCapsuleInfoResp_GiftList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  982. if deterministic {
  983. return xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftList.Marshal(b, m, deterministic)
  984. } else {
  985. b = b[:cap(b)]
  986. n, err := m.MarshalTo(b)
  987. if err != nil {
  988. return nil, err
  989. }
  990. return b[:n], nil
  991. }
  992. }
  993. func (dst *CapsuleGetCapsuleInfoResp_GiftList) XXX_Merge(src proto.Message) {
  994. xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftList.Merge(dst, src)
  995. }
  996. func (m *CapsuleGetCapsuleInfoResp_GiftList) XXX_Size() int {
  997. return m.Size()
  998. }
  999. func (m *CapsuleGetCapsuleInfoResp_GiftList) XXX_DiscardUnknown() {
  1000. xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftList.DiscardUnknown(m)
  1001. }
  1002. var xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftList proto.InternalMessageInfo
  1003. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetId() int64 {
  1004. if m != nil {
  1005. return m.Id
  1006. }
  1007. return 0
  1008. }
  1009. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetName() string {
  1010. if m != nil {
  1011. return m.Name
  1012. }
  1013. return ""
  1014. }
  1015. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetNum() int64 {
  1016. if m != nil {
  1017. return m.Num
  1018. }
  1019. return 0
  1020. }
  1021. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetWeight() int64 {
  1022. if m != nil {
  1023. return m.Weight
  1024. }
  1025. return 0
  1026. }
  1027. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetWebUrl() string {
  1028. if m != nil {
  1029. return m.WebUrl
  1030. }
  1031. return ""
  1032. }
  1033. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetMobileUrl() string {
  1034. if m != nil {
  1035. return m.MobileUrl
  1036. }
  1037. return ""
  1038. }
  1039. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetUsage() *Usage {
  1040. if m != nil {
  1041. return m.Usage
  1042. }
  1043. return nil
  1044. }
  1045. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetType() int64 {
  1046. if m != nil {
  1047. return m.Type
  1048. }
  1049. return 0
  1050. }
  1051. func (m *CapsuleGetCapsuleInfoResp_GiftList) GetExpire() string {
  1052. if m != nil {
  1053. return m.Expire
  1054. }
  1055. return ""
  1056. }
  1057. type CapsuleGetCapsuleInfoResp_GiftFilter struct {
  1058. // 礼物id
  1059. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  1060. // 礼物名称
  1061. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  1062. // 礼物图片
  1063. WebUrl string `protobuf:"bytes,3,opt,name=web_url,json=webUrl,proto3" json:"web_url"`
  1064. // 礼物图片
  1065. MobileUrl string `protobuf:"bytes,4,opt,name=mobile_url,json=mobileUrl,proto3" json:"mobile_url"`
  1066. // 用法
  1067. Usage *Usage `protobuf:"bytes,5,opt,name=usage" json:"usage"`
  1068. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1069. XXX_unrecognized []byte `json:"-"`
  1070. XXX_sizecache int32 `json:"-"`
  1071. }
  1072. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) Reset() { *m = CapsuleGetCapsuleInfoResp_GiftFilter{} }
  1073. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) String() string { return proto.CompactTextString(m) }
  1074. func (*CapsuleGetCapsuleInfoResp_GiftFilter) ProtoMessage() {}
  1075. func (*CapsuleGetCapsuleInfoResp_GiftFilter) Descriptor() ([]byte, []int) {
  1076. return fileDescriptor_api_9467f450102a207d, []int{7, 1}
  1077. }
  1078. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) XXX_Unmarshal(b []byte) error {
  1079. return m.Unmarshal(b)
  1080. }
  1081. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1082. if deterministic {
  1083. return xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftFilter.Marshal(b, m, deterministic)
  1084. } else {
  1085. b = b[:cap(b)]
  1086. n, err := m.MarshalTo(b)
  1087. if err != nil {
  1088. return nil, err
  1089. }
  1090. return b[:n], nil
  1091. }
  1092. }
  1093. func (dst *CapsuleGetCapsuleInfoResp_GiftFilter) XXX_Merge(src proto.Message) {
  1094. xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftFilter.Merge(dst, src)
  1095. }
  1096. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) XXX_Size() int {
  1097. return m.Size()
  1098. }
  1099. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) XXX_DiscardUnknown() {
  1100. xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftFilter.DiscardUnknown(m)
  1101. }
  1102. var xxx_messageInfo_CapsuleGetCapsuleInfoResp_GiftFilter proto.InternalMessageInfo
  1103. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) GetId() int64 {
  1104. if m != nil {
  1105. return m.Id
  1106. }
  1107. return 0
  1108. }
  1109. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) GetName() string {
  1110. if m != nil {
  1111. return m.Name
  1112. }
  1113. return ""
  1114. }
  1115. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) GetWebUrl() string {
  1116. if m != nil {
  1117. return m.WebUrl
  1118. }
  1119. return ""
  1120. }
  1121. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) GetMobileUrl() string {
  1122. if m != nil {
  1123. return m.MobileUrl
  1124. }
  1125. return ""
  1126. }
  1127. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) GetUsage() *Usage {
  1128. if m != nil {
  1129. return m.Usage
  1130. }
  1131. return nil
  1132. }
  1133. type CapsuleOpenCapsuleByTypeReq struct {
  1134. // 用户uid
  1135. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  1136. // 扭蛋类型,week:周星
  1137. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type"`
  1138. // 扭的个数 1 10 100
  1139. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count"`
  1140. // 平台
  1141. Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform"`
  1142. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1143. XXX_unrecognized []byte `json:"-"`
  1144. XXX_sizecache int32 `json:"-"`
  1145. }
  1146. func (m *CapsuleOpenCapsuleByTypeReq) Reset() { *m = CapsuleOpenCapsuleByTypeReq{} }
  1147. func (m *CapsuleOpenCapsuleByTypeReq) String() string { return proto.CompactTextString(m) }
  1148. func (*CapsuleOpenCapsuleByTypeReq) ProtoMessage() {}
  1149. func (*CapsuleOpenCapsuleByTypeReq) Descriptor() ([]byte, []int) {
  1150. return fileDescriptor_api_9467f450102a207d, []int{8}
  1151. }
  1152. func (m *CapsuleOpenCapsuleByTypeReq) XXX_Unmarshal(b []byte) error {
  1153. return m.Unmarshal(b)
  1154. }
  1155. func (m *CapsuleOpenCapsuleByTypeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1156. if deterministic {
  1157. return xxx_messageInfo_CapsuleOpenCapsuleByTypeReq.Marshal(b, m, deterministic)
  1158. } else {
  1159. b = b[:cap(b)]
  1160. n, err := m.MarshalTo(b)
  1161. if err != nil {
  1162. return nil, err
  1163. }
  1164. return b[:n], nil
  1165. }
  1166. }
  1167. func (dst *CapsuleOpenCapsuleByTypeReq) XXX_Merge(src proto.Message) {
  1168. xxx_messageInfo_CapsuleOpenCapsuleByTypeReq.Merge(dst, src)
  1169. }
  1170. func (m *CapsuleOpenCapsuleByTypeReq) XXX_Size() int {
  1171. return m.Size()
  1172. }
  1173. func (m *CapsuleOpenCapsuleByTypeReq) XXX_DiscardUnknown() {
  1174. xxx_messageInfo_CapsuleOpenCapsuleByTypeReq.DiscardUnknown(m)
  1175. }
  1176. var xxx_messageInfo_CapsuleOpenCapsuleByTypeReq proto.InternalMessageInfo
  1177. func (m *CapsuleOpenCapsuleByTypeReq) GetUid() int64 {
  1178. if m != nil {
  1179. return m.Uid
  1180. }
  1181. return 0
  1182. }
  1183. func (m *CapsuleOpenCapsuleByTypeReq) GetType() string {
  1184. if m != nil {
  1185. return m.Type
  1186. }
  1187. return ""
  1188. }
  1189. func (m *CapsuleOpenCapsuleByTypeReq) GetCount() int64 {
  1190. if m != nil {
  1191. return m.Count
  1192. }
  1193. return 0
  1194. }
  1195. func (m *CapsuleOpenCapsuleByTypeReq) GetPlatform() string {
  1196. if m != nil {
  1197. return m.Platform
  1198. }
  1199. return ""
  1200. }
  1201. type CapsuleOpenCapsuleByTypeResp struct {
  1202. // 扭蛋币扣除状态
  1203. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  1204. // 是否包含实物奖品
  1205. IsEntity bool `protobuf:"varint,2,opt,name=isEntity,proto3" json:"isEntity"`
  1206. // 用户扭蛋币拥有状态
  1207. Info *CapsuleOpenCapsuleByTypeResp_CapsuleInfo `protobuf:"bytes,3,opt,name=info" json:"info"`
  1208. // 奖品列表
  1209. Awards []*CapsuleOpenCapsuleByTypeResp_Award `protobuf:"bytes,4,rep,name=awards" json:"awards"`
  1210. // 奖品列表
  1211. Text []string `protobuf:"bytes,5,rep,name=text" json:"text"`
  1212. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1213. XXX_unrecognized []byte `json:"-"`
  1214. XXX_sizecache int32 `json:"-"`
  1215. }
  1216. func (m *CapsuleOpenCapsuleByTypeResp) Reset() { *m = CapsuleOpenCapsuleByTypeResp{} }
  1217. func (m *CapsuleOpenCapsuleByTypeResp) String() string { return proto.CompactTextString(m) }
  1218. func (*CapsuleOpenCapsuleByTypeResp) ProtoMessage() {}
  1219. func (*CapsuleOpenCapsuleByTypeResp) Descriptor() ([]byte, []int) {
  1220. return fileDescriptor_api_9467f450102a207d, []int{9}
  1221. }
  1222. func (m *CapsuleOpenCapsuleByTypeResp) XXX_Unmarshal(b []byte) error {
  1223. return m.Unmarshal(b)
  1224. }
  1225. func (m *CapsuleOpenCapsuleByTypeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1226. if deterministic {
  1227. return xxx_messageInfo_CapsuleOpenCapsuleByTypeResp.Marshal(b, m, deterministic)
  1228. } else {
  1229. b = b[:cap(b)]
  1230. n, err := m.MarshalTo(b)
  1231. if err != nil {
  1232. return nil, err
  1233. }
  1234. return b[:n], nil
  1235. }
  1236. }
  1237. func (dst *CapsuleOpenCapsuleByTypeResp) XXX_Merge(src proto.Message) {
  1238. xxx_messageInfo_CapsuleOpenCapsuleByTypeResp.Merge(dst, src)
  1239. }
  1240. func (m *CapsuleOpenCapsuleByTypeResp) XXX_Size() int {
  1241. return m.Size()
  1242. }
  1243. func (m *CapsuleOpenCapsuleByTypeResp) XXX_DiscardUnknown() {
  1244. xxx_messageInfo_CapsuleOpenCapsuleByTypeResp.DiscardUnknown(m)
  1245. }
  1246. var xxx_messageInfo_CapsuleOpenCapsuleByTypeResp proto.InternalMessageInfo
  1247. func (m *CapsuleOpenCapsuleByTypeResp) GetStatus() bool {
  1248. if m != nil {
  1249. return m.Status
  1250. }
  1251. return false
  1252. }
  1253. func (m *CapsuleOpenCapsuleByTypeResp) GetIsEntity() bool {
  1254. if m != nil {
  1255. return m.IsEntity
  1256. }
  1257. return false
  1258. }
  1259. func (m *CapsuleOpenCapsuleByTypeResp) GetInfo() *CapsuleOpenCapsuleByTypeResp_CapsuleInfo {
  1260. if m != nil {
  1261. return m.Info
  1262. }
  1263. return nil
  1264. }
  1265. func (m *CapsuleOpenCapsuleByTypeResp) GetAwards() []*CapsuleOpenCapsuleByTypeResp_Award {
  1266. if m != nil {
  1267. return m.Awards
  1268. }
  1269. return nil
  1270. }
  1271. func (m *CapsuleOpenCapsuleByTypeResp) GetText() []string {
  1272. if m != nil {
  1273. return m.Text
  1274. }
  1275. return nil
  1276. }
  1277. type CapsuleOpenCapsuleByTypeResp_CapsuleInfo struct {
  1278. // 拥有的币
  1279. Coin int64 `protobuf:"varint,1,opt,name=coin,proto3" json:"coin"`
  1280. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1281. XXX_unrecognized []byte `json:"-"`
  1282. XXX_sizecache int32 `json:"-"`
  1283. }
  1284. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) Reset() {
  1285. *m = CapsuleOpenCapsuleByTypeResp_CapsuleInfo{}
  1286. }
  1287. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) String() string { return proto.CompactTextString(m) }
  1288. func (*CapsuleOpenCapsuleByTypeResp_CapsuleInfo) ProtoMessage() {}
  1289. func (*CapsuleOpenCapsuleByTypeResp_CapsuleInfo) Descriptor() ([]byte, []int) {
  1290. return fileDescriptor_api_9467f450102a207d, []int{9, 0}
  1291. }
  1292. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) XXX_Unmarshal(b []byte) error {
  1293. return m.Unmarshal(b)
  1294. }
  1295. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1296. if deterministic {
  1297. return xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_CapsuleInfo.Marshal(b, m, deterministic)
  1298. } else {
  1299. b = b[:cap(b)]
  1300. n, err := m.MarshalTo(b)
  1301. if err != nil {
  1302. return nil, err
  1303. }
  1304. return b[:n], nil
  1305. }
  1306. }
  1307. func (dst *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) XXX_Merge(src proto.Message) {
  1308. xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_CapsuleInfo.Merge(dst, src)
  1309. }
  1310. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) XXX_Size() int {
  1311. return m.Size()
  1312. }
  1313. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) XXX_DiscardUnknown() {
  1314. xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_CapsuleInfo.DiscardUnknown(m)
  1315. }
  1316. var xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_CapsuleInfo proto.InternalMessageInfo
  1317. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) GetCoin() int64 {
  1318. if m != nil {
  1319. return m.Coin
  1320. }
  1321. return 0
  1322. }
  1323. type CapsuleOpenCapsuleByTypeResp_Award struct {
  1324. // 奖品id
  1325. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  1326. // 奖品名字
  1327. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  1328. // 奖品数量
  1329. Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num"`
  1330. // 奖品 X 数量
  1331. Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text"`
  1332. // 礼物图片
  1333. WebUrl string `protobuf:"bytes,5,opt,name=web_url,json=webUrl,proto3" json:"web_url"`
  1334. // 礼物图片
  1335. MobileUrl string `protobuf:"bytes,6,opt,name=mobile_url,json=mobileUrl,proto3" json:"mobile_url"`
  1336. // 奖品用法说明
  1337. Usage *Usage `protobuf:"bytes,7,opt,name=usage" json:"usage"`
  1338. // 奖品权重
  1339. Weight int64 `protobuf:"varint,8,opt,name=weight,proto3" json:"weight"`
  1340. // 奖品类型 2 头衔
  1341. Type int64 `protobuf:"varint,9,opt,name=type,proto3" json:"type"`
  1342. // 过期时间
  1343. Expire string `protobuf:"bytes,10,opt,name=expire,proto3" json:"expire"`
  1344. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1345. XXX_unrecognized []byte `json:"-"`
  1346. XXX_sizecache int32 `json:"-"`
  1347. }
  1348. func (m *CapsuleOpenCapsuleByTypeResp_Award) Reset() { *m = CapsuleOpenCapsuleByTypeResp_Award{} }
  1349. func (m *CapsuleOpenCapsuleByTypeResp_Award) String() string { return proto.CompactTextString(m) }
  1350. func (*CapsuleOpenCapsuleByTypeResp_Award) ProtoMessage() {}
  1351. func (*CapsuleOpenCapsuleByTypeResp_Award) Descriptor() ([]byte, []int) {
  1352. return fileDescriptor_api_9467f450102a207d, []int{9, 1}
  1353. }
  1354. func (m *CapsuleOpenCapsuleByTypeResp_Award) XXX_Unmarshal(b []byte) error {
  1355. return m.Unmarshal(b)
  1356. }
  1357. func (m *CapsuleOpenCapsuleByTypeResp_Award) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1358. if deterministic {
  1359. return xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_Award.Marshal(b, m, deterministic)
  1360. } else {
  1361. b = b[:cap(b)]
  1362. n, err := m.MarshalTo(b)
  1363. if err != nil {
  1364. return nil, err
  1365. }
  1366. return b[:n], nil
  1367. }
  1368. }
  1369. func (dst *CapsuleOpenCapsuleByTypeResp_Award) XXX_Merge(src proto.Message) {
  1370. xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_Award.Merge(dst, src)
  1371. }
  1372. func (m *CapsuleOpenCapsuleByTypeResp_Award) XXX_Size() int {
  1373. return m.Size()
  1374. }
  1375. func (m *CapsuleOpenCapsuleByTypeResp_Award) XXX_DiscardUnknown() {
  1376. xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_Award.DiscardUnknown(m)
  1377. }
  1378. var xxx_messageInfo_CapsuleOpenCapsuleByTypeResp_Award proto.InternalMessageInfo
  1379. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetId() int64 {
  1380. if m != nil {
  1381. return m.Id
  1382. }
  1383. return 0
  1384. }
  1385. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetName() string {
  1386. if m != nil {
  1387. return m.Name
  1388. }
  1389. return ""
  1390. }
  1391. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetNum() int64 {
  1392. if m != nil {
  1393. return m.Num
  1394. }
  1395. return 0
  1396. }
  1397. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetText() string {
  1398. if m != nil {
  1399. return m.Text
  1400. }
  1401. return ""
  1402. }
  1403. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetWebUrl() string {
  1404. if m != nil {
  1405. return m.WebUrl
  1406. }
  1407. return ""
  1408. }
  1409. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetMobileUrl() string {
  1410. if m != nil {
  1411. return m.MobileUrl
  1412. }
  1413. return ""
  1414. }
  1415. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetUsage() *Usage {
  1416. if m != nil {
  1417. return m.Usage
  1418. }
  1419. return nil
  1420. }
  1421. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetWeight() int64 {
  1422. if m != nil {
  1423. return m.Weight
  1424. }
  1425. return 0
  1426. }
  1427. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetType() int64 {
  1428. if m != nil {
  1429. return m.Type
  1430. }
  1431. return 0
  1432. }
  1433. func (m *CapsuleOpenCapsuleByTypeResp_Award) GetExpire() string {
  1434. if m != nil {
  1435. return m.Expire
  1436. }
  1437. return ""
  1438. }
  1439. type GetCoinListReq struct {
  1440. Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page" validate:"required"`
  1441. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size" validate:"required"`
  1442. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1443. XXX_unrecognized []byte `json:"-"`
  1444. XXX_sizecache int32 `json:"-"`
  1445. }
  1446. func (m *GetCoinListReq) Reset() { *m = GetCoinListReq{} }
  1447. func (m *GetCoinListReq) String() string { return proto.CompactTextString(m) }
  1448. func (*GetCoinListReq) ProtoMessage() {}
  1449. func (*GetCoinListReq) Descriptor() ([]byte, []int) {
  1450. return fileDescriptor_api_9467f450102a207d, []int{10}
  1451. }
  1452. func (m *GetCoinListReq) XXX_Unmarshal(b []byte) error {
  1453. return m.Unmarshal(b)
  1454. }
  1455. func (m *GetCoinListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1456. if deterministic {
  1457. return xxx_messageInfo_GetCoinListReq.Marshal(b, m, deterministic)
  1458. } else {
  1459. b = b[:cap(b)]
  1460. n, err := m.MarshalTo(b)
  1461. if err != nil {
  1462. return nil, err
  1463. }
  1464. return b[:n], nil
  1465. }
  1466. }
  1467. func (dst *GetCoinListReq) XXX_Merge(src proto.Message) {
  1468. xxx_messageInfo_GetCoinListReq.Merge(dst, src)
  1469. }
  1470. func (m *GetCoinListReq) XXX_Size() int {
  1471. return m.Size()
  1472. }
  1473. func (m *GetCoinListReq) XXX_DiscardUnknown() {
  1474. xxx_messageInfo_GetCoinListReq.DiscardUnknown(m)
  1475. }
  1476. var xxx_messageInfo_GetCoinListReq proto.InternalMessageInfo
  1477. func (m *GetCoinListReq) GetPage() int64 {
  1478. if m != nil {
  1479. return m.Page
  1480. }
  1481. return 0
  1482. }
  1483. func (m *GetCoinListReq) GetPageSize() int64 {
  1484. if m != nil {
  1485. return m.PageSize
  1486. }
  1487. return 0
  1488. }
  1489. type GetCoinListResp struct {
  1490. Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
  1491. TotalPage int64 `protobuf:"varint,2,opt,name=total_page,json=totalPage,proto3" json:"total_page"`
  1492. List []*GetCoinListResp_List `protobuf:"bytes,3,rep,name=list" json:"list"`
  1493. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1494. XXX_unrecognized []byte `json:"-"`
  1495. XXX_sizecache int32 `json:"-"`
  1496. }
  1497. func (m *GetCoinListResp) Reset() { *m = GetCoinListResp{} }
  1498. func (m *GetCoinListResp) String() string { return proto.CompactTextString(m) }
  1499. func (*GetCoinListResp) ProtoMessage() {}
  1500. func (*GetCoinListResp) Descriptor() ([]byte, []int) {
  1501. return fileDescriptor_api_9467f450102a207d, []int{11}
  1502. }
  1503. func (m *GetCoinListResp) XXX_Unmarshal(b []byte) error {
  1504. return m.Unmarshal(b)
  1505. }
  1506. func (m *GetCoinListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1507. if deterministic {
  1508. return xxx_messageInfo_GetCoinListResp.Marshal(b, m, deterministic)
  1509. } else {
  1510. b = b[:cap(b)]
  1511. n, err := m.MarshalTo(b)
  1512. if err != nil {
  1513. return nil, err
  1514. }
  1515. return b[:n], nil
  1516. }
  1517. }
  1518. func (dst *GetCoinListResp) XXX_Merge(src proto.Message) {
  1519. xxx_messageInfo_GetCoinListResp.Merge(dst, src)
  1520. }
  1521. func (m *GetCoinListResp) XXX_Size() int {
  1522. return m.Size()
  1523. }
  1524. func (m *GetCoinListResp) XXX_DiscardUnknown() {
  1525. xxx_messageInfo_GetCoinListResp.DiscardUnknown(m)
  1526. }
  1527. var xxx_messageInfo_GetCoinListResp proto.InternalMessageInfo
  1528. func (m *GetCoinListResp) GetTotal() int64 {
  1529. if m != nil {
  1530. return m.Total
  1531. }
  1532. return 0
  1533. }
  1534. func (m *GetCoinListResp) GetTotalPage() int64 {
  1535. if m != nil {
  1536. return m.TotalPage
  1537. }
  1538. return 0
  1539. }
  1540. func (m *GetCoinListResp) GetList() []*GetCoinListResp_List {
  1541. if m != nil {
  1542. return m.List
  1543. }
  1544. return nil
  1545. }
  1546. type GetCoinListResp_List struct {
  1547. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  1548. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"`
  1549. ChangeNum int64 `protobuf:"varint,3,opt,name=change_num,json=changeNum,proto3" json:"change_num"`
  1550. StartTime int64 `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time"`
  1551. EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time"`
  1552. Status int64 `protobuf:"varint,6,opt,name=status,proto3" json:"status"`
  1553. GiftType int64 `protobuf:"varint,7,opt,name=gift_type,json=giftType,proto3" json:"gift_type"`
  1554. GiftConfig string `protobuf:"bytes,8,opt,name=gift_config,json=giftConfig,proto3" json:"gift_config"`
  1555. AreaIds []*GetCoinListResp_List_AreaIds `protobuf:"bytes,9,rep,name=area_ids,json=areaIds" json:"area_ids"`
  1556. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1557. XXX_unrecognized []byte `json:"-"`
  1558. XXX_sizecache int32 `json:"-"`
  1559. }
  1560. func (m *GetCoinListResp_List) Reset() { *m = GetCoinListResp_List{} }
  1561. func (m *GetCoinListResp_List) String() string { return proto.CompactTextString(m) }
  1562. func (*GetCoinListResp_List) ProtoMessage() {}
  1563. func (*GetCoinListResp_List) Descriptor() ([]byte, []int) {
  1564. return fileDescriptor_api_9467f450102a207d, []int{11, 0}
  1565. }
  1566. func (m *GetCoinListResp_List) XXX_Unmarshal(b []byte) error {
  1567. return m.Unmarshal(b)
  1568. }
  1569. func (m *GetCoinListResp_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1570. if deterministic {
  1571. return xxx_messageInfo_GetCoinListResp_List.Marshal(b, m, deterministic)
  1572. } else {
  1573. b = b[:cap(b)]
  1574. n, err := m.MarshalTo(b)
  1575. if err != nil {
  1576. return nil, err
  1577. }
  1578. return b[:n], nil
  1579. }
  1580. }
  1581. func (dst *GetCoinListResp_List) XXX_Merge(src proto.Message) {
  1582. xxx_messageInfo_GetCoinListResp_List.Merge(dst, src)
  1583. }
  1584. func (m *GetCoinListResp_List) XXX_Size() int {
  1585. return m.Size()
  1586. }
  1587. func (m *GetCoinListResp_List) XXX_DiscardUnknown() {
  1588. xxx_messageInfo_GetCoinListResp_List.DiscardUnknown(m)
  1589. }
  1590. var xxx_messageInfo_GetCoinListResp_List proto.InternalMessageInfo
  1591. func (m *GetCoinListResp_List) GetId() int64 {
  1592. if m != nil {
  1593. return m.Id
  1594. }
  1595. return 0
  1596. }
  1597. func (m *GetCoinListResp_List) GetTitle() string {
  1598. if m != nil {
  1599. return m.Title
  1600. }
  1601. return ""
  1602. }
  1603. func (m *GetCoinListResp_List) GetChangeNum() int64 {
  1604. if m != nil {
  1605. return m.ChangeNum
  1606. }
  1607. return 0
  1608. }
  1609. func (m *GetCoinListResp_List) GetStartTime() int64 {
  1610. if m != nil {
  1611. return m.StartTime
  1612. }
  1613. return 0
  1614. }
  1615. func (m *GetCoinListResp_List) GetEndTime() int64 {
  1616. if m != nil {
  1617. return m.EndTime
  1618. }
  1619. return 0
  1620. }
  1621. func (m *GetCoinListResp_List) GetStatus() int64 {
  1622. if m != nil {
  1623. return m.Status
  1624. }
  1625. return 0
  1626. }
  1627. func (m *GetCoinListResp_List) GetGiftType() int64 {
  1628. if m != nil {
  1629. return m.GiftType
  1630. }
  1631. return 0
  1632. }
  1633. func (m *GetCoinListResp_List) GetGiftConfig() string {
  1634. if m != nil {
  1635. return m.GiftConfig
  1636. }
  1637. return ""
  1638. }
  1639. func (m *GetCoinListResp_List) GetAreaIds() []*GetCoinListResp_List_AreaIds {
  1640. if m != nil {
  1641. return m.AreaIds
  1642. }
  1643. return nil
  1644. }
  1645. type GetCoinListResp_List_AreaIds struct {
  1646. ParentId int64 `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id"`
  1647. IsAll int64 `protobuf:"varint,2,opt,name=is_all,json=isAll,proto3" json:"is_all"`
  1648. List []int64 `protobuf:"varint,3,rep,packed,name=list" json:"list"`
  1649. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1650. XXX_unrecognized []byte `json:"-"`
  1651. XXX_sizecache int32 `json:"-"`
  1652. }
  1653. func (m *GetCoinListResp_List_AreaIds) Reset() { *m = GetCoinListResp_List_AreaIds{} }
  1654. func (m *GetCoinListResp_List_AreaIds) String() string { return proto.CompactTextString(m) }
  1655. func (*GetCoinListResp_List_AreaIds) ProtoMessage() {}
  1656. func (*GetCoinListResp_List_AreaIds) Descriptor() ([]byte, []int) {
  1657. return fileDescriptor_api_9467f450102a207d, []int{11, 0, 0}
  1658. }
  1659. func (m *GetCoinListResp_List_AreaIds) XXX_Unmarshal(b []byte) error {
  1660. return m.Unmarshal(b)
  1661. }
  1662. func (m *GetCoinListResp_List_AreaIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1663. if deterministic {
  1664. return xxx_messageInfo_GetCoinListResp_List_AreaIds.Marshal(b, m, deterministic)
  1665. } else {
  1666. b = b[:cap(b)]
  1667. n, err := m.MarshalTo(b)
  1668. if err != nil {
  1669. return nil, err
  1670. }
  1671. return b[:n], nil
  1672. }
  1673. }
  1674. func (dst *GetCoinListResp_List_AreaIds) XXX_Merge(src proto.Message) {
  1675. xxx_messageInfo_GetCoinListResp_List_AreaIds.Merge(dst, src)
  1676. }
  1677. func (m *GetCoinListResp_List_AreaIds) XXX_Size() int {
  1678. return m.Size()
  1679. }
  1680. func (m *GetCoinListResp_List_AreaIds) XXX_DiscardUnknown() {
  1681. xxx_messageInfo_GetCoinListResp_List_AreaIds.DiscardUnknown(m)
  1682. }
  1683. var xxx_messageInfo_GetCoinListResp_List_AreaIds proto.InternalMessageInfo
  1684. func (m *GetCoinListResp_List_AreaIds) GetParentId() int64 {
  1685. if m != nil {
  1686. return m.ParentId
  1687. }
  1688. return 0
  1689. }
  1690. func (m *GetCoinListResp_List_AreaIds) GetIsAll() int64 {
  1691. if m != nil {
  1692. return m.IsAll
  1693. }
  1694. return 0
  1695. }
  1696. func (m *GetCoinListResp_List_AreaIds) GetList() []int64 {
  1697. if m != nil {
  1698. return m.List
  1699. }
  1700. return nil
  1701. }
  1702. type UpdateCoinConfigReq struct {
  1703. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"`
  1704. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title" form:"title" validate:"required"`
  1705. ChangeNum int64 `protobuf:"varint,3,opt,name=change_num,json=changeNum,proto3" json:"change_num" form:"change_num" validate:"required"`
  1706. StartTime int64 `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time" form:"start_time" validate:"required"`
  1707. EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time" form:"end_time" validate:"required"`
  1708. Status int64 `protobuf:"varint,6,opt,name=status,proto3" json:"status" form:"status" validate:"required"`
  1709. GiftType int64 `protobuf:"varint,7,opt,name=gift_type,json=giftType,proto3" json:"gift_type" form:"gift_type" validate:"required"`
  1710. GiftIds []int64 `protobuf:"varint,8,rep,packed,name=gift_ids,json=giftIds" json:"gift_ids" form:"gift_ids"`
  1711. AreaIds []*UpdateCoinConfigReq_AreaIds `protobuf:"bytes,9,rep,name=area_ids,json=areaIds" json:"area_ids" form:"area_ids" validate:"required"`
  1712. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1713. XXX_unrecognized []byte `json:"-"`
  1714. XXX_sizecache int32 `json:"-"`
  1715. }
  1716. func (m *UpdateCoinConfigReq) Reset() { *m = UpdateCoinConfigReq{} }
  1717. func (m *UpdateCoinConfigReq) String() string { return proto.CompactTextString(m) }
  1718. func (*UpdateCoinConfigReq) ProtoMessage() {}
  1719. func (*UpdateCoinConfigReq) Descriptor() ([]byte, []int) {
  1720. return fileDescriptor_api_9467f450102a207d, []int{12}
  1721. }
  1722. func (m *UpdateCoinConfigReq) XXX_Unmarshal(b []byte) error {
  1723. return m.Unmarshal(b)
  1724. }
  1725. func (m *UpdateCoinConfigReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1726. if deterministic {
  1727. return xxx_messageInfo_UpdateCoinConfigReq.Marshal(b, m, deterministic)
  1728. } else {
  1729. b = b[:cap(b)]
  1730. n, err := m.MarshalTo(b)
  1731. if err != nil {
  1732. return nil, err
  1733. }
  1734. return b[:n], nil
  1735. }
  1736. }
  1737. func (dst *UpdateCoinConfigReq) XXX_Merge(src proto.Message) {
  1738. xxx_messageInfo_UpdateCoinConfigReq.Merge(dst, src)
  1739. }
  1740. func (m *UpdateCoinConfigReq) XXX_Size() int {
  1741. return m.Size()
  1742. }
  1743. func (m *UpdateCoinConfigReq) XXX_DiscardUnknown() {
  1744. xxx_messageInfo_UpdateCoinConfigReq.DiscardUnknown(m)
  1745. }
  1746. var xxx_messageInfo_UpdateCoinConfigReq proto.InternalMessageInfo
  1747. func (m *UpdateCoinConfigReq) GetId() int64 {
  1748. if m != nil {
  1749. return m.Id
  1750. }
  1751. return 0
  1752. }
  1753. func (m *UpdateCoinConfigReq) GetTitle() string {
  1754. if m != nil {
  1755. return m.Title
  1756. }
  1757. return ""
  1758. }
  1759. func (m *UpdateCoinConfigReq) GetChangeNum() int64 {
  1760. if m != nil {
  1761. return m.ChangeNum
  1762. }
  1763. return 0
  1764. }
  1765. func (m *UpdateCoinConfigReq) GetStartTime() int64 {
  1766. if m != nil {
  1767. return m.StartTime
  1768. }
  1769. return 0
  1770. }
  1771. func (m *UpdateCoinConfigReq) GetEndTime() int64 {
  1772. if m != nil {
  1773. return m.EndTime
  1774. }
  1775. return 0
  1776. }
  1777. func (m *UpdateCoinConfigReq) GetStatus() int64 {
  1778. if m != nil {
  1779. return m.Status
  1780. }
  1781. return 0
  1782. }
  1783. func (m *UpdateCoinConfigReq) GetGiftType() int64 {
  1784. if m != nil {
  1785. return m.GiftType
  1786. }
  1787. return 0
  1788. }
  1789. func (m *UpdateCoinConfigReq) GetGiftIds() []int64 {
  1790. if m != nil {
  1791. return m.GiftIds
  1792. }
  1793. return nil
  1794. }
  1795. func (m *UpdateCoinConfigReq) GetAreaIds() []*UpdateCoinConfigReq_AreaIds {
  1796. if m != nil {
  1797. return m.AreaIds
  1798. }
  1799. return nil
  1800. }
  1801. type UpdateCoinConfigReq_AreaIds struct {
  1802. ParentId int64 `protobuf:"varint,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id" form:"parent_id" validate:"required"`
  1803. IsAll int64 `protobuf:"varint,2,opt,name=is_all,json=isAll,proto3" json:"is_all" form:"is_all"`
  1804. List []int64 `protobuf:"varint,3,rep,packed,name=list" json:"list" form:"list" validate:"required"`
  1805. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1806. XXX_unrecognized []byte `json:"-"`
  1807. XXX_sizecache int32 `json:"-"`
  1808. }
  1809. func (m *UpdateCoinConfigReq_AreaIds) Reset() { *m = UpdateCoinConfigReq_AreaIds{} }
  1810. func (m *UpdateCoinConfigReq_AreaIds) String() string { return proto.CompactTextString(m) }
  1811. func (*UpdateCoinConfigReq_AreaIds) ProtoMessage() {}
  1812. func (*UpdateCoinConfigReq_AreaIds) Descriptor() ([]byte, []int) {
  1813. return fileDescriptor_api_9467f450102a207d, []int{12, 0}
  1814. }
  1815. func (m *UpdateCoinConfigReq_AreaIds) XXX_Unmarshal(b []byte) error {
  1816. return m.Unmarshal(b)
  1817. }
  1818. func (m *UpdateCoinConfigReq_AreaIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1819. if deterministic {
  1820. return xxx_messageInfo_UpdateCoinConfigReq_AreaIds.Marshal(b, m, deterministic)
  1821. } else {
  1822. b = b[:cap(b)]
  1823. n, err := m.MarshalTo(b)
  1824. if err != nil {
  1825. return nil, err
  1826. }
  1827. return b[:n], nil
  1828. }
  1829. }
  1830. func (dst *UpdateCoinConfigReq_AreaIds) XXX_Merge(src proto.Message) {
  1831. xxx_messageInfo_UpdateCoinConfigReq_AreaIds.Merge(dst, src)
  1832. }
  1833. func (m *UpdateCoinConfigReq_AreaIds) XXX_Size() int {
  1834. return m.Size()
  1835. }
  1836. func (m *UpdateCoinConfigReq_AreaIds) XXX_DiscardUnknown() {
  1837. xxx_messageInfo_UpdateCoinConfigReq_AreaIds.DiscardUnknown(m)
  1838. }
  1839. var xxx_messageInfo_UpdateCoinConfigReq_AreaIds proto.InternalMessageInfo
  1840. func (m *UpdateCoinConfigReq_AreaIds) GetParentId() int64 {
  1841. if m != nil {
  1842. return m.ParentId
  1843. }
  1844. return 0
  1845. }
  1846. func (m *UpdateCoinConfigReq_AreaIds) GetIsAll() int64 {
  1847. if m != nil {
  1848. return m.IsAll
  1849. }
  1850. return 0
  1851. }
  1852. func (m *UpdateCoinConfigReq_AreaIds) GetList() []int64 {
  1853. if m != nil {
  1854. return m.List
  1855. }
  1856. return nil
  1857. }
  1858. type UpdateCoinConfigResp struct {
  1859. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  1860. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1861. XXX_unrecognized []byte `json:"-"`
  1862. XXX_sizecache int32 `json:"-"`
  1863. }
  1864. func (m *UpdateCoinConfigResp) Reset() { *m = UpdateCoinConfigResp{} }
  1865. func (m *UpdateCoinConfigResp) String() string { return proto.CompactTextString(m) }
  1866. func (*UpdateCoinConfigResp) ProtoMessage() {}
  1867. func (*UpdateCoinConfigResp) Descriptor() ([]byte, []int) {
  1868. return fileDescriptor_api_9467f450102a207d, []int{13}
  1869. }
  1870. func (m *UpdateCoinConfigResp) XXX_Unmarshal(b []byte) error {
  1871. return m.Unmarshal(b)
  1872. }
  1873. func (m *UpdateCoinConfigResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1874. if deterministic {
  1875. return xxx_messageInfo_UpdateCoinConfigResp.Marshal(b, m, deterministic)
  1876. } else {
  1877. b = b[:cap(b)]
  1878. n, err := m.MarshalTo(b)
  1879. if err != nil {
  1880. return nil, err
  1881. }
  1882. return b[:n], nil
  1883. }
  1884. }
  1885. func (dst *UpdateCoinConfigResp) XXX_Merge(src proto.Message) {
  1886. xxx_messageInfo_UpdateCoinConfigResp.Merge(dst, src)
  1887. }
  1888. func (m *UpdateCoinConfigResp) XXX_Size() int {
  1889. return m.Size()
  1890. }
  1891. func (m *UpdateCoinConfigResp) XXX_DiscardUnknown() {
  1892. xxx_messageInfo_UpdateCoinConfigResp.DiscardUnknown(m)
  1893. }
  1894. var xxx_messageInfo_UpdateCoinConfigResp proto.InternalMessageInfo
  1895. func (m *UpdateCoinConfigResp) GetStatus() bool {
  1896. if m != nil {
  1897. return m.Status
  1898. }
  1899. return false
  1900. }
  1901. type UpdateCoinStatusReq struct {
  1902. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id" validate:"required"`
  1903. Status int64 `protobuf:"varint,2,opt,name=status,proto3" json:"status" form:"status"`
  1904. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1905. XXX_unrecognized []byte `json:"-"`
  1906. XXX_sizecache int32 `json:"-"`
  1907. }
  1908. func (m *UpdateCoinStatusReq) Reset() { *m = UpdateCoinStatusReq{} }
  1909. func (m *UpdateCoinStatusReq) String() string { return proto.CompactTextString(m) }
  1910. func (*UpdateCoinStatusReq) ProtoMessage() {}
  1911. func (*UpdateCoinStatusReq) Descriptor() ([]byte, []int) {
  1912. return fileDescriptor_api_9467f450102a207d, []int{14}
  1913. }
  1914. func (m *UpdateCoinStatusReq) XXX_Unmarshal(b []byte) error {
  1915. return m.Unmarshal(b)
  1916. }
  1917. func (m *UpdateCoinStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1918. if deterministic {
  1919. return xxx_messageInfo_UpdateCoinStatusReq.Marshal(b, m, deterministic)
  1920. } else {
  1921. b = b[:cap(b)]
  1922. n, err := m.MarshalTo(b)
  1923. if err != nil {
  1924. return nil, err
  1925. }
  1926. return b[:n], nil
  1927. }
  1928. }
  1929. func (dst *UpdateCoinStatusReq) XXX_Merge(src proto.Message) {
  1930. xxx_messageInfo_UpdateCoinStatusReq.Merge(dst, src)
  1931. }
  1932. func (m *UpdateCoinStatusReq) XXX_Size() int {
  1933. return m.Size()
  1934. }
  1935. func (m *UpdateCoinStatusReq) XXX_DiscardUnknown() {
  1936. xxx_messageInfo_UpdateCoinStatusReq.DiscardUnknown(m)
  1937. }
  1938. var xxx_messageInfo_UpdateCoinStatusReq proto.InternalMessageInfo
  1939. func (m *UpdateCoinStatusReq) GetId() int64 {
  1940. if m != nil {
  1941. return m.Id
  1942. }
  1943. return 0
  1944. }
  1945. func (m *UpdateCoinStatusReq) GetStatus() int64 {
  1946. if m != nil {
  1947. return m.Status
  1948. }
  1949. return 0
  1950. }
  1951. type UpdateCoinStatusResp struct {
  1952. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  1953. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1954. XXX_unrecognized []byte `json:"-"`
  1955. XXX_sizecache int32 `json:"-"`
  1956. }
  1957. func (m *UpdateCoinStatusResp) Reset() { *m = UpdateCoinStatusResp{} }
  1958. func (m *UpdateCoinStatusResp) String() string { return proto.CompactTextString(m) }
  1959. func (*UpdateCoinStatusResp) ProtoMessage() {}
  1960. func (*UpdateCoinStatusResp) Descriptor() ([]byte, []int) {
  1961. return fileDescriptor_api_9467f450102a207d, []int{15}
  1962. }
  1963. func (m *UpdateCoinStatusResp) XXX_Unmarshal(b []byte) error {
  1964. return m.Unmarshal(b)
  1965. }
  1966. func (m *UpdateCoinStatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1967. if deterministic {
  1968. return xxx_messageInfo_UpdateCoinStatusResp.Marshal(b, m, deterministic)
  1969. } else {
  1970. b = b[:cap(b)]
  1971. n, err := m.MarshalTo(b)
  1972. if err != nil {
  1973. return nil, err
  1974. }
  1975. return b[:n], nil
  1976. }
  1977. }
  1978. func (dst *UpdateCoinStatusResp) XXX_Merge(src proto.Message) {
  1979. xxx_messageInfo_UpdateCoinStatusResp.Merge(dst, src)
  1980. }
  1981. func (m *UpdateCoinStatusResp) XXX_Size() int {
  1982. return m.Size()
  1983. }
  1984. func (m *UpdateCoinStatusResp) XXX_DiscardUnknown() {
  1985. xxx_messageInfo_UpdateCoinStatusResp.DiscardUnknown(m)
  1986. }
  1987. var xxx_messageInfo_UpdateCoinStatusResp proto.InternalMessageInfo
  1988. func (m *UpdateCoinStatusResp) GetStatus() bool {
  1989. if m != nil {
  1990. return m.Status
  1991. }
  1992. return false
  1993. }
  1994. type DeleteCoinReq struct {
  1995. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id" validate:"required"`
  1996. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1997. XXX_unrecognized []byte `json:"-"`
  1998. XXX_sizecache int32 `json:"-"`
  1999. }
  2000. func (m *DeleteCoinReq) Reset() { *m = DeleteCoinReq{} }
  2001. func (m *DeleteCoinReq) String() string { return proto.CompactTextString(m) }
  2002. func (*DeleteCoinReq) ProtoMessage() {}
  2003. func (*DeleteCoinReq) Descriptor() ([]byte, []int) {
  2004. return fileDescriptor_api_9467f450102a207d, []int{16}
  2005. }
  2006. func (m *DeleteCoinReq) XXX_Unmarshal(b []byte) error {
  2007. return m.Unmarshal(b)
  2008. }
  2009. func (m *DeleteCoinReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2010. if deterministic {
  2011. return xxx_messageInfo_DeleteCoinReq.Marshal(b, m, deterministic)
  2012. } else {
  2013. b = b[:cap(b)]
  2014. n, err := m.MarshalTo(b)
  2015. if err != nil {
  2016. return nil, err
  2017. }
  2018. return b[:n], nil
  2019. }
  2020. }
  2021. func (dst *DeleteCoinReq) XXX_Merge(src proto.Message) {
  2022. xxx_messageInfo_DeleteCoinReq.Merge(dst, src)
  2023. }
  2024. func (m *DeleteCoinReq) XXX_Size() int {
  2025. return m.Size()
  2026. }
  2027. func (m *DeleteCoinReq) XXX_DiscardUnknown() {
  2028. xxx_messageInfo_DeleteCoinReq.DiscardUnknown(m)
  2029. }
  2030. var xxx_messageInfo_DeleteCoinReq proto.InternalMessageInfo
  2031. func (m *DeleteCoinReq) GetId() int64 {
  2032. if m != nil {
  2033. return m.Id
  2034. }
  2035. return 0
  2036. }
  2037. type DeleteCoinResp struct {
  2038. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  2039. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2040. XXX_unrecognized []byte `json:"-"`
  2041. XXX_sizecache int32 `json:"-"`
  2042. }
  2043. func (m *DeleteCoinResp) Reset() { *m = DeleteCoinResp{} }
  2044. func (m *DeleteCoinResp) String() string { return proto.CompactTextString(m) }
  2045. func (*DeleteCoinResp) ProtoMessage() {}
  2046. func (*DeleteCoinResp) Descriptor() ([]byte, []int) {
  2047. return fileDescriptor_api_9467f450102a207d, []int{17}
  2048. }
  2049. func (m *DeleteCoinResp) XXX_Unmarshal(b []byte) error {
  2050. return m.Unmarshal(b)
  2051. }
  2052. func (m *DeleteCoinResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2053. if deterministic {
  2054. return xxx_messageInfo_DeleteCoinResp.Marshal(b, m, deterministic)
  2055. } else {
  2056. b = b[:cap(b)]
  2057. n, err := m.MarshalTo(b)
  2058. if err != nil {
  2059. return nil, err
  2060. }
  2061. return b[:n], nil
  2062. }
  2063. }
  2064. func (dst *DeleteCoinResp) XXX_Merge(src proto.Message) {
  2065. xxx_messageInfo_DeleteCoinResp.Merge(dst, src)
  2066. }
  2067. func (m *DeleteCoinResp) XXX_Size() int {
  2068. return m.Size()
  2069. }
  2070. func (m *DeleteCoinResp) XXX_DiscardUnknown() {
  2071. xxx_messageInfo_DeleteCoinResp.DiscardUnknown(m)
  2072. }
  2073. var xxx_messageInfo_DeleteCoinResp proto.InternalMessageInfo
  2074. func (m *DeleteCoinResp) GetStatus() bool {
  2075. if m != nil {
  2076. return m.Status
  2077. }
  2078. return false
  2079. }
  2080. type GetPoolListReq struct {
  2081. Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page" validate:"required"`
  2082. PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size" validate:"required"`
  2083. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2084. XXX_unrecognized []byte `json:"-"`
  2085. XXX_sizecache int32 `json:"-"`
  2086. }
  2087. func (m *GetPoolListReq) Reset() { *m = GetPoolListReq{} }
  2088. func (m *GetPoolListReq) String() string { return proto.CompactTextString(m) }
  2089. func (*GetPoolListReq) ProtoMessage() {}
  2090. func (*GetPoolListReq) Descriptor() ([]byte, []int) {
  2091. return fileDescriptor_api_9467f450102a207d, []int{18}
  2092. }
  2093. func (m *GetPoolListReq) XXX_Unmarshal(b []byte) error {
  2094. return m.Unmarshal(b)
  2095. }
  2096. func (m *GetPoolListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2097. if deterministic {
  2098. return xxx_messageInfo_GetPoolListReq.Marshal(b, m, deterministic)
  2099. } else {
  2100. b = b[:cap(b)]
  2101. n, err := m.MarshalTo(b)
  2102. if err != nil {
  2103. return nil, err
  2104. }
  2105. return b[:n], nil
  2106. }
  2107. }
  2108. func (dst *GetPoolListReq) XXX_Merge(src proto.Message) {
  2109. xxx_messageInfo_GetPoolListReq.Merge(dst, src)
  2110. }
  2111. func (m *GetPoolListReq) XXX_Size() int {
  2112. return m.Size()
  2113. }
  2114. func (m *GetPoolListReq) XXX_DiscardUnknown() {
  2115. xxx_messageInfo_GetPoolListReq.DiscardUnknown(m)
  2116. }
  2117. var xxx_messageInfo_GetPoolListReq proto.InternalMessageInfo
  2118. func (m *GetPoolListReq) GetPage() int64 {
  2119. if m != nil {
  2120. return m.Page
  2121. }
  2122. return 0
  2123. }
  2124. func (m *GetPoolListReq) GetPageSize() int64 {
  2125. if m != nil {
  2126. return m.PageSize
  2127. }
  2128. return 0
  2129. }
  2130. type GetPoolListResp struct {
  2131. Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total"`
  2132. TotalPage int64 `protobuf:"varint,2,opt,name=total_page,json=totalPage,proto3" json:"total_page"`
  2133. List []*GetPoolListResp_List `protobuf:"bytes,3,rep,name=list" json:"list"`
  2134. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2135. XXX_unrecognized []byte `json:"-"`
  2136. XXX_sizecache int32 `json:"-"`
  2137. }
  2138. func (m *GetPoolListResp) Reset() { *m = GetPoolListResp{} }
  2139. func (m *GetPoolListResp) String() string { return proto.CompactTextString(m) }
  2140. func (*GetPoolListResp) ProtoMessage() {}
  2141. func (*GetPoolListResp) Descriptor() ([]byte, []int) {
  2142. return fileDescriptor_api_9467f450102a207d, []int{19}
  2143. }
  2144. func (m *GetPoolListResp) XXX_Unmarshal(b []byte) error {
  2145. return m.Unmarshal(b)
  2146. }
  2147. func (m *GetPoolListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2148. if deterministic {
  2149. return xxx_messageInfo_GetPoolListResp.Marshal(b, m, deterministic)
  2150. } else {
  2151. b = b[:cap(b)]
  2152. n, err := m.MarshalTo(b)
  2153. if err != nil {
  2154. return nil, err
  2155. }
  2156. return b[:n], nil
  2157. }
  2158. }
  2159. func (dst *GetPoolListResp) XXX_Merge(src proto.Message) {
  2160. xxx_messageInfo_GetPoolListResp.Merge(dst, src)
  2161. }
  2162. func (m *GetPoolListResp) XXX_Size() int {
  2163. return m.Size()
  2164. }
  2165. func (m *GetPoolListResp) XXX_DiscardUnknown() {
  2166. xxx_messageInfo_GetPoolListResp.DiscardUnknown(m)
  2167. }
  2168. var xxx_messageInfo_GetPoolListResp proto.InternalMessageInfo
  2169. func (m *GetPoolListResp) GetTotal() int64 {
  2170. if m != nil {
  2171. return m.Total
  2172. }
  2173. return 0
  2174. }
  2175. func (m *GetPoolListResp) GetTotalPage() int64 {
  2176. if m != nil {
  2177. return m.TotalPage
  2178. }
  2179. return 0
  2180. }
  2181. func (m *GetPoolListResp) GetList() []*GetPoolListResp_List {
  2182. if m != nil {
  2183. return m.List
  2184. }
  2185. return nil
  2186. }
  2187. type GetPoolListResp_List struct {
  2188. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  2189. CoinId int64 `protobuf:"varint,2,opt,name=coin_id,json=coinId,proto3" json:"coin_id"`
  2190. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title"`
  2191. CoinTitle string `protobuf:"bytes,8,opt,name=coin_title,json=coinTitle,proto3" json:"coin_title"`
  2192. StartTime int64 `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time"`
  2193. EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time"`
  2194. Status int64 `protobuf:"varint,6,opt,name=status,proto3" json:"status"`
  2195. Rule string `protobuf:"bytes,7,opt,name=rule,proto3" json:"rule"`
  2196. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2197. XXX_unrecognized []byte `json:"-"`
  2198. XXX_sizecache int32 `json:"-"`
  2199. }
  2200. func (m *GetPoolListResp_List) Reset() { *m = GetPoolListResp_List{} }
  2201. func (m *GetPoolListResp_List) String() string { return proto.CompactTextString(m) }
  2202. func (*GetPoolListResp_List) ProtoMessage() {}
  2203. func (*GetPoolListResp_List) Descriptor() ([]byte, []int) {
  2204. return fileDescriptor_api_9467f450102a207d, []int{19, 0}
  2205. }
  2206. func (m *GetPoolListResp_List) XXX_Unmarshal(b []byte) error {
  2207. return m.Unmarshal(b)
  2208. }
  2209. func (m *GetPoolListResp_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2210. if deterministic {
  2211. return xxx_messageInfo_GetPoolListResp_List.Marshal(b, m, deterministic)
  2212. } else {
  2213. b = b[:cap(b)]
  2214. n, err := m.MarshalTo(b)
  2215. if err != nil {
  2216. return nil, err
  2217. }
  2218. return b[:n], nil
  2219. }
  2220. }
  2221. func (dst *GetPoolListResp_List) XXX_Merge(src proto.Message) {
  2222. xxx_messageInfo_GetPoolListResp_List.Merge(dst, src)
  2223. }
  2224. func (m *GetPoolListResp_List) XXX_Size() int {
  2225. return m.Size()
  2226. }
  2227. func (m *GetPoolListResp_List) XXX_DiscardUnknown() {
  2228. xxx_messageInfo_GetPoolListResp_List.DiscardUnknown(m)
  2229. }
  2230. var xxx_messageInfo_GetPoolListResp_List proto.InternalMessageInfo
  2231. func (m *GetPoolListResp_List) GetId() int64 {
  2232. if m != nil {
  2233. return m.Id
  2234. }
  2235. return 0
  2236. }
  2237. func (m *GetPoolListResp_List) GetCoinId() int64 {
  2238. if m != nil {
  2239. return m.CoinId
  2240. }
  2241. return 0
  2242. }
  2243. func (m *GetPoolListResp_List) GetTitle() string {
  2244. if m != nil {
  2245. return m.Title
  2246. }
  2247. return ""
  2248. }
  2249. func (m *GetPoolListResp_List) GetCoinTitle() string {
  2250. if m != nil {
  2251. return m.CoinTitle
  2252. }
  2253. return ""
  2254. }
  2255. func (m *GetPoolListResp_List) GetStartTime() int64 {
  2256. if m != nil {
  2257. return m.StartTime
  2258. }
  2259. return 0
  2260. }
  2261. func (m *GetPoolListResp_List) GetEndTime() int64 {
  2262. if m != nil {
  2263. return m.EndTime
  2264. }
  2265. return 0
  2266. }
  2267. func (m *GetPoolListResp_List) GetStatus() int64 {
  2268. if m != nil {
  2269. return m.Status
  2270. }
  2271. return 0
  2272. }
  2273. func (m *GetPoolListResp_List) GetRule() string {
  2274. if m != nil {
  2275. return m.Rule
  2276. }
  2277. return ""
  2278. }
  2279. type UpdatePoolReq struct {
  2280. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"`
  2281. CoinId int64 `protobuf:"varint,2,opt,name=coin_id,json=coinId,proto3" json:"coin_id" form:"coin_id" validate:"required"`
  2282. Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title" form:"title" validate:"required"`
  2283. StartTime int64 `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time" form:"start_time" validate:"required"`
  2284. EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time" form:"end_time" validate:"required"`
  2285. Rule string `protobuf:"bytes,6,opt,name=rule,proto3" json:"rule" form:"rule" validate:"required"`
  2286. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2287. XXX_unrecognized []byte `json:"-"`
  2288. XXX_sizecache int32 `json:"-"`
  2289. }
  2290. func (m *UpdatePoolReq) Reset() { *m = UpdatePoolReq{} }
  2291. func (m *UpdatePoolReq) String() string { return proto.CompactTextString(m) }
  2292. func (*UpdatePoolReq) ProtoMessage() {}
  2293. func (*UpdatePoolReq) Descriptor() ([]byte, []int) {
  2294. return fileDescriptor_api_9467f450102a207d, []int{20}
  2295. }
  2296. func (m *UpdatePoolReq) XXX_Unmarshal(b []byte) error {
  2297. return m.Unmarshal(b)
  2298. }
  2299. func (m *UpdatePoolReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2300. if deterministic {
  2301. return xxx_messageInfo_UpdatePoolReq.Marshal(b, m, deterministic)
  2302. } else {
  2303. b = b[:cap(b)]
  2304. n, err := m.MarshalTo(b)
  2305. if err != nil {
  2306. return nil, err
  2307. }
  2308. return b[:n], nil
  2309. }
  2310. }
  2311. func (dst *UpdatePoolReq) XXX_Merge(src proto.Message) {
  2312. xxx_messageInfo_UpdatePoolReq.Merge(dst, src)
  2313. }
  2314. func (m *UpdatePoolReq) XXX_Size() int {
  2315. return m.Size()
  2316. }
  2317. func (m *UpdatePoolReq) XXX_DiscardUnknown() {
  2318. xxx_messageInfo_UpdatePoolReq.DiscardUnknown(m)
  2319. }
  2320. var xxx_messageInfo_UpdatePoolReq proto.InternalMessageInfo
  2321. func (m *UpdatePoolReq) GetId() int64 {
  2322. if m != nil {
  2323. return m.Id
  2324. }
  2325. return 0
  2326. }
  2327. func (m *UpdatePoolReq) GetCoinId() int64 {
  2328. if m != nil {
  2329. return m.CoinId
  2330. }
  2331. return 0
  2332. }
  2333. func (m *UpdatePoolReq) GetTitle() string {
  2334. if m != nil {
  2335. return m.Title
  2336. }
  2337. return ""
  2338. }
  2339. func (m *UpdatePoolReq) GetStartTime() int64 {
  2340. if m != nil {
  2341. return m.StartTime
  2342. }
  2343. return 0
  2344. }
  2345. func (m *UpdatePoolReq) GetEndTime() int64 {
  2346. if m != nil {
  2347. return m.EndTime
  2348. }
  2349. return 0
  2350. }
  2351. func (m *UpdatePoolReq) GetRule() string {
  2352. if m != nil {
  2353. return m.Rule
  2354. }
  2355. return ""
  2356. }
  2357. type UpdatePoolResp struct {
  2358. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  2359. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2360. XXX_unrecognized []byte `json:"-"`
  2361. XXX_sizecache int32 `json:"-"`
  2362. }
  2363. func (m *UpdatePoolResp) Reset() { *m = UpdatePoolResp{} }
  2364. func (m *UpdatePoolResp) String() string { return proto.CompactTextString(m) }
  2365. func (*UpdatePoolResp) ProtoMessage() {}
  2366. func (*UpdatePoolResp) Descriptor() ([]byte, []int) {
  2367. return fileDescriptor_api_9467f450102a207d, []int{21}
  2368. }
  2369. func (m *UpdatePoolResp) XXX_Unmarshal(b []byte) error {
  2370. return m.Unmarshal(b)
  2371. }
  2372. func (m *UpdatePoolResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2373. if deterministic {
  2374. return xxx_messageInfo_UpdatePoolResp.Marshal(b, m, deterministic)
  2375. } else {
  2376. b = b[:cap(b)]
  2377. n, err := m.MarshalTo(b)
  2378. if err != nil {
  2379. return nil, err
  2380. }
  2381. return b[:n], nil
  2382. }
  2383. }
  2384. func (dst *UpdatePoolResp) XXX_Merge(src proto.Message) {
  2385. xxx_messageInfo_UpdatePoolResp.Merge(dst, src)
  2386. }
  2387. func (m *UpdatePoolResp) XXX_Size() int {
  2388. return m.Size()
  2389. }
  2390. func (m *UpdatePoolResp) XXX_DiscardUnknown() {
  2391. xxx_messageInfo_UpdatePoolResp.DiscardUnknown(m)
  2392. }
  2393. var xxx_messageInfo_UpdatePoolResp proto.InternalMessageInfo
  2394. func (m *UpdatePoolResp) GetStatus() bool {
  2395. if m != nil {
  2396. return m.Status
  2397. }
  2398. return false
  2399. }
  2400. type DeletePoolReq struct {
  2401. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id" validate:"required"`
  2402. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2403. XXX_unrecognized []byte `json:"-"`
  2404. XXX_sizecache int32 `json:"-"`
  2405. }
  2406. func (m *DeletePoolReq) Reset() { *m = DeletePoolReq{} }
  2407. func (m *DeletePoolReq) String() string { return proto.CompactTextString(m) }
  2408. func (*DeletePoolReq) ProtoMessage() {}
  2409. func (*DeletePoolReq) Descriptor() ([]byte, []int) {
  2410. return fileDescriptor_api_9467f450102a207d, []int{22}
  2411. }
  2412. func (m *DeletePoolReq) XXX_Unmarshal(b []byte) error {
  2413. return m.Unmarshal(b)
  2414. }
  2415. func (m *DeletePoolReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2416. if deterministic {
  2417. return xxx_messageInfo_DeletePoolReq.Marshal(b, m, deterministic)
  2418. } else {
  2419. b = b[:cap(b)]
  2420. n, err := m.MarshalTo(b)
  2421. if err != nil {
  2422. return nil, err
  2423. }
  2424. return b[:n], nil
  2425. }
  2426. }
  2427. func (dst *DeletePoolReq) XXX_Merge(src proto.Message) {
  2428. xxx_messageInfo_DeletePoolReq.Merge(dst, src)
  2429. }
  2430. func (m *DeletePoolReq) XXX_Size() int {
  2431. return m.Size()
  2432. }
  2433. func (m *DeletePoolReq) XXX_DiscardUnknown() {
  2434. xxx_messageInfo_DeletePoolReq.DiscardUnknown(m)
  2435. }
  2436. var xxx_messageInfo_DeletePoolReq proto.InternalMessageInfo
  2437. func (m *DeletePoolReq) GetId() int64 {
  2438. if m != nil {
  2439. return m.Id
  2440. }
  2441. return 0
  2442. }
  2443. type DeletePoolResp struct {
  2444. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  2445. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2446. XXX_unrecognized []byte `json:"-"`
  2447. XXX_sizecache int32 `json:"-"`
  2448. }
  2449. func (m *DeletePoolResp) Reset() { *m = DeletePoolResp{} }
  2450. func (m *DeletePoolResp) String() string { return proto.CompactTextString(m) }
  2451. func (*DeletePoolResp) ProtoMessage() {}
  2452. func (*DeletePoolResp) Descriptor() ([]byte, []int) {
  2453. return fileDescriptor_api_9467f450102a207d, []int{23}
  2454. }
  2455. func (m *DeletePoolResp) XXX_Unmarshal(b []byte) error {
  2456. return m.Unmarshal(b)
  2457. }
  2458. func (m *DeletePoolResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2459. if deterministic {
  2460. return xxx_messageInfo_DeletePoolResp.Marshal(b, m, deterministic)
  2461. } else {
  2462. b = b[:cap(b)]
  2463. n, err := m.MarshalTo(b)
  2464. if err != nil {
  2465. return nil, err
  2466. }
  2467. return b[:n], nil
  2468. }
  2469. }
  2470. func (dst *DeletePoolResp) XXX_Merge(src proto.Message) {
  2471. xxx_messageInfo_DeletePoolResp.Merge(dst, src)
  2472. }
  2473. func (m *DeletePoolResp) XXX_Size() int {
  2474. return m.Size()
  2475. }
  2476. func (m *DeletePoolResp) XXX_DiscardUnknown() {
  2477. xxx_messageInfo_DeletePoolResp.DiscardUnknown(m)
  2478. }
  2479. var xxx_messageInfo_DeletePoolResp proto.InternalMessageInfo
  2480. func (m *DeletePoolResp) GetStatus() bool {
  2481. if m != nil {
  2482. return m.Status
  2483. }
  2484. return false
  2485. }
  2486. type UpdatePoolStatusReq struct {
  2487. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id" validate:"required"`
  2488. Status int64 `protobuf:"varint,2,opt,name=status,proto3" json:"status" form:"status"`
  2489. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2490. XXX_unrecognized []byte `json:"-"`
  2491. XXX_sizecache int32 `json:"-"`
  2492. }
  2493. func (m *UpdatePoolStatusReq) Reset() { *m = UpdatePoolStatusReq{} }
  2494. func (m *UpdatePoolStatusReq) String() string { return proto.CompactTextString(m) }
  2495. func (*UpdatePoolStatusReq) ProtoMessage() {}
  2496. func (*UpdatePoolStatusReq) Descriptor() ([]byte, []int) {
  2497. return fileDescriptor_api_9467f450102a207d, []int{24}
  2498. }
  2499. func (m *UpdatePoolStatusReq) XXX_Unmarshal(b []byte) error {
  2500. return m.Unmarshal(b)
  2501. }
  2502. func (m *UpdatePoolStatusReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2503. if deterministic {
  2504. return xxx_messageInfo_UpdatePoolStatusReq.Marshal(b, m, deterministic)
  2505. } else {
  2506. b = b[:cap(b)]
  2507. n, err := m.MarshalTo(b)
  2508. if err != nil {
  2509. return nil, err
  2510. }
  2511. return b[:n], nil
  2512. }
  2513. }
  2514. func (dst *UpdatePoolStatusReq) XXX_Merge(src proto.Message) {
  2515. xxx_messageInfo_UpdatePoolStatusReq.Merge(dst, src)
  2516. }
  2517. func (m *UpdatePoolStatusReq) XXX_Size() int {
  2518. return m.Size()
  2519. }
  2520. func (m *UpdatePoolStatusReq) XXX_DiscardUnknown() {
  2521. xxx_messageInfo_UpdatePoolStatusReq.DiscardUnknown(m)
  2522. }
  2523. var xxx_messageInfo_UpdatePoolStatusReq proto.InternalMessageInfo
  2524. func (m *UpdatePoolStatusReq) GetId() int64 {
  2525. if m != nil {
  2526. return m.Id
  2527. }
  2528. return 0
  2529. }
  2530. func (m *UpdatePoolStatusReq) GetStatus() int64 {
  2531. if m != nil {
  2532. return m.Status
  2533. }
  2534. return 0
  2535. }
  2536. type UpdatePoolStatusResp struct {
  2537. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  2538. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2539. XXX_unrecognized []byte `json:"-"`
  2540. XXX_sizecache int32 `json:"-"`
  2541. }
  2542. func (m *UpdatePoolStatusResp) Reset() { *m = UpdatePoolStatusResp{} }
  2543. func (m *UpdatePoolStatusResp) String() string { return proto.CompactTextString(m) }
  2544. func (*UpdatePoolStatusResp) ProtoMessage() {}
  2545. func (*UpdatePoolStatusResp) Descriptor() ([]byte, []int) {
  2546. return fileDescriptor_api_9467f450102a207d, []int{25}
  2547. }
  2548. func (m *UpdatePoolStatusResp) XXX_Unmarshal(b []byte) error {
  2549. return m.Unmarshal(b)
  2550. }
  2551. func (m *UpdatePoolStatusResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2552. if deterministic {
  2553. return xxx_messageInfo_UpdatePoolStatusResp.Marshal(b, m, deterministic)
  2554. } else {
  2555. b = b[:cap(b)]
  2556. n, err := m.MarshalTo(b)
  2557. if err != nil {
  2558. return nil, err
  2559. }
  2560. return b[:n], nil
  2561. }
  2562. }
  2563. func (dst *UpdatePoolStatusResp) XXX_Merge(src proto.Message) {
  2564. xxx_messageInfo_UpdatePoolStatusResp.Merge(dst, src)
  2565. }
  2566. func (m *UpdatePoolStatusResp) XXX_Size() int {
  2567. return m.Size()
  2568. }
  2569. func (m *UpdatePoolStatusResp) XXX_DiscardUnknown() {
  2570. xxx_messageInfo_UpdatePoolStatusResp.DiscardUnknown(m)
  2571. }
  2572. var xxx_messageInfo_UpdatePoolStatusResp proto.InternalMessageInfo
  2573. func (m *UpdatePoolStatusResp) GetStatus() bool {
  2574. if m != nil {
  2575. return m.Status
  2576. }
  2577. return false
  2578. }
  2579. type GetPoolPrizeReq struct {
  2580. PoolId int64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id" form:"pool_id" validate:"required"`
  2581. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2582. XXX_unrecognized []byte `json:"-"`
  2583. XXX_sizecache int32 `json:"-"`
  2584. }
  2585. func (m *GetPoolPrizeReq) Reset() { *m = GetPoolPrizeReq{} }
  2586. func (m *GetPoolPrizeReq) String() string { return proto.CompactTextString(m) }
  2587. func (*GetPoolPrizeReq) ProtoMessage() {}
  2588. func (*GetPoolPrizeReq) Descriptor() ([]byte, []int) {
  2589. return fileDescriptor_api_9467f450102a207d, []int{26}
  2590. }
  2591. func (m *GetPoolPrizeReq) XXX_Unmarshal(b []byte) error {
  2592. return m.Unmarshal(b)
  2593. }
  2594. func (m *GetPoolPrizeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2595. if deterministic {
  2596. return xxx_messageInfo_GetPoolPrizeReq.Marshal(b, m, deterministic)
  2597. } else {
  2598. b = b[:cap(b)]
  2599. n, err := m.MarshalTo(b)
  2600. if err != nil {
  2601. return nil, err
  2602. }
  2603. return b[:n], nil
  2604. }
  2605. }
  2606. func (dst *GetPoolPrizeReq) XXX_Merge(src proto.Message) {
  2607. xxx_messageInfo_GetPoolPrizeReq.Merge(dst, src)
  2608. }
  2609. func (m *GetPoolPrizeReq) XXX_Size() int {
  2610. return m.Size()
  2611. }
  2612. func (m *GetPoolPrizeReq) XXX_DiscardUnknown() {
  2613. xxx_messageInfo_GetPoolPrizeReq.DiscardUnknown(m)
  2614. }
  2615. var xxx_messageInfo_GetPoolPrizeReq proto.InternalMessageInfo
  2616. func (m *GetPoolPrizeReq) GetPoolId() int64 {
  2617. if m != nil {
  2618. return m.PoolId
  2619. }
  2620. return 0
  2621. }
  2622. type GetPoolPrizeResp struct {
  2623. List []*GetPoolPrizeResp_List `protobuf:"bytes,1,rep,name=list" json:"list"`
  2624. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2625. XXX_unrecognized []byte `json:"-"`
  2626. XXX_sizecache int32 `json:"-"`
  2627. }
  2628. func (m *GetPoolPrizeResp) Reset() { *m = GetPoolPrizeResp{} }
  2629. func (m *GetPoolPrizeResp) String() string { return proto.CompactTextString(m) }
  2630. func (*GetPoolPrizeResp) ProtoMessage() {}
  2631. func (*GetPoolPrizeResp) Descriptor() ([]byte, []int) {
  2632. return fileDescriptor_api_9467f450102a207d, []int{27}
  2633. }
  2634. func (m *GetPoolPrizeResp) XXX_Unmarshal(b []byte) error {
  2635. return m.Unmarshal(b)
  2636. }
  2637. func (m *GetPoolPrizeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2638. if deterministic {
  2639. return xxx_messageInfo_GetPoolPrizeResp.Marshal(b, m, deterministic)
  2640. } else {
  2641. b = b[:cap(b)]
  2642. n, err := m.MarshalTo(b)
  2643. if err != nil {
  2644. return nil, err
  2645. }
  2646. return b[:n], nil
  2647. }
  2648. }
  2649. func (dst *GetPoolPrizeResp) XXX_Merge(src proto.Message) {
  2650. xxx_messageInfo_GetPoolPrizeResp.Merge(dst, src)
  2651. }
  2652. func (m *GetPoolPrizeResp) XXX_Size() int {
  2653. return m.Size()
  2654. }
  2655. func (m *GetPoolPrizeResp) XXX_DiscardUnknown() {
  2656. xxx_messageInfo_GetPoolPrizeResp.DiscardUnknown(m)
  2657. }
  2658. var xxx_messageInfo_GetPoolPrizeResp proto.InternalMessageInfo
  2659. func (m *GetPoolPrizeResp) GetList() []*GetPoolPrizeResp_List {
  2660. if m != nil {
  2661. return m.List
  2662. }
  2663. return nil
  2664. }
  2665. type GetPoolPrizeResp_List struct {
  2666. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  2667. PoolId int64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id"`
  2668. Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type"`
  2669. Num int64 `protobuf:"varint,4,opt,name=num,proto3" json:"num"`
  2670. ObjectId int64 `protobuf:"varint,5,opt,name=object_id,json=objectId,proto3" json:"object_id"`
  2671. WebUrl string `protobuf:"bytes,6,opt,name=web_url,json=webUrl,proto3" json:"web_url"`
  2672. MobileUrl string `protobuf:"bytes,7,opt,name=mobile_url,json=mobileUrl,proto3" json:"mobile_url"`
  2673. Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description"`
  2674. JumpUrl string `protobuf:"bytes,9,opt,name=jump_url,json=jumpUrl,proto3" json:"jump_url"`
  2675. ProType int64 `protobuf:"varint,10,opt,name=pro_type,json=proType,proto3" json:"pro_type"`
  2676. Chance string `protobuf:"bytes,11,opt,name=chance,proto3" json:"chance"`
  2677. Loop int64 `protobuf:"varint,12,opt,name=loop,proto3" json:"loop"`
  2678. Limit int64 `protobuf:"varint,13,opt,name=limit,proto3" json:"limit"`
  2679. Name string `protobuf:"bytes,14,opt,name=name,proto3" json:"name"`
  2680. Weight int64 `protobuf:"varint,15,opt,name=weight,proto3" json:"weight"`
  2681. WhiteUids []int64 `protobuf:"varint,16,rep,packed,name=white_uids,json=whiteUids" json:"white_uids"`
  2682. Expire int64 `protobuf:"varint,17,opt,name=expire,proto3" json:"expire"`
  2683. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2684. XXX_unrecognized []byte `json:"-"`
  2685. XXX_sizecache int32 `json:"-"`
  2686. }
  2687. func (m *GetPoolPrizeResp_List) Reset() { *m = GetPoolPrizeResp_List{} }
  2688. func (m *GetPoolPrizeResp_List) String() string { return proto.CompactTextString(m) }
  2689. func (*GetPoolPrizeResp_List) ProtoMessage() {}
  2690. func (*GetPoolPrizeResp_List) Descriptor() ([]byte, []int) {
  2691. return fileDescriptor_api_9467f450102a207d, []int{27, 0}
  2692. }
  2693. func (m *GetPoolPrizeResp_List) XXX_Unmarshal(b []byte) error {
  2694. return m.Unmarshal(b)
  2695. }
  2696. func (m *GetPoolPrizeResp_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2697. if deterministic {
  2698. return xxx_messageInfo_GetPoolPrizeResp_List.Marshal(b, m, deterministic)
  2699. } else {
  2700. b = b[:cap(b)]
  2701. n, err := m.MarshalTo(b)
  2702. if err != nil {
  2703. return nil, err
  2704. }
  2705. return b[:n], nil
  2706. }
  2707. }
  2708. func (dst *GetPoolPrizeResp_List) XXX_Merge(src proto.Message) {
  2709. xxx_messageInfo_GetPoolPrizeResp_List.Merge(dst, src)
  2710. }
  2711. func (m *GetPoolPrizeResp_List) XXX_Size() int {
  2712. return m.Size()
  2713. }
  2714. func (m *GetPoolPrizeResp_List) XXX_DiscardUnknown() {
  2715. xxx_messageInfo_GetPoolPrizeResp_List.DiscardUnknown(m)
  2716. }
  2717. var xxx_messageInfo_GetPoolPrizeResp_List proto.InternalMessageInfo
  2718. func (m *GetPoolPrizeResp_List) GetId() int64 {
  2719. if m != nil {
  2720. return m.Id
  2721. }
  2722. return 0
  2723. }
  2724. func (m *GetPoolPrizeResp_List) GetPoolId() int64 {
  2725. if m != nil {
  2726. return m.PoolId
  2727. }
  2728. return 0
  2729. }
  2730. func (m *GetPoolPrizeResp_List) GetType() int64 {
  2731. if m != nil {
  2732. return m.Type
  2733. }
  2734. return 0
  2735. }
  2736. func (m *GetPoolPrizeResp_List) GetNum() int64 {
  2737. if m != nil {
  2738. return m.Num
  2739. }
  2740. return 0
  2741. }
  2742. func (m *GetPoolPrizeResp_List) GetObjectId() int64 {
  2743. if m != nil {
  2744. return m.ObjectId
  2745. }
  2746. return 0
  2747. }
  2748. func (m *GetPoolPrizeResp_List) GetWebUrl() string {
  2749. if m != nil {
  2750. return m.WebUrl
  2751. }
  2752. return ""
  2753. }
  2754. func (m *GetPoolPrizeResp_List) GetMobileUrl() string {
  2755. if m != nil {
  2756. return m.MobileUrl
  2757. }
  2758. return ""
  2759. }
  2760. func (m *GetPoolPrizeResp_List) GetDescription() string {
  2761. if m != nil {
  2762. return m.Description
  2763. }
  2764. return ""
  2765. }
  2766. func (m *GetPoolPrizeResp_List) GetJumpUrl() string {
  2767. if m != nil {
  2768. return m.JumpUrl
  2769. }
  2770. return ""
  2771. }
  2772. func (m *GetPoolPrizeResp_List) GetProType() int64 {
  2773. if m != nil {
  2774. return m.ProType
  2775. }
  2776. return 0
  2777. }
  2778. func (m *GetPoolPrizeResp_List) GetChance() string {
  2779. if m != nil {
  2780. return m.Chance
  2781. }
  2782. return ""
  2783. }
  2784. func (m *GetPoolPrizeResp_List) GetLoop() int64 {
  2785. if m != nil {
  2786. return m.Loop
  2787. }
  2788. return 0
  2789. }
  2790. func (m *GetPoolPrizeResp_List) GetLimit() int64 {
  2791. if m != nil {
  2792. return m.Limit
  2793. }
  2794. return 0
  2795. }
  2796. func (m *GetPoolPrizeResp_List) GetName() string {
  2797. if m != nil {
  2798. return m.Name
  2799. }
  2800. return ""
  2801. }
  2802. func (m *GetPoolPrizeResp_List) GetWeight() int64 {
  2803. if m != nil {
  2804. return m.Weight
  2805. }
  2806. return 0
  2807. }
  2808. func (m *GetPoolPrizeResp_List) GetWhiteUids() []int64 {
  2809. if m != nil {
  2810. return m.WhiteUids
  2811. }
  2812. return nil
  2813. }
  2814. func (m *GetPoolPrizeResp_List) GetExpire() int64 {
  2815. if m != nil {
  2816. return m.Expire
  2817. }
  2818. return 0
  2819. }
  2820. type UpdatePoolPrizeReq struct {
  2821. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id"`
  2822. PoolId int64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id" form:"pool_id"`
  2823. Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type" form:"type" validate:"required"`
  2824. Num int64 `protobuf:"varint,4,opt,name=num,proto3" json:"num" form:"num" validate:"required"`
  2825. ObjectId int64 `protobuf:"varint,5,opt,name=object_id,json=objectId,proto3" json:"object_id" form:"object_id"`
  2826. Expire int64 `protobuf:"varint,6,opt,name=expire,proto3" json:"expire" form:"expire"`
  2827. WebUrl string `protobuf:"bytes,7,opt,name=web_url,json=webUrl,proto3" json:"web_url" form:"web_url" validate:"required"`
  2828. MobileUrl string `protobuf:"bytes,8,opt,name=mobile_url,json=mobileUrl,proto3" json:"mobile_url" form:"mobile_url" validate:"required"`
  2829. Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description" form:"description" validate:"required"`
  2830. JumpUrl string `protobuf:"bytes,10,opt,name=jump_url,json=jumpUrl,proto3" json:"jump_url" form:"jump_url"`
  2831. ProType int64 `protobuf:"varint,11,opt,name=pro_type,json=proType,proto3" json:"pro_type" form:"pro_type" validate:"required"`
  2832. Chance int64 `protobuf:"varint,12,opt,name=chance,proto3" json:"chance" form:"chance"`
  2833. Loop int64 `protobuf:"varint,13,opt,name=loop,proto3" json:"loop" form:"loop"`
  2834. Limit int64 `protobuf:"varint,14,opt,name=limit,proto3" json:"limit" form:"limit"`
  2835. Weight int64 `protobuf:"varint,15,opt,name=weight,proto3" json:"weight"`
  2836. WhiteUids []int64 `protobuf:"varint,16,rep,packed,name=white_uids,json=whiteUids" json:"white_uids"`
  2837. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2838. XXX_unrecognized []byte `json:"-"`
  2839. XXX_sizecache int32 `json:"-"`
  2840. }
  2841. func (m *UpdatePoolPrizeReq) Reset() { *m = UpdatePoolPrizeReq{} }
  2842. func (m *UpdatePoolPrizeReq) String() string { return proto.CompactTextString(m) }
  2843. func (*UpdatePoolPrizeReq) ProtoMessage() {}
  2844. func (*UpdatePoolPrizeReq) Descriptor() ([]byte, []int) {
  2845. return fileDescriptor_api_9467f450102a207d, []int{28}
  2846. }
  2847. func (m *UpdatePoolPrizeReq) XXX_Unmarshal(b []byte) error {
  2848. return m.Unmarshal(b)
  2849. }
  2850. func (m *UpdatePoolPrizeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2851. if deterministic {
  2852. return xxx_messageInfo_UpdatePoolPrizeReq.Marshal(b, m, deterministic)
  2853. } else {
  2854. b = b[:cap(b)]
  2855. n, err := m.MarshalTo(b)
  2856. if err != nil {
  2857. return nil, err
  2858. }
  2859. return b[:n], nil
  2860. }
  2861. }
  2862. func (dst *UpdatePoolPrizeReq) XXX_Merge(src proto.Message) {
  2863. xxx_messageInfo_UpdatePoolPrizeReq.Merge(dst, src)
  2864. }
  2865. func (m *UpdatePoolPrizeReq) XXX_Size() int {
  2866. return m.Size()
  2867. }
  2868. func (m *UpdatePoolPrizeReq) XXX_DiscardUnknown() {
  2869. xxx_messageInfo_UpdatePoolPrizeReq.DiscardUnknown(m)
  2870. }
  2871. var xxx_messageInfo_UpdatePoolPrizeReq proto.InternalMessageInfo
  2872. func (m *UpdatePoolPrizeReq) GetId() int64 {
  2873. if m != nil {
  2874. return m.Id
  2875. }
  2876. return 0
  2877. }
  2878. func (m *UpdatePoolPrizeReq) GetPoolId() int64 {
  2879. if m != nil {
  2880. return m.PoolId
  2881. }
  2882. return 0
  2883. }
  2884. func (m *UpdatePoolPrizeReq) GetType() int64 {
  2885. if m != nil {
  2886. return m.Type
  2887. }
  2888. return 0
  2889. }
  2890. func (m *UpdatePoolPrizeReq) GetNum() int64 {
  2891. if m != nil {
  2892. return m.Num
  2893. }
  2894. return 0
  2895. }
  2896. func (m *UpdatePoolPrizeReq) GetObjectId() int64 {
  2897. if m != nil {
  2898. return m.ObjectId
  2899. }
  2900. return 0
  2901. }
  2902. func (m *UpdatePoolPrizeReq) GetExpire() int64 {
  2903. if m != nil {
  2904. return m.Expire
  2905. }
  2906. return 0
  2907. }
  2908. func (m *UpdatePoolPrizeReq) GetWebUrl() string {
  2909. if m != nil {
  2910. return m.WebUrl
  2911. }
  2912. return ""
  2913. }
  2914. func (m *UpdatePoolPrizeReq) GetMobileUrl() string {
  2915. if m != nil {
  2916. return m.MobileUrl
  2917. }
  2918. return ""
  2919. }
  2920. func (m *UpdatePoolPrizeReq) GetDescription() string {
  2921. if m != nil {
  2922. return m.Description
  2923. }
  2924. return ""
  2925. }
  2926. func (m *UpdatePoolPrizeReq) GetJumpUrl() string {
  2927. if m != nil {
  2928. return m.JumpUrl
  2929. }
  2930. return ""
  2931. }
  2932. func (m *UpdatePoolPrizeReq) GetProType() int64 {
  2933. if m != nil {
  2934. return m.ProType
  2935. }
  2936. return 0
  2937. }
  2938. func (m *UpdatePoolPrizeReq) GetChance() int64 {
  2939. if m != nil {
  2940. return m.Chance
  2941. }
  2942. return 0
  2943. }
  2944. func (m *UpdatePoolPrizeReq) GetLoop() int64 {
  2945. if m != nil {
  2946. return m.Loop
  2947. }
  2948. return 0
  2949. }
  2950. func (m *UpdatePoolPrizeReq) GetLimit() int64 {
  2951. if m != nil {
  2952. return m.Limit
  2953. }
  2954. return 0
  2955. }
  2956. func (m *UpdatePoolPrizeReq) GetWeight() int64 {
  2957. if m != nil {
  2958. return m.Weight
  2959. }
  2960. return 0
  2961. }
  2962. func (m *UpdatePoolPrizeReq) GetWhiteUids() []int64 {
  2963. if m != nil {
  2964. return m.WhiteUids
  2965. }
  2966. return nil
  2967. }
  2968. type UpdatePoolPrizeResp struct {
  2969. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  2970. PrizeId int64 `protobuf:"varint,2,opt,name=prize_id,json=prizeId,proto3" json:"prize_id"`
  2971. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  2972. XXX_unrecognized []byte `json:"-"`
  2973. XXX_sizecache int32 `json:"-"`
  2974. }
  2975. func (m *UpdatePoolPrizeResp) Reset() { *m = UpdatePoolPrizeResp{} }
  2976. func (m *UpdatePoolPrizeResp) String() string { return proto.CompactTextString(m) }
  2977. func (*UpdatePoolPrizeResp) ProtoMessage() {}
  2978. func (*UpdatePoolPrizeResp) Descriptor() ([]byte, []int) {
  2979. return fileDescriptor_api_9467f450102a207d, []int{29}
  2980. }
  2981. func (m *UpdatePoolPrizeResp) XXX_Unmarshal(b []byte) error {
  2982. return m.Unmarshal(b)
  2983. }
  2984. func (m *UpdatePoolPrizeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2985. if deterministic {
  2986. return xxx_messageInfo_UpdatePoolPrizeResp.Marshal(b, m, deterministic)
  2987. } else {
  2988. b = b[:cap(b)]
  2989. n, err := m.MarshalTo(b)
  2990. if err != nil {
  2991. return nil, err
  2992. }
  2993. return b[:n], nil
  2994. }
  2995. }
  2996. func (dst *UpdatePoolPrizeResp) XXX_Merge(src proto.Message) {
  2997. xxx_messageInfo_UpdatePoolPrizeResp.Merge(dst, src)
  2998. }
  2999. func (m *UpdatePoolPrizeResp) XXX_Size() int {
  3000. return m.Size()
  3001. }
  3002. func (m *UpdatePoolPrizeResp) XXX_DiscardUnknown() {
  3003. xxx_messageInfo_UpdatePoolPrizeResp.DiscardUnknown(m)
  3004. }
  3005. var xxx_messageInfo_UpdatePoolPrizeResp proto.InternalMessageInfo
  3006. func (m *UpdatePoolPrizeResp) GetStatus() bool {
  3007. if m != nil {
  3008. return m.Status
  3009. }
  3010. return false
  3011. }
  3012. func (m *UpdatePoolPrizeResp) GetPrizeId() int64 {
  3013. if m != nil {
  3014. return m.PrizeId
  3015. }
  3016. return 0
  3017. }
  3018. type DeletePoolPrizeReq struct {
  3019. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" form:"id" validate:"required"`
  3020. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3021. XXX_unrecognized []byte `json:"-"`
  3022. XXX_sizecache int32 `json:"-"`
  3023. }
  3024. func (m *DeletePoolPrizeReq) Reset() { *m = DeletePoolPrizeReq{} }
  3025. func (m *DeletePoolPrizeReq) String() string { return proto.CompactTextString(m) }
  3026. func (*DeletePoolPrizeReq) ProtoMessage() {}
  3027. func (*DeletePoolPrizeReq) Descriptor() ([]byte, []int) {
  3028. return fileDescriptor_api_9467f450102a207d, []int{30}
  3029. }
  3030. func (m *DeletePoolPrizeReq) XXX_Unmarshal(b []byte) error {
  3031. return m.Unmarshal(b)
  3032. }
  3033. func (m *DeletePoolPrizeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3034. if deterministic {
  3035. return xxx_messageInfo_DeletePoolPrizeReq.Marshal(b, m, deterministic)
  3036. } else {
  3037. b = b[:cap(b)]
  3038. n, err := m.MarshalTo(b)
  3039. if err != nil {
  3040. return nil, err
  3041. }
  3042. return b[:n], nil
  3043. }
  3044. }
  3045. func (dst *DeletePoolPrizeReq) XXX_Merge(src proto.Message) {
  3046. xxx_messageInfo_DeletePoolPrizeReq.Merge(dst, src)
  3047. }
  3048. func (m *DeletePoolPrizeReq) XXX_Size() int {
  3049. return m.Size()
  3050. }
  3051. func (m *DeletePoolPrizeReq) XXX_DiscardUnknown() {
  3052. xxx_messageInfo_DeletePoolPrizeReq.DiscardUnknown(m)
  3053. }
  3054. var xxx_messageInfo_DeletePoolPrizeReq proto.InternalMessageInfo
  3055. func (m *DeletePoolPrizeReq) GetId() int64 {
  3056. if m != nil {
  3057. return m.Id
  3058. }
  3059. return 0
  3060. }
  3061. type DeletePoolPrizeResp struct {
  3062. Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
  3063. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3064. XXX_unrecognized []byte `json:"-"`
  3065. XXX_sizecache int32 `json:"-"`
  3066. }
  3067. func (m *DeletePoolPrizeResp) Reset() { *m = DeletePoolPrizeResp{} }
  3068. func (m *DeletePoolPrizeResp) String() string { return proto.CompactTextString(m) }
  3069. func (*DeletePoolPrizeResp) ProtoMessage() {}
  3070. func (*DeletePoolPrizeResp) Descriptor() ([]byte, []int) {
  3071. return fileDescriptor_api_9467f450102a207d, []int{31}
  3072. }
  3073. func (m *DeletePoolPrizeResp) XXX_Unmarshal(b []byte) error {
  3074. return m.Unmarshal(b)
  3075. }
  3076. func (m *DeletePoolPrizeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3077. if deterministic {
  3078. return xxx_messageInfo_DeletePoolPrizeResp.Marshal(b, m, deterministic)
  3079. } else {
  3080. b = b[:cap(b)]
  3081. n, err := m.MarshalTo(b)
  3082. if err != nil {
  3083. return nil, err
  3084. }
  3085. return b[:n], nil
  3086. }
  3087. }
  3088. func (dst *DeletePoolPrizeResp) XXX_Merge(src proto.Message) {
  3089. xxx_messageInfo_DeletePoolPrizeResp.Merge(dst, src)
  3090. }
  3091. func (m *DeletePoolPrizeResp) XXX_Size() int {
  3092. return m.Size()
  3093. }
  3094. func (m *DeletePoolPrizeResp) XXX_DiscardUnknown() {
  3095. xxx_messageInfo_DeletePoolPrizeResp.DiscardUnknown(m)
  3096. }
  3097. var xxx_messageInfo_DeletePoolPrizeResp proto.InternalMessageInfo
  3098. func (m *DeletePoolPrizeResp) GetStatus() bool {
  3099. if m != nil {
  3100. return m.Status
  3101. }
  3102. return false
  3103. }
  3104. type GetPrizeTypeReq struct {
  3105. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3106. XXX_unrecognized []byte `json:"-"`
  3107. XXX_sizecache int32 `json:"-"`
  3108. }
  3109. func (m *GetPrizeTypeReq) Reset() { *m = GetPrizeTypeReq{} }
  3110. func (m *GetPrizeTypeReq) String() string { return proto.CompactTextString(m) }
  3111. func (*GetPrizeTypeReq) ProtoMessage() {}
  3112. func (*GetPrizeTypeReq) Descriptor() ([]byte, []int) {
  3113. return fileDescriptor_api_9467f450102a207d, []int{32}
  3114. }
  3115. func (m *GetPrizeTypeReq) XXX_Unmarshal(b []byte) error {
  3116. return m.Unmarshal(b)
  3117. }
  3118. func (m *GetPrizeTypeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3119. if deterministic {
  3120. return xxx_messageInfo_GetPrizeTypeReq.Marshal(b, m, deterministic)
  3121. } else {
  3122. b = b[:cap(b)]
  3123. n, err := m.MarshalTo(b)
  3124. if err != nil {
  3125. return nil, err
  3126. }
  3127. return b[:n], nil
  3128. }
  3129. }
  3130. func (dst *GetPrizeTypeReq) XXX_Merge(src proto.Message) {
  3131. xxx_messageInfo_GetPrizeTypeReq.Merge(dst, src)
  3132. }
  3133. func (m *GetPrizeTypeReq) XXX_Size() int {
  3134. return m.Size()
  3135. }
  3136. func (m *GetPrizeTypeReq) XXX_DiscardUnknown() {
  3137. xxx_messageInfo_GetPrizeTypeReq.DiscardUnknown(m)
  3138. }
  3139. var xxx_messageInfo_GetPrizeTypeReq proto.InternalMessageInfo
  3140. type GetPrizeTypeResp struct {
  3141. List []*GetPrizeTypeResp_List `protobuf:"bytes,3,rep,name=list" json:"list"`
  3142. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3143. XXX_unrecognized []byte `json:"-"`
  3144. XXX_sizecache int32 `json:"-"`
  3145. }
  3146. func (m *GetPrizeTypeResp) Reset() { *m = GetPrizeTypeResp{} }
  3147. func (m *GetPrizeTypeResp) String() string { return proto.CompactTextString(m) }
  3148. func (*GetPrizeTypeResp) ProtoMessage() {}
  3149. func (*GetPrizeTypeResp) Descriptor() ([]byte, []int) {
  3150. return fileDescriptor_api_9467f450102a207d, []int{33}
  3151. }
  3152. func (m *GetPrizeTypeResp) XXX_Unmarshal(b []byte) error {
  3153. return m.Unmarshal(b)
  3154. }
  3155. func (m *GetPrizeTypeResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3156. if deterministic {
  3157. return xxx_messageInfo_GetPrizeTypeResp.Marshal(b, m, deterministic)
  3158. } else {
  3159. b = b[:cap(b)]
  3160. n, err := m.MarshalTo(b)
  3161. if err != nil {
  3162. return nil, err
  3163. }
  3164. return b[:n], nil
  3165. }
  3166. }
  3167. func (dst *GetPrizeTypeResp) XXX_Merge(src proto.Message) {
  3168. xxx_messageInfo_GetPrizeTypeResp.Merge(dst, src)
  3169. }
  3170. func (m *GetPrizeTypeResp) XXX_Size() int {
  3171. return m.Size()
  3172. }
  3173. func (m *GetPrizeTypeResp) XXX_DiscardUnknown() {
  3174. xxx_messageInfo_GetPrizeTypeResp.DiscardUnknown(m)
  3175. }
  3176. var xxx_messageInfo_GetPrizeTypeResp proto.InternalMessageInfo
  3177. func (m *GetPrizeTypeResp) GetList() []*GetPrizeTypeResp_List {
  3178. if m != nil {
  3179. return m.List
  3180. }
  3181. return nil
  3182. }
  3183. type GetPrizeTypeResp_List struct {
  3184. //
  3185. Type int64 `protobuf:"varint,1,opt,name=type,proto3" json:"type"`
  3186. //
  3187. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  3188. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3189. XXX_unrecognized []byte `json:"-"`
  3190. XXX_sizecache int32 `json:"-"`
  3191. }
  3192. func (m *GetPrizeTypeResp_List) Reset() { *m = GetPrizeTypeResp_List{} }
  3193. func (m *GetPrizeTypeResp_List) String() string { return proto.CompactTextString(m) }
  3194. func (*GetPrizeTypeResp_List) ProtoMessage() {}
  3195. func (*GetPrizeTypeResp_List) Descriptor() ([]byte, []int) {
  3196. return fileDescriptor_api_9467f450102a207d, []int{33, 0}
  3197. }
  3198. func (m *GetPrizeTypeResp_List) XXX_Unmarshal(b []byte) error {
  3199. return m.Unmarshal(b)
  3200. }
  3201. func (m *GetPrizeTypeResp_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3202. if deterministic {
  3203. return xxx_messageInfo_GetPrizeTypeResp_List.Marshal(b, m, deterministic)
  3204. } else {
  3205. b = b[:cap(b)]
  3206. n, err := m.MarshalTo(b)
  3207. if err != nil {
  3208. return nil, err
  3209. }
  3210. return b[:n], nil
  3211. }
  3212. }
  3213. func (dst *GetPrizeTypeResp_List) XXX_Merge(src proto.Message) {
  3214. xxx_messageInfo_GetPrizeTypeResp_List.Merge(dst, src)
  3215. }
  3216. func (m *GetPrizeTypeResp_List) XXX_Size() int {
  3217. return m.Size()
  3218. }
  3219. func (m *GetPrizeTypeResp_List) XXX_DiscardUnknown() {
  3220. xxx_messageInfo_GetPrizeTypeResp_List.DiscardUnknown(m)
  3221. }
  3222. var xxx_messageInfo_GetPrizeTypeResp_List proto.InternalMessageInfo
  3223. func (m *GetPrizeTypeResp_List) GetType() int64 {
  3224. if m != nil {
  3225. return m.Type
  3226. }
  3227. return 0
  3228. }
  3229. func (m *GetPrizeTypeResp_List) GetName() string {
  3230. if m != nil {
  3231. return m.Name
  3232. }
  3233. return ""
  3234. }
  3235. type GetPrizeExpireReq struct {
  3236. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3237. XXX_unrecognized []byte `json:"-"`
  3238. XXX_sizecache int32 `json:"-"`
  3239. }
  3240. func (m *GetPrizeExpireReq) Reset() { *m = GetPrizeExpireReq{} }
  3241. func (m *GetPrizeExpireReq) String() string { return proto.CompactTextString(m) }
  3242. func (*GetPrizeExpireReq) ProtoMessage() {}
  3243. func (*GetPrizeExpireReq) Descriptor() ([]byte, []int) {
  3244. return fileDescriptor_api_9467f450102a207d, []int{34}
  3245. }
  3246. func (m *GetPrizeExpireReq) XXX_Unmarshal(b []byte) error {
  3247. return m.Unmarshal(b)
  3248. }
  3249. func (m *GetPrizeExpireReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3250. if deterministic {
  3251. return xxx_messageInfo_GetPrizeExpireReq.Marshal(b, m, deterministic)
  3252. } else {
  3253. b = b[:cap(b)]
  3254. n, err := m.MarshalTo(b)
  3255. if err != nil {
  3256. return nil, err
  3257. }
  3258. return b[:n], nil
  3259. }
  3260. }
  3261. func (dst *GetPrizeExpireReq) XXX_Merge(src proto.Message) {
  3262. xxx_messageInfo_GetPrizeExpireReq.Merge(dst, src)
  3263. }
  3264. func (m *GetPrizeExpireReq) XXX_Size() int {
  3265. return m.Size()
  3266. }
  3267. func (m *GetPrizeExpireReq) XXX_DiscardUnknown() {
  3268. xxx_messageInfo_GetPrizeExpireReq.DiscardUnknown(m)
  3269. }
  3270. var xxx_messageInfo_GetPrizeExpireReq proto.InternalMessageInfo
  3271. type GetPrizeExpireResp struct {
  3272. List []*GetPrizeExpireResp_List `protobuf:"bytes,3,rep,name=list" json:"list"`
  3273. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3274. XXX_unrecognized []byte `json:"-"`
  3275. XXX_sizecache int32 `json:"-"`
  3276. }
  3277. func (m *GetPrizeExpireResp) Reset() { *m = GetPrizeExpireResp{} }
  3278. func (m *GetPrizeExpireResp) String() string { return proto.CompactTextString(m) }
  3279. func (*GetPrizeExpireResp) ProtoMessage() {}
  3280. func (*GetPrizeExpireResp) Descriptor() ([]byte, []int) {
  3281. return fileDescriptor_api_9467f450102a207d, []int{35}
  3282. }
  3283. func (m *GetPrizeExpireResp) XXX_Unmarshal(b []byte) error {
  3284. return m.Unmarshal(b)
  3285. }
  3286. func (m *GetPrizeExpireResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3287. if deterministic {
  3288. return xxx_messageInfo_GetPrizeExpireResp.Marshal(b, m, deterministic)
  3289. } else {
  3290. b = b[:cap(b)]
  3291. n, err := m.MarshalTo(b)
  3292. if err != nil {
  3293. return nil, err
  3294. }
  3295. return b[:n], nil
  3296. }
  3297. }
  3298. func (dst *GetPrizeExpireResp) XXX_Merge(src proto.Message) {
  3299. xxx_messageInfo_GetPrizeExpireResp.Merge(dst, src)
  3300. }
  3301. func (m *GetPrizeExpireResp) XXX_Size() int {
  3302. return m.Size()
  3303. }
  3304. func (m *GetPrizeExpireResp) XXX_DiscardUnknown() {
  3305. xxx_messageInfo_GetPrizeExpireResp.DiscardUnknown(m)
  3306. }
  3307. var xxx_messageInfo_GetPrizeExpireResp proto.InternalMessageInfo
  3308. func (m *GetPrizeExpireResp) GetList() []*GetPrizeExpireResp_List {
  3309. if m != nil {
  3310. return m.List
  3311. }
  3312. return nil
  3313. }
  3314. type GetPrizeExpireResp_List struct {
  3315. //
  3316. Expire int64 `protobuf:"varint,1,opt,name=expire,proto3" json:"expire"`
  3317. //
  3318. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name"`
  3319. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3320. XXX_unrecognized []byte `json:"-"`
  3321. XXX_sizecache int32 `json:"-"`
  3322. }
  3323. func (m *GetPrizeExpireResp_List) Reset() { *m = GetPrizeExpireResp_List{} }
  3324. func (m *GetPrizeExpireResp_List) String() string { return proto.CompactTextString(m) }
  3325. func (*GetPrizeExpireResp_List) ProtoMessage() {}
  3326. func (*GetPrizeExpireResp_List) Descriptor() ([]byte, []int) {
  3327. return fileDescriptor_api_9467f450102a207d, []int{35, 0}
  3328. }
  3329. func (m *GetPrizeExpireResp_List) XXX_Unmarshal(b []byte) error {
  3330. return m.Unmarshal(b)
  3331. }
  3332. func (m *GetPrizeExpireResp_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3333. if deterministic {
  3334. return xxx_messageInfo_GetPrizeExpireResp_List.Marshal(b, m, deterministic)
  3335. } else {
  3336. b = b[:cap(b)]
  3337. n, err := m.MarshalTo(b)
  3338. if err != nil {
  3339. return nil, err
  3340. }
  3341. return b[:n], nil
  3342. }
  3343. }
  3344. func (dst *GetPrizeExpireResp_List) XXX_Merge(src proto.Message) {
  3345. xxx_messageInfo_GetPrizeExpireResp_List.Merge(dst, src)
  3346. }
  3347. func (m *GetPrizeExpireResp_List) XXX_Size() int {
  3348. return m.Size()
  3349. }
  3350. func (m *GetPrizeExpireResp_List) XXX_DiscardUnknown() {
  3351. xxx_messageInfo_GetPrizeExpireResp_List.DiscardUnknown(m)
  3352. }
  3353. var xxx_messageInfo_GetPrizeExpireResp_List proto.InternalMessageInfo
  3354. func (m *GetPrizeExpireResp_List) GetExpire() int64 {
  3355. if m != nil {
  3356. return m.Expire
  3357. }
  3358. return 0
  3359. }
  3360. func (m *GetPrizeExpireResp_List) GetName() string {
  3361. if m != nil {
  3362. return m.Name
  3363. }
  3364. return ""
  3365. }
  3366. type StartStormReq struct {
  3367. // 用户id
  3368. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
  3369. // 主播id
  3370. Ruid int64 `protobuf:"varint,2,opt,name=ruid,proto3" json:"ruid,omitempty"`
  3371. // 房间号
  3372. Roomid int64 `protobuf:"varint,3,opt,name=roomid,proto3" json:"roomid,omitempty"`
  3373. // 是否开启敏感词过滤
  3374. UseShield bool `protobuf:"varint,4,opt,name=useShield,proto3" json:"useShield,omitempty"`
  3375. // 道具数量
  3376. Num int64 `protobuf:"varint,5,opt,name=num,proto3" json:"num,omitempty"`
  3377. // 节奏内容id
  3378. Beatid int64 `protobuf:"varint,6,opt,name=beatid,proto3" json:"beatid,omitempty"`
  3379. //
  3380. SkipExternalCheck int64 `protobuf:"varint,7,opt,name=skipExternalCheck,proto3" json:"skipExternalCheck,omitempty"`
  3381. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3382. XXX_unrecognized []byte `json:"-"`
  3383. XXX_sizecache int32 `json:"-"`
  3384. }
  3385. func (m *StartStormReq) Reset() { *m = StartStormReq{} }
  3386. func (m *StartStormReq) String() string { return proto.CompactTextString(m) }
  3387. func (*StartStormReq) ProtoMessage() {}
  3388. func (*StartStormReq) Descriptor() ([]byte, []int) {
  3389. return fileDescriptor_api_9467f450102a207d, []int{36}
  3390. }
  3391. func (m *StartStormReq) XXX_Unmarshal(b []byte) error {
  3392. return m.Unmarshal(b)
  3393. }
  3394. func (m *StartStormReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3395. if deterministic {
  3396. return xxx_messageInfo_StartStormReq.Marshal(b, m, deterministic)
  3397. } else {
  3398. b = b[:cap(b)]
  3399. n, err := m.MarshalTo(b)
  3400. if err != nil {
  3401. return nil, err
  3402. }
  3403. return b[:n], nil
  3404. }
  3405. }
  3406. func (dst *StartStormReq) XXX_Merge(src proto.Message) {
  3407. xxx_messageInfo_StartStormReq.Merge(dst, src)
  3408. }
  3409. func (m *StartStormReq) XXX_Size() int {
  3410. return m.Size()
  3411. }
  3412. func (m *StartStormReq) XXX_DiscardUnknown() {
  3413. xxx_messageInfo_StartStormReq.DiscardUnknown(m)
  3414. }
  3415. var xxx_messageInfo_StartStormReq proto.InternalMessageInfo
  3416. func (m *StartStormReq) GetUid() int64 {
  3417. if m != nil {
  3418. return m.Uid
  3419. }
  3420. return 0
  3421. }
  3422. func (m *StartStormReq) GetRuid() int64 {
  3423. if m != nil {
  3424. return m.Ruid
  3425. }
  3426. return 0
  3427. }
  3428. func (m *StartStormReq) GetRoomid() int64 {
  3429. if m != nil {
  3430. return m.Roomid
  3431. }
  3432. return 0
  3433. }
  3434. func (m *StartStormReq) GetUseShield() bool {
  3435. if m != nil {
  3436. return m.UseShield
  3437. }
  3438. return false
  3439. }
  3440. func (m *StartStormReq) GetNum() int64 {
  3441. if m != nil {
  3442. return m.Num
  3443. }
  3444. return 0
  3445. }
  3446. func (m *StartStormReq) GetBeatid() int64 {
  3447. if m != nil {
  3448. return m.Beatid
  3449. }
  3450. return 0
  3451. }
  3452. func (m *StartStormReq) GetSkipExternalCheck() int64 {
  3453. if m != nil {
  3454. return m.SkipExternalCheck
  3455. }
  3456. return 0
  3457. }
  3458. type StartStormResp struct {
  3459. // 错误码
  3460. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  3461. // 错误信息
  3462. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  3463. Start *StartData `protobuf:"bytes,3,opt,name=start" json:"start,omitempty"`
  3464. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3465. XXX_unrecognized []byte `json:"-"`
  3466. XXX_sizecache int32 `json:"-"`
  3467. }
  3468. func (m *StartStormResp) Reset() { *m = StartStormResp{} }
  3469. func (m *StartStormResp) String() string { return proto.CompactTextString(m) }
  3470. func (*StartStormResp) ProtoMessage() {}
  3471. func (*StartStormResp) Descriptor() ([]byte, []int) {
  3472. return fileDescriptor_api_9467f450102a207d, []int{37}
  3473. }
  3474. func (m *StartStormResp) XXX_Unmarshal(b []byte) error {
  3475. return m.Unmarshal(b)
  3476. }
  3477. func (m *StartStormResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3478. if deterministic {
  3479. return xxx_messageInfo_StartStormResp.Marshal(b, m, deterministic)
  3480. } else {
  3481. b = b[:cap(b)]
  3482. n, err := m.MarshalTo(b)
  3483. if err != nil {
  3484. return nil, err
  3485. }
  3486. return b[:n], nil
  3487. }
  3488. }
  3489. func (dst *StartStormResp) XXX_Merge(src proto.Message) {
  3490. xxx_messageInfo_StartStormResp.Merge(dst, src)
  3491. }
  3492. func (m *StartStormResp) XXX_Size() int {
  3493. return m.Size()
  3494. }
  3495. func (m *StartStormResp) XXX_DiscardUnknown() {
  3496. xxx_messageInfo_StartStormResp.DiscardUnknown(m)
  3497. }
  3498. var xxx_messageInfo_StartStormResp proto.InternalMessageInfo
  3499. func (m *StartStormResp) GetCode() int32 {
  3500. if m != nil {
  3501. return m.Code
  3502. }
  3503. return 0
  3504. }
  3505. func (m *StartStormResp) GetMsg() string {
  3506. if m != nil {
  3507. return m.Msg
  3508. }
  3509. return ""
  3510. }
  3511. func (m *StartStormResp) GetStart() *StartData {
  3512. if m != nil {
  3513. return m.Start
  3514. }
  3515. return nil
  3516. }
  3517. type StartData struct {
  3518. // 倒计时,秒
  3519. Time int32 `protobuf:"varint,1,opt,name=time,proto3" json:"time,omitempty"`
  3520. // 抽奖标识
  3521. Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
  3522. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3523. XXX_unrecognized []byte `json:"-"`
  3524. XXX_sizecache int32 `json:"-"`
  3525. }
  3526. func (m *StartData) Reset() { *m = StartData{} }
  3527. func (m *StartData) String() string { return proto.CompactTextString(m) }
  3528. func (*StartData) ProtoMessage() {}
  3529. func (*StartData) Descriptor() ([]byte, []int) {
  3530. return fileDescriptor_api_9467f450102a207d, []int{38}
  3531. }
  3532. func (m *StartData) XXX_Unmarshal(b []byte) error {
  3533. return m.Unmarshal(b)
  3534. }
  3535. func (m *StartData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3536. if deterministic {
  3537. return xxx_messageInfo_StartData.Marshal(b, m, deterministic)
  3538. } else {
  3539. b = b[:cap(b)]
  3540. n, err := m.MarshalTo(b)
  3541. if err != nil {
  3542. return nil, err
  3543. }
  3544. return b[:n], nil
  3545. }
  3546. }
  3547. func (dst *StartData) XXX_Merge(src proto.Message) {
  3548. xxx_messageInfo_StartData.Merge(dst, src)
  3549. }
  3550. func (m *StartData) XXX_Size() int {
  3551. return m.Size()
  3552. }
  3553. func (m *StartData) XXX_DiscardUnknown() {
  3554. xxx_messageInfo_StartData.DiscardUnknown(m)
  3555. }
  3556. var xxx_messageInfo_StartData proto.InternalMessageInfo
  3557. func (m *StartData) GetTime() int32 {
  3558. if m != nil {
  3559. return m.Time
  3560. }
  3561. return 0
  3562. }
  3563. func (m *StartData) GetId() int64 {
  3564. if m != nil {
  3565. return m.Id
  3566. }
  3567. return 0
  3568. }
  3569. type CanStartStormResp struct {
  3570. // 错误码
  3571. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  3572. // 错误信息
  3573. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  3574. // 是否能开启节奏风暴
  3575. RetStatus bool `protobuf:"varint,3,opt,name=ret_status,json=retStatus,proto3" json:"ret_status,omitempty"`
  3576. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3577. XXX_unrecognized []byte `json:"-"`
  3578. XXX_sizecache int32 `json:"-"`
  3579. }
  3580. func (m *CanStartStormResp) Reset() { *m = CanStartStormResp{} }
  3581. func (m *CanStartStormResp) String() string { return proto.CompactTextString(m) }
  3582. func (*CanStartStormResp) ProtoMessage() {}
  3583. func (*CanStartStormResp) Descriptor() ([]byte, []int) {
  3584. return fileDescriptor_api_9467f450102a207d, []int{39}
  3585. }
  3586. func (m *CanStartStormResp) XXX_Unmarshal(b []byte) error {
  3587. return m.Unmarshal(b)
  3588. }
  3589. func (m *CanStartStormResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3590. if deterministic {
  3591. return xxx_messageInfo_CanStartStormResp.Marshal(b, m, deterministic)
  3592. } else {
  3593. b = b[:cap(b)]
  3594. n, err := m.MarshalTo(b)
  3595. if err != nil {
  3596. return nil, err
  3597. }
  3598. return b[:n], nil
  3599. }
  3600. }
  3601. func (dst *CanStartStormResp) XXX_Merge(src proto.Message) {
  3602. xxx_messageInfo_CanStartStormResp.Merge(dst, src)
  3603. }
  3604. func (m *CanStartStormResp) XXX_Size() int {
  3605. return m.Size()
  3606. }
  3607. func (m *CanStartStormResp) XXX_DiscardUnknown() {
  3608. xxx_messageInfo_CanStartStormResp.DiscardUnknown(m)
  3609. }
  3610. var xxx_messageInfo_CanStartStormResp proto.InternalMessageInfo
  3611. func (m *CanStartStormResp) GetCode() int32 {
  3612. if m != nil {
  3613. return m.Code
  3614. }
  3615. return 0
  3616. }
  3617. func (m *CanStartStormResp) GetMsg() string {
  3618. if m != nil {
  3619. return m.Msg
  3620. }
  3621. return ""
  3622. }
  3623. func (m *CanStartStormResp) GetRetStatus() bool {
  3624. if m != nil {
  3625. return m.RetStatus
  3626. }
  3627. return false
  3628. }
  3629. type JoinStormReq struct {
  3630. // 抽奖id
  3631. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" form:"id"`
  3632. // 房间id
  3633. Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" `
  3634. // 弹幕颜色
  3635. Color string `protobuf:"bytes,3,opt,name=color,proto3" json:"color,omitempty" form:"color"`
  3636. // userid
  3637. Mid int64 `protobuf:"varint,4,opt,name=mid,proto3" json:"mid,omitempty" form:"mid"`
  3638. // 平台 web,ios,android
  3639. Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty" form:"platform"`
  3640. // 验证码标识
  3641. CaptchaToken string `protobuf:"bytes,6,opt,name=captcha_token,json=captchaToken,proto3" json:"captcha_token,omitempty" form:"captcha_token"`
  3642. // 验证码明文
  3643. CaptchaPhrase string `protobuf:"bytes,7,opt,name=captcha_phrase,json=captchaPhrase,proto3" json:"captcha_phrase,omitempty" form:"captcha_phrase"`
  3644. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3645. XXX_unrecognized []byte `json:"-"`
  3646. XXX_sizecache int32 `json:"-"`
  3647. }
  3648. func (m *JoinStormReq) Reset() { *m = JoinStormReq{} }
  3649. func (m *JoinStormReq) String() string { return proto.CompactTextString(m) }
  3650. func (*JoinStormReq) ProtoMessage() {}
  3651. func (*JoinStormReq) Descriptor() ([]byte, []int) {
  3652. return fileDescriptor_api_9467f450102a207d, []int{40}
  3653. }
  3654. func (m *JoinStormReq) XXX_Unmarshal(b []byte) error {
  3655. return m.Unmarshal(b)
  3656. }
  3657. func (m *JoinStormReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3658. if deterministic {
  3659. return xxx_messageInfo_JoinStormReq.Marshal(b, m, deterministic)
  3660. } else {
  3661. b = b[:cap(b)]
  3662. n, err := m.MarshalTo(b)
  3663. if err != nil {
  3664. return nil, err
  3665. }
  3666. return b[:n], nil
  3667. }
  3668. }
  3669. func (dst *JoinStormReq) XXX_Merge(src proto.Message) {
  3670. xxx_messageInfo_JoinStormReq.Merge(dst, src)
  3671. }
  3672. func (m *JoinStormReq) XXX_Size() int {
  3673. return m.Size()
  3674. }
  3675. func (m *JoinStormReq) XXX_DiscardUnknown() {
  3676. xxx_messageInfo_JoinStormReq.DiscardUnknown(m)
  3677. }
  3678. var xxx_messageInfo_JoinStormReq proto.InternalMessageInfo
  3679. func (m *JoinStormReq) GetId() int64 {
  3680. if m != nil {
  3681. return m.Id
  3682. }
  3683. return 0
  3684. }
  3685. func (m *JoinStormReq) GetRoomid() int64 {
  3686. if m != nil {
  3687. return m.Roomid
  3688. }
  3689. return 0
  3690. }
  3691. func (m *JoinStormReq) GetColor() string {
  3692. if m != nil {
  3693. return m.Color
  3694. }
  3695. return ""
  3696. }
  3697. func (m *JoinStormReq) GetMid() int64 {
  3698. if m != nil {
  3699. return m.Mid
  3700. }
  3701. return 0
  3702. }
  3703. func (m *JoinStormReq) GetPlatform() string {
  3704. if m != nil {
  3705. return m.Platform
  3706. }
  3707. return ""
  3708. }
  3709. func (m *JoinStormReq) GetCaptchaToken() string {
  3710. if m != nil {
  3711. return m.CaptchaToken
  3712. }
  3713. return ""
  3714. }
  3715. func (m *JoinStormReq) GetCaptchaPhrase() string {
  3716. if m != nil {
  3717. return m.CaptchaPhrase
  3718. }
  3719. return ""
  3720. }
  3721. type JoinStormResp struct {
  3722. // 错误码
  3723. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  3724. // 错误信息
  3725. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  3726. // 加入成功返回数据
  3727. Join *JoinData `protobuf:"bytes,3,opt,name=join" json:"join,omitempty"`
  3728. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3729. XXX_unrecognized []byte `json:"-"`
  3730. XXX_sizecache int32 `json:"-"`
  3731. }
  3732. func (m *JoinStormResp) Reset() { *m = JoinStormResp{} }
  3733. func (m *JoinStormResp) String() string { return proto.CompactTextString(m) }
  3734. func (*JoinStormResp) ProtoMessage() {}
  3735. func (*JoinStormResp) Descriptor() ([]byte, []int) {
  3736. return fileDescriptor_api_9467f450102a207d, []int{41}
  3737. }
  3738. func (m *JoinStormResp) XXX_Unmarshal(b []byte) error {
  3739. return m.Unmarshal(b)
  3740. }
  3741. func (m *JoinStormResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3742. if deterministic {
  3743. return xxx_messageInfo_JoinStormResp.Marshal(b, m, deterministic)
  3744. } else {
  3745. b = b[:cap(b)]
  3746. n, err := m.MarshalTo(b)
  3747. if err != nil {
  3748. return nil, err
  3749. }
  3750. return b[:n], nil
  3751. }
  3752. }
  3753. func (dst *JoinStormResp) XXX_Merge(src proto.Message) {
  3754. xxx_messageInfo_JoinStormResp.Merge(dst, src)
  3755. }
  3756. func (m *JoinStormResp) XXX_Size() int {
  3757. return m.Size()
  3758. }
  3759. func (m *JoinStormResp) XXX_DiscardUnknown() {
  3760. xxx_messageInfo_JoinStormResp.DiscardUnknown(m)
  3761. }
  3762. var xxx_messageInfo_JoinStormResp proto.InternalMessageInfo
  3763. func (m *JoinStormResp) GetCode() int32 {
  3764. if m != nil {
  3765. return m.Code
  3766. }
  3767. return 0
  3768. }
  3769. func (m *JoinStormResp) GetMsg() string {
  3770. if m != nil {
  3771. return m.Msg
  3772. }
  3773. return ""
  3774. }
  3775. func (m *JoinStormResp) GetJoin() *JoinData {
  3776. if m != nil {
  3777. return m.Join
  3778. }
  3779. return nil
  3780. }
  3781. type JoinData struct {
  3782. // 礼物id
  3783. GiftId int64 `protobuf:"varint,1,opt,name=gift_id,json=giftId,proto3" json:"gift_id"`
  3784. // 标题
  3785. Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title"`
  3786. // 礼物web内容
  3787. Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content"`
  3788. // 礼物移动端内容
  3789. MobileContent string `protobuf:"bytes,4,opt,name=mobile_content,json=mobileContent,proto3" json:"mobile_content"`
  3790. // 礼物图片
  3791. GiftImg string `protobuf:"bytes,5,opt,name=gift_img,json=giftImg,proto3" json:"gift_img"`
  3792. // 礼物数量
  3793. GiftNum int64 `protobuf:"varint,6,opt,name=gift_num,json=giftNum,proto3" json:"gift_num"`
  3794. // 礼物名字
  3795. GiftName string `protobuf:"bytes,7,opt,name=gift_name,json=giftName,proto3" json:"gift_name"`
  3796. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3797. XXX_unrecognized []byte `json:"-"`
  3798. XXX_sizecache int32 `json:"-"`
  3799. }
  3800. func (m *JoinData) Reset() { *m = JoinData{} }
  3801. func (m *JoinData) String() string { return proto.CompactTextString(m) }
  3802. func (*JoinData) ProtoMessage() {}
  3803. func (*JoinData) Descriptor() ([]byte, []int) {
  3804. return fileDescriptor_api_9467f450102a207d, []int{42}
  3805. }
  3806. func (m *JoinData) XXX_Unmarshal(b []byte) error {
  3807. return m.Unmarshal(b)
  3808. }
  3809. func (m *JoinData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3810. if deterministic {
  3811. return xxx_messageInfo_JoinData.Marshal(b, m, deterministic)
  3812. } else {
  3813. b = b[:cap(b)]
  3814. n, err := m.MarshalTo(b)
  3815. if err != nil {
  3816. return nil, err
  3817. }
  3818. return b[:n], nil
  3819. }
  3820. }
  3821. func (dst *JoinData) XXX_Merge(src proto.Message) {
  3822. xxx_messageInfo_JoinData.Merge(dst, src)
  3823. }
  3824. func (m *JoinData) XXX_Size() int {
  3825. return m.Size()
  3826. }
  3827. func (m *JoinData) XXX_DiscardUnknown() {
  3828. xxx_messageInfo_JoinData.DiscardUnknown(m)
  3829. }
  3830. var xxx_messageInfo_JoinData proto.InternalMessageInfo
  3831. func (m *JoinData) GetGiftId() int64 {
  3832. if m != nil {
  3833. return m.GiftId
  3834. }
  3835. return 0
  3836. }
  3837. func (m *JoinData) GetTitle() string {
  3838. if m != nil {
  3839. return m.Title
  3840. }
  3841. return ""
  3842. }
  3843. func (m *JoinData) GetContent() string {
  3844. if m != nil {
  3845. return m.Content
  3846. }
  3847. return ""
  3848. }
  3849. func (m *JoinData) GetMobileContent() string {
  3850. if m != nil {
  3851. return m.MobileContent
  3852. }
  3853. return ""
  3854. }
  3855. func (m *JoinData) GetGiftImg() string {
  3856. if m != nil {
  3857. return m.GiftImg
  3858. }
  3859. return ""
  3860. }
  3861. func (m *JoinData) GetGiftNum() int64 {
  3862. if m != nil {
  3863. return m.GiftNum
  3864. }
  3865. return 0
  3866. }
  3867. func (m *JoinData) GetGiftName() string {
  3868. if m != nil {
  3869. return m.GiftName
  3870. }
  3871. return ""
  3872. }
  3873. type CheckStormReq struct {
  3874. // 房间号
  3875. Roomid int64 `protobuf:"varint,1,opt,name=roomid,proto3" json:"roomid,omitempty" form:"roomid" validate:"required"`
  3876. // 用户id
  3877. Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" `
  3878. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3879. XXX_unrecognized []byte `json:"-"`
  3880. XXX_sizecache int32 `json:"-"`
  3881. }
  3882. func (m *CheckStormReq) Reset() { *m = CheckStormReq{} }
  3883. func (m *CheckStormReq) String() string { return proto.CompactTextString(m) }
  3884. func (*CheckStormReq) ProtoMessage() {}
  3885. func (*CheckStormReq) Descriptor() ([]byte, []int) {
  3886. return fileDescriptor_api_9467f450102a207d, []int{43}
  3887. }
  3888. func (m *CheckStormReq) XXX_Unmarshal(b []byte) error {
  3889. return m.Unmarshal(b)
  3890. }
  3891. func (m *CheckStormReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3892. if deterministic {
  3893. return xxx_messageInfo_CheckStormReq.Marshal(b, m, deterministic)
  3894. } else {
  3895. b = b[:cap(b)]
  3896. n, err := m.MarshalTo(b)
  3897. if err != nil {
  3898. return nil, err
  3899. }
  3900. return b[:n], nil
  3901. }
  3902. }
  3903. func (dst *CheckStormReq) XXX_Merge(src proto.Message) {
  3904. xxx_messageInfo_CheckStormReq.Merge(dst, src)
  3905. }
  3906. func (m *CheckStormReq) XXX_Size() int {
  3907. return m.Size()
  3908. }
  3909. func (m *CheckStormReq) XXX_DiscardUnknown() {
  3910. xxx_messageInfo_CheckStormReq.DiscardUnknown(m)
  3911. }
  3912. var xxx_messageInfo_CheckStormReq proto.InternalMessageInfo
  3913. func (m *CheckStormReq) GetRoomid() int64 {
  3914. if m != nil {
  3915. return m.Roomid
  3916. }
  3917. return 0
  3918. }
  3919. func (m *CheckStormReq) GetUid() int64 {
  3920. if m != nil {
  3921. return m.Uid
  3922. }
  3923. return 0
  3924. }
  3925. type CheckStormResp struct {
  3926. // 错误码
  3927. Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
  3928. // 错误信息
  3929. Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  3930. Check *CheckData `protobuf:"bytes,3,opt,name=check" json:"check,omitempty"`
  3931. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  3932. XXX_unrecognized []byte `json:"-"`
  3933. XXX_sizecache int32 `json:"-"`
  3934. }
  3935. func (m *CheckStormResp) Reset() { *m = CheckStormResp{} }
  3936. func (m *CheckStormResp) String() string { return proto.CompactTextString(m) }
  3937. func (*CheckStormResp) ProtoMessage() {}
  3938. func (*CheckStormResp) Descriptor() ([]byte, []int) {
  3939. return fileDescriptor_api_9467f450102a207d, []int{44}
  3940. }
  3941. func (m *CheckStormResp) XXX_Unmarshal(b []byte) error {
  3942. return m.Unmarshal(b)
  3943. }
  3944. func (m *CheckStormResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  3945. if deterministic {
  3946. return xxx_messageInfo_CheckStormResp.Marshal(b, m, deterministic)
  3947. } else {
  3948. b = b[:cap(b)]
  3949. n, err := m.MarshalTo(b)
  3950. if err != nil {
  3951. return nil, err
  3952. }
  3953. return b[:n], nil
  3954. }
  3955. }
  3956. func (dst *CheckStormResp) XXX_Merge(src proto.Message) {
  3957. xxx_messageInfo_CheckStormResp.Merge(dst, src)
  3958. }
  3959. func (m *CheckStormResp) XXX_Size() int {
  3960. return m.Size()
  3961. }
  3962. func (m *CheckStormResp) XXX_DiscardUnknown() {
  3963. xxx_messageInfo_CheckStormResp.DiscardUnknown(m)
  3964. }
  3965. var xxx_messageInfo_CheckStormResp proto.InternalMessageInfo
  3966. func (m *CheckStormResp) GetCode() int32 {
  3967. if m != nil {
  3968. return m.Code
  3969. }
  3970. return 0
  3971. }
  3972. func (m *CheckStormResp) GetMsg() string {
  3973. if m != nil {
  3974. return m.Msg
  3975. }
  3976. return ""
  3977. }
  3978. func (m *CheckStormResp) GetCheck() *CheckData {
  3979. if m != nil {
  3980. return m.Check
  3981. }
  3982. return nil
  3983. }
  3984. type CheckData struct {
  3985. // 用户id
  3986. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"`
  3987. // 房间号
  3988. Roomid int64 `protobuf:"varint,2,opt,name=roomid,proto3" json:"roomid"`
  3989. // 数量
  3990. Num int64 `protobuf:"varint,3,opt,name=num,proto3" json:"num"`
  3991. // 发送数量
  3992. SendNum string `protobuf:"bytes,4,opt,name=send_num,json=sendNum,proto3" json:"send_num"`
  3993. // 结束时间戳
  3994. Time int64 `protobuf:"varint,5,opt,name=time,proto3" json:"time"`
  3995. // 内容
  3996. Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content"`
  3997. // 是否已经加入
  3998. HasJoin int32 `protobuf:"varint,7,opt,name=hasJoin,proto3" json:"hasJoin"`
  3999. // 图片链接
  4000. StormGif string `protobuf:"bytes,8,opt,name=storm_gif,json=stormGif,proto3" json:"storm_gif"`
  4001. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4002. XXX_unrecognized []byte `json:"-"`
  4003. XXX_sizecache int32 `json:"-"`
  4004. }
  4005. func (m *CheckData) Reset() { *m = CheckData{} }
  4006. func (m *CheckData) String() string { return proto.CompactTextString(m) }
  4007. func (*CheckData) ProtoMessage() {}
  4008. func (*CheckData) Descriptor() ([]byte, []int) {
  4009. return fileDescriptor_api_9467f450102a207d, []int{45}
  4010. }
  4011. func (m *CheckData) XXX_Unmarshal(b []byte) error {
  4012. return m.Unmarshal(b)
  4013. }
  4014. func (m *CheckData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4015. if deterministic {
  4016. return xxx_messageInfo_CheckData.Marshal(b, m, deterministic)
  4017. } else {
  4018. b = b[:cap(b)]
  4019. n, err := m.MarshalTo(b)
  4020. if err != nil {
  4021. return nil, err
  4022. }
  4023. return b[:n], nil
  4024. }
  4025. }
  4026. func (dst *CheckData) XXX_Merge(src proto.Message) {
  4027. xxx_messageInfo_CheckData.Merge(dst, src)
  4028. }
  4029. func (m *CheckData) XXX_Size() int {
  4030. return m.Size()
  4031. }
  4032. func (m *CheckData) XXX_DiscardUnknown() {
  4033. xxx_messageInfo_CheckData.DiscardUnknown(m)
  4034. }
  4035. var xxx_messageInfo_CheckData proto.InternalMessageInfo
  4036. func (m *CheckData) GetId() int64 {
  4037. if m != nil {
  4038. return m.Id
  4039. }
  4040. return 0
  4041. }
  4042. func (m *CheckData) GetRoomid() int64 {
  4043. if m != nil {
  4044. return m.Roomid
  4045. }
  4046. return 0
  4047. }
  4048. func (m *CheckData) GetNum() int64 {
  4049. if m != nil {
  4050. return m.Num
  4051. }
  4052. return 0
  4053. }
  4054. func (m *CheckData) GetSendNum() string {
  4055. if m != nil {
  4056. return m.SendNum
  4057. }
  4058. return ""
  4059. }
  4060. func (m *CheckData) GetTime() int64 {
  4061. if m != nil {
  4062. return m.Time
  4063. }
  4064. return 0
  4065. }
  4066. func (m *CheckData) GetContent() string {
  4067. if m != nil {
  4068. return m.Content
  4069. }
  4070. return ""
  4071. }
  4072. func (m *CheckData) GetHasJoin() int32 {
  4073. if m != nil {
  4074. return m.HasJoin
  4075. }
  4076. return 0
  4077. }
  4078. func (m *CheckData) GetStormGif() string {
  4079. if m != nil {
  4080. return m.StormGif
  4081. }
  4082. return ""
  4083. }
  4084. type CapsuleGetCouponListReq struct {
  4085. //
  4086. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  4087. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4088. XXX_unrecognized []byte `json:"-"`
  4089. XXX_sizecache int32 `json:"-"`
  4090. }
  4091. func (m *CapsuleGetCouponListReq) Reset() { *m = CapsuleGetCouponListReq{} }
  4092. func (m *CapsuleGetCouponListReq) String() string { return proto.CompactTextString(m) }
  4093. func (*CapsuleGetCouponListReq) ProtoMessage() {}
  4094. func (*CapsuleGetCouponListReq) Descriptor() ([]byte, []int) {
  4095. return fileDescriptor_api_9467f450102a207d, []int{46}
  4096. }
  4097. func (m *CapsuleGetCouponListReq) XXX_Unmarshal(b []byte) error {
  4098. return m.Unmarshal(b)
  4099. }
  4100. func (m *CapsuleGetCouponListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4101. if deterministic {
  4102. return xxx_messageInfo_CapsuleGetCouponListReq.Marshal(b, m, deterministic)
  4103. } else {
  4104. b = b[:cap(b)]
  4105. n, err := m.MarshalTo(b)
  4106. if err != nil {
  4107. return nil, err
  4108. }
  4109. return b[:n], nil
  4110. }
  4111. }
  4112. func (dst *CapsuleGetCouponListReq) XXX_Merge(src proto.Message) {
  4113. xxx_messageInfo_CapsuleGetCouponListReq.Merge(dst, src)
  4114. }
  4115. func (m *CapsuleGetCouponListReq) XXX_Size() int {
  4116. return m.Size()
  4117. }
  4118. func (m *CapsuleGetCouponListReq) XXX_DiscardUnknown() {
  4119. xxx_messageInfo_CapsuleGetCouponListReq.DiscardUnknown(m)
  4120. }
  4121. var xxx_messageInfo_CapsuleGetCouponListReq proto.InternalMessageInfo
  4122. func (m *CapsuleGetCouponListReq) GetUid() int64 {
  4123. if m != nil {
  4124. return m.Uid
  4125. }
  4126. return 0
  4127. }
  4128. type CapsuleGetCouponListResp struct {
  4129. List []*CapsuleGetCouponListResp_List `protobuf:"bytes,1,rep,name=list" json:"list"`
  4130. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4131. XXX_unrecognized []byte `json:"-"`
  4132. XXX_sizecache int32 `json:"-"`
  4133. }
  4134. func (m *CapsuleGetCouponListResp) Reset() { *m = CapsuleGetCouponListResp{} }
  4135. func (m *CapsuleGetCouponListResp) String() string { return proto.CompactTextString(m) }
  4136. func (*CapsuleGetCouponListResp) ProtoMessage() {}
  4137. func (*CapsuleGetCouponListResp) Descriptor() ([]byte, []int) {
  4138. return fileDescriptor_api_9467f450102a207d, []int{47}
  4139. }
  4140. func (m *CapsuleGetCouponListResp) XXX_Unmarshal(b []byte) error {
  4141. return m.Unmarshal(b)
  4142. }
  4143. func (m *CapsuleGetCouponListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4144. if deterministic {
  4145. return xxx_messageInfo_CapsuleGetCouponListResp.Marshal(b, m, deterministic)
  4146. } else {
  4147. b = b[:cap(b)]
  4148. n, err := m.MarshalTo(b)
  4149. if err != nil {
  4150. return nil, err
  4151. }
  4152. return b[:n], nil
  4153. }
  4154. }
  4155. func (dst *CapsuleGetCouponListResp) XXX_Merge(src proto.Message) {
  4156. xxx_messageInfo_CapsuleGetCouponListResp.Merge(dst, src)
  4157. }
  4158. func (m *CapsuleGetCouponListResp) XXX_Size() int {
  4159. return m.Size()
  4160. }
  4161. func (m *CapsuleGetCouponListResp) XXX_DiscardUnknown() {
  4162. xxx_messageInfo_CapsuleGetCouponListResp.DiscardUnknown(m)
  4163. }
  4164. var xxx_messageInfo_CapsuleGetCouponListResp proto.InternalMessageInfo
  4165. func (m *CapsuleGetCouponListResp) GetList() []*CapsuleGetCouponListResp_List {
  4166. if m != nil {
  4167. return m.List
  4168. }
  4169. return nil
  4170. }
  4171. type CapsuleGetCouponListResp_List struct {
  4172. //
  4173. Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"`
  4174. // 中奖时间
  4175. AwardTime string `protobuf:"bytes,2,opt,name=award_time,json=awardTime,proto3" json:"award_time"`
  4176. // 奖品名称
  4177. AwardName string `protobuf:"bytes,3,opt,name=award_name,json=awardName,proto3" json:"award_name"`
  4178. // 券码
  4179. AwardCode string `protobuf:"bytes,4,opt,name=award_code,json=awardCode,proto3" json:"award_code"`
  4180. // 0 重试 1 成功
  4181. Status int64 `protobuf:"varint,5,opt,name=status,proto3" json:"status"`
  4182. // 上次重试时间
  4183. RetryTime string `protobuf:"bytes,6,opt,name=retry_time,json=retryTime,proto3" json:"retry_time"`
  4184. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  4185. XXX_unrecognized []byte `json:"-"`
  4186. XXX_sizecache int32 `json:"-"`
  4187. }
  4188. func (m *CapsuleGetCouponListResp_List) Reset() { *m = CapsuleGetCouponListResp_List{} }
  4189. func (m *CapsuleGetCouponListResp_List) String() string { return proto.CompactTextString(m) }
  4190. func (*CapsuleGetCouponListResp_List) ProtoMessage() {}
  4191. func (*CapsuleGetCouponListResp_List) Descriptor() ([]byte, []int) {
  4192. return fileDescriptor_api_9467f450102a207d, []int{47, 0}
  4193. }
  4194. func (m *CapsuleGetCouponListResp_List) XXX_Unmarshal(b []byte) error {
  4195. return m.Unmarshal(b)
  4196. }
  4197. func (m *CapsuleGetCouponListResp_List) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  4198. if deterministic {
  4199. return xxx_messageInfo_CapsuleGetCouponListResp_List.Marshal(b, m, deterministic)
  4200. } else {
  4201. b = b[:cap(b)]
  4202. n, err := m.MarshalTo(b)
  4203. if err != nil {
  4204. return nil, err
  4205. }
  4206. return b[:n], nil
  4207. }
  4208. }
  4209. func (dst *CapsuleGetCouponListResp_List) XXX_Merge(src proto.Message) {
  4210. xxx_messageInfo_CapsuleGetCouponListResp_List.Merge(dst, src)
  4211. }
  4212. func (m *CapsuleGetCouponListResp_List) XXX_Size() int {
  4213. return m.Size()
  4214. }
  4215. func (m *CapsuleGetCouponListResp_List) XXX_DiscardUnknown() {
  4216. xxx_messageInfo_CapsuleGetCouponListResp_List.DiscardUnknown(m)
  4217. }
  4218. var xxx_messageInfo_CapsuleGetCouponListResp_List proto.InternalMessageInfo
  4219. func (m *CapsuleGetCouponListResp_List) GetUid() int64 {
  4220. if m != nil {
  4221. return m.Uid
  4222. }
  4223. return 0
  4224. }
  4225. func (m *CapsuleGetCouponListResp_List) GetAwardTime() string {
  4226. if m != nil {
  4227. return m.AwardTime
  4228. }
  4229. return ""
  4230. }
  4231. func (m *CapsuleGetCouponListResp_List) GetAwardName() string {
  4232. if m != nil {
  4233. return m.AwardName
  4234. }
  4235. return ""
  4236. }
  4237. func (m *CapsuleGetCouponListResp_List) GetAwardCode() string {
  4238. if m != nil {
  4239. return m.AwardCode
  4240. }
  4241. return ""
  4242. }
  4243. func (m *CapsuleGetCouponListResp_List) GetStatus() int64 {
  4244. if m != nil {
  4245. return m.Status
  4246. }
  4247. return 0
  4248. }
  4249. func (m *CapsuleGetCouponListResp_List) GetRetryTime() string {
  4250. if m != nil {
  4251. return m.RetryTime
  4252. }
  4253. return ""
  4254. }
  4255. func init() {
  4256. proto.RegisterType((*CapsuleGetDetailReq)(nil), "live.xlottery.v1.CapsuleGetDetailReq")
  4257. proto.RegisterType((*Usage)(nil), "live.xlottery.v1.Usage")
  4258. proto.RegisterType((*Progress)(nil), "live.xlottery.v1.Progress")
  4259. proto.RegisterType((*CapsuleGetDetailResp)(nil), "live.xlottery.v1.CapsuleGetDetailResp")
  4260. proto.RegisterType((*CapsuleGetDetailResp_Gift)(nil), "live.xlottery.v1.CapsuleGetDetailResp.Gift")
  4261. proto.RegisterType((*CapsuleGetDetailResp_List)(nil), "live.xlottery.v1.CapsuleGetDetailResp.List")
  4262. proto.RegisterType((*CapsuleGetDetailResp_CapsuleInfo)(nil), "live.xlottery.v1.CapsuleGetDetailResp.CapsuleInfo")
  4263. proto.RegisterType((*CapsuleOpenCapsuleReq)(nil), "live.xlottery.v1.CapsuleOpenCapsuleReq")
  4264. proto.RegisterType((*CapsuleOpenCapsuleResp)(nil), "live.xlottery.v1.CapsuleOpenCapsuleResp")
  4265. proto.RegisterType((*CapsuleOpenCapsuleResp_CapsuleInfo)(nil), "live.xlottery.v1.CapsuleOpenCapsuleResp.CapsuleInfo")
  4266. proto.RegisterType((*CapsuleOpenCapsuleResp_Info)(nil), "live.xlottery.v1.CapsuleOpenCapsuleResp.Info")
  4267. proto.RegisterType((*CapsuleOpenCapsuleResp_Award)(nil), "live.xlottery.v1.CapsuleOpenCapsuleResp.Award")
  4268. proto.RegisterType((*CapsuleGetCapsuleInfoReq)(nil), "live.xlottery.v1.CapsuleGetCapsuleInfoReq")
  4269. proto.RegisterType((*CapsuleGetCapsuleInfoResp)(nil), "live.xlottery.v1.CapsuleGetCapsuleInfoResp")
  4270. proto.RegisterType((*CapsuleGetCapsuleInfoResp_GiftList)(nil), "live.xlottery.v1.CapsuleGetCapsuleInfoResp.GiftList")
  4271. proto.RegisterType((*CapsuleGetCapsuleInfoResp_GiftFilter)(nil), "live.xlottery.v1.CapsuleGetCapsuleInfoResp.GiftFilter")
  4272. proto.RegisterType((*CapsuleOpenCapsuleByTypeReq)(nil), "live.xlottery.v1.CapsuleOpenCapsuleByTypeReq")
  4273. proto.RegisterType((*CapsuleOpenCapsuleByTypeResp)(nil), "live.xlottery.v1.CapsuleOpenCapsuleByTypeResp")
  4274. proto.RegisterType((*CapsuleOpenCapsuleByTypeResp_CapsuleInfo)(nil), "live.xlottery.v1.CapsuleOpenCapsuleByTypeResp.CapsuleInfo")
  4275. proto.RegisterType((*CapsuleOpenCapsuleByTypeResp_Award)(nil), "live.xlottery.v1.CapsuleOpenCapsuleByTypeResp.Award")
  4276. proto.RegisterType((*GetCoinListReq)(nil), "live.xlottery.v1.GetCoinListReq")
  4277. proto.RegisterType((*GetCoinListResp)(nil), "live.xlottery.v1.GetCoinListResp")
  4278. proto.RegisterType((*GetCoinListResp_List)(nil), "live.xlottery.v1.GetCoinListResp.List")
  4279. proto.RegisterType((*GetCoinListResp_List_AreaIds)(nil), "live.xlottery.v1.GetCoinListResp.List.AreaIds")
  4280. proto.RegisterType((*UpdateCoinConfigReq)(nil), "live.xlottery.v1.UpdateCoinConfigReq")
  4281. proto.RegisterType((*UpdateCoinConfigReq_AreaIds)(nil), "live.xlottery.v1.UpdateCoinConfigReq.AreaIds")
  4282. proto.RegisterType((*UpdateCoinConfigResp)(nil), "live.xlottery.v1.UpdateCoinConfigResp")
  4283. proto.RegisterType((*UpdateCoinStatusReq)(nil), "live.xlottery.v1.UpdateCoinStatusReq")
  4284. proto.RegisterType((*UpdateCoinStatusResp)(nil), "live.xlottery.v1.UpdateCoinStatusResp")
  4285. proto.RegisterType((*DeleteCoinReq)(nil), "live.xlottery.v1.DeleteCoinReq")
  4286. proto.RegisterType((*DeleteCoinResp)(nil), "live.xlottery.v1.DeleteCoinResp")
  4287. proto.RegisterType((*GetPoolListReq)(nil), "live.xlottery.v1.GetPoolListReq")
  4288. proto.RegisterType((*GetPoolListResp)(nil), "live.xlottery.v1.GetPoolListResp")
  4289. proto.RegisterType((*GetPoolListResp_List)(nil), "live.xlottery.v1.GetPoolListResp.List")
  4290. proto.RegisterType((*UpdatePoolReq)(nil), "live.xlottery.v1.UpdatePoolReq")
  4291. proto.RegisterType((*UpdatePoolResp)(nil), "live.xlottery.v1.UpdatePoolResp")
  4292. proto.RegisterType((*DeletePoolReq)(nil), "live.xlottery.v1.DeletePoolReq")
  4293. proto.RegisterType((*DeletePoolResp)(nil), "live.xlottery.v1.DeletePoolResp")
  4294. proto.RegisterType((*UpdatePoolStatusReq)(nil), "live.xlottery.v1.UpdatePoolStatusReq")
  4295. proto.RegisterType((*UpdatePoolStatusResp)(nil), "live.xlottery.v1.UpdatePoolStatusResp")
  4296. proto.RegisterType((*GetPoolPrizeReq)(nil), "live.xlottery.v1.GetPoolPrizeReq")
  4297. proto.RegisterType((*GetPoolPrizeResp)(nil), "live.xlottery.v1.GetPoolPrizeResp")
  4298. proto.RegisterType((*GetPoolPrizeResp_List)(nil), "live.xlottery.v1.GetPoolPrizeResp.List")
  4299. proto.RegisterType((*UpdatePoolPrizeReq)(nil), "live.xlottery.v1.UpdatePoolPrizeReq")
  4300. proto.RegisterType((*UpdatePoolPrizeResp)(nil), "live.xlottery.v1.UpdatePoolPrizeResp")
  4301. proto.RegisterType((*DeletePoolPrizeReq)(nil), "live.xlottery.v1.DeletePoolPrizeReq")
  4302. proto.RegisterType((*DeletePoolPrizeResp)(nil), "live.xlottery.v1.DeletePoolPrizeResp")
  4303. proto.RegisterType((*GetPrizeTypeReq)(nil), "live.xlottery.v1.GetPrizeTypeReq")
  4304. proto.RegisterType((*GetPrizeTypeResp)(nil), "live.xlottery.v1.GetPrizeTypeResp")
  4305. proto.RegisterType((*GetPrizeTypeResp_List)(nil), "live.xlottery.v1.GetPrizeTypeResp.List")
  4306. proto.RegisterType((*GetPrizeExpireReq)(nil), "live.xlottery.v1.GetPrizeExpireReq")
  4307. proto.RegisterType((*GetPrizeExpireResp)(nil), "live.xlottery.v1.GetPrizeExpireResp")
  4308. proto.RegisterType((*GetPrizeExpireResp_List)(nil), "live.xlottery.v1.GetPrizeExpireResp.List")
  4309. proto.RegisterType((*StartStormReq)(nil), "live.xlottery.v1.StartStormReq")
  4310. proto.RegisterType((*StartStormResp)(nil), "live.xlottery.v1.StartStormResp")
  4311. proto.RegisterType((*StartData)(nil), "live.xlottery.v1.StartData")
  4312. proto.RegisterType((*CanStartStormResp)(nil), "live.xlottery.v1.CanStartStormResp")
  4313. proto.RegisterType((*JoinStormReq)(nil), "live.xlottery.v1.JoinStormReq")
  4314. proto.RegisterType((*JoinStormResp)(nil), "live.xlottery.v1.JoinStormResp")
  4315. proto.RegisterType((*JoinData)(nil), "live.xlottery.v1.JoinData")
  4316. proto.RegisterType((*CheckStormReq)(nil), "live.xlottery.v1.CheckStormReq")
  4317. proto.RegisterType((*CheckStormResp)(nil), "live.xlottery.v1.CheckStormResp")
  4318. proto.RegisterType((*CheckData)(nil), "live.xlottery.v1.CheckData")
  4319. proto.RegisterType((*CapsuleGetCouponListReq)(nil), "live.xlottery.v1.CapsuleGetCouponListReq")
  4320. proto.RegisterType((*CapsuleGetCouponListResp)(nil), "live.xlottery.v1.CapsuleGetCouponListResp")
  4321. proto.RegisterType((*CapsuleGetCouponListResp_List)(nil), "live.xlottery.v1.CapsuleGetCouponListResp.List")
  4322. }
  4323. // Reference imports to suppress errors if they are not otherwise used.
  4324. var _ context.Context
  4325. var _ grpc.ClientConn
  4326. // This is a compile-time assertion to ensure that this generated file
  4327. // is compatible with the grpc package it is being compiled against.
  4328. const _ = grpc.SupportPackageIsVersion4
  4329. // CapsuleClient is the client API for Capsule service.
  4330. //
  4331. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4332. type CapsuleClient interface {
  4333. GetDetail(ctx context.Context, in *CapsuleGetDetailReq, opts ...grpc.CallOption) (*CapsuleGetDetailResp, error)
  4334. OpenCapsule(ctx context.Context, in *CapsuleOpenCapsuleReq, opts ...grpc.CallOption) (*CapsuleOpenCapsuleResp, error)
  4335. GetCoinList(ctx context.Context, in *GetCoinListReq, opts ...grpc.CallOption) (*GetCoinListResp, error)
  4336. UpdateCoinConfig(ctx context.Context, in *UpdateCoinConfigReq, opts ...grpc.CallOption) (*UpdateCoinConfigResp, error)
  4337. UpdateCoinStatus(ctx context.Context, in *UpdateCoinStatusReq, opts ...grpc.CallOption) (*UpdateCoinStatusResp, error)
  4338. DeleteCoin(ctx context.Context, in *DeleteCoinReq, opts ...grpc.CallOption) (*DeleteCoinResp, error)
  4339. GetPoolList(ctx context.Context, in *GetPoolListReq, opts ...grpc.CallOption) (*GetPoolListResp, error)
  4340. UpdatePool(ctx context.Context, in *UpdatePoolReq, opts ...grpc.CallOption) (*UpdatePoolResp, error)
  4341. DeletePool(ctx context.Context, in *DeletePoolReq, opts ...grpc.CallOption) (*DeletePoolResp, error)
  4342. UpdatePoolStatus(ctx context.Context, in *UpdatePoolStatusReq, opts ...grpc.CallOption) (*UpdatePoolStatusResp, error)
  4343. GetPoolPrize(ctx context.Context, in *GetPoolPrizeReq, opts ...grpc.CallOption) (*GetPoolPrizeResp, error)
  4344. GetPrizeType(ctx context.Context, in *GetPrizeTypeReq, opts ...grpc.CallOption) (*GetPrizeTypeResp, error)
  4345. GetPrizeExpire(ctx context.Context, in *GetPrizeExpireReq, opts ...grpc.CallOption) (*GetPrizeExpireResp, error)
  4346. UpdatePoolPrize(ctx context.Context, in *UpdatePoolPrizeReq, opts ...grpc.CallOption) (*UpdatePoolPrizeResp, error)
  4347. DeletePoolPrize(ctx context.Context, in *DeletePoolPrizeReq, opts ...grpc.CallOption) (*DeletePoolPrizeResp, error)
  4348. GetCapsuleInfo(ctx context.Context, in *CapsuleGetCapsuleInfoReq, opts ...grpc.CallOption) (*CapsuleGetCapsuleInfoResp, error)
  4349. OpenCapsuleByType(ctx context.Context, in *CapsuleOpenCapsuleByTypeReq, opts ...grpc.CallOption) (*CapsuleOpenCapsuleByTypeResp, error)
  4350. GetCouponList(ctx context.Context, in *CapsuleGetCouponListReq, opts ...grpc.CallOption) (*CapsuleGetCouponListResp, error)
  4351. }
  4352. type capsuleClient struct {
  4353. cc *grpc.ClientConn
  4354. }
  4355. func NewCapsuleClient(cc *grpc.ClientConn) CapsuleClient {
  4356. return &capsuleClient{cc}
  4357. }
  4358. func (c *capsuleClient) GetDetail(ctx context.Context, in *CapsuleGetDetailReq, opts ...grpc.CallOption) (*CapsuleGetDetailResp, error) {
  4359. out := new(CapsuleGetDetailResp)
  4360. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_detail", in, out, opts...)
  4361. if err != nil {
  4362. return nil, err
  4363. }
  4364. return out, nil
  4365. }
  4366. func (c *capsuleClient) OpenCapsule(ctx context.Context, in *CapsuleOpenCapsuleReq, opts ...grpc.CallOption) (*CapsuleOpenCapsuleResp, error) {
  4367. out := new(CapsuleOpenCapsuleResp)
  4368. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/open_capsule", in, out, opts...)
  4369. if err != nil {
  4370. return nil, err
  4371. }
  4372. return out, nil
  4373. }
  4374. func (c *capsuleClient) GetCoinList(ctx context.Context, in *GetCoinListReq, opts ...grpc.CallOption) (*GetCoinListResp, error) {
  4375. out := new(GetCoinListResp)
  4376. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_coin_list", in, out, opts...)
  4377. if err != nil {
  4378. return nil, err
  4379. }
  4380. return out, nil
  4381. }
  4382. func (c *capsuleClient) UpdateCoinConfig(ctx context.Context, in *UpdateCoinConfigReq, opts ...grpc.CallOption) (*UpdateCoinConfigResp, error) {
  4383. out := new(UpdateCoinConfigResp)
  4384. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/update_coin_config", in, out, opts...)
  4385. if err != nil {
  4386. return nil, err
  4387. }
  4388. return out, nil
  4389. }
  4390. func (c *capsuleClient) UpdateCoinStatus(ctx context.Context, in *UpdateCoinStatusReq, opts ...grpc.CallOption) (*UpdateCoinStatusResp, error) {
  4391. out := new(UpdateCoinStatusResp)
  4392. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/update_coin_status", in, out, opts...)
  4393. if err != nil {
  4394. return nil, err
  4395. }
  4396. return out, nil
  4397. }
  4398. func (c *capsuleClient) DeleteCoin(ctx context.Context, in *DeleteCoinReq, opts ...grpc.CallOption) (*DeleteCoinResp, error) {
  4399. out := new(DeleteCoinResp)
  4400. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/delete_coin", in, out, opts...)
  4401. if err != nil {
  4402. return nil, err
  4403. }
  4404. return out, nil
  4405. }
  4406. func (c *capsuleClient) GetPoolList(ctx context.Context, in *GetPoolListReq, opts ...grpc.CallOption) (*GetPoolListResp, error) {
  4407. out := new(GetPoolListResp)
  4408. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_pool_list", in, out, opts...)
  4409. if err != nil {
  4410. return nil, err
  4411. }
  4412. return out, nil
  4413. }
  4414. func (c *capsuleClient) UpdatePool(ctx context.Context, in *UpdatePoolReq, opts ...grpc.CallOption) (*UpdatePoolResp, error) {
  4415. out := new(UpdatePoolResp)
  4416. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/update_pool", in, out, opts...)
  4417. if err != nil {
  4418. return nil, err
  4419. }
  4420. return out, nil
  4421. }
  4422. func (c *capsuleClient) DeletePool(ctx context.Context, in *DeletePoolReq, opts ...grpc.CallOption) (*DeletePoolResp, error) {
  4423. out := new(DeletePoolResp)
  4424. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/delete_pool", in, out, opts...)
  4425. if err != nil {
  4426. return nil, err
  4427. }
  4428. return out, nil
  4429. }
  4430. func (c *capsuleClient) UpdatePoolStatus(ctx context.Context, in *UpdatePoolStatusReq, opts ...grpc.CallOption) (*UpdatePoolStatusResp, error) {
  4431. out := new(UpdatePoolStatusResp)
  4432. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/update_pool_status", in, out, opts...)
  4433. if err != nil {
  4434. return nil, err
  4435. }
  4436. return out, nil
  4437. }
  4438. func (c *capsuleClient) GetPoolPrize(ctx context.Context, in *GetPoolPrizeReq, opts ...grpc.CallOption) (*GetPoolPrizeResp, error) {
  4439. out := new(GetPoolPrizeResp)
  4440. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_pool_prize", in, out, opts...)
  4441. if err != nil {
  4442. return nil, err
  4443. }
  4444. return out, nil
  4445. }
  4446. func (c *capsuleClient) GetPrizeType(ctx context.Context, in *GetPrizeTypeReq, opts ...grpc.CallOption) (*GetPrizeTypeResp, error) {
  4447. out := new(GetPrizeTypeResp)
  4448. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_prize_type", in, out, opts...)
  4449. if err != nil {
  4450. return nil, err
  4451. }
  4452. return out, nil
  4453. }
  4454. func (c *capsuleClient) GetPrizeExpire(ctx context.Context, in *GetPrizeExpireReq, opts ...grpc.CallOption) (*GetPrizeExpireResp, error) {
  4455. out := new(GetPrizeExpireResp)
  4456. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_prize_expire", in, out, opts...)
  4457. if err != nil {
  4458. return nil, err
  4459. }
  4460. return out, nil
  4461. }
  4462. func (c *capsuleClient) UpdatePoolPrize(ctx context.Context, in *UpdatePoolPrizeReq, opts ...grpc.CallOption) (*UpdatePoolPrizeResp, error) {
  4463. out := new(UpdatePoolPrizeResp)
  4464. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/update_pool_prize", in, out, opts...)
  4465. if err != nil {
  4466. return nil, err
  4467. }
  4468. return out, nil
  4469. }
  4470. func (c *capsuleClient) DeletePoolPrize(ctx context.Context, in *DeletePoolPrizeReq, opts ...grpc.CallOption) (*DeletePoolPrizeResp, error) {
  4471. out := new(DeletePoolPrizeResp)
  4472. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/delete_pool_prize", in, out, opts...)
  4473. if err != nil {
  4474. return nil, err
  4475. }
  4476. return out, nil
  4477. }
  4478. func (c *capsuleClient) GetCapsuleInfo(ctx context.Context, in *CapsuleGetCapsuleInfoReq, opts ...grpc.CallOption) (*CapsuleGetCapsuleInfoResp, error) {
  4479. out := new(CapsuleGetCapsuleInfoResp)
  4480. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_capsule_info", in, out, opts...)
  4481. if err != nil {
  4482. return nil, err
  4483. }
  4484. return out, nil
  4485. }
  4486. func (c *capsuleClient) OpenCapsuleByType(ctx context.Context, in *CapsuleOpenCapsuleByTypeReq, opts ...grpc.CallOption) (*CapsuleOpenCapsuleByTypeResp, error) {
  4487. out := new(CapsuleOpenCapsuleByTypeResp)
  4488. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/open_capsule_by_type", in, out, opts...)
  4489. if err != nil {
  4490. return nil, err
  4491. }
  4492. return out, nil
  4493. }
  4494. func (c *capsuleClient) GetCouponList(ctx context.Context, in *CapsuleGetCouponListReq, opts ...grpc.CallOption) (*CapsuleGetCouponListResp, error) {
  4495. out := new(CapsuleGetCouponListResp)
  4496. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Capsule/get_coupon_list", in, out, opts...)
  4497. if err != nil {
  4498. return nil, err
  4499. }
  4500. return out, nil
  4501. }
  4502. // CapsuleServer is the server API for Capsule service.
  4503. type CapsuleServer interface {
  4504. GetDetail(context.Context, *CapsuleGetDetailReq) (*CapsuleGetDetailResp, error)
  4505. OpenCapsule(context.Context, *CapsuleOpenCapsuleReq) (*CapsuleOpenCapsuleResp, error)
  4506. GetCoinList(context.Context, *GetCoinListReq) (*GetCoinListResp, error)
  4507. UpdateCoinConfig(context.Context, *UpdateCoinConfigReq) (*UpdateCoinConfigResp, error)
  4508. UpdateCoinStatus(context.Context, *UpdateCoinStatusReq) (*UpdateCoinStatusResp, error)
  4509. DeleteCoin(context.Context, *DeleteCoinReq) (*DeleteCoinResp, error)
  4510. GetPoolList(context.Context, *GetPoolListReq) (*GetPoolListResp, error)
  4511. UpdatePool(context.Context, *UpdatePoolReq) (*UpdatePoolResp, error)
  4512. DeletePool(context.Context, *DeletePoolReq) (*DeletePoolResp, error)
  4513. UpdatePoolStatus(context.Context, *UpdatePoolStatusReq) (*UpdatePoolStatusResp, error)
  4514. GetPoolPrize(context.Context, *GetPoolPrizeReq) (*GetPoolPrizeResp, error)
  4515. GetPrizeType(context.Context, *GetPrizeTypeReq) (*GetPrizeTypeResp, error)
  4516. GetPrizeExpire(context.Context, *GetPrizeExpireReq) (*GetPrizeExpireResp, error)
  4517. UpdatePoolPrize(context.Context, *UpdatePoolPrizeReq) (*UpdatePoolPrizeResp, error)
  4518. DeletePoolPrize(context.Context, *DeletePoolPrizeReq) (*DeletePoolPrizeResp, error)
  4519. GetCapsuleInfo(context.Context, *CapsuleGetCapsuleInfoReq) (*CapsuleGetCapsuleInfoResp, error)
  4520. OpenCapsuleByType(context.Context, *CapsuleOpenCapsuleByTypeReq) (*CapsuleOpenCapsuleByTypeResp, error)
  4521. GetCouponList(context.Context, *CapsuleGetCouponListReq) (*CapsuleGetCouponListResp, error)
  4522. }
  4523. func RegisterCapsuleServer(s *grpc.Server, srv CapsuleServer) {
  4524. s.RegisterService(&_Capsule_serviceDesc, srv)
  4525. }
  4526. func _Capsule_GetDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4527. in := new(CapsuleGetDetailReq)
  4528. if err := dec(in); err != nil {
  4529. return nil, err
  4530. }
  4531. if interceptor == nil {
  4532. return srv.(CapsuleServer).GetDetail(ctx, in)
  4533. }
  4534. info := &grpc.UnaryServerInfo{
  4535. Server: srv,
  4536. FullMethod: "/live.xlottery.v1.Capsule/GetDetail",
  4537. }
  4538. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4539. return srv.(CapsuleServer).GetDetail(ctx, req.(*CapsuleGetDetailReq))
  4540. }
  4541. return interceptor(ctx, in, info, handler)
  4542. }
  4543. func _Capsule_OpenCapsule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4544. in := new(CapsuleOpenCapsuleReq)
  4545. if err := dec(in); err != nil {
  4546. return nil, err
  4547. }
  4548. if interceptor == nil {
  4549. return srv.(CapsuleServer).OpenCapsule(ctx, in)
  4550. }
  4551. info := &grpc.UnaryServerInfo{
  4552. Server: srv,
  4553. FullMethod: "/live.xlottery.v1.Capsule/OpenCapsule",
  4554. }
  4555. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4556. return srv.(CapsuleServer).OpenCapsule(ctx, req.(*CapsuleOpenCapsuleReq))
  4557. }
  4558. return interceptor(ctx, in, info, handler)
  4559. }
  4560. func _Capsule_GetCoinList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4561. in := new(GetCoinListReq)
  4562. if err := dec(in); err != nil {
  4563. return nil, err
  4564. }
  4565. if interceptor == nil {
  4566. return srv.(CapsuleServer).GetCoinList(ctx, in)
  4567. }
  4568. info := &grpc.UnaryServerInfo{
  4569. Server: srv,
  4570. FullMethod: "/live.xlottery.v1.Capsule/GetCoinList",
  4571. }
  4572. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4573. return srv.(CapsuleServer).GetCoinList(ctx, req.(*GetCoinListReq))
  4574. }
  4575. return interceptor(ctx, in, info, handler)
  4576. }
  4577. func _Capsule_UpdateCoinConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4578. in := new(UpdateCoinConfigReq)
  4579. if err := dec(in); err != nil {
  4580. return nil, err
  4581. }
  4582. if interceptor == nil {
  4583. return srv.(CapsuleServer).UpdateCoinConfig(ctx, in)
  4584. }
  4585. info := &grpc.UnaryServerInfo{
  4586. Server: srv,
  4587. FullMethod: "/live.xlottery.v1.Capsule/UpdateCoinConfig",
  4588. }
  4589. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4590. return srv.(CapsuleServer).UpdateCoinConfig(ctx, req.(*UpdateCoinConfigReq))
  4591. }
  4592. return interceptor(ctx, in, info, handler)
  4593. }
  4594. func _Capsule_UpdateCoinStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4595. in := new(UpdateCoinStatusReq)
  4596. if err := dec(in); err != nil {
  4597. return nil, err
  4598. }
  4599. if interceptor == nil {
  4600. return srv.(CapsuleServer).UpdateCoinStatus(ctx, in)
  4601. }
  4602. info := &grpc.UnaryServerInfo{
  4603. Server: srv,
  4604. FullMethod: "/live.xlottery.v1.Capsule/UpdateCoinStatus",
  4605. }
  4606. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4607. return srv.(CapsuleServer).UpdateCoinStatus(ctx, req.(*UpdateCoinStatusReq))
  4608. }
  4609. return interceptor(ctx, in, info, handler)
  4610. }
  4611. func _Capsule_DeleteCoin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4612. in := new(DeleteCoinReq)
  4613. if err := dec(in); err != nil {
  4614. return nil, err
  4615. }
  4616. if interceptor == nil {
  4617. return srv.(CapsuleServer).DeleteCoin(ctx, in)
  4618. }
  4619. info := &grpc.UnaryServerInfo{
  4620. Server: srv,
  4621. FullMethod: "/live.xlottery.v1.Capsule/DeleteCoin",
  4622. }
  4623. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4624. return srv.(CapsuleServer).DeleteCoin(ctx, req.(*DeleteCoinReq))
  4625. }
  4626. return interceptor(ctx, in, info, handler)
  4627. }
  4628. func _Capsule_GetPoolList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4629. in := new(GetPoolListReq)
  4630. if err := dec(in); err != nil {
  4631. return nil, err
  4632. }
  4633. if interceptor == nil {
  4634. return srv.(CapsuleServer).GetPoolList(ctx, in)
  4635. }
  4636. info := &grpc.UnaryServerInfo{
  4637. Server: srv,
  4638. FullMethod: "/live.xlottery.v1.Capsule/GetPoolList",
  4639. }
  4640. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4641. return srv.(CapsuleServer).GetPoolList(ctx, req.(*GetPoolListReq))
  4642. }
  4643. return interceptor(ctx, in, info, handler)
  4644. }
  4645. func _Capsule_UpdatePool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4646. in := new(UpdatePoolReq)
  4647. if err := dec(in); err != nil {
  4648. return nil, err
  4649. }
  4650. if interceptor == nil {
  4651. return srv.(CapsuleServer).UpdatePool(ctx, in)
  4652. }
  4653. info := &grpc.UnaryServerInfo{
  4654. Server: srv,
  4655. FullMethod: "/live.xlottery.v1.Capsule/UpdatePool",
  4656. }
  4657. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4658. return srv.(CapsuleServer).UpdatePool(ctx, req.(*UpdatePoolReq))
  4659. }
  4660. return interceptor(ctx, in, info, handler)
  4661. }
  4662. func _Capsule_DeletePool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4663. in := new(DeletePoolReq)
  4664. if err := dec(in); err != nil {
  4665. return nil, err
  4666. }
  4667. if interceptor == nil {
  4668. return srv.(CapsuleServer).DeletePool(ctx, in)
  4669. }
  4670. info := &grpc.UnaryServerInfo{
  4671. Server: srv,
  4672. FullMethod: "/live.xlottery.v1.Capsule/DeletePool",
  4673. }
  4674. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4675. return srv.(CapsuleServer).DeletePool(ctx, req.(*DeletePoolReq))
  4676. }
  4677. return interceptor(ctx, in, info, handler)
  4678. }
  4679. func _Capsule_UpdatePoolStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4680. in := new(UpdatePoolStatusReq)
  4681. if err := dec(in); err != nil {
  4682. return nil, err
  4683. }
  4684. if interceptor == nil {
  4685. return srv.(CapsuleServer).UpdatePoolStatus(ctx, in)
  4686. }
  4687. info := &grpc.UnaryServerInfo{
  4688. Server: srv,
  4689. FullMethod: "/live.xlottery.v1.Capsule/UpdatePoolStatus",
  4690. }
  4691. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4692. return srv.(CapsuleServer).UpdatePoolStatus(ctx, req.(*UpdatePoolStatusReq))
  4693. }
  4694. return interceptor(ctx, in, info, handler)
  4695. }
  4696. func _Capsule_GetPoolPrize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4697. in := new(GetPoolPrizeReq)
  4698. if err := dec(in); err != nil {
  4699. return nil, err
  4700. }
  4701. if interceptor == nil {
  4702. return srv.(CapsuleServer).GetPoolPrize(ctx, in)
  4703. }
  4704. info := &grpc.UnaryServerInfo{
  4705. Server: srv,
  4706. FullMethod: "/live.xlottery.v1.Capsule/GetPoolPrize",
  4707. }
  4708. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4709. return srv.(CapsuleServer).GetPoolPrize(ctx, req.(*GetPoolPrizeReq))
  4710. }
  4711. return interceptor(ctx, in, info, handler)
  4712. }
  4713. func _Capsule_GetPrizeType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4714. in := new(GetPrizeTypeReq)
  4715. if err := dec(in); err != nil {
  4716. return nil, err
  4717. }
  4718. if interceptor == nil {
  4719. return srv.(CapsuleServer).GetPrizeType(ctx, in)
  4720. }
  4721. info := &grpc.UnaryServerInfo{
  4722. Server: srv,
  4723. FullMethod: "/live.xlottery.v1.Capsule/GetPrizeType",
  4724. }
  4725. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4726. return srv.(CapsuleServer).GetPrizeType(ctx, req.(*GetPrizeTypeReq))
  4727. }
  4728. return interceptor(ctx, in, info, handler)
  4729. }
  4730. func _Capsule_GetPrizeExpire_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4731. in := new(GetPrizeExpireReq)
  4732. if err := dec(in); err != nil {
  4733. return nil, err
  4734. }
  4735. if interceptor == nil {
  4736. return srv.(CapsuleServer).GetPrizeExpire(ctx, in)
  4737. }
  4738. info := &grpc.UnaryServerInfo{
  4739. Server: srv,
  4740. FullMethod: "/live.xlottery.v1.Capsule/GetPrizeExpire",
  4741. }
  4742. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4743. return srv.(CapsuleServer).GetPrizeExpire(ctx, req.(*GetPrizeExpireReq))
  4744. }
  4745. return interceptor(ctx, in, info, handler)
  4746. }
  4747. func _Capsule_UpdatePoolPrize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4748. in := new(UpdatePoolPrizeReq)
  4749. if err := dec(in); err != nil {
  4750. return nil, err
  4751. }
  4752. if interceptor == nil {
  4753. return srv.(CapsuleServer).UpdatePoolPrize(ctx, in)
  4754. }
  4755. info := &grpc.UnaryServerInfo{
  4756. Server: srv,
  4757. FullMethod: "/live.xlottery.v1.Capsule/UpdatePoolPrize",
  4758. }
  4759. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4760. return srv.(CapsuleServer).UpdatePoolPrize(ctx, req.(*UpdatePoolPrizeReq))
  4761. }
  4762. return interceptor(ctx, in, info, handler)
  4763. }
  4764. func _Capsule_DeletePoolPrize_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4765. in := new(DeletePoolPrizeReq)
  4766. if err := dec(in); err != nil {
  4767. return nil, err
  4768. }
  4769. if interceptor == nil {
  4770. return srv.(CapsuleServer).DeletePoolPrize(ctx, in)
  4771. }
  4772. info := &grpc.UnaryServerInfo{
  4773. Server: srv,
  4774. FullMethod: "/live.xlottery.v1.Capsule/DeletePoolPrize",
  4775. }
  4776. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4777. return srv.(CapsuleServer).DeletePoolPrize(ctx, req.(*DeletePoolPrizeReq))
  4778. }
  4779. return interceptor(ctx, in, info, handler)
  4780. }
  4781. func _Capsule_GetCapsuleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4782. in := new(CapsuleGetCapsuleInfoReq)
  4783. if err := dec(in); err != nil {
  4784. return nil, err
  4785. }
  4786. if interceptor == nil {
  4787. return srv.(CapsuleServer).GetCapsuleInfo(ctx, in)
  4788. }
  4789. info := &grpc.UnaryServerInfo{
  4790. Server: srv,
  4791. FullMethod: "/live.xlottery.v1.Capsule/GetCapsuleInfo",
  4792. }
  4793. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4794. return srv.(CapsuleServer).GetCapsuleInfo(ctx, req.(*CapsuleGetCapsuleInfoReq))
  4795. }
  4796. return interceptor(ctx, in, info, handler)
  4797. }
  4798. func _Capsule_OpenCapsuleByType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4799. in := new(CapsuleOpenCapsuleByTypeReq)
  4800. if err := dec(in); err != nil {
  4801. return nil, err
  4802. }
  4803. if interceptor == nil {
  4804. return srv.(CapsuleServer).OpenCapsuleByType(ctx, in)
  4805. }
  4806. info := &grpc.UnaryServerInfo{
  4807. Server: srv,
  4808. FullMethod: "/live.xlottery.v1.Capsule/OpenCapsuleByType",
  4809. }
  4810. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4811. return srv.(CapsuleServer).OpenCapsuleByType(ctx, req.(*CapsuleOpenCapsuleByTypeReq))
  4812. }
  4813. return interceptor(ctx, in, info, handler)
  4814. }
  4815. func _Capsule_GetCouponList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4816. in := new(CapsuleGetCouponListReq)
  4817. if err := dec(in); err != nil {
  4818. return nil, err
  4819. }
  4820. if interceptor == nil {
  4821. return srv.(CapsuleServer).GetCouponList(ctx, in)
  4822. }
  4823. info := &grpc.UnaryServerInfo{
  4824. Server: srv,
  4825. FullMethod: "/live.xlottery.v1.Capsule/GetCouponList",
  4826. }
  4827. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4828. return srv.(CapsuleServer).GetCouponList(ctx, req.(*CapsuleGetCouponListReq))
  4829. }
  4830. return interceptor(ctx, in, info, handler)
  4831. }
  4832. var _Capsule_serviceDesc = grpc.ServiceDesc{
  4833. ServiceName: "live.xlottery.v1.Capsule",
  4834. HandlerType: (*CapsuleServer)(nil),
  4835. Methods: []grpc.MethodDesc{
  4836. {
  4837. MethodName: "get_detail",
  4838. Handler: _Capsule_GetDetail_Handler,
  4839. },
  4840. {
  4841. MethodName: "open_capsule",
  4842. Handler: _Capsule_OpenCapsule_Handler,
  4843. },
  4844. {
  4845. MethodName: "get_coin_list",
  4846. Handler: _Capsule_GetCoinList_Handler,
  4847. },
  4848. {
  4849. MethodName: "update_coin_config",
  4850. Handler: _Capsule_UpdateCoinConfig_Handler,
  4851. },
  4852. {
  4853. MethodName: "update_coin_status",
  4854. Handler: _Capsule_UpdateCoinStatus_Handler,
  4855. },
  4856. {
  4857. MethodName: "delete_coin",
  4858. Handler: _Capsule_DeleteCoin_Handler,
  4859. },
  4860. {
  4861. MethodName: "get_pool_list",
  4862. Handler: _Capsule_GetPoolList_Handler,
  4863. },
  4864. {
  4865. MethodName: "update_pool",
  4866. Handler: _Capsule_UpdatePool_Handler,
  4867. },
  4868. {
  4869. MethodName: "delete_pool",
  4870. Handler: _Capsule_DeletePool_Handler,
  4871. },
  4872. {
  4873. MethodName: "update_pool_status",
  4874. Handler: _Capsule_UpdatePoolStatus_Handler,
  4875. },
  4876. {
  4877. MethodName: "get_pool_prize",
  4878. Handler: _Capsule_GetPoolPrize_Handler,
  4879. },
  4880. {
  4881. MethodName: "get_prize_type",
  4882. Handler: _Capsule_GetPrizeType_Handler,
  4883. },
  4884. {
  4885. MethodName: "get_prize_expire",
  4886. Handler: _Capsule_GetPrizeExpire_Handler,
  4887. },
  4888. {
  4889. MethodName: "update_pool_prize",
  4890. Handler: _Capsule_UpdatePoolPrize_Handler,
  4891. },
  4892. {
  4893. MethodName: "delete_pool_prize",
  4894. Handler: _Capsule_DeletePoolPrize_Handler,
  4895. },
  4896. {
  4897. MethodName: "get_capsule_info",
  4898. Handler: _Capsule_GetCapsuleInfo_Handler,
  4899. },
  4900. {
  4901. MethodName: "open_capsule_by_type",
  4902. Handler: _Capsule_OpenCapsuleByType_Handler,
  4903. },
  4904. {
  4905. MethodName: "get_coupon_list",
  4906. Handler: _Capsule_GetCouponList_Handler,
  4907. },
  4908. },
  4909. Streams: []grpc.StreamDesc{},
  4910. Metadata: "app/service/live/xlottery/api/grpc/v1/api.proto",
  4911. }
  4912. // StormClient is the client API for Storm service.
  4913. //
  4914. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4915. type StormClient interface {
  4916. // 开启节奏风暴
  4917. Start(ctx context.Context, in *StartStormReq, opts ...grpc.CallOption) (*StartStormResp, error)
  4918. // 节奏风暴是否能开启
  4919. CanStart(ctx context.Context, in *StartStormReq, opts ...grpc.CallOption) (*CanStartStormResp, error)
  4920. // 加入节奏风暴
  4921. Join(ctx context.Context, in *JoinStormReq, opts ...grpc.CallOption) (*JoinStormResp, error)
  4922. // 检查是否加入节奏风暴
  4923. Check(ctx context.Context, in *CheckStormReq, opts ...grpc.CallOption) (*CheckStormResp, error)
  4924. }
  4925. type stormClient struct {
  4926. cc *grpc.ClientConn
  4927. }
  4928. func NewStormClient(cc *grpc.ClientConn) StormClient {
  4929. return &stormClient{cc}
  4930. }
  4931. func (c *stormClient) Start(ctx context.Context, in *StartStormReq, opts ...grpc.CallOption) (*StartStormResp, error) {
  4932. out := new(StartStormResp)
  4933. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Storm/Start", in, out, opts...)
  4934. if err != nil {
  4935. return nil, err
  4936. }
  4937. return out, nil
  4938. }
  4939. func (c *stormClient) CanStart(ctx context.Context, in *StartStormReq, opts ...grpc.CallOption) (*CanStartStormResp, error) {
  4940. out := new(CanStartStormResp)
  4941. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Storm/CanStart", in, out, opts...)
  4942. if err != nil {
  4943. return nil, err
  4944. }
  4945. return out, nil
  4946. }
  4947. func (c *stormClient) Join(ctx context.Context, in *JoinStormReq, opts ...grpc.CallOption) (*JoinStormResp, error) {
  4948. out := new(JoinStormResp)
  4949. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Storm/Join", in, out, opts...)
  4950. if err != nil {
  4951. return nil, err
  4952. }
  4953. return out, nil
  4954. }
  4955. func (c *stormClient) Check(ctx context.Context, in *CheckStormReq, opts ...grpc.CallOption) (*CheckStormResp, error) {
  4956. out := new(CheckStormResp)
  4957. err := c.cc.Invoke(ctx, "/live.xlottery.v1.Storm/Check", in, out, opts...)
  4958. if err != nil {
  4959. return nil, err
  4960. }
  4961. return out, nil
  4962. }
  4963. // StormServer is the server API for Storm service.
  4964. type StormServer interface {
  4965. // 开启节奏风暴
  4966. Start(context.Context, *StartStormReq) (*StartStormResp, error)
  4967. // 节奏风暴是否能开启
  4968. CanStart(context.Context, *StartStormReq) (*CanStartStormResp, error)
  4969. // 加入节奏风暴
  4970. Join(context.Context, *JoinStormReq) (*JoinStormResp, error)
  4971. // 检查是否加入节奏风暴
  4972. Check(context.Context, *CheckStormReq) (*CheckStormResp, error)
  4973. }
  4974. func RegisterStormServer(s *grpc.Server, srv StormServer) {
  4975. s.RegisterService(&_Storm_serviceDesc, srv)
  4976. }
  4977. func _Storm_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4978. in := new(StartStormReq)
  4979. if err := dec(in); err != nil {
  4980. return nil, err
  4981. }
  4982. if interceptor == nil {
  4983. return srv.(StormServer).Start(ctx, in)
  4984. }
  4985. info := &grpc.UnaryServerInfo{
  4986. Server: srv,
  4987. FullMethod: "/live.xlottery.v1.Storm/Start",
  4988. }
  4989. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4990. return srv.(StormServer).Start(ctx, req.(*StartStormReq))
  4991. }
  4992. return interceptor(ctx, in, info, handler)
  4993. }
  4994. func _Storm_CanStart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4995. in := new(StartStormReq)
  4996. if err := dec(in); err != nil {
  4997. return nil, err
  4998. }
  4999. if interceptor == nil {
  5000. return srv.(StormServer).CanStart(ctx, in)
  5001. }
  5002. info := &grpc.UnaryServerInfo{
  5003. Server: srv,
  5004. FullMethod: "/live.xlottery.v1.Storm/CanStart",
  5005. }
  5006. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5007. return srv.(StormServer).CanStart(ctx, req.(*StartStormReq))
  5008. }
  5009. return interceptor(ctx, in, info, handler)
  5010. }
  5011. func _Storm_Join_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5012. in := new(JoinStormReq)
  5013. if err := dec(in); err != nil {
  5014. return nil, err
  5015. }
  5016. if interceptor == nil {
  5017. return srv.(StormServer).Join(ctx, in)
  5018. }
  5019. info := &grpc.UnaryServerInfo{
  5020. Server: srv,
  5021. FullMethod: "/live.xlottery.v1.Storm/Join",
  5022. }
  5023. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5024. return srv.(StormServer).Join(ctx, req.(*JoinStormReq))
  5025. }
  5026. return interceptor(ctx, in, info, handler)
  5027. }
  5028. func _Storm_Check_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  5029. in := new(CheckStormReq)
  5030. if err := dec(in); err != nil {
  5031. return nil, err
  5032. }
  5033. if interceptor == nil {
  5034. return srv.(StormServer).Check(ctx, in)
  5035. }
  5036. info := &grpc.UnaryServerInfo{
  5037. Server: srv,
  5038. FullMethod: "/live.xlottery.v1.Storm/Check",
  5039. }
  5040. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  5041. return srv.(StormServer).Check(ctx, req.(*CheckStormReq))
  5042. }
  5043. return interceptor(ctx, in, info, handler)
  5044. }
  5045. var _Storm_serviceDesc = grpc.ServiceDesc{
  5046. ServiceName: "live.xlottery.v1.Storm",
  5047. HandlerType: (*StormServer)(nil),
  5048. Methods: []grpc.MethodDesc{
  5049. {
  5050. MethodName: "Start",
  5051. Handler: _Storm_Start_Handler,
  5052. },
  5053. {
  5054. MethodName: "CanStart",
  5055. Handler: _Storm_CanStart_Handler,
  5056. },
  5057. {
  5058. MethodName: "Join",
  5059. Handler: _Storm_Join_Handler,
  5060. },
  5061. {
  5062. MethodName: "Check",
  5063. Handler: _Storm_Check_Handler,
  5064. },
  5065. },
  5066. Streams: []grpc.StreamDesc{},
  5067. Metadata: "app/service/live/xlottery/api/grpc/v1/api.proto",
  5068. }
  5069. func (m *CapsuleGetDetailReq) Marshal() (dAtA []byte, err error) {
  5070. size := m.Size()
  5071. dAtA = make([]byte, size)
  5072. n, err := m.MarshalTo(dAtA)
  5073. if err != nil {
  5074. return nil, err
  5075. }
  5076. return dAtA[:n], nil
  5077. }
  5078. func (m *CapsuleGetDetailReq) MarshalTo(dAtA []byte) (int, error) {
  5079. var i int
  5080. _ = i
  5081. var l int
  5082. _ = l
  5083. if m.Uid != 0 {
  5084. dAtA[i] = 0x8
  5085. i++
  5086. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  5087. }
  5088. if len(m.From) > 0 {
  5089. dAtA[i] = 0x12
  5090. i++
  5091. i = encodeVarintApi(dAtA, i, uint64(len(m.From)))
  5092. i += copy(dAtA[i:], m.From)
  5093. }
  5094. if m.XXX_unrecognized != nil {
  5095. i += copy(dAtA[i:], m.XXX_unrecognized)
  5096. }
  5097. return i, nil
  5098. }
  5099. func (m *Usage) Marshal() (dAtA []byte, err error) {
  5100. size := m.Size()
  5101. dAtA = make([]byte, size)
  5102. n, err := m.MarshalTo(dAtA)
  5103. if err != nil {
  5104. return nil, err
  5105. }
  5106. return dAtA[:n], nil
  5107. }
  5108. func (m *Usage) MarshalTo(dAtA []byte) (int, error) {
  5109. var i int
  5110. _ = i
  5111. var l int
  5112. _ = l
  5113. if len(m.Text) > 0 {
  5114. dAtA[i] = 0xa
  5115. i++
  5116. i = encodeVarintApi(dAtA, i, uint64(len(m.Text)))
  5117. i += copy(dAtA[i:], m.Text)
  5118. }
  5119. if len(m.Url) > 0 {
  5120. dAtA[i] = 0x12
  5121. i++
  5122. i = encodeVarintApi(dAtA, i, uint64(len(m.Url)))
  5123. i += copy(dAtA[i:], m.Url)
  5124. }
  5125. if m.XXX_unrecognized != nil {
  5126. i += copy(dAtA[i:], m.XXX_unrecognized)
  5127. }
  5128. return i, nil
  5129. }
  5130. func (m *Progress) Marshal() (dAtA []byte, err error) {
  5131. size := m.Size()
  5132. dAtA = make([]byte, size)
  5133. n, err := m.MarshalTo(dAtA)
  5134. if err != nil {
  5135. return nil, err
  5136. }
  5137. return dAtA[:n], nil
  5138. }
  5139. func (m *Progress) MarshalTo(dAtA []byte) (int, error) {
  5140. var i int
  5141. _ = i
  5142. var l int
  5143. _ = l
  5144. if m.Now != 0 {
  5145. dAtA[i] = 0x8
  5146. i++
  5147. i = encodeVarintApi(dAtA, i, uint64(m.Now))
  5148. }
  5149. if m.Max != 0 {
  5150. dAtA[i] = 0x10
  5151. i++
  5152. i = encodeVarintApi(dAtA, i, uint64(m.Max))
  5153. }
  5154. if m.XXX_unrecognized != nil {
  5155. i += copy(dAtA[i:], m.XXX_unrecognized)
  5156. }
  5157. return i, nil
  5158. }
  5159. func (m *CapsuleGetDetailResp) Marshal() (dAtA []byte, err error) {
  5160. size := m.Size()
  5161. dAtA = make([]byte, size)
  5162. n, err := m.MarshalTo(dAtA)
  5163. if err != nil {
  5164. return nil, err
  5165. }
  5166. return dAtA[:n], nil
  5167. }
  5168. func (m *CapsuleGetDetailResp) MarshalTo(dAtA []byte) (int, error) {
  5169. var i int
  5170. _ = i
  5171. var l int
  5172. _ = l
  5173. if m.Normal != nil {
  5174. dAtA[i] = 0xa
  5175. i++
  5176. i = encodeVarintApi(dAtA, i, uint64(m.Normal.Size()))
  5177. n1, err := m.Normal.MarshalTo(dAtA[i:])
  5178. if err != nil {
  5179. return 0, err
  5180. }
  5181. i += n1
  5182. }
  5183. if m.Colorful != nil {
  5184. dAtA[i] = 0x12
  5185. i++
  5186. i = encodeVarintApi(dAtA, i, uint64(m.Colorful.Size()))
  5187. n2, err := m.Colorful.MarshalTo(dAtA[i:])
  5188. if err != nil {
  5189. return 0, err
  5190. }
  5191. i += n2
  5192. }
  5193. if m.XXX_unrecognized != nil {
  5194. i += copy(dAtA[i:], m.XXX_unrecognized)
  5195. }
  5196. return i, nil
  5197. }
  5198. func (m *CapsuleGetDetailResp_Gift) Marshal() (dAtA []byte, err error) {
  5199. size := m.Size()
  5200. dAtA = make([]byte, size)
  5201. n, err := m.MarshalTo(dAtA)
  5202. if err != nil {
  5203. return nil, err
  5204. }
  5205. return dAtA[:n], nil
  5206. }
  5207. func (m *CapsuleGetDetailResp_Gift) MarshalTo(dAtA []byte) (int, error) {
  5208. var i int
  5209. _ = i
  5210. var l int
  5211. _ = l
  5212. if len(m.Name) > 0 {
  5213. dAtA[i] = 0x12
  5214. i++
  5215. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  5216. i += copy(dAtA[i:], m.Name)
  5217. }
  5218. if len(m.Image) > 0 {
  5219. dAtA[i] = 0x1a
  5220. i++
  5221. i = encodeVarintApi(dAtA, i, uint64(len(m.Image)))
  5222. i += copy(dAtA[i:], m.Image)
  5223. }
  5224. if m.Usage != nil {
  5225. dAtA[i] = 0x22
  5226. i++
  5227. i = encodeVarintApi(dAtA, i, uint64(m.Usage.Size()))
  5228. n3, err := m.Usage.MarshalTo(dAtA[i:])
  5229. if err != nil {
  5230. return 0, err
  5231. }
  5232. i += n3
  5233. }
  5234. if len(m.WebImage) > 0 {
  5235. dAtA[i] = 0x2a
  5236. i++
  5237. i = encodeVarintApi(dAtA, i, uint64(len(m.WebImage)))
  5238. i += copy(dAtA[i:], m.WebImage)
  5239. }
  5240. if len(m.MobileImage) > 0 {
  5241. dAtA[i] = 0x32
  5242. i++
  5243. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileImage)))
  5244. i += copy(dAtA[i:], m.MobileImage)
  5245. }
  5246. if m.XXX_unrecognized != nil {
  5247. i += copy(dAtA[i:], m.XXX_unrecognized)
  5248. }
  5249. return i, nil
  5250. }
  5251. func (m *CapsuleGetDetailResp_List) Marshal() (dAtA []byte, err error) {
  5252. size := m.Size()
  5253. dAtA = make([]byte, size)
  5254. n, err := m.MarshalTo(dAtA)
  5255. if err != nil {
  5256. return nil, err
  5257. }
  5258. return dAtA[:n], nil
  5259. }
  5260. func (m *CapsuleGetDetailResp_List) MarshalTo(dAtA []byte) (int, error) {
  5261. var i int
  5262. _ = i
  5263. var l int
  5264. _ = l
  5265. if m.Num != 0 {
  5266. dAtA[i] = 0x8
  5267. i++
  5268. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  5269. }
  5270. if len(m.Gift) > 0 {
  5271. dAtA[i] = 0x12
  5272. i++
  5273. i = encodeVarintApi(dAtA, i, uint64(len(m.Gift)))
  5274. i += copy(dAtA[i:], m.Gift)
  5275. }
  5276. if len(m.Date) > 0 {
  5277. dAtA[i] = 0x1a
  5278. i++
  5279. i = encodeVarintApi(dAtA, i, uint64(len(m.Date)))
  5280. i += copy(dAtA[i:], m.Date)
  5281. }
  5282. if len(m.Name) > 0 {
  5283. dAtA[i] = 0x22
  5284. i++
  5285. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  5286. i += copy(dAtA[i:], m.Name)
  5287. }
  5288. if m.XXX_unrecognized != nil {
  5289. i += copy(dAtA[i:], m.XXX_unrecognized)
  5290. }
  5291. return i, nil
  5292. }
  5293. func (m *CapsuleGetDetailResp_CapsuleInfo) Marshal() (dAtA []byte, err error) {
  5294. size := m.Size()
  5295. dAtA = make([]byte, size)
  5296. n, err := m.MarshalTo(dAtA)
  5297. if err != nil {
  5298. return nil, err
  5299. }
  5300. return dAtA[:n], nil
  5301. }
  5302. func (m *CapsuleGetDetailResp_CapsuleInfo) MarshalTo(dAtA []byte) (int, error) {
  5303. var i int
  5304. _ = i
  5305. var l int
  5306. _ = l
  5307. if m.Status {
  5308. dAtA[i] = 0x8
  5309. i++
  5310. if m.Status {
  5311. dAtA[i] = 1
  5312. } else {
  5313. dAtA[i] = 0
  5314. }
  5315. i++
  5316. }
  5317. if m.Coin != 0 {
  5318. dAtA[i] = 0x10
  5319. i++
  5320. i = encodeVarintApi(dAtA, i, uint64(m.Coin))
  5321. }
  5322. if m.Change != 0 {
  5323. dAtA[i] = 0x18
  5324. i++
  5325. i = encodeVarintApi(dAtA, i, uint64(m.Change))
  5326. }
  5327. if m.Progress != nil {
  5328. dAtA[i] = 0x22
  5329. i++
  5330. i = encodeVarintApi(dAtA, i, uint64(m.Progress.Size()))
  5331. n4, err := m.Progress.MarshalTo(dAtA[i:])
  5332. if err != nil {
  5333. return 0, err
  5334. }
  5335. i += n4
  5336. }
  5337. if len(m.Rule) > 0 {
  5338. dAtA[i] = 0x2a
  5339. i++
  5340. i = encodeVarintApi(dAtA, i, uint64(len(m.Rule)))
  5341. i += copy(dAtA[i:], m.Rule)
  5342. }
  5343. if len(m.Gift) > 0 {
  5344. for _, msg := range m.Gift {
  5345. dAtA[i] = 0x32
  5346. i++
  5347. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  5348. n, err := msg.MarshalTo(dAtA[i:])
  5349. if err != nil {
  5350. return 0, err
  5351. }
  5352. i += n
  5353. }
  5354. }
  5355. if len(m.List) > 0 {
  5356. for _, msg := range m.List {
  5357. dAtA[i] = 0x3a
  5358. i++
  5359. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  5360. n, err := msg.MarshalTo(dAtA[i:])
  5361. if err != nil {
  5362. return 0, err
  5363. }
  5364. i += n
  5365. }
  5366. }
  5367. if m.XXX_unrecognized != nil {
  5368. i += copy(dAtA[i:], m.XXX_unrecognized)
  5369. }
  5370. return i, nil
  5371. }
  5372. func (m *CapsuleOpenCapsuleReq) Marshal() (dAtA []byte, err error) {
  5373. size := m.Size()
  5374. dAtA = make([]byte, size)
  5375. n, err := m.MarshalTo(dAtA)
  5376. if err != nil {
  5377. return nil, err
  5378. }
  5379. return dAtA[:n], nil
  5380. }
  5381. func (m *CapsuleOpenCapsuleReq) MarshalTo(dAtA []byte) (int, error) {
  5382. var i int
  5383. _ = i
  5384. var l int
  5385. _ = l
  5386. if m.Uid != 0 {
  5387. dAtA[i] = 0x8
  5388. i++
  5389. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  5390. }
  5391. if len(m.Type) > 0 {
  5392. dAtA[i] = 0x12
  5393. i++
  5394. i = encodeVarintApi(dAtA, i, uint64(len(m.Type)))
  5395. i += copy(dAtA[i:], m.Type)
  5396. }
  5397. if m.Count != 0 {
  5398. dAtA[i] = 0x18
  5399. i++
  5400. i = encodeVarintApi(dAtA, i, uint64(m.Count))
  5401. }
  5402. if len(m.Platform) > 0 {
  5403. dAtA[i] = 0x22
  5404. i++
  5405. i = encodeVarintApi(dAtA, i, uint64(len(m.Platform)))
  5406. i += copy(dAtA[i:], m.Platform)
  5407. }
  5408. if m.XXX_unrecognized != nil {
  5409. i += copy(dAtA[i:], m.XXX_unrecognized)
  5410. }
  5411. return i, nil
  5412. }
  5413. func (m *CapsuleOpenCapsuleResp) Marshal() (dAtA []byte, err error) {
  5414. size := m.Size()
  5415. dAtA = make([]byte, size)
  5416. n, err := m.MarshalTo(dAtA)
  5417. if err != nil {
  5418. return nil, err
  5419. }
  5420. return dAtA[:n], nil
  5421. }
  5422. func (m *CapsuleOpenCapsuleResp) MarshalTo(dAtA []byte) (int, error) {
  5423. var i int
  5424. _ = i
  5425. var l int
  5426. _ = l
  5427. if m.Status {
  5428. dAtA[i] = 0x8
  5429. i++
  5430. if m.Status {
  5431. dAtA[i] = 1
  5432. } else {
  5433. dAtA[i] = 0
  5434. }
  5435. i++
  5436. }
  5437. if len(m.Text) > 0 {
  5438. for _, s := range m.Text {
  5439. dAtA[i] = 0x12
  5440. i++
  5441. l = len(s)
  5442. for l >= 1<<7 {
  5443. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  5444. l >>= 7
  5445. i++
  5446. }
  5447. dAtA[i] = uint8(l)
  5448. i++
  5449. i += copy(dAtA[i:], s)
  5450. }
  5451. }
  5452. if m.IsEntity {
  5453. dAtA[i] = 0x18
  5454. i++
  5455. if m.IsEntity {
  5456. dAtA[i] = 1
  5457. } else {
  5458. dAtA[i] = 0
  5459. }
  5460. i++
  5461. }
  5462. if m.Info != nil {
  5463. dAtA[i] = 0x22
  5464. i++
  5465. i = encodeVarintApi(dAtA, i, uint64(m.Info.Size()))
  5466. n5, err := m.Info.MarshalTo(dAtA[i:])
  5467. if err != nil {
  5468. return 0, err
  5469. }
  5470. i += n5
  5471. }
  5472. if len(m.ShowTitle) > 0 {
  5473. dAtA[i] = 0x2a
  5474. i++
  5475. i = encodeVarintApi(dAtA, i, uint64(len(m.ShowTitle)))
  5476. i += copy(dAtA[i:], m.ShowTitle)
  5477. }
  5478. if len(m.Awards) > 0 {
  5479. for _, msg := range m.Awards {
  5480. dAtA[i] = 0x32
  5481. i++
  5482. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  5483. n, err := msg.MarshalTo(dAtA[i:])
  5484. if err != nil {
  5485. return 0, err
  5486. }
  5487. i += n
  5488. }
  5489. }
  5490. if m.XXX_unrecognized != nil {
  5491. i += copy(dAtA[i:], m.XXX_unrecognized)
  5492. }
  5493. return i, nil
  5494. }
  5495. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) Marshal() (dAtA []byte, err error) {
  5496. size := m.Size()
  5497. dAtA = make([]byte, size)
  5498. n, err := m.MarshalTo(dAtA)
  5499. if err != nil {
  5500. return nil, err
  5501. }
  5502. return dAtA[:n], nil
  5503. }
  5504. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) MarshalTo(dAtA []byte) (int, error) {
  5505. var i int
  5506. _ = i
  5507. var l int
  5508. _ = l
  5509. if m.Coin != 0 {
  5510. dAtA[i] = 0x8
  5511. i++
  5512. i = encodeVarintApi(dAtA, i, uint64(m.Coin))
  5513. }
  5514. if m.Change != 0 {
  5515. dAtA[i] = 0x10
  5516. i++
  5517. i = encodeVarintApi(dAtA, i, uint64(m.Change))
  5518. }
  5519. if m.Progress != nil {
  5520. dAtA[i] = 0x1a
  5521. i++
  5522. i = encodeVarintApi(dAtA, i, uint64(m.Progress.Size()))
  5523. n6, err := m.Progress.MarshalTo(dAtA[i:])
  5524. if err != nil {
  5525. return 0, err
  5526. }
  5527. i += n6
  5528. }
  5529. if m.XXX_unrecognized != nil {
  5530. i += copy(dAtA[i:], m.XXX_unrecognized)
  5531. }
  5532. return i, nil
  5533. }
  5534. func (m *CapsuleOpenCapsuleResp_Info) Marshal() (dAtA []byte, err error) {
  5535. size := m.Size()
  5536. dAtA = make([]byte, size)
  5537. n, err := m.MarshalTo(dAtA)
  5538. if err != nil {
  5539. return nil, err
  5540. }
  5541. return dAtA[:n], nil
  5542. }
  5543. func (m *CapsuleOpenCapsuleResp_Info) MarshalTo(dAtA []byte) (int, error) {
  5544. var i int
  5545. _ = i
  5546. var l int
  5547. _ = l
  5548. if m.Normal != nil {
  5549. dAtA[i] = 0xa
  5550. i++
  5551. i = encodeVarintApi(dAtA, i, uint64(m.Normal.Size()))
  5552. n7, err := m.Normal.MarshalTo(dAtA[i:])
  5553. if err != nil {
  5554. return 0, err
  5555. }
  5556. i += n7
  5557. }
  5558. if m.Colorful != nil {
  5559. dAtA[i] = 0x12
  5560. i++
  5561. i = encodeVarintApi(dAtA, i, uint64(m.Colorful.Size()))
  5562. n8, err := m.Colorful.MarshalTo(dAtA[i:])
  5563. if err != nil {
  5564. return 0, err
  5565. }
  5566. i += n8
  5567. }
  5568. if m.XXX_unrecognized != nil {
  5569. i += copy(dAtA[i:], m.XXX_unrecognized)
  5570. }
  5571. return i, nil
  5572. }
  5573. func (m *CapsuleOpenCapsuleResp_Award) Marshal() (dAtA []byte, err error) {
  5574. size := m.Size()
  5575. dAtA = make([]byte, size)
  5576. n, err := m.MarshalTo(dAtA)
  5577. if err != nil {
  5578. return nil, err
  5579. }
  5580. return dAtA[:n], nil
  5581. }
  5582. func (m *CapsuleOpenCapsuleResp_Award) MarshalTo(dAtA []byte) (int, error) {
  5583. var i int
  5584. _ = i
  5585. var l int
  5586. _ = l
  5587. if len(m.Name) > 0 {
  5588. dAtA[i] = 0x12
  5589. i++
  5590. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  5591. i += copy(dAtA[i:], m.Name)
  5592. }
  5593. if m.Num != 0 {
  5594. dAtA[i] = 0x18
  5595. i++
  5596. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  5597. }
  5598. if len(m.Text) > 0 {
  5599. dAtA[i] = 0x22
  5600. i++
  5601. i = encodeVarintApi(dAtA, i, uint64(len(m.Text)))
  5602. i += copy(dAtA[i:], m.Text)
  5603. }
  5604. if len(m.Img) > 0 {
  5605. dAtA[i] = 0x2a
  5606. i++
  5607. i = encodeVarintApi(dAtA, i, uint64(len(m.Img)))
  5608. i += copy(dAtA[i:], m.Img)
  5609. }
  5610. if m.Usage != nil {
  5611. dAtA[i] = 0x32
  5612. i++
  5613. i = encodeVarintApi(dAtA, i, uint64(m.Usage.Size()))
  5614. n9, err := m.Usage.MarshalTo(dAtA[i:])
  5615. if err != nil {
  5616. return 0, err
  5617. }
  5618. i += n9
  5619. }
  5620. if len(m.WebImage) > 0 {
  5621. dAtA[i] = 0x3a
  5622. i++
  5623. i = encodeVarintApi(dAtA, i, uint64(len(m.WebImage)))
  5624. i += copy(dAtA[i:], m.WebImage)
  5625. }
  5626. if len(m.MobileImage) > 0 {
  5627. dAtA[i] = 0x42
  5628. i++
  5629. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileImage)))
  5630. i += copy(dAtA[i:], m.MobileImage)
  5631. }
  5632. if m.XXX_unrecognized != nil {
  5633. i += copy(dAtA[i:], m.XXX_unrecognized)
  5634. }
  5635. return i, nil
  5636. }
  5637. func (m *CapsuleGetCapsuleInfoReq) Marshal() (dAtA []byte, err error) {
  5638. size := m.Size()
  5639. dAtA = make([]byte, size)
  5640. n, err := m.MarshalTo(dAtA)
  5641. if err != nil {
  5642. return nil, err
  5643. }
  5644. return dAtA[:n], nil
  5645. }
  5646. func (m *CapsuleGetCapsuleInfoReq) MarshalTo(dAtA []byte) (int, error) {
  5647. var i int
  5648. _ = i
  5649. var l int
  5650. _ = l
  5651. if m.Uid != 0 {
  5652. dAtA[i] = 0x8
  5653. i++
  5654. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  5655. }
  5656. if len(m.Type) > 0 {
  5657. dAtA[i] = 0x12
  5658. i++
  5659. i = encodeVarintApi(dAtA, i, uint64(len(m.Type)))
  5660. i += copy(dAtA[i:], m.Type)
  5661. }
  5662. if len(m.From) > 0 {
  5663. dAtA[i] = 0x1a
  5664. i++
  5665. i = encodeVarintApi(dAtA, i, uint64(len(m.From)))
  5666. i += copy(dAtA[i:], m.From)
  5667. }
  5668. if m.XXX_unrecognized != nil {
  5669. i += copy(dAtA[i:], m.XXX_unrecognized)
  5670. }
  5671. return i, nil
  5672. }
  5673. func (m *CapsuleGetCapsuleInfoResp) Marshal() (dAtA []byte, err error) {
  5674. size := m.Size()
  5675. dAtA = make([]byte, size)
  5676. n, err := m.MarshalTo(dAtA)
  5677. if err != nil {
  5678. return nil, err
  5679. }
  5680. return dAtA[:n], nil
  5681. }
  5682. func (m *CapsuleGetCapsuleInfoResp) MarshalTo(dAtA []byte) (int, error) {
  5683. var i int
  5684. _ = i
  5685. var l int
  5686. _ = l
  5687. if m.Coin != 0 {
  5688. dAtA[i] = 0x8
  5689. i++
  5690. i = encodeVarintApi(dAtA, i, uint64(m.Coin))
  5691. }
  5692. if len(m.Rule) > 0 {
  5693. dAtA[i] = 0x12
  5694. i++
  5695. i = encodeVarintApi(dAtA, i, uint64(len(m.Rule)))
  5696. i += copy(dAtA[i:], m.Rule)
  5697. }
  5698. if len(m.GiftList) > 0 {
  5699. for _, msg := range m.GiftList {
  5700. dAtA[i] = 0x1a
  5701. i++
  5702. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  5703. n, err := msg.MarshalTo(dAtA[i:])
  5704. if err != nil {
  5705. return 0, err
  5706. }
  5707. i += n
  5708. }
  5709. }
  5710. if len(m.GiftFilter) > 0 {
  5711. for _, msg := range m.GiftFilter {
  5712. dAtA[i] = 0x22
  5713. i++
  5714. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  5715. n, err := msg.MarshalTo(dAtA[i:])
  5716. if err != nil {
  5717. return 0, err
  5718. }
  5719. i += n
  5720. }
  5721. }
  5722. if m.XXX_unrecognized != nil {
  5723. i += copy(dAtA[i:], m.XXX_unrecognized)
  5724. }
  5725. return i, nil
  5726. }
  5727. func (m *CapsuleGetCapsuleInfoResp_GiftList) Marshal() (dAtA []byte, err error) {
  5728. size := m.Size()
  5729. dAtA = make([]byte, size)
  5730. n, err := m.MarshalTo(dAtA)
  5731. if err != nil {
  5732. return nil, err
  5733. }
  5734. return dAtA[:n], nil
  5735. }
  5736. func (m *CapsuleGetCapsuleInfoResp_GiftList) MarshalTo(dAtA []byte) (int, error) {
  5737. var i int
  5738. _ = i
  5739. var l int
  5740. _ = l
  5741. if m.Id != 0 {
  5742. dAtA[i] = 0x8
  5743. i++
  5744. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  5745. }
  5746. if len(m.Name) > 0 {
  5747. dAtA[i] = 0x12
  5748. i++
  5749. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  5750. i += copy(dAtA[i:], m.Name)
  5751. }
  5752. if m.Num != 0 {
  5753. dAtA[i] = 0x18
  5754. i++
  5755. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  5756. }
  5757. if m.Weight != 0 {
  5758. dAtA[i] = 0x20
  5759. i++
  5760. i = encodeVarintApi(dAtA, i, uint64(m.Weight))
  5761. }
  5762. if len(m.WebUrl) > 0 {
  5763. dAtA[i] = 0x2a
  5764. i++
  5765. i = encodeVarintApi(dAtA, i, uint64(len(m.WebUrl)))
  5766. i += copy(dAtA[i:], m.WebUrl)
  5767. }
  5768. if len(m.MobileUrl) > 0 {
  5769. dAtA[i] = 0x32
  5770. i++
  5771. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileUrl)))
  5772. i += copy(dAtA[i:], m.MobileUrl)
  5773. }
  5774. if m.Usage != nil {
  5775. dAtA[i] = 0x3a
  5776. i++
  5777. i = encodeVarintApi(dAtA, i, uint64(m.Usage.Size()))
  5778. n10, err := m.Usage.MarshalTo(dAtA[i:])
  5779. if err != nil {
  5780. return 0, err
  5781. }
  5782. i += n10
  5783. }
  5784. if m.Type != 0 {
  5785. dAtA[i] = 0x40
  5786. i++
  5787. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  5788. }
  5789. if len(m.Expire) > 0 {
  5790. dAtA[i] = 0x4a
  5791. i++
  5792. i = encodeVarintApi(dAtA, i, uint64(len(m.Expire)))
  5793. i += copy(dAtA[i:], m.Expire)
  5794. }
  5795. if m.XXX_unrecognized != nil {
  5796. i += copy(dAtA[i:], m.XXX_unrecognized)
  5797. }
  5798. return i, nil
  5799. }
  5800. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) Marshal() (dAtA []byte, err error) {
  5801. size := m.Size()
  5802. dAtA = make([]byte, size)
  5803. n, err := m.MarshalTo(dAtA)
  5804. if err != nil {
  5805. return nil, err
  5806. }
  5807. return dAtA[:n], nil
  5808. }
  5809. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) MarshalTo(dAtA []byte) (int, error) {
  5810. var i int
  5811. _ = i
  5812. var l int
  5813. _ = l
  5814. if m.Id != 0 {
  5815. dAtA[i] = 0x8
  5816. i++
  5817. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  5818. }
  5819. if len(m.Name) > 0 {
  5820. dAtA[i] = 0x12
  5821. i++
  5822. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  5823. i += copy(dAtA[i:], m.Name)
  5824. }
  5825. if len(m.WebUrl) > 0 {
  5826. dAtA[i] = 0x1a
  5827. i++
  5828. i = encodeVarintApi(dAtA, i, uint64(len(m.WebUrl)))
  5829. i += copy(dAtA[i:], m.WebUrl)
  5830. }
  5831. if len(m.MobileUrl) > 0 {
  5832. dAtA[i] = 0x22
  5833. i++
  5834. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileUrl)))
  5835. i += copy(dAtA[i:], m.MobileUrl)
  5836. }
  5837. if m.Usage != nil {
  5838. dAtA[i] = 0x2a
  5839. i++
  5840. i = encodeVarintApi(dAtA, i, uint64(m.Usage.Size()))
  5841. n11, err := m.Usage.MarshalTo(dAtA[i:])
  5842. if err != nil {
  5843. return 0, err
  5844. }
  5845. i += n11
  5846. }
  5847. if m.XXX_unrecognized != nil {
  5848. i += copy(dAtA[i:], m.XXX_unrecognized)
  5849. }
  5850. return i, nil
  5851. }
  5852. func (m *CapsuleOpenCapsuleByTypeReq) Marshal() (dAtA []byte, err error) {
  5853. size := m.Size()
  5854. dAtA = make([]byte, size)
  5855. n, err := m.MarshalTo(dAtA)
  5856. if err != nil {
  5857. return nil, err
  5858. }
  5859. return dAtA[:n], nil
  5860. }
  5861. func (m *CapsuleOpenCapsuleByTypeReq) MarshalTo(dAtA []byte) (int, error) {
  5862. var i int
  5863. _ = i
  5864. var l int
  5865. _ = l
  5866. if m.Uid != 0 {
  5867. dAtA[i] = 0x8
  5868. i++
  5869. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  5870. }
  5871. if len(m.Type) > 0 {
  5872. dAtA[i] = 0x12
  5873. i++
  5874. i = encodeVarintApi(dAtA, i, uint64(len(m.Type)))
  5875. i += copy(dAtA[i:], m.Type)
  5876. }
  5877. if m.Count != 0 {
  5878. dAtA[i] = 0x18
  5879. i++
  5880. i = encodeVarintApi(dAtA, i, uint64(m.Count))
  5881. }
  5882. if len(m.Platform) > 0 {
  5883. dAtA[i] = 0x22
  5884. i++
  5885. i = encodeVarintApi(dAtA, i, uint64(len(m.Platform)))
  5886. i += copy(dAtA[i:], m.Platform)
  5887. }
  5888. if m.XXX_unrecognized != nil {
  5889. i += copy(dAtA[i:], m.XXX_unrecognized)
  5890. }
  5891. return i, nil
  5892. }
  5893. func (m *CapsuleOpenCapsuleByTypeResp) Marshal() (dAtA []byte, err error) {
  5894. size := m.Size()
  5895. dAtA = make([]byte, size)
  5896. n, err := m.MarshalTo(dAtA)
  5897. if err != nil {
  5898. return nil, err
  5899. }
  5900. return dAtA[:n], nil
  5901. }
  5902. func (m *CapsuleOpenCapsuleByTypeResp) MarshalTo(dAtA []byte) (int, error) {
  5903. var i int
  5904. _ = i
  5905. var l int
  5906. _ = l
  5907. if m.Status {
  5908. dAtA[i] = 0x8
  5909. i++
  5910. if m.Status {
  5911. dAtA[i] = 1
  5912. } else {
  5913. dAtA[i] = 0
  5914. }
  5915. i++
  5916. }
  5917. if m.IsEntity {
  5918. dAtA[i] = 0x10
  5919. i++
  5920. if m.IsEntity {
  5921. dAtA[i] = 1
  5922. } else {
  5923. dAtA[i] = 0
  5924. }
  5925. i++
  5926. }
  5927. if m.Info != nil {
  5928. dAtA[i] = 0x1a
  5929. i++
  5930. i = encodeVarintApi(dAtA, i, uint64(m.Info.Size()))
  5931. n12, err := m.Info.MarshalTo(dAtA[i:])
  5932. if err != nil {
  5933. return 0, err
  5934. }
  5935. i += n12
  5936. }
  5937. if len(m.Awards) > 0 {
  5938. for _, msg := range m.Awards {
  5939. dAtA[i] = 0x22
  5940. i++
  5941. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  5942. n, err := msg.MarshalTo(dAtA[i:])
  5943. if err != nil {
  5944. return 0, err
  5945. }
  5946. i += n
  5947. }
  5948. }
  5949. if len(m.Text) > 0 {
  5950. for _, s := range m.Text {
  5951. dAtA[i] = 0x2a
  5952. i++
  5953. l = len(s)
  5954. for l >= 1<<7 {
  5955. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  5956. l >>= 7
  5957. i++
  5958. }
  5959. dAtA[i] = uint8(l)
  5960. i++
  5961. i += copy(dAtA[i:], s)
  5962. }
  5963. }
  5964. if m.XXX_unrecognized != nil {
  5965. i += copy(dAtA[i:], m.XXX_unrecognized)
  5966. }
  5967. return i, nil
  5968. }
  5969. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) Marshal() (dAtA []byte, err error) {
  5970. size := m.Size()
  5971. dAtA = make([]byte, size)
  5972. n, err := m.MarshalTo(dAtA)
  5973. if err != nil {
  5974. return nil, err
  5975. }
  5976. return dAtA[:n], nil
  5977. }
  5978. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) MarshalTo(dAtA []byte) (int, error) {
  5979. var i int
  5980. _ = i
  5981. var l int
  5982. _ = l
  5983. if m.Coin != 0 {
  5984. dAtA[i] = 0x8
  5985. i++
  5986. i = encodeVarintApi(dAtA, i, uint64(m.Coin))
  5987. }
  5988. if m.XXX_unrecognized != nil {
  5989. i += copy(dAtA[i:], m.XXX_unrecognized)
  5990. }
  5991. return i, nil
  5992. }
  5993. func (m *CapsuleOpenCapsuleByTypeResp_Award) Marshal() (dAtA []byte, err error) {
  5994. size := m.Size()
  5995. dAtA = make([]byte, size)
  5996. n, err := m.MarshalTo(dAtA)
  5997. if err != nil {
  5998. return nil, err
  5999. }
  6000. return dAtA[:n], nil
  6001. }
  6002. func (m *CapsuleOpenCapsuleByTypeResp_Award) MarshalTo(dAtA []byte) (int, error) {
  6003. var i int
  6004. _ = i
  6005. var l int
  6006. _ = l
  6007. if m.Id != 0 {
  6008. dAtA[i] = 0x8
  6009. i++
  6010. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6011. }
  6012. if len(m.Name) > 0 {
  6013. dAtA[i] = 0x12
  6014. i++
  6015. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  6016. i += copy(dAtA[i:], m.Name)
  6017. }
  6018. if m.Num != 0 {
  6019. dAtA[i] = 0x18
  6020. i++
  6021. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  6022. }
  6023. if len(m.Text) > 0 {
  6024. dAtA[i] = 0x22
  6025. i++
  6026. i = encodeVarintApi(dAtA, i, uint64(len(m.Text)))
  6027. i += copy(dAtA[i:], m.Text)
  6028. }
  6029. if len(m.WebUrl) > 0 {
  6030. dAtA[i] = 0x2a
  6031. i++
  6032. i = encodeVarintApi(dAtA, i, uint64(len(m.WebUrl)))
  6033. i += copy(dAtA[i:], m.WebUrl)
  6034. }
  6035. if len(m.MobileUrl) > 0 {
  6036. dAtA[i] = 0x32
  6037. i++
  6038. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileUrl)))
  6039. i += copy(dAtA[i:], m.MobileUrl)
  6040. }
  6041. if m.Usage != nil {
  6042. dAtA[i] = 0x3a
  6043. i++
  6044. i = encodeVarintApi(dAtA, i, uint64(m.Usage.Size()))
  6045. n13, err := m.Usage.MarshalTo(dAtA[i:])
  6046. if err != nil {
  6047. return 0, err
  6048. }
  6049. i += n13
  6050. }
  6051. if m.Weight != 0 {
  6052. dAtA[i] = 0x40
  6053. i++
  6054. i = encodeVarintApi(dAtA, i, uint64(m.Weight))
  6055. }
  6056. if m.Type != 0 {
  6057. dAtA[i] = 0x48
  6058. i++
  6059. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  6060. }
  6061. if len(m.Expire) > 0 {
  6062. dAtA[i] = 0x52
  6063. i++
  6064. i = encodeVarintApi(dAtA, i, uint64(len(m.Expire)))
  6065. i += copy(dAtA[i:], m.Expire)
  6066. }
  6067. if m.XXX_unrecognized != nil {
  6068. i += copy(dAtA[i:], m.XXX_unrecognized)
  6069. }
  6070. return i, nil
  6071. }
  6072. func (m *GetCoinListReq) Marshal() (dAtA []byte, err error) {
  6073. size := m.Size()
  6074. dAtA = make([]byte, size)
  6075. n, err := m.MarshalTo(dAtA)
  6076. if err != nil {
  6077. return nil, err
  6078. }
  6079. return dAtA[:n], nil
  6080. }
  6081. func (m *GetCoinListReq) MarshalTo(dAtA []byte) (int, error) {
  6082. var i int
  6083. _ = i
  6084. var l int
  6085. _ = l
  6086. if m.Page != 0 {
  6087. dAtA[i] = 0x8
  6088. i++
  6089. i = encodeVarintApi(dAtA, i, uint64(m.Page))
  6090. }
  6091. if m.PageSize != 0 {
  6092. dAtA[i] = 0x10
  6093. i++
  6094. i = encodeVarintApi(dAtA, i, uint64(m.PageSize))
  6095. }
  6096. if m.XXX_unrecognized != nil {
  6097. i += copy(dAtA[i:], m.XXX_unrecognized)
  6098. }
  6099. return i, nil
  6100. }
  6101. func (m *GetCoinListResp) Marshal() (dAtA []byte, err error) {
  6102. size := m.Size()
  6103. dAtA = make([]byte, size)
  6104. n, err := m.MarshalTo(dAtA)
  6105. if err != nil {
  6106. return nil, err
  6107. }
  6108. return dAtA[:n], nil
  6109. }
  6110. func (m *GetCoinListResp) MarshalTo(dAtA []byte) (int, error) {
  6111. var i int
  6112. _ = i
  6113. var l int
  6114. _ = l
  6115. if m.Total != 0 {
  6116. dAtA[i] = 0x8
  6117. i++
  6118. i = encodeVarintApi(dAtA, i, uint64(m.Total))
  6119. }
  6120. if m.TotalPage != 0 {
  6121. dAtA[i] = 0x10
  6122. i++
  6123. i = encodeVarintApi(dAtA, i, uint64(m.TotalPage))
  6124. }
  6125. if len(m.List) > 0 {
  6126. for _, msg := range m.List {
  6127. dAtA[i] = 0x1a
  6128. i++
  6129. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  6130. n, err := msg.MarshalTo(dAtA[i:])
  6131. if err != nil {
  6132. return 0, err
  6133. }
  6134. i += n
  6135. }
  6136. }
  6137. if m.XXX_unrecognized != nil {
  6138. i += copy(dAtA[i:], m.XXX_unrecognized)
  6139. }
  6140. return i, nil
  6141. }
  6142. func (m *GetCoinListResp_List) Marshal() (dAtA []byte, err error) {
  6143. size := m.Size()
  6144. dAtA = make([]byte, size)
  6145. n, err := m.MarshalTo(dAtA)
  6146. if err != nil {
  6147. return nil, err
  6148. }
  6149. return dAtA[:n], nil
  6150. }
  6151. func (m *GetCoinListResp_List) MarshalTo(dAtA []byte) (int, error) {
  6152. var i int
  6153. _ = i
  6154. var l int
  6155. _ = l
  6156. if m.Id != 0 {
  6157. dAtA[i] = 0x8
  6158. i++
  6159. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6160. }
  6161. if len(m.Title) > 0 {
  6162. dAtA[i] = 0x12
  6163. i++
  6164. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  6165. i += copy(dAtA[i:], m.Title)
  6166. }
  6167. if m.ChangeNum != 0 {
  6168. dAtA[i] = 0x18
  6169. i++
  6170. i = encodeVarintApi(dAtA, i, uint64(m.ChangeNum))
  6171. }
  6172. if m.StartTime != 0 {
  6173. dAtA[i] = 0x20
  6174. i++
  6175. i = encodeVarintApi(dAtA, i, uint64(m.StartTime))
  6176. }
  6177. if m.EndTime != 0 {
  6178. dAtA[i] = 0x28
  6179. i++
  6180. i = encodeVarintApi(dAtA, i, uint64(m.EndTime))
  6181. }
  6182. if m.Status != 0 {
  6183. dAtA[i] = 0x30
  6184. i++
  6185. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  6186. }
  6187. if m.GiftType != 0 {
  6188. dAtA[i] = 0x38
  6189. i++
  6190. i = encodeVarintApi(dAtA, i, uint64(m.GiftType))
  6191. }
  6192. if len(m.GiftConfig) > 0 {
  6193. dAtA[i] = 0x42
  6194. i++
  6195. i = encodeVarintApi(dAtA, i, uint64(len(m.GiftConfig)))
  6196. i += copy(dAtA[i:], m.GiftConfig)
  6197. }
  6198. if len(m.AreaIds) > 0 {
  6199. for _, msg := range m.AreaIds {
  6200. dAtA[i] = 0x4a
  6201. i++
  6202. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  6203. n, err := msg.MarshalTo(dAtA[i:])
  6204. if err != nil {
  6205. return 0, err
  6206. }
  6207. i += n
  6208. }
  6209. }
  6210. if m.XXX_unrecognized != nil {
  6211. i += copy(dAtA[i:], m.XXX_unrecognized)
  6212. }
  6213. return i, nil
  6214. }
  6215. func (m *GetCoinListResp_List_AreaIds) Marshal() (dAtA []byte, err error) {
  6216. size := m.Size()
  6217. dAtA = make([]byte, size)
  6218. n, err := m.MarshalTo(dAtA)
  6219. if err != nil {
  6220. return nil, err
  6221. }
  6222. return dAtA[:n], nil
  6223. }
  6224. func (m *GetCoinListResp_List_AreaIds) MarshalTo(dAtA []byte) (int, error) {
  6225. var i int
  6226. _ = i
  6227. var l int
  6228. _ = l
  6229. if m.ParentId != 0 {
  6230. dAtA[i] = 0x8
  6231. i++
  6232. i = encodeVarintApi(dAtA, i, uint64(m.ParentId))
  6233. }
  6234. if m.IsAll != 0 {
  6235. dAtA[i] = 0x10
  6236. i++
  6237. i = encodeVarintApi(dAtA, i, uint64(m.IsAll))
  6238. }
  6239. if len(m.List) > 0 {
  6240. dAtA15 := make([]byte, len(m.List)*10)
  6241. var j14 int
  6242. for _, num1 := range m.List {
  6243. num := uint64(num1)
  6244. for num >= 1<<7 {
  6245. dAtA15[j14] = uint8(uint64(num)&0x7f | 0x80)
  6246. num >>= 7
  6247. j14++
  6248. }
  6249. dAtA15[j14] = uint8(num)
  6250. j14++
  6251. }
  6252. dAtA[i] = 0x1a
  6253. i++
  6254. i = encodeVarintApi(dAtA, i, uint64(j14))
  6255. i += copy(dAtA[i:], dAtA15[:j14])
  6256. }
  6257. if m.XXX_unrecognized != nil {
  6258. i += copy(dAtA[i:], m.XXX_unrecognized)
  6259. }
  6260. return i, nil
  6261. }
  6262. func (m *UpdateCoinConfigReq) Marshal() (dAtA []byte, err error) {
  6263. size := m.Size()
  6264. dAtA = make([]byte, size)
  6265. n, err := m.MarshalTo(dAtA)
  6266. if err != nil {
  6267. return nil, err
  6268. }
  6269. return dAtA[:n], nil
  6270. }
  6271. func (m *UpdateCoinConfigReq) MarshalTo(dAtA []byte) (int, error) {
  6272. var i int
  6273. _ = i
  6274. var l int
  6275. _ = l
  6276. if m.Id != 0 {
  6277. dAtA[i] = 0x8
  6278. i++
  6279. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6280. }
  6281. if len(m.Title) > 0 {
  6282. dAtA[i] = 0x12
  6283. i++
  6284. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  6285. i += copy(dAtA[i:], m.Title)
  6286. }
  6287. if m.ChangeNum != 0 {
  6288. dAtA[i] = 0x18
  6289. i++
  6290. i = encodeVarintApi(dAtA, i, uint64(m.ChangeNum))
  6291. }
  6292. if m.StartTime != 0 {
  6293. dAtA[i] = 0x20
  6294. i++
  6295. i = encodeVarintApi(dAtA, i, uint64(m.StartTime))
  6296. }
  6297. if m.EndTime != 0 {
  6298. dAtA[i] = 0x28
  6299. i++
  6300. i = encodeVarintApi(dAtA, i, uint64(m.EndTime))
  6301. }
  6302. if m.Status != 0 {
  6303. dAtA[i] = 0x30
  6304. i++
  6305. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  6306. }
  6307. if m.GiftType != 0 {
  6308. dAtA[i] = 0x38
  6309. i++
  6310. i = encodeVarintApi(dAtA, i, uint64(m.GiftType))
  6311. }
  6312. if len(m.GiftIds) > 0 {
  6313. dAtA17 := make([]byte, len(m.GiftIds)*10)
  6314. var j16 int
  6315. for _, num1 := range m.GiftIds {
  6316. num := uint64(num1)
  6317. for num >= 1<<7 {
  6318. dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80)
  6319. num >>= 7
  6320. j16++
  6321. }
  6322. dAtA17[j16] = uint8(num)
  6323. j16++
  6324. }
  6325. dAtA[i] = 0x42
  6326. i++
  6327. i = encodeVarintApi(dAtA, i, uint64(j16))
  6328. i += copy(dAtA[i:], dAtA17[:j16])
  6329. }
  6330. if len(m.AreaIds) > 0 {
  6331. for _, msg := range m.AreaIds {
  6332. dAtA[i] = 0x4a
  6333. i++
  6334. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  6335. n, err := msg.MarshalTo(dAtA[i:])
  6336. if err != nil {
  6337. return 0, err
  6338. }
  6339. i += n
  6340. }
  6341. }
  6342. if m.XXX_unrecognized != nil {
  6343. i += copy(dAtA[i:], m.XXX_unrecognized)
  6344. }
  6345. return i, nil
  6346. }
  6347. func (m *UpdateCoinConfigReq_AreaIds) Marshal() (dAtA []byte, err error) {
  6348. size := m.Size()
  6349. dAtA = make([]byte, size)
  6350. n, err := m.MarshalTo(dAtA)
  6351. if err != nil {
  6352. return nil, err
  6353. }
  6354. return dAtA[:n], nil
  6355. }
  6356. func (m *UpdateCoinConfigReq_AreaIds) MarshalTo(dAtA []byte) (int, error) {
  6357. var i int
  6358. _ = i
  6359. var l int
  6360. _ = l
  6361. if m.ParentId != 0 {
  6362. dAtA[i] = 0x8
  6363. i++
  6364. i = encodeVarintApi(dAtA, i, uint64(m.ParentId))
  6365. }
  6366. if m.IsAll != 0 {
  6367. dAtA[i] = 0x10
  6368. i++
  6369. i = encodeVarintApi(dAtA, i, uint64(m.IsAll))
  6370. }
  6371. if len(m.List) > 0 {
  6372. dAtA19 := make([]byte, len(m.List)*10)
  6373. var j18 int
  6374. for _, num1 := range m.List {
  6375. num := uint64(num1)
  6376. for num >= 1<<7 {
  6377. dAtA19[j18] = uint8(uint64(num)&0x7f | 0x80)
  6378. num >>= 7
  6379. j18++
  6380. }
  6381. dAtA19[j18] = uint8(num)
  6382. j18++
  6383. }
  6384. dAtA[i] = 0x1a
  6385. i++
  6386. i = encodeVarintApi(dAtA, i, uint64(j18))
  6387. i += copy(dAtA[i:], dAtA19[:j18])
  6388. }
  6389. if m.XXX_unrecognized != nil {
  6390. i += copy(dAtA[i:], m.XXX_unrecognized)
  6391. }
  6392. return i, nil
  6393. }
  6394. func (m *UpdateCoinConfigResp) Marshal() (dAtA []byte, err error) {
  6395. size := m.Size()
  6396. dAtA = make([]byte, size)
  6397. n, err := m.MarshalTo(dAtA)
  6398. if err != nil {
  6399. return nil, err
  6400. }
  6401. return dAtA[:n], nil
  6402. }
  6403. func (m *UpdateCoinConfigResp) MarshalTo(dAtA []byte) (int, error) {
  6404. var i int
  6405. _ = i
  6406. var l int
  6407. _ = l
  6408. if m.Status {
  6409. dAtA[i] = 0x8
  6410. i++
  6411. if m.Status {
  6412. dAtA[i] = 1
  6413. } else {
  6414. dAtA[i] = 0
  6415. }
  6416. i++
  6417. }
  6418. if m.XXX_unrecognized != nil {
  6419. i += copy(dAtA[i:], m.XXX_unrecognized)
  6420. }
  6421. return i, nil
  6422. }
  6423. func (m *UpdateCoinStatusReq) Marshal() (dAtA []byte, err error) {
  6424. size := m.Size()
  6425. dAtA = make([]byte, size)
  6426. n, err := m.MarshalTo(dAtA)
  6427. if err != nil {
  6428. return nil, err
  6429. }
  6430. return dAtA[:n], nil
  6431. }
  6432. func (m *UpdateCoinStatusReq) MarshalTo(dAtA []byte) (int, error) {
  6433. var i int
  6434. _ = i
  6435. var l int
  6436. _ = l
  6437. if m.Id != 0 {
  6438. dAtA[i] = 0x8
  6439. i++
  6440. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6441. }
  6442. if m.Status != 0 {
  6443. dAtA[i] = 0x10
  6444. i++
  6445. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  6446. }
  6447. if m.XXX_unrecognized != nil {
  6448. i += copy(dAtA[i:], m.XXX_unrecognized)
  6449. }
  6450. return i, nil
  6451. }
  6452. func (m *UpdateCoinStatusResp) Marshal() (dAtA []byte, err error) {
  6453. size := m.Size()
  6454. dAtA = make([]byte, size)
  6455. n, err := m.MarshalTo(dAtA)
  6456. if err != nil {
  6457. return nil, err
  6458. }
  6459. return dAtA[:n], nil
  6460. }
  6461. func (m *UpdateCoinStatusResp) MarshalTo(dAtA []byte) (int, error) {
  6462. var i int
  6463. _ = i
  6464. var l int
  6465. _ = l
  6466. if m.Status {
  6467. dAtA[i] = 0x8
  6468. i++
  6469. if m.Status {
  6470. dAtA[i] = 1
  6471. } else {
  6472. dAtA[i] = 0
  6473. }
  6474. i++
  6475. }
  6476. if m.XXX_unrecognized != nil {
  6477. i += copy(dAtA[i:], m.XXX_unrecognized)
  6478. }
  6479. return i, nil
  6480. }
  6481. func (m *DeleteCoinReq) Marshal() (dAtA []byte, err error) {
  6482. size := m.Size()
  6483. dAtA = make([]byte, size)
  6484. n, err := m.MarshalTo(dAtA)
  6485. if err != nil {
  6486. return nil, err
  6487. }
  6488. return dAtA[:n], nil
  6489. }
  6490. func (m *DeleteCoinReq) MarshalTo(dAtA []byte) (int, error) {
  6491. var i int
  6492. _ = i
  6493. var l int
  6494. _ = l
  6495. if m.Id != 0 {
  6496. dAtA[i] = 0x8
  6497. i++
  6498. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6499. }
  6500. if m.XXX_unrecognized != nil {
  6501. i += copy(dAtA[i:], m.XXX_unrecognized)
  6502. }
  6503. return i, nil
  6504. }
  6505. func (m *DeleteCoinResp) Marshal() (dAtA []byte, err error) {
  6506. size := m.Size()
  6507. dAtA = make([]byte, size)
  6508. n, err := m.MarshalTo(dAtA)
  6509. if err != nil {
  6510. return nil, err
  6511. }
  6512. return dAtA[:n], nil
  6513. }
  6514. func (m *DeleteCoinResp) MarshalTo(dAtA []byte) (int, error) {
  6515. var i int
  6516. _ = i
  6517. var l int
  6518. _ = l
  6519. if m.Status {
  6520. dAtA[i] = 0x8
  6521. i++
  6522. if m.Status {
  6523. dAtA[i] = 1
  6524. } else {
  6525. dAtA[i] = 0
  6526. }
  6527. i++
  6528. }
  6529. if m.XXX_unrecognized != nil {
  6530. i += copy(dAtA[i:], m.XXX_unrecognized)
  6531. }
  6532. return i, nil
  6533. }
  6534. func (m *GetPoolListReq) Marshal() (dAtA []byte, err error) {
  6535. size := m.Size()
  6536. dAtA = make([]byte, size)
  6537. n, err := m.MarshalTo(dAtA)
  6538. if err != nil {
  6539. return nil, err
  6540. }
  6541. return dAtA[:n], nil
  6542. }
  6543. func (m *GetPoolListReq) MarshalTo(dAtA []byte) (int, error) {
  6544. var i int
  6545. _ = i
  6546. var l int
  6547. _ = l
  6548. if m.Page != 0 {
  6549. dAtA[i] = 0x8
  6550. i++
  6551. i = encodeVarintApi(dAtA, i, uint64(m.Page))
  6552. }
  6553. if m.PageSize != 0 {
  6554. dAtA[i] = 0x10
  6555. i++
  6556. i = encodeVarintApi(dAtA, i, uint64(m.PageSize))
  6557. }
  6558. if m.XXX_unrecognized != nil {
  6559. i += copy(dAtA[i:], m.XXX_unrecognized)
  6560. }
  6561. return i, nil
  6562. }
  6563. func (m *GetPoolListResp) Marshal() (dAtA []byte, err error) {
  6564. size := m.Size()
  6565. dAtA = make([]byte, size)
  6566. n, err := m.MarshalTo(dAtA)
  6567. if err != nil {
  6568. return nil, err
  6569. }
  6570. return dAtA[:n], nil
  6571. }
  6572. func (m *GetPoolListResp) MarshalTo(dAtA []byte) (int, error) {
  6573. var i int
  6574. _ = i
  6575. var l int
  6576. _ = l
  6577. if m.Total != 0 {
  6578. dAtA[i] = 0x8
  6579. i++
  6580. i = encodeVarintApi(dAtA, i, uint64(m.Total))
  6581. }
  6582. if m.TotalPage != 0 {
  6583. dAtA[i] = 0x10
  6584. i++
  6585. i = encodeVarintApi(dAtA, i, uint64(m.TotalPage))
  6586. }
  6587. if len(m.List) > 0 {
  6588. for _, msg := range m.List {
  6589. dAtA[i] = 0x1a
  6590. i++
  6591. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  6592. n, err := msg.MarshalTo(dAtA[i:])
  6593. if err != nil {
  6594. return 0, err
  6595. }
  6596. i += n
  6597. }
  6598. }
  6599. if m.XXX_unrecognized != nil {
  6600. i += copy(dAtA[i:], m.XXX_unrecognized)
  6601. }
  6602. return i, nil
  6603. }
  6604. func (m *GetPoolListResp_List) Marshal() (dAtA []byte, err error) {
  6605. size := m.Size()
  6606. dAtA = make([]byte, size)
  6607. n, err := m.MarshalTo(dAtA)
  6608. if err != nil {
  6609. return nil, err
  6610. }
  6611. return dAtA[:n], nil
  6612. }
  6613. func (m *GetPoolListResp_List) MarshalTo(dAtA []byte) (int, error) {
  6614. var i int
  6615. _ = i
  6616. var l int
  6617. _ = l
  6618. if m.Id != 0 {
  6619. dAtA[i] = 0x8
  6620. i++
  6621. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6622. }
  6623. if m.CoinId != 0 {
  6624. dAtA[i] = 0x10
  6625. i++
  6626. i = encodeVarintApi(dAtA, i, uint64(m.CoinId))
  6627. }
  6628. if len(m.Title) > 0 {
  6629. dAtA[i] = 0x1a
  6630. i++
  6631. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  6632. i += copy(dAtA[i:], m.Title)
  6633. }
  6634. if m.StartTime != 0 {
  6635. dAtA[i] = 0x20
  6636. i++
  6637. i = encodeVarintApi(dAtA, i, uint64(m.StartTime))
  6638. }
  6639. if m.EndTime != 0 {
  6640. dAtA[i] = 0x28
  6641. i++
  6642. i = encodeVarintApi(dAtA, i, uint64(m.EndTime))
  6643. }
  6644. if m.Status != 0 {
  6645. dAtA[i] = 0x30
  6646. i++
  6647. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  6648. }
  6649. if len(m.Rule) > 0 {
  6650. dAtA[i] = 0x3a
  6651. i++
  6652. i = encodeVarintApi(dAtA, i, uint64(len(m.Rule)))
  6653. i += copy(dAtA[i:], m.Rule)
  6654. }
  6655. if len(m.CoinTitle) > 0 {
  6656. dAtA[i] = 0x42
  6657. i++
  6658. i = encodeVarintApi(dAtA, i, uint64(len(m.CoinTitle)))
  6659. i += copy(dAtA[i:], m.CoinTitle)
  6660. }
  6661. if m.XXX_unrecognized != nil {
  6662. i += copy(dAtA[i:], m.XXX_unrecognized)
  6663. }
  6664. return i, nil
  6665. }
  6666. func (m *UpdatePoolReq) Marshal() (dAtA []byte, err error) {
  6667. size := m.Size()
  6668. dAtA = make([]byte, size)
  6669. n, err := m.MarshalTo(dAtA)
  6670. if err != nil {
  6671. return nil, err
  6672. }
  6673. return dAtA[:n], nil
  6674. }
  6675. func (m *UpdatePoolReq) MarshalTo(dAtA []byte) (int, error) {
  6676. var i int
  6677. _ = i
  6678. var l int
  6679. _ = l
  6680. if m.Id != 0 {
  6681. dAtA[i] = 0x8
  6682. i++
  6683. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6684. }
  6685. if m.CoinId != 0 {
  6686. dAtA[i] = 0x10
  6687. i++
  6688. i = encodeVarintApi(dAtA, i, uint64(m.CoinId))
  6689. }
  6690. if len(m.Title) > 0 {
  6691. dAtA[i] = 0x1a
  6692. i++
  6693. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  6694. i += copy(dAtA[i:], m.Title)
  6695. }
  6696. if m.StartTime != 0 {
  6697. dAtA[i] = 0x20
  6698. i++
  6699. i = encodeVarintApi(dAtA, i, uint64(m.StartTime))
  6700. }
  6701. if m.EndTime != 0 {
  6702. dAtA[i] = 0x28
  6703. i++
  6704. i = encodeVarintApi(dAtA, i, uint64(m.EndTime))
  6705. }
  6706. if len(m.Rule) > 0 {
  6707. dAtA[i] = 0x32
  6708. i++
  6709. i = encodeVarintApi(dAtA, i, uint64(len(m.Rule)))
  6710. i += copy(dAtA[i:], m.Rule)
  6711. }
  6712. if m.XXX_unrecognized != nil {
  6713. i += copy(dAtA[i:], m.XXX_unrecognized)
  6714. }
  6715. return i, nil
  6716. }
  6717. func (m *UpdatePoolResp) Marshal() (dAtA []byte, err error) {
  6718. size := m.Size()
  6719. dAtA = make([]byte, size)
  6720. n, err := m.MarshalTo(dAtA)
  6721. if err != nil {
  6722. return nil, err
  6723. }
  6724. return dAtA[:n], nil
  6725. }
  6726. func (m *UpdatePoolResp) MarshalTo(dAtA []byte) (int, error) {
  6727. var i int
  6728. _ = i
  6729. var l int
  6730. _ = l
  6731. if m.Status {
  6732. dAtA[i] = 0x8
  6733. i++
  6734. if m.Status {
  6735. dAtA[i] = 1
  6736. } else {
  6737. dAtA[i] = 0
  6738. }
  6739. i++
  6740. }
  6741. if m.XXX_unrecognized != nil {
  6742. i += copy(dAtA[i:], m.XXX_unrecognized)
  6743. }
  6744. return i, nil
  6745. }
  6746. func (m *DeletePoolReq) Marshal() (dAtA []byte, err error) {
  6747. size := m.Size()
  6748. dAtA = make([]byte, size)
  6749. n, err := m.MarshalTo(dAtA)
  6750. if err != nil {
  6751. return nil, err
  6752. }
  6753. return dAtA[:n], nil
  6754. }
  6755. func (m *DeletePoolReq) MarshalTo(dAtA []byte) (int, error) {
  6756. var i int
  6757. _ = i
  6758. var l int
  6759. _ = l
  6760. if m.Id != 0 {
  6761. dAtA[i] = 0x8
  6762. i++
  6763. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6764. }
  6765. if m.XXX_unrecognized != nil {
  6766. i += copy(dAtA[i:], m.XXX_unrecognized)
  6767. }
  6768. return i, nil
  6769. }
  6770. func (m *DeletePoolResp) Marshal() (dAtA []byte, err error) {
  6771. size := m.Size()
  6772. dAtA = make([]byte, size)
  6773. n, err := m.MarshalTo(dAtA)
  6774. if err != nil {
  6775. return nil, err
  6776. }
  6777. return dAtA[:n], nil
  6778. }
  6779. func (m *DeletePoolResp) MarshalTo(dAtA []byte) (int, error) {
  6780. var i int
  6781. _ = i
  6782. var l int
  6783. _ = l
  6784. if m.Status {
  6785. dAtA[i] = 0x8
  6786. i++
  6787. if m.Status {
  6788. dAtA[i] = 1
  6789. } else {
  6790. dAtA[i] = 0
  6791. }
  6792. i++
  6793. }
  6794. if m.XXX_unrecognized != nil {
  6795. i += copy(dAtA[i:], m.XXX_unrecognized)
  6796. }
  6797. return i, nil
  6798. }
  6799. func (m *UpdatePoolStatusReq) Marshal() (dAtA []byte, err error) {
  6800. size := m.Size()
  6801. dAtA = make([]byte, size)
  6802. n, err := m.MarshalTo(dAtA)
  6803. if err != nil {
  6804. return nil, err
  6805. }
  6806. return dAtA[:n], nil
  6807. }
  6808. func (m *UpdatePoolStatusReq) MarshalTo(dAtA []byte) (int, error) {
  6809. var i int
  6810. _ = i
  6811. var l int
  6812. _ = l
  6813. if m.Id != 0 {
  6814. dAtA[i] = 0x8
  6815. i++
  6816. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6817. }
  6818. if m.Status != 0 {
  6819. dAtA[i] = 0x10
  6820. i++
  6821. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  6822. }
  6823. if m.XXX_unrecognized != nil {
  6824. i += copy(dAtA[i:], m.XXX_unrecognized)
  6825. }
  6826. return i, nil
  6827. }
  6828. func (m *UpdatePoolStatusResp) Marshal() (dAtA []byte, err error) {
  6829. size := m.Size()
  6830. dAtA = make([]byte, size)
  6831. n, err := m.MarshalTo(dAtA)
  6832. if err != nil {
  6833. return nil, err
  6834. }
  6835. return dAtA[:n], nil
  6836. }
  6837. func (m *UpdatePoolStatusResp) MarshalTo(dAtA []byte) (int, error) {
  6838. var i int
  6839. _ = i
  6840. var l int
  6841. _ = l
  6842. if m.Status {
  6843. dAtA[i] = 0x8
  6844. i++
  6845. if m.Status {
  6846. dAtA[i] = 1
  6847. } else {
  6848. dAtA[i] = 0
  6849. }
  6850. i++
  6851. }
  6852. if m.XXX_unrecognized != nil {
  6853. i += copy(dAtA[i:], m.XXX_unrecognized)
  6854. }
  6855. return i, nil
  6856. }
  6857. func (m *GetPoolPrizeReq) Marshal() (dAtA []byte, err error) {
  6858. size := m.Size()
  6859. dAtA = make([]byte, size)
  6860. n, err := m.MarshalTo(dAtA)
  6861. if err != nil {
  6862. return nil, err
  6863. }
  6864. return dAtA[:n], nil
  6865. }
  6866. func (m *GetPoolPrizeReq) MarshalTo(dAtA []byte) (int, error) {
  6867. var i int
  6868. _ = i
  6869. var l int
  6870. _ = l
  6871. if m.PoolId != 0 {
  6872. dAtA[i] = 0x8
  6873. i++
  6874. i = encodeVarintApi(dAtA, i, uint64(m.PoolId))
  6875. }
  6876. if m.XXX_unrecognized != nil {
  6877. i += copy(dAtA[i:], m.XXX_unrecognized)
  6878. }
  6879. return i, nil
  6880. }
  6881. func (m *GetPoolPrizeResp) Marshal() (dAtA []byte, err error) {
  6882. size := m.Size()
  6883. dAtA = make([]byte, size)
  6884. n, err := m.MarshalTo(dAtA)
  6885. if err != nil {
  6886. return nil, err
  6887. }
  6888. return dAtA[:n], nil
  6889. }
  6890. func (m *GetPoolPrizeResp) MarshalTo(dAtA []byte) (int, error) {
  6891. var i int
  6892. _ = i
  6893. var l int
  6894. _ = l
  6895. if len(m.List) > 0 {
  6896. for _, msg := range m.List {
  6897. dAtA[i] = 0xa
  6898. i++
  6899. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  6900. n, err := msg.MarshalTo(dAtA[i:])
  6901. if err != nil {
  6902. return 0, err
  6903. }
  6904. i += n
  6905. }
  6906. }
  6907. if m.XXX_unrecognized != nil {
  6908. i += copy(dAtA[i:], m.XXX_unrecognized)
  6909. }
  6910. return i, nil
  6911. }
  6912. func (m *GetPoolPrizeResp_List) Marshal() (dAtA []byte, err error) {
  6913. size := m.Size()
  6914. dAtA = make([]byte, size)
  6915. n, err := m.MarshalTo(dAtA)
  6916. if err != nil {
  6917. return nil, err
  6918. }
  6919. return dAtA[:n], nil
  6920. }
  6921. func (m *GetPoolPrizeResp_List) MarshalTo(dAtA []byte) (int, error) {
  6922. var i int
  6923. _ = i
  6924. var l int
  6925. _ = l
  6926. if m.Id != 0 {
  6927. dAtA[i] = 0x8
  6928. i++
  6929. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  6930. }
  6931. if m.PoolId != 0 {
  6932. dAtA[i] = 0x10
  6933. i++
  6934. i = encodeVarintApi(dAtA, i, uint64(m.PoolId))
  6935. }
  6936. if m.Type != 0 {
  6937. dAtA[i] = 0x18
  6938. i++
  6939. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  6940. }
  6941. if m.Num != 0 {
  6942. dAtA[i] = 0x20
  6943. i++
  6944. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  6945. }
  6946. if m.ObjectId != 0 {
  6947. dAtA[i] = 0x28
  6948. i++
  6949. i = encodeVarintApi(dAtA, i, uint64(m.ObjectId))
  6950. }
  6951. if len(m.WebUrl) > 0 {
  6952. dAtA[i] = 0x32
  6953. i++
  6954. i = encodeVarintApi(dAtA, i, uint64(len(m.WebUrl)))
  6955. i += copy(dAtA[i:], m.WebUrl)
  6956. }
  6957. if len(m.MobileUrl) > 0 {
  6958. dAtA[i] = 0x3a
  6959. i++
  6960. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileUrl)))
  6961. i += copy(dAtA[i:], m.MobileUrl)
  6962. }
  6963. if len(m.Description) > 0 {
  6964. dAtA[i] = 0x42
  6965. i++
  6966. i = encodeVarintApi(dAtA, i, uint64(len(m.Description)))
  6967. i += copy(dAtA[i:], m.Description)
  6968. }
  6969. if len(m.JumpUrl) > 0 {
  6970. dAtA[i] = 0x4a
  6971. i++
  6972. i = encodeVarintApi(dAtA, i, uint64(len(m.JumpUrl)))
  6973. i += copy(dAtA[i:], m.JumpUrl)
  6974. }
  6975. if m.ProType != 0 {
  6976. dAtA[i] = 0x50
  6977. i++
  6978. i = encodeVarintApi(dAtA, i, uint64(m.ProType))
  6979. }
  6980. if len(m.Chance) > 0 {
  6981. dAtA[i] = 0x5a
  6982. i++
  6983. i = encodeVarintApi(dAtA, i, uint64(len(m.Chance)))
  6984. i += copy(dAtA[i:], m.Chance)
  6985. }
  6986. if m.Loop != 0 {
  6987. dAtA[i] = 0x60
  6988. i++
  6989. i = encodeVarintApi(dAtA, i, uint64(m.Loop))
  6990. }
  6991. if m.Limit != 0 {
  6992. dAtA[i] = 0x68
  6993. i++
  6994. i = encodeVarintApi(dAtA, i, uint64(m.Limit))
  6995. }
  6996. if len(m.Name) > 0 {
  6997. dAtA[i] = 0x72
  6998. i++
  6999. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  7000. i += copy(dAtA[i:], m.Name)
  7001. }
  7002. if m.Weight != 0 {
  7003. dAtA[i] = 0x78
  7004. i++
  7005. i = encodeVarintApi(dAtA, i, uint64(m.Weight))
  7006. }
  7007. if len(m.WhiteUids) > 0 {
  7008. dAtA21 := make([]byte, len(m.WhiteUids)*10)
  7009. var j20 int
  7010. for _, num1 := range m.WhiteUids {
  7011. num := uint64(num1)
  7012. for num >= 1<<7 {
  7013. dAtA21[j20] = uint8(uint64(num)&0x7f | 0x80)
  7014. num >>= 7
  7015. j20++
  7016. }
  7017. dAtA21[j20] = uint8(num)
  7018. j20++
  7019. }
  7020. dAtA[i] = 0x82
  7021. i++
  7022. dAtA[i] = 0x1
  7023. i++
  7024. i = encodeVarintApi(dAtA, i, uint64(j20))
  7025. i += copy(dAtA[i:], dAtA21[:j20])
  7026. }
  7027. if m.Expire != 0 {
  7028. dAtA[i] = 0x88
  7029. i++
  7030. dAtA[i] = 0x1
  7031. i++
  7032. i = encodeVarintApi(dAtA, i, uint64(m.Expire))
  7033. }
  7034. if m.XXX_unrecognized != nil {
  7035. i += copy(dAtA[i:], m.XXX_unrecognized)
  7036. }
  7037. return i, nil
  7038. }
  7039. func (m *UpdatePoolPrizeReq) Marshal() (dAtA []byte, err error) {
  7040. size := m.Size()
  7041. dAtA = make([]byte, size)
  7042. n, err := m.MarshalTo(dAtA)
  7043. if err != nil {
  7044. return nil, err
  7045. }
  7046. return dAtA[:n], nil
  7047. }
  7048. func (m *UpdatePoolPrizeReq) MarshalTo(dAtA []byte) (int, error) {
  7049. var i int
  7050. _ = i
  7051. var l int
  7052. _ = l
  7053. if m.Id != 0 {
  7054. dAtA[i] = 0x8
  7055. i++
  7056. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  7057. }
  7058. if m.PoolId != 0 {
  7059. dAtA[i] = 0x10
  7060. i++
  7061. i = encodeVarintApi(dAtA, i, uint64(m.PoolId))
  7062. }
  7063. if m.Type != 0 {
  7064. dAtA[i] = 0x18
  7065. i++
  7066. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  7067. }
  7068. if m.Num != 0 {
  7069. dAtA[i] = 0x20
  7070. i++
  7071. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  7072. }
  7073. if m.ObjectId != 0 {
  7074. dAtA[i] = 0x28
  7075. i++
  7076. i = encodeVarintApi(dAtA, i, uint64(m.ObjectId))
  7077. }
  7078. if m.Expire != 0 {
  7079. dAtA[i] = 0x30
  7080. i++
  7081. i = encodeVarintApi(dAtA, i, uint64(m.Expire))
  7082. }
  7083. if len(m.WebUrl) > 0 {
  7084. dAtA[i] = 0x3a
  7085. i++
  7086. i = encodeVarintApi(dAtA, i, uint64(len(m.WebUrl)))
  7087. i += copy(dAtA[i:], m.WebUrl)
  7088. }
  7089. if len(m.MobileUrl) > 0 {
  7090. dAtA[i] = 0x42
  7091. i++
  7092. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileUrl)))
  7093. i += copy(dAtA[i:], m.MobileUrl)
  7094. }
  7095. if len(m.Description) > 0 {
  7096. dAtA[i] = 0x4a
  7097. i++
  7098. i = encodeVarintApi(dAtA, i, uint64(len(m.Description)))
  7099. i += copy(dAtA[i:], m.Description)
  7100. }
  7101. if len(m.JumpUrl) > 0 {
  7102. dAtA[i] = 0x52
  7103. i++
  7104. i = encodeVarintApi(dAtA, i, uint64(len(m.JumpUrl)))
  7105. i += copy(dAtA[i:], m.JumpUrl)
  7106. }
  7107. if m.ProType != 0 {
  7108. dAtA[i] = 0x58
  7109. i++
  7110. i = encodeVarintApi(dAtA, i, uint64(m.ProType))
  7111. }
  7112. if m.Chance != 0 {
  7113. dAtA[i] = 0x60
  7114. i++
  7115. i = encodeVarintApi(dAtA, i, uint64(m.Chance))
  7116. }
  7117. if m.Loop != 0 {
  7118. dAtA[i] = 0x68
  7119. i++
  7120. i = encodeVarintApi(dAtA, i, uint64(m.Loop))
  7121. }
  7122. if m.Limit != 0 {
  7123. dAtA[i] = 0x70
  7124. i++
  7125. i = encodeVarintApi(dAtA, i, uint64(m.Limit))
  7126. }
  7127. if m.Weight != 0 {
  7128. dAtA[i] = 0x78
  7129. i++
  7130. i = encodeVarintApi(dAtA, i, uint64(m.Weight))
  7131. }
  7132. if len(m.WhiteUids) > 0 {
  7133. dAtA23 := make([]byte, len(m.WhiteUids)*10)
  7134. var j22 int
  7135. for _, num1 := range m.WhiteUids {
  7136. num := uint64(num1)
  7137. for num >= 1<<7 {
  7138. dAtA23[j22] = uint8(uint64(num)&0x7f | 0x80)
  7139. num >>= 7
  7140. j22++
  7141. }
  7142. dAtA23[j22] = uint8(num)
  7143. j22++
  7144. }
  7145. dAtA[i] = 0x82
  7146. i++
  7147. dAtA[i] = 0x1
  7148. i++
  7149. i = encodeVarintApi(dAtA, i, uint64(j22))
  7150. i += copy(dAtA[i:], dAtA23[:j22])
  7151. }
  7152. if m.XXX_unrecognized != nil {
  7153. i += copy(dAtA[i:], m.XXX_unrecognized)
  7154. }
  7155. return i, nil
  7156. }
  7157. func (m *UpdatePoolPrizeResp) Marshal() (dAtA []byte, err error) {
  7158. size := m.Size()
  7159. dAtA = make([]byte, size)
  7160. n, err := m.MarshalTo(dAtA)
  7161. if err != nil {
  7162. return nil, err
  7163. }
  7164. return dAtA[:n], nil
  7165. }
  7166. func (m *UpdatePoolPrizeResp) MarshalTo(dAtA []byte) (int, error) {
  7167. var i int
  7168. _ = i
  7169. var l int
  7170. _ = l
  7171. if m.Status {
  7172. dAtA[i] = 0x8
  7173. i++
  7174. if m.Status {
  7175. dAtA[i] = 1
  7176. } else {
  7177. dAtA[i] = 0
  7178. }
  7179. i++
  7180. }
  7181. if m.PrizeId != 0 {
  7182. dAtA[i] = 0x10
  7183. i++
  7184. i = encodeVarintApi(dAtA, i, uint64(m.PrizeId))
  7185. }
  7186. if m.XXX_unrecognized != nil {
  7187. i += copy(dAtA[i:], m.XXX_unrecognized)
  7188. }
  7189. return i, nil
  7190. }
  7191. func (m *DeletePoolPrizeReq) Marshal() (dAtA []byte, err error) {
  7192. size := m.Size()
  7193. dAtA = make([]byte, size)
  7194. n, err := m.MarshalTo(dAtA)
  7195. if err != nil {
  7196. return nil, err
  7197. }
  7198. return dAtA[:n], nil
  7199. }
  7200. func (m *DeletePoolPrizeReq) MarshalTo(dAtA []byte) (int, error) {
  7201. var i int
  7202. _ = i
  7203. var l int
  7204. _ = l
  7205. if m.Id != 0 {
  7206. dAtA[i] = 0x8
  7207. i++
  7208. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  7209. }
  7210. if m.XXX_unrecognized != nil {
  7211. i += copy(dAtA[i:], m.XXX_unrecognized)
  7212. }
  7213. return i, nil
  7214. }
  7215. func (m *DeletePoolPrizeResp) Marshal() (dAtA []byte, err error) {
  7216. size := m.Size()
  7217. dAtA = make([]byte, size)
  7218. n, err := m.MarshalTo(dAtA)
  7219. if err != nil {
  7220. return nil, err
  7221. }
  7222. return dAtA[:n], nil
  7223. }
  7224. func (m *DeletePoolPrizeResp) MarshalTo(dAtA []byte) (int, error) {
  7225. var i int
  7226. _ = i
  7227. var l int
  7228. _ = l
  7229. if m.Status {
  7230. dAtA[i] = 0x8
  7231. i++
  7232. if m.Status {
  7233. dAtA[i] = 1
  7234. } else {
  7235. dAtA[i] = 0
  7236. }
  7237. i++
  7238. }
  7239. if m.XXX_unrecognized != nil {
  7240. i += copy(dAtA[i:], m.XXX_unrecognized)
  7241. }
  7242. return i, nil
  7243. }
  7244. func (m *GetPrizeTypeReq) Marshal() (dAtA []byte, err error) {
  7245. size := m.Size()
  7246. dAtA = make([]byte, size)
  7247. n, err := m.MarshalTo(dAtA)
  7248. if err != nil {
  7249. return nil, err
  7250. }
  7251. return dAtA[:n], nil
  7252. }
  7253. func (m *GetPrizeTypeReq) MarshalTo(dAtA []byte) (int, error) {
  7254. var i int
  7255. _ = i
  7256. var l int
  7257. _ = l
  7258. if m.XXX_unrecognized != nil {
  7259. i += copy(dAtA[i:], m.XXX_unrecognized)
  7260. }
  7261. return i, nil
  7262. }
  7263. func (m *GetPrizeTypeResp) Marshal() (dAtA []byte, err error) {
  7264. size := m.Size()
  7265. dAtA = make([]byte, size)
  7266. n, err := m.MarshalTo(dAtA)
  7267. if err != nil {
  7268. return nil, err
  7269. }
  7270. return dAtA[:n], nil
  7271. }
  7272. func (m *GetPrizeTypeResp) MarshalTo(dAtA []byte) (int, error) {
  7273. var i int
  7274. _ = i
  7275. var l int
  7276. _ = l
  7277. if len(m.List) > 0 {
  7278. for _, msg := range m.List {
  7279. dAtA[i] = 0x1a
  7280. i++
  7281. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  7282. n, err := msg.MarshalTo(dAtA[i:])
  7283. if err != nil {
  7284. return 0, err
  7285. }
  7286. i += n
  7287. }
  7288. }
  7289. if m.XXX_unrecognized != nil {
  7290. i += copy(dAtA[i:], m.XXX_unrecognized)
  7291. }
  7292. return i, nil
  7293. }
  7294. func (m *GetPrizeTypeResp_List) Marshal() (dAtA []byte, err error) {
  7295. size := m.Size()
  7296. dAtA = make([]byte, size)
  7297. n, err := m.MarshalTo(dAtA)
  7298. if err != nil {
  7299. return nil, err
  7300. }
  7301. return dAtA[:n], nil
  7302. }
  7303. func (m *GetPrizeTypeResp_List) MarshalTo(dAtA []byte) (int, error) {
  7304. var i int
  7305. _ = i
  7306. var l int
  7307. _ = l
  7308. if m.Type != 0 {
  7309. dAtA[i] = 0x8
  7310. i++
  7311. i = encodeVarintApi(dAtA, i, uint64(m.Type))
  7312. }
  7313. if len(m.Name) > 0 {
  7314. dAtA[i] = 0x12
  7315. i++
  7316. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  7317. i += copy(dAtA[i:], m.Name)
  7318. }
  7319. if m.XXX_unrecognized != nil {
  7320. i += copy(dAtA[i:], m.XXX_unrecognized)
  7321. }
  7322. return i, nil
  7323. }
  7324. func (m *GetPrizeExpireReq) Marshal() (dAtA []byte, err error) {
  7325. size := m.Size()
  7326. dAtA = make([]byte, size)
  7327. n, err := m.MarshalTo(dAtA)
  7328. if err != nil {
  7329. return nil, err
  7330. }
  7331. return dAtA[:n], nil
  7332. }
  7333. func (m *GetPrizeExpireReq) MarshalTo(dAtA []byte) (int, error) {
  7334. var i int
  7335. _ = i
  7336. var l int
  7337. _ = l
  7338. if m.XXX_unrecognized != nil {
  7339. i += copy(dAtA[i:], m.XXX_unrecognized)
  7340. }
  7341. return i, nil
  7342. }
  7343. func (m *GetPrizeExpireResp) Marshal() (dAtA []byte, err error) {
  7344. size := m.Size()
  7345. dAtA = make([]byte, size)
  7346. n, err := m.MarshalTo(dAtA)
  7347. if err != nil {
  7348. return nil, err
  7349. }
  7350. return dAtA[:n], nil
  7351. }
  7352. func (m *GetPrizeExpireResp) MarshalTo(dAtA []byte) (int, error) {
  7353. var i int
  7354. _ = i
  7355. var l int
  7356. _ = l
  7357. if len(m.List) > 0 {
  7358. for _, msg := range m.List {
  7359. dAtA[i] = 0x1a
  7360. i++
  7361. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  7362. n, err := msg.MarshalTo(dAtA[i:])
  7363. if err != nil {
  7364. return 0, err
  7365. }
  7366. i += n
  7367. }
  7368. }
  7369. if m.XXX_unrecognized != nil {
  7370. i += copy(dAtA[i:], m.XXX_unrecognized)
  7371. }
  7372. return i, nil
  7373. }
  7374. func (m *GetPrizeExpireResp_List) Marshal() (dAtA []byte, err error) {
  7375. size := m.Size()
  7376. dAtA = make([]byte, size)
  7377. n, err := m.MarshalTo(dAtA)
  7378. if err != nil {
  7379. return nil, err
  7380. }
  7381. return dAtA[:n], nil
  7382. }
  7383. func (m *GetPrizeExpireResp_List) MarshalTo(dAtA []byte) (int, error) {
  7384. var i int
  7385. _ = i
  7386. var l int
  7387. _ = l
  7388. if m.Expire != 0 {
  7389. dAtA[i] = 0x8
  7390. i++
  7391. i = encodeVarintApi(dAtA, i, uint64(m.Expire))
  7392. }
  7393. if len(m.Name) > 0 {
  7394. dAtA[i] = 0x12
  7395. i++
  7396. i = encodeVarintApi(dAtA, i, uint64(len(m.Name)))
  7397. i += copy(dAtA[i:], m.Name)
  7398. }
  7399. if m.XXX_unrecognized != nil {
  7400. i += copy(dAtA[i:], m.XXX_unrecognized)
  7401. }
  7402. return i, nil
  7403. }
  7404. func (m *StartStormReq) Marshal() (dAtA []byte, err error) {
  7405. size := m.Size()
  7406. dAtA = make([]byte, size)
  7407. n, err := m.MarshalTo(dAtA)
  7408. if err != nil {
  7409. return nil, err
  7410. }
  7411. return dAtA[:n], nil
  7412. }
  7413. func (m *StartStormReq) MarshalTo(dAtA []byte) (int, error) {
  7414. var i int
  7415. _ = i
  7416. var l int
  7417. _ = l
  7418. if m.Uid != 0 {
  7419. dAtA[i] = 0x8
  7420. i++
  7421. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  7422. }
  7423. if m.Ruid != 0 {
  7424. dAtA[i] = 0x10
  7425. i++
  7426. i = encodeVarintApi(dAtA, i, uint64(m.Ruid))
  7427. }
  7428. if m.Roomid != 0 {
  7429. dAtA[i] = 0x18
  7430. i++
  7431. i = encodeVarintApi(dAtA, i, uint64(m.Roomid))
  7432. }
  7433. if m.UseShield {
  7434. dAtA[i] = 0x20
  7435. i++
  7436. if m.UseShield {
  7437. dAtA[i] = 1
  7438. } else {
  7439. dAtA[i] = 0
  7440. }
  7441. i++
  7442. }
  7443. if m.Num != 0 {
  7444. dAtA[i] = 0x28
  7445. i++
  7446. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  7447. }
  7448. if m.Beatid != 0 {
  7449. dAtA[i] = 0x30
  7450. i++
  7451. i = encodeVarintApi(dAtA, i, uint64(m.Beatid))
  7452. }
  7453. if m.SkipExternalCheck != 0 {
  7454. dAtA[i] = 0x38
  7455. i++
  7456. i = encodeVarintApi(dAtA, i, uint64(m.SkipExternalCheck))
  7457. }
  7458. if m.XXX_unrecognized != nil {
  7459. i += copy(dAtA[i:], m.XXX_unrecognized)
  7460. }
  7461. return i, nil
  7462. }
  7463. func (m *StartStormResp) Marshal() (dAtA []byte, err error) {
  7464. size := m.Size()
  7465. dAtA = make([]byte, size)
  7466. n, err := m.MarshalTo(dAtA)
  7467. if err != nil {
  7468. return nil, err
  7469. }
  7470. return dAtA[:n], nil
  7471. }
  7472. func (m *StartStormResp) MarshalTo(dAtA []byte) (int, error) {
  7473. var i int
  7474. _ = i
  7475. var l int
  7476. _ = l
  7477. if m.Code != 0 {
  7478. dAtA[i] = 0x8
  7479. i++
  7480. i = encodeVarintApi(dAtA, i, uint64(m.Code))
  7481. }
  7482. if len(m.Msg) > 0 {
  7483. dAtA[i] = 0x12
  7484. i++
  7485. i = encodeVarintApi(dAtA, i, uint64(len(m.Msg)))
  7486. i += copy(dAtA[i:], m.Msg)
  7487. }
  7488. if m.Start != nil {
  7489. dAtA[i] = 0x1a
  7490. i++
  7491. i = encodeVarintApi(dAtA, i, uint64(m.Start.Size()))
  7492. n24, err := m.Start.MarshalTo(dAtA[i:])
  7493. if err != nil {
  7494. return 0, err
  7495. }
  7496. i += n24
  7497. }
  7498. if m.XXX_unrecognized != nil {
  7499. i += copy(dAtA[i:], m.XXX_unrecognized)
  7500. }
  7501. return i, nil
  7502. }
  7503. func (m *StartData) Marshal() (dAtA []byte, err error) {
  7504. size := m.Size()
  7505. dAtA = make([]byte, size)
  7506. n, err := m.MarshalTo(dAtA)
  7507. if err != nil {
  7508. return nil, err
  7509. }
  7510. return dAtA[:n], nil
  7511. }
  7512. func (m *StartData) MarshalTo(dAtA []byte) (int, error) {
  7513. var i int
  7514. _ = i
  7515. var l int
  7516. _ = l
  7517. if m.Time != 0 {
  7518. dAtA[i] = 0x8
  7519. i++
  7520. i = encodeVarintApi(dAtA, i, uint64(m.Time))
  7521. }
  7522. if m.Id != 0 {
  7523. dAtA[i] = 0x10
  7524. i++
  7525. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  7526. }
  7527. if m.XXX_unrecognized != nil {
  7528. i += copy(dAtA[i:], m.XXX_unrecognized)
  7529. }
  7530. return i, nil
  7531. }
  7532. func (m *CanStartStormResp) Marshal() (dAtA []byte, err error) {
  7533. size := m.Size()
  7534. dAtA = make([]byte, size)
  7535. n, err := m.MarshalTo(dAtA)
  7536. if err != nil {
  7537. return nil, err
  7538. }
  7539. return dAtA[:n], nil
  7540. }
  7541. func (m *CanStartStormResp) MarshalTo(dAtA []byte) (int, error) {
  7542. var i int
  7543. _ = i
  7544. var l int
  7545. _ = l
  7546. if m.Code != 0 {
  7547. dAtA[i] = 0x8
  7548. i++
  7549. i = encodeVarintApi(dAtA, i, uint64(m.Code))
  7550. }
  7551. if len(m.Msg) > 0 {
  7552. dAtA[i] = 0x12
  7553. i++
  7554. i = encodeVarintApi(dAtA, i, uint64(len(m.Msg)))
  7555. i += copy(dAtA[i:], m.Msg)
  7556. }
  7557. if m.RetStatus {
  7558. dAtA[i] = 0x18
  7559. i++
  7560. if m.RetStatus {
  7561. dAtA[i] = 1
  7562. } else {
  7563. dAtA[i] = 0
  7564. }
  7565. i++
  7566. }
  7567. if m.XXX_unrecognized != nil {
  7568. i += copy(dAtA[i:], m.XXX_unrecognized)
  7569. }
  7570. return i, nil
  7571. }
  7572. func (m *JoinStormReq) Marshal() (dAtA []byte, err error) {
  7573. size := m.Size()
  7574. dAtA = make([]byte, size)
  7575. n, err := m.MarshalTo(dAtA)
  7576. if err != nil {
  7577. return nil, err
  7578. }
  7579. return dAtA[:n], nil
  7580. }
  7581. func (m *JoinStormReq) MarshalTo(dAtA []byte) (int, error) {
  7582. var i int
  7583. _ = i
  7584. var l int
  7585. _ = l
  7586. if m.Id != 0 {
  7587. dAtA[i] = 0x8
  7588. i++
  7589. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  7590. }
  7591. if m.Roomid != 0 {
  7592. dAtA[i] = 0x10
  7593. i++
  7594. i = encodeVarintApi(dAtA, i, uint64(m.Roomid))
  7595. }
  7596. if len(m.Color) > 0 {
  7597. dAtA[i] = 0x1a
  7598. i++
  7599. i = encodeVarintApi(dAtA, i, uint64(len(m.Color)))
  7600. i += copy(dAtA[i:], m.Color)
  7601. }
  7602. if m.Mid != 0 {
  7603. dAtA[i] = 0x20
  7604. i++
  7605. i = encodeVarintApi(dAtA, i, uint64(m.Mid))
  7606. }
  7607. if len(m.Platform) > 0 {
  7608. dAtA[i] = 0x2a
  7609. i++
  7610. i = encodeVarintApi(dAtA, i, uint64(len(m.Platform)))
  7611. i += copy(dAtA[i:], m.Platform)
  7612. }
  7613. if len(m.CaptchaToken) > 0 {
  7614. dAtA[i] = 0x32
  7615. i++
  7616. i = encodeVarintApi(dAtA, i, uint64(len(m.CaptchaToken)))
  7617. i += copy(dAtA[i:], m.CaptchaToken)
  7618. }
  7619. if len(m.CaptchaPhrase) > 0 {
  7620. dAtA[i] = 0x3a
  7621. i++
  7622. i = encodeVarintApi(dAtA, i, uint64(len(m.CaptchaPhrase)))
  7623. i += copy(dAtA[i:], m.CaptchaPhrase)
  7624. }
  7625. if m.XXX_unrecognized != nil {
  7626. i += copy(dAtA[i:], m.XXX_unrecognized)
  7627. }
  7628. return i, nil
  7629. }
  7630. func (m *JoinStormResp) Marshal() (dAtA []byte, err error) {
  7631. size := m.Size()
  7632. dAtA = make([]byte, size)
  7633. n, err := m.MarshalTo(dAtA)
  7634. if err != nil {
  7635. return nil, err
  7636. }
  7637. return dAtA[:n], nil
  7638. }
  7639. func (m *JoinStormResp) MarshalTo(dAtA []byte) (int, error) {
  7640. var i int
  7641. _ = i
  7642. var l int
  7643. _ = l
  7644. if m.Code != 0 {
  7645. dAtA[i] = 0x8
  7646. i++
  7647. i = encodeVarintApi(dAtA, i, uint64(m.Code))
  7648. }
  7649. if len(m.Msg) > 0 {
  7650. dAtA[i] = 0x12
  7651. i++
  7652. i = encodeVarintApi(dAtA, i, uint64(len(m.Msg)))
  7653. i += copy(dAtA[i:], m.Msg)
  7654. }
  7655. if m.Join != nil {
  7656. dAtA[i] = 0x1a
  7657. i++
  7658. i = encodeVarintApi(dAtA, i, uint64(m.Join.Size()))
  7659. n25, err := m.Join.MarshalTo(dAtA[i:])
  7660. if err != nil {
  7661. return 0, err
  7662. }
  7663. i += n25
  7664. }
  7665. if m.XXX_unrecognized != nil {
  7666. i += copy(dAtA[i:], m.XXX_unrecognized)
  7667. }
  7668. return i, nil
  7669. }
  7670. func (m *JoinData) Marshal() (dAtA []byte, err error) {
  7671. size := m.Size()
  7672. dAtA = make([]byte, size)
  7673. n, err := m.MarshalTo(dAtA)
  7674. if err != nil {
  7675. return nil, err
  7676. }
  7677. return dAtA[:n], nil
  7678. }
  7679. func (m *JoinData) MarshalTo(dAtA []byte) (int, error) {
  7680. var i int
  7681. _ = i
  7682. var l int
  7683. _ = l
  7684. if m.GiftId != 0 {
  7685. dAtA[i] = 0x8
  7686. i++
  7687. i = encodeVarintApi(dAtA, i, uint64(m.GiftId))
  7688. }
  7689. if len(m.Title) > 0 {
  7690. dAtA[i] = 0x12
  7691. i++
  7692. i = encodeVarintApi(dAtA, i, uint64(len(m.Title)))
  7693. i += copy(dAtA[i:], m.Title)
  7694. }
  7695. if len(m.Content) > 0 {
  7696. dAtA[i] = 0x1a
  7697. i++
  7698. i = encodeVarintApi(dAtA, i, uint64(len(m.Content)))
  7699. i += copy(dAtA[i:], m.Content)
  7700. }
  7701. if len(m.MobileContent) > 0 {
  7702. dAtA[i] = 0x22
  7703. i++
  7704. i = encodeVarintApi(dAtA, i, uint64(len(m.MobileContent)))
  7705. i += copy(dAtA[i:], m.MobileContent)
  7706. }
  7707. if len(m.GiftImg) > 0 {
  7708. dAtA[i] = 0x2a
  7709. i++
  7710. i = encodeVarintApi(dAtA, i, uint64(len(m.GiftImg)))
  7711. i += copy(dAtA[i:], m.GiftImg)
  7712. }
  7713. if m.GiftNum != 0 {
  7714. dAtA[i] = 0x30
  7715. i++
  7716. i = encodeVarintApi(dAtA, i, uint64(m.GiftNum))
  7717. }
  7718. if len(m.GiftName) > 0 {
  7719. dAtA[i] = 0x3a
  7720. i++
  7721. i = encodeVarintApi(dAtA, i, uint64(len(m.GiftName)))
  7722. i += copy(dAtA[i:], m.GiftName)
  7723. }
  7724. if m.XXX_unrecognized != nil {
  7725. i += copy(dAtA[i:], m.XXX_unrecognized)
  7726. }
  7727. return i, nil
  7728. }
  7729. func (m *CheckStormReq) Marshal() (dAtA []byte, err error) {
  7730. size := m.Size()
  7731. dAtA = make([]byte, size)
  7732. n, err := m.MarshalTo(dAtA)
  7733. if err != nil {
  7734. return nil, err
  7735. }
  7736. return dAtA[:n], nil
  7737. }
  7738. func (m *CheckStormReq) MarshalTo(dAtA []byte) (int, error) {
  7739. var i int
  7740. _ = i
  7741. var l int
  7742. _ = l
  7743. if m.Roomid != 0 {
  7744. dAtA[i] = 0x8
  7745. i++
  7746. i = encodeVarintApi(dAtA, i, uint64(m.Roomid))
  7747. }
  7748. if m.Uid != 0 {
  7749. dAtA[i] = 0x10
  7750. i++
  7751. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  7752. }
  7753. if m.XXX_unrecognized != nil {
  7754. i += copy(dAtA[i:], m.XXX_unrecognized)
  7755. }
  7756. return i, nil
  7757. }
  7758. func (m *CheckStormResp) Marshal() (dAtA []byte, err error) {
  7759. size := m.Size()
  7760. dAtA = make([]byte, size)
  7761. n, err := m.MarshalTo(dAtA)
  7762. if err != nil {
  7763. return nil, err
  7764. }
  7765. return dAtA[:n], nil
  7766. }
  7767. func (m *CheckStormResp) MarshalTo(dAtA []byte) (int, error) {
  7768. var i int
  7769. _ = i
  7770. var l int
  7771. _ = l
  7772. if m.Code != 0 {
  7773. dAtA[i] = 0x8
  7774. i++
  7775. i = encodeVarintApi(dAtA, i, uint64(m.Code))
  7776. }
  7777. if len(m.Msg) > 0 {
  7778. dAtA[i] = 0x12
  7779. i++
  7780. i = encodeVarintApi(dAtA, i, uint64(len(m.Msg)))
  7781. i += copy(dAtA[i:], m.Msg)
  7782. }
  7783. if m.Check != nil {
  7784. dAtA[i] = 0x1a
  7785. i++
  7786. i = encodeVarintApi(dAtA, i, uint64(m.Check.Size()))
  7787. n26, err := m.Check.MarshalTo(dAtA[i:])
  7788. if err != nil {
  7789. return 0, err
  7790. }
  7791. i += n26
  7792. }
  7793. if m.XXX_unrecognized != nil {
  7794. i += copy(dAtA[i:], m.XXX_unrecognized)
  7795. }
  7796. return i, nil
  7797. }
  7798. func (m *CheckData) Marshal() (dAtA []byte, err error) {
  7799. size := m.Size()
  7800. dAtA = make([]byte, size)
  7801. n, err := m.MarshalTo(dAtA)
  7802. if err != nil {
  7803. return nil, err
  7804. }
  7805. return dAtA[:n], nil
  7806. }
  7807. func (m *CheckData) MarshalTo(dAtA []byte) (int, error) {
  7808. var i int
  7809. _ = i
  7810. var l int
  7811. _ = l
  7812. if m.Id != 0 {
  7813. dAtA[i] = 0x8
  7814. i++
  7815. i = encodeVarintApi(dAtA, i, uint64(m.Id))
  7816. }
  7817. if m.Roomid != 0 {
  7818. dAtA[i] = 0x10
  7819. i++
  7820. i = encodeVarintApi(dAtA, i, uint64(m.Roomid))
  7821. }
  7822. if m.Num != 0 {
  7823. dAtA[i] = 0x18
  7824. i++
  7825. i = encodeVarintApi(dAtA, i, uint64(m.Num))
  7826. }
  7827. if len(m.SendNum) > 0 {
  7828. dAtA[i] = 0x22
  7829. i++
  7830. i = encodeVarintApi(dAtA, i, uint64(len(m.SendNum)))
  7831. i += copy(dAtA[i:], m.SendNum)
  7832. }
  7833. if m.Time != 0 {
  7834. dAtA[i] = 0x28
  7835. i++
  7836. i = encodeVarintApi(dAtA, i, uint64(m.Time))
  7837. }
  7838. if len(m.Content) > 0 {
  7839. dAtA[i] = 0x32
  7840. i++
  7841. i = encodeVarintApi(dAtA, i, uint64(len(m.Content)))
  7842. i += copy(dAtA[i:], m.Content)
  7843. }
  7844. if m.HasJoin != 0 {
  7845. dAtA[i] = 0x38
  7846. i++
  7847. i = encodeVarintApi(dAtA, i, uint64(m.HasJoin))
  7848. }
  7849. if len(m.StormGif) > 0 {
  7850. dAtA[i] = 0x42
  7851. i++
  7852. i = encodeVarintApi(dAtA, i, uint64(len(m.StormGif)))
  7853. i += copy(dAtA[i:], m.StormGif)
  7854. }
  7855. if m.XXX_unrecognized != nil {
  7856. i += copy(dAtA[i:], m.XXX_unrecognized)
  7857. }
  7858. return i, nil
  7859. }
  7860. func (m *CapsuleGetCouponListReq) Marshal() (dAtA []byte, err error) {
  7861. size := m.Size()
  7862. dAtA = make([]byte, size)
  7863. n, err := m.MarshalTo(dAtA)
  7864. if err != nil {
  7865. return nil, err
  7866. }
  7867. return dAtA[:n], nil
  7868. }
  7869. func (m *CapsuleGetCouponListReq) MarshalTo(dAtA []byte) (int, error) {
  7870. var i int
  7871. _ = i
  7872. var l int
  7873. _ = l
  7874. if m.Uid != 0 {
  7875. dAtA[i] = 0x8
  7876. i++
  7877. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  7878. }
  7879. if m.XXX_unrecognized != nil {
  7880. i += copy(dAtA[i:], m.XXX_unrecognized)
  7881. }
  7882. return i, nil
  7883. }
  7884. func (m *CapsuleGetCouponListResp) Marshal() (dAtA []byte, err error) {
  7885. size := m.Size()
  7886. dAtA = make([]byte, size)
  7887. n, err := m.MarshalTo(dAtA)
  7888. if err != nil {
  7889. return nil, err
  7890. }
  7891. return dAtA[:n], nil
  7892. }
  7893. func (m *CapsuleGetCouponListResp) MarshalTo(dAtA []byte) (int, error) {
  7894. var i int
  7895. _ = i
  7896. var l int
  7897. _ = l
  7898. if len(m.List) > 0 {
  7899. for _, msg := range m.List {
  7900. dAtA[i] = 0xa
  7901. i++
  7902. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  7903. n, err := msg.MarshalTo(dAtA[i:])
  7904. if err != nil {
  7905. return 0, err
  7906. }
  7907. i += n
  7908. }
  7909. }
  7910. if m.XXX_unrecognized != nil {
  7911. i += copy(dAtA[i:], m.XXX_unrecognized)
  7912. }
  7913. return i, nil
  7914. }
  7915. func (m *CapsuleGetCouponListResp_List) Marshal() (dAtA []byte, err error) {
  7916. size := m.Size()
  7917. dAtA = make([]byte, size)
  7918. n, err := m.MarshalTo(dAtA)
  7919. if err != nil {
  7920. return nil, err
  7921. }
  7922. return dAtA[:n], nil
  7923. }
  7924. func (m *CapsuleGetCouponListResp_List) MarshalTo(dAtA []byte) (int, error) {
  7925. var i int
  7926. _ = i
  7927. var l int
  7928. _ = l
  7929. if m.Uid != 0 {
  7930. dAtA[i] = 0x8
  7931. i++
  7932. i = encodeVarintApi(dAtA, i, uint64(m.Uid))
  7933. }
  7934. if len(m.AwardTime) > 0 {
  7935. dAtA[i] = 0x12
  7936. i++
  7937. i = encodeVarintApi(dAtA, i, uint64(len(m.AwardTime)))
  7938. i += copy(dAtA[i:], m.AwardTime)
  7939. }
  7940. if len(m.AwardName) > 0 {
  7941. dAtA[i] = 0x1a
  7942. i++
  7943. i = encodeVarintApi(dAtA, i, uint64(len(m.AwardName)))
  7944. i += copy(dAtA[i:], m.AwardName)
  7945. }
  7946. if len(m.AwardCode) > 0 {
  7947. dAtA[i] = 0x22
  7948. i++
  7949. i = encodeVarintApi(dAtA, i, uint64(len(m.AwardCode)))
  7950. i += copy(dAtA[i:], m.AwardCode)
  7951. }
  7952. if m.Status != 0 {
  7953. dAtA[i] = 0x28
  7954. i++
  7955. i = encodeVarintApi(dAtA, i, uint64(m.Status))
  7956. }
  7957. if len(m.RetryTime) > 0 {
  7958. dAtA[i] = 0x32
  7959. i++
  7960. i = encodeVarintApi(dAtA, i, uint64(len(m.RetryTime)))
  7961. i += copy(dAtA[i:], m.RetryTime)
  7962. }
  7963. if m.XXX_unrecognized != nil {
  7964. i += copy(dAtA[i:], m.XXX_unrecognized)
  7965. }
  7966. return i, nil
  7967. }
  7968. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  7969. for v >= 1<<7 {
  7970. dAtA[offset] = uint8(v&0x7f | 0x80)
  7971. v >>= 7
  7972. offset++
  7973. }
  7974. dAtA[offset] = uint8(v)
  7975. return offset + 1
  7976. }
  7977. func (m *CapsuleGetDetailReq) Size() (n int) {
  7978. if m == nil {
  7979. return 0
  7980. }
  7981. var l int
  7982. _ = l
  7983. if m.Uid != 0 {
  7984. n += 1 + sovApi(uint64(m.Uid))
  7985. }
  7986. l = len(m.From)
  7987. if l > 0 {
  7988. n += 1 + l + sovApi(uint64(l))
  7989. }
  7990. if m.XXX_unrecognized != nil {
  7991. n += len(m.XXX_unrecognized)
  7992. }
  7993. return n
  7994. }
  7995. func (m *Usage) Size() (n int) {
  7996. if m == nil {
  7997. return 0
  7998. }
  7999. var l int
  8000. _ = l
  8001. l = len(m.Text)
  8002. if l > 0 {
  8003. n += 1 + l + sovApi(uint64(l))
  8004. }
  8005. l = len(m.Url)
  8006. if l > 0 {
  8007. n += 1 + l + sovApi(uint64(l))
  8008. }
  8009. if m.XXX_unrecognized != nil {
  8010. n += len(m.XXX_unrecognized)
  8011. }
  8012. return n
  8013. }
  8014. func (m *Progress) Size() (n int) {
  8015. if m == nil {
  8016. return 0
  8017. }
  8018. var l int
  8019. _ = l
  8020. if m.Now != 0 {
  8021. n += 1 + sovApi(uint64(m.Now))
  8022. }
  8023. if m.Max != 0 {
  8024. n += 1 + sovApi(uint64(m.Max))
  8025. }
  8026. if m.XXX_unrecognized != nil {
  8027. n += len(m.XXX_unrecognized)
  8028. }
  8029. return n
  8030. }
  8031. func (m *CapsuleGetDetailResp) Size() (n int) {
  8032. if m == nil {
  8033. return 0
  8034. }
  8035. var l int
  8036. _ = l
  8037. if m.Normal != nil {
  8038. l = m.Normal.Size()
  8039. n += 1 + l + sovApi(uint64(l))
  8040. }
  8041. if m.Colorful != nil {
  8042. l = m.Colorful.Size()
  8043. n += 1 + l + sovApi(uint64(l))
  8044. }
  8045. if m.XXX_unrecognized != nil {
  8046. n += len(m.XXX_unrecognized)
  8047. }
  8048. return n
  8049. }
  8050. func (m *CapsuleGetDetailResp_Gift) Size() (n int) {
  8051. if m == nil {
  8052. return 0
  8053. }
  8054. var l int
  8055. _ = l
  8056. l = len(m.Name)
  8057. if l > 0 {
  8058. n += 1 + l + sovApi(uint64(l))
  8059. }
  8060. l = len(m.Image)
  8061. if l > 0 {
  8062. n += 1 + l + sovApi(uint64(l))
  8063. }
  8064. if m.Usage != nil {
  8065. l = m.Usage.Size()
  8066. n += 1 + l + sovApi(uint64(l))
  8067. }
  8068. l = len(m.WebImage)
  8069. if l > 0 {
  8070. n += 1 + l + sovApi(uint64(l))
  8071. }
  8072. l = len(m.MobileImage)
  8073. if l > 0 {
  8074. n += 1 + l + sovApi(uint64(l))
  8075. }
  8076. if m.XXX_unrecognized != nil {
  8077. n += len(m.XXX_unrecognized)
  8078. }
  8079. return n
  8080. }
  8081. func (m *CapsuleGetDetailResp_List) Size() (n int) {
  8082. if m == nil {
  8083. return 0
  8084. }
  8085. var l int
  8086. _ = l
  8087. if m.Num != 0 {
  8088. n += 1 + sovApi(uint64(m.Num))
  8089. }
  8090. l = len(m.Gift)
  8091. if l > 0 {
  8092. n += 1 + l + sovApi(uint64(l))
  8093. }
  8094. l = len(m.Date)
  8095. if l > 0 {
  8096. n += 1 + l + sovApi(uint64(l))
  8097. }
  8098. l = len(m.Name)
  8099. if l > 0 {
  8100. n += 1 + l + sovApi(uint64(l))
  8101. }
  8102. if m.XXX_unrecognized != nil {
  8103. n += len(m.XXX_unrecognized)
  8104. }
  8105. return n
  8106. }
  8107. func (m *CapsuleGetDetailResp_CapsuleInfo) Size() (n int) {
  8108. if m == nil {
  8109. return 0
  8110. }
  8111. var l int
  8112. _ = l
  8113. if m.Status {
  8114. n += 2
  8115. }
  8116. if m.Coin != 0 {
  8117. n += 1 + sovApi(uint64(m.Coin))
  8118. }
  8119. if m.Change != 0 {
  8120. n += 1 + sovApi(uint64(m.Change))
  8121. }
  8122. if m.Progress != nil {
  8123. l = m.Progress.Size()
  8124. n += 1 + l + sovApi(uint64(l))
  8125. }
  8126. l = len(m.Rule)
  8127. if l > 0 {
  8128. n += 1 + l + sovApi(uint64(l))
  8129. }
  8130. if len(m.Gift) > 0 {
  8131. for _, e := range m.Gift {
  8132. l = e.Size()
  8133. n += 1 + l + sovApi(uint64(l))
  8134. }
  8135. }
  8136. if len(m.List) > 0 {
  8137. for _, e := range m.List {
  8138. l = e.Size()
  8139. n += 1 + l + sovApi(uint64(l))
  8140. }
  8141. }
  8142. if m.XXX_unrecognized != nil {
  8143. n += len(m.XXX_unrecognized)
  8144. }
  8145. return n
  8146. }
  8147. func (m *CapsuleOpenCapsuleReq) Size() (n int) {
  8148. if m == nil {
  8149. return 0
  8150. }
  8151. var l int
  8152. _ = l
  8153. if m.Uid != 0 {
  8154. n += 1 + sovApi(uint64(m.Uid))
  8155. }
  8156. l = len(m.Type)
  8157. if l > 0 {
  8158. n += 1 + l + sovApi(uint64(l))
  8159. }
  8160. if m.Count != 0 {
  8161. n += 1 + sovApi(uint64(m.Count))
  8162. }
  8163. l = len(m.Platform)
  8164. if l > 0 {
  8165. n += 1 + l + sovApi(uint64(l))
  8166. }
  8167. if m.XXX_unrecognized != nil {
  8168. n += len(m.XXX_unrecognized)
  8169. }
  8170. return n
  8171. }
  8172. func (m *CapsuleOpenCapsuleResp) Size() (n int) {
  8173. if m == nil {
  8174. return 0
  8175. }
  8176. var l int
  8177. _ = l
  8178. if m.Status {
  8179. n += 2
  8180. }
  8181. if len(m.Text) > 0 {
  8182. for _, s := range m.Text {
  8183. l = len(s)
  8184. n += 1 + l + sovApi(uint64(l))
  8185. }
  8186. }
  8187. if m.IsEntity {
  8188. n += 2
  8189. }
  8190. if m.Info != nil {
  8191. l = m.Info.Size()
  8192. n += 1 + l + sovApi(uint64(l))
  8193. }
  8194. l = len(m.ShowTitle)
  8195. if l > 0 {
  8196. n += 1 + l + sovApi(uint64(l))
  8197. }
  8198. if len(m.Awards) > 0 {
  8199. for _, e := range m.Awards {
  8200. l = e.Size()
  8201. n += 1 + l + sovApi(uint64(l))
  8202. }
  8203. }
  8204. if m.XXX_unrecognized != nil {
  8205. n += len(m.XXX_unrecognized)
  8206. }
  8207. return n
  8208. }
  8209. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) Size() (n int) {
  8210. if m == nil {
  8211. return 0
  8212. }
  8213. var l int
  8214. _ = l
  8215. if m.Coin != 0 {
  8216. n += 1 + sovApi(uint64(m.Coin))
  8217. }
  8218. if m.Change != 0 {
  8219. n += 1 + sovApi(uint64(m.Change))
  8220. }
  8221. if m.Progress != nil {
  8222. l = m.Progress.Size()
  8223. n += 1 + l + sovApi(uint64(l))
  8224. }
  8225. if m.XXX_unrecognized != nil {
  8226. n += len(m.XXX_unrecognized)
  8227. }
  8228. return n
  8229. }
  8230. func (m *CapsuleOpenCapsuleResp_Info) Size() (n int) {
  8231. if m == nil {
  8232. return 0
  8233. }
  8234. var l int
  8235. _ = l
  8236. if m.Normal != nil {
  8237. l = m.Normal.Size()
  8238. n += 1 + l + sovApi(uint64(l))
  8239. }
  8240. if m.Colorful != nil {
  8241. l = m.Colorful.Size()
  8242. n += 1 + l + sovApi(uint64(l))
  8243. }
  8244. if m.XXX_unrecognized != nil {
  8245. n += len(m.XXX_unrecognized)
  8246. }
  8247. return n
  8248. }
  8249. func (m *CapsuleOpenCapsuleResp_Award) Size() (n int) {
  8250. if m == nil {
  8251. return 0
  8252. }
  8253. var l int
  8254. _ = l
  8255. l = len(m.Name)
  8256. if l > 0 {
  8257. n += 1 + l + sovApi(uint64(l))
  8258. }
  8259. if m.Num != 0 {
  8260. n += 1 + sovApi(uint64(m.Num))
  8261. }
  8262. l = len(m.Text)
  8263. if l > 0 {
  8264. n += 1 + l + sovApi(uint64(l))
  8265. }
  8266. l = len(m.Img)
  8267. if l > 0 {
  8268. n += 1 + l + sovApi(uint64(l))
  8269. }
  8270. if m.Usage != nil {
  8271. l = m.Usage.Size()
  8272. n += 1 + l + sovApi(uint64(l))
  8273. }
  8274. l = len(m.WebImage)
  8275. if l > 0 {
  8276. n += 1 + l + sovApi(uint64(l))
  8277. }
  8278. l = len(m.MobileImage)
  8279. if l > 0 {
  8280. n += 1 + l + sovApi(uint64(l))
  8281. }
  8282. if m.XXX_unrecognized != nil {
  8283. n += len(m.XXX_unrecognized)
  8284. }
  8285. return n
  8286. }
  8287. func (m *CapsuleGetCapsuleInfoReq) Size() (n int) {
  8288. if m == nil {
  8289. return 0
  8290. }
  8291. var l int
  8292. _ = l
  8293. if m.Uid != 0 {
  8294. n += 1 + sovApi(uint64(m.Uid))
  8295. }
  8296. l = len(m.Type)
  8297. if l > 0 {
  8298. n += 1 + l + sovApi(uint64(l))
  8299. }
  8300. l = len(m.From)
  8301. if l > 0 {
  8302. n += 1 + l + sovApi(uint64(l))
  8303. }
  8304. if m.XXX_unrecognized != nil {
  8305. n += len(m.XXX_unrecognized)
  8306. }
  8307. return n
  8308. }
  8309. func (m *CapsuleGetCapsuleInfoResp) Size() (n int) {
  8310. if m == nil {
  8311. return 0
  8312. }
  8313. var l int
  8314. _ = l
  8315. if m.Coin != 0 {
  8316. n += 1 + sovApi(uint64(m.Coin))
  8317. }
  8318. l = len(m.Rule)
  8319. if l > 0 {
  8320. n += 1 + l + sovApi(uint64(l))
  8321. }
  8322. if len(m.GiftList) > 0 {
  8323. for _, e := range m.GiftList {
  8324. l = e.Size()
  8325. n += 1 + l + sovApi(uint64(l))
  8326. }
  8327. }
  8328. if len(m.GiftFilter) > 0 {
  8329. for _, e := range m.GiftFilter {
  8330. l = e.Size()
  8331. n += 1 + l + sovApi(uint64(l))
  8332. }
  8333. }
  8334. if m.XXX_unrecognized != nil {
  8335. n += len(m.XXX_unrecognized)
  8336. }
  8337. return n
  8338. }
  8339. func (m *CapsuleGetCapsuleInfoResp_GiftList) Size() (n int) {
  8340. if m == nil {
  8341. return 0
  8342. }
  8343. var l int
  8344. _ = l
  8345. if m.Id != 0 {
  8346. n += 1 + sovApi(uint64(m.Id))
  8347. }
  8348. l = len(m.Name)
  8349. if l > 0 {
  8350. n += 1 + l + sovApi(uint64(l))
  8351. }
  8352. if m.Num != 0 {
  8353. n += 1 + sovApi(uint64(m.Num))
  8354. }
  8355. if m.Weight != 0 {
  8356. n += 1 + sovApi(uint64(m.Weight))
  8357. }
  8358. l = len(m.WebUrl)
  8359. if l > 0 {
  8360. n += 1 + l + sovApi(uint64(l))
  8361. }
  8362. l = len(m.MobileUrl)
  8363. if l > 0 {
  8364. n += 1 + l + sovApi(uint64(l))
  8365. }
  8366. if m.Usage != nil {
  8367. l = m.Usage.Size()
  8368. n += 1 + l + sovApi(uint64(l))
  8369. }
  8370. if m.Type != 0 {
  8371. n += 1 + sovApi(uint64(m.Type))
  8372. }
  8373. l = len(m.Expire)
  8374. if l > 0 {
  8375. n += 1 + l + sovApi(uint64(l))
  8376. }
  8377. if m.XXX_unrecognized != nil {
  8378. n += len(m.XXX_unrecognized)
  8379. }
  8380. return n
  8381. }
  8382. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) Size() (n int) {
  8383. if m == nil {
  8384. return 0
  8385. }
  8386. var l int
  8387. _ = l
  8388. if m.Id != 0 {
  8389. n += 1 + sovApi(uint64(m.Id))
  8390. }
  8391. l = len(m.Name)
  8392. if l > 0 {
  8393. n += 1 + l + sovApi(uint64(l))
  8394. }
  8395. l = len(m.WebUrl)
  8396. if l > 0 {
  8397. n += 1 + l + sovApi(uint64(l))
  8398. }
  8399. l = len(m.MobileUrl)
  8400. if l > 0 {
  8401. n += 1 + l + sovApi(uint64(l))
  8402. }
  8403. if m.Usage != nil {
  8404. l = m.Usage.Size()
  8405. n += 1 + l + sovApi(uint64(l))
  8406. }
  8407. if m.XXX_unrecognized != nil {
  8408. n += len(m.XXX_unrecognized)
  8409. }
  8410. return n
  8411. }
  8412. func (m *CapsuleOpenCapsuleByTypeReq) Size() (n int) {
  8413. if m == nil {
  8414. return 0
  8415. }
  8416. var l int
  8417. _ = l
  8418. if m.Uid != 0 {
  8419. n += 1 + sovApi(uint64(m.Uid))
  8420. }
  8421. l = len(m.Type)
  8422. if l > 0 {
  8423. n += 1 + l + sovApi(uint64(l))
  8424. }
  8425. if m.Count != 0 {
  8426. n += 1 + sovApi(uint64(m.Count))
  8427. }
  8428. l = len(m.Platform)
  8429. if l > 0 {
  8430. n += 1 + l + sovApi(uint64(l))
  8431. }
  8432. if m.XXX_unrecognized != nil {
  8433. n += len(m.XXX_unrecognized)
  8434. }
  8435. return n
  8436. }
  8437. func (m *CapsuleOpenCapsuleByTypeResp) Size() (n int) {
  8438. if m == nil {
  8439. return 0
  8440. }
  8441. var l int
  8442. _ = l
  8443. if m.Status {
  8444. n += 2
  8445. }
  8446. if m.IsEntity {
  8447. n += 2
  8448. }
  8449. if m.Info != nil {
  8450. l = m.Info.Size()
  8451. n += 1 + l + sovApi(uint64(l))
  8452. }
  8453. if len(m.Awards) > 0 {
  8454. for _, e := range m.Awards {
  8455. l = e.Size()
  8456. n += 1 + l + sovApi(uint64(l))
  8457. }
  8458. }
  8459. if len(m.Text) > 0 {
  8460. for _, s := range m.Text {
  8461. l = len(s)
  8462. n += 1 + l + sovApi(uint64(l))
  8463. }
  8464. }
  8465. if m.XXX_unrecognized != nil {
  8466. n += len(m.XXX_unrecognized)
  8467. }
  8468. return n
  8469. }
  8470. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) Size() (n int) {
  8471. if m == nil {
  8472. return 0
  8473. }
  8474. var l int
  8475. _ = l
  8476. if m.Coin != 0 {
  8477. n += 1 + sovApi(uint64(m.Coin))
  8478. }
  8479. if m.XXX_unrecognized != nil {
  8480. n += len(m.XXX_unrecognized)
  8481. }
  8482. return n
  8483. }
  8484. func (m *CapsuleOpenCapsuleByTypeResp_Award) Size() (n int) {
  8485. if m == nil {
  8486. return 0
  8487. }
  8488. var l int
  8489. _ = l
  8490. if m.Id != 0 {
  8491. n += 1 + sovApi(uint64(m.Id))
  8492. }
  8493. l = len(m.Name)
  8494. if l > 0 {
  8495. n += 1 + l + sovApi(uint64(l))
  8496. }
  8497. if m.Num != 0 {
  8498. n += 1 + sovApi(uint64(m.Num))
  8499. }
  8500. l = len(m.Text)
  8501. if l > 0 {
  8502. n += 1 + l + sovApi(uint64(l))
  8503. }
  8504. l = len(m.WebUrl)
  8505. if l > 0 {
  8506. n += 1 + l + sovApi(uint64(l))
  8507. }
  8508. l = len(m.MobileUrl)
  8509. if l > 0 {
  8510. n += 1 + l + sovApi(uint64(l))
  8511. }
  8512. if m.Usage != nil {
  8513. l = m.Usage.Size()
  8514. n += 1 + l + sovApi(uint64(l))
  8515. }
  8516. if m.Weight != 0 {
  8517. n += 1 + sovApi(uint64(m.Weight))
  8518. }
  8519. if m.Type != 0 {
  8520. n += 1 + sovApi(uint64(m.Type))
  8521. }
  8522. l = len(m.Expire)
  8523. if l > 0 {
  8524. n += 1 + l + sovApi(uint64(l))
  8525. }
  8526. if m.XXX_unrecognized != nil {
  8527. n += len(m.XXX_unrecognized)
  8528. }
  8529. return n
  8530. }
  8531. func (m *GetCoinListReq) Size() (n int) {
  8532. if m == nil {
  8533. return 0
  8534. }
  8535. var l int
  8536. _ = l
  8537. if m.Page != 0 {
  8538. n += 1 + sovApi(uint64(m.Page))
  8539. }
  8540. if m.PageSize != 0 {
  8541. n += 1 + sovApi(uint64(m.PageSize))
  8542. }
  8543. if m.XXX_unrecognized != nil {
  8544. n += len(m.XXX_unrecognized)
  8545. }
  8546. return n
  8547. }
  8548. func (m *GetCoinListResp) Size() (n int) {
  8549. if m == nil {
  8550. return 0
  8551. }
  8552. var l int
  8553. _ = l
  8554. if m.Total != 0 {
  8555. n += 1 + sovApi(uint64(m.Total))
  8556. }
  8557. if m.TotalPage != 0 {
  8558. n += 1 + sovApi(uint64(m.TotalPage))
  8559. }
  8560. if len(m.List) > 0 {
  8561. for _, e := range m.List {
  8562. l = e.Size()
  8563. n += 1 + l + sovApi(uint64(l))
  8564. }
  8565. }
  8566. if m.XXX_unrecognized != nil {
  8567. n += len(m.XXX_unrecognized)
  8568. }
  8569. return n
  8570. }
  8571. func (m *GetCoinListResp_List) Size() (n int) {
  8572. if m == nil {
  8573. return 0
  8574. }
  8575. var l int
  8576. _ = l
  8577. if m.Id != 0 {
  8578. n += 1 + sovApi(uint64(m.Id))
  8579. }
  8580. l = len(m.Title)
  8581. if l > 0 {
  8582. n += 1 + l + sovApi(uint64(l))
  8583. }
  8584. if m.ChangeNum != 0 {
  8585. n += 1 + sovApi(uint64(m.ChangeNum))
  8586. }
  8587. if m.StartTime != 0 {
  8588. n += 1 + sovApi(uint64(m.StartTime))
  8589. }
  8590. if m.EndTime != 0 {
  8591. n += 1 + sovApi(uint64(m.EndTime))
  8592. }
  8593. if m.Status != 0 {
  8594. n += 1 + sovApi(uint64(m.Status))
  8595. }
  8596. if m.GiftType != 0 {
  8597. n += 1 + sovApi(uint64(m.GiftType))
  8598. }
  8599. l = len(m.GiftConfig)
  8600. if l > 0 {
  8601. n += 1 + l + sovApi(uint64(l))
  8602. }
  8603. if len(m.AreaIds) > 0 {
  8604. for _, e := range m.AreaIds {
  8605. l = e.Size()
  8606. n += 1 + l + sovApi(uint64(l))
  8607. }
  8608. }
  8609. if m.XXX_unrecognized != nil {
  8610. n += len(m.XXX_unrecognized)
  8611. }
  8612. return n
  8613. }
  8614. func (m *GetCoinListResp_List_AreaIds) Size() (n int) {
  8615. if m == nil {
  8616. return 0
  8617. }
  8618. var l int
  8619. _ = l
  8620. if m.ParentId != 0 {
  8621. n += 1 + sovApi(uint64(m.ParentId))
  8622. }
  8623. if m.IsAll != 0 {
  8624. n += 1 + sovApi(uint64(m.IsAll))
  8625. }
  8626. if len(m.List) > 0 {
  8627. l = 0
  8628. for _, e := range m.List {
  8629. l += sovApi(uint64(e))
  8630. }
  8631. n += 1 + sovApi(uint64(l)) + l
  8632. }
  8633. if m.XXX_unrecognized != nil {
  8634. n += len(m.XXX_unrecognized)
  8635. }
  8636. return n
  8637. }
  8638. func (m *UpdateCoinConfigReq) Size() (n int) {
  8639. if m == nil {
  8640. return 0
  8641. }
  8642. var l int
  8643. _ = l
  8644. if m.Id != 0 {
  8645. n += 1 + sovApi(uint64(m.Id))
  8646. }
  8647. l = len(m.Title)
  8648. if l > 0 {
  8649. n += 1 + l + sovApi(uint64(l))
  8650. }
  8651. if m.ChangeNum != 0 {
  8652. n += 1 + sovApi(uint64(m.ChangeNum))
  8653. }
  8654. if m.StartTime != 0 {
  8655. n += 1 + sovApi(uint64(m.StartTime))
  8656. }
  8657. if m.EndTime != 0 {
  8658. n += 1 + sovApi(uint64(m.EndTime))
  8659. }
  8660. if m.Status != 0 {
  8661. n += 1 + sovApi(uint64(m.Status))
  8662. }
  8663. if m.GiftType != 0 {
  8664. n += 1 + sovApi(uint64(m.GiftType))
  8665. }
  8666. if len(m.GiftIds) > 0 {
  8667. l = 0
  8668. for _, e := range m.GiftIds {
  8669. l += sovApi(uint64(e))
  8670. }
  8671. n += 1 + sovApi(uint64(l)) + l
  8672. }
  8673. if len(m.AreaIds) > 0 {
  8674. for _, e := range m.AreaIds {
  8675. l = e.Size()
  8676. n += 1 + l + sovApi(uint64(l))
  8677. }
  8678. }
  8679. if m.XXX_unrecognized != nil {
  8680. n += len(m.XXX_unrecognized)
  8681. }
  8682. return n
  8683. }
  8684. func (m *UpdateCoinConfigReq_AreaIds) Size() (n int) {
  8685. if m == nil {
  8686. return 0
  8687. }
  8688. var l int
  8689. _ = l
  8690. if m.ParentId != 0 {
  8691. n += 1 + sovApi(uint64(m.ParentId))
  8692. }
  8693. if m.IsAll != 0 {
  8694. n += 1 + sovApi(uint64(m.IsAll))
  8695. }
  8696. if len(m.List) > 0 {
  8697. l = 0
  8698. for _, e := range m.List {
  8699. l += sovApi(uint64(e))
  8700. }
  8701. n += 1 + sovApi(uint64(l)) + l
  8702. }
  8703. if m.XXX_unrecognized != nil {
  8704. n += len(m.XXX_unrecognized)
  8705. }
  8706. return n
  8707. }
  8708. func (m *UpdateCoinConfigResp) Size() (n int) {
  8709. if m == nil {
  8710. return 0
  8711. }
  8712. var l int
  8713. _ = l
  8714. if m.Status {
  8715. n += 2
  8716. }
  8717. if m.XXX_unrecognized != nil {
  8718. n += len(m.XXX_unrecognized)
  8719. }
  8720. return n
  8721. }
  8722. func (m *UpdateCoinStatusReq) Size() (n int) {
  8723. if m == nil {
  8724. return 0
  8725. }
  8726. var l int
  8727. _ = l
  8728. if m.Id != 0 {
  8729. n += 1 + sovApi(uint64(m.Id))
  8730. }
  8731. if m.Status != 0 {
  8732. n += 1 + sovApi(uint64(m.Status))
  8733. }
  8734. if m.XXX_unrecognized != nil {
  8735. n += len(m.XXX_unrecognized)
  8736. }
  8737. return n
  8738. }
  8739. func (m *UpdateCoinStatusResp) Size() (n int) {
  8740. if m == nil {
  8741. return 0
  8742. }
  8743. var l int
  8744. _ = l
  8745. if m.Status {
  8746. n += 2
  8747. }
  8748. if m.XXX_unrecognized != nil {
  8749. n += len(m.XXX_unrecognized)
  8750. }
  8751. return n
  8752. }
  8753. func (m *DeleteCoinReq) Size() (n int) {
  8754. if m == nil {
  8755. return 0
  8756. }
  8757. var l int
  8758. _ = l
  8759. if m.Id != 0 {
  8760. n += 1 + sovApi(uint64(m.Id))
  8761. }
  8762. if m.XXX_unrecognized != nil {
  8763. n += len(m.XXX_unrecognized)
  8764. }
  8765. return n
  8766. }
  8767. func (m *DeleteCoinResp) Size() (n int) {
  8768. if m == nil {
  8769. return 0
  8770. }
  8771. var l int
  8772. _ = l
  8773. if m.Status {
  8774. n += 2
  8775. }
  8776. if m.XXX_unrecognized != nil {
  8777. n += len(m.XXX_unrecognized)
  8778. }
  8779. return n
  8780. }
  8781. func (m *GetPoolListReq) Size() (n int) {
  8782. if m == nil {
  8783. return 0
  8784. }
  8785. var l int
  8786. _ = l
  8787. if m.Page != 0 {
  8788. n += 1 + sovApi(uint64(m.Page))
  8789. }
  8790. if m.PageSize != 0 {
  8791. n += 1 + sovApi(uint64(m.PageSize))
  8792. }
  8793. if m.XXX_unrecognized != nil {
  8794. n += len(m.XXX_unrecognized)
  8795. }
  8796. return n
  8797. }
  8798. func (m *GetPoolListResp) Size() (n int) {
  8799. if m == nil {
  8800. return 0
  8801. }
  8802. var l int
  8803. _ = l
  8804. if m.Total != 0 {
  8805. n += 1 + sovApi(uint64(m.Total))
  8806. }
  8807. if m.TotalPage != 0 {
  8808. n += 1 + sovApi(uint64(m.TotalPage))
  8809. }
  8810. if len(m.List) > 0 {
  8811. for _, e := range m.List {
  8812. l = e.Size()
  8813. n += 1 + l + sovApi(uint64(l))
  8814. }
  8815. }
  8816. if m.XXX_unrecognized != nil {
  8817. n += len(m.XXX_unrecognized)
  8818. }
  8819. return n
  8820. }
  8821. func (m *GetPoolListResp_List) Size() (n int) {
  8822. if m == nil {
  8823. return 0
  8824. }
  8825. var l int
  8826. _ = l
  8827. if m.Id != 0 {
  8828. n += 1 + sovApi(uint64(m.Id))
  8829. }
  8830. if m.CoinId != 0 {
  8831. n += 1 + sovApi(uint64(m.CoinId))
  8832. }
  8833. l = len(m.Title)
  8834. if l > 0 {
  8835. n += 1 + l + sovApi(uint64(l))
  8836. }
  8837. if m.StartTime != 0 {
  8838. n += 1 + sovApi(uint64(m.StartTime))
  8839. }
  8840. if m.EndTime != 0 {
  8841. n += 1 + sovApi(uint64(m.EndTime))
  8842. }
  8843. if m.Status != 0 {
  8844. n += 1 + sovApi(uint64(m.Status))
  8845. }
  8846. l = len(m.Rule)
  8847. if l > 0 {
  8848. n += 1 + l + sovApi(uint64(l))
  8849. }
  8850. l = len(m.CoinTitle)
  8851. if l > 0 {
  8852. n += 1 + l + sovApi(uint64(l))
  8853. }
  8854. if m.XXX_unrecognized != nil {
  8855. n += len(m.XXX_unrecognized)
  8856. }
  8857. return n
  8858. }
  8859. func (m *UpdatePoolReq) Size() (n int) {
  8860. if m == nil {
  8861. return 0
  8862. }
  8863. var l int
  8864. _ = l
  8865. if m.Id != 0 {
  8866. n += 1 + sovApi(uint64(m.Id))
  8867. }
  8868. if m.CoinId != 0 {
  8869. n += 1 + sovApi(uint64(m.CoinId))
  8870. }
  8871. l = len(m.Title)
  8872. if l > 0 {
  8873. n += 1 + l + sovApi(uint64(l))
  8874. }
  8875. if m.StartTime != 0 {
  8876. n += 1 + sovApi(uint64(m.StartTime))
  8877. }
  8878. if m.EndTime != 0 {
  8879. n += 1 + sovApi(uint64(m.EndTime))
  8880. }
  8881. l = len(m.Rule)
  8882. if l > 0 {
  8883. n += 1 + l + sovApi(uint64(l))
  8884. }
  8885. if m.XXX_unrecognized != nil {
  8886. n += len(m.XXX_unrecognized)
  8887. }
  8888. return n
  8889. }
  8890. func (m *UpdatePoolResp) Size() (n int) {
  8891. if m == nil {
  8892. return 0
  8893. }
  8894. var l int
  8895. _ = l
  8896. if m.Status {
  8897. n += 2
  8898. }
  8899. if m.XXX_unrecognized != nil {
  8900. n += len(m.XXX_unrecognized)
  8901. }
  8902. return n
  8903. }
  8904. func (m *DeletePoolReq) Size() (n int) {
  8905. if m == nil {
  8906. return 0
  8907. }
  8908. var l int
  8909. _ = l
  8910. if m.Id != 0 {
  8911. n += 1 + sovApi(uint64(m.Id))
  8912. }
  8913. if m.XXX_unrecognized != nil {
  8914. n += len(m.XXX_unrecognized)
  8915. }
  8916. return n
  8917. }
  8918. func (m *DeletePoolResp) Size() (n int) {
  8919. if m == nil {
  8920. return 0
  8921. }
  8922. var l int
  8923. _ = l
  8924. if m.Status {
  8925. n += 2
  8926. }
  8927. if m.XXX_unrecognized != nil {
  8928. n += len(m.XXX_unrecognized)
  8929. }
  8930. return n
  8931. }
  8932. func (m *UpdatePoolStatusReq) Size() (n int) {
  8933. if m == nil {
  8934. return 0
  8935. }
  8936. var l int
  8937. _ = l
  8938. if m.Id != 0 {
  8939. n += 1 + sovApi(uint64(m.Id))
  8940. }
  8941. if m.Status != 0 {
  8942. n += 1 + sovApi(uint64(m.Status))
  8943. }
  8944. if m.XXX_unrecognized != nil {
  8945. n += len(m.XXX_unrecognized)
  8946. }
  8947. return n
  8948. }
  8949. func (m *UpdatePoolStatusResp) Size() (n int) {
  8950. if m == nil {
  8951. return 0
  8952. }
  8953. var l int
  8954. _ = l
  8955. if m.Status {
  8956. n += 2
  8957. }
  8958. if m.XXX_unrecognized != nil {
  8959. n += len(m.XXX_unrecognized)
  8960. }
  8961. return n
  8962. }
  8963. func (m *GetPoolPrizeReq) Size() (n int) {
  8964. if m == nil {
  8965. return 0
  8966. }
  8967. var l int
  8968. _ = l
  8969. if m.PoolId != 0 {
  8970. n += 1 + sovApi(uint64(m.PoolId))
  8971. }
  8972. if m.XXX_unrecognized != nil {
  8973. n += len(m.XXX_unrecognized)
  8974. }
  8975. return n
  8976. }
  8977. func (m *GetPoolPrizeResp) Size() (n int) {
  8978. if m == nil {
  8979. return 0
  8980. }
  8981. var l int
  8982. _ = l
  8983. if len(m.List) > 0 {
  8984. for _, e := range m.List {
  8985. l = e.Size()
  8986. n += 1 + l + sovApi(uint64(l))
  8987. }
  8988. }
  8989. if m.XXX_unrecognized != nil {
  8990. n += len(m.XXX_unrecognized)
  8991. }
  8992. return n
  8993. }
  8994. func (m *GetPoolPrizeResp_List) Size() (n int) {
  8995. if m == nil {
  8996. return 0
  8997. }
  8998. var l int
  8999. _ = l
  9000. if m.Id != 0 {
  9001. n += 1 + sovApi(uint64(m.Id))
  9002. }
  9003. if m.PoolId != 0 {
  9004. n += 1 + sovApi(uint64(m.PoolId))
  9005. }
  9006. if m.Type != 0 {
  9007. n += 1 + sovApi(uint64(m.Type))
  9008. }
  9009. if m.Num != 0 {
  9010. n += 1 + sovApi(uint64(m.Num))
  9011. }
  9012. if m.ObjectId != 0 {
  9013. n += 1 + sovApi(uint64(m.ObjectId))
  9014. }
  9015. l = len(m.WebUrl)
  9016. if l > 0 {
  9017. n += 1 + l + sovApi(uint64(l))
  9018. }
  9019. l = len(m.MobileUrl)
  9020. if l > 0 {
  9021. n += 1 + l + sovApi(uint64(l))
  9022. }
  9023. l = len(m.Description)
  9024. if l > 0 {
  9025. n += 1 + l + sovApi(uint64(l))
  9026. }
  9027. l = len(m.JumpUrl)
  9028. if l > 0 {
  9029. n += 1 + l + sovApi(uint64(l))
  9030. }
  9031. if m.ProType != 0 {
  9032. n += 1 + sovApi(uint64(m.ProType))
  9033. }
  9034. l = len(m.Chance)
  9035. if l > 0 {
  9036. n += 1 + l + sovApi(uint64(l))
  9037. }
  9038. if m.Loop != 0 {
  9039. n += 1 + sovApi(uint64(m.Loop))
  9040. }
  9041. if m.Limit != 0 {
  9042. n += 1 + sovApi(uint64(m.Limit))
  9043. }
  9044. l = len(m.Name)
  9045. if l > 0 {
  9046. n += 1 + l + sovApi(uint64(l))
  9047. }
  9048. if m.Weight != 0 {
  9049. n += 1 + sovApi(uint64(m.Weight))
  9050. }
  9051. if len(m.WhiteUids) > 0 {
  9052. l = 0
  9053. for _, e := range m.WhiteUids {
  9054. l += sovApi(uint64(e))
  9055. }
  9056. n += 2 + sovApi(uint64(l)) + l
  9057. }
  9058. if m.Expire != 0 {
  9059. n += 2 + sovApi(uint64(m.Expire))
  9060. }
  9061. if m.XXX_unrecognized != nil {
  9062. n += len(m.XXX_unrecognized)
  9063. }
  9064. return n
  9065. }
  9066. func (m *UpdatePoolPrizeReq) Size() (n int) {
  9067. if m == nil {
  9068. return 0
  9069. }
  9070. var l int
  9071. _ = l
  9072. if m.Id != 0 {
  9073. n += 1 + sovApi(uint64(m.Id))
  9074. }
  9075. if m.PoolId != 0 {
  9076. n += 1 + sovApi(uint64(m.PoolId))
  9077. }
  9078. if m.Type != 0 {
  9079. n += 1 + sovApi(uint64(m.Type))
  9080. }
  9081. if m.Num != 0 {
  9082. n += 1 + sovApi(uint64(m.Num))
  9083. }
  9084. if m.ObjectId != 0 {
  9085. n += 1 + sovApi(uint64(m.ObjectId))
  9086. }
  9087. if m.Expire != 0 {
  9088. n += 1 + sovApi(uint64(m.Expire))
  9089. }
  9090. l = len(m.WebUrl)
  9091. if l > 0 {
  9092. n += 1 + l + sovApi(uint64(l))
  9093. }
  9094. l = len(m.MobileUrl)
  9095. if l > 0 {
  9096. n += 1 + l + sovApi(uint64(l))
  9097. }
  9098. l = len(m.Description)
  9099. if l > 0 {
  9100. n += 1 + l + sovApi(uint64(l))
  9101. }
  9102. l = len(m.JumpUrl)
  9103. if l > 0 {
  9104. n += 1 + l + sovApi(uint64(l))
  9105. }
  9106. if m.ProType != 0 {
  9107. n += 1 + sovApi(uint64(m.ProType))
  9108. }
  9109. if m.Chance != 0 {
  9110. n += 1 + sovApi(uint64(m.Chance))
  9111. }
  9112. if m.Loop != 0 {
  9113. n += 1 + sovApi(uint64(m.Loop))
  9114. }
  9115. if m.Limit != 0 {
  9116. n += 1 + sovApi(uint64(m.Limit))
  9117. }
  9118. if m.Weight != 0 {
  9119. n += 1 + sovApi(uint64(m.Weight))
  9120. }
  9121. if len(m.WhiteUids) > 0 {
  9122. l = 0
  9123. for _, e := range m.WhiteUids {
  9124. l += sovApi(uint64(e))
  9125. }
  9126. n += 2 + sovApi(uint64(l)) + l
  9127. }
  9128. if m.XXX_unrecognized != nil {
  9129. n += len(m.XXX_unrecognized)
  9130. }
  9131. return n
  9132. }
  9133. func (m *UpdatePoolPrizeResp) Size() (n int) {
  9134. if m == nil {
  9135. return 0
  9136. }
  9137. var l int
  9138. _ = l
  9139. if m.Status {
  9140. n += 2
  9141. }
  9142. if m.PrizeId != 0 {
  9143. n += 1 + sovApi(uint64(m.PrizeId))
  9144. }
  9145. if m.XXX_unrecognized != nil {
  9146. n += len(m.XXX_unrecognized)
  9147. }
  9148. return n
  9149. }
  9150. func (m *DeletePoolPrizeReq) Size() (n int) {
  9151. if m == nil {
  9152. return 0
  9153. }
  9154. var l int
  9155. _ = l
  9156. if m.Id != 0 {
  9157. n += 1 + sovApi(uint64(m.Id))
  9158. }
  9159. if m.XXX_unrecognized != nil {
  9160. n += len(m.XXX_unrecognized)
  9161. }
  9162. return n
  9163. }
  9164. func (m *DeletePoolPrizeResp) Size() (n int) {
  9165. if m == nil {
  9166. return 0
  9167. }
  9168. var l int
  9169. _ = l
  9170. if m.Status {
  9171. n += 2
  9172. }
  9173. if m.XXX_unrecognized != nil {
  9174. n += len(m.XXX_unrecognized)
  9175. }
  9176. return n
  9177. }
  9178. func (m *GetPrizeTypeReq) Size() (n int) {
  9179. if m == nil {
  9180. return 0
  9181. }
  9182. var l int
  9183. _ = l
  9184. if m.XXX_unrecognized != nil {
  9185. n += len(m.XXX_unrecognized)
  9186. }
  9187. return n
  9188. }
  9189. func (m *GetPrizeTypeResp) Size() (n int) {
  9190. if m == nil {
  9191. return 0
  9192. }
  9193. var l int
  9194. _ = l
  9195. if len(m.List) > 0 {
  9196. for _, e := range m.List {
  9197. l = e.Size()
  9198. n += 1 + l + sovApi(uint64(l))
  9199. }
  9200. }
  9201. if m.XXX_unrecognized != nil {
  9202. n += len(m.XXX_unrecognized)
  9203. }
  9204. return n
  9205. }
  9206. func (m *GetPrizeTypeResp_List) Size() (n int) {
  9207. if m == nil {
  9208. return 0
  9209. }
  9210. var l int
  9211. _ = l
  9212. if m.Type != 0 {
  9213. n += 1 + sovApi(uint64(m.Type))
  9214. }
  9215. l = len(m.Name)
  9216. if l > 0 {
  9217. n += 1 + l + sovApi(uint64(l))
  9218. }
  9219. if m.XXX_unrecognized != nil {
  9220. n += len(m.XXX_unrecognized)
  9221. }
  9222. return n
  9223. }
  9224. func (m *GetPrizeExpireReq) Size() (n int) {
  9225. if m == nil {
  9226. return 0
  9227. }
  9228. var l int
  9229. _ = l
  9230. if m.XXX_unrecognized != nil {
  9231. n += len(m.XXX_unrecognized)
  9232. }
  9233. return n
  9234. }
  9235. func (m *GetPrizeExpireResp) Size() (n int) {
  9236. if m == nil {
  9237. return 0
  9238. }
  9239. var l int
  9240. _ = l
  9241. if len(m.List) > 0 {
  9242. for _, e := range m.List {
  9243. l = e.Size()
  9244. n += 1 + l + sovApi(uint64(l))
  9245. }
  9246. }
  9247. if m.XXX_unrecognized != nil {
  9248. n += len(m.XXX_unrecognized)
  9249. }
  9250. return n
  9251. }
  9252. func (m *GetPrizeExpireResp_List) Size() (n int) {
  9253. if m == nil {
  9254. return 0
  9255. }
  9256. var l int
  9257. _ = l
  9258. if m.Expire != 0 {
  9259. n += 1 + sovApi(uint64(m.Expire))
  9260. }
  9261. l = len(m.Name)
  9262. if l > 0 {
  9263. n += 1 + l + sovApi(uint64(l))
  9264. }
  9265. if m.XXX_unrecognized != nil {
  9266. n += len(m.XXX_unrecognized)
  9267. }
  9268. return n
  9269. }
  9270. func (m *StartStormReq) Size() (n int) {
  9271. if m == nil {
  9272. return 0
  9273. }
  9274. var l int
  9275. _ = l
  9276. if m.Uid != 0 {
  9277. n += 1 + sovApi(uint64(m.Uid))
  9278. }
  9279. if m.Ruid != 0 {
  9280. n += 1 + sovApi(uint64(m.Ruid))
  9281. }
  9282. if m.Roomid != 0 {
  9283. n += 1 + sovApi(uint64(m.Roomid))
  9284. }
  9285. if m.UseShield {
  9286. n += 2
  9287. }
  9288. if m.Num != 0 {
  9289. n += 1 + sovApi(uint64(m.Num))
  9290. }
  9291. if m.Beatid != 0 {
  9292. n += 1 + sovApi(uint64(m.Beatid))
  9293. }
  9294. if m.SkipExternalCheck != 0 {
  9295. n += 1 + sovApi(uint64(m.SkipExternalCheck))
  9296. }
  9297. if m.XXX_unrecognized != nil {
  9298. n += len(m.XXX_unrecognized)
  9299. }
  9300. return n
  9301. }
  9302. func (m *StartStormResp) Size() (n int) {
  9303. if m == nil {
  9304. return 0
  9305. }
  9306. var l int
  9307. _ = l
  9308. if m.Code != 0 {
  9309. n += 1 + sovApi(uint64(m.Code))
  9310. }
  9311. l = len(m.Msg)
  9312. if l > 0 {
  9313. n += 1 + l + sovApi(uint64(l))
  9314. }
  9315. if m.Start != nil {
  9316. l = m.Start.Size()
  9317. n += 1 + l + sovApi(uint64(l))
  9318. }
  9319. if m.XXX_unrecognized != nil {
  9320. n += len(m.XXX_unrecognized)
  9321. }
  9322. return n
  9323. }
  9324. func (m *StartData) Size() (n int) {
  9325. if m == nil {
  9326. return 0
  9327. }
  9328. var l int
  9329. _ = l
  9330. if m.Time != 0 {
  9331. n += 1 + sovApi(uint64(m.Time))
  9332. }
  9333. if m.Id != 0 {
  9334. n += 1 + sovApi(uint64(m.Id))
  9335. }
  9336. if m.XXX_unrecognized != nil {
  9337. n += len(m.XXX_unrecognized)
  9338. }
  9339. return n
  9340. }
  9341. func (m *CanStartStormResp) Size() (n int) {
  9342. if m == nil {
  9343. return 0
  9344. }
  9345. var l int
  9346. _ = l
  9347. if m.Code != 0 {
  9348. n += 1 + sovApi(uint64(m.Code))
  9349. }
  9350. l = len(m.Msg)
  9351. if l > 0 {
  9352. n += 1 + l + sovApi(uint64(l))
  9353. }
  9354. if m.RetStatus {
  9355. n += 2
  9356. }
  9357. if m.XXX_unrecognized != nil {
  9358. n += len(m.XXX_unrecognized)
  9359. }
  9360. return n
  9361. }
  9362. func (m *JoinStormReq) Size() (n int) {
  9363. if m == nil {
  9364. return 0
  9365. }
  9366. var l int
  9367. _ = l
  9368. if m.Id != 0 {
  9369. n += 1 + sovApi(uint64(m.Id))
  9370. }
  9371. if m.Roomid != 0 {
  9372. n += 1 + sovApi(uint64(m.Roomid))
  9373. }
  9374. l = len(m.Color)
  9375. if l > 0 {
  9376. n += 1 + l + sovApi(uint64(l))
  9377. }
  9378. if m.Mid != 0 {
  9379. n += 1 + sovApi(uint64(m.Mid))
  9380. }
  9381. l = len(m.Platform)
  9382. if l > 0 {
  9383. n += 1 + l + sovApi(uint64(l))
  9384. }
  9385. l = len(m.CaptchaToken)
  9386. if l > 0 {
  9387. n += 1 + l + sovApi(uint64(l))
  9388. }
  9389. l = len(m.CaptchaPhrase)
  9390. if l > 0 {
  9391. n += 1 + l + sovApi(uint64(l))
  9392. }
  9393. if m.XXX_unrecognized != nil {
  9394. n += len(m.XXX_unrecognized)
  9395. }
  9396. return n
  9397. }
  9398. func (m *JoinStormResp) Size() (n int) {
  9399. if m == nil {
  9400. return 0
  9401. }
  9402. var l int
  9403. _ = l
  9404. if m.Code != 0 {
  9405. n += 1 + sovApi(uint64(m.Code))
  9406. }
  9407. l = len(m.Msg)
  9408. if l > 0 {
  9409. n += 1 + l + sovApi(uint64(l))
  9410. }
  9411. if m.Join != nil {
  9412. l = m.Join.Size()
  9413. n += 1 + l + sovApi(uint64(l))
  9414. }
  9415. if m.XXX_unrecognized != nil {
  9416. n += len(m.XXX_unrecognized)
  9417. }
  9418. return n
  9419. }
  9420. func (m *JoinData) Size() (n int) {
  9421. if m == nil {
  9422. return 0
  9423. }
  9424. var l int
  9425. _ = l
  9426. if m.GiftId != 0 {
  9427. n += 1 + sovApi(uint64(m.GiftId))
  9428. }
  9429. l = len(m.Title)
  9430. if l > 0 {
  9431. n += 1 + l + sovApi(uint64(l))
  9432. }
  9433. l = len(m.Content)
  9434. if l > 0 {
  9435. n += 1 + l + sovApi(uint64(l))
  9436. }
  9437. l = len(m.MobileContent)
  9438. if l > 0 {
  9439. n += 1 + l + sovApi(uint64(l))
  9440. }
  9441. l = len(m.GiftImg)
  9442. if l > 0 {
  9443. n += 1 + l + sovApi(uint64(l))
  9444. }
  9445. if m.GiftNum != 0 {
  9446. n += 1 + sovApi(uint64(m.GiftNum))
  9447. }
  9448. l = len(m.GiftName)
  9449. if l > 0 {
  9450. n += 1 + l + sovApi(uint64(l))
  9451. }
  9452. if m.XXX_unrecognized != nil {
  9453. n += len(m.XXX_unrecognized)
  9454. }
  9455. return n
  9456. }
  9457. func (m *CheckStormReq) Size() (n int) {
  9458. if m == nil {
  9459. return 0
  9460. }
  9461. var l int
  9462. _ = l
  9463. if m.Roomid != 0 {
  9464. n += 1 + sovApi(uint64(m.Roomid))
  9465. }
  9466. if m.Uid != 0 {
  9467. n += 1 + sovApi(uint64(m.Uid))
  9468. }
  9469. if m.XXX_unrecognized != nil {
  9470. n += len(m.XXX_unrecognized)
  9471. }
  9472. return n
  9473. }
  9474. func (m *CheckStormResp) Size() (n int) {
  9475. if m == nil {
  9476. return 0
  9477. }
  9478. var l int
  9479. _ = l
  9480. if m.Code != 0 {
  9481. n += 1 + sovApi(uint64(m.Code))
  9482. }
  9483. l = len(m.Msg)
  9484. if l > 0 {
  9485. n += 1 + l + sovApi(uint64(l))
  9486. }
  9487. if m.Check != nil {
  9488. l = m.Check.Size()
  9489. n += 1 + l + sovApi(uint64(l))
  9490. }
  9491. if m.XXX_unrecognized != nil {
  9492. n += len(m.XXX_unrecognized)
  9493. }
  9494. return n
  9495. }
  9496. func (m *CheckData) Size() (n int) {
  9497. if m == nil {
  9498. return 0
  9499. }
  9500. var l int
  9501. _ = l
  9502. if m.Id != 0 {
  9503. n += 1 + sovApi(uint64(m.Id))
  9504. }
  9505. if m.Roomid != 0 {
  9506. n += 1 + sovApi(uint64(m.Roomid))
  9507. }
  9508. if m.Num != 0 {
  9509. n += 1 + sovApi(uint64(m.Num))
  9510. }
  9511. l = len(m.SendNum)
  9512. if l > 0 {
  9513. n += 1 + l + sovApi(uint64(l))
  9514. }
  9515. if m.Time != 0 {
  9516. n += 1 + sovApi(uint64(m.Time))
  9517. }
  9518. l = len(m.Content)
  9519. if l > 0 {
  9520. n += 1 + l + sovApi(uint64(l))
  9521. }
  9522. if m.HasJoin != 0 {
  9523. n += 1 + sovApi(uint64(m.HasJoin))
  9524. }
  9525. l = len(m.StormGif)
  9526. if l > 0 {
  9527. n += 1 + l + sovApi(uint64(l))
  9528. }
  9529. if m.XXX_unrecognized != nil {
  9530. n += len(m.XXX_unrecognized)
  9531. }
  9532. return n
  9533. }
  9534. func (m *CapsuleGetCouponListReq) Size() (n int) {
  9535. if m == nil {
  9536. return 0
  9537. }
  9538. var l int
  9539. _ = l
  9540. if m.Uid != 0 {
  9541. n += 1 + sovApi(uint64(m.Uid))
  9542. }
  9543. if m.XXX_unrecognized != nil {
  9544. n += len(m.XXX_unrecognized)
  9545. }
  9546. return n
  9547. }
  9548. func (m *CapsuleGetCouponListResp) Size() (n int) {
  9549. if m == nil {
  9550. return 0
  9551. }
  9552. var l int
  9553. _ = l
  9554. if len(m.List) > 0 {
  9555. for _, e := range m.List {
  9556. l = e.Size()
  9557. n += 1 + l + sovApi(uint64(l))
  9558. }
  9559. }
  9560. if m.XXX_unrecognized != nil {
  9561. n += len(m.XXX_unrecognized)
  9562. }
  9563. return n
  9564. }
  9565. func (m *CapsuleGetCouponListResp_List) Size() (n int) {
  9566. if m == nil {
  9567. return 0
  9568. }
  9569. var l int
  9570. _ = l
  9571. if m.Uid != 0 {
  9572. n += 1 + sovApi(uint64(m.Uid))
  9573. }
  9574. l = len(m.AwardTime)
  9575. if l > 0 {
  9576. n += 1 + l + sovApi(uint64(l))
  9577. }
  9578. l = len(m.AwardName)
  9579. if l > 0 {
  9580. n += 1 + l + sovApi(uint64(l))
  9581. }
  9582. l = len(m.AwardCode)
  9583. if l > 0 {
  9584. n += 1 + l + sovApi(uint64(l))
  9585. }
  9586. if m.Status != 0 {
  9587. n += 1 + sovApi(uint64(m.Status))
  9588. }
  9589. l = len(m.RetryTime)
  9590. if l > 0 {
  9591. n += 1 + l + sovApi(uint64(l))
  9592. }
  9593. if m.XXX_unrecognized != nil {
  9594. n += len(m.XXX_unrecognized)
  9595. }
  9596. return n
  9597. }
  9598. func sovApi(x uint64) (n int) {
  9599. for {
  9600. n++
  9601. x >>= 7
  9602. if x == 0 {
  9603. break
  9604. }
  9605. }
  9606. return n
  9607. }
  9608. func sozApi(x uint64) (n int) {
  9609. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  9610. }
  9611. func (m *CapsuleGetDetailReq) Unmarshal(dAtA []byte) error {
  9612. l := len(dAtA)
  9613. iNdEx := 0
  9614. for iNdEx < l {
  9615. preIndex := iNdEx
  9616. var wire uint64
  9617. for shift := uint(0); ; shift += 7 {
  9618. if shift >= 64 {
  9619. return ErrIntOverflowApi
  9620. }
  9621. if iNdEx >= l {
  9622. return io.ErrUnexpectedEOF
  9623. }
  9624. b := dAtA[iNdEx]
  9625. iNdEx++
  9626. wire |= (uint64(b) & 0x7F) << shift
  9627. if b < 0x80 {
  9628. break
  9629. }
  9630. }
  9631. fieldNum := int32(wire >> 3)
  9632. wireType := int(wire & 0x7)
  9633. if wireType == 4 {
  9634. return fmt.Errorf("proto: CapsuleGetDetailReq: wiretype end group for non-group")
  9635. }
  9636. if fieldNum <= 0 {
  9637. return fmt.Errorf("proto: CapsuleGetDetailReq: illegal tag %d (wire type %d)", fieldNum, wire)
  9638. }
  9639. switch fieldNum {
  9640. case 1:
  9641. if wireType != 0 {
  9642. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  9643. }
  9644. m.Uid = 0
  9645. for shift := uint(0); ; shift += 7 {
  9646. if shift >= 64 {
  9647. return ErrIntOverflowApi
  9648. }
  9649. if iNdEx >= l {
  9650. return io.ErrUnexpectedEOF
  9651. }
  9652. b := dAtA[iNdEx]
  9653. iNdEx++
  9654. m.Uid |= (int64(b) & 0x7F) << shift
  9655. if b < 0x80 {
  9656. break
  9657. }
  9658. }
  9659. case 2:
  9660. if wireType != 2 {
  9661. return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  9662. }
  9663. var stringLen uint64
  9664. for shift := uint(0); ; shift += 7 {
  9665. if shift >= 64 {
  9666. return ErrIntOverflowApi
  9667. }
  9668. if iNdEx >= l {
  9669. return io.ErrUnexpectedEOF
  9670. }
  9671. b := dAtA[iNdEx]
  9672. iNdEx++
  9673. stringLen |= (uint64(b) & 0x7F) << shift
  9674. if b < 0x80 {
  9675. break
  9676. }
  9677. }
  9678. intStringLen := int(stringLen)
  9679. if intStringLen < 0 {
  9680. return ErrInvalidLengthApi
  9681. }
  9682. postIndex := iNdEx + intStringLen
  9683. if postIndex > l {
  9684. return io.ErrUnexpectedEOF
  9685. }
  9686. m.From = string(dAtA[iNdEx:postIndex])
  9687. iNdEx = postIndex
  9688. default:
  9689. iNdEx = preIndex
  9690. skippy, err := skipApi(dAtA[iNdEx:])
  9691. if err != nil {
  9692. return err
  9693. }
  9694. if skippy < 0 {
  9695. return ErrInvalidLengthApi
  9696. }
  9697. if (iNdEx + skippy) > l {
  9698. return io.ErrUnexpectedEOF
  9699. }
  9700. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9701. iNdEx += skippy
  9702. }
  9703. }
  9704. if iNdEx > l {
  9705. return io.ErrUnexpectedEOF
  9706. }
  9707. return nil
  9708. }
  9709. func (m *Usage) Unmarshal(dAtA []byte) error {
  9710. l := len(dAtA)
  9711. iNdEx := 0
  9712. for iNdEx < l {
  9713. preIndex := iNdEx
  9714. var wire uint64
  9715. for shift := uint(0); ; shift += 7 {
  9716. if shift >= 64 {
  9717. return ErrIntOverflowApi
  9718. }
  9719. if iNdEx >= l {
  9720. return io.ErrUnexpectedEOF
  9721. }
  9722. b := dAtA[iNdEx]
  9723. iNdEx++
  9724. wire |= (uint64(b) & 0x7F) << shift
  9725. if b < 0x80 {
  9726. break
  9727. }
  9728. }
  9729. fieldNum := int32(wire >> 3)
  9730. wireType := int(wire & 0x7)
  9731. if wireType == 4 {
  9732. return fmt.Errorf("proto: Usage: wiretype end group for non-group")
  9733. }
  9734. if fieldNum <= 0 {
  9735. return fmt.Errorf("proto: Usage: illegal tag %d (wire type %d)", fieldNum, wire)
  9736. }
  9737. switch fieldNum {
  9738. case 1:
  9739. if wireType != 2 {
  9740. return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
  9741. }
  9742. var stringLen uint64
  9743. for shift := uint(0); ; shift += 7 {
  9744. if shift >= 64 {
  9745. return ErrIntOverflowApi
  9746. }
  9747. if iNdEx >= l {
  9748. return io.ErrUnexpectedEOF
  9749. }
  9750. b := dAtA[iNdEx]
  9751. iNdEx++
  9752. stringLen |= (uint64(b) & 0x7F) << shift
  9753. if b < 0x80 {
  9754. break
  9755. }
  9756. }
  9757. intStringLen := int(stringLen)
  9758. if intStringLen < 0 {
  9759. return ErrInvalidLengthApi
  9760. }
  9761. postIndex := iNdEx + intStringLen
  9762. if postIndex > l {
  9763. return io.ErrUnexpectedEOF
  9764. }
  9765. m.Text = string(dAtA[iNdEx:postIndex])
  9766. iNdEx = postIndex
  9767. case 2:
  9768. if wireType != 2 {
  9769. return fmt.Errorf("proto: wrong wireType = %d for field Url", wireType)
  9770. }
  9771. var stringLen uint64
  9772. for shift := uint(0); ; shift += 7 {
  9773. if shift >= 64 {
  9774. return ErrIntOverflowApi
  9775. }
  9776. if iNdEx >= l {
  9777. return io.ErrUnexpectedEOF
  9778. }
  9779. b := dAtA[iNdEx]
  9780. iNdEx++
  9781. stringLen |= (uint64(b) & 0x7F) << shift
  9782. if b < 0x80 {
  9783. break
  9784. }
  9785. }
  9786. intStringLen := int(stringLen)
  9787. if intStringLen < 0 {
  9788. return ErrInvalidLengthApi
  9789. }
  9790. postIndex := iNdEx + intStringLen
  9791. if postIndex > l {
  9792. return io.ErrUnexpectedEOF
  9793. }
  9794. m.Url = string(dAtA[iNdEx:postIndex])
  9795. iNdEx = postIndex
  9796. default:
  9797. iNdEx = preIndex
  9798. skippy, err := skipApi(dAtA[iNdEx:])
  9799. if err != nil {
  9800. return err
  9801. }
  9802. if skippy < 0 {
  9803. return ErrInvalidLengthApi
  9804. }
  9805. if (iNdEx + skippy) > l {
  9806. return io.ErrUnexpectedEOF
  9807. }
  9808. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9809. iNdEx += skippy
  9810. }
  9811. }
  9812. if iNdEx > l {
  9813. return io.ErrUnexpectedEOF
  9814. }
  9815. return nil
  9816. }
  9817. func (m *Progress) Unmarshal(dAtA []byte) error {
  9818. l := len(dAtA)
  9819. iNdEx := 0
  9820. for iNdEx < l {
  9821. preIndex := iNdEx
  9822. var wire uint64
  9823. for shift := uint(0); ; shift += 7 {
  9824. if shift >= 64 {
  9825. return ErrIntOverflowApi
  9826. }
  9827. if iNdEx >= l {
  9828. return io.ErrUnexpectedEOF
  9829. }
  9830. b := dAtA[iNdEx]
  9831. iNdEx++
  9832. wire |= (uint64(b) & 0x7F) << shift
  9833. if b < 0x80 {
  9834. break
  9835. }
  9836. }
  9837. fieldNum := int32(wire >> 3)
  9838. wireType := int(wire & 0x7)
  9839. if wireType == 4 {
  9840. return fmt.Errorf("proto: Progress: wiretype end group for non-group")
  9841. }
  9842. if fieldNum <= 0 {
  9843. return fmt.Errorf("proto: Progress: illegal tag %d (wire type %d)", fieldNum, wire)
  9844. }
  9845. switch fieldNum {
  9846. case 1:
  9847. if wireType != 0 {
  9848. return fmt.Errorf("proto: wrong wireType = %d for field Now", wireType)
  9849. }
  9850. m.Now = 0
  9851. for shift := uint(0); ; shift += 7 {
  9852. if shift >= 64 {
  9853. return ErrIntOverflowApi
  9854. }
  9855. if iNdEx >= l {
  9856. return io.ErrUnexpectedEOF
  9857. }
  9858. b := dAtA[iNdEx]
  9859. iNdEx++
  9860. m.Now |= (int64(b) & 0x7F) << shift
  9861. if b < 0x80 {
  9862. break
  9863. }
  9864. }
  9865. case 2:
  9866. if wireType != 0 {
  9867. return fmt.Errorf("proto: wrong wireType = %d for field Max", wireType)
  9868. }
  9869. m.Max = 0
  9870. for shift := uint(0); ; shift += 7 {
  9871. if shift >= 64 {
  9872. return ErrIntOverflowApi
  9873. }
  9874. if iNdEx >= l {
  9875. return io.ErrUnexpectedEOF
  9876. }
  9877. b := dAtA[iNdEx]
  9878. iNdEx++
  9879. m.Max |= (int64(b) & 0x7F) << shift
  9880. if b < 0x80 {
  9881. break
  9882. }
  9883. }
  9884. default:
  9885. iNdEx = preIndex
  9886. skippy, err := skipApi(dAtA[iNdEx:])
  9887. if err != nil {
  9888. return err
  9889. }
  9890. if skippy < 0 {
  9891. return ErrInvalidLengthApi
  9892. }
  9893. if (iNdEx + skippy) > l {
  9894. return io.ErrUnexpectedEOF
  9895. }
  9896. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  9897. iNdEx += skippy
  9898. }
  9899. }
  9900. if iNdEx > l {
  9901. return io.ErrUnexpectedEOF
  9902. }
  9903. return nil
  9904. }
  9905. func (m *CapsuleGetDetailResp) Unmarshal(dAtA []byte) error {
  9906. l := len(dAtA)
  9907. iNdEx := 0
  9908. for iNdEx < l {
  9909. preIndex := iNdEx
  9910. var wire uint64
  9911. for shift := uint(0); ; shift += 7 {
  9912. if shift >= 64 {
  9913. return ErrIntOverflowApi
  9914. }
  9915. if iNdEx >= l {
  9916. return io.ErrUnexpectedEOF
  9917. }
  9918. b := dAtA[iNdEx]
  9919. iNdEx++
  9920. wire |= (uint64(b) & 0x7F) << shift
  9921. if b < 0x80 {
  9922. break
  9923. }
  9924. }
  9925. fieldNum := int32(wire >> 3)
  9926. wireType := int(wire & 0x7)
  9927. if wireType == 4 {
  9928. return fmt.Errorf("proto: CapsuleGetDetailResp: wiretype end group for non-group")
  9929. }
  9930. if fieldNum <= 0 {
  9931. return fmt.Errorf("proto: CapsuleGetDetailResp: illegal tag %d (wire type %d)", fieldNum, wire)
  9932. }
  9933. switch fieldNum {
  9934. case 1:
  9935. if wireType != 2 {
  9936. return fmt.Errorf("proto: wrong wireType = %d for field Normal", wireType)
  9937. }
  9938. var msglen int
  9939. for shift := uint(0); ; shift += 7 {
  9940. if shift >= 64 {
  9941. return ErrIntOverflowApi
  9942. }
  9943. if iNdEx >= l {
  9944. return io.ErrUnexpectedEOF
  9945. }
  9946. b := dAtA[iNdEx]
  9947. iNdEx++
  9948. msglen |= (int(b) & 0x7F) << shift
  9949. if b < 0x80 {
  9950. break
  9951. }
  9952. }
  9953. if msglen < 0 {
  9954. return ErrInvalidLengthApi
  9955. }
  9956. postIndex := iNdEx + msglen
  9957. if postIndex > l {
  9958. return io.ErrUnexpectedEOF
  9959. }
  9960. if m.Normal == nil {
  9961. m.Normal = &CapsuleGetDetailResp_CapsuleInfo{}
  9962. }
  9963. if err := m.Normal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9964. return err
  9965. }
  9966. iNdEx = postIndex
  9967. case 2:
  9968. if wireType != 2 {
  9969. return fmt.Errorf("proto: wrong wireType = %d for field Colorful", wireType)
  9970. }
  9971. var msglen int
  9972. for shift := uint(0); ; shift += 7 {
  9973. if shift >= 64 {
  9974. return ErrIntOverflowApi
  9975. }
  9976. if iNdEx >= l {
  9977. return io.ErrUnexpectedEOF
  9978. }
  9979. b := dAtA[iNdEx]
  9980. iNdEx++
  9981. msglen |= (int(b) & 0x7F) << shift
  9982. if b < 0x80 {
  9983. break
  9984. }
  9985. }
  9986. if msglen < 0 {
  9987. return ErrInvalidLengthApi
  9988. }
  9989. postIndex := iNdEx + msglen
  9990. if postIndex > l {
  9991. return io.ErrUnexpectedEOF
  9992. }
  9993. if m.Colorful == nil {
  9994. m.Colorful = &CapsuleGetDetailResp_CapsuleInfo{}
  9995. }
  9996. if err := m.Colorful.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9997. return err
  9998. }
  9999. iNdEx = postIndex
  10000. default:
  10001. iNdEx = preIndex
  10002. skippy, err := skipApi(dAtA[iNdEx:])
  10003. if err != nil {
  10004. return err
  10005. }
  10006. if skippy < 0 {
  10007. return ErrInvalidLengthApi
  10008. }
  10009. if (iNdEx + skippy) > l {
  10010. return io.ErrUnexpectedEOF
  10011. }
  10012. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10013. iNdEx += skippy
  10014. }
  10015. }
  10016. if iNdEx > l {
  10017. return io.ErrUnexpectedEOF
  10018. }
  10019. return nil
  10020. }
  10021. func (m *CapsuleGetDetailResp_Gift) Unmarshal(dAtA []byte) error {
  10022. l := len(dAtA)
  10023. iNdEx := 0
  10024. for iNdEx < l {
  10025. preIndex := iNdEx
  10026. var wire uint64
  10027. for shift := uint(0); ; shift += 7 {
  10028. if shift >= 64 {
  10029. return ErrIntOverflowApi
  10030. }
  10031. if iNdEx >= l {
  10032. return io.ErrUnexpectedEOF
  10033. }
  10034. b := dAtA[iNdEx]
  10035. iNdEx++
  10036. wire |= (uint64(b) & 0x7F) << shift
  10037. if b < 0x80 {
  10038. break
  10039. }
  10040. }
  10041. fieldNum := int32(wire >> 3)
  10042. wireType := int(wire & 0x7)
  10043. if wireType == 4 {
  10044. return fmt.Errorf("proto: Gift: wiretype end group for non-group")
  10045. }
  10046. if fieldNum <= 0 {
  10047. return fmt.Errorf("proto: Gift: illegal tag %d (wire type %d)", fieldNum, wire)
  10048. }
  10049. switch fieldNum {
  10050. case 2:
  10051. if wireType != 2 {
  10052. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  10053. }
  10054. var stringLen uint64
  10055. for shift := uint(0); ; shift += 7 {
  10056. if shift >= 64 {
  10057. return ErrIntOverflowApi
  10058. }
  10059. if iNdEx >= l {
  10060. return io.ErrUnexpectedEOF
  10061. }
  10062. b := dAtA[iNdEx]
  10063. iNdEx++
  10064. stringLen |= (uint64(b) & 0x7F) << shift
  10065. if b < 0x80 {
  10066. break
  10067. }
  10068. }
  10069. intStringLen := int(stringLen)
  10070. if intStringLen < 0 {
  10071. return ErrInvalidLengthApi
  10072. }
  10073. postIndex := iNdEx + intStringLen
  10074. if postIndex > l {
  10075. return io.ErrUnexpectedEOF
  10076. }
  10077. m.Name = string(dAtA[iNdEx:postIndex])
  10078. iNdEx = postIndex
  10079. case 3:
  10080. if wireType != 2 {
  10081. return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType)
  10082. }
  10083. var stringLen uint64
  10084. for shift := uint(0); ; shift += 7 {
  10085. if shift >= 64 {
  10086. return ErrIntOverflowApi
  10087. }
  10088. if iNdEx >= l {
  10089. return io.ErrUnexpectedEOF
  10090. }
  10091. b := dAtA[iNdEx]
  10092. iNdEx++
  10093. stringLen |= (uint64(b) & 0x7F) << shift
  10094. if b < 0x80 {
  10095. break
  10096. }
  10097. }
  10098. intStringLen := int(stringLen)
  10099. if intStringLen < 0 {
  10100. return ErrInvalidLengthApi
  10101. }
  10102. postIndex := iNdEx + intStringLen
  10103. if postIndex > l {
  10104. return io.ErrUnexpectedEOF
  10105. }
  10106. m.Image = string(dAtA[iNdEx:postIndex])
  10107. iNdEx = postIndex
  10108. case 4:
  10109. if wireType != 2 {
  10110. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  10111. }
  10112. var msglen int
  10113. for shift := uint(0); ; shift += 7 {
  10114. if shift >= 64 {
  10115. return ErrIntOverflowApi
  10116. }
  10117. if iNdEx >= l {
  10118. return io.ErrUnexpectedEOF
  10119. }
  10120. b := dAtA[iNdEx]
  10121. iNdEx++
  10122. msglen |= (int(b) & 0x7F) << shift
  10123. if b < 0x80 {
  10124. break
  10125. }
  10126. }
  10127. if msglen < 0 {
  10128. return ErrInvalidLengthApi
  10129. }
  10130. postIndex := iNdEx + msglen
  10131. if postIndex > l {
  10132. return io.ErrUnexpectedEOF
  10133. }
  10134. if m.Usage == nil {
  10135. m.Usage = &Usage{}
  10136. }
  10137. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10138. return err
  10139. }
  10140. iNdEx = postIndex
  10141. case 5:
  10142. if wireType != 2 {
  10143. return fmt.Errorf("proto: wrong wireType = %d for field WebImage", wireType)
  10144. }
  10145. var stringLen uint64
  10146. for shift := uint(0); ; shift += 7 {
  10147. if shift >= 64 {
  10148. return ErrIntOverflowApi
  10149. }
  10150. if iNdEx >= l {
  10151. return io.ErrUnexpectedEOF
  10152. }
  10153. b := dAtA[iNdEx]
  10154. iNdEx++
  10155. stringLen |= (uint64(b) & 0x7F) << shift
  10156. if b < 0x80 {
  10157. break
  10158. }
  10159. }
  10160. intStringLen := int(stringLen)
  10161. if intStringLen < 0 {
  10162. return ErrInvalidLengthApi
  10163. }
  10164. postIndex := iNdEx + intStringLen
  10165. if postIndex > l {
  10166. return io.ErrUnexpectedEOF
  10167. }
  10168. m.WebImage = string(dAtA[iNdEx:postIndex])
  10169. iNdEx = postIndex
  10170. case 6:
  10171. if wireType != 2 {
  10172. return fmt.Errorf("proto: wrong wireType = %d for field MobileImage", wireType)
  10173. }
  10174. var stringLen uint64
  10175. for shift := uint(0); ; shift += 7 {
  10176. if shift >= 64 {
  10177. return ErrIntOverflowApi
  10178. }
  10179. if iNdEx >= l {
  10180. return io.ErrUnexpectedEOF
  10181. }
  10182. b := dAtA[iNdEx]
  10183. iNdEx++
  10184. stringLen |= (uint64(b) & 0x7F) << shift
  10185. if b < 0x80 {
  10186. break
  10187. }
  10188. }
  10189. intStringLen := int(stringLen)
  10190. if intStringLen < 0 {
  10191. return ErrInvalidLengthApi
  10192. }
  10193. postIndex := iNdEx + intStringLen
  10194. if postIndex > l {
  10195. return io.ErrUnexpectedEOF
  10196. }
  10197. m.MobileImage = string(dAtA[iNdEx:postIndex])
  10198. iNdEx = postIndex
  10199. default:
  10200. iNdEx = preIndex
  10201. skippy, err := skipApi(dAtA[iNdEx:])
  10202. if err != nil {
  10203. return err
  10204. }
  10205. if skippy < 0 {
  10206. return ErrInvalidLengthApi
  10207. }
  10208. if (iNdEx + skippy) > l {
  10209. return io.ErrUnexpectedEOF
  10210. }
  10211. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10212. iNdEx += skippy
  10213. }
  10214. }
  10215. if iNdEx > l {
  10216. return io.ErrUnexpectedEOF
  10217. }
  10218. return nil
  10219. }
  10220. func (m *CapsuleGetDetailResp_List) Unmarshal(dAtA []byte) error {
  10221. l := len(dAtA)
  10222. iNdEx := 0
  10223. for iNdEx < l {
  10224. preIndex := iNdEx
  10225. var wire uint64
  10226. for shift := uint(0); ; shift += 7 {
  10227. if shift >= 64 {
  10228. return ErrIntOverflowApi
  10229. }
  10230. if iNdEx >= l {
  10231. return io.ErrUnexpectedEOF
  10232. }
  10233. b := dAtA[iNdEx]
  10234. iNdEx++
  10235. wire |= (uint64(b) & 0x7F) << shift
  10236. if b < 0x80 {
  10237. break
  10238. }
  10239. }
  10240. fieldNum := int32(wire >> 3)
  10241. wireType := int(wire & 0x7)
  10242. if wireType == 4 {
  10243. return fmt.Errorf("proto: List: wiretype end group for non-group")
  10244. }
  10245. if fieldNum <= 0 {
  10246. return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
  10247. }
  10248. switch fieldNum {
  10249. case 1:
  10250. if wireType != 0 {
  10251. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  10252. }
  10253. m.Num = 0
  10254. for shift := uint(0); ; shift += 7 {
  10255. if shift >= 64 {
  10256. return ErrIntOverflowApi
  10257. }
  10258. if iNdEx >= l {
  10259. return io.ErrUnexpectedEOF
  10260. }
  10261. b := dAtA[iNdEx]
  10262. iNdEx++
  10263. m.Num |= (int64(b) & 0x7F) << shift
  10264. if b < 0x80 {
  10265. break
  10266. }
  10267. }
  10268. case 2:
  10269. if wireType != 2 {
  10270. return fmt.Errorf("proto: wrong wireType = %d for field Gift", wireType)
  10271. }
  10272. var stringLen uint64
  10273. for shift := uint(0); ; shift += 7 {
  10274. if shift >= 64 {
  10275. return ErrIntOverflowApi
  10276. }
  10277. if iNdEx >= l {
  10278. return io.ErrUnexpectedEOF
  10279. }
  10280. b := dAtA[iNdEx]
  10281. iNdEx++
  10282. stringLen |= (uint64(b) & 0x7F) << shift
  10283. if b < 0x80 {
  10284. break
  10285. }
  10286. }
  10287. intStringLen := int(stringLen)
  10288. if intStringLen < 0 {
  10289. return ErrInvalidLengthApi
  10290. }
  10291. postIndex := iNdEx + intStringLen
  10292. if postIndex > l {
  10293. return io.ErrUnexpectedEOF
  10294. }
  10295. m.Gift = string(dAtA[iNdEx:postIndex])
  10296. iNdEx = postIndex
  10297. case 3:
  10298. if wireType != 2 {
  10299. return fmt.Errorf("proto: wrong wireType = %d for field Date", wireType)
  10300. }
  10301. var stringLen uint64
  10302. for shift := uint(0); ; shift += 7 {
  10303. if shift >= 64 {
  10304. return ErrIntOverflowApi
  10305. }
  10306. if iNdEx >= l {
  10307. return io.ErrUnexpectedEOF
  10308. }
  10309. b := dAtA[iNdEx]
  10310. iNdEx++
  10311. stringLen |= (uint64(b) & 0x7F) << shift
  10312. if b < 0x80 {
  10313. break
  10314. }
  10315. }
  10316. intStringLen := int(stringLen)
  10317. if intStringLen < 0 {
  10318. return ErrInvalidLengthApi
  10319. }
  10320. postIndex := iNdEx + intStringLen
  10321. if postIndex > l {
  10322. return io.ErrUnexpectedEOF
  10323. }
  10324. m.Date = string(dAtA[iNdEx:postIndex])
  10325. iNdEx = postIndex
  10326. case 4:
  10327. if wireType != 2 {
  10328. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  10329. }
  10330. var stringLen uint64
  10331. for shift := uint(0); ; shift += 7 {
  10332. if shift >= 64 {
  10333. return ErrIntOverflowApi
  10334. }
  10335. if iNdEx >= l {
  10336. return io.ErrUnexpectedEOF
  10337. }
  10338. b := dAtA[iNdEx]
  10339. iNdEx++
  10340. stringLen |= (uint64(b) & 0x7F) << shift
  10341. if b < 0x80 {
  10342. break
  10343. }
  10344. }
  10345. intStringLen := int(stringLen)
  10346. if intStringLen < 0 {
  10347. return ErrInvalidLengthApi
  10348. }
  10349. postIndex := iNdEx + intStringLen
  10350. if postIndex > l {
  10351. return io.ErrUnexpectedEOF
  10352. }
  10353. m.Name = string(dAtA[iNdEx:postIndex])
  10354. iNdEx = postIndex
  10355. default:
  10356. iNdEx = preIndex
  10357. skippy, err := skipApi(dAtA[iNdEx:])
  10358. if err != nil {
  10359. return err
  10360. }
  10361. if skippy < 0 {
  10362. return ErrInvalidLengthApi
  10363. }
  10364. if (iNdEx + skippy) > l {
  10365. return io.ErrUnexpectedEOF
  10366. }
  10367. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10368. iNdEx += skippy
  10369. }
  10370. }
  10371. if iNdEx > l {
  10372. return io.ErrUnexpectedEOF
  10373. }
  10374. return nil
  10375. }
  10376. func (m *CapsuleGetDetailResp_CapsuleInfo) Unmarshal(dAtA []byte) error {
  10377. l := len(dAtA)
  10378. iNdEx := 0
  10379. for iNdEx < l {
  10380. preIndex := iNdEx
  10381. var wire uint64
  10382. for shift := uint(0); ; shift += 7 {
  10383. if shift >= 64 {
  10384. return ErrIntOverflowApi
  10385. }
  10386. if iNdEx >= l {
  10387. return io.ErrUnexpectedEOF
  10388. }
  10389. b := dAtA[iNdEx]
  10390. iNdEx++
  10391. wire |= (uint64(b) & 0x7F) << shift
  10392. if b < 0x80 {
  10393. break
  10394. }
  10395. }
  10396. fieldNum := int32(wire >> 3)
  10397. wireType := int(wire & 0x7)
  10398. if wireType == 4 {
  10399. return fmt.Errorf("proto: CapsuleInfo: wiretype end group for non-group")
  10400. }
  10401. if fieldNum <= 0 {
  10402. return fmt.Errorf("proto: CapsuleInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  10403. }
  10404. switch fieldNum {
  10405. case 1:
  10406. if wireType != 0 {
  10407. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  10408. }
  10409. var v int
  10410. for shift := uint(0); ; shift += 7 {
  10411. if shift >= 64 {
  10412. return ErrIntOverflowApi
  10413. }
  10414. if iNdEx >= l {
  10415. return io.ErrUnexpectedEOF
  10416. }
  10417. b := dAtA[iNdEx]
  10418. iNdEx++
  10419. v |= (int(b) & 0x7F) << shift
  10420. if b < 0x80 {
  10421. break
  10422. }
  10423. }
  10424. m.Status = bool(v != 0)
  10425. case 2:
  10426. if wireType != 0 {
  10427. return fmt.Errorf("proto: wrong wireType = %d for field Coin", wireType)
  10428. }
  10429. m.Coin = 0
  10430. for shift := uint(0); ; shift += 7 {
  10431. if shift >= 64 {
  10432. return ErrIntOverflowApi
  10433. }
  10434. if iNdEx >= l {
  10435. return io.ErrUnexpectedEOF
  10436. }
  10437. b := dAtA[iNdEx]
  10438. iNdEx++
  10439. m.Coin |= (int64(b) & 0x7F) << shift
  10440. if b < 0x80 {
  10441. break
  10442. }
  10443. }
  10444. case 3:
  10445. if wireType != 0 {
  10446. return fmt.Errorf("proto: wrong wireType = %d for field Change", wireType)
  10447. }
  10448. m.Change = 0
  10449. for shift := uint(0); ; shift += 7 {
  10450. if shift >= 64 {
  10451. return ErrIntOverflowApi
  10452. }
  10453. if iNdEx >= l {
  10454. return io.ErrUnexpectedEOF
  10455. }
  10456. b := dAtA[iNdEx]
  10457. iNdEx++
  10458. m.Change |= (int64(b) & 0x7F) << shift
  10459. if b < 0x80 {
  10460. break
  10461. }
  10462. }
  10463. case 4:
  10464. if wireType != 2 {
  10465. return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType)
  10466. }
  10467. var msglen int
  10468. for shift := uint(0); ; shift += 7 {
  10469. if shift >= 64 {
  10470. return ErrIntOverflowApi
  10471. }
  10472. if iNdEx >= l {
  10473. return io.ErrUnexpectedEOF
  10474. }
  10475. b := dAtA[iNdEx]
  10476. iNdEx++
  10477. msglen |= (int(b) & 0x7F) << shift
  10478. if b < 0x80 {
  10479. break
  10480. }
  10481. }
  10482. if msglen < 0 {
  10483. return ErrInvalidLengthApi
  10484. }
  10485. postIndex := iNdEx + msglen
  10486. if postIndex > l {
  10487. return io.ErrUnexpectedEOF
  10488. }
  10489. if m.Progress == nil {
  10490. m.Progress = &Progress{}
  10491. }
  10492. if err := m.Progress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10493. return err
  10494. }
  10495. iNdEx = postIndex
  10496. case 5:
  10497. if wireType != 2 {
  10498. return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
  10499. }
  10500. var stringLen uint64
  10501. for shift := uint(0); ; shift += 7 {
  10502. if shift >= 64 {
  10503. return ErrIntOverflowApi
  10504. }
  10505. if iNdEx >= l {
  10506. return io.ErrUnexpectedEOF
  10507. }
  10508. b := dAtA[iNdEx]
  10509. iNdEx++
  10510. stringLen |= (uint64(b) & 0x7F) << shift
  10511. if b < 0x80 {
  10512. break
  10513. }
  10514. }
  10515. intStringLen := int(stringLen)
  10516. if intStringLen < 0 {
  10517. return ErrInvalidLengthApi
  10518. }
  10519. postIndex := iNdEx + intStringLen
  10520. if postIndex > l {
  10521. return io.ErrUnexpectedEOF
  10522. }
  10523. m.Rule = string(dAtA[iNdEx:postIndex])
  10524. iNdEx = postIndex
  10525. case 6:
  10526. if wireType != 2 {
  10527. return fmt.Errorf("proto: wrong wireType = %d for field Gift", wireType)
  10528. }
  10529. var msglen int
  10530. for shift := uint(0); ; shift += 7 {
  10531. if shift >= 64 {
  10532. return ErrIntOverflowApi
  10533. }
  10534. if iNdEx >= l {
  10535. return io.ErrUnexpectedEOF
  10536. }
  10537. b := dAtA[iNdEx]
  10538. iNdEx++
  10539. msglen |= (int(b) & 0x7F) << shift
  10540. if b < 0x80 {
  10541. break
  10542. }
  10543. }
  10544. if msglen < 0 {
  10545. return ErrInvalidLengthApi
  10546. }
  10547. postIndex := iNdEx + msglen
  10548. if postIndex > l {
  10549. return io.ErrUnexpectedEOF
  10550. }
  10551. m.Gift = append(m.Gift, &CapsuleGetDetailResp_Gift{})
  10552. if err := m.Gift[len(m.Gift)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10553. return err
  10554. }
  10555. iNdEx = postIndex
  10556. case 7:
  10557. if wireType != 2 {
  10558. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  10559. }
  10560. var msglen int
  10561. for shift := uint(0); ; shift += 7 {
  10562. if shift >= 64 {
  10563. return ErrIntOverflowApi
  10564. }
  10565. if iNdEx >= l {
  10566. return io.ErrUnexpectedEOF
  10567. }
  10568. b := dAtA[iNdEx]
  10569. iNdEx++
  10570. msglen |= (int(b) & 0x7F) << shift
  10571. if b < 0x80 {
  10572. break
  10573. }
  10574. }
  10575. if msglen < 0 {
  10576. return ErrInvalidLengthApi
  10577. }
  10578. postIndex := iNdEx + msglen
  10579. if postIndex > l {
  10580. return io.ErrUnexpectedEOF
  10581. }
  10582. m.List = append(m.List, &CapsuleGetDetailResp_List{})
  10583. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10584. return err
  10585. }
  10586. iNdEx = postIndex
  10587. default:
  10588. iNdEx = preIndex
  10589. skippy, err := skipApi(dAtA[iNdEx:])
  10590. if err != nil {
  10591. return err
  10592. }
  10593. if skippy < 0 {
  10594. return ErrInvalidLengthApi
  10595. }
  10596. if (iNdEx + skippy) > l {
  10597. return io.ErrUnexpectedEOF
  10598. }
  10599. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10600. iNdEx += skippy
  10601. }
  10602. }
  10603. if iNdEx > l {
  10604. return io.ErrUnexpectedEOF
  10605. }
  10606. return nil
  10607. }
  10608. func (m *CapsuleOpenCapsuleReq) Unmarshal(dAtA []byte) error {
  10609. l := len(dAtA)
  10610. iNdEx := 0
  10611. for iNdEx < l {
  10612. preIndex := iNdEx
  10613. var wire uint64
  10614. for shift := uint(0); ; shift += 7 {
  10615. if shift >= 64 {
  10616. return ErrIntOverflowApi
  10617. }
  10618. if iNdEx >= l {
  10619. return io.ErrUnexpectedEOF
  10620. }
  10621. b := dAtA[iNdEx]
  10622. iNdEx++
  10623. wire |= (uint64(b) & 0x7F) << shift
  10624. if b < 0x80 {
  10625. break
  10626. }
  10627. }
  10628. fieldNum := int32(wire >> 3)
  10629. wireType := int(wire & 0x7)
  10630. if wireType == 4 {
  10631. return fmt.Errorf("proto: CapsuleOpenCapsuleReq: wiretype end group for non-group")
  10632. }
  10633. if fieldNum <= 0 {
  10634. return fmt.Errorf("proto: CapsuleOpenCapsuleReq: illegal tag %d (wire type %d)", fieldNum, wire)
  10635. }
  10636. switch fieldNum {
  10637. case 1:
  10638. if wireType != 0 {
  10639. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  10640. }
  10641. m.Uid = 0
  10642. for shift := uint(0); ; shift += 7 {
  10643. if shift >= 64 {
  10644. return ErrIntOverflowApi
  10645. }
  10646. if iNdEx >= l {
  10647. return io.ErrUnexpectedEOF
  10648. }
  10649. b := dAtA[iNdEx]
  10650. iNdEx++
  10651. m.Uid |= (int64(b) & 0x7F) << shift
  10652. if b < 0x80 {
  10653. break
  10654. }
  10655. }
  10656. case 2:
  10657. if wireType != 2 {
  10658. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  10659. }
  10660. var stringLen uint64
  10661. for shift := uint(0); ; shift += 7 {
  10662. if shift >= 64 {
  10663. return ErrIntOverflowApi
  10664. }
  10665. if iNdEx >= l {
  10666. return io.ErrUnexpectedEOF
  10667. }
  10668. b := dAtA[iNdEx]
  10669. iNdEx++
  10670. stringLen |= (uint64(b) & 0x7F) << shift
  10671. if b < 0x80 {
  10672. break
  10673. }
  10674. }
  10675. intStringLen := int(stringLen)
  10676. if intStringLen < 0 {
  10677. return ErrInvalidLengthApi
  10678. }
  10679. postIndex := iNdEx + intStringLen
  10680. if postIndex > l {
  10681. return io.ErrUnexpectedEOF
  10682. }
  10683. m.Type = string(dAtA[iNdEx:postIndex])
  10684. iNdEx = postIndex
  10685. case 3:
  10686. if wireType != 0 {
  10687. return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
  10688. }
  10689. m.Count = 0
  10690. for shift := uint(0); ; shift += 7 {
  10691. if shift >= 64 {
  10692. return ErrIntOverflowApi
  10693. }
  10694. if iNdEx >= l {
  10695. return io.ErrUnexpectedEOF
  10696. }
  10697. b := dAtA[iNdEx]
  10698. iNdEx++
  10699. m.Count |= (int64(b) & 0x7F) << shift
  10700. if b < 0x80 {
  10701. break
  10702. }
  10703. }
  10704. case 4:
  10705. if wireType != 2 {
  10706. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  10707. }
  10708. var stringLen uint64
  10709. for shift := uint(0); ; shift += 7 {
  10710. if shift >= 64 {
  10711. return ErrIntOverflowApi
  10712. }
  10713. if iNdEx >= l {
  10714. return io.ErrUnexpectedEOF
  10715. }
  10716. b := dAtA[iNdEx]
  10717. iNdEx++
  10718. stringLen |= (uint64(b) & 0x7F) << shift
  10719. if b < 0x80 {
  10720. break
  10721. }
  10722. }
  10723. intStringLen := int(stringLen)
  10724. if intStringLen < 0 {
  10725. return ErrInvalidLengthApi
  10726. }
  10727. postIndex := iNdEx + intStringLen
  10728. if postIndex > l {
  10729. return io.ErrUnexpectedEOF
  10730. }
  10731. m.Platform = string(dAtA[iNdEx:postIndex])
  10732. iNdEx = postIndex
  10733. default:
  10734. iNdEx = preIndex
  10735. skippy, err := skipApi(dAtA[iNdEx:])
  10736. if err != nil {
  10737. return err
  10738. }
  10739. if skippy < 0 {
  10740. return ErrInvalidLengthApi
  10741. }
  10742. if (iNdEx + skippy) > l {
  10743. return io.ErrUnexpectedEOF
  10744. }
  10745. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10746. iNdEx += skippy
  10747. }
  10748. }
  10749. if iNdEx > l {
  10750. return io.ErrUnexpectedEOF
  10751. }
  10752. return nil
  10753. }
  10754. func (m *CapsuleOpenCapsuleResp) Unmarshal(dAtA []byte) error {
  10755. l := len(dAtA)
  10756. iNdEx := 0
  10757. for iNdEx < l {
  10758. preIndex := iNdEx
  10759. var wire uint64
  10760. for shift := uint(0); ; shift += 7 {
  10761. if shift >= 64 {
  10762. return ErrIntOverflowApi
  10763. }
  10764. if iNdEx >= l {
  10765. return io.ErrUnexpectedEOF
  10766. }
  10767. b := dAtA[iNdEx]
  10768. iNdEx++
  10769. wire |= (uint64(b) & 0x7F) << shift
  10770. if b < 0x80 {
  10771. break
  10772. }
  10773. }
  10774. fieldNum := int32(wire >> 3)
  10775. wireType := int(wire & 0x7)
  10776. if wireType == 4 {
  10777. return fmt.Errorf("proto: CapsuleOpenCapsuleResp: wiretype end group for non-group")
  10778. }
  10779. if fieldNum <= 0 {
  10780. return fmt.Errorf("proto: CapsuleOpenCapsuleResp: illegal tag %d (wire type %d)", fieldNum, wire)
  10781. }
  10782. switch fieldNum {
  10783. case 1:
  10784. if wireType != 0 {
  10785. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  10786. }
  10787. var v int
  10788. for shift := uint(0); ; shift += 7 {
  10789. if shift >= 64 {
  10790. return ErrIntOverflowApi
  10791. }
  10792. if iNdEx >= l {
  10793. return io.ErrUnexpectedEOF
  10794. }
  10795. b := dAtA[iNdEx]
  10796. iNdEx++
  10797. v |= (int(b) & 0x7F) << shift
  10798. if b < 0x80 {
  10799. break
  10800. }
  10801. }
  10802. m.Status = bool(v != 0)
  10803. case 2:
  10804. if wireType != 2 {
  10805. return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
  10806. }
  10807. var stringLen uint64
  10808. for shift := uint(0); ; shift += 7 {
  10809. if shift >= 64 {
  10810. return ErrIntOverflowApi
  10811. }
  10812. if iNdEx >= l {
  10813. return io.ErrUnexpectedEOF
  10814. }
  10815. b := dAtA[iNdEx]
  10816. iNdEx++
  10817. stringLen |= (uint64(b) & 0x7F) << shift
  10818. if b < 0x80 {
  10819. break
  10820. }
  10821. }
  10822. intStringLen := int(stringLen)
  10823. if intStringLen < 0 {
  10824. return ErrInvalidLengthApi
  10825. }
  10826. postIndex := iNdEx + intStringLen
  10827. if postIndex > l {
  10828. return io.ErrUnexpectedEOF
  10829. }
  10830. m.Text = append(m.Text, string(dAtA[iNdEx:postIndex]))
  10831. iNdEx = postIndex
  10832. case 3:
  10833. if wireType != 0 {
  10834. return fmt.Errorf("proto: wrong wireType = %d for field IsEntity", wireType)
  10835. }
  10836. var v int
  10837. for shift := uint(0); ; shift += 7 {
  10838. if shift >= 64 {
  10839. return ErrIntOverflowApi
  10840. }
  10841. if iNdEx >= l {
  10842. return io.ErrUnexpectedEOF
  10843. }
  10844. b := dAtA[iNdEx]
  10845. iNdEx++
  10846. v |= (int(b) & 0x7F) << shift
  10847. if b < 0x80 {
  10848. break
  10849. }
  10850. }
  10851. m.IsEntity = bool(v != 0)
  10852. case 4:
  10853. if wireType != 2 {
  10854. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  10855. }
  10856. var msglen int
  10857. for shift := uint(0); ; shift += 7 {
  10858. if shift >= 64 {
  10859. return ErrIntOverflowApi
  10860. }
  10861. if iNdEx >= l {
  10862. return io.ErrUnexpectedEOF
  10863. }
  10864. b := dAtA[iNdEx]
  10865. iNdEx++
  10866. msglen |= (int(b) & 0x7F) << shift
  10867. if b < 0x80 {
  10868. break
  10869. }
  10870. }
  10871. if msglen < 0 {
  10872. return ErrInvalidLengthApi
  10873. }
  10874. postIndex := iNdEx + msglen
  10875. if postIndex > l {
  10876. return io.ErrUnexpectedEOF
  10877. }
  10878. if m.Info == nil {
  10879. m.Info = &CapsuleOpenCapsuleResp_Info{}
  10880. }
  10881. if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10882. return err
  10883. }
  10884. iNdEx = postIndex
  10885. case 5:
  10886. if wireType != 2 {
  10887. return fmt.Errorf("proto: wrong wireType = %d for field ShowTitle", wireType)
  10888. }
  10889. var stringLen uint64
  10890. for shift := uint(0); ; shift += 7 {
  10891. if shift >= 64 {
  10892. return ErrIntOverflowApi
  10893. }
  10894. if iNdEx >= l {
  10895. return io.ErrUnexpectedEOF
  10896. }
  10897. b := dAtA[iNdEx]
  10898. iNdEx++
  10899. stringLen |= (uint64(b) & 0x7F) << shift
  10900. if b < 0x80 {
  10901. break
  10902. }
  10903. }
  10904. intStringLen := int(stringLen)
  10905. if intStringLen < 0 {
  10906. return ErrInvalidLengthApi
  10907. }
  10908. postIndex := iNdEx + intStringLen
  10909. if postIndex > l {
  10910. return io.ErrUnexpectedEOF
  10911. }
  10912. m.ShowTitle = string(dAtA[iNdEx:postIndex])
  10913. iNdEx = postIndex
  10914. case 6:
  10915. if wireType != 2 {
  10916. return fmt.Errorf("proto: wrong wireType = %d for field Awards", wireType)
  10917. }
  10918. var msglen int
  10919. for shift := uint(0); ; shift += 7 {
  10920. if shift >= 64 {
  10921. return ErrIntOverflowApi
  10922. }
  10923. if iNdEx >= l {
  10924. return io.ErrUnexpectedEOF
  10925. }
  10926. b := dAtA[iNdEx]
  10927. iNdEx++
  10928. msglen |= (int(b) & 0x7F) << shift
  10929. if b < 0x80 {
  10930. break
  10931. }
  10932. }
  10933. if msglen < 0 {
  10934. return ErrInvalidLengthApi
  10935. }
  10936. postIndex := iNdEx + msglen
  10937. if postIndex > l {
  10938. return io.ErrUnexpectedEOF
  10939. }
  10940. m.Awards = append(m.Awards, &CapsuleOpenCapsuleResp_Award{})
  10941. if err := m.Awards[len(m.Awards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  10942. return err
  10943. }
  10944. iNdEx = postIndex
  10945. default:
  10946. iNdEx = preIndex
  10947. skippy, err := skipApi(dAtA[iNdEx:])
  10948. if err != nil {
  10949. return err
  10950. }
  10951. if skippy < 0 {
  10952. return ErrInvalidLengthApi
  10953. }
  10954. if (iNdEx + skippy) > l {
  10955. return io.ErrUnexpectedEOF
  10956. }
  10957. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  10958. iNdEx += skippy
  10959. }
  10960. }
  10961. if iNdEx > l {
  10962. return io.ErrUnexpectedEOF
  10963. }
  10964. return nil
  10965. }
  10966. func (m *CapsuleOpenCapsuleResp_CapsuleInfo) Unmarshal(dAtA []byte) error {
  10967. l := len(dAtA)
  10968. iNdEx := 0
  10969. for iNdEx < l {
  10970. preIndex := iNdEx
  10971. var wire uint64
  10972. for shift := uint(0); ; shift += 7 {
  10973. if shift >= 64 {
  10974. return ErrIntOverflowApi
  10975. }
  10976. if iNdEx >= l {
  10977. return io.ErrUnexpectedEOF
  10978. }
  10979. b := dAtA[iNdEx]
  10980. iNdEx++
  10981. wire |= (uint64(b) & 0x7F) << shift
  10982. if b < 0x80 {
  10983. break
  10984. }
  10985. }
  10986. fieldNum := int32(wire >> 3)
  10987. wireType := int(wire & 0x7)
  10988. if wireType == 4 {
  10989. return fmt.Errorf("proto: CapsuleInfo: wiretype end group for non-group")
  10990. }
  10991. if fieldNum <= 0 {
  10992. return fmt.Errorf("proto: CapsuleInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  10993. }
  10994. switch fieldNum {
  10995. case 1:
  10996. if wireType != 0 {
  10997. return fmt.Errorf("proto: wrong wireType = %d for field Coin", wireType)
  10998. }
  10999. m.Coin = 0
  11000. for shift := uint(0); ; shift += 7 {
  11001. if shift >= 64 {
  11002. return ErrIntOverflowApi
  11003. }
  11004. if iNdEx >= l {
  11005. return io.ErrUnexpectedEOF
  11006. }
  11007. b := dAtA[iNdEx]
  11008. iNdEx++
  11009. m.Coin |= (int64(b) & 0x7F) << shift
  11010. if b < 0x80 {
  11011. break
  11012. }
  11013. }
  11014. case 2:
  11015. if wireType != 0 {
  11016. return fmt.Errorf("proto: wrong wireType = %d for field Change", wireType)
  11017. }
  11018. m.Change = 0
  11019. for shift := uint(0); ; shift += 7 {
  11020. if shift >= 64 {
  11021. return ErrIntOverflowApi
  11022. }
  11023. if iNdEx >= l {
  11024. return io.ErrUnexpectedEOF
  11025. }
  11026. b := dAtA[iNdEx]
  11027. iNdEx++
  11028. m.Change |= (int64(b) & 0x7F) << shift
  11029. if b < 0x80 {
  11030. break
  11031. }
  11032. }
  11033. case 3:
  11034. if wireType != 2 {
  11035. return fmt.Errorf("proto: wrong wireType = %d for field Progress", wireType)
  11036. }
  11037. var msglen int
  11038. for shift := uint(0); ; shift += 7 {
  11039. if shift >= 64 {
  11040. return ErrIntOverflowApi
  11041. }
  11042. if iNdEx >= l {
  11043. return io.ErrUnexpectedEOF
  11044. }
  11045. b := dAtA[iNdEx]
  11046. iNdEx++
  11047. msglen |= (int(b) & 0x7F) << shift
  11048. if b < 0x80 {
  11049. break
  11050. }
  11051. }
  11052. if msglen < 0 {
  11053. return ErrInvalidLengthApi
  11054. }
  11055. postIndex := iNdEx + msglen
  11056. if postIndex > l {
  11057. return io.ErrUnexpectedEOF
  11058. }
  11059. if m.Progress == nil {
  11060. m.Progress = &Progress{}
  11061. }
  11062. if err := m.Progress.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11063. return err
  11064. }
  11065. iNdEx = postIndex
  11066. default:
  11067. iNdEx = preIndex
  11068. skippy, err := skipApi(dAtA[iNdEx:])
  11069. if err != nil {
  11070. return err
  11071. }
  11072. if skippy < 0 {
  11073. return ErrInvalidLengthApi
  11074. }
  11075. if (iNdEx + skippy) > l {
  11076. return io.ErrUnexpectedEOF
  11077. }
  11078. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11079. iNdEx += skippy
  11080. }
  11081. }
  11082. if iNdEx > l {
  11083. return io.ErrUnexpectedEOF
  11084. }
  11085. return nil
  11086. }
  11087. func (m *CapsuleOpenCapsuleResp_Info) Unmarshal(dAtA []byte) error {
  11088. l := len(dAtA)
  11089. iNdEx := 0
  11090. for iNdEx < l {
  11091. preIndex := iNdEx
  11092. var wire uint64
  11093. for shift := uint(0); ; shift += 7 {
  11094. if shift >= 64 {
  11095. return ErrIntOverflowApi
  11096. }
  11097. if iNdEx >= l {
  11098. return io.ErrUnexpectedEOF
  11099. }
  11100. b := dAtA[iNdEx]
  11101. iNdEx++
  11102. wire |= (uint64(b) & 0x7F) << shift
  11103. if b < 0x80 {
  11104. break
  11105. }
  11106. }
  11107. fieldNum := int32(wire >> 3)
  11108. wireType := int(wire & 0x7)
  11109. if wireType == 4 {
  11110. return fmt.Errorf("proto: Info: wiretype end group for non-group")
  11111. }
  11112. if fieldNum <= 0 {
  11113. return fmt.Errorf("proto: Info: illegal tag %d (wire type %d)", fieldNum, wire)
  11114. }
  11115. switch fieldNum {
  11116. case 1:
  11117. if wireType != 2 {
  11118. return fmt.Errorf("proto: wrong wireType = %d for field Normal", wireType)
  11119. }
  11120. var msglen int
  11121. for shift := uint(0); ; shift += 7 {
  11122. if shift >= 64 {
  11123. return ErrIntOverflowApi
  11124. }
  11125. if iNdEx >= l {
  11126. return io.ErrUnexpectedEOF
  11127. }
  11128. b := dAtA[iNdEx]
  11129. iNdEx++
  11130. msglen |= (int(b) & 0x7F) << shift
  11131. if b < 0x80 {
  11132. break
  11133. }
  11134. }
  11135. if msglen < 0 {
  11136. return ErrInvalidLengthApi
  11137. }
  11138. postIndex := iNdEx + msglen
  11139. if postIndex > l {
  11140. return io.ErrUnexpectedEOF
  11141. }
  11142. if m.Normal == nil {
  11143. m.Normal = &CapsuleOpenCapsuleResp_CapsuleInfo{}
  11144. }
  11145. if err := m.Normal.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11146. return err
  11147. }
  11148. iNdEx = postIndex
  11149. case 2:
  11150. if wireType != 2 {
  11151. return fmt.Errorf("proto: wrong wireType = %d for field Colorful", wireType)
  11152. }
  11153. var msglen int
  11154. for shift := uint(0); ; shift += 7 {
  11155. if shift >= 64 {
  11156. return ErrIntOverflowApi
  11157. }
  11158. if iNdEx >= l {
  11159. return io.ErrUnexpectedEOF
  11160. }
  11161. b := dAtA[iNdEx]
  11162. iNdEx++
  11163. msglen |= (int(b) & 0x7F) << shift
  11164. if b < 0x80 {
  11165. break
  11166. }
  11167. }
  11168. if msglen < 0 {
  11169. return ErrInvalidLengthApi
  11170. }
  11171. postIndex := iNdEx + msglen
  11172. if postIndex > l {
  11173. return io.ErrUnexpectedEOF
  11174. }
  11175. if m.Colorful == nil {
  11176. m.Colorful = &CapsuleOpenCapsuleResp_CapsuleInfo{}
  11177. }
  11178. if err := m.Colorful.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11179. return err
  11180. }
  11181. iNdEx = postIndex
  11182. default:
  11183. iNdEx = preIndex
  11184. skippy, err := skipApi(dAtA[iNdEx:])
  11185. if err != nil {
  11186. return err
  11187. }
  11188. if skippy < 0 {
  11189. return ErrInvalidLengthApi
  11190. }
  11191. if (iNdEx + skippy) > l {
  11192. return io.ErrUnexpectedEOF
  11193. }
  11194. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11195. iNdEx += skippy
  11196. }
  11197. }
  11198. if iNdEx > l {
  11199. return io.ErrUnexpectedEOF
  11200. }
  11201. return nil
  11202. }
  11203. func (m *CapsuleOpenCapsuleResp_Award) Unmarshal(dAtA []byte) error {
  11204. l := len(dAtA)
  11205. iNdEx := 0
  11206. for iNdEx < l {
  11207. preIndex := iNdEx
  11208. var wire uint64
  11209. for shift := uint(0); ; shift += 7 {
  11210. if shift >= 64 {
  11211. return ErrIntOverflowApi
  11212. }
  11213. if iNdEx >= l {
  11214. return io.ErrUnexpectedEOF
  11215. }
  11216. b := dAtA[iNdEx]
  11217. iNdEx++
  11218. wire |= (uint64(b) & 0x7F) << shift
  11219. if b < 0x80 {
  11220. break
  11221. }
  11222. }
  11223. fieldNum := int32(wire >> 3)
  11224. wireType := int(wire & 0x7)
  11225. if wireType == 4 {
  11226. return fmt.Errorf("proto: Award: wiretype end group for non-group")
  11227. }
  11228. if fieldNum <= 0 {
  11229. return fmt.Errorf("proto: Award: illegal tag %d (wire type %d)", fieldNum, wire)
  11230. }
  11231. switch fieldNum {
  11232. case 2:
  11233. if wireType != 2 {
  11234. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  11235. }
  11236. var stringLen uint64
  11237. for shift := uint(0); ; shift += 7 {
  11238. if shift >= 64 {
  11239. return ErrIntOverflowApi
  11240. }
  11241. if iNdEx >= l {
  11242. return io.ErrUnexpectedEOF
  11243. }
  11244. b := dAtA[iNdEx]
  11245. iNdEx++
  11246. stringLen |= (uint64(b) & 0x7F) << shift
  11247. if b < 0x80 {
  11248. break
  11249. }
  11250. }
  11251. intStringLen := int(stringLen)
  11252. if intStringLen < 0 {
  11253. return ErrInvalidLengthApi
  11254. }
  11255. postIndex := iNdEx + intStringLen
  11256. if postIndex > l {
  11257. return io.ErrUnexpectedEOF
  11258. }
  11259. m.Name = string(dAtA[iNdEx:postIndex])
  11260. iNdEx = postIndex
  11261. case 3:
  11262. if wireType != 0 {
  11263. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  11264. }
  11265. m.Num = 0
  11266. for shift := uint(0); ; shift += 7 {
  11267. if shift >= 64 {
  11268. return ErrIntOverflowApi
  11269. }
  11270. if iNdEx >= l {
  11271. return io.ErrUnexpectedEOF
  11272. }
  11273. b := dAtA[iNdEx]
  11274. iNdEx++
  11275. m.Num |= (int64(b) & 0x7F) << shift
  11276. if b < 0x80 {
  11277. break
  11278. }
  11279. }
  11280. case 4:
  11281. if wireType != 2 {
  11282. return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
  11283. }
  11284. var stringLen uint64
  11285. for shift := uint(0); ; shift += 7 {
  11286. if shift >= 64 {
  11287. return ErrIntOverflowApi
  11288. }
  11289. if iNdEx >= l {
  11290. return io.ErrUnexpectedEOF
  11291. }
  11292. b := dAtA[iNdEx]
  11293. iNdEx++
  11294. stringLen |= (uint64(b) & 0x7F) << shift
  11295. if b < 0x80 {
  11296. break
  11297. }
  11298. }
  11299. intStringLen := int(stringLen)
  11300. if intStringLen < 0 {
  11301. return ErrInvalidLengthApi
  11302. }
  11303. postIndex := iNdEx + intStringLen
  11304. if postIndex > l {
  11305. return io.ErrUnexpectedEOF
  11306. }
  11307. m.Text = string(dAtA[iNdEx:postIndex])
  11308. iNdEx = postIndex
  11309. case 5:
  11310. if wireType != 2 {
  11311. return fmt.Errorf("proto: wrong wireType = %d for field Img", wireType)
  11312. }
  11313. var stringLen uint64
  11314. for shift := uint(0); ; shift += 7 {
  11315. if shift >= 64 {
  11316. return ErrIntOverflowApi
  11317. }
  11318. if iNdEx >= l {
  11319. return io.ErrUnexpectedEOF
  11320. }
  11321. b := dAtA[iNdEx]
  11322. iNdEx++
  11323. stringLen |= (uint64(b) & 0x7F) << shift
  11324. if b < 0x80 {
  11325. break
  11326. }
  11327. }
  11328. intStringLen := int(stringLen)
  11329. if intStringLen < 0 {
  11330. return ErrInvalidLengthApi
  11331. }
  11332. postIndex := iNdEx + intStringLen
  11333. if postIndex > l {
  11334. return io.ErrUnexpectedEOF
  11335. }
  11336. m.Img = string(dAtA[iNdEx:postIndex])
  11337. iNdEx = postIndex
  11338. case 6:
  11339. if wireType != 2 {
  11340. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  11341. }
  11342. var msglen int
  11343. for shift := uint(0); ; shift += 7 {
  11344. if shift >= 64 {
  11345. return ErrIntOverflowApi
  11346. }
  11347. if iNdEx >= l {
  11348. return io.ErrUnexpectedEOF
  11349. }
  11350. b := dAtA[iNdEx]
  11351. iNdEx++
  11352. msglen |= (int(b) & 0x7F) << shift
  11353. if b < 0x80 {
  11354. break
  11355. }
  11356. }
  11357. if msglen < 0 {
  11358. return ErrInvalidLengthApi
  11359. }
  11360. postIndex := iNdEx + msglen
  11361. if postIndex > l {
  11362. return io.ErrUnexpectedEOF
  11363. }
  11364. if m.Usage == nil {
  11365. m.Usage = &Usage{}
  11366. }
  11367. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11368. return err
  11369. }
  11370. iNdEx = postIndex
  11371. case 7:
  11372. if wireType != 2 {
  11373. return fmt.Errorf("proto: wrong wireType = %d for field WebImage", wireType)
  11374. }
  11375. var stringLen uint64
  11376. for shift := uint(0); ; shift += 7 {
  11377. if shift >= 64 {
  11378. return ErrIntOverflowApi
  11379. }
  11380. if iNdEx >= l {
  11381. return io.ErrUnexpectedEOF
  11382. }
  11383. b := dAtA[iNdEx]
  11384. iNdEx++
  11385. stringLen |= (uint64(b) & 0x7F) << shift
  11386. if b < 0x80 {
  11387. break
  11388. }
  11389. }
  11390. intStringLen := int(stringLen)
  11391. if intStringLen < 0 {
  11392. return ErrInvalidLengthApi
  11393. }
  11394. postIndex := iNdEx + intStringLen
  11395. if postIndex > l {
  11396. return io.ErrUnexpectedEOF
  11397. }
  11398. m.WebImage = string(dAtA[iNdEx:postIndex])
  11399. iNdEx = postIndex
  11400. case 8:
  11401. if wireType != 2 {
  11402. return fmt.Errorf("proto: wrong wireType = %d for field MobileImage", wireType)
  11403. }
  11404. var stringLen uint64
  11405. for shift := uint(0); ; shift += 7 {
  11406. if shift >= 64 {
  11407. return ErrIntOverflowApi
  11408. }
  11409. if iNdEx >= l {
  11410. return io.ErrUnexpectedEOF
  11411. }
  11412. b := dAtA[iNdEx]
  11413. iNdEx++
  11414. stringLen |= (uint64(b) & 0x7F) << shift
  11415. if b < 0x80 {
  11416. break
  11417. }
  11418. }
  11419. intStringLen := int(stringLen)
  11420. if intStringLen < 0 {
  11421. return ErrInvalidLengthApi
  11422. }
  11423. postIndex := iNdEx + intStringLen
  11424. if postIndex > l {
  11425. return io.ErrUnexpectedEOF
  11426. }
  11427. m.MobileImage = string(dAtA[iNdEx:postIndex])
  11428. iNdEx = postIndex
  11429. default:
  11430. iNdEx = preIndex
  11431. skippy, err := skipApi(dAtA[iNdEx:])
  11432. if err != nil {
  11433. return err
  11434. }
  11435. if skippy < 0 {
  11436. return ErrInvalidLengthApi
  11437. }
  11438. if (iNdEx + skippy) > l {
  11439. return io.ErrUnexpectedEOF
  11440. }
  11441. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11442. iNdEx += skippy
  11443. }
  11444. }
  11445. if iNdEx > l {
  11446. return io.ErrUnexpectedEOF
  11447. }
  11448. return nil
  11449. }
  11450. func (m *CapsuleGetCapsuleInfoReq) Unmarshal(dAtA []byte) error {
  11451. l := len(dAtA)
  11452. iNdEx := 0
  11453. for iNdEx < l {
  11454. preIndex := iNdEx
  11455. var wire uint64
  11456. for shift := uint(0); ; shift += 7 {
  11457. if shift >= 64 {
  11458. return ErrIntOverflowApi
  11459. }
  11460. if iNdEx >= l {
  11461. return io.ErrUnexpectedEOF
  11462. }
  11463. b := dAtA[iNdEx]
  11464. iNdEx++
  11465. wire |= (uint64(b) & 0x7F) << shift
  11466. if b < 0x80 {
  11467. break
  11468. }
  11469. }
  11470. fieldNum := int32(wire >> 3)
  11471. wireType := int(wire & 0x7)
  11472. if wireType == 4 {
  11473. return fmt.Errorf("proto: CapsuleGetCapsuleInfoReq: wiretype end group for non-group")
  11474. }
  11475. if fieldNum <= 0 {
  11476. return fmt.Errorf("proto: CapsuleGetCapsuleInfoReq: illegal tag %d (wire type %d)", fieldNum, wire)
  11477. }
  11478. switch fieldNum {
  11479. case 1:
  11480. if wireType != 0 {
  11481. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  11482. }
  11483. m.Uid = 0
  11484. for shift := uint(0); ; shift += 7 {
  11485. if shift >= 64 {
  11486. return ErrIntOverflowApi
  11487. }
  11488. if iNdEx >= l {
  11489. return io.ErrUnexpectedEOF
  11490. }
  11491. b := dAtA[iNdEx]
  11492. iNdEx++
  11493. m.Uid |= (int64(b) & 0x7F) << shift
  11494. if b < 0x80 {
  11495. break
  11496. }
  11497. }
  11498. case 2:
  11499. if wireType != 2 {
  11500. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  11501. }
  11502. var stringLen uint64
  11503. for shift := uint(0); ; shift += 7 {
  11504. if shift >= 64 {
  11505. return ErrIntOverflowApi
  11506. }
  11507. if iNdEx >= l {
  11508. return io.ErrUnexpectedEOF
  11509. }
  11510. b := dAtA[iNdEx]
  11511. iNdEx++
  11512. stringLen |= (uint64(b) & 0x7F) << shift
  11513. if b < 0x80 {
  11514. break
  11515. }
  11516. }
  11517. intStringLen := int(stringLen)
  11518. if intStringLen < 0 {
  11519. return ErrInvalidLengthApi
  11520. }
  11521. postIndex := iNdEx + intStringLen
  11522. if postIndex > l {
  11523. return io.ErrUnexpectedEOF
  11524. }
  11525. m.Type = string(dAtA[iNdEx:postIndex])
  11526. iNdEx = postIndex
  11527. case 3:
  11528. if wireType != 2 {
  11529. return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  11530. }
  11531. var stringLen uint64
  11532. for shift := uint(0); ; shift += 7 {
  11533. if shift >= 64 {
  11534. return ErrIntOverflowApi
  11535. }
  11536. if iNdEx >= l {
  11537. return io.ErrUnexpectedEOF
  11538. }
  11539. b := dAtA[iNdEx]
  11540. iNdEx++
  11541. stringLen |= (uint64(b) & 0x7F) << shift
  11542. if b < 0x80 {
  11543. break
  11544. }
  11545. }
  11546. intStringLen := int(stringLen)
  11547. if intStringLen < 0 {
  11548. return ErrInvalidLengthApi
  11549. }
  11550. postIndex := iNdEx + intStringLen
  11551. if postIndex > l {
  11552. return io.ErrUnexpectedEOF
  11553. }
  11554. m.From = string(dAtA[iNdEx:postIndex])
  11555. iNdEx = postIndex
  11556. default:
  11557. iNdEx = preIndex
  11558. skippy, err := skipApi(dAtA[iNdEx:])
  11559. if err != nil {
  11560. return err
  11561. }
  11562. if skippy < 0 {
  11563. return ErrInvalidLengthApi
  11564. }
  11565. if (iNdEx + skippy) > l {
  11566. return io.ErrUnexpectedEOF
  11567. }
  11568. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11569. iNdEx += skippy
  11570. }
  11571. }
  11572. if iNdEx > l {
  11573. return io.ErrUnexpectedEOF
  11574. }
  11575. return nil
  11576. }
  11577. func (m *CapsuleGetCapsuleInfoResp) Unmarshal(dAtA []byte) error {
  11578. l := len(dAtA)
  11579. iNdEx := 0
  11580. for iNdEx < l {
  11581. preIndex := iNdEx
  11582. var wire uint64
  11583. for shift := uint(0); ; shift += 7 {
  11584. if shift >= 64 {
  11585. return ErrIntOverflowApi
  11586. }
  11587. if iNdEx >= l {
  11588. return io.ErrUnexpectedEOF
  11589. }
  11590. b := dAtA[iNdEx]
  11591. iNdEx++
  11592. wire |= (uint64(b) & 0x7F) << shift
  11593. if b < 0x80 {
  11594. break
  11595. }
  11596. }
  11597. fieldNum := int32(wire >> 3)
  11598. wireType := int(wire & 0x7)
  11599. if wireType == 4 {
  11600. return fmt.Errorf("proto: CapsuleGetCapsuleInfoResp: wiretype end group for non-group")
  11601. }
  11602. if fieldNum <= 0 {
  11603. return fmt.Errorf("proto: CapsuleGetCapsuleInfoResp: illegal tag %d (wire type %d)", fieldNum, wire)
  11604. }
  11605. switch fieldNum {
  11606. case 1:
  11607. if wireType != 0 {
  11608. return fmt.Errorf("proto: wrong wireType = %d for field Coin", wireType)
  11609. }
  11610. m.Coin = 0
  11611. for shift := uint(0); ; shift += 7 {
  11612. if shift >= 64 {
  11613. return ErrIntOverflowApi
  11614. }
  11615. if iNdEx >= l {
  11616. return io.ErrUnexpectedEOF
  11617. }
  11618. b := dAtA[iNdEx]
  11619. iNdEx++
  11620. m.Coin |= (int64(b) & 0x7F) << shift
  11621. if b < 0x80 {
  11622. break
  11623. }
  11624. }
  11625. case 2:
  11626. if wireType != 2 {
  11627. return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
  11628. }
  11629. var stringLen uint64
  11630. for shift := uint(0); ; shift += 7 {
  11631. if shift >= 64 {
  11632. return ErrIntOverflowApi
  11633. }
  11634. if iNdEx >= l {
  11635. return io.ErrUnexpectedEOF
  11636. }
  11637. b := dAtA[iNdEx]
  11638. iNdEx++
  11639. stringLen |= (uint64(b) & 0x7F) << shift
  11640. if b < 0x80 {
  11641. break
  11642. }
  11643. }
  11644. intStringLen := int(stringLen)
  11645. if intStringLen < 0 {
  11646. return ErrInvalidLengthApi
  11647. }
  11648. postIndex := iNdEx + intStringLen
  11649. if postIndex > l {
  11650. return io.ErrUnexpectedEOF
  11651. }
  11652. m.Rule = string(dAtA[iNdEx:postIndex])
  11653. iNdEx = postIndex
  11654. case 3:
  11655. if wireType != 2 {
  11656. return fmt.Errorf("proto: wrong wireType = %d for field GiftList", wireType)
  11657. }
  11658. var msglen int
  11659. for shift := uint(0); ; shift += 7 {
  11660. if shift >= 64 {
  11661. return ErrIntOverflowApi
  11662. }
  11663. if iNdEx >= l {
  11664. return io.ErrUnexpectedEOF
  11665. }
  11666. b := dAtA[iNdEx]
  11667. iNdEx++
  11668. msglen |= (int(b) & 0x7F) << shift
  11669. if b < 0x80 {
  11670. break
  11671. }
  11672. }
  11673. if msglen < 0 {
  11674. return ErrInvalidLengthApi
  11675. }
  11676. postIndex := iNdEx + msglen
  11677. if postIndex > l {
  11678. return io.ErrUnexpectedEOF
  11679. }
  11680. m.GiftList = append(m.GiftList, &CapsuleGetCapsuleInfoResp_GiftList{})
  11681. if err := m.GiftList[len(m.GiftList)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11682. return err
  11683. }
  11684. iNdEx = postIndex
  11685. case 4:
  11686. if wireType != 2 {
  11687. return fmt.Errorf("proto: wrong wireType = %d for field GiftFilter", wireType)
  11688. }
  11689. var msglen int
  11690. for shift := uint(0); ; shift += 7 {
  11691. if shift >= 64 {
  11692. return ErrIntOverflowApi
  11693. }
  11694. if iNdEx >= l {
  11695. return io.ErrUnexpectedEOF
  11696. }
  11697. b := dAtA[iNdEx]
  11698. iNdEx++
  11699. msglen |= (int(b) & 0x7F) << shift
  11700. if b < 0x80 {
  11701. break
  11702. }
  11703. }
  11704. if msglen < 0 {
  11705. return ErrInvalidLengthApi
  11706. }
  11707. postIndex := iNdEx + msglen
  11708. if postIndex > l {
  11709. return io.ErrUnexpectedEOF
  11710. }
  11711. m.GiftFilter = append(m.GiftFilter, &CapsuleGetCapsuleInfoResp_GiftFilter{})
  11712. if err := m.GiftFilter[len(m.GiftFilter)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11713. return err
  11714. }
  11715. iNdEx = postIndex
  11716. default:
  11717. iNdEx = preIndex
  11718. skippy, err := skipApi(dAtA[iNdEx:])
  11719. if err != nil {
  11720. return err
  11721. }
  11722. if skippy < 0 {
  11723. return ErrInvalidLengthApi
  11724. }
  11725. if (iNdEx + skippy) > l {
  11726. return io.ErrUnexpectedEOF
  11727. }
  11728. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  11729. iNdEx += skippy
  11730. }
  11731. }
  11732. if iNdEx > l {
  11733. return io.ErrUnexpectedEOF
  11734. }
  11735. return nil
  11736. }
  11737. func (m *CapsuleGetCapsuleInfoResp_GiftList) Unmarshal(dAtA []byte) error {
  11738. l := len(dAtA)
  11739. iNdEx := 0
  11740. for iNdEx < l {
  11741. preIndex := iNdEx
  11742. var wire uint64
  11743. for shift := uint(0); ; shift += 7 {
  11744. if shift >= 64 {
  11745. return ErrIntOverflowApi
  11746. }
  11747. if iNdEx >= l {
  11748. return io.ErrUnexpectedEOF
  11749. }
  11750. b := dAtA[iNdEx]
  11751. iNdEx++
  11752. wire |= (uint64(b) & 0x7F) << shift
  11753. if b < 0x80 {
  11754. break
  11755. }
  11756. }
  11757. fieldNum := int32(wire >> 3)
  11758. wireType := int(wire & 0x7)
  11759. if wireType == 4 {
  11760. return fmt.Errorf("proto: GiftList: wiretype end group for non-group")
  11761. }
  11762. if fieldNum <= 0 {
  11763. return fmt.Errorf("proto: GiftList: illegal tag %d (wire type %d)", fieldNum, wire)
  11764. }
  11765. switch fieldNum {
  11766. case 1:
  11767. if wireType != 0 {
  11768. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  11769. }
  11770. m.Id = 0
  11771. for shift := uint(0); ; shift += 7 {
  11772. if shift >= 64 {
  11773. return ErrIntOverflowApi
  11774. }
  11775. if iNdEx >= l {
  11776. return io.ErrUnexpectedEOF
  11777. }
  11778. b := dAtA[iNdEx]
  11779. iNdEx++
  11780. m.Id |= (int64(b) & 0x7F) << shift
  11781. if b < 0x80 {
  11782. break
  11783. }
  11784. }
  11785. case 2:
  11786. if wireType != 2 {
  11787. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  11788. }
  11789. var stringLen uint64
  11790. for shift := uint(0); ; shift += 7 {
  11791. if shift >= 64 {
  11792. return ErrIntOverflowApi
  11793. }
  11794. if iNdEx >= l {
  11795. return io.ErrUnexpectedEOF
  11796. }
  11797. b := dAtA[iNdEx]
  11798. iNdEx++
  11799. stringLen |= (uint64(b) & 0x7F) << shift
  11800. if b < 0x80 {
  11801. break
  11802. }
  11803. }
  11804. intStringLen := int(stringLen)
  11805. if intStringLen < 0 {
  11806. return ErrInvalidLengthApi
  11807. }
  11808. postIndex := iNdEx + intStringLen
  11809. if postIndex > l {
  11810. return io.ErrUnexpectedEOF
  11811. }
  11812. m.Name = string(dAtA[iNdEx:postIndex])
  11813. iNdEx = postIndex
  11814. case 3:
  11815. if wireType != 0 {
  11816. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  11817. }
  11818. m.Num = 0
  11819. for shift := uint(0); ; shift += 7 {
  11820. if shift >= 64 {
  11821. return ErrIntOverflowApi
  11822. }
  11823. if iNdEx >= l {
  11824. return io.ErrUnexpectedEOF
  11825. }
  11826. b := dAtA[iNdEx]
  11827. iNdEx++
  11828. m.Num |= (int64(b) & 0x7F) << shift
  11829. if b < 0x80 {
  11830. break
  11831. }
  11832. }
  11833. case 4:
  11834. if wireType != 0 {
  11835. return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType)
  11836. }
  11837. m.Weight = 0
  11838. for shift := uint(0); ; shift += 7 {
  11839. if shift >= 64 {
  11840. return ErrIntOverflowApi
  11841. }
  11842. if iNdEx >= l {
  11843. return io.ErrUnexpectedEOF
  11844. }
  11845. b := dAtA[iNdEx]
  11846. iNdEx++
  11847. m.Weight |= (int64(b) & 0x7F) << shift
  11848. if b < 0x80 {
  11849. break
  11850. }
  11851. }
  11852. case 5:
  11853. if wireType != 2 {
  11854. return fmt.Errorf("proto: wrong wireType = %d for field WebUrl", wireType)
  11855. }
  11856. var stringLen uint64
  11857. for shift := uint(0); ; shift += 7 {
  11858. if shift >= 64 {
  11859. return ErrIntOverflowApi
  11860. }
  11861. if iNdEx >= l {
  11862. return io.ErrUnexpectedEOF
  11863. }
  11864. b := dAtA[iNdEx]
  11865. iNdEx++
  11866. stringLen |= (uint64(b) & 0x7F) << shift
  11867. if b < 0x80 {
  11868. break
  11869. }
  11870. }
  11871. intStringLen := int(stringLen)
  11872. if intStringLen < 0 {
  11873. return ErrInvalidLengthApi
  11874. }
  11875. postIndex := iNdEx + intStringLen
  11876. if postIndex > l {
  11877. return io.ErrUnexpectedEOF
  11878. }
  11879. m.WebUrl = string(dAtA[iNdEx:postIndex])
  11880. iNdEx = postIndex
  11881. case 6:
  11882. if wireType != 2 {
  11883. return fmt.Errorf("proto: wrong wireType = %d for field MobileUrl", wireType)
  11884. }
  11885. var stringLen uint64
  11886. for shift := uint(0); ; shift += 7 {
  11887. if shift >= 64 {
  11888. return ErrIntOverflowApi
  11889. }
  11890. if iNdEx >= l {
  11891. return io.ErrUnexpectedEOF
  11892. }
  11893. b := dAtA[iNdEx]
  11894. iNdEx++
  11895. stringLen |= (uint64(b) & 0x7F) << shift
  11896. if b < 0x80 {
  11897. break
  11898. }
  11899. }
  11900. intStringLen := int(stringLen)
  11901. if intStringLen < 0 {
  11902. return ErrInvalidLengthApi
  11903. }
  11904. postIndex := iNdEx + intStringLen
  11905. if postIndex > l {
  11906. return io.ErrUnexpectedEOF
  11907. }
  11908. m.MobileUrl = string(dAtA[iNdEx:postIndex])
  11909. iNdEx = postIndex
  11910. case 7:
  11911. if wireType != 2 {
  11912. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  11913. }
  11914. var msglen int
  11915. for shift := uint(0); ; shift += 7 {
  11916. if shift >= 64 {
  11917. return ErrIntOverflowApi
  11918. }
  11919. if iNdEx >= l {
  11920. return io.ErrUnexpectedEOF
  11921. }
  11922. b := dAtA[iNdEx]
  11923. iNdEx++
  11924. msglen |= (int(b) & 0x7F) << shift
  11925. if b < 0x80 {
  11926. break
  11927. }
  11928. }
  11929. if msglen < 0 {
  11930. return ErrInvalidLengthApi
  11931. }
  11932. postIndex := iNdEx + msglen
  11933. if postIndex > l {
  11934. return io.ErrUnexpectedEOF
  11935. }
  11936. if m.Usage == nil {
  11937. m.Usage = &Usage{}
  11938. }
  11939. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  11940. return err
  11941. }
  11942. iNdEx = postIndex
  11943. case 8:
  11944. if wireType != 0 {
  11945. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  11946. }
  11947. m.Type = 0
  11948. for shift := uint(0); ; shift += 7 {
  11949. if shift >= 64 {
  11950. return ErrIntOverflowApi
  11951. }
  11952. if iNdEx >= l {
  11953. return io.ErrUnexpectedEOF
  11954. }
  11955. b := dAtA[iNdEx]
  11956. iNdEx++
  11957. m.Type |= (int64(b) & 0x7F) << shift
  11958. if b < 0x80 {
  11959. break
  11960. }
  11961. }
  11962. case 9:
  11963. if wireType != 2 {
  11964. return fmt.Errorf("proto: wrong wireType = %d for field Expire", wireType)
  11965. }
  11966. var stringLen uint64
  11967. for shift := uint(0); ; shift += 7 {
  11968. if shift >= 64 {
  11969. return ErrIntOverflowApi
  11970. }
  11971. if iNdEx >= l {
  11972. return io.ErrUnexpectedEOF
  11973. }
  11974. b := dAtA[iNdEx]
  11975. iNdEx++
  11976. stringLen |= (uint64(b) & 0x7F) << shift
  11977. if b < 0x80 {
  11978. break
  11979. }
  11980. }
  11981. intStringLen := int(stringLen)
  11982. if intStringLen < 0 {
  11983. return ErrInvalidLengthApi
  11984. }
  11985. postIndex := iNdEx + intStringLen
  11986. if postIndex > l {
  11987. return io.ErrUnexpectedEOF
  11988. }
  11989. m.Expire = string(dAtA[iNdEx:postIndex])
  11990. iNdEx = postIndex
  11991. default:
  11992. iNdEx = preIndex
  11993. skippy, err := skipApi(dAtA[iNdEx:])
  11994. if err != nil {
  11995. return err
  11996. }
  11997. if skippy < 0 {
  11998. return ErrInvalidLengthApi
  11999. }
  12000. if (iNdEx + skippy) > l {
  12001. return io.ErrUnexpectedEOF
  12002. }
  12003. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12004. iNdEx += skippy
  12005. }
  12006. }
  12007. if iNdEx > l {
  12008. return io.ErrUnexpectedEOF
  12009. }
  12010. return nil
  12011. }
  12012. func (m *CapsuleGetCapsuleInfoResp_GiftFilter) Unmarshal(dAtA []byte) error {
  12013. l := len(dAtA)
  12014. iNdEx := 0
  12015. for iNdEx < l {
  12016. preIndex := iNdEx
  12017. var wire uint64
  12018. for shift := uint(0); ; shift += 7 {
  12019. if shift >= 64 {
  12020. return ErrIntOverflowApi
  12021. }
  12022. if iNdEx >= l {
  12023. return io.ErrUnexpectedEOF
  12024. }
  12025. b := dAtA[iNdEx]
  12026. iNdEx++
  12027. wire |= (uint64(b) & 0x7F) << shift
  12028. if b < 0x80 {
  12029. break
  12030. }
  12031. }
  12032. fieldNum := int32(wire >> 3)
  12033. wireType := int(wire & 0x7)
  12034. if wireType == 4 {
  12035. return fmt.Errorf("proto: GiftFilter: wiretype end group for non-group")
  12036. }
  12037. if fieldNum <= 0 {
  12038. return fmt.Errorf("proto: GiftFilter: illegal tag %d (wire type %d)", fieldNum, wire)
  12039. }
  12040. switch fieldNum {
  12041. case 1:
  12042. if wireType != 0 {
  12043. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  12044. }
  12045. m.Id = 0
  12046. for shift := uint(0); ; shift += 7 {
  12047. if shift >= 64 {
  12048. return ErrIntOverflowApi
  12049. }
  12050. if iNdEx >= l {
  12051. return io.ErrUnexpectedEOF
  12052. }
  12053. b := dAtA[iNdEx]
  12054. iNdEx++
  12055. m.Id |= (int64(b) & 0x7F) << shift
  12056. if b < 0x80 {
  12057. break
  12058. }
  12059. }
  12060. case 2:
  12061. if wireType != 2 {
  12062. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  12063. }
  12064. var stringLen uint64
  12065. for shift := uint(0); ; shift += 7 {
  12066. if shift >= 64 {
  12067. return ErrIntOverflowApi
  12068. }
  12069. if iNdEx >= l {
  12070. return io.ErrUnexpectedEOF
  12071. }
  12072. b := dAtA[iNdEx]
  12073. iNdEx++
  12074. stringLen |= (uint64(b) & 0x7F) << shift
  12075. if b < 0x80 {
  12076. break
  12077. }
  12078. }
  12079. intStringLen := int(stringLen)
  12080. if intStringLen < 0 {
  12081. return ErrInvalidLengthApi
  12082. }
  12083. postIndex := iNdEx + intStringLen
  12084. if postIndex > l {
  12085. return io.ErrUnexpectedEOF
  12086. }
  12087. m.Name = string(dAtA[iNdEx:postIndex])
  12088. iNdEx = postIndex
  12089. case 3:
  12090. if wireType != 2 {
  12091. return fmt.Errorf("proto: wrong wireType = %d for field WebUrl", wireType)
  12092. }
  12093. var stringLen uint64
  12094. for shift := uint(0); ; shift += 7 {
  12095. if shift >= 64 {
  12096. return ErrIntOverflowApi
  12097. }
  12098. if iNdEx >= l {
  12099. return io.ErrUnexpectedEOF
  12100. }
  12101. b := dAtA[iNdEx]
  12102. iNdEx++
  12103. stringLen |= (uint64(b) & 0x7F) << shift
  12104. if b < 0x80 {
  12105. break
  12106. }
  12107. }
  12108. intStringLen := int(stringLen)
  12109. if intStringLen < 0 {
  12110. return ErrInvalidLengthApi
  12111. }
  12112. postIndex := iNdEx + intStringLen
  12113. if postIndex > l {
  12114. return io.ErrUnexpectedEOF
  12115. }
  12116. m.WebUrl = string(dAtA[iNdEx:postIndex])
  12117. iNdEx = postIndex
  12118. case 4:
  12119. if wireType != 2 {
  12120. return fmt.Errorf("proto: wrong wireType = %d for field MobileUrl", wireType)
  12121. }
  12122. var stringLen uint64
  12123. for shift := uint(0); ; shift += 7 {
  12124. if shift >= 64 {
  12125. return ErrIntOverflowApi
  12126. }
  12127. if iNdEx >= l {
  12128. return io.ErrUnexpectedEOF
  12129. }
  12130. b := dAtA[iNdEx]
  12131. iNdEx++
  12132. stringLen |= (uint64(b) & 0x7F) << shift
  12133. if b < 0x80 {
  12134. break
  12135. }
  12136. }
  12137. intStringLen := int(stringLen)
  12138. if intStringLen < 0 {
  12139. return ErrInvalidLengthApi
  12140. }
  12141. postIndex := iNdEx + intStringLen
  12142. if postIndex > l {
  12143. return io.ErrUnexpectedEOF
  12144. }
  12145. m.MobileUrl = string(dAtA[iNdEx:postIndex])
  12146. iNdEx = postIndex
  12147. case 5:
  12148. if wireType != 2 {
  12149. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  12150. }
  12151. var msglen int
  12152. for shift := uint(0); ; shift += 7 {
  12153. if shift >= 64 {
  12154. return ErrIntOverflowApi
  12155. }
  12156. if iNdEx >= l {
  12157. return io.ErrUnexpectedEOF
  12158. }
  12159. b := dAtA[iNdEx]
  12160. iNdEx++
  12161. msglen |= (int(b) & 0x7F) << shift
  12162. if b < 0x80 {
  12163. break
  12164. }
  12165. }
  12166. if msglen < 0 {
  12167. return ErrInvalidLengthApi
  12168. }
  12169. postIndex := iNdEx + msglen
  12170. if postIndex > l {
  12171. return io.ErrUnexpectedEOF
  12172. }
  12173. if m.Usage == nil {
  12174. m.Usage = &Usage{}
  12175. }
  12176. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12177. return err
  12178. }
  12179. iNdEx = postIndex
  12180. default:
  12181. iNdEx = preIndex
  12182. skippy, err := skipApi(dAtA[iNdEx:])
  12183. if err != nil {
  12184. return err
  12185. }
  12186. if skippy < 0 {
  12187. return ErrInvalidLengthApi
  12188. }
  12189. if (iNdEx + skippy) > l {
  12190. return io.ErrUnexpectedEOF
  12191. }
  12192. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12193. iNdEx += skippy
  12194. }
  12195. }
  12196. if iNdEx > l {
  12197. return io.ErrUnexpectedEOF
  12198. }
  12199. return nil
  12200. }
  12201. func (m *CapsuleOpenCapsuleByTypeReq) Unmarshal(dAtA []byte) error {
  12202. l := len(dAtA)
  12203. iNdEx := 0
  12204. for iNdEx < l {
  12205. preIndex := iNdEx
  12206. var wire uint64
  12207. for shift := uint(0); ; shift += 7 {
  12208. if shift >= 64 {
  12209. return ErrIntOverflowApi
  12210. }
  12211. if iNdEx >= l {
  12212. return io.ErrUnexpectedEOF
  12213. }
  12214. b := dAtA[iNdEx]
  12215. iNdEx++
  12216. wire |= (uint64(b) & 0x7F) << shift
  12217. if b < 0x80 {
  12218. break
  12219. }
  12220. }
  12221. fieldNum := int32(wire >> 3)
  12222. wireType := int(wire & 0x7)
  12223. if wireType == 4 {
  12224. return fmt.Errorf("proto: CapsuleOpenCapsuleByTypeReq: wiretype end group for non-group")
  12225. }
  12226. if fieldNum <= 0 {
  12227. return fmt.Errorf("proto: CapsuleOpenCapsuleByTypeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  12228. }
  12229. switch fieldNum {
  12230. case 1:
  12231. if wireType != 0 {
  12232. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  12233. }
  12234. m.Uid = 0
  12235. for shift := uint(0); ; shift += 7 {
  12236. if shift >= 64 {
  12237. return ErrIntOverflowApi
  12238. }
  12239. if iNdEx >= l {
  12240. return io.ErrUnexpectedEOF
  12241. }
  12242. b := dAtA[iNdEx]
  12243. iNdEx++
  12244. m.Uid |= (int64(b) & 0x7F) << shift
  12245. if b < 0x80 {
  12246. break
  12247. }
  12248. }
  12249. case 2:
  12250. if wireType != 2 {
  12251. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  12252. }
  12253. var stringLen uint64
  12254. for shift := uint(0); ; shift += 7 {
  12255. if shift >= 64 {
  12256. return ErrIntOverflowApi
  12257. }
  12258. if iNdEx >= l {
  12259. return io.ErrUnexpectedEOF
  12260. }
  12261. b := dAtA[iNdEx]
  12262. iNdEx++
  12263. stringLen |= (uint64(b) & 0x7F) << shift
  12264. if b < 0x80 {
  12265. break
  12266. }
  12267. }
  12268. intStringLen := int(stringLen)
  12269. if intStringLen < 0 {
  12270. return ErrInvalidLengthApi
  12271. }
  12272. postIndex := iNdEx + intStringLen
  12273. if postIndex > l {
  12274. return io.ErrUnexpectedEOF
  12275. }
  12276. m.Type = string(dAtA[iNdEx:postIndex])
  12277. iNdEx = postIndex
  12278. case 3:
  12279. if wireType != 0 {
  12280. return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
  12281. }
  12282. m.Count = 0
  12283. for shift := uint(0); ; shift += 7 {
  12284. if shift >= 64 {
  12285. return ErrIntOverflowApi
  12286. }
  12287. if iNdEx >= l {
  12288. return io.ErrUnexpectedEOF
  12289. }
  12290. b := dAtA[iNdEx]
  12291. iNdEx++
  12292. m.Count |= (int64(b) & 0x7F) << shift
  12293. if b < 0x80 {
  12294. break
  12295. }
  12296. }
  12297. case 4:
  12298. if wireType != 2 {
  12299. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  12300. }
  12301. var stringLen uint64
  12302. for shift := uint(0); ; shift += 7 {
  12303. if shift >= 64 {
  12304. return ErrIntOverflowApi
  12305. }
  12306. if iNdEx >= l {
  12307. return io.ErrUnexpectedEOF
  12308. }
  12309. b := dAtA[iNdEx]
  12310. iNdEx++
  12311. stringLen |= (uint64(b) & 0x7F) << shift
  12312. if b < 0x80 {
  12313. break
  12314. }
  12315. }
  12316. intStringLen := int(stringLen)
  12317. if intStringLen < 0 {
  12318. return ErrInvalidLengthApi
  12319. }
  12320. postIndex := iNdEx + intStringLen
  12321. if postIndex > l {
  12322. return io.ErrUnexpectedEOF
  12323. }
  12324. m.Platform = string(dAtA[iNdEx:postIndex])
  12325. iNdEx = postIndex
  12326. default:
  12327. iNdEx = preIndex
  12328. skippy, err := skipApi(dAtA[iNdEx:])
  12329. if err != nil {
  12330. return err
  12331. }
  12332. if skippy < 0 {
  12333. return ErrInvalidLengthApi
  12334. }
  12335. if (iNdEx + skippy) > l {
  12336. return io.ErrUnexpectedEOF
  12337. }
  12338. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12339. iNdEx += skippy
  12340. }
  12341. }
  12342. if iNdEx > l {
  12343. return io.ErrUnexpectedEOF
  12344. }
  12345. return nil
  12346. }
  12347. func (m *CapsuleOpenCapsuleByTypeResp) Unmarshal(dAtA []byte) error {
  12348. l := len(dAtA)
  12349. iNdEx := 0
  12350. for iNdEx < l {
  12351. preIndex := iNdEx
  12352. var wire uint64
  12353. for shift := uint(0); ; shift += 7 {
  12354. if shift >= 64 {
  12355. return ErrIntOverflowApi
  12356. }
  12357. if iNdEx >= l {
  12358. return io.ErrUnexpectedEOF
  12359. }
  12360. b := dAtA[iNdEx]
  12361. iNdEx++
  12362. wire |= (uint64(b) & 0x7F) << shift
  12363. if b < 0x80 {
  12364. break
  12365. }
  12366. }
  12367. fieldNum := int32(wire >> 3)
  12368. wireType := int(wire & 0x7)
  12369. if wireType == 4 {
  12370. return fmt.Errorf("proto: CapsuleOpenCapsuleByTypeResp: wiretype end group for non-group")
  12371. }
  12372. if fieldNum <= 0 {
  12373. return fmt.Errorf("proto: CapsuleOpenCapsuleByTypeResp: illegal tag %d (wire type %d)", fieldNum, wire)
  12374. }
  12375. switch fieldNum {
  12376. case 1:
  12377. if wireType != 0 {
  12378. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  12379. }
  12380. var v int
  12381. for shift := uint(0); ; shift += 7 {
  12382. if shift >= 64 {
  12383. return ErrIntOverflowApi
  12384. }
  12385. if iNdEx >= l {
  12386. return io.ErrUnexpectedEOF
  12387. }
  12388. b := dAtA[iNdEx]
  12389. iNdEx++
  12390. v |= (int(b) & 0x7F) << shift
  12391. if b < 0x80 {
  12392. break
  12393. }
  12394. }
  12395. m.Status = bool(v != 0)
  12396. case 2:
  12397. if wireType != 0 {
  12398. return fmt.Errorf("proto: wrong wireType = %d for field IsEntity", wireType)
  12399. }
  12400. var v int
  12401. for shift := uint(0); ; shift += 7 {
  12402. if shift >= 64 {
  12403. return ErrIntOverflowApi
  12404. }
  12405. if iNdEx >= l {
  12406. return io.ErrUnexpectedEOF
  12407. }
  12408. b := dAtA[iNdEx]
  12409. iNdEx++
  12410. v |= (int(b) & 0x7F) << shift
  12411. if b < 0x80 {
  12412. break
  12413. }
  12414. }
  12415. m.IsEntity = bool(v != 0)
  12416. case 3:
  12417. if wireType != 2 {
  12418. return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType)
  12419. }
  12420. var msglen int
  12421. for shift := uint(0); ; shift += 7 {
  12422. if shift >= 64 {
  12423. return ErrIntOverflowApi
  12424. }
  12425. if iNdEx >= l {
  12426. return io.ErrUnexpectedEOF
  12427. }
  12428. b := dAtA[iNdEx]
  12429. iNdEx++
  12430. msglen |= (int(b) & 0x7F) << shift
  12431. if b < 0x80 {
  12432. break
  12433. }
  12434. }
  12435. if msglen < 0 {
  12436. return ErrInvalidLengthApi
  12437. }
  12438. postIndex := iNdEx + msglen
  12439. if postIndex > l {
  12440. return io.ErrUnexpectedEOF
  12441. }
  12442. if m.Info == nil {
  12443. m.Info = &CapsuleOpenCapsuleByTypeResp_CapsuleInfo{}
  12444. }
  12445. if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12446. return err
  12447. }
  12448. iNdEx = postIndex
  12449. case 4:
  12450. if wireType != 2 {
  12451. return fmt.Errorf("proto: wrong wireType = %d for field Awards", wireType)
  12452. }
  12453. var msglen int
  12454. for shift := uint(0); ; shift += 7 {
  12455. if shift >= 64 {
  12456. return ErrIntOverflowApi
  12457. }
  12458. if iNdEx >= l {
  12459. return io.ErrUnexpectedEOF
  12460. }
  12461. b := dAtA[iNdEx]
  12462. iNdEx++
  12463. msglen |= (int(b) & 0x7F) << shift
  12464. if b < 0x80 {
  12465. break
  12466. }
  12467. }
  12468. if msglen < 0 {
  12469. return ErrInvalidLengthApi
  12470. }
  12471. postIndex := iNdEx + msglen
  12472. if postIndex > l {
  12473. return io.ErrUnexpectedEOF
  12474. }
  12475. m.Awards = append(m.Awards, &CapsuleOpenCapsuleByTypeResp_Award{})
  12476. if err := m.Awards[len(m.Awards)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12477. return err
  12478. }
  12479. iNdEx = postIndex
  12480. case 5:
  12481. if wireType != 2 {
  12482. return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
  12483. }
  12484. var stringLen uint64
  12485. for shift := uint(0); ; shift += 7 {
  12486. if shift >= 64 {
  12487. return ErrIntOverflowApi
  12488. }
  12489. if iNdEx >= l {
  12490. return io.ErrUnexpectedEOF
  12491. }
  12492. b := dAtA[iNdEx]
  12493. iNdEx++
  12494. stringLen |= (uint64(b) & 0x7F) << shift
  12495. if b < 0x80 {
  12496. break
  12497. }
  12498. }
  12499. intStringLen := int(stringLen)
  12500. if intStringLen < 0 {
  12501. return ErrInvalidLengthApi
  12502. }
  12503. postIndex := iNdEx + intStringLen
  12504. if postIndex > l {
  12505. return io.ErrUnexpectedEOF
  12506. }
  12507. m.Text = append(m.Text, string(dAtA[iNdEx:postIndex]))
  12508. iNdEx = postIndex
  12509. default:
  12510. iNdEx = preIndex
  12511. skippy, err := skipApi(dAtA[iNdEx:])
  12512. if err != nil {
  12513. return err
  12514. }
  12515. if skippy < 0 {
  12516. return ErrInvalidLengthApi
  12517. }
  12518. if (iNdEx + skippy) > l {
  12519. return io.ErrUnexpectedEOF
  12520. }
  12521. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12522. iNdEx += skippy
  12523. }
  12524. }
  12525. if iNdEx > l {
  12526. return io.ErrUnexpectedEOF
  12527. }
  12528. return nil
  12529. }
  12530. func (m *CapsuleOpenCapsuleByTypeResp_CapsuleInfo) Unmarshal(dAtA []byte) error {
  12531. l := len(dAtA)
  12532. iNdEx := 0
  12533. for iNdEx < l {
  12534. preIndex := iNdEx
  12535. var wire uint64
  12536. for shift := uint(0); ; shift += 7 {
  12537. if shift >= 64 {
  12538. return ErrIntOverflowApi
  12539. }
  12540. if iNdEx >= l {
  12541. return io.ErrUnexpectedEOF
  12542. }
  12543. b := dAtA[iNdEx]
  12544. iNdEx++
  12545. wire |= (uint64(b) & 0x7F) << shift
  12546. if b < 0x80 {
  12547. break
  12548. }
  12549. }
  12550. fieldNum := int32(wire >> 3)
  12551. wireType := int(wire & 0x7)
  12552. if wireType == 4 {
  12553. return fmt.Errorf("proto: CapsuleInfo: wiretype end group for non-group")
  12554. }
  12555. if fieldNum <= 0 {
  12556. return fmt.Errorf("proto: CapsuleInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  12557. }
  12558. switch fieldNum {
  12559. case 1:
  12560. if wireType != 0 {
  12561. return fmt.Errorf("proto: wrong wireType = %d for field Coin", wireType)
  12562. }
  12563. m.Coin = 0
  12564. for shift := uint(0); ; shift += 7 {
  12565. if shift >= 64 {
  12566. return ErrIntOverflowApi
  12567. }
  12568. if iNdEx >= l {
  12569. return io.ErrUnexpectedEOF
  12570. }
  12571. b := dAtA[iNdEx]
  12572. iNdEx++
  12573. m.Coin |= (int64(b) & 0x7F) << shift
  12574. if b < 0x80 {
  12575. break
  12576. }
  12577. }
  12578. default:
  12579. iNdEx = preIndex
  12580. skippy, err := skipApi(dAtA[iNdEx:])
  12581. if err != nil {
  12582. return err
  12583. }
  12584. if skippy < 0 {
  12585. return ErrInvalidLengthApi
  12586. }
  12587. if (iNdEx + skippy) > l {
  12588. return io.ErrUnexpectedEOF
  12589. }
  12590. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12591. iNdEx += skippy
  12592. }
  12593. }
  12594. if iNdEx > l {
  12595. return io.ErrUnexpectedEOF
  12596. }
  12597. return nil
  12598. }
  12599. func (m *CapsuleOpenCapsuleByTypeResp_Award) Unmarshal(dAtA []byte) error {
  12600. l := len(dAtA)
  12601. iNdEx := 0
  12602. for iNdEx < l {
  12603. preIndex := iNdEx
  12604. var wire uint64
  12605. for shift := uint(0); ; shift += 7 {
  12606. if shift >= 64 {
  12607. return ErrIntOverflowApi
  12608. }
  12609. if iNdEx >= l {
  12610. return io.ErrUnexpectedEOF
  12611. }
  12612. b := dAtA[iNdEx]
  12613. iNdEx++
  12614. wire |= (uint64(b) & 0x7F) << shift
  12615. if b < 0x80 {
  12616. break
  12617. }
  12618. }
  12619. fieldNum := int32(wire >> 3)
  12620. wireType := int(wire & 0x7)
  12621. if wireType == 4 {
  12622. return fmt.Errorf("proto: Award: wiretype end group for non-group")
  12623. }
  12624. if fieldNum <= 0 {
  12625. return fmt.Errorf("proto: Award: illegal tag %d (wire type %d)", fieldNum, wire)
  12626. }
  12627. switch fieldNum {
  12628. case 1:
  12629. if wireType != 0 {
  12630. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  12631. }
  12632. m.Id = 0
  12633. for shift := uint(0); ; shift += 7 {
  12634. if shift >= 64 {
  12635. return ErrIntOverflowApi
  12636. }
  12637. if iNdEx >= l {
  12638. return io.ErrUnexpectedEOF
  12639. }
  12640. b := dAtA[iNdEx]
  12641. iNdEx++
  12642. m.Id |= (int64(b) & 0x7F) << shift
  12643. if b < 0x80 {
  12644. break
  12645. }
  12646. }
  12647. case 2:
  12648. if wireType != 2 {
  12649. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  12650. }
  12651. var stringLen uint64
  12652. for shift := uint(0); ; shift += 7 {
  12653. if shift >= 64 {
  12654. return ErrIntOverflowApi
  12655. }
  12656. if iNdEx >= l {
  12657. return io.ErrUnexpectedEOF
  12658. }
  12659. b := dAtA[iNdEx]
  12660. iNdEx++
  12661. stringLen |= (uint64(b) & 0x7F) << shift
  12662. if b < 0x80 {
  12663. break
  12664. }
  12665. }
  12666. intStringLen := int(stringLen)
  12667. if intStringLen < 0 {
  12668. return ErrInvalidLengthApi
  12669. }
  12670. postIndex := iNdEx + intStringLen
  12671. if postIndex > l {
  12672. return io.ErrUnexpectedEOF
  12673. }
  12674. m.Name = string(dAtA[iNdEx:postIndex])
  12675. iNdEx = postIndex
  12676. case 3:
  12677. if wireType != 0 {
  12678. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  12679. }
  12680. m.Num = 0
  12681. for shift := uint(0); ; shift += 7 {
  12682. if shift >= 64 {
  12683. return ErrIntOverflowApi
  12684. }
  12685. if iNdEx >= l {
  12686. return io.ErrUnexpectedEOF
  12687. }
  12688. b := dAtA[iNdEx]
  12689. iNdEx++
  12690. m.Num |= (int64(b) & 0x7F) << shift
  12691. if b < 0x80 {
  12692. break
  12693. }
  12694. }
  12695. case 4:
  12696. if wireType != 2 {
  12697. return fmt.Errorf("proto: wrong wireType = %d for field Text", wireType)
  12698. }
  12699. var stringLen uint64
  12700. for shift := uint(0); ; shift += 7 {
  12701. if shift >= 64 {
  12702. return ErrIntOverflowApi
  12703. }
  12704. if iNdEx >= l {
  12705. return io.ErrUnexpectedEOF
  12706. }
  12707. b := dAtA[iNdEx]
  12708. iNdEx++
  12709. stringLen |= (uint64(b) & 0x7F) << shift
  12710. if b < 0x80 {
  12711. break
  12712. }
  12713. }
  12714. intStringLen := int(stringLen)
  12715. if intStringLen < 0 {
  12716. return ErrInvalidLengthApi
  12717. }
  12718. postIndex := iNdEx + intStringLen
  12719. if postIndex > l {
  12720. return io.ErrUnexpectedEOF
  12721. }
  12722. m.Text = string(dAtA[iNdEx:postIndex])
  12723. iNdEx = postIndex
  12724. case 5:
  12725. if wireType != 2 {
  12726. return fmt.Errorf("proto: wrong wireType = %d for field WebUrl", wireType)
  12727. }
  12728. var stringLen uint64
  12729. for shift := uint(0); ; shift += 7 {
  12730. if shift >= 64 {
  12731. return ErrIntOverflowApi
  12732. }
  12733. if iNdEx >= l {
  12734. return io.ErrUnexpectedEOF
  12735. }
  12736. b := dAtA[iNdEx]
  12737. iNdEx++
  12738. stringLen |= (uint64(b) & 0x7F) << shift
  12739. if b < 0x80 {
  12740. break
  12741. }
  12742. }
  12743. intStringLen := int(stringLen)
  12744. if intStringLen < 0 {
  12745. return ErrInvalidLengthApi
  12746. }
  12747. postIndex := iNdEx + intStringLen
  12748. if postIndex > l {
  12749. return io.ErrUnexpectedEOF
  12750. }
  12751. m.WebUrl = string(dAtA[iNdEx:postIndex])
  12752. iNdEx = postIndex
  12753. case 6:
  12754. if wireType != 2 {
  12755. return fmt.Errorf("proto: wrong wireType = %d for field MobileUrl", wireType)
  12756. }
  12757. var stringLen uint64
  12758. for shift := uint(0); ; shift += 7 {
  12759. if shift >= 64 {
  12760. return ErrIntOverflowApi
  12761. }
  12762. if iNdEx >= l {
  12763. return io.ErrUnexpectedEOF
  12764. }
  12765. b := dAtA[iNdEx]
  12766. iNdEx++
  12767. stringLen |= (uint64(b) & 0x7F) << shift
  12768. if b < 0x80 {
  12769. break
  12770. }
  12771. }
  12772. intStringLen := int(stringLen)
  12773. if intStringLen < 0 {
  12774. return ErrInvalidLengthApi
  12775. }
  12776. postIndex := iNdEx + intStringLen
  12777. if postIndex > l {
  12778. return io.ErrUnexpectedEOF
  12779. }
  12780. m.MobileUrl = string(dAtA[iNdEx:postIndex])
  12781. iNdEx = postIndex
  12782. case 7:
  12783. if wireType != 2 {
  12784. return fmt.Errorf("proto: wrong wireType = %d for field Usage", wireType)
  12785. }
  12786. var msglen int
  12787. for shift := uint(0); ; shift += 7 {
  12788. if shift >= 64 {
  12789. return ErrIntOverflowApi
  12790. }
  12791. if iNdEx >= l {
  12792. return io.ErrUnexpectedEOF
  12793. }
  12794. b := dAtA[iNdEx]
  12795. iNdEx++
  12796. msglen |= (int(b) & 0x7F) << shift
  12797. if b < 0x80 {
  12798. break
  12799. }
  12800. }
  12801. if msglen < 0 {
  12802. return ErrInvalidLengthApi
  12803. }
  12804. postIndex := iNdEx + msglen
  12805. if postIndex > l {
  12806. return io.ErrUnexpectedEOF
  12807. }
  12808. if m.Usage == nil {
  12809. m.Usage = &Usage{}
  12810. }
  12811. if err := m.Usage.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  12812. return err
  12813. }
  12814. iNdEx = postIndex
  12815. case 8:
  12816. if wireType != 0 {
  12817. return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType)
  12818. }
  12819. m.Weight = 0
  12820. for shift := uint(0); ; shift += 7 {
  12821. if shift >= 64 {
  12822. return ErrIntOverflowApi
  12823. }
  12824. if iNdEx >= l {
  12825. return io.ErrUnexpectedEOF
  12826. }
  12827. b := dAtA[iNdEx]
  12828. iNdEx++
  12829. m.Weight |= (int64(b) & 0x7F) << shift
  12830. if b < 0x80 {
  12831. break
  12832. }
  12833. }
  12834. case 9:
  12835. if wireType != 0 {
  12836. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  12837. }
  12838. m.Type = 0
  12839. for shift := uint(0); ; shift += 7 {
  12840. if shift >= 64 {
  12841. return ErrIntOverflowApi
  12842. }
  12843. if iNdEx >= l {
  12844. return io.ErrUnexpectedEOF
  12845. }
  12846. b := dAtA[iNdEx]
  12847. iNdEx++
  12848. m.Type |= (int64(b) & 0x7F) << shift
  12849. if b < 0x80 {
  12850. break
  12851. }
  12852. }
  12853. case 10:
  12854. if wireType != 2 {
  12855. return fmt.Errorf("proto: wrong wireType = %d for field Expire", wireType)
  12856. }
  12857. var stringLen uint64
  12858. for shift := uint(0); ; shift += 7 {
  12859. if shift >= 64 {
  12860. return ErrIntOverflowApi
  12861. }
  12862. if iNdEx >= l {
  12863. return io.ErrUnexpectedEOF
  12864. }
  12865. b := dAtA[iNdEx]
  12866. iNdEx++
  12867. stringLen |= (uint64(b) & 0x7F) << shift
  12868. if b < 0x80 {
  12869. break
  12870. }
  12871. }
  12872. intStringLen := int(stringLen)
  12873. if intStringLen < 0 {
  12874. return ErrInvalidLengthApi
  12875. }
  12876. postIndex := iNdEx + intStringLen
  12877. if postIndex > l {
  12878. return io.ErrUnexpectedEOF
  12879. }
  12880. m.Expire = string(dAtA[iNdEx:postIndex])
  12881. iNdEx = postIndex
  12882. default:
  12883. iNdEx = preIndex
  12884. skippy, err := skipApi(dAtA[iNdEx:])
  12885. if err != nil {
  12886. return err
  12887. }
  12888. if skippy < 0 {
  12889. return ErrInvalidLengthApi
  12890. }
  12891. if (iNdEx + skippy) > l {
  12892. return io.ErrUnexpectedEOF
  12893. }
  12894. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12895. iNdEx += skippy
  12896. }
  12897. }
  12898. if iNdEx > l {
  12899. return io.ErrUnexpectedEOF
  12900. }
  12901. return nil
  12902. }
  12903. func (m *GetCoinListReq) Unmarshal(dAtA []byte) error {
  12904. l := len(dAtA)
  12905. iNdEx := 0
  12906. for iNdEx < l {
  12907. preIndex := iNdEx
  12908. var wire uint64
  12909. for shift := uint(0); ; shift += 7 {
  12910. if shift >= 64 {
  12911. return ErrIntOverflowApi
  12912. }
  12913. if iNdEx >= l {
  12914. return io.ErrUnexpectedEOF
  12915. }
  12916. b := dAtA[iNdEx]
  12917. iNdEx++
  12918. wire |= (uint64(b) & 0x7F) << shift
  12919. if b < 0x80 {
  12920. break
  12921. }
  12922. }
  12923. fieldNum := int32(wire >> 3)
  12924. wireType := int(wire & 0x7)
  12925. if wireType == 4 {
  12926. return fmt.Errorf("proto: GetCoinListReq: wiretype end group for non-group")
  12927. }
  12928. if fieldNum <= 0 {
  12929. return fmt.Errorf("proto: GetCoinListReq: illegal tag %d (wire type %d)", fieldNum, wire)
  12930. }
  12931. switch fieldNum {
  12932. case 1:
  12933. if wireType != 0 {
  12934. return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType)
  12935. }
  12936. m.Page = 0
  12937. for shift := uint(0); ; shift += 7 {
  12938. if shift >= 64 {
  12939. return ErrIntOverflowApi
  12940. }
  12941. if iNdEx >= l {
  12942. return io.ErrUnexpectedEOF
  12943. }
  12944. b := dAtA[iNdEx]
  12945. iNdEx++
  12946. m.Page |= (int64(b) & 0x7F) << shift
  12947. if b < 0x80 {
  12948. break
  12949. }
  12950. }
  12951. case 2:
  12952. if wireType != 0 {
  12953. return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType)
  12954. }
  12955. m.PageSize = 0
  12956. for shift := uint(0); ; shift += 7 {
  12957. if shift >= 64 {
  12958. return ErrIntOverflowApi
  12959. }
  12960. if iNdEx >= l {
  12961. return io.ErrUnexpectedEOF
  12962. }
  12963. b := dAtA[iNdEx]
  12964. iNdEx++
  12965. m.PageSize |= (int64(b) & 0x7F) << shift
  12966. if b < 0x80 {
  12967. break
  12968. }
  12969. }
  12970. default:
  12971. iNdEx = preIndex
  12972. skippy, err := skipApi(dAtA[iNdEx:])
  12973. if err != nil {
  12974. return err
  12975. }
  12976. if skippy < 0 {
  12977. return ErrInvalidLengthApi
  12978. }
  12979. if (iNdEx + skippy) > l {
  12980. return io.ErrUnexpectedEOF
  12981. }
  12982. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  12983. iNdEx += skippy
  12984. }
  12985. }
  12986. if iNdEx > l {
  12987. return io.ErrUnexpectedEOF
  12988. }
  12989. return nil
  12990. }
  12991. func (m *GetCoinListResp) Unmarshal(dAtA []byte) error {
  12992. l := len(dAtA)
  12993. iNdEx := 0
  12994. for iNdEx < l {
  12995. preIndex := iNdEx
  12996. var wire uint64
  12997. for shift := uint(0); ; shift += 7 {
  12998. if shift >= 64 {
  12999. return ErrIntOverflowApi
  13000. }
  13001. if iNdEx >= l {
  13002. return io.ErrUnexpectedEOF
  13003. }
  13004. b := dAtA[iNdEx]
  13005. iNdEx++
  13006. wire |= (uint64(b) & 0x7F) << shift
  13007. if b < 0x80 {
  13008. break
  13009. }
  13010. }
  13011. fieldNum := int32(wire >> 3)
  13012. wireType := int(wire & 0x7)
  13013. if wireType == 4 {
  13014. return fmt.Errorf("proto: GetCoinListResp: wiretype end group for non-group")
  13015. }
  13016. if fieldNum <= 0 {
  13017. return fmt.Errorf("proto: GetCoinListResp: illegal tag %d (wire type %d)", fieldNum, wire)
  13018. }
  13019. switch fieldNum {
  13020. case 1:
  13021. if wireType != 0 {
  13022. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  13023. }
  13024. m.Total = 0
  13025. for shift := uint(0); ; shift += 7 {
  13026. if shift >= 64 {
  13027. return ErrIntOverflowApi
  13028. }
  13029. if iNdEx >= l {
  13030. return io.ErrUnexpectedEOF
  13031. }
  13032. b := dAtA[iNdEx]
  13033. iNdEx++
  13034. m.Total |= (int64(b) & 0x7F) << shift
  13035. if b < 0x80 {
  13036. break
  13037. }
  13038. }
  13039. case 2:
  13040. if wireType != 0 {
  13041. return fmt.Errorf("proto: wrong wireType = %d for field TotalPage", wireType)
  13042. }
  13043. m.TotalPage = 0
  13044. for shift := uint(0); ; shift += 7 {
  13045. if shift >= 64 {
  13046. return ErrIntOverflowApi
  13047. }
  13048. if iNdEx >= l {
  13049. return io.ErrUnexpectedEOF
  13050. }
  13051. b := dAtA[iNdEx]
  13052. iNdEx++
  13053. m.TotalPage |= (int64(b) & 0x7F) << shift
  13054. if b < 0x80 {
  13055. break
  13056. }
  13057. }
  13058. case 3:
  13059. if wireType != 2 {
  13060. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  13061. }
  13062. var msglen int
  13063. for shift := uint(0); ; shift += 7 {
  13064. if shift >= 64 {
  13065. return ErrIntOverflowApi
  13066. }
  13067. if iNdEx >= l {
  13068. return io.ErrUnexpectedEOF
  13069. }
  13070. b := dAtA[iNdEx]
  13071. iNdEx++
  13072. msglen |= (int(b) & 0x7F) << shift
  13073. if b < 0x80 {
  13074. break
  13075. }
  13076. }
  13077. if msglen < 0 {
  13078. return ErrInvalidLengthApi
  13079. }
  13080. postIndex := iNdEx + msglen
  13081. if postIndex > l {
  13082. return io.ErrUnexpectedEOF
  13083. }
  13084. m.List = append(m.List, &GetCoinListResp_List{})
  13085. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13086. return err
  13087. }
  13088. iNdEx = postIndex
  13089. default:
  13090. iNdEx = preIndex
  13091. skippy, err := skipApi(dAtA[iNdEx:])
  13092. if err != nil {
  13093. return err
  13094. }
  13095. if skippy < 0 {
  13096. return ErrInvalidLengthApi
  13097. }
  13098. if (iNdEx + skippy) > l {
  13099. return io.ErrUnexpectedEOF
  13100. }
  13101. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13102. iNdEx += skippy
  13103. }
  13104. }
  13105. if iNdEx > l {
  13106. return io.ErrUnexpectedEOF
  13107. }
  13108. return nil
  13109. }
  13110. func (m *GetCoinListResp_List) Unmarshal(dAtA []byte) error {
  13111. l := len(dAtA)
  13112. iNdEx := 0
  13113. for iNdEx < l {
  13114. preIndex := iNdEx
  13115. var wire uint64
  13116. for shift := uint(0); ; shift += 7 {
  13117. if shift >= 64 {
  13118. return ErrIntOverflowApi
  13119. }
  13120. if iNdEx >= l {
  13121. return io.ErrUnexpectedEOF
  13122. }
  13123. b := dAtA[iNdEx]
  13124. iNdEx++
  13125. wire |= (uint64(b) & 0x7F) << shift
  13126. if b < 0x80 {
  13127. break
  13128. }
  13129. }
  13130. fieldNum := int32(wire >> 3)
  13131. wireType := int(wire & 0x7)
  13132. if wireType == 4 {
  13133. return fmt.Errorf("proto: List: wiretype end group for non-group")
  13134. }
  13135. if fieldNum <= 0 {
  13136. return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
  13137. }
  13138. switch fieldNum {
  13139. case 1:
  13140. if wireType != 0 {
  13141. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  13142. }
  13143. m.Id = 0
  13144. for shift := uint(0); ; shift += 7 {
  13145. if shift >= 64 {
  13146. return ErrIntOverflowApi
  13147. }
  13148. if iNdEx >= l {
  13149. return io.ErrUnexpectedEOF
  13150. }
  13151. b := dAtA[iNdEx]
  13152. iNdEx++
  13153. m.Id |= (int64(b) & 0x7F) << shift
  13154. if b < 0x80 {
  13155. break
  13156. }
  13157. }
  13158. case 2:
  13159. if wireType != 2 {
  13160. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  13161. }
  13162. var stringLen uint64
  13163. for shift := uint(0); ; shift += 7 {
  13164. if shift >= 64 {
  13165. return ErrIntOverflowApi
  13166. }
  13167. if iNdEx >= l {
  13168. return io.ErrUnexpectedEOF
  13169. }
  13170. b := dAtA[iNdEx]
  13171. iNdEx++
  13172. stringLen |= (uint64(b) & 0x7F) << shift
  13173. if b < 0x80 {
  13174. break
  13175. }
  13176. }
  13177. intStringLen := int(stringLen)
  13178. if intStringLen < 0 {
  13179. return ErrInvalidLengthApi
  13180. }
  13181. postIndex := iNdEx + intStringLen
  13182. if postIndex > l {
  13183. return io.ErrUnexpectedEOF
  13184. }
  13185. m.Title = string(dAtA[iNdEx:postIndex])
  13186. iNdEx = postIndex
  13187. case 3:
  13188. if wireType != 0 {
  13189. return fmt.Errorf("proto: wrong wireType = %d for field ChangeNum", wireType)
  13190. }
  13191. m.ChangeNum = 0
  13192. for shift := uint(0); ; shift += 7 {
  13193. if shift >= 64 {
  13194. return ErrIntOverflowApi
  13195. }
  13196. if iNdEx >= l {
  13197. return io.ErrUnexpectedEOF
  13198. }
  13199. b := dAtA[iNdEx]
  13200. iNdEx++
  13201. m.ChangeNum |= (int64(b) & 0x7F) << shift
  13202. if b < 0x80 {
  13203. break
  13204. }
  13205. }
  13206. case 4:
  13207. if wireType != 0 {
  13208. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  13209. }
  13210. m.StartTime = 0
  13211. for shift := uint(0); ; shift += 7 {
  13212. if shift >= 64 {
  13213. return ErrIntOverflowApi
  13214. }
  13215. if iNdEx >= l {
  13216. return io.ErrUnexpectedEOF
  13217. }
  13218. b := dAtA[iNdEx]
  13219. iNdEx++
  13220. m.StartTime |= (int64(b) & 0x7F) << shift
  13221. if b < 0x80 {
  13222. break
  13223. }
  13224. }
  13225. case 5:
  13226. if wireType != 0 {
  13227. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  13228. }
  13229. m.EndTime = 0
  13230. for shift := uint(0); ; shift += 7 {
  13231. if shift >= 64 {
  13232. return ErrIntOverflowApi
  13233. }
  13234. if iNdEx >= l {
  13235. return io.ErrUnexpectedEOF
  13236. }
  13237. b := dAtA[iNdEx]
  13238. iNdEx++
  13239. m.EndTime |= (int64(b) & 0x7F) << shift
  13240. if b < 0x80 {
  13241. break
  13242. }
  13243. }
  13244. case 6:
  13245. if wireType != 0 {
  13246. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  13247. }
  13248. m.Status = 0
  13249. for shift := uint(0); ; shift += 7 {
  13250. if shift >= 64 {
  13251. return ErrIntOverflowApi
  13252. }
  13253. if iNdEx >= l {
  13254. return io.ErrUnexpectedEOF
  13255. }
  13256. b := dAtA[iNdEx]
  13257. iNdEx++
  13258. m.Status |= (int64(b) & 0x7F) << shift
  13259. if b < 0x80 {
  13260. break
  13261. }
  13262. }
  13263. case 7:
  13264. if wireType != 0 {
  13265. return fmt.Errorf("proto: wrong wireType = %d for field GiftType", wireType)
  13266. }
  13267. m.GiftType = 0
  13268. for shift := uint(0); ; shift += 7 {
  13269. if shift >= 64 {
  13270. return ErrIntOverflowApi
  13271. }
  13272. if iNdEx >= l {
  13273. return io.ErrUnexpectedEOF
  13274. }
  13275. b := dAtA[iNdEx]
  13276. iNdEx++
  13277. m.GiftType |= (int64(b) & 0x7F) << shift
  13278. if b < 0x80 {
  13279. break
  13280. }
  13281. }
  13282. case 8:
  13283. if wireType != 2 {
  13284. return fmt.Errorf("proto: wrong wireType = %d for field GiftConfig", wireType)
  13285. }
  13286. var stringLen uint64
  13287. for shift := uint(0); ; shift += 7 {
  13288. if shift >= 64 {
  13289. return ErrIntOverflowApi
  13290. }
  13291. if iNdEx >= l {
  13292. return io.ErrUnexpectedEOF
  13293. }
  13294. b := dAtA[iNdEx]
  13295. iNdEx++
  13296. stringLen |= (uint64(b) & 0x7F) << shift
  13297. if b < 0x80 {
  13298. break
  13299. }
  13300. }
  13301. intStringLen := int(stringLen)
  13302. if intStringLen < 0 {
  13303. return ErrInvalidLengthApi
  13304. }
  13305. postIndex := iNdEx + intStringLen
  13306. if postIndex > l {
  13307. return io.ErrUnexpectedEOF
  13308. }
  13309. m.GiftConfig = string(dAtA[iNdEx:postIndex])
  13310. iNdEx = postIndex
  13311. case 9:
  13312. if wireType != 2 {
  13313. return fmt.Errorf("proto: wrong wireType = %d for field AreaIds", wireType)
  13314. }
  13315. var msglen int
  13316. for shift := uint(0); ; shift += 7 {
  13317. if shift >= 64 {
  13318. return ErrIntOverflowApi
  13319. }
  13320. if iNdEx >= l {
  13321. return io.ErrUnexpectedEOF
  13322. }
  13323. b := dAtA[iNdEx]
  13324. iNdEx++
  13325. msglen |= (int(b) & 0x7F) << shift
  13326. if b < 0x80 {
  13327. break
  13328. }
  13329. }
  13330. if msglen < 0 {
  13331. return ErrInvalidLengthApi
  13332. }
  13333. postIndex := iNdEx + msglen
  13334. if postIndex > l {
  13335. return io.ErrUnexpectedEOF
  13336. }
  13337. m.AreaIds = append(m.AreaIds, &GetCoinListResp_List_AreaIds{})
  13338. if err := m.AreaIds[len(m.AreaIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13339. return err
  13340. }
  13341. iNdEx = postIndex
  13342. default:
  13343. iNdEx = preIndex
  13344. skippy, err := skipApi(dAtA[iNdEx:])
  13345. if err != nil {
  13346. return err
  13347. }
  13348. if skippy < 0 {
  13349. return ErrInvalidLengthApi
  13350. }
  13351. if (iNdEx + skippy) > l {
  13352. return io.ErrUnexpectedEOF
  13353. }
  13354. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13355. iNdEx += skippy
  13356. }
  13357. }
  13358. if iNdEx > l {
  13359. return io.ErrUnexpectedEOF
  13360. }
  13361. return nil
  13362. }
  13363. func (m *GetCoinListResp_List_AreaIds) Unmarshal(dAtA []byte) error {
  13364. l := len(dAtA)
  13365. iNdEx := 0
  13366. for iNdEx < l {
  13367. preIndex := iNdEx
  13368. var wire uint64
  13369. for shift := uint(0); ; shift += 7 {
  13370. if shift >= 64 {
  13371. return ErrIntOverflowApi
  13372. }
  13373. if iNdEx >= l {
  13374. return io.ErrUnexpectedEOF
  13375. }
  13376. b := dAtA[iNdEx]
  13377. iNdEx++
  13378. wire |= (uint64(b) & 0x7F) << shift
  13379. if b < 0x80 {
  13380. break
  13381. }
  13382. }
  13383. fieldNum := int32(wire >> 3)
  13384. wireType := int(wire & 0x7)
  13385. if wireType == 4 {
  13386. return fmt.Errorf("proto: AreaIds: wiretype end group for non-group")
  13387. }
  13388. if fieldNum <= 0 {
  13389. return fmt.Errorf("proto: AreaIds: illegal tag %d (wire type %d)", fieldNum, wire)
  13390. }
  13391. switch fieldNum {
  13392. case 1:
  13393. if wireType != 0 {
  13394. return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
  13395. }
  13396. m.ParentId = 0
  13397. for shift := uint(0); ; shift += 7 {
  13398. if shift >= 64 {
  13399. return ErrIntOverflowApi
  13400. }
  13401. if iNdEx >= l {
  13402. return io.ErrUnexpectedEOF
  13403. }
  13404. b := dAtA[iNdEx]
  13405. iNdEx++
  13406. m.ParentId |= (int64(b) & 0x7F) << shift
  13407. if b < 0x80 {
  13408. break
  13409. }
  13410. }
  13411. case 2:
  13412. if wireType != 0 {
  13413. return fmt.Errorf("proto: wrong wireType = %d for field IsAll", wireType)
  13414. }
  13415. m.IsAll = 0
  13416. for shift := uint(0); ; shift += 7 {
  13417. if shift >= 64 {
  13418. return ErrIntOverflowApi
  13419. }
  13420. if iNdEx >= l {
  13421. return io.ErrUnexpectedEOF
  13422. }
  13423. b := dAtA[iNdEx]
  13424. iNdEx++
  13425. m.IsAll |= (int64(b) & 0x7F) << shift
  13426. if b < 0x80 {
  13427. break
  13428. }
  13429. }
  13430. case 3:
  13431. if wireType == 0 {
  13432. var v int64
  13433. for shift := uint(0); ; shift += 7 {
  13434. if shift >= 64 {
  13435. return ErrIntOverflowApi
  13436. }
  13437. if iNdEx >= l {
  13438. return io.ErrUnexpectedEOF
  13439. }
  13440. b := dAtA[iNdEx]
  13441. iNdEx++
  13442. v |= (int64(b) & 0x7F) << shift
  13443. if b < 0x80 {
  13444. break
  13445. }
  13446. }
  13447. m.List = append(m.List, v)
  13448. } else if wireType == 2 {
  13449. var packedLen int
  13450. for shift := uint(0); ; shift += 7 {
  13451. if shift >= 64 {
  13452. return ErrIntOverflowApi
  13453. }
  13454. if iNdEx >= l {
  13455. return io.ErrUnexpectedEOF
  13456. }
  13457. b := dAtA[iNdEx]
  13458. iNdEx++
  13459. packedLen |= (int(b) & 0x7F) << shift
  13460. if b < 0x80 {
  13461. break
  13462. }
  13463. }
  13464. if packedLen < 0 {
  13465. return ErrInvalidLengthApi
  13466. }
  13467. postIndex := iNdEx + packedLen
  13468. if postIndex > l {
  13469. return io.ErrUnexpectedEOF
  13470. }
  13471. var elementCount int
  13472. var count int
  13473. for _, integer := range dAtA {
  13474. if integer < 128 {
  13475. count++
  13476. }
  13477. }
  13478. elementCount = count
  13479. if elementCount != 0 && len(m.List) == 0 {
  13480. m.List = make([]int64, 0, elementCount)
  13481. }
  13482. for iNdEx < postIndex {
  13483. var v int64
  13484. for shift := uint(0); ; shift += 7 {
  13485. if shift >= 64 {
  13486. return ErrIntOverflowApi
  13487. }
  13488. if iNdEx >= l {
  13489. return io.ErrUnexpectedEOF
  13490. }
  13491. b := dAtA[iNdEx]
  13492. iNdEx++
  13493. v |= (int64(b) & 0x7F) << shift
  13494. if b < 0x80 {
  13495. break
  13496. }
  13497. }
  13498. m.List = append(m.List, v)
  13499. }
  13500. } else {
  13501. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  13502. }
  13503. default:
  13504. iNdEx = preIndex
  13505. skippy, err := skipApi(dAtA[iNdEx:])
  13506. if err != nil {
  13507. return err
  13508. }
  13509. if skippy < 0 {
  13510. return ErrInvalidLengthApi
  13511. }
  13512. if (iNdEx + skippy) > l {
  13513. return io.ErrUnexpectedEOF
  13514. }
  13515. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13516. iNdEx += skippy
  13517. }
  13518. }
  13519. if iNdEx > l {
  13520. return io.ErrUnexpectedEOF
  13521. }
  13522. return nil
  13523. }
  13524. func (m *UpdateCoinConfigReq) Unmarshal(dAtA []byte) error {
  13525. l := len(dAtA)
  13526. iNdEx := 0
  13527. for iNdEx < l {
  13528. preIndex := iNdEx
  13529. var wire uint64
  13530. for shift := uint(0); ; shift += 7 {
  13531. if shift >= 64 {
  13532. return ErrIntOverflowApi
  13533. }
  13534. if iNdEx >= l {
  13535. return io.ErrUnexpectedEOF
  13536. }
  13537. b := dAtA[iNdEx]
  13538. iNdEx++
  13539. wire |= (uint64(b) & 0x7F) << shift
  13540. if b < 0x80 {
  13541. break
  13542. }
  13543. }
  13544. fieldNum := int32(wire >> 3)
  13545. wireType := int(wire & 0x7)
  13546. if wireType == 4 {
  13547. return fmt.Errorf("proto: UpdateCoinConfigReq: wiretype end group for non-group")
  13548. }
  13549. if fieldNum <= 0 {
  13550. return fmt.Errorf("proto: UpdateCoinConfigReq: illegal tag %d (wire type %d)", fieldNum, wire)
  13551. }
  13552. switch fieldNum {
  13553. case 1:
  13554. if wireType != 0 {
  13555. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  13556. }
  13557. m.Id = 0
  13558. for shift := uint(0); ; shift += 7 {
  13559. if shift >= 64 {
  13560. return ErrIntOverflowApi
  13561. }
  13562. if iNdEx >= l {
  13563. return io.ErrUnexpectedEOF
  13564. }
  13565. b := dAtA[iNdEx]
  13566. iNdEx++
  13567. m.Id |= (int64(b) & 0x7F) << shift
  13568. if b < 0x80 {
  13569. break
  13570. }
  13571. }
  13572. case 2:
  13573. if wireType != 2 {
  13574. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  13575. }
  13576. var stringLen uint64
  13577. for shift := uint(0); ; shift += 7 {
  13578. if shift >= 64 {
  13579. return ErrIntOverflowApi
  13580. }
  13581. if iNdEx >= l {
  13582. return io.ErrUnexpectedEOF
  13583. }
  13584. b := dAtA[iNdEx]
  13585. iNdEx++
  13586. stringLen |= (uint64(b) & 0x7F) << shift
  13587. if b < 0x80 {
  13588. break
  13589. }
  13590. }
  13591. intStringLen := int(stringLen)
  13592. if intStringLen < 0 {
  13593. return ErrInvalidLengthApi
  13594. }
  13595. postIndex := iNdEx + intStringLen
  13596. if postIndex > l {
  13597. return io.ErrUnexpectedEOF
  13598. }
  13599. m.Title = string(dAtA[iNdEx:postIndex])
  13600. iNdEx = postIndex
  13601. case 3:
  13602. if wireType != 0 {
  13603. return fmt.Errorf("proto: wrong wireType = %d for field ChangeNum", wireType)
  13604. }
  13605. m.ChangeNum = 0
  13606. for shift := uint(0); ; shift += 7 {
  13607. if shift >= 64 {
  13608. return ErrIntOverflowApi
  13609. }
  13610. if iNdEx >= l {
  13611. return io.ErrUnexpectedEOF
  13612. }
  13613. b := dAtA[iNdEx]
  13614. iNdEx++
  13615. m.ChangeNum |= (int64(b) & 0x7F) << shift
  13616. if b < 0x80 {
  13617. break
  13618. }
  13619. }
  13620. case 4:
  13621. if wireType != 0 {
  13622. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  13623. }
  13624. m.StartTime = 0
  13625. for shift := uint(0); ; shift += 7 {
  13626. if shift >= 64 {
  13627. return ErrIntOverflowApi
  13628. }
  13629. if iNdEx >= l {
  13630. return io.ErrUnexpectedEOF
  13631. }
  13632. b := dAtA[iNdEx]
  13633. iNdEx++
  13634. m.StartTime |= (int64(b) & 0x7F) << shift
  13635. if b < 0x80 {
  13636. break
  13637. }
  13638. }
  13639. case 5:
  13640. if wireType != 0 {
  13641. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  13642. }
  13643. m.EndTime = 0
  13644. for shift := uint(0); ; shift += 7 {
  13645. if shift >= 64 {
  13646. return ErrIntOverflowApi
  13647. }
  13648. if iNdEx >= l {
  13649. return io.ErrUnexpectedEOF
  13650. }
  13651. b := dAtA[iNdEx]
  13652. iNdEx++
  13653. m.EndTime |= (int64(b) & 0x7F) << shift
  13654. if b < 0x80 {
  13655. break
  13656. }
  13657. }
  13658. case 6:
  13659. if wireType != 0 {
  13660. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  13661. }
  13662. m.Status = 0
  13663. for shift := uint(0); ; shift += 7 {
  13664. if shift >= 64 {
  13665. return ErrIntOverflowApi
  13666. }
  13667. if iNdEx >= l {
  13668. return io.ErrUnexpectedEOF
  13669. }
  13670. b := dAtA[iNdEx]
  13671. iNdEx++
  13672. m.Status |= (int64(b) & 0x7F) << shift
  13673. if b < 0x80 {
  13674. break
  13675. }
  13676. }
  13677. case 7:
  13678. if wireType != 0 {
  13679. return fmt.Errorf("proto: wrong wireType = %d for field GiftType", wireType)
  13680. }
  13681. m.GiftType = 0
  13682. for shift := uint(0); ; shift += 7 {
  13683. if shift >= 64 {
  13684. return ErrIntOverflowApi
  13685. }
  13686. if iNdEx >= l {
  13687. return io.ErrUnexpectedEOF
  13688. }
  13689. b := dAtA[iNdEx]
  13690. iNdEx++
  13691. m.GiftType |= (int64(b) & 0x7F) << shift
  13692. if b < 0x80 {
  13693. break
  13694. }
  13695. }
  13696. case 8:
  13697. if wireType == 0 {
  13698. var v int64
  13699. for shift := uint(0); ; shift += 7 {
  13700. if shift >= 64 {
  13701. return ErrIntOverflowApi
  13702. }
  13703. if iNdEx >= l {
  13704. return io.ErrUnexpectedEOF
  13705. }
  13706. b := dAtA[iNdEx]
  13707. iNdEx++
  13708. v |= (int64(b) & 0x7F) << shift
  13709. if b < 0x80 {
  13710. break
  13711. }
  13712. }
  13713. m.GiftIds = append(m.GiftIds, v)
  13714. } else if wireType == 2 {
  13715. var packedLen int
  13716. for shift := uint(0); ; shift += 7 {
  13717. if shift >= 64 {
  13718. return ErrIntOverflowApi
  13719. }
  13720. if iNdEx >= l {
  13721. return io.ErrUnexpectedEOF
  13722. }
  13723. b := dAtA[iNdEx]
  13724. iNdEx++
  13725. packedLen |= (int(b) & 0x7F) << shift
  13726. if b < 0x80 {
  13727. break
  13728. }
  13729. }
  13730. if packedLen < 0 {
  13731. return ErrInvalidLengthApi
  13732. }
  13733. postIndex := iNdEx + packedLen
  13734. if postIndex > l {
  13735. return io.ErrUnexpectedEOF
  13736. }
  13737. var elementCount int
  13738. var count int
  13739. for _, integer := range dAtA {
  13740. if integer < 128 {
  13741. count++
  13742. }
  13743. }
  13744. elementCount = count
  13745. if elementCount != 0 && len(m.GiftIds) == 0 {
  13746. m.GiftIds = make([]int64, 0, elementCount)
  13747. }
  13748. for iNdEx < postIndex {
  13749. var v int64
  13750. for shift := uint(0); ; shift += 7 {
  13751. if shift >= 64 {
  13752. return ErrIntOverflowApi
  13753. }
  13754. if iNdEx >= l {
  13755. return io.ErrUnexpectedEOF
  13756. }
  13757. b := dAtA[iNdEx]
  13758. iNdEx++
  13759. v |= (int64(b) & 0x7F) << shift
  13760. if b < 0x80 {
  13761. break
  13762. }
  13763. }
  13764. m.GiftIds = append(m.GiftIds, v)
  13765. }
  13766. } else {
  13767. return fmt.Errorf("proto: wrong wireType = %d for field GiftIds", wireType)
  13768. }
  13769. case 9:
  13770. if wireType != 2 {
  13771. return fmt.Errorf("proto: wrong wireType = %d for field AreaIds", wireType)
  13772. }
  13773. var msglen int
  13774. for shift := uint(0); ; shift += 7 {
  13775. if shift >= 64 {
  13776. return ErrIntOverflowApi
  13777. }
  13778. if iNdEx >= l {
  13779. return io.ErrUnexpectedEOF
  13780. }
  13781. b := dAtA[iNdEx]
  13782. iNdEx++
  13783. msglen |= (int(b) & 0x7F) << shift
  13784. if b < 0x80 {
  13785. break
  13786. }
  13787. }
  13788. if msglen < 0 {
  13789. return ErrInvalidLengthApi
  13790. }
  13791. postIndex := iNdEx + msglen
  13792. if postIndex > l {
  13793. return io.ErrUnexpectedEOF
  13794. }
  13795. m.AreaIds = append(m.AreaIds, &UpdateCoinConfigReq_AreaIds{})
  13796. if err := m.AreaIds[len(m.AreaIds)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  13797. return err
  13798. }
  13799. iNdEx = postIndex
  13800. default:
  13801. iNdEx = preIndex
  13802. skippy, err := skipApi(dAtA[iNdEx:])
  13803. if err != nil {
  13804. return err
  13805. }
  13806. if skippy < 0 {
  13807. return ErrInvalidLengthApi
  13808. }
  13809. if (iNdEx + skippy) > l {
  13810. return io.ErrUnexpectedEOF
  13811. }
  13812. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13813. iNdEx += skippy
  13814. }
  13815. }
  13816. if iNdEx > l {
  13817. return io.ErrUnexpectedEOF
  13818. }
  13819. return nil
  13820. }
  13821. func (m *UpdateCoinConfigReq_AreaIds) Unmarshal(dAtA []byte) error {
  13822. l := len(dAtA)
  13823. iNdEx := 0
  13824. for iNdEx < l {
  13825. preIndex := iNdEx
  13826. var wire uint64
  13827. for shift := uint(0); ; shift += 7 {
  13828. if shift >= 64 {
  13829. return ErrIntOverflowApi
  13830. }
  13831. if iNdEx >= l {
  13832. return io.ErrUnexpectedEOF
  13833. }
  13834. b := dAtA[iNdEx]
  13835. iNdEx++
  13836. wire |= (uint64(b) & 0x7F) << shift
  13837. if b < 0x80 {
  13838. break
  13839. }
  13840. }
  13841. fieldNum := int32(wire >> 3)
  13842. wireType := int(wire & 0x7)
  13843. if wireType == 4 {
  13844. return fmt.Errorf("proto: AreaIds: wiretype end group for non-group")
  13845. }
  13846. if fieldNum <= 0 {
  13847. return fmt.Errorf("proto: AreaIds: illegal tag %d (wire type %d)", fieldNum, wire)
  13848. }
  13849. switch fieldNum {
  13850. case 1:
  13851. if wireType != 0 {
  13852. return fmt.Errorf("proto: wrong wireType = %d for field ParentId", wireType)
  13853. }
  13854. m.ParentId = 0
  13855. for shift := uint(0); ; shift += 7 {
  13856. if shift >= 64 {
  13857. return ErrIntOverflowApi
  13858. }
  13859. if iNdEx >= l {
  13860. return io.ErrUnexpectedEOF
  13861. }
  13862. b := dAtA[iNdEx]
  13863. iNdEx++
  13864. m.ParentId |= (int64(b) & 0x7F) << shift
  13865. if b < 0x80 {
  13866. break
  13867. }
  13868. }
  13869. case 2:
  13870. if wireType != 0 {
  13871. return fmt.Errorf("proto: wrong wireType = %d for field IsAll", wireType)
  13872. }
  13873. m.IsAll = 0
  13874. for shift := uint(0); ; shift += 7 {
  13875. if shift >= 64 {
  13876. return ErrIntOverflowApi
  13877. }
  13878. if iNdEx >= l {
  13879. return io.ErrUnexpectedEOF
  13880. }
  13881. b := dAtA[iNdEx]
  13882. iNdEx++
  13883. m.IsAll |= (int64(b) & 0x7F) << shift
  13884. if b < 0x80 {
  13885. break
  13886. }
  13887. }
  13888. case 3:
  13889. if wireType == 0 {
  13890. var v int64
  13891. for shift := uint(0); ; shift += 7 {
  13892. if shift >= 64 {
  13893. return ErrIntOverflowApi
  13894. }
  13895. if iNdEx >= l {
  13896. return io.ErrUnexpectedEOF
  13897. }
  13898. b := dAtA[iNdEx]
  13899. iNdEx++
  13900. v |= (int64(b) & 0x7F) << shift
  13901. if b < 0x80 {
  13902. break
  13903. }
  13904. }
  13905. m.List = append(m.List, v)
  13906. } else if wireType == 2 {
  13907. var packedLen int
  13908. for shift := uint(0); ; shift += 7 {
  13909. if shift >= 64 {
  13910. return ErrIntOverflowApi
  13911. }
  13912. if iNdEx >= l {
  13913. return io.ErrUnexpectedEOF
  13914. }
  13915. b := dAtA[iNdEx]
  13916. iNdEx++
  13917. packedLen |= (int(b) & 0x7F) << shift
  13918. if b < 0x80 {
  13919. break
  13920. }
  13921. }
  13922. if packedLen < 0 {
  13923. return ErrInvalidLengthApi
  13924. }
  13925. postIndex := iNdEx + packedLen
  13926. if postIndex > l {
  13927. return io.ErrUnexpectedEOF
  13928. }
  13929. var elementCount int
  13930. var count int
  13931. for _, integer := range dAtA {
  13932. if integer < 128 {
  13933. count++
  13934. }
  13935. }
  13936. elementCount = count
  13937. if elementCount != 0 && len(m.List) == 0 {
  13938. m.List = make([]int64, 0, elementCount)
  13939. }
  13940. for iNdEx < postIndex {
  13941. var v int64
  13942. for shift := uint(0); ; shift += 7 {
  13943. if shift >= 64 {
  13944. return ErrIntOverflowApi
  13945. }
  13946. if iNdEx >= l {
  13947. return io.ErrUnexpectedEOF
  13948. }
  13949. b := dAtA[iNdEx]
  13950. iNdEx++
  13951. v |= (int64(b) & 0x7F) << shift
  13952. if b < 0x80 {
  13953. break
  13954. }
  13955. }
  13956. m.List = append(m.List, v)
  13957. }
  13958. } else {
  13959. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  13960. }
  13961. default:
  13962. iNdEx = preIndex
  13963. skippy, err := skipApi(dAtA[iNdEx:])
  13964. if err != nil {
  13965. return err
  13966. }
  13967. if skippy < 0 {
  13968. return ErrInvalidLengthApi
  13969. }
  13970. if (iNdEx + skippy) > l {
  13971. return io.ErrUnexpectedEOF
  13972. }
  13973. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  13974. iNdEx += skippy
  13975. }
  13976. }
  13977. if iNdEx > l {
  13978. return io.ErrUnexpectedEOF
  13979. }
  13980. return nil
  13981. }
  13982. func (m *UpdateCoinConfigResp) Unmarshal(dAtA []byte) error {
  13983. l := len(dAtA)
  13984. iNdEx := 0
  13985. for iNdEx < l {
  13986. preIndex := iNdEx
  13987. var wire uint64
  13988. for shift := uint(0); ; shift += 7 {
  13989. if shift >= 64 {
  13990. return ErrIntOverflowApi
  13991. }
  13992. if iNdEx >= l {
  13993. return io.ErrUnexpectedEOF
  13994. }
  13995. b := dAtA[iNdEx]
  13996. iNdEx++
  13997. wire |= (uint64(b) & 0x7F) << shift
  13998. if b < 0x80 {
  13999. break
  14000. }
  14001. }
  14002. fieldNum := int32(wire >> 3)
  14003. wireType := int(wire & 0x7)
  14004. if wireType == 4 {
  14005. return fmt.Errorf("proto: UpdateCoinConfigResp: wiretype end group for non-group")
  14006. }
  14007. if fieldNum <= 0 {
  14008. return fmt.Errorf("proto: UpdateCoinConfigResp: illegal tag %d (wire type %d)", fieldNum, wire)
  14009. }
  14010. switch fieldNum {
  14011. case 1:
  14012. if wireType != 0 {
  14013. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  14014. }
  14015. var v int
  14016. for shift := uint(0); ; shift += 7 {
  14017. if shift >= 64 {
  14018. return ErrIntOverflowApi
  14019. }
  14020. if iNdEx >= l {
  14021. return io.ErrUnexpectedEOF
  14022. }
  14023. b := dAtA[iNdEx]
  14024. iNdEx++
  14025. v |= (int(b) & 0x7F) << shift
  14026. if b < 0x80 {
  14027. break
  14028. }
  14029. }
  14030. m.Status = bool(v != 0)
  14031. default:
  14032. iNdEx = preIndex
  14033. skippy, err := skipApi(dAtA[iNdEx:])
  14034. if err != nil {
  14035. return err
  14036. }
  14037. if skippy < 0 {
  14038. return ErrInvalidLengthApi
  14039. }
  14040. if (iNdEx + skippy) > l {
  14041. return io.ErrUnexpectedEOF
  14042. }
  14043. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14044. iNdEx += skippy
  14045. }
  14046. }
  14047. if iNdEx > l {
  14048. return io.ErrUnexpectedEOF
  14049. }
  14050. return nil
  14051. }
  14052. func (m *UpdateCoinStatusReq) Unmarshal(dAtA []byte) error {
  14053. l := len(dAtA)
  14054. iNdEx := 0
  14055. for iNdEx < l {
  14056. preIndex := iNdEx
  14057. var wire uint64
  14058. for shift := uint(0); ; shift += 7 {
  14059. if shift >= 64 {
  14060. return ErrIntOverflowApi
  14061. }
  14062. if iNdEx >= l {
  14063. return io.ErrUnexpectedEOF
  14064. }
  14065. b := dAtA[iNdEx]
  14066. iNdEx++
  14067. wire |= (uint64(b) & 0x7F) << shift
  14068. if b < 0x80 {
  14069. break
  14070. }
  14071. }
  14072. fieldNum := int32(wire >> 3)
  14073. wireType := int(wire & 0x7)
  14074. if wireType == 4 {
  14075. return fmt.Errorf("proto: UpdateCoinStatusReq: wiretype end group for non-group")
  14076. }
  14077. if fieldNum <= 0 {
  14078. return fmt.Errorf("proto: UpdateCoinStatusReq: illegal tag %d (wire type %d)", fieldNum, wire)
  14079. }
  14080. switch fieldNum {
  14081. case 1:
  14082. if wireType != 0 {
  14083. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  14084. }
  14085. m.Id = 0
  14086. for shift := uint(0); ; shift += 7 {
  14087. if shift >= 64 {
  14088. return ErrIntOverflowApi
  14089. }
  14090. if iNdEx >= l {
  14091. return io.ErrUnexpectedEOF
  14092. }
  14093. b := dAtA[iNdEx]
  14094. iNdEx++
  14095. m.Id |= (int64(b) & 0x7F) << shift
  14096. if b < 0x80 {
  14097. break
  14098. }
  14099. }
  14100. case 2:
  14101. if wireType != 0 {
  14102. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  14103. }
  14104. m.Status = 0
  14105. for shift := uint(0); ; shift += 7 {
  14106. if shift >= 64 {
  14107. return ErrIntOverflowApi
  14108. }
  14109. if iNdEx >= l {
  14110. return io.ErrUnexpectedEOF
  14111. }
  14112. b := dAtA[iNdEx]
  14113. iNdEx++
  14114. m.Status |= (int64(b) & 0x7F) << shift
  14115. if b < 0x80 {
  14116. break
  14117. }
  14118. }
  14119. default:
  14120. iNdEx = preIndex
  14121. skippy, err := skipApi(dAtA[iNdEx:])
  14122. if err != nil {
  14123. return err
  14124. }
  14125. if skippy < 0 {
  14126. return ErrInvalidLengthApi
  14127. }
  14128. if (iNdEx + skippy) > l {
  14129. return io.ErrUnexpectedEOF
  14130. }
  14131. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14132. iNdEx += skippy
  14133. }
  14134. }
  14135. if iNdEx > l {
  14136. return io.ErrUnexpectedEOF
  14137. }
  14138. return nil
  14139. }
  14140. func (m *UpdateCoinStatusResp) Unmarshal(dAtA []byte) error {
  14141. l := len(dAtA)
  14142. iNdEx := 0
  14143. for iNdEx < l {
  14144. preIndex := iNdEx
  14145. var wire uint64
  14146. for shift := uint(0); ; shift += 7 {
  14147. if shift >= 64 {
  14148. return ErrIntOverflowApi
  14149. }
  14150. if iNdEx >= l {
  14151. return io.ErrUnexpectedEOF
  14152. }
  14153. b := dAtA[iNdEx]
  14154. iNdEx++
  14155. wire |= (uint64(b) & 0x7F) << shift
  14156. if b < 0x80 {
  14157. break
  14158. }
  14159. }
  14160. fieldNum := int32(wire >> 3)
  14161. wireType := int(wire & 0x7)
  14162. if wireType == 4 {
  14163. return fmt.Errorf("proto: UpdateCoinStatusResp: wiretype end group for non-group")
  14164. }
  14165. if fieldNum <= 0 {
  14166. return fmt.Errorf("proto: UpdateCoinStatusResp: illegal tag %d (wire type %d)", fieldNum, wire)
  14167. }
  14168. switch fieldNum {
  14169. case 1:
  14170. if wireType != 0 {
  14171. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  14172. }
  14173. var v int
  14174. for shift := uint(0); ; shift += 7 {
  14175. if shift >= 64 {
  14176. return ErrIntOverflowApi
  14177. }
  14178. if iNdEx >= l {
  14179. return io.ErrUnexpectedEOF
  14180. }
  14181. b := dAtA[iNdEx]
  14182. iNdEx++
  14183. v |= (int(b) & 0x7F) << shift
  14184. if b < 0x80 {
  14185. break
  14186. }
  14187. }
  14188. m.Status = bool(v != 0)
  14189. default:
  14190. iNdEx = preIndex
  14191. skippy, err := skipApi(dAtA[iNdEx:])
  14192. if err != nil {
  14193. return err
  14194. }
  14195. if skippy < 0 {
  14196. return ErrInvalidLengthApi
  14197. }
  14198. if (iNdEx + skippy) > l {
  14199. return io.ErrUnexpectedEOF
  14200. }
  14201. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14202. iNdEx += skippy
  14203. }
  14204. }
  14205. if iNdEx > l {
  14206. return io.ErrUnexpectedEOF
  14207. }
  14208. return nil
  14209. }
  14210. func (m *DeleteCoinReq) Unmarshal(dAtA []byte) error {
  14211. l := len(dAtA)
  14212. iNdEx := 0
  14213. for iNdEx < l {
  14214. preIndex := iNdEx
  14215. var wire uint64
  14216. for shift := uint(0); ; shift += 7 {
  14217. if shift >= 64 {
  14218. return ErrIntOverflowApi
  14219. }
  14220. if iNdEx >= l {
  14221. return io.ErrUnexpectedEOF
  14222. }
  14223. b := dAtA[iNdEx]
  14224. iNdEx++
  14225. wire |= (uint64(b) & 0x7F) << shift
  14226. if b < 0x80 {
  14227. break
  14228. }
  14229. }
  14230. fieldNum := int32(wire >> 3)
  14231. wireType := int(wire & 0x7)
  14232. if wireType == 4 {
  14233. return fmt.Errorf("proto: DeleteCoinReq: wiretype end group for non-group")
  14234. }
  14235. if fieldNum <= 0 {
  14236. return fmt.Errorf("proto: DeleteCoinReq: illegal tag %d (wire type %d)", fieldNum, wire)
  14237. }
  14238. switch fieldNum {
  14239. case 1:
  14240. if wireType != 0 {
  14241. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  14242. }
  14243. m.Id = 0
  14244. for shift := uint(0); ; shift += 7 {
  14245. if shift >= 64 {
  14246. return ErrIntOverflowApi
  14247. }
  14248. if iNdEx >= l {
  14249. return io.ErrUnexpectedEOF
  14250. }
  14251. b := dAtA[iNdEx]
  14252. iNdEx++
  14253. m.Id |= (int64(b) & 0x7F) << shift
  14254. if b < 0x80 {
  14255. break
  14256. }
  14257. }
  14258. default:
  14259. iNdEx = preIndex
  14260. skippy, err := skipApi(dAtA[iNdEx:])
  14261. if err != nil {
  14262. return err
  14263. }
  14264. if skippy < 0 {
  14265. return ErrInvalidLengthApi
  14266. }
  14267. if (iNdEx + skippy) > l {
  14268. return io.ErrUnexpectedEOF
  14269. }
  14270. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14271. iNdEx += skippy
  14272. }
  14273. }
  14274. if iNdEx > l {
  14275. return io.ErrUnexpectedEOF
  14276. }
  14277. return nil
  14278. }
  14279. func (m *DeleteCoinResp) Unmarshal(dAtA []byte) error {
  14280. l := len(dAtA)
  14281. iNdEx := 0
  14282. for iNdEx < l {
  14283. preIndex := iNdEx
  14284. var wire uint64
  14285. for shift := uint(0); ; shift += 7 {
  14286. if shift >= 64 {
  14287. return ErrIntOverflowApi
  14288. }
  14289. if iNdEx >= l {
  14290. return io.ErrUnexpectedEOF
  14291. }
  14292. b := dAtA[iNdEx]
  14293. iNdEx++
  14294. wire |= (uint64(b) & 0x7F) << shift
  14295. if b < 0x80 {
  14296. break
  14297. }
  14298. }
  14299. fieldNum := int32(wire >> 3)
  14300. wireType := int(wire & 0x7)
  14301. if wireType == 4 {
  14302. return fmt.Errorf("proto: DeleteCoinResp: wiretype end group for non-group")
  14303. }
  14304. if fieldNum <= 0 {
  14305. return fmt.Errorf("proto: DeleteCoinResp: illegal tag %d (wire type %d)", fieldNum, wire)
  14306. }
  14307. switch fieldNum {
  14308. case 1:
  14309. if wireType != 0 {
  14310. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  14311. }
  14312. var v int
  14313. for shift := uint(0); ; shift += 7 {
  14314. if shift >= 64 {
  14315. return ErrIntOverflowApi
  14316. }
  14317. if iNdEx >= l {
  14318. return io.ErrUnexpectedEOF
  14319. }
  14320. b := dAtA[iNdEx]
  14321. iNdEx++
  14322. v |= (int(b) & 0x7F) << shift
  14323. if b < 0x80 {
  14324. break
  14325. }
  14326. }
  14327. m.Status = bool(v != 0)
  14328. default:
  14329. iNdEx = preIndex
  14330. skippy, err := skipApi(dAtA[iNdEx:])
  14331. if err != nil {
  14332. return err
  14333. }
  14334. if skippy < 0 {
  14335. return ErrInvalidLengthApi
  14336. }
  14337. if (iNdEx + skippy) > l {
  14338. return io.ErrUnexpectedEOF
  14339. }
  14340. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14341. iNdEx += skippy
  14342. }
  14343. }
  14344. if iNdEx > l {
  14345. return io.ErrUnexpectedEOF
  14346. }
  14347. return nil
  14348. }
  14349. func (m *GetPoolListReq) Unmarshal(dAtA []byte) error {
  14350. l := len(dAtA)
  14351. iNdEx := 0
  14352. for iNdEx < l {
  14353. preIndex := iNdEx
  14354. var wire uint64
  14355. for shift := uint(0); ; shift += 7 {
  14356. if shift >= 64 {
  14357. return ErrIntOverflowApi
  14358. }
  14359. if iNdEx >= l {
  14360. return io.ErrUnexpectedEOF
  14361. }
  14362. b := dAtA[iNdEx]
  14363. iNdEx++
  14364. wire |= (uint64(b) & 0x7F) << shift
  14365. if b < 0x80 {
  14366. break
  14367. }
  14368. }
  14369. fieldNum := int32(wire >> 3)
  14370. wireType := int(wire & 0x7)
  14371. if wireType == 4 {
  14372. return fmt.Errorf("proto: GetPoolListReq: wiretype end group for non-group")
  14373. }
  14374. if fieldNum <= 0 {
  14375. return fmt.Errorf("proto: GetPoolListReq: illegal tag %d (wire type %d)", fieldNum, wire)
  14376. }
  14377. switch fieldNum {
  14378. case 1:
  14379. if wireType != 0 {
  14380. return fmt.Errorf("proto: wrong wireType = %d for field Page", wireType)
  14381. }
  14382. m.Page = 0
  14383. for shift := uint(0); ; shift += 7 {
  14384. if shift >= 64 {
  14385. return ErrIntOverflowApi
  14386. }
  14387. if iNdEx >= l {
  14388. return io.ErrUnexpectedEOF
  14389. }
  14390. b := dAtA[iNdEx]
  14391. iNdEx++
  14392. m.Page |= (int64(b) & 0x7F) << shift
  14393. if b < 0x80 {
  14394. break
  14395. }
  14396. }
  14397. case 2:
  14398. if wireType != 0 {
  14399. return fmt.Errorf("proto: wrong wireType = %d for field PageSize", wireType)
  14400. }
  14401. m.PageSize = 0
  14402. for shift := uint(0); ; shift += 7 {
  14403. if shift >= 64 {
  14404. return ErrIntOverflowApi
  14405. }
  14406. if iNdEx >= l {
  14407. return io.ErrUnexpectedEOF
  14408. }
  14409. b := dAtA[iNdEx]
  14410. iNdEx++
  14411. m.PageSize |= (int64(b) & 0x7F) << shift
  14412. if b < 0x80 {
  14413. break
  14414. }
  14415. }
  14416. default:
  14417. iNdEx = preIndex
  14418. skippy, err := skipApi(dAtA[iNdEx:])
  14419. if err != nil {
  14420. return err
  14421. }
  14422. if skippy < 0 {
  14423. return ErrInvalidLengthApi
  14424. }
  14425. if (iNdEx + skippy) > l {
  14426. return io.ErrUnexpectedEOF
  14427. }
  14428. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14429. iNdEx += skippy
  14430. }
  14431. }
  14432. if iNdEx > l {
  14433. return io.ErrUnexpectedEOF
  14434. }
  14435. return nil
  14436. }
  14437. func (m *GetPoolListResp) Unmarshal(dAtA []byte) error {
  14438. l := len(dAtA)
  14439. iNdEx := 0
  14440. for iNdEx < l {
  14441. preIndex := iNdEx
  14442. var wire uint64
  14443. for shift := uint(0); ; shift += 7 {
  14444. if shift >= 64 {
  14445. return ErrIntOverflowApi
  14446. }
  14447. if iNdEx >= l {
  14448. return io.ErrUnexpectedEOF
  14449. }
  14450. b := dAtA[iNdEx]
  14451. iNdEx++
  14452. wire |= (uint64(b) & 0x7F) << shift
  14453. if b < 0x80 {
  14454. break
  14455. }
  14456. }
  14457. fieldNum := int32(wire >> 3)
  14458. wireType := int(wire & 0x7)
  14459. if wireType == 4 {
  14460. return fmt.Errorf("proto: GetPoolListResp: wiretype end group for non-group")
  14461. }
  14462. if fieldNum <= 0 {
  14463. return fmt.Errorf("proto: GetPoolListResp: illegal tag %d (wire type %d)", fieldNum, wire)
  14464. }
  14465. switch fieldNum {
  14466. case 1:
  14467. if wireType != 0 {
  14468. return fmt.Errorf("proto: wrong wireType = %d for field Total", wireType)
  14469. }
  14470. m.Total = 0
  14471. for shift := uint(0); ; shift += 7 {
  14472. if shift >= 64 {
  14473. return ErrIntOverflowApi
  14474. }
  14475. if iNdEx >= l {
  14476. return io.ErrUnexpectedEOF
  14477. }
  14478. b := dAtA[iNdEx]
  14479. iNdEx++
  14480. m.Total |= (int64(b) & 0x7F) << shift
  14481. if b < 0x80 {
  14482. break
  14483. }
  14484. }
  14485. case 2:
  14486. if wireType != 0 {
  14487. return fmt.Errorf("proto: wrong wireType = %d for field TotalPage", wireType)
  14488. }
  14489. m.TotalPage = 0
  14490. for shift := uint(0); ; shift += 7 {
  14491. if shift >= 64 {
  14492. return ErrIntOverflowApi
  14493. }
  14494. if iNdEx >= l {
  14495. return io.ErrUnexpectedEOF
  14496. }
  14497. b := dAtA[iNdEx]
  14498. iNdEx++
  14499. m.TotalPage |= (int64(b) & 0x7F) << shift
  14500. if b < 0x80 {
  14501. break
  14502. }
  14503. }
  14504. case 3:
  14505. if wireType != 2 {
  14506. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  14507. }
  14508. var msglen int
  14509. for shift := uint(0); ; shift += 7 {
  14510. if shift >= 64 {
  14511. return ErrIntOverflowApi
  14512. }
  14513. if iNdEx >= l {
  14514. return io.ErrUnexpectedEOF
  14515. }
  14516. b := dAtA[iNdEx]
  14517. iNdEx++
  14518. msglen |= (int(b) & 0x7F) << shift
  14519. if b < 0x80 {
  14520. break
  14521. }
  14522. }
  14523. if msglen < 0 {
  14524. return ErrInvalidLengthApi
  14525. }
  14526. postIndex := iNdEx + msglen
  14527. if postIndex > l {
  14528. return io.ErrUnexpectedEOF
  14529. }
  14530. m.List = append(m.List, &GetPoolListResp_List{})
  14531. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  14532. return err
  14533. }
  14534. iNdEx = postIndex
  14535. default:
  14536. iNdEx = preIndex
  14537. skippy, err := skipApi(dAtA[iNdEx:])
  14538. if err != nil {
  14539. return err
  14540. }
  14541. if skippy < 0 {
  14542. return ErrInvalidLengthApi
  14543. }
  14544. if (iNdEx + skippy) > l {
  14545. return io.ErrUnexpectedEOF
  14546. }
  14547. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14548. iNdEx += skippy
  14549. }
  14550. }
  14551. if iNdEx > l {
  14552. return io.ErrUnexpectedEOF
  14553. }
  14554. return nil
  14555. }
  14556. func (m *GetPoolListResp_List) Unmarshal(dAtA []byte) error {
  14557. l := len(dAtA)
  14558. iNdEx := 0
  14559. for iNdEx < l {
  14560. preIndex := iNdEx
  14561. var wire uint64
  14562. for shift := uint(0); ; shift += 7 {
  14563. if shift >= 64 {
  14564. return ErrIntOverflowApi
  14565. }
  14566. if iNdEx >= l {
  14567. return io.ErrUnexpectedEOF
  14568. }
  14569. b := dAtA[iNdEx]
  14570. iNdEx++
  14571. wire |= (uint64(b) & 0x7F) << shift
  14572. if b < 0x80 {
  14573. break
  14574. }
  14575. }
  14576. fieldNum := int32(wire >> 3)
  14577. wireType := int(wire & 0x7)
  14578. if wireType == 4 {
  14579. return fmt.Errorf("proto: List: wiretype end group for non-group")
  14580. }
  14581. if fieldNum <= 0 {
  14582. return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
  14583. }
  14584. switch fieldNum {
  14585. case 1:
  14586. if wireType != 0 {
  14587. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  14588. }
  14589. m.Id = 0
  14590. for shift := uint(0); ; shift += 7 {
  14591. if shift >= 64 {
  14592. return ErrIntOverflowApi
  14593. }
  14594. if iNdEx >= l {
  14595. return io.ErrUnexpectedEOF
  14596. }
  14597. b := dAtA[iNdEx]
  14598. iNdEx++
  14599. m.Id |= (int64(b) & 0x7F) << shift
  14600. if b < 0x80 {
  14601. break
  14602. }
  14603. }
  14604. case 2:
  14605. if wireType != 0 {
  14606. return fmt.Errorf("proto: wrong wireType = %d for field CoinId", wireType)
  14607. }
  14608. m.CoinId = 0
  14609. for shift := uint(0); ; shift += 7 {
  14610. if shift >= 64 {
  14611. return ErrIntOverflowApi
  14612. }
  14613. if iNdEx >= l {
  14614. return io.ErrUnexpectedEOF
  14615. }
  14616. b := dAtA[iNdEx]
  14617. iNdEx++
  14618. m.CoinId |= (int64(b) & 0x7F) << shift
  14619. if b < 0x80 {
  14620. break
  14621. }
  14622. }
  14623. case 3:
  14624. if wireType != 2 {
  14625. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  14626. }
  14627. var stringLen uint64
  14628. for shift := uint(0); ; shift += 7 {
  14629. if shift >= 64 {
  14630. return ErrIntOverflowApi
  14631. }
  14632. if iNdEx >= l {
  14633. return io.ErrUnexpectedEOF
  14634. }
  14635. b := dAtA[iNdEx]
  14636. iNdEx++
  14637. stringLen |= (uint64(b) & 0x7F) << shift
  14638. if b < 0x80 {
  14639. break
  14640. }
  14641. }
  14642. intStringLen := int(stringLen)
  14643. if intStringLen < 0 {
  14644. return ErrInvalidLengthApi
  14645. }
  14646. postIndex := iNdEx + intStringLen
  14647. if postIndex > l {
  14648. return io.ErrUnexpectedEOF
  14649. }
  14650. m.Title = string(dAtA[iNdEx:postIndex])
  14651. iNdEx = postIndex
  14652. case 4:
  14653. if wireType != 0 {
  14654. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  14655. }
  14656. m.StartTime = 0
  14657. for shift := uint(0); ; shift += 7 {
  14658. if shift >= 64 {
  14659. return ErrIntOverflowApi
  14660. }
  14661. if iNdEx >= l {
  14662. return io.ErrUnexpectedEOF
  14663. }
  14664. b := dAtA[iNdEx]
  14665. iNdEx++
  14666. m.StartTime |= (int64(b) & 0x7F) << shift
  14667. if b < 0x80 {
  14668. break
  14669. }
  14670. }
  14671. case 5:
  14672. if wireType != 0 {
  14673. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  14674. }
  14675. m.EndTime = 0
  14676. for shift := uint(0); ; shift += 7 {
  14677. if shift >= 64 {
  14678. return ErrIntOverflowApi
  14679. }
  14680. if iNdEx >= l {
  14681. return io.ErrUnexpectedEOF
  14682. }
  14683. b := dAtA[iNdEx]
  14684. iNdEx++
  14685. m.EndTime |= (int64(b) & 0x7F) << shift
  14686. if b < 0x80 {
  14687. break
  14688. }
  14689. }
  14690. case 6:
  14691. if wireType != 0 {
  14692. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  14693. }
  14694. m.Status = 0
  14695. for shift := uint(0); ; shift += 7 {
  14696. if shift >= 64 {
  14697. return ErrIntOverflowApi
  14698. }
  14699. if iNdEx >= l {
  14700. return io.ErrUnexpectedEOF
  14701. }
  14702. b := dAtA[iNdEx]
  14703. iNdEx++
  14704. m.Status |= (int64(b) & 0x7F) << shift
  14705. if b < 0x80 {
  14706. break
  14707. }
  14708. }
  14709. case 7:
  14710. if wireType != 2 {
  14711. return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
  14712. }
  14713. var stringLen uint64
  14714. for shift := uint(0); ; shift += 7 {
  14715. if shift >= 64 {
  14716. return ErrIntOverflowApi
  14717. }
  14718. if iNdEx >= l {
  14719. return io.ErrUnexpectedEOF
  14720. }
  14721. b := dAtA[iNdEx]
  14722. iNdEx++
  14723. stringLen |= (uint64(b) & 0x7F) << shift
  14724. if b < 0x80 {
  14725. break
  14726. }
  14727. }
  14728. intStringLen := int(stringLen)
  14729. if intStringLen < 0 {
  14730. return ErrInvalidLengthApi
  14731. }
  14732. postIndex := iNdEx + intStringLen
  14733. if postIndex > l {
  14734. return io.ErrUnexpectedEOF
  14735. }
  14736. m.Rule = string(dAtA[iNdEx:postIndex])
  14737. iNdEx = postIndex
  14738. case 8:
  14739. if wireType != 2 {
  14740. return fmt.Errorf("proto: wrong wireType = %d for field CoinTitle", wireType)
  14741. }
  14742. var stringLen uint64
  14743. for shift := uint(0); ; shift += 7 {
  14744. if shift >= 64 {
  14745. return ErrIntOverflowApi
  14746. }
  14747. if iNdEx >= l {
  14748. return io.ErrUnexpectedEOF
  14749. }
  14750. b := dAtA[iNdEx]
  14751. iNdEx++
  14752. stringLen |= (uint64(b) & 0x7F) << shift
  14753. if b < 0x80 {
  14754. break
  14755. }
  14756. }
  14757. intStringLen := int(stringLen)
  14758. if intStringLen < 0 {
  14759. return ErrInvalidLengthApi
  14760. }
  14761. postIndex := iNdEx + intStringLen
  14762. if postIndex > l {
  14763. return io.ErrUnexpectedEOF
  14764. }
  14765. m.CoinTitle = string(dAtA[iNdEx:postIndex])
  14766. iNdEx = postIndex
  14767. default:
  14768. iNdEx = preIndex
  14769. skippy, err := skipApi(dAtA[iNdEx:])
  14770. if err != nil {
  14771. return err
  14772. }
  14773. if skippy < 0 {
  14774. return ErrInvalidLengthApi
  14775. }
  14776. if (iNdEx + skippy) > l {
  14777. return io.ErrUnexpectedEOF
  14778. }
  14779. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14780. iNdEx += skippy
  14781. }
  14782. }
  14783. if iNdEx > l {
  14784. return io.ErrUnexpectedEOF
  14785. }
  14786. return nil
  14787. }
  14788. func (m *UpdatePoolReq) Unmarshal(dAtA []byte) error {
  14789. l := len(dAtA)
  14790. iNdEx := 0
  14791. for iNdEx < l {
  14792. preIndex := iNdEx
  14793. var wire uint64
  14794. for shift := uint(0); ; shift += 7 {
  14795. if shift >= 64 {
  14796. return ErrIntOverflowApi
  14797. }
  14798. if iNdEx >= l {
  14799. return io.ErrUnexpectedEOF
  14800. }
  14801. b := dAtA[iNdEx]
  14802. iNdEx++
  14803. wire |= (uint64(b) & 0x7F) << shift
  14804. if b < 0x80 {
  14805. break
  14806. }
  14807. }
  14808. fieldNum := int32(wire >> 3)
  14809. wireType := int(wire & 0x7)
  14810. if wireType == 4 {
  14811. return fmt.Errorf("proto: UpdatePoolReq: wiretype end group for non-group")
  14812. }
  14813. if fieldNum <= 0 {
  14814. return fmt.Errorf("proto: UpdatePoolReq: illegal tag %d (wire type %d)", fieldNum, wire)
  14815. }
  14816. switch fieldNum {
  14817. case 1:
  14818. if wireType != 0 {
  14819. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  14820. }
  14821. m.Id = 0
  14822. for shift := uint(0); ; shift += 7 {
  14823. if shift >= 64 {
  14824. return ErrIntOverflowApi
  14825. }
  14826. if iNdEx >= l {
  14827. return io.ErrUnexpectedEOF
  14828. }
  14829. b := dAtA[iNdEx]
  14830. iNdEx++
  14831. m.Id |= (int64(b) & 0x7F) << shift
  14832. if b < 0x80 {
  14833. break
  14834. }
  14835. }
  14836. case 2:
  14837. if wireType != 0 {
  14838. return fmt.Errorf("proto: wrong wireType = %d for field CoinId", wireType)
  14839. }
  14840. m.CoinId = 0
  14841. for shift := uint(0); ; shift += 7 {
  14842. if shift >= 64 {
  14843. return ErrIntOverflowApi
  14844. }
  14845. if iNdEx >= l {
  14846. return io.ErrUnexpectedEOF
  14847. }
  14848. b := dAtA[iNdEx]
  14849. iNdEx++
  14850. m.CoinId |= (int64(b) & 0x7F) << shift
  14851. if b < 0x80 {
  14852. break
  14853. }
  14854. }
  14855. case 3:
  14856. if wireType != 2 {
  14857. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  14858. }
  14859. var stringLen uint64
  14860. for shift := uint(0); ; shift += 7 {
  14861. if shift >= 64 {
  14862. return ErrIntOverflowApi
  14863. }
  14864. if iNdEx >= l {
  14865. return io.ErrUnexpectedEOF
  14866. }
  14867. b := dAtA[iNdEx]
  14868. iNdEx++
  14869. stringLen |= (uint64(b) & 0x7F) << shift
  14870. if b < 0x80 {
  14871. break
  14872. }
  14873. }
  14874. intStringLen := int(stringLen)
  14875. if intStringLen < 0 {
  14876. return ErrInvalidLengthApi
  14877. }
  14878. postIndex := iNdEx + intStringLen
  14879. if postIndex > l {
  14880. return io.ErrUnexpectedEOF
  14881. }
  14882. m.Title = string(dAtA[iNdEx:postIndex])
  14883. iNdEx = postIndex
  14884. case 4:
  14885. if wireType != 0 {
  14886. return fmt.Errorf("proto: wrong wireType = %d for field StartTime", wireType)
  14887. }
  14888. m.StartTime = 0
  14889. for shift := uint(0); ; shift += 7 {
  14890. if shift >= 64 {
  14891. return ErrIntOverflowApi
  14892. }
  14893. if iNdEx >= l {
  14894. return io.ErrUnexpectedEOF
  14895. }
  14896. b := dAtA[iNdEx]
  14897. iNdEx++
  14898. m.StartTime |= (int64(b) & 0x7F) << shift
  14899. if b < 0x80 {
  14900. break
  14901. }
  14902. }
  14903. case 5:
  14904. if wireType != 0 {
  14905. return fmt.Errorf("proto: wrong wireType = %d for field EndTime", wireType)
  14906. }
  14907. m.EndTime = 0
  14908. for shift := uint(0); ; shift += 7 {
  14909. if shift >= 64 {
  14910. return ErrIntOverflowApi
  14911. }
  14912. if iNdEx >= l {
  14913. return io.ErrUnexpectedEOF
  14914. }
  14915. b := dAtA[iNdEx]
  14916. iNdEx++
  14917. m.EndTime |= (int64(b) & 0x7F) << shift
  14918. if b < 0x80 {
  14919. break
  14920. }
  14921. }
  14922. case 6:
  14923. if wireType != 2 {
  14924. return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType)
  14925. }
  14926. var stringLen uint64
  14927. for shift := uint(0); ; shift += 7 {
  14928. if shift >= 64 {
  14929. return ErrIntOverflowApi
  14930. }
  14931. if iNdEx >= l {
  14932. return io.ErrUnexpectedEOF
  14933. }
  14934. b := dAtA[iNdEx]
  14935. iNdEx++
  14936. stringLen |= (uint64(b) & 0x7F) << shift
  14937. if b < 0x80 {
  14938. break
  14939. }
  14940. }
  14941. intStringLen := int(stringLen)
  14942. if intStringLen < 0 {
  14943. return ErrInvalidLengthApi
  14944. }
  14945. postIndex := iNdEx + intStringLen
  14946. if postIndex > l {
  14947. return io.ErrUnexpectedEOF
  14948. }
  14949. m.Rule = string(dAtA[iNdEx:postIndex])
  14950. iNdEx = postIndex
  14951. default:
  14952. iNdEx = preIndex
  14953. skippy, err := skipApi(dAtA[iNdEx:])
  14954. if err != nil {
  14955. return err
  14956. }
  14957. if skippy < 0 {
  14958. return ErrInvalidLengthApi
  14959. }
  14960. if (iNdEx + skippy) > l {
  14961. return io.ErrUnexpectedEOF
  14962. }
  14963. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  14964. iNdEx += skippy
  14965. }
  14966. }
  14967. if iNdEx > l {
  14968. return io.ErrUnexpectedEOF
  14969. }
  14970. return nil
  14971. }
  14972. func (m *UpdatePoolResp) Unmarshal(dAtA []byte) error {
  14973. l := len(dAtA)
  14974. iNdEx := 0
  14975. for iNdEx < l {
  14976. preIndex := iNdEx
  14977. var wire uint64
  14978. for shift := uint(0); ; shift += 7 {
  14979. if shift >= 64 {
  14980. return ErrIntOverflowApi
  14981. }
  14982. if iNdEx >= l {
  14983. return io.ErrUnexpectedEOF
  14984. }
  14985. b := dAtA[iNdEx]
  14986. iNdEx++
  14987. wire |= (uint64(b) & 0x7F) << shift
  14988. if b < 0x80 {
  14989. break
  14990. }
  14991. }
  14992. fieldNum := int32(wire >> 3)
  14993. wireType := int(wire & 0x7)
  14994. if wireType == 4 {
  14995. return fmt.Errorf("proto: UpdatePoolResp: wiretype end group for non-group")
  14996. }
  14997. if fieldNum <= 0 {
  14998. return fmt.Errorf("proto: UpdatePoolResp: illegal tag %d (wire type %d)", fieldNum, wire)
  14999. }
  15000. switch fieldNum {
  15001. case 1:
  15002. if wireType != 0 {
  15003. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  15004. }
  15005. var v int
  15006. for shift := uint(0); ; shift += 7 {
  15007. if shift >= 64 {
  15008. return ErrIntOverflowApi
  15009. }
  15010. if iNdEx >= l {
  15011. return io.ErrUnexpectedEOF
  15012. }
  15013. b := dAtA[iNdEx]
  15014. iNdEx++
  15015. v |= (int(b) & 0x7F) << shift
  15016. if b < 0x80 {
  15017. break
  15018. }
  15019. }
  15020. m.Status = bool(v != 0)
  15021. default:
  15022. iNdEx = preIndex
  15023. skippy, err := skipApi(dAtA[iNdEx:])
  15024. if err != nil {
  15025. return err
  15026. }
  15027. if skippy < 0 {
  15028. return ErrInvalidLengthApi
  15029. }
  15030. if (iNdEx + skippy) > l {
  15031. return io.ErrUnexpectedEOF
  15032. }
  15033. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15034. iNdEx += skippy
  15035. }
  15036. }
  15037. if iNdEx > l {
  15038. return io.ErrUnexpectedEOF
  15039. }
  15040. return nil
  15041. }
  15042. func (m *DeletePoolReq) Unmarshal(dAtA []byte) error {
  15043. l := len(dAtA)
  15044. iNdEx := 0
  15045. for iNdEx < l {
  15046. preIndex := iNdEx
  15047. var wire uint64
  15048. for shift := uint(0); ; shift += 7 {
  15049. if shift >= 64 {
  15050. return ErrIntOverflowApi
  15051. }
  15052. if iNdEx >= l {
  15053. return io.ErrUnexpectedEOF
  15054. }
  15055. b := dAtA[iNdEx]
  15056. iNdEx++
  15057. wire |= (uint64(b) & 0x7F) << shift
  15058. if b < 0x80 {
  15059. break
  15060. }
  15061. }
  15062. fieldNum := int32(wire >> 3)
  15063. wireType := int(wire & 0x7)
  15064. if wireType == 4 {
  15065. return fmt.Errorf("proto: DeletePoolReq: wiretype end group for non-group")
  15066. }
  15067. if fieldNum <= 0 {
  15068. return fmt.Errorf("proto: DeletePoolReq: illegal tag %d (wire type %d)", fieldNum, wire)
  15069. }
  15070. switch fieldNum {
  15071. case 1:
  15072. if wireType != 0 {
  15073. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  15074. }
  15075. m.Id = 0
  15076. for shift := uint(0); ; shift += 7 {
  15077. if shift >= 64 {
  15078. return ErrIntOverflowApi
  15079. }
  15080. if iNdEx >= l {
  15081. return io.ErrUnexpectedEOF
  15082. }
  15083. b := dAtA[iNdEx]
  15084. iNdEx++
  15085. m.Id |= (int64(b) & 0x7F) << shift
  15086. if b < 0x80 {
  15087. break
  15088. }
  15089. }
  15090. default:
  15091. iNdEx = preIndex
  15092. skippy, err := skipApi(dAtA[iNdEx:])
  15093. if err != nil {
  15094. return err
  15095. }
  15096. if skippy < 0 {
  15097. return ErrInvalidLengthApi
  15098. }
  15099. if (iNdEx + skippy) > l {
  15100. return io.ErrUnexpectedEOF
  15101. }
  15102. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15103. iNdEx += skippy
  15104. }
  15105. }
  15106. if iNdEx > l {
  15107. return io.ErrUnexpectedEOF
  15108. }
  15109. return nil
  15110. }
  15111. func (m *DeletePoolResp) Unmarshal(dAtA []byte) error {
  15112. l := len(dAtA)
  15113. iNdEx := 0
  15114. for iNdEx < l {
  15115. preIndex := iNdEx
  15116. var wire uint64
  15117. for shift := uint(0); ; shift += 7 {
  15118. if shift >= 64 {
  15119. return ErrIntOverflowApi
  15120. }
  15121. if iNdEx >= l {
  15122. return io.ErrUnexpectedEOF
  15123. }
  15124. b := dAtA[iNdEx]
  15125. iNdEx++
  15126. wire |= (uint64(b) & 0x7F) << shift
  15127. if b < 0x80 {
  15128. break
  15129. }
  15130. }
  15131. fieldNum := int32(wire >> 3)
  15132. wireType := int(wire & 0x7)
  15133. if wireType == 4 {
  15134. return fmt.Errorf("proto: DeletePoolResp: wiretype end group for non-group")
  15135. }
  15136. if fieldNum <= 0 {
  15137. return fmt.Errorf("proto: DeletePoolResp: illegal tag %d (wire type %d)", fieldNum, wire)
  15138. }
  15139. switch fieldNum {
  15140. case 1:
  15141. if wireType != 0 {
  15142. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  15143. }
  15144. var v int
  15145. for shift := uint(0); ; shift += 7 {
  15146. if shift >= 64 {
  15147. return ErrIntOverflowApi
  15148. }
  15149. if iNdEx >= l {
  15150. return io.ErrUnexpectedEOF
  15151. }
  15152. b := dAtA[iNdEx]
  15153. iNdEx++
  15154. v |= (int(b) & 0x7F) << shift
  15155. if b < 0x80 {
  15156. break
  15157. }
  15158. }
  15159. m.Status = bool(v != 0)
  15160. default:
  15161. iNdEx = preIndex
  15162. skippy, err := skipApi(dAtA[iNdEx:])
  15163. if err != nil {
  15164. return err
  15165. }
  15166. if skippy < 0 {
  15167. return ErrInvalidLengthApi
  15168. }
  15169. if (iNdEx + skippy) > l {
  15170. return io.ErrUnexpectedEOF
  15171. }
  15172. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15173. iNdEx += skippy
  15174. }
  15175. }
  15176. if iNdEx > l {
  15177. return io.ErrUnexpectedEOF
  15178. }
  15179. return nil
  15180. }
  15181. func (m *UpdatePoolStatusReq) Unmarshal(dAtA []byte) error {
  15182. l := len(dAtA)
  15183. iNdEx := 0
  15184. for iNdEx < l {
  15185. preIndex := iNdEx
  15186. var wire uint64
  15187. for shift := uint(0); ; shift += 7 {
  15188. if shift >= 64 {
  15189. return ErrIntOverflowApi
  15190. }
  15191. if iNdEx >= l {
  15192. return io.ErrUnexpectedEOF
  15193. }
  15194. b := dAtA[iNdEx]
  15195. iNdEx++
  15196. wire |= (uint64(b) & 0x7F) << shift
  15197. if b < 0x80 {
  15198. break
  15199. }
  15200. }
  15201. fieldNum := int32(wire >> 3)
  15202. wireType := int(wire & 0x7)
  15203. if wireType == 4 {
  15204. return fmt.Errorf("proto: UpdatePoolStatusReq: wiretype end group for non-group")
  15205. }
  15206. if fieldNum <= 0 {
  15207. return fmt.Errorf("proto: UpdatePoolStatusReq: illegal tag %d (wire type %d)", fieldNum, wire)
  15208. }
  15209. switch fieldNum {
  15210. case 1:
  15211. if wireType != 0 {
  15212. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  15213. }
  15214. m.Id = 0
  15215. for shift := uint(0); ; shift += 7 {
  15216. if shift >= 64 {
  15217. return ErrIntOverflowApi
  15218. }
  15219. if iNdEx >= l {
  15220. return io.ErrUnexpectedEOF
  15221. }
  15222. b := dAtA[iNdEx]
  15223. iNdEx++
  15224. m.Id |= (int64(b) & 0x7F) << shift
  15225. if b < 0x80 {
  15226. break
  15227. }
  15228. }
  15229. case 2:
  15230. if wireType != 0 {
  15231. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  15232. }
  15233. m.Status = 0
  15234. for shift := uint(0); ; shift += 7 {
  15235. if shift >= 64 {
  15236. return ErrIntOverflowApi
  15237. }
  15238. if iNdEx >= l {
  15239. return io.ErrUnexpectedEOF
  15240. }
  15241. b := dAtA[iNdEx]
  15242. iNdEx++
  15243. m.Status |= (int64(b) & 0x7F) << shift
  15244. if b < 0x80 {
  15245. break
  15246. }
  15247. }
  15248. default:
  15249. iNdEx = preIndex
  15250. skippy, err := skipApi(dAtA[iNdEx:])
  15251. if err != nil {
  15252. return err
  15253. }
  15254. if skippy < 0 {
  15255. return ErrInvalidLengthApi
  15256. }
  15257. if (iNdEx + skippy) > l {
  15258. return io.ErrUnexpectedEOF
  15259. }
  15260. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15261. iNdEx += skippy
  15262. }
  15263. }
  15264. if iNdEx > l {
  15265. return io.ErrUnexpectedEOF
  15266. }
  15267. return nil
  15268. }
  15269. func (m *UpdatePoolStatusResp) Unmarshal(dAtA []byte) error {
  15270. l := len(dAtA)
  15271. iNdEx := 0
  15272. for iNdEx < l {
  15273. preIndex := iNdEx
  15274. var wire uint64
  15275. for shift := uint(0); ; shift += 7 {
  15276. if shift >= 64 {
  15277. return ErrIntOverflowApi
  15278. }
  15279. if iNdEx >= l {
  15280. return io.ErrUnexpectedEOF
  15281. }
  15282. b := dAtA[iNdEx]
  15283. iNdEx++
  15284. wire |= (uint64(b) & 0x7F) << shift
  15285. if b < 0x80 {
  15286. break
  15287. }
  15288. }
  15289. fieldNum := int32(wire >> 3)
  15290. wireType := int(wire & 0x7)
  15291. if wireType == 4 {
  15292. return fmt.Errorf("proto: UpdatePoolStatusResp: wiretype end group for non-group")
  15293. }
  15294. if fieldNum <= 0 {
  15295. return fmt.Errorf("proto: UpdatePoolStatusResp: illegal tag %d (wire type %d)", fieldNum, wire)
  15296. }
  15297. switch fieldNum {
  15298. case 1:
  15299. if wireType != 0 {
  15300. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  15301. }
  15302. var v int
  15303. for shift := uint(0); ; shift += 7 {
  15304. if shift >= 64 {
  15305. return ErrIntOverflowApi
  15306. }
  15307. if iNdEx >= l {
  15308. return io.ErrUnexpectedEOF
  15309. }
  15310. b := dAtA[iNdEx]
  15311. iNdEx++
  15312. v |= (int(b) & 0x7F) << shift
  15313. if b < 0x80 {
  15314. break
  15315. }
  15316. }
  15317. m.Status = bool(v != 0)
  15318. default:
  15319. iNdEx = preIndex
  15320. skippy, err := skipApi(dAtA[iNdEx:])
  15321. if err != nil {
  15322. return err
  15323. }
  15324. if skippy < 0 {
  15325. return ErrInvalidLengthApi
  15326. }
  15327. if (iNdEx + skippy) > l {
  15328. return io.ErrUnexpectedEOF
  15329. }
  15330. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15331. iNdEx += skippy
  15332. }
  15333. }
  15334. if iNdEx > l {
  15335. return io.ErrUnexpectedEOF
  15336. }
  15337. return nil
  15338. }
  15339. func (m *GetPoolPrizeReq) Unmarshal(dAtA []byte) error {
  15340. l := len(dAtA)
  15341. iNdEx := 0
  15342. for iNdEx < l {
  15343. preIndex := iNdEx
  15344. var wire uint64
  15345. for shift := uint(0); ; shift += 7 {
  15346. if shift >= 64 {
  15347. return ErrIntOverflowApi
  15348. }
  15349. if iNdEx >= l {
  15350. return io.ErrUnexpectedEOF
  15351. }
  15352. b := dAtA[iNdEx]
  15353. iNdEx++
  15354. wire |= (uint64(b) & 0x7F) << shift
  15355. if b < 0x80 {
  15356. break
  15357. }
  15358. }
  15359. fieldNum := int32(wire >> 3)
  15360. wireType := int(wire & 0x7)
  15361. if wireType == 4 {
  15362. return fmt.Errorf("proto: GetPoolPrizeReq: wiretype end group for non-group")
  15363. }
  15364. if fieldNum <= 0 {
  15365. return fmt.Errorf("proto: GetPoolPrizeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  15366. }
  15367. switch fieldNum {
  15368. case 1:
  15369. if wireType != 0 {
  15370. return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType)
  15371. }
  15372. m.PoolId = 0
  15373. for shift := uint(0); ; shift += 7 {
  15374. if shift >= 64 {
  15375. return ErrIntOverflowApi
  15376. }
  15377. if iNdEx >= l {
  15378. return io.ErrUnexpectedEOF
  15379. }
  15380. b := dAtA[iNdEx]
  15381. iNdEx++
  15382. m.PoolId |= (int64(b) & 0x7F) << shift
  15383. if b < 0x80 {
  15384. break
  15385. }
  15386. }
  15387. default:
  15388. iNdEx = preIndex
  15389. skippy, err := skipApi(dAtA[iNdEx:])
  15390. if err != nil {
  15391. return err
  15392. }
  15393. if skippy < 0 {
  15394. return ErrInvalidLengthApi
  15395. }
  15396. if (iNdEx + skippy) > l {
  15397. return io.ErrUnexpectedEOF
  15398. }
  15399. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15400. iNdEx += skippy
  15401. }
  15402. }
  15403. if iNdEx > l {
  15404. return io.ErrUnexpectedEOF
  15405. }
  15406. return nil
  15407. }
  15408. func (m *GetPoolPrizeResp) Unmarshal(dAtA []byte) error {
  15409. l := len(dAtA)
  15410. iNdEx := 0
  15411. for iNdEx < l {
  15412. preIndex := iNdEx
  15413. var wire uint64
  15414. for shift := uint(0); ; shift += 7 {
  15415. if shift >= 64 {
  15416. return ErrIntOverflowApi
  15417. }
  15418. if iNdEx >= l {
  15419. return io.ErrUnexpectedEOF
  15420. }
  15421. b := dAtA[iNdEx]
  15422. iNdEx++
  15423. wire |= (uint64(b) & 0x7F) << shift
  15424. if b < 0x80 {
  15425. break
  15426. }
  15427. }
  15428. fieldNum := int32(wire >> 3)
  15429. wireType := int(wire & 0x7)
  15430. if wireType == 4 {
  15431. return fmt.Errorf("proto: GetPoolPrizeResp: wiretype end group for non-group")
  15432. }
  15433. if fieldNum <= 0 {
  15434. return fmt.Errorf("proto: GetPoolPrizeResp: illegal tag %d (wire type %d)", fieldNum, wire)
  15435. }
  15436. switch fieldNum {
  15437. case 1:
  15438. if wireType != 2 {
  15439. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  15440. }
  15441. var msglen int
  15442. for shift := uint(0); ; shift += 7 {
  15443. if shift >= 64 {
  15444. return ErrIntOverflowApi
  15445. }
  15446. if iNdEx >= l {
  15447. return io.ErrUnexpectedEOF
  15448. }
  15449. b := dAtA[iNdEx]
  15450. iNdEx++
  15451. msglen |= (int(b) & 0x7F) << shift
  15452. if b < 0x80 {
  15453. break
  15454. }
  15455. }
  15456. if msglen < 0 {
  15457. return ErrInvalidLengthApi
  15458. }
  15459. postIndex := iNdEx + msglen
  15460. if postIndex > l {
  15461. return io.ErrUnexpectedEOF
  15462. }
  15463. m.List = append(m.List, &GetPoolPrizeResp_List{})
  15464. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  15465. return err
  15466. }
  15467. iNdEx = postIndex
  15468. default:
  15469. iNdEx = preIndex
  15470. skippy, err := skipApi(dAtA[iNdEx:])
  15471. if err != nil {
  15472. return err
  15473. }
  15474. if skippy < 0 {
  15475. return ErrInvalidLengthApi
  15476. }
  15477. if (iNdEx + skippy) > l {
  15478. return io.ErrUnexpectedEOF
  15479. }
  15480. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15481. iNdEx += skippy
  15482. }
  15483. }
  15484. if iNdEx > l {
  15485. return io.ErrUnexpectedEOF
  15486. }
  15487. return nil
  15488. }
  15489. func (m *GetPoolPrizeResp_List) Unmarshal(dAtA []byte) error {
  15490. l := len(dAtA)
  15491. iNdEx := 0
  15492. for iNdEx < l {
  15493. preIndex := iNdEx
  15494. var wire uint64
  15495. for shift := uint(0); ; shift += 7 {
  15496. if shift >= 64 {
  15497. return ErrIntOverflowApi
  15498. }
  15499. if iNdEx >= l {
  15500. return io.ErrUnexpectedEOF
  15501. }
  15502. b := dAtA[iNdEx]
  15503. iNdEx++
  15504. wire |= (uint64(b) & 0x7F) << shift
  15505. if b < 0x80 {
  15506. break
  15507. }
  15508. }
  15509. fieldNum := int32(wire >> 3)
  15510. wireType := int(wire & 0x7)
  15511. if wireType == 4 {
  15512. return fmt.Errorf("proto: List: wiretype end group for non-group")
  15513. }
  15514. if fieldNum <= 0 {
  15515. return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
  15516. }
  15517. switch fieldNum {
  15518. case 1:
  15519. if wireType != 0 {
  15520. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  15521. }
  15522. m.Id = 0
  15523. for shift := uint(0); ; shift += 7 {
  15524. if shift >= 64 {
  15525. return ErrIntOverflowApi
  15526. }
  15527. if iNdEx >= l {
  15528. return io.ErrUnexpectedEOF
  15529. }
  15530. b := dAtA[iNdEx]
  15531. iNdEx++
  15532. m.Id |= (int64(b) & 0x7F) << shift
  15533. if b < 0x80 {
  15534. break
  15535. }
  15536. }
  15537. case 2:
  15538. if wireType != 0 {
  15539. return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType)
  15540. }
  15541. m.PoolId = 0
  15542. for shift := uint(0); ; shift += 7 {
  15543. if shift >= 64 {
  15544. return ErrIntOverflowApi
  15545. }
  15546. if iNdEx >= l {
  15547. return io.ErrUnexpectedEOF
  15548. }
  15549. b := dAtA[iNdEx]
  15550. iNdEx++
  15551. m.PoolId |= (int64(b) & 0x7F) << shift
  15552. if b < 0x80 {
  15553. break
  15554. }
  15555. }
  15556. case 3:
  15557. if wireType != 0 {
  15558. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  15559. }
  15560. m.Type = 0
  15561. for shift := uint(0); ; shift += 7 {
  15562. if shift >= 64 {
  15563. return ErrIntOverflowApi
  15564. }
  15565. if iNdEx >= l {
  15566. return io.ErrUnexpectedEOF
  15567. }
  15568. b := dAtA[iNdEx]
  15569. iNdEx++
  15570. m.Type |= (int64(b) & 0x7F) << shift
  15571. if b < 0x80 {
  15572. break
  15573. }
  15574. }
  15575. case 4:
  15576. if wireType != 0 {
  15577. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  15578. }
  15579. m.Num = 0
  15580. for shift := uint(0); ; shift += 7 {
  15581. if shift >= 64 {
  15582. return ErrIntOverflowApi
  15583. }
  15584. if iNdEx >= l {
  15585. return io.ErrUnexpectedEOF
  15586. }
  15587. b := dAtA[iNdEx]
  15588. iNdEx++
  15589. m.Num |= (int64(b) & 0x7F) << shift
  15590. if b < 0x80 {
  15591. break
  15592. }
  15593. }
  15594. case 5:
  15595. if wireType != 0 {
  15596. return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType)
  15597. }
  15598. m.ObjectId = 0
  15599. for shift := uint(0); ; shift += 7 {
  15600. if shift >= 64 {
  15601. return ErrIntOverflowApi
  15602. }
  15603. if iNdEx >= l {
  15604. return io.ErrUnexpectedEOF
  15605. }
  15606. b := dAtA[iNdEx]
  15607. iNdEx++
  15608. m.ObjectId |= (int64(b) & 0x7F) << shift
  15609. if b < 0x80 {
  15610. break
  15611. }
  15612. }
  15613. case 6:
  15614. if wireType != 2 {
  15615. return fmt.Errorf("proto: wrong wireType = %d for field WebUrl", wireType)
  15616. }
  15617. var stringLen uint64
  15618. for shift := uint(0); ; shift += 7 {
  15619. if shift >= 64 {
  15620. return ErrIntOverflowApi
  15621. }
  15622. if iNdEx >= l {
  15623. return io.ErrUnexpectedEOF
  15624. }
  15625. b := dAtA[iNdEx]
  15626. iNdEx++
  15627. stringLen |= (uint64(b) & 0x7F) << shift
  15628. if b < 0x80 {
  15629. break
  15630. }
  15631. }
  15632. intStringLen := int(stringLen)
  15633. if intStringLen < 0 {
  15634. return ErrInvalidLengthApi
  15635. }
  15636. postIndex := iNdEx + intStringLen
  15637. if postIndex > l {
  15638. return io.ErrUnexpectedEOF
  15639. }
  15640. m.WebUrl = string(dAtA[iNdEx:postIndex])
  15641. iNdEx = postIndex
  15642. case 7:
  15643. if wireType != 2 {
  15644. return fmt.Errorf("proto: wrong wireType = %d for field MobileUrl", wireType)
  15645. }
  15646. var stringLen uint64
  15647. for shift := uint(0); ; shift += 7 {
  15648. if shift >= 64 {
  15649. return ErrIntOverflowApi
  15650. }
  15651. if iNdEx >= l {
  15652. return io.ErrUnexpectedEOF
  15653. }
  15654. b := dAtA[iNdEx]
  15655. iNdEx++
  15656. stringLen |= (uint64(b) & 0x7F) << shift
  15657. if b < 0x80 {
  15658. break
  15659. }
  15660. }
  15661. intStringLen := int(stringLen)
  15662. if intStringLen < 0 {
  15663. return ErrInvalidLengthApi
  15664. }
  15665. postIndex := iNdEx + intStringLen
  15666. if postIndex > l {
  15667. return io.ErrUnexpectedEOF
  15668. }
  15669. m.MobileUrl = string(dAtA[iNdEx:postIndex])
  15670. iNdEx = postIndex
  15671. case 8:
  15672. if wireType != 2 {
  15673. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  15674. }
  15675. var stringLen uint64
  15676. for shift := uint(0); ; shift += 7 {
  15677. if shift >= 64 {
  15678. return ErrIntOverflowApi
  15679. }
  15680. if iNdEx >= l {
  15681. return io.ErrUnexpectedEOF
  15682. }
  15683. b := dAtA[iNdEx]
  15684. iNdEx++
  15685. stringLen |= (uint64(b) & 0x7F) << shift
  15686. if b < 0x80 {
  15687. break
  15688. }
  15689. }
  15690. intStringLen := int(stringLen)
  15691. if intStringLen < 0 {
  15692. return ErrInvalidLengthApi
  15693. }
  15694. postIndex := iNdEx + intStringLen
  15695. if postIndex > l {
  15696. return io.ErrUnexpectedEOF
  15697. }
  15698. m.Description = string(dAtA[iNdEx:postIndex])
  15699. iNdEx = postIndex
  15700. case 9:
  15701. if wireType != 2 {
  15702. return fmt.Errorf("proto: wrong wireType = %d for field JumpUrl", wireType)
  15703. }
  15704. var stringLen uint64
  15705. for shift := uint(0); ; shift += 7 {
  15706. if shift >= 64 {
  15707. return ErrIntOverflowApi
  15708. }
  15709. if iNdEx >= l {
  15710. return io.ErrUnexpectedEOF
  15711. }
  15712. b := dAtA[iNdEx]
  15713. iNdEx++
  15714. stringLen |= (uint64(b) & 0x7F) << shift
  15715. if b < 0x80 {
  15716. break
  15717. }
  15718. }
  15719. intStringLen := int(stringLen)
  15720. if intStringLen < 0 {
  15721. return ErrInvalidLengthApi
  15722. }
  15723. postIndex := iNdEx + intStringLen
  15724. if postIndex > l {
  15725. return io.ErrUnexpectedEOF
  15726. }
  15727. m.JumpUrl = string(dAtA[iNdEx:postIndex])
  15728. iNdEx = postIndex
  15729. case 10:
  15730. if wireType != 0 {
  15731. return fmt.Errorf("proto: wrong wireType = %d for field ProType", wireType)
  15732. }
  15733. m.ProType = 0
  15734. for shift := uint(0); ; shift += 7 {
  15735. if shift >= 64 {
  15736. return ErrIntOverflowApi
  15737. }
  15738. if iNdEx >= l {
  15739. return io.ErrUnexpectedEOF
  15740. }
  15741. b := dAtA[iNdEx]
  15742. iNdEx++
  15743. m.ProType |= (int64(b) & 0x7F) << shift
  15744. if b < 0x80 {
  15745. break
  15746. }
  15747. }
  15748. case 11:
  15749. if wireType != 2 {
  15750. return fmt.Errorf("proto: wrong wireType = %d for field Chance", wireType)
  15751. }
  15752. var stringLen uint64
  15753. for shift := uint(0); ; shift += 7 {
  15754. if shift >= 64 {
  15755. return ErrIntOverflowApi
  15756. }
  15757. if iNdEx >= l {
  15758. return io.ErrUnexpectedEOF
  15759. }
  15760. b := dAtA[iNdEx]
  15761. iNdEx++
  15762. stringLen |= (uint64(b) & 0x7F) << shift
  15763. if b < 0x80 {
  15764. break
  15765. }
  15766. }
  15767. intStringLen := int(stringLen)
  15768. if intStringLen < 0 {
  15769. return ErrInvalidLengthApi
  15770. }
  15771. postIndex := iNdEx + intStringLen
  15772. if postIndex > l {
  15773. return io.ErrUnexpectedEOF
  15774. }
  15775. m.Chance = string(dAtA[iNdEx:postIndex])
  15776. iNdEx = postIndex
  15777. case 12:
  15778. if wireType != 0 {
  15779. return fmt.Errorf("proto: wrong wireType = %d for field Loop", wireType)
  15780. }
  15781. m.Loop = 0
  15782. for shift := uint(0); ; shift += 7 {
  15783. if shift >= 64 {
  15784. return ErrIntOverflowApi
  15785. }
  15786. if iNdEx >= l {
  15787. return io.ErrUnexpectedEOF
  15788. }
  15789. b := dAtA[iNdEx]
  15790. iNdEx++
  15791. m.Loop |= (int64(b) & 0x7F) << shift
  15792. if b < 0x80 {
  15793. break
  15794. }
  15795. }
  15796. case 13:
  15797. if wireType != 0 {
  15798. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  15799. }
  15800. m.Limit = 0
  15801. for shift := uint(0); ; shift += 7 {
  15802. if shift >= 64 {
  15803. return ErrIntOverflowApi
  15804. }
  15805. if iNdEx >= l {
  15806. return io.ErrUnexpectedEOF
  15807. }
  15808. b := dAtA[iNdEx]
  15809. iNdEx++
  15810. m.Limit |= (int64(b) & 0x7F) << shift
  15811. if b < 0x80 {
  15812. break
  15813. }
  15814. }
  15815. case 14:
  15816. if wireType != 2 {
  15817. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  15818. }
  15819. var stringLen uint64
  15820. for shift := uint(0); ; shift += 7 {
  15821. if shift >= 64 {
  15822. return ErrIntOverflowApi
  15823. }
  15824. if iNdEx >= l {
  15825. return io.ErrUnexpectedEOF
  15826. }
  15827. b := dAtA[iNdEx]
  15828. iNdEx++
  15829. stringLen |= (uint64(b) & 0x7F) << shift
  15830. if b < 0x80 {
  15831. break
  15832. }
  15833. }
  15834. intStringLen := int(stringLen)
  15835. if intStringLen < 0 {
  15836. return ErrInvalidLengthApi
  15837. }
  15838. postIndex := iNdEx + intStringLen
  15839. if postIndex > l {
  15840. return io.ErrUnexpectedEOF
  15841. }
  15842. m.Name = string(dAtA[iNdEx:postIndex])
  15843. iNdEx = postIndex
  15844. case 15:
  15845. if wireType != 0 {
  15846. return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType)
  15847. }
  15848. m.Weight = 0
  15849. for shift := uint(0); ; shift += 7 {
  15850. if shift >= 64 {
  15851. return ErrIntOverflowApi
  15852. }
  15853. if iNdEx >= l {
  15854. return io.ErrUnexpectedEOF
  15855. }
  15856. b := dAtA[iNdEx]
  15857. iNdEx++
  15858. m.Weight |= (int64(b) & 0x7F) << shift
  15859. if b < 0x80 {
  15860. break
  15861. }
  15862. }
  15863. case 16:
  15864. if wireType == 0 {
  15865. var v int64
  15866. for shift := uint(0); ; shift += 7 {
  15867. if shift >= 64 {
  15868. return ErrIntOverflowApi
  15869. }
  15870. if iNdEx >= l {
  15871. return io.ErrUnexpectedEOF
  15872. }
  15873. b := dAtA[iNdEx]
  15874. iNdEx++
  15875. v |= (int64(b) & 0x7F) << shift
  15876. if b < 0x80 {
  15877. break
  15878. }
  15879. }
  15880. m.WhiteUids = append(m.WhiteUids, v)
  15881. } else if wireType == 2 {
  15882. var packedLen int
  15883. for shift := uint(0); ; shift += 7 {
  15884. if shift >= 64 {
  15885. return ErrIntOverflowApi
  15886. }
  15887. if iNdEx >= l {
  15888. return io.ErrUnexpectedEOF
  15889. }
  15890. b := dAtA[iNdEx]
  15891. iNdEx++
  15892. packedLen |= (int(b) & 0x7F) << shift
  15893. if b < 0x80 {
  15894. break
  15895. }
  15896. }
  15897. if packedLen < 0 {
  15898. return ErrInvalidLengthApi
  15899. }
  15900. postIndex := iNdEx + packedLen
  15901. if postIndex > l {
  15902. return io.ErrUnexpectedEOF
  15903. }
  15904. var elementCount int
  15905. var count int
  15906. for _, integer := range dAtA {
  15907. if integer < 128 {
  15908. count++
  15909. }
  15910. }
  15911. elementCount = count
  15912. if elementCount != 0 && len(m.WhiteUids) == 0 {
  15913. m.WhiteUids = make([]int64, 0, elementCount)
  15914. }
  15915. for iNdEx < postIndex {
  15916. var v int64
  15917. for shift := uint(0); ; shift += 7 {
  15918. if shift >= 64 {
  15919. return ErrIntOverflowApi
  15920. }
  15921. if iNdEx >= l {
  15922. return io.ErrUnexpectedEOF
  15923. }
  15924. b := dAtA[iNdEx]
  15925. iNdEx++
  15926. v |= (int64(b) & 0x7F) << shift
  15927. if b < 0x80 {
  15928. break
  15929. }
  15930. }
  15931. m.WhiteUids = append(m.WhiteUids, v)
  15932. }
  15933. } else {
  15934. return fmt.Errorf("proto: wrong wireType = %d for field WhiteUids", wireType)
  15935. }
  15936. case 17:
  15937. if wireType != 0 {
  15938. return fmt.Errorf("proto: wrong wireType = %d for field Expire", wireType)
  15939. }
  15940. m.Expire = 0
  15941. for shift := uint(0); ; shift += 7 {
  15942. if shift >= 64 {
  15943. return ErrIntOverflowApi
  15944. }
  15945. if iNdEx >= l {
  15946. return io.ErrUnexpectedEOF
  15947. }
  15948. b := dAtA[iNdEx]
  15949. iNdEx++
  15950. m.Expire |= (int64(b) & 0x7F) << shift
  15951. if b < 0x80 {
  15952. break
  15953. }
  15954. }
  15955. default:
  15956. iNdEx = preIndex
  15957. skippy, err := skipApi(dAtA[iNdEx:])
  15958. if err != nil {
  15959. return err
  15960. }
  15961. if skippy < 0 {
  15962. return ErrInvalidLengthApi
  15963. }
  15964. if (iNdEx + skippy) > l {
  15965. return io.ErrUnexpectedEOF
  15966. }
  15967. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  15968. iNdEx += skippy
  15969. }
  15970. }
  15971. if iNdEx > l {
  15972. return io.ErrUnexpectedEOF
  15973. }
  15974. return nil
  15975. }
  15976. func (m *UpdatePoolPrizeReq) Unmarshal(dAtA []byte) error {
  15977. l := len(dAtA)
  15978. iNdEx := 0
  15979. for iNdEx < l {
  15980. preIndex := iNdEx
  15981. var wire uint64
  15982. for shift := uint(0); ; shift += 7 {
  15983. if shift >= 64 {
  15984. return ErrIntOverflowApi
  15985. }
  15986. if iNdEx >= l {
  15987. return io.ErrUnexpectedEOF
  15988. }
  15989. b := dAtA[iNdEx]
  15990. iNdEx++
  15991. wire |= (uint64(b) & 0x7F) << shift
  15992. if b < 0x80 {
  15993. break
  15994. }
  15995. }
  15996. fieldNum := int32(wire >> 3)
  15997. wireType := int(wire & 0x7)
  15998. if wireType == 4 {
  15999. return fmt.Errorf("proto: UpdatePoolPrizeReq: wiretype end group for non-group")
  16000. }
  16001. if fieldNum <= 0 {
  16002. return fmt.Errorf("proto: UpdatePoolPrizeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  16003. }
  16004. switch fieldNum {
  16005. case 1:
  16006. if wireType != 0 {
  16007. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  16008. }
  16009. m.Id = 0
  16010. for shift := uint(0); ; shift += 7 {
  16011. if shift >= 64 {
  16012. return ErrIntOverflowApi
  16013. }
  16014. if iNdEx >= l {
  16015. return io.ErrUnexpectedEOF
  16016. }
  16017. b := dAtA[iNdEx]
  16018. iNdEx++
  16019. m.Id |= (int64(b) & 0x7F) << shift
  16020. if b < 0x80 {
  16021. break
  16022. }
  16023. }
  16024. case 2:
  16025. if wireType != 0 {
  16026. return fmt.Errorf("proto: wrong wireType = %d for field PoolId", wireType)
  16027. }
  16028. m.PoolId = 0
  16029. for shift := uint(0); ; shift += 7 {
  16030. if shift >= 64 {
  16031. return ErrIntOverflowApi
  16032. }
  16033. if iNdEx >= l {
  16034. return io.ErrUnexpectedEOF
  16035. }
  16036. b := dAtA[iNdEx]
  16037. iNdEx++
  16038. m.PoolId |= (int64(b) & 0x7F) << shift
  16039. if b < 0x80 {
  16040. break
  16041. }
  16042. }
  16043. case 3:
  16044. if wireType != 0 {
  16045. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  16046. }
  16047. m.Type = 0
  16048. for shift := uint(0); ; shift += 7 {
  16049. if shift >= 64 {
  16050. return ErrIntOverflowApi
  16051. }
  16052. if iNdEx >= l {
  16053. return io.ErrUnexpectedEOF
  16054. }
  16055. b := dAtA[iNdEx]
  16056. iNdEx++
  16057. m.Type |= (int64(b) & 0x7F) << shift
  16058. if b < 0x80 {
  16059. break
  16060. }
  16061. }
  16062. case 4:
  16063. if wireType != 0 {
  16064. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  16065. }
  16066. m.Num = 0
  16067. for shift := uint(0); ; shift += 7 {
  16068. if shift >= 64 {
  16069. return ErrIntOverflowApi
  16070. }
  16071. if iNdEx >= l {
  16072. return io.ErrUnexpectedEOF
  16073. }
  16074. b := dAtA[iNdEx]
  16075. iNdEx++
  16076. m.Num |= (int64(b) & 0x7F) << shift
  16077. if b < 0x80 {
  16078. break
  16079. }
  16080. }
  16081. case 5:
  16082. if wireType != 0 {
  16083. return fmt.Errorf("proto: wrong wireType = %d for field ObjectId", wireType)
  16084. }
  16085. m.ObjectId = 0
  16086. for shift := uint(0); ; shift += 7 {
  16087. if shift >= 64 {
  16088. return ErrIntOverflowApi
  16089. }
  16090. if iNdEx >= l {
  16091. return io.ErrUnexpectedEOF
  16092. }
  16093. b := dAtA[iNdEx]
  16094. iNdEx++
  16095. m.ObjectId |= (int64(b) & 0x7F) << shift
  16096. if b < 0x80 {
  16097. break
  16098. }
  16099. }
  16100. case 6:
  16101. if wireType != 0 {
  16102. return fmt.Errorf("proto: wrong wireType = %d for field Expire", wireType)
  16103. }
  16104. m.Expire = 0
  16105. for shift := uint(0); ; shift += 7 {
  16106. if shift >= 64 {
  16107. return ErrIntOverflowApi
  16108. }
  16109. if iNdEx >= l {
  16110. return io.ErrUnexpectedEOF
  16111. }
  16112. b := dAtA[iNdEx]
  16113. iNdEx++
  16114. m.Expire |= (int64(b) & 0x7F) << shift
  16115. if b < 0x80 {
  16116. break
  16117. }
  16118. }
  16119. case 7:
  16120. if wireType != 2 {
  16121. return fmt.Errorf("proto: wrong wireType = %d for field WebUrl", wireType)
  16122. }
  16123. var stringLen uint64
  16124. for shift := uint(0); ; shift += 7 {
  16125. if shift >= 64 {
  16126. return ErrIntOverflowApi
  16127. }
  16128. if iNdEx >= l {
  16129. return io.ErrUnexpectedEOF
  16130. }
  16131. b := dAtA[iNdEx]
  16132. iNdEx++
  16133. stringLen |= (uint64(b) & 0x7F) << shift
  16134. if b < 0x80 {
  16135. break
  16136. }
  16137. }
  16138. intStringLen := int(stringLen)
  16139. if intStringLen < 0 {
  16140. return ErrInvalidLengthApi
  16141. }
  16142. postIndex := iNdEx + intStringLen
  16143. if postIndex > l {
  16144. return io.ErrUnexpectedEOF
  16145. }
  16146. m.WebUrl = string(dAtA[iNdEx:postIndex])
  16147. iNdEx = postIndex
  16148. case 8:
  16149. if wireType != 2 {
  16150. return fmt.Errorf("proto: wrong wireType = %d for field MobileUrl", wireType)
  16151. }
  16152. var stringLen uint64
  16153. for shift := uint(0); ; shift += 7 {
  16154. if shift >= 64 {
  16155. return ErrIntOverflowApi
  16156. }
  16157. if iNdEx >= l {
  16158. return io.ErrUnexpectedEOF
  16159. }
  16160. b := dAtA[iNdEx]
  16161. iNdEx++
  16162. stringLen |= (uint64(b) & 0x7F) << shift
  16163. if b < 0x80 {
  16164. break
  16165. }
  16166. }
  16167. intStringLen := int(stringLen)
  16168. if intStringLen < 0 {
  16169. return ErrInvalidLengthApi
  16170. }
  16171. postIndex := iNdEx + intStringLen
  16172. if postIndex > l {
  16173. return io.ErrUnexpectedEOF
  16174. }
  16175. m.MobileUrl = string(dAtA[iNdEx:postIndex])
  16176. iNdEx = postIndex
  16177. case 9:
  16178. if wireType != 2 {
  16179. return fmt.Errorf("proto: wrong wireType = %d for field Description", wireType)
  16180. }
  16181. var stringLen uint64
  16182. for shift := uint(0); ; shift += 7 {
  16183. if shift >= 64 {
  16184. return ErrIntOverflowApi
  16185. }
  16186. if iNdEx >= l {
  16187. return io.ErrUnexpectedEOF
  16188. }
  16189. b := dAtA[iNdEx]
  16190. iNdEx++
  16191. stringLen |= (uint64(b) & 0x7F) << shift
  16192. if b < 0x80 {
  16193. break
  16194. }
  16195. }
  16196. intStringLen := int(stringLen)
  16197. if intStringLen < 0 {
  16198. return ErrInvalidLengthApi
  16199. }
  16200. postIndex := iNdEx + intStringLen
  16201. if postIndex > l {
  16202. return io.ErrUnexpectedEOF
  16203. }
  16204. m.Description = string(dAtA[iNdEx:postIndex])
  16205. iNdEx = postIndex
  16206. case 10:
  16207. if wireType != 2 {
  16208. return fmt.Errorf("proto: wrong wireType = %d for field JumpUrl", wireType)
  16209. }
  16210. var stringLen uint64
  16211. for shift := uint(0); ; shift += 7 {
  16212. if shift >= 64 {
  16213. return ErrIntOverflowApi
  16214. }
  16215. if iNdEx >= l {
  16216. return io.ErrUnexpectedEOF
  16217. }
  16218. b := dAtA[iNdEx]
  16219. iNdEx++
  16220. stringLen |= (uint64(b) & 0x7F) << shift
  16221. if b < 0x80 {
  16222. break
  16223. }
  16224. }
  16225. intStringLen := int(stringLen)
  16226. if intStringLen < 0 {
  16227. return ErrInvalidLengthApi
  16228. }
  16229. postIndex := iNdEx + intStringLen
  16230. if postIndex > l {
  16231. return io.ErrUnexpectedEOF
  16232. }
  16233. m.JumpUrl = string(dAtA[iNdEx:postIndex])
  16234. iNdEx = postIndex
  16235. case 11:
  16236. if wireType != 0 {
  16237. return fmt.Errorf("proto: wrong wireType = %d for field ProType", wireType)
  16238. }
  16239. m.ProType = 0
  16240. for shift := uint(0); ; shift += 7 {
  16241. if shift >= 64 {
  16242. return ErrIntOverflowApi
  16243. }
  16244. if iNdEx >= l {
  16245. return io.ErrUnexpectedEOF
  16246. }
  16247. b := dAtA[iNdEx]
  16248. iNdEx++
  16249. m.ProType |= (int64(b) & 0x7F) << shift
  16250. if b < 0x80 {
  16251. break
  16252. }
  16253. }
  16254. case 12:
  16255. if wireType != 0 {
  16256. return fmt.Errorf("proto: wrong wireType = %d for field Chance", wireType)
  16257. }
  16258. m.Chance = 0
  16259. for shift := uint(0); ; shift += 7 {
  16260. if shift >= 64 {
  16261. return ErrIntOverflowApi
  16262. }
  16263. if iNdEx >= l {
  16264. return io.ErrUnexpectedEOF
  16265. }
  16266. b := dAtA[iNdEx]
  16267. iNdEx++
  16268. m.Chance |= (int64(b) & 0x7F) << shift
  16269. if b < 0x80 {
  16270. break
  16271. }
  16272. }
  16273. case 13:
  16274. if wireType != 0 {
  16275. return fmt.Errorf("proto: wrong wireType = %d for field Loop", wireType)
  16276. }
  16277. m.Loop = 0
  16278. for shift := uint(0); ; shift += 7 {
  16279. if shift >= 64 {
  16280. return ErrIntOverflowApi
  16281. }
  16282. if iNdEx >= l {
  16283. return io.ErrUnexpectedEOF
  16284. }
  16285. b := dAtA[iNdEx]
  16286. iNdEx++
  16287. m.Loop |= (int64(b) & 0x7F) << shift
  16288. if b < 0x80 {
  16289. break
  16290. }
  16291. }
  16292. case 14:
  16293. if wireType != 0 {
  16294. return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  16295. }
  16296. m.Limit = 0
  16297. for shift := uint(0); ; shift += 7 {
  16298. if shift >= 64 {
  16299. return ErrIntOverflowApi
  16300. }
  16301. if iNdEx >= l {
  16302. return io.ErrUnexpectedEOF
  16303. }
  16304. b := dAtA[iNdEx]
  16305. iNdEx++
  16306. m.Limit |= (int64(b) & 0x7F) << shift
  16307. if b < 0x80 {
  16308. break
  16309. }
  16310. }
  16311. case 15:
  16312. if wireType != 0 {
  16313. return fmt.Errorf("proto: wrong wireType = %d for field Weight", wireType)
  16314. }
  16315. m.Weight = 0
  16316. for shift := uint(0); ; shift += 7 {
  16317. if shift >= 64 {
  16318. return ErrIntOverflowApi
  16319. }
  16320. if iNdEx >= l {
  16321. return io.ErrUnexpectedEOF
  16322. }
  16323. b := dAtA[iNdEx]
  16324. iNdEx++
  16325. m.Weight |= (int64(b) & 0x7F) << shift
  16326. if b < 0x80 {
  16327. break
  16328. }
  16329. }
  16330. case 16:
  16331. if wireType == 0 {
  16332. var v int64
  16333. for shift := uint(0); ; shift += 7 {
  16334. if shift >= 64 {
  16335. return ErrIntOverflowApi
  16336. }
  16337. if iNdEx >= l {
  16338. return io.ErrUnexpectedEOF
  16339. }
  16340. b := dAtA[iNdEx]
  16341. iNdEx++
  16342. v |= (int64(b) & 0x7F) << shift
  16343. if b < 0x80 {
  16344. break
  16345. }
  16346. }
  16347. m.WhiteUids = append(m.WhiteUids, v)
  16348. } else if wireType == 2 {
  16349. var packedLen int
  16350. for shift := uint(0); ; shift += 7 {
  16351. if shift >= 64 {
  16352. return ErrIntOverflowApi
  16353. }
  16354. if iNdEx >= l {
  16355. return io.ErrUnexpectedEOF
  16356. }
  16357. b := dAtA[iNdEx]
  16358. iNdEx++
  16359. packedLen |= (int(b) & 0x7F) << shift
  16360. if b < 0x80 {
  16361. break
  16362. }
  16363. }
  16364. if packedLen < 0 {
  16365. return ErrInvalidLengthApi
  16366. }
  16367. postIndex := iNdEx + packedLen
  16368. if postIndex > l {
  16369. return io.ErrUnexpectedEOF
  16370. }
  16371. var elementCount int
  16372. var count int
  16373. for _, integer := range dAtA {
  16374. if integer < 128 {
  16375. count++
  16376. }
  16377. }
  16378. elementCount = count
  16379. if elementCount != 0 && len(m.WhiteUids) == 0 {
  16380. m.WhiteUids = make([]int64, 0, elementCount)
  16381. }
  16382. for iNdEx < postIndex {
  16383. var v int64
  16384. for shift := uint(0); ; shift += 7 {
  16385. if shift >= 64 {
  16386. return ErrIntOverflowApi
  16387. }
  16388. if iNdEx >= l {
  16389. return io.ErrUnexpectedEOF
  16390. }
  16391. b := dAtA[iNdEx]
  16392. iNdEx++
  16393. v |= (int64(b) & 0x7F) << shift
  16394. if b < 0x80 {
  16395. break
  16396. }
  16397. }
  16398. m.WhiteUids = append(m.WhiteUids, v)
  16399. }
  16400. } else {
  16401. return fmt.Errorf("proto: wrong wireType = %d for field WhiteUids", wireType)
  16402. }
  16403. default:
  16404. iNdEx = preIndex
  16405. skippy, err := skipApi(dAtA[iNdEx:])
  16406. if err != nil {
  16407. return err
  16408. }
  16409. if skippy < 0 {
  16410. return ErrInvalidLengthApi
  16411. }
  16412. if (iNdEx + skippy) > l {
  16413. return io.ErrUnexpectedEOF
  16414. }
  16415. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16416. iNdEx += skippy
  16417. }
  16418. }
  16419. if iNdEx > l {
  16420. return io.ErrUnexpectedEOF
  16421. }
  16422. return nil
  16423. }
  16424. func (m *UpdatePoolPrizeResp) Unmarshal(dAtA []byte) error {
  16425. l := len(dAtA)
  16426. iNdEx := 0
  16427. for iNdEx < l {
  16428. preIndex := iNdEx
  16429. var wire uint64
  16430. for shift := uint(0); ; shift += 7 {
  16431. if shift >= 64 {
  16432. return ErrIntOverflowApi
  16433. }
  16434. if iNdEx >= l {
  16435. return io.ErrUnexpectedEOF
  16436. }
  16437. b := dAtA[iNdEx]
  16438. iNdEx++
  16439. wire |= (uint64(b) & 0x7F) << shift
  16440. if b < 0x80 {
  16441. break
  16442. }
  16443. }
  16444. fieldNum := int32(wire >> 3)
  16445. wireType := int(wire & 0x7)
  16446. if wireType == 4 {
  16447. return fmt.Errorf("proto: UpdatePoolPrizeResp: wiretype end group for non-group")
  16448. }
  16449. if fieldNum <= 0 {
  16450. return fmt.Errorf("proto: UpdatePoolPrizeResp: illegal tag %d (wire type %d)", fieldNum, wire)
  16451. }
  16452. switch fieldNum {
  16453. case 1:
  16454. if wireType != 0 {
  16455. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  16456. }
  16457. var v int
  16458. for shift := uint(0); ; shift += 7 {
  16459. if shift >= 64 {
  16460. return ErrIntOverflowApi
  16461. }
  16462. if iNdEx >= l {
  16463. return io.ErrUnexpectedEOF
  16464. }
  16465. b := dAtA[iNdEx]
  16466. iNdEx++
  16467. v |= (int(b) & 0x7F) << shift
  16468. if b < 0x80 {
  16469. break
  16470. }
  16471. }
  16472. m.Status = bool(v != 0)
  16473. case 2:
  16474. if wireType != 0 {
  16475. return fmt.Errorf("proto: wrong wireType = %d for field PrizeId", wireType)
  16476. }
  16477. m.PrizeId = 0
  16478. for shift := uint(0); ; shift += 7 {
  16479. if shift >= 64 {
  16480. return ErrIntOverflowApi
  16481. }
  16482. if iNdEx >= l {
  16483. return io.ErrUnexpectedEOF
  16484. }
  16485. b := dAtA[iNdEx]
  16486. iNdEx++
  16487. m.PrizeId |= (int64(b) & 0x7F) << shift
  16488. if b < 0x80 {
  16489. break
  16490. }
  16491. }
  16492. default:
  16493. iNdEx = preIndex
  16494. skippy, err := skipApi(dAtA[iNdEx:])
  16495. if err != nil {
  16496. return err
  16497. }
  16498. if skippy < 0 {
  16499. return ErrInvalidLengthApi
  16500. }
  16501. if (iNdEx + skippy) > l {
  16502. return io.ErrUnexpectedEOF
  16503. }
  16504. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16505. iNdEx += skippy
  16506. }
  16507. }
  16508. if iNdEx > l {
  16509. return io.ErrUnexpectedEOF
  16510. }
  16511. return nil
  16512. }
  16513. func (m *DeletePoolPrizeReq) Unmarshal(dAtA []byte) error {
  16514. l := len(dAtA)
  16515. iNdEx := 0
  16516. for iNdEx < l {
  16517. preIndex := iNdEx
  16518. var wire uint64
  16519. for shift := uint(0); ; shift += 7 {
  16520. if shift >= 64 {
  16521. return ErrIntOverflowApi
  16522. }
  16523. if iNdEx >= l {
  16524. return io.ErrUnexpectedEOF
  16525. }
  16526. b := dAtA[iNdEx]
  16527. iNdEx++
  16528. wire |= (uint64(b) & 0x7F) << shift
  16529. if b < 0x80 {
  16530. break
  16531. }
  16532. }
  16533. fieldNum := int32(wire >> 3)
  16534. wireType := int(wire & 0x7)
  16535. if wireType == 4 {
  16536. return fmt.Errorf("proto: DeletePoolPrizeReq: wiretype end group for non-group")
  16537. }
  16538. if fieldNum <= 0 {
  16539. return fmt.Errorf("proto: DeletePoolPrizeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  16540. }
  16541. switch fieldNum {
  16542. case 1:
  16543. if wireType != 0 {
  16544. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  16545. }
  16546. m.Id = 0
  16547. for shift := uint(0); ; shift += 7 {
  16548. if shift >= 64 {
  16549. return ErrIntOverflowApi
  16550. }
  16551. if iNdEx >= l {
  16552. return io.ErrUnexpectedEOF
  16553. }
  16554. b := dAtA[iNdEx]
  16555. iNdEx++
  16556. m.Id |= (int64(b) & 0x7F) << shift
  16557. if b < 0x80 {
  16558. break
  16559. }
  16560. }
  16561. default:
  16562. iNdEx = preIndex
  16563. skippy, err := skipApi(dAtA[iNdEx:])
  16564. if err != nil {
  16565. return err
  16566. }
  16567. if skippy < 0 {
  16568. return ErrInvalidLengthApi
  16569. }
  16570. if (iNdEx + skippy) > l {
  16571. return io.ErrUnexpectedEOF
  16572. }
  16573. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16574. iNdEx += skippy
  16575. }
  16576. }
  16577. if iNdEx > l {
  16578. return io.ErrUnexpectedEOF
  16579. }
  16580. return nil
  16581. }
  16582. func (m *DeletePoolPrizeResp) Unmarshal(dAtA []byte) error {
  16583. l := len(dAtA)
  16584. iNdEx := 0
  16585. for iNdEx < l {
  16586. preIndex := iNdEx
  16587. var wire uint64
  16588. for shift := uint(0); ; shift += 7 {
  16589. if shift >= 64 {
  16590. return ErrIntOverflowApi
  16591. }
  16592. if iNdEx >= l {
  16593. return io.ErrUnexpectedEOF
  16594. }
  16595. b := dAtA[iNdEx]
  16596. iNdEx++
  16597. wire |= (uint64(b) & 0x7F) << shift
  16598. if b < 0x80 {
  16599. break
  16600. }
  16601. }
  16602. fieldNum := int32(wire >> 3)
  16603. wireType := int(wire & 0x7)
  16604. if wireType == 4 {
  16605. return fmt.Errorf("proto: DeletePoolPrizeResp: wiretype end group for non-group")
  16606. }
  16607. if fieldNum <= 0 {
  16608. return fmt.Errorf("proto: DeletePoolPrizeResp: illegal tag %d (wire type %d)", fieldNum, wire)
  16609. }
  16610. switch fieldNum {
  16611. case 1:
  16612. if wireType != 0 {
  16613. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  16614. }
  16615. var v int
  16616. for shift := uint(0); ; shift += 7 {
  16617. if shift >= 64 {
  16618. return ErrIntOverflowApi
  16619. }
  16620. if iNdEx >= l {
  16621. return io.ErrUnexpectedEOF
  16622. }
  16623. b := dAtA[iNdEx]
  16624. iNdEx++
  16625. v |= (int(b) & 0x7F) << shift
  16626. if b < 0x80 {
  16627. break
  16628. }
  16629. }
  16630. m.Status = bool(v != 0)
  16631. default:
  16632. iNdEx = preIndex
  16633. skippy, err := skipApi(dAtA[iNdEx:])
  16634. if err != nil {
  16635. return err
  16636. }
  16637. if skippy < 0 {
  16638. return ErrInvalidLengthApi
  16639. }
  16640. if (iNdEx + skippy) > l {
  16641. return io.ErrUnexpectedEOF
  16642. }
  16643. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16644. iNdEx += skippy
  16645. }
  16646. }
  16647. if iNdEx > l {
  16648. return io.ErrUnexpectedEOF
  16649. }
  16650. return nil
  16651. }
  16652. func (m *GetPrizeTypeReq) Unmarshal(dAtA []byte) error {
  16653. l := len(dAtA)
  16654. iNdEx := 0
  16655. for iNdEx < l {
  16656. preIndex := iNdEx
  16657. var wire uint64
  16658. for shift := uint(0); ; shift += 7 {
  16659. if shift >= 64 {
  16660. return ErrIntOverflowApi
  16661. }
  16662. if iNdEx >= l {
  16663. return io.ErrUnexpectedEOF
  16664. }
  16665. b := dAtA[iNdEx]
  16666. iNdEx++
  16667. wire |= (uint64(b) & 0x7F) << shift
  16668. if b < 0x80 {
  16669. break
  16670. }
  16671. }
  16672. fieldNum := int32(wire >> 3)
  16673. wireType := int(wire & 0x7)
  16674. if wireType == 4 {
  16675. return fmt.Errorf("proto: GetPrizeTypeReq: wiretype end group for non-group")
  16676. }
  16677. if fieldNum <= 0 {
  16678. return fmt.Errorf("proto: GetPrizeTypeReq: illegal tag %d (wire type %d)", fieldNum, wire)
  16679. }
  16680. switch fieldNum {
  16681. default:
  16682. iNdEx = preIndex
  16683. skippy, err := skipApi(dAtA[iNdEx:])
  16684. if err != nil {
  16685. return err
  16686. }
  16687. if skippy < 0 {
  16688. return ErrInvalidLengthApi
  16689. }
  16690. if (iNdEx + skippy) > l {
  16691. return io.ErrUnexpectedEOF
  16692. }
  16693. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16694. iNdEx += skippy
  16695. }
  16696. }
  16697. if iNdEx > l {
  16698. return io.ErrUnexpectedEOF
  16699. }
  16700. return nil
  16701. }
  16702. func (m *GetPrizeTypeResp) Unmarshal(dAtA []byte) error {
  16703. l := len(dAtA)
  16704. iNdEx := 0
  16705. for iNdEx < l {
  16706. preIndex := iNdEx
  16707. var wire uint64
  16708. for shift := uint(0); ; shift += 7 {
  16709. if shift >= 64 {
  16710. return ErrIntOverflowApi
  16711. }
  16712. if iNdEx >= l {
  16713. return io.ErrUnexpectedEOF
  16714. }
  16715. b := dAtA[iNdEx]
  16716. iNdEx++
  16717. wire |= (uint64(b) & 0x7F) << shift
  16718. if b < 0x80 {
  16719. break
  16720. }
  16721. }
  16722. fieldNum := int32(wire >> 3)
  16723. wireType := int(wire & 0x7)
  16724. if wireType == 4 {
  16725. return fmt.Errorf("proto: GetPrizeTypeResp: wiretype end group for non-group")
  16726. }
  16727. if fieldNum <= 0 {
  16728. return fmt.Errorf("proto: GetPrizeTypeResp: illegal tag %d (wire type %d)", fieldNum, wire)
  16729. }
  16730. switch fieldNum {
  16731. case 3:
  16732. if wireType != 2 {
  16733. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  16734. }
  16735. var msglen int
  16736. for shift := uint(0); ; shift += 7 {
  16737. if shift >= 64 {
  16738. return ErrIntOverflowApi
  16739. }
  16740. if iNdEx >= l {
  16741. return io.ErrUnexpectedEOF
  16742. }
  16743. b := dAtA[iNdEx]
  16744. iNdEx++
  16745. msglen |= (int(b) & 0x7F) << shift
  16746. if b < 0x80 {
  16747. break
  16748. }
  16749. }
  16750. if msglen < 0 {
  16751. return ErrInvalidLengthApi
  16752. }
  16753. postIndex := iNdEx + msglen
  16754. if postIndex > l {
  16755. return io.ErrUnexpectedEOF
  16756. }
  16757. m.List = append(m.List, &GetPrizeTypeResp_List{})
  16758. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  16759. return err
  16760. }
  16761. iNdEx = postIndex
  16762. default:
  16763. iNdEx = preIndex
  16764. skippy, err := skipApi(dAtA[iNdEx:])
  16765. if err != nil {
  16766. return err
  16767. }
  16768. if skippy < 0 {
  16769. return ErrInvalidLengthApi
  16770. }
  16771. if (iNdEx + skippy) > l {
  16772. return io.ErrUnexpectedEOF
  16773. }
  16774. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16775. iNdEx += skippy
  16776. }
  16777. }
  16778. if iNdEx > l {
  16779. return io.ErrUnexpectedEOF
  16780. }
  16781. return nil
  16782. }
  16783. func (m *GetPrizeTypeResp_List) Unmarshal(dAtA []byte) error {
  16784. l := len(dAtA)
  16785. iNdEx := 0
  16786. for iNdEx < l {
  16787. preIndex := iNdEx
  16788. var wire uint64
  16789. for shift := uint(0); ; shift += 7 {
  16790. if shift >= 64 {
  16791. return ErrIntOverflowApi
  16792. }
  16793. if iNdEx >= l {
  16794. return io.ErrUnexpectedEOF
  16795. }
  16796. b := dAtA[iNdEx]
  16797. iNdEx++
  16798. wire |= (uint64(b) & 0x7F) << shift
  16799. if b < 0x80 {
  16800. break
  16801. }
  16802. }
  16803. fieldNum := int32(wire >> 3)
  16804. wireType := int(wire & 0x7)
  16805. if wireType == 4 {
  16806. return fmt.Errorf("proto: List: wiretype end group for non-group")
  16807. }
  16808. if fieldNum <= 0 {
  16809. return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
  16810. }
  16811. switch fieldNum {
  16812. case 1:
  16813. if wireType != 0 {
  16814. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  16815. }
  16816. m.Type = 0
  16817. for shift := uint(0); ; shift += 7 {
  16818. if shift >= 64 {
  16819. return ErrIntOverflowApi
  16820. }
  16821. if iNdEx >= l {
  16822. return io.ErrUnexpectedEOF
  16823. }
  16824. b := dAtA[iNdEx]
  16825. iNdEx++
  16826. m.Type |= (int64(b) & 0x7F) << shift
  16827. if b < 0x80 {
  16828. break
  16829. }
  16830. }
  16831. case 2:
  16832. if wireType != 2 {
  16833. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  16834. }
  16835. var stringLen uint64
  16836. for shift := uint(0); ; shift += 7 {
  16837. if shift >= 64 {
  16838. return ErrIntOverflowApi
  16839. }
  16840. if iNdEx >= l {
  16841. return io.ErrUnexpectedEOF
  16842. }
  16843. b := dAtA[iNdEx]
  16844. iNdEx++
  16845. stringLen |= (uint64(b) & 0x7F) << shift
  16846. if b < 0x80 {
  16847. break
  16848. }
  16849. }
  16850. intStringLen := int(stringLen)
  16851. if intStringLen < 0 {
  16852. return ErrInvalidLengthApi
  16853. }
  16854. postIndex := iNdEx + intStringLen
  16855. if postIndex > l {
  16856. return io.ErrUnexpectedEOF
  16857. }
  16858. m.Name = string(dAtA[iNdEx:postIndex])
  16859. iNdEx = postIndex
  16860. default:
  16861. iNdEx = preIndex
  16862. skippy, err := skipApi(dAtA[iNdEx:])
  16863. if err != nil {
  16864. return err
  16865. }
  16866. if skippy < 0 {
  16867. return ErrInvalidLengthApi
  16868. }
  16869. if (iNdEx + skippy) > l {
  16870. return io.ErrUnexpectedEOF
  16871. }
  16872. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16873. iNdEx += skippy
  16874. }
  16875. }
  16876. if iNdEx > l {
  16877. return io.ErrUnexpectedEOF
  16878. }
  16879. return nil
  16880. }
  16881. func (m *GetPrizeExpireReq) Unmarshal(dAtA []byte) error {
  16882. l := len(dAtA)
  16883. iNdEx := 0
  16884. for iNdEx < l {
  16885. preIndex := iNdEx
  16886. var wire uint64
  16887. for shift := uint(0); ; shift += 7 {
  16888. if shift >= 64 {
  16889. return ErrIntOverflowApi
  16890. }
  16891. if iNdEx >= l {
  16892. return io.ErrUnexpectedEOF
  16893. }
  16894. b := dAtA[iNdEx]
  16895. iNdEx++
  16896. wire |= (uint64(b) & 0x7F) << shift
  16897. if b < 0x80 {
  16898. break
  16899. }
  16900. }
  16901. fieldNum := int32(wire >> 3)
  16902. wireType := int(wire & 0x7)
  16903. if wireType == 4 {
  16904. return fmt.Errorf("proto: GetPrizeExpireReq: wiretype end group for non-group")
  16905. }
  16906. if fieldNum <= 0 {
  16907. return fmt.Errorf("proto: GetPrizeExpireReq: illegal tag %d (wire type %d)", fieldNum, wire)
  16908. }
  16909. switch fieldNum {
  16910. default:
  16911. iNdEx = preIndex
  16912. skippy, err := skipApi(dAtA[iNdEx:])
  16913. if err != nil {
  16914. return err
  16915. }
  16916. if skippy < 0 {
  16917. return ErrInvalidLengthApi
  16918. }
  16919. if (iNdEx + skippy) > l {
  16920. return io.ErrUnexpectedEOF
  16921. }
  16922. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  16923. iNdEx += skippy
  16924. }
  16925. }
  16926. if iNdEx > l {
  16927. return io.ErrUnexpectedEOF
  16928. }
  16929. return nil
  16930. }
  16931. func (m *GetPrizeExpireResp) Unmarshal(dAtA []byte) error {
  16932. l := len(dAtA)
  16933. iNdEx := 0
  16934. for iNdEx < l {
  16935. preIndex := iNdEx
  16936. var wire uint64
  16937. for shift := uint(0); ; shift += 7 {
  16938. if shift >= 64 {
  16939. return ErrIntOverflowApi
  16940. }
  16941. if iNdEx >= l {
  16942. return io.ErrUnexpectedEOF
  16943. }
  16944. b := dAtA[iNdEx]
  16945. iNdEx++
  16946. wire |= (uint64(b) & 0x7F) << shift
  16947. if b < 0x80 {
  16948. break
  16949. }
  16950. }
  16951. fieldNum := int32(wire >> 3)
  16952. wireType := int(wire & 0x7)
  16953. if wireType == 4 {
  16954. return fmt.Errorf("proto: GetPrizeExpireResp: wiretype end group for non-group")
  16955. }
  16956. if fieldNum <= 0 {
  16957. return fmt.Errorf("proto: GetPrizeExpireResp: illegal tag %d (wire type %d)", fieldNum, wire)
  16958. }
  16959. switch fieldNum {
  16960. case 3:
  16961. if wireType != 2 {
  16962. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  16963. }
  16964. var msglen int
  16965. for shift := uint(0); ; shift += 7 {
  16966. if shift >= 64 {
  16967. return ErrIntOverflowApi
  16968. }
  16969. if iNdEx >= l {
  16970. return io.ErrUnexpectedEOF
  16971. }
  16972. b := dAtA[iNdEx]
  16973. iNdEx++
  16974. msglen |= (int(b) & 0x7F) << shift
  16975. if b < 0x80 {
  16976. break
  16977. }
  16978. }
  16979. if msglen < 0 {
  16980. return ErrInvalidLengthApi
  16981. }
  16982. postIndex := iNdEx + msglen
  16983. if postIndex > l {
  16984. return io.ErrUnexpectedEOF
  16985. }
  16986. m.List = append(m.List, &GetPrizeExpireResp_List{})
  16987. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  16988. return err
  16989. }
  16990. iNdEx = postIndex
  16991. default:
  16992. iNdEx = preIndex
  16993. skippy, err := skipApi(dAtA[iNdEx:])
  16994. if err != nil {
  16995. return err
  16996. }
  16997. if skippy < 0 {
  16998. return ErrInvalidLengthApi
  16999. }
  17000. if (iNdEx + skippy) > l {
  17001. return io.ErrUnexpectedEOF
  17002. }
  17003. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17004. iNdEx += skippy
  17005. }
  17006. }
  17007. if iNdEx > l {
  17008. return io.ErrUnexpectedEOF
  17009. }
  17010. return nil
  17011. }
  17012. func (m *GetPrizeExpireResp_List) Unmarshal(dAtA []byte) error {
  17013. l := len(dAtA)
  17014. iNdEx := 0
  17015. for iNdEx < l {
  17016. preIndex := iNdEx
  17017. var wire uint64
  17018. for shift := uint(0); ; shift += 7 {
  17019. if shift >= 64 {
  17020. return ErrIntOverflowApi
  17021. }
  17022. if iNdEx >= l {
  17023. return io.ErrUnexpectedEOF
  17024. }
  17025. b := dAtA[iNdEx]
  17026. iNdEx++
  17027. wire |= (uint64(b) & 0x7F) << shift
  17028. if b < 0x80 {
  17029. break
  17030. }
  17031. }
  17032. fieldNum := int32(wire >> 3)
  17033. wireType := int(wire & 0x7)
  17034. if wireType == 4 {
  17035. return fmt.Errorf("proto: List: wiretype end group for non-group")
  17036. }
  17037. if fieldNum <= 0 {
  17038. return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
  17039. }
  17040. switch fieldNum {
  17041. case 1:
  17042. if wireType != 0 {
  17043. return fmt.Errorf("proto: wrong wireType = %d for field Expire", wireType)
  17044. }
  17045. m.Expire = 0
  17046. for shift := uint(0); ; shift += 7 {
  17047. if shift >= 64 {
  17048. return ErrIntOverflowApi
  17049. }
  17050. if iNdEx >= l {
  17051. return io.ErrUnexpectedEOF
  17052. }
  17053. b := dAtA[iNdEx]
  17054. iNdEx++
  17055. m.Expire |= (int64(b) & 0x7F) << shift
  17056. if b < 0x80 {
  17057. break
  17058. }
  17059. }
  17060. case 2:
  17061. if wireType != 2 {
  17062. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  17063. }
  17064. var stringLen uint64
  17065. for shift := uint(0); ; shift += 7 {
  17066. if shift >= 64 {
  17067. return ErrIntOverflowApi
  17068. }
  17069. if iNdEx >= l {
  17070. return io.ErrUnexpectedEOF
  17071. }
  17072. b := dAtA[iNdEx]
  17073. iNdEx++
  17074. stringLen |= (uint64(b) & 0x7F) << shift
  17075. if b < 0x80 {
  17076. break
  17077. }
  17078. }
  17079. intStringLen := int(stringLen)
  17080. if intStringLen < 0 {
  17081. return ErrInvalidLengthApi
  17082. }
  17083. postIndex := iNdEx + intStringLen
  17084. if postIndex > l {
  17085. return io.ErrUnexpectedEOF
  17086. }
  17087. m.Name = string(dAtA[iNdEx:postIndex])
  17088. iNdEx = postIndex
  17089. default:
  17090. iNdEx = preIndex
  17091. skippy, err := skipApi(dAtA[iNdEx:])
  17092. if err != nil {
  17093. return err
  17094. }
  17095. if skippy < 0 {
  17096. return ErrInvalidLengthApi
  17097. }
  17098. if (iNdEx + skippy) > l {
  17099. return io.ErrUnexpectedEOF
  17100. }
  17101. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17102. iNdEx += skippy
  17103. }
  17104. }
  17105. if iNdEx > l {
  17106. return io.ErrUnexpectedEOF
  17107. }
  17108. return nil
  17109. }
  17110. func (m *StartStormReq) Unmarshal(dAtA []byte) error {
  17111. l := len(dAtA)
  17112. iNdEx := 0
  17113. for iNdEx < l {
  17114. preIndex := iNdEx
  17115. var wire uint64
  17116. for shift := uint(0); ; shift += 7 {
  17117. if shift >= 64 {
  17118. return ErrIntOverflowApi
  17119. }
  17120. if iNdEx >= l {
  17121. return io.ErrUnexpectedEOF
  17122. }
  17123. b := dAtA[iNdEx]
  17124. iNdEx++
  17125. wire |= (uint64(b) & 0x7F) << shift
  17126. if b < 0x80 {
  17127. break
  17128. }
  17129. }
  17130. fieldNum := int32(wire >> 3)
  17131. wireType := int(wire & 0x7)
  17132. if wireType == 4 {
  17133. return fmt.Errorf("proto: StartStormReq: wiretype end group for non-group")
  17134. }
  17135. if fieldNum <= 0 {
  17136. return fmt.Errorf("proto: StartStormReq: illegal tag %d (wire type %d)", fieldNum, wire)
  17137. }
  17138. switch fieldNum {
  17139. case 1:
  17140. if wireType != 0 {
  17141. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  17142. }
  17143. m.Uid = 0
  17144. for shift := uint(0); ; shift += 7 {
  17145. if shift >= 64 {
  17146. return ErrIntOverflowApi
  17147. }
  17148. if iNdEx >= l {
  17149. return io.ErrUnexpectedEOF
  17150. }
  17151. b := dAtA[iNdEx]
  17152. iNdEx++
  17153. m.Uid |= (int64(b) & 0x7F) << shift
  17154. if b < 0x80 {
  17155. break
  17156. }
  17157. }
  17158. case 2:
  17159. if wireType != 0 {
  17160. return fmt.Errorf("proto: wrong wireType = %d for field Ruid", wireType)
  17161. }
  17162. m.Ruid = 0
  17163. for shift := uint(0); ; shift += 7 {
  17164. if shift >= 64 {
  17165. return ErrIntOverflowApi
  17166. }
  17167. if iNdEx >= l {
  17168. return io.ErrUnexpectedEOF
  17169. }
  17170. b := dAtA[iNdEx]
  17171. iNdEx++
  17172. m.Ruid |= (int64(b) & 0x7F) << shift
  17173. if b < 0x80 {
  17174. break
  17175. }
  17176. }
  17177. case 3:
  17178. if wireType != 0 {
  17179. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  17180. }
  17181. m.Roomid = 0
  17182. for shift := uint(0); ; shift += 7 {
  17183. if shift >= 64 {
  17184. return ErrIntOverflowApi
  17185. }
  17186. if iNdEx >= l {
  17187. return io.ErrUnexpectedEOF
  17188. }
  17189. b := dAtA[iNdEx]
  17190. iNdEx++
  17191. m.Roomid |= (int64(b) & 0x7F) << shift
  17192. if b < 0x80 {
  17193. break
  17194. }
  17195. }
  17196. case 4:
  17197. if wireType != 0 {
  17198. return fmt.Errorf("proto: wrong wireType = %d for field UseShield", wireType)
  17199. }
  17200. var v int
  17201. for shift := uint(0); ; shift += 7 {
  17202. if shift >= 64 {
  17203. return ErrIntOverflowApi
  17204. }
  17205. if iNdEx >= l {
  17206. return io.ErrUnexpectedEOF
  17207. }
  17208. b := dAtA[iNdEx]
  17209. iNdEx++
  17210. v |= (int(b) & 0x7F) << shift
  17211. if b < 0x80 {
  17212. break
  17213. }
  17214. }
  17215. m.UseShield = bool(v != 0)
  17216. case 5:
  17217. if wireType != 0 {
  17218. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  17219. }
  17220. m.Num = 0
  17221. for shift := uint(0); ; shift += 7 {
  17222. if shift >= 64 {
  17223. return ErrIntOverflowApi
  17224. }
  17225. if iNdEx >= l {
  17226. return io.ErrUnexpectedEOF
  17227. }
  17228. b := dAtA[iNdEx]
  17229. iNdEx++
  17230. m.Num |= (int64(b) & 0x7F) << shift
  17231. if b < 0x80 {
  17232. break
  17233. }
  17234. }
  17235. case 6:
  17236. if wireType != 0 {
  17237. return fmt.Errorf("proto: wrong wireType = %d for field Beatid", wireType)
  17238. }
  17239. m.Beatid = 0
  17240. for shift := uint(0); ; shift += 7 {
  17241. if shift >= 64 {
  17242. return ErrIntOverflowApi
  17243. }
  17244. if iNdEx >= l {
  17245. return io.ErrUnexpectedEOF
  17246. }
  17247. b := dAtA[iNdEx]
  17248. iNdEx++
  17249. m.Beatid |= (int64(b) & 0x7F) << shift
  17250. if b < 0x80 {
  17251. break
  17252. }
  17253. }
  17254. case 7:
  17255. if wireType != 0 {
  17256. return fmt.Errorf("proto: wrong wireType = %d for field SkipExternalCheck", wireType)
  17257. }
  17258. m.SkipExternalCheck = 0
  17259. for shift := uint(0); ; shift += 7 {
  17260. if shift >= 64 {
  17261. return ErrIntOverflowApi
  17262. }
  17263. if iNdEx >= l {
  17264. return io.ErrUnexpectedEOF
  17265. }
  17266. b := dAtA[iNdEx]
  17267. iNdEx++
  17268. m.SkipExternalCheck |= (int64(b) & 0x7F) << shift
  17269. if b < 0x80 {
  17270. break
  17271. }
  17272. }
  17273. default:
  17274. iNdEx = preIndex
  17275. skippy, err := skipApi(dAtA[iNdEx:])
  17276. if err != nil {
  17277. return err
  17278. }
  17279. if skippy < 0 {
  17280. return ErrInvalidLengthApi
  17281. }
  17282. if (iNdEx + skippy) > l {
  17283. return io.ErrUnexpectedEOF
  17284. }
  17285. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17286. iNdEx += skippy
  17287. }
  17288. }
  17289. if iNdEx > l {
  17290. return io.ErrUnexpectedEOF
  17291. }
  17292. return nil
  17293. }
  17294. func (m *StartStormResp) Unmarshal(dAtA []byte) error {
  17295. l := len(dAtA)
  17296. iNdEx := 0
  17297. for iNdEx < l {
  17298. preIndex := iNdEx
  17299. var wire uint64
  17300. for shift := uint(0); ; shift += 7 {
  17301. if shift >= 64 {
  17302. return ErrIntOverflowApi
  17303. }
  17304. if iNdEx >= l {
  17305. return io.ErrUnexpectedEOF
  17306. }
  17307. b := dAtA[iNdEx]
  17308. iNdEx++
  17309. wire |= (uint64(b) & 0x7F) << shift
  17310. if b < 0x80 {
  17311. break
  17312. }
  17313. }
  17314. fieldNum := int32(wire >> 3)
  17315. wireType := int(wire & 0x7)
  17316. if wireType == 4 {
  17317. return fmt.Errorf("proto: StartStormResp: wiretype end group for non-group")
  17318. }
  17319. if fieldNum <= 0 {
  17320. return fmt.Errorf("proto: StartStormResp: illegal tag %d (wire type %d)", fieldNum, wire)
  17321. }
  17322. switch fieldNum {
  17323. case 1:
  17324. if wireType != 0 {
  17325. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  17326. }
  17327. m.Code = 0
  17328. for shift := uint(0); ; shift += 7 {
  17329. if shift >= 64 {
  17330. return ErrIntOverflowApi
  17331. }
  17332. if iNdEx >= l {
  17333. return io.ErrUnexpectedEOF
  17334. }
  17335. b := dAtA[iNdEx]
  17336. iNdEx++
  17337. m.Code |= (int32(b) & 0x7F) << shift
  17338. if b < 0x80 {
  17339. break
  17340. }
  17341. }
  17342. case 2:
  17343. if wireType != 2 {
  17344. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  17345. }
  17346. var stringLen uint64
  17347. for shift := uint(0); ; shift += 7 {
  17348. if shift >= 64 {
  17349. return ErrIntOverflowApi
  17350. }
  17351. if iNdEx >= l {
  17352. return io.ErrUnexpectedEOF
  17353. }
  17354. b := dAtA[iNdEx]
  17355. iNdEx++
  17356. stringLen |= (uint64(b) & 0x7F) << shift
  17357. if b < 0x80 {
  17358. break
  17359. }
  17360. }
  17361. intStringLen := int(stringLen)
  17362. if intStringLen < 0 {
  17363. return ErrInvalidLengthApi
  17364. }
  17365. postIndex := iNdEx + intStringLen
  17366. if postIndex > l {
  17367. return io.ErrUnexpectedEOF
  17368. }
  17369. m.Msg = string(dAtA[iNdEx:postIndex])
  17370. iNdEx = postIndex
  17371. case 3:
  17372. if wireType != 2 {
  17373. return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  17374. }
  17375. var msglen int
  17376. for shift := uint(0); ; shift += 7 {
  17377. if shift >= 64 {
  17378. return ErrIntOverflowApi
  17379. }
  17380. if iNdEx >= l {
  17381. return io.ErrUnexpectedEOF
  17382. }
  17383. b := dAtA[iNdEx]
  17384. iNdEx++
  17385. msglen |= (int(b) & 0x7F) << shift
  17386. if b < 0x80 {
  17387. break
  17388. }
  17389. }
  17390. if msglen < 0 {
  17391. return ErrInvalidLengthApi
  17392. }
  17393. postIndex := iNdEx + msglen
  17394. if postIndex > l {
  17395. return io.ErrUnexpectedEOF
  17396. }
  17397. if m.Start == nil {
  17398. m.Start = &StartData{}
  17399. }
  17400. if err := m.Start.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  17401. return err
  17402. }
  17403. iNdEx = postIndex
  17404. default:
  17405. iNdEx = preIndex
  17406. skippy, err := skipApi(dAtA[iNdEx:])
  17407. if err != nil {
  17408. return err
  17409. }
  17410. if skippy < 0 {
  17411. return ErrInvalidLengthApi
  17412. }
  17413. if (iNdEx + skippy) > l {
  17414. return io.ErrUnexpectedEOF
  17415. }
  17416. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17417. iNdEx += skippy
  17418. }
  17419. }
  17420. if iNdEx > l {
  17421. return io.ErrUnexpectedEOF
  17422. }
  17423. return nil
  17424. }
  17425. func (m *StartData) Unmarshal(dAtA []byte) error {
  17426. l := len(dAtA)
  17427. iNdEx := 0
  17428. for iNdEx < l {
  17429. preIndex := iNdEx
  17430. var wire uint64
  17431. for shift := uint(0); ; shift += 7 {
  17432. if shift >= 64 {
  17433. return ErrIntOverflowApi
  17434. }
  17435. if iNdEx >= l {
  17436. return io.ErrUnexpectedEOF
  17437. }
  17438. b := dAtA[iNdEx]
  17439. iNdEx++
  17440. wire |= (uint64(b) & 0x7F) << shift
  17441. if b < 0x80 {
  17442. break
  17443. }
  17444. }
  17445. fieldNum := int32(wire >> 3)
  17446. wireType := int(wire & 0x7)
  17447. if wireType == 4 {
  17448. return fmt.Errorf("proto: StartData: wiretype end group for non-group")
  17449. }
  17450. if fieldNum <= 0 {
  17451. return fmt.Errorf("proto: StartData: illegal tag %d (wire type %d)", fieldNum, wire)
  17452. }
  17453. switch fieldNum {
  17454. case 1:
  17455. if wireType != 0 {
  17456. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  17457. }
  17458. m.Time = 0
  17459. for shift := uint(0); ; shift += 7 {
  17460. if shift >= 64 {
  17461. return ErrIntOverflowApi
  17462. }
  17463. if iNdEx >= l {
  17464. return io.ErrUnexpectedEOF
  17465. }
  17466. b := dAtA[iNdEx]
  17467. iNdEx++
  17468. m.Time |= (int32(b) & 0x7F) << shift
  17469. if b < 0x80 {
  17470. break
  17471. }
  17472. }
  17473. case 2:
  17474. if wireType != 0 {
  17475. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  17476. }
  17477. m.Id = 0
  17478. for shift := uint(0); ; shift += 7 {
  17479. if shift >= 64 {
  17480. return ErrIntOverflowApi
  17481. }
  17482. if iNdEx >= l {
  17483. return io.ErrUnexpectedEOF
  17484. }
  17485. b := dAtA[iNdEx]
  17486. iNdEx++
  17487. m.Id |= (int64(b) & 0x7F) << shift
  17488. if b < 0x80 {
  17489. break
  17490. }
  17491. }
  17492. default:
  17493. iNdEx = preIndex
  17494. skippy, err := skipApi(dAtA[iNdEx:])
  17495. if err != nil {
  17496. return err
  17497. }
  17498. if skippy < 0 {
  17499. return ErrInvalidLengthApi
  17500. }
  17501. if (iNdEx + skippy) > l {
  17502. return io.ErrUnexpectedEOF
  17503. }
  17504. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17505. iNdEx += skippy
  17506. }
  17507. }
  17508. if iNdEx > l {
  17509. return io.ErrUnexpectedEOF
  17510. }
  17511. return nil
  17512. }
  17513. func (m *CanStartStormResp) Unmarshal(dAtA []byte) error {
  17514. l := len(dAtA)
  17515. iNdEx := 0
  17516. for iNdEx < l {
  17517. preIndex := iNdEx
  17518. var wire uint64
  17519. for shift := uint(0); ; shift += 7 {
  17520. if shift >= 64 {
  17521. return ErrIntOverflowApi
  17522. }
  17523. if iNdEx >= l {
  17524. return io.ErrUnexpectedEOF
  17525. }
  17526. b := dAtA[iNdEx]
  17527. iNdEx++
  17528. wire |= (uint64(b) & 0x7F) << shift
  17529. if b < 0x80 {
  17530. break
  17531. }
  17532. }
  17533. fieldNum := int32(wire >> 3)
  17534. wireType := int(wire & 0x7)
  17535. if wireType == 4 {
  17536. return fmt.Errorf("proto: CanStartStormResp: wiretype end group for non-group")
  17537. }
  17538. if fieldNum <= 0 {
  17539. return fmt.Errorf("proto: CanStartStormResp: illegal tag %d (wire type %d)", fieldNum, wire)
  17540. }
  17541. switch fieldNum {
  17542. case 1:
  17543. if wireType != 0 {
  17544. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  17545. }
  17546. m.Code = 0
  17547. for shift := uint(0); ; shift += 7 {
  17548. if shift >= 64 {
  17549. return ErrIntOverflowApi
  17550. }
  17551. if iNdEx >= l {
  17552. return io.ErrUnexpectedEOF
  17553. }
  17554. b := dAtA[iNdEx]
  17555. iNdEx++
  17556. m.Code |= (int32(b) & 0x7F) << shift
  17557. if b < 0x80 {
  17558. break
  17559. }
  17560. }
  17561. case 2:
  17562. if wireType != 2 {
  17563. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  17564. }
  17565. var stringLen uint64
  17566. for shift := uint(0); ; shift += 7 {
  17567. if shift >= 64 {
  17568. return ErrIntOverflowApi
  17569. }
  17570. if iNdEx >= l {
  17571. return io.ErrUnexpectedEOF
  17572. }
  17573. b := dAtA[iNdEx]
  17574. iNdEx++
  17575. stringLen |= (uint64(b) & 0x7F) << shift
  17576. if b < 0x80 {
  17577. break
  17578. }
  17579. }
  17580. intStringLen := int(stringLen)
  17581. if intStringLen < 0 {
  17582. return ErrInvalidLengthApi
  17583. }
  17584. postIndex := iNdEx + intStringLen
  17585. if postIndex > l {
  17586. return io.ErrUnexpectedEOF
  17587. }
  17588. m.Msg = string(dAtA[iNdEx:postIndex])
  17589. iNdEx = postIndex
  17590. case 3:
  17591. if wireType != 0 {
  17592. return fmt.Errorf("proto: wrong wireType = %d for field RetStatus", wireType)
  17593. }
  17594. var v int
  17595. for shift := uint(0); ; shift += 7 {
  17596. if shift >= 64 {
  17597. return ErrIntOverflowApi
  17598. }
  17599. if iNdEx >= l {
  17600. return io.ErrUnexpectedEOF
  17601. }
  17602. b := dAtA[iNdEx]
  17603. iNdEx++
  17604. v |= (int(b) & 0x7F) << shift
  17605. if b < 0x80 {
  17606. break
  17607. }
  17608. }
  17609. m.RetStatus = bool(v != 0)
  17610. default:
  17611. iNdEx = preIndex
  17612. skippy, err := skipApi(dAtA[iNdEx:])
  17613. if err != nil {
  17614. return err
  17615. }
  17616. if skippy < 0 {
  17617. return ErrInvalidLengthApi
  17618. }
  17619. if (iNdEx + skippy) > l {
  17620. return io.ErrUnexpectedEOF
  17621. }
  17622. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17623. iNdEx += skippy
  17624. }
  17625. }
  17626. if iNdEx > l {
  17627. return io.ErrUnexpectedEOF
  17628. }
  17629. return nil
  17630. }
  17631. func (m *JoinStormReq) Unmarshal(dAtA []byte) error {
  17632. l := len(dAtA)
  17633. iNdEx := 0
  17634. for iNdEx < l {
  17635. preIndex := iNdEx
  17636. var wire uint64
  17637. for shift := uint(0); ; shift += 7 {
  17638. if shift >= 64 {
  17639. return ErrIntOverflowApi
  17640. }
  17641. if iNdEx >= l {
  17642. return io.ErrUnexpectedEOF
  17643. }
  17644. b := dAtA[iNdEx]
  17645. iNdEx++
  17646. wire |= (uint64(b) & 0x7F) << shift
  17647. if b < 0x80 {
  17648. break
  17649. }
  17650. }
  17651. fieldNum := int32(wire >> 3)
  17652. wireType := int(wire & 0x7)
  17653. if wireType == 4 {
  17654. return fmt.Errorf("proto: JoinStormReq: wiretype end group for non-group")
  17655. }
  17656. if fieldNum <= 0 {
  17657. return fmt.Errorf("proto: JoinStormReq: illegal tag %d (wire type %d)", fieldNum, wire)
  17658. }
  17659. switch fieldNum {
  17660. case 1:
  17661. if wireType != 0 {
  17662. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  17663. }
  17664. m.Id = 0
  17665. for shift := uint(0); ; shift += 7 {
  17666. if shift >= 64 {
  17667. return ErrIntOverflowApi
  17668. }
  17669. if iNdEx >= l {
  17670. return io.ErrUnexpectedEOF
  17671. }
  17672. b := dAtA[iNdEx]
  17673. iNdEx++
  17674. m.Id |= (int64(b) & 0x7F) << shift
  17675. if b < 0x80 {
  17676. break
  17677. }
  17678. }
  17679. case 2:
  17680. if wireType != 0 {
  17681. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  17682. }
  17683. m.Roomid = 0
  17684. for shift := uint(0); ; shift += 7 {
  17685. if shift >= 64 {
  17686. return ErrIntOverflowApi
  17687. }
  17688. if iNdEx >= l {
  17689. return io.ErrUnexpectedEOF
  17690. }
  17691. b := dAtA[iNdEx]
  17692. iNdEx++
  17693. m.Roomid |= (int64(b) & 0x7F) << shift
  17694. if b < 0x80 {
  17695. break
  17696. }
  17697. }
  17698. case 3:
  17699. if wireType != 2 {
  17700. return fmt.Errorf("proto: wrong wireType = %d for field Color", wireType)
  17701. }
  17702. var stringLen uint64
  17703. for shift := uint(0); ; shift += 7 {
  17704. if shift >= 64 {
  17705. return ErrIntOverflowApi
  17706. }
  17707. if iNdEx >= l {
  17708. return io.ErrUnexpectedEOF
  17709. }
  17710. b := dAtA[iNdEx]
  17711. iNdEx++
  17712. stringLen |= (uint64(b) & 0x7F) << shift
  17713. if b < 0x80 {
  17714. break
  17715. }
  17716. }
  17717. intStringLen := int(stringLen)
  17718. if intStringLen < 0 {
  17719. return ErrInvalidLengthApi
  17720. }
  17721. postIndex := iNdEx + intStringLen
  17722. if postIndex > l {
  17723. return io.ErrUnexpectedEOF
  17724. }
  17725. m.Color = string(dAtA[iNdEx:postIndex])
  17726. iNdEx = postIndex
  17727. case 4:
  17728. if wireType != 0 {
  17729. return fmt.Errorf("proto: wrong wireType = %d for field Mid", wireType)
  17730. }
  17731. m.Mid = 0
  17732. for shift := uint(0); ; shift += 7 {
  17733. if shift >= 64 {
  17734. return ErrIntOverflowApi
  17735. }
  17736. if iNdEx >= l {
  17737. return io.ErrUnexpectedEOF
  17738. }
  17739. b := dAtA[iNdEx]
  17740. iNdEx++
  17741. m.Mid |= (int64(b) & 0x7F) << shift
  17742. if b < 0x80 {
  17743. break
  17744. }
  17745. }
  17746. case 5:
  17747. if wireType != 2 {
  17748. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  17749. }
  17750. var stringLen uint64
  17751. for shift := uint(0); ; shift += 7 {
  17752. if shift >= 64 {
  17753. return ErrIntOverflowApi
  17754. }
  17755. if iNdEx >= l {
  17756. return io.ErrUnexpectedEOF
  17757. }
  17758. b := dAtA[iNdEx]
  17759. iNdEx++
  17760. stringLen |= (uint64(b) & 0x7F) << shift
  17761. if b < 0x80 {
  17762. break
  17763. }
  17764. }
  17765. intStringLen := int(stringLen)
  17766. if intStringLen < 0 {
  17767. return ErrInvalidLengthApi
  17768. }
  17769. postIndex := iNdEx + intStringLen
  17770. if postIndex > l {
  17771. return io.ErrUnexpectedEOF
  17772. }
  17773. m.Platform = string(dAtA[iNdEx:postIndex])
  17774. iNdEx = postIndex
  17775. case 6:
  17776. if wireType != 2 {
  17777. return fmt.Errorf("proto: wrong wireType = %d for field CaptchaToken", wireType)
  17778. }
  17779. var stringLen uint64
  17780. for shift := uint(0); ; shift += 7 {
  17781. if shift >= 64 {
  17782. return ErrIntOverflowApi
  17783. }
  17784. if iNdEx >= l {
  17785. return io.ErrUnexpectedEOF
  17786. }
  17787. b := dAtA[iNdEx]
  17788. iNdEx++
  17789. stringLen |= (uint64(b) & 0x7F) << shift
  17790. if b < 0x80 {
  17791. break
  17792. }
  17793. }
  17794. intStringLen := int(stringLen)
  17795. if intStringLen < 0 {
  17796. return ErrInvalidLengthApi
  17797. }
  17798. postIndex := iNdEx + intStringLen
  17799. if postIndex > l {
  17800. return io.ErrUnexpectedEOF
  17801. }
  17802. m.CaptchaToken = string(dAtA[iNdEx:postIndex])
  17803. iNdEx = postIndex
  17804. case 7:
  17805. if wireType != 2 {
  17806. return fmt.Errorf("proto: wrong wireType = %d for field CaptchaPhrase", wireType)
  17807. }
  17808. var stringLen uint64
  17809. for shift := uint(0); ; shift += 7 {
  17810. if shift >= 64 {
  17811. return ErrIntOverflowApi
  17812. }
  17813. if iNdEx >= l {
  17814. return io.ErrUnexpectedEOF
  17815. }
  17816. b := dAtA[iNdEx]
  17817. iNdEx++
  17818. stringLen |= (uint64(b) & 0x7F) << shift
  17819. if b < 0x80 {
  17820. break
  17821. }
  17822. }
  17823. intStringLen := int(stringLen)
  17824. if intStringLen < 0 {
  17825. return ErrInvalidLengthApi
  17826. }
  17827. postIndex := iNdEx + intStringLen
  17828. if postIndex > l {
  17829. return io.ErrUnexpectedEOF
  17830. }
  17831. m.CaptchaPhrase = string(dAtA[iNdEx:postIndex])
  17832. iNdEx = postIndex
  17833. default:
  17834. iNdEx = preIndex
  17835. skippy, err := skipApi(dAtA[iNdEx:])
  17836. if err != nil {
  17837. return err
  17838. }
  17839. if skippy < 0 {
  17840. return ErrInvalidLengthApi
  17841. }
  17842. if (iNdEx + skippy) > l {
  17843. return io.ErrUnexpectedEOF
  17844. }
  17845. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17846. iNdEx += skippy
  17847. }
  17848. }
  17849. if iNdEx > l {
  17850. return io.ErrUnexpectedEOF
  17851. }
  17852. return nil
  17853. }
  17854. func (m *JoinStormResp) Unmarshal(dAtA []byte) error {
  17855. l := len(dAtA)
  17856. iNdEx := 0
  17857. for iNdEx < l {
  17858. preIndex := iNdEx
  17859. var wire uint64
  17860. for shift := uint(0); ; shift += 7 {
  17861. if shift >= 64 {
  17862. return ErrIntOverflowApi
  17863. }
  17864. if iNdEx >= l {
  17865. return io.ErrUnexpectedEOF
  17866. }
  17867. b := dAtA[iNdEx]
  17868. iNdEx++
  17869. wire |= (uint64(b) & 0x7F) << shift
  17870. if b < 0x80 {
  17871. break
  17872. }
  17873. }
  17874. fieldNum := int32(wire >> 3)
  17875. wireType := int(wire & 0x7)
  17876. if wireType == 4 {
  17877. return fmt.Errorf("proto: JoinStormResp: wiretype end group for non-group")
  17878. }
  17879. if fieldNum <= 0 {
  17880. return fmt.Errorf("proto: JoinStormResp: illegal tag %d (wire type %d)", fieldNum, wire)
  17881. }
  17882. switch fieldNum {
  17883. case 1:
  17884. if wireType != 0 {
  17885. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  17886. }
  17887. m.Code = 0
  17888. for shift := uint(0); ; shift += 7 {
  17889. if shift >= 64 {
  17890. return ErrIntOverflowApi
  17891. }
  17892. if iNdEx >= l {
  17893. return io.ErrUnexpectedEOF
  17894. }
  17895. b := dAtA[iNdEx]
  17896. iNdEx++
  17897. m.Code |= (int32(b) & 0x7F) << shift
  17898. if b < 0x80 {
  17899. break
  17900. }
  17901. }
  17902. case 2:
  17903. if wireType != 2 {
  17904. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  17905. }
  17906. var stringLen uint64
  17907. for shift := uint(0); ; shift += 7 {
  17908. if shift >= 64 {
  17909. return ErrIntOverflowApi
  17910. }
  17911. if iNdEx >= l {
  17912. return io.ErrUnexpectedEOF
  17913. }
  17914. b := dAtA[iNdEx]
  17915. iNdEx++
  17916. stringLen |= (uint64(b) & 0x7F) << shift
  17917. if b < 0x80 {
  17918. break
  17919. }
  17920. }
  17921. intStringLen := int(stringLen)
  17922. if intStringLen < 0 {
  17923. return ErrInvalidLengthApi
  17924. }
  17925. postIndex := iNdEx + intStringLen
  17926. if postIndex > l {
  17927. return io.ErrUnexpectedEOF
  17928. }
  17929. m.Msg = string(dAtA[iNdEx:postIndex])
  17930. iNdEx = postIndex
  17931. case 3:
  17932. if wireType != 2 {
  17933. return fmt.Errorf("proto: wrong wireType = %d for field Join", wireType)
  17934. }
  17935. var msglen int
  17936. for shift := uint(0); ; shift += 7 {
  17937. if shift >= 64 {
  17938. return ErrIntOverflowApi
  17939. }
  17940. if iNdEx >= l {
  17941. return io.ErrUnexpectedEOF
  17942. }
  17943. b := dAtA[iNdEx]
  17944. iNdEx++
  17945. msglen |= (int(b) & 0x7F) << shift
  17946. if b < 0x80 {
  17947. break
  17948. }
  17949. }
  17950. if msglen < 0 {
  17951. return ErrInvalidLengthApi
  17952. }
  17953. postIndex := iNdEx + msglen
  17954. if postIndex > l {
  17955. return io.ErrUnexpectedEOF
  17956. }
  17957. if m.Join == nil {
  17958. m.Join = &JoinData{}
  17959. }
  17960. if err := m.Join.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  17961. return err
  17962. }
  17963. iNdEx = postIndex
  17964. default:
  17965. iNdEx = preIndex
  17966. skippy, err := skipApi(dAtA[iNdEx:])
  17967. if err != nil {
  17968. return err
  17969. }
  17970. if skippy < 0 {
  17971. return ErrInvalidLengthApi
  17972. }
  17973. if (iNdEx + skippy) > l {
  17974. return io.ErrUnexpectedEOF
  17975. }
  17976. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  17977. iNdEx += skippy
  17978. }
  17979. }
  17980. if iNdEx > l {
  17981. return io.ErrUnexpectedEOF
  17982. }
  17983. return nil
  17984. }
  17985. func (m *JoinData) Unmarshal(dAtA []byte) error {
  17986. l := len(dAtA)
  17987. iNdEx := 0
  17988. for iNdEx < l {
  17989. preIndex := iNdEx
  17990. var wire uint64
  17991. for shift := uint(0); ; shift += 7 {
  17992. if shift >= 64 {
  17993. return ErrIntOverflowApi
  17994. }
  17995. if iNdEx >= l {
  17996. return io.ErrUnexpectedEOF
  17997. }
  17998. b := dAtA[iNdEx]
  17999. iNdEx++
  18000. wire |= (uint64(b) & 0x7F) << shift
  18001. if b < 0x80 {
  18002. break
  18003. }
  18004. }
  18005. fieldNum := int32(wire >> 3)
  18006. wireType := int(wire & 0x7)
  18007. if wireType == 4 {
  18008. return fmt.Errorf("proto: JoinData: wiretype end group for non-group")
  18009. }
  18010. if fieldNum <= 0 {
  18011. return fmt.Errorf("proto: JoinData: illegal tag %d (wire type %d)", fieldNum, wire)
  18012. }
  18013. switch fieldNum {
  18014. case 1:
  18015. if wireType != 0 {
  18016. return fmt.Errorf("proto: wrong wireType = %d for field GiftId", wireType)
  18017. }
  18018. m.GiftId = 0
  18019. for shift := uint(0); ; shift += 7 {
  18020. if shift >= 64 {
  18021. return ErrIntOverflowApi
  18022. }
  18023. if iNdEx >= l {
  18024. return io.ErrUnexpectedEOF
  18025. }
  18026. b := dAtA[iNdEx]
  18027. iNdEx++
  18028. m.GiftId |= (int64(b) & 0x7F) << shift
  18029. if b < 0x80 {
  18030. break
  18031. }
  18032. }
  18033. case 2:
  18034. if wireType != 2 {
  18035. return fmt.Errorf("proto: wrong wireType = %d for field Title", wireType)
  18036. }
  18037. var stringLen uint64
  18038. for shift := uint(0); ; shift += 7 {
  18039. if shift >= 64 {
  18040. return ErrIntOverflowApi
  18041. }
  18042. if iNdEx >= l {
  18043. return io.ErrUnexpectedEOF
  18044. }
  18045. b := dAtA[iNdEx]
  18046. iNdEx++
  18047. stringLen |= (uint64(b) & 0x7F) << shift
  18048. if b < 0x80 {
  18049. break
  18050. }
  18051. }
  18052. intStringLen := int(stringLen)
  18053. if intStringLen < 0 {
  18054. return ErrInvalidLengthApi
  18055. }
  18056. postIndex := iNdEx + intStringLen
  18057. if postIndex > l {
  18058. return io.ErrUnexpectedEOF
  18059. }
  18060. m.Title = string(dAtA[iNdEx:postIndex])
  18061. iNdEx = postIndex
  18062. case 3:
  18063. if wireType != 2 {
  18064. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  18065. }
  18066. var stringLen uint64
  18067. for shift := uint(0); ; shift += 7 {
  18068. if shift >= 64 {
  18069. return ErrIntOverflowApi
  18070. }
  18071. if iNdEx >= l {
  18072. return io.ErrUnexpectedEOF
  18073. }
  18074. b := dAtA[iNdEx]
  18075. iNdEx++
  18076. stringLen |= (uint64(b) & 0x7F) << shift
  18077. if b < 0x80 {
  18078. break
  18079. }
  18080. }
  18081. intStringLen := int(stringLen)
  18082. if intStringLen < 0 {
  18083. return ErrInvalidLengthApi
  18084. }
  18085. postIndex := iNdEx + intStringLen
  18086. if postIndex > l {
  18087. return io.ErrUnexpectedEOF
  18088. }
  18089. m.Content = string(dAtA[iNdEx:postIndex])
  18090. iNdEx = postIndex
  18091. case 4:
  18092. if wireType != 2 {
  18093. return fmt.Errorf("proto: wrong wireType = %d for field MobileContent", wireType)
  18094. }
  18095. var stringLen uint64
  18096. for shift := uint(0); ; shift += 7 {
  18097. if shift >= 64 {
  18098. return ErrIntOverflowApi
  18099. }
  18100. if iNdEx >= l {
  18101. return io.ErrUnexpectedEOF
  18102. }
  18103. b := dAtA[iNdEx]
  18104. iNdEx++
  18105. stringLen |= (uint64(b) & 0x7F) << shift
  18106. if b < 0x80 {
  18107. break
  18108. }
  18109. }
  18110. intStringLen := int(stringLen)
  18111. if intStringLen < 0 {
  18112. return ErrInvalidLengthApi
  18113. }
  18114. postIndex := iNdEx + intStringLen
  18115. if postIndex > l {
  18116. return io.ErrUnexpectedEOF
  18117. }
  18118. m.MobileContent = string(dAtA[iNdEx:postIndex])
  18119. iNdEx = postIndex
  18120. case 5:
  18121. if wireType != 2 {
  18122. return fmt.Errorf("proto: wrong wireType = %d for field GiftImg", wireType)
  18123. }
  18124. var stringLen uint64
  18125. for shift := uint(0); ; shift += 7 {
  18126. if shift >= 64 {
  18127. return ErrIntOverflowApi
  18128. }
  18129. if iNdEx >= l {
  18130. return io.ErrUnexpectedEOF
  18131. }
  18132. b := dAtA[iNdEx]
  18133. iNdEx++
  18134. stringLen |= (uint64(b) & 0x7F) << shift
  18135. if b < 0x80 {
  18136. break
  18137. }
  18138. }
  18139. intStringLen := int(stringLen)
  18140. if intStringLen < 0 {
  18141. return ErrInvalidLengthApi
  18142. }
  18143. postIndex := iNdEx + intStringLen
  18144. if postIndex > l {
  18145. return io.ErrUnexpectedEOF
  18146. }
  18147. m.GiftImg = string(dAtA[iNdEx:postIndex])
  18148. iNdEx = postIndex
  18149. case 6:
  18150. if wireType != 0 {
  18151. return fmt.Errorf("proto: wrong wireType = %d for field GiftNum", wireType)
  18152. }
  18153. m.GiftNum = 0
  18154. for shift := uint(0); ; shift += 7 {
  18155. if shift >= 64 {
  18156. return ErrIntOverflowApi
  18157. }
  18158. if iNdEx >= l {
  18159. return io.ErrUnexpectedEOF
  18160. }
  18161. b := dAtA[iNdEx]
  18162. iNdEx++
  18163. m.GiftNum |= (int64(b) & 0x7F) << shift
  18164. if b < 0x80 {
  18165. break
  18166. }
  18167. }
  18168. case 7:
  18169. if wireType != 2 {
  18170. return fmt.Errorf("proto: wrong wireType = %d for field GiftName", wireType)
  18171. }
  18172. var stringLen uint64
  18173. for shift := uint(0); ; shift += 7 {
  18174. if shift >= 64 {
  18175. return ErrIntOverflowApi
  18176. }
  18177. if iNdEx >= l {
  18178. return io.ErrUnexpectedEOF
  18179. }
  18180. b := dAtA[iNdEx]
  18181. iNdEx++
  18182. stringLen |= (uint64(b) & 0x7F) << shift
  18183. if b < 0x80 {
  18184. break
  18185. }
  18186. }
  18187. intStringLen := int(stringLen)
  18188. if intStringLen < 0 {
  18189. return ErrInvalidLengthApi
  18190. }
  18191. postIndex := iNdEx + intStringLen
  18192. if postIndex > l {
  18193. return io.ErrUnexpectedEOF
  18194. }
  18195. m.GiftName = string(dAtA[iNdEx:postIndex])
  18196. iNdEx = postIndex
  18197. default:
  18198. iNdEx = preIndex
  18199. skippy, err := skipApi(dAtA[iNdEx:])
  18200. if err != nil {
  18201. return err
  18202. }
  18203. if skippy < 0 {
  18204. return ErrInvalidLengthApi
  18205. }
  18206. if (iNdEx + skippy) > l {
  18207. return io.ErrUnexpectedEOF
  18208. }
  18209. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18210. iNdEx += skippy
  18211. }
  18212. }
  18213. if iNdEx > l {
  18214. return io.ErrUnexpectedEOF
  18215. }
  18216. return nil
  18217. }
  18218. func (m *CheckStormReq) Unmarshal(dAtA []byte) error {
  18219. l := len(dAtA)
  18220. iNdEx := 0
  18221. for iNdEx < l {
  18222. preIndex := iNdEx
  18223. var wire uint64
  18224. for shift := uint(0); ; shift += 7 {
  18225. if shift >= 64 {
  18226. return ErrIntOverflowApi
  18227. }
  18228. if iNdEx >= l {
  18229. return io.ErrUnexpectedEOF
  18230. }
  18231. b := dAtA[iNdEx]
  18232. iNdEx++
  18233. wire |= (uint64(b) & 0x7F) << shift
  18234. if b < 0x80 {
  18235. break
  18236. }
  18237. }
  18238. fieldNum := int32(wire >> 3)
  18239. wireType := int(wire & 0x7)
  18240. if wireType == 4 {
  18241. return fmt.Errorf("proto: CheckStormReq: wiretype end group for non-group")
  18242. }
  18243. if fieldNum <= 0 {
  18244. return fmt.Errorf("proto: CheckStormReq: illegal tag %d (wire type %d)", fieldNum, wire)
  18245. }
  18246. switch fieldNum {
  18247. case 1:
  18248. if wireType != 0 {
  18249. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  18250. }
  18251. m.Roomid = 0
  18252. for shift := uint(0); ; shift += 7 {
  18253. if shift >= 64 {
  18254. return ErrIntOverflowApi
  18255. }
  18256. if iNdEx >= l {
  18257. return io.ErrUnexpectedEOF
  18258. }
  18259. b := dAtA[iNdEx]
  18260. iNdEx++
  18261. m.Roomid |= (int64(b) & 0x7F) << shift
  18262. if b < 0x80 {
  18263. break
  18264. }
  18265. }
  18266. case 2:
  18267. if wireType != 0 {
  18268. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  18269. }
  18270. m.Uid = 0
  18271. for shift := uint(0); ; shift += 7 {
  18272. if shift >= 64 {
  18273. return ErrIntOverflowApi
  18274. }
  18275. if iNdEx >= l {
  18276. return io.ErrUnexpectedEOF
  18277. }
  18278. b := dAtA[iNdEx]
  18279. iNdEx++
  18280. m.Uid |= (int64(b) & 0x7F) << shift
  18281. if b < 0x80 {
  18282. break
  18283. }
  18284. }
  18285. default:
  18286. iNdEx = preIndex
  18287. skippy, err := skipApi(dAtA[iNdEx:])
  18288. if err != nil {
  18289. return err
  18290. }
  18291. if skippy < 0 {
  18292. return ErrInvalidLengthApi
  18293. }
  18294. if (iNdEx + skippy) > l {
  18295. return io.ErrUnexpectedEOF
  18296. }
  18297. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18298. iNdEx += skippy
  18299. }
  18300. }
  18301. if iNdEx > l {
  18302. return io.ErrUnexpectedEOF
  18303. }
  18304. return nil
  18305. }
  18306. func (m *CheckStormResp) Unmarshal(dAtA []byte) error {
  18307. l := len(dAtA)
  18308. iNdEx := 0
  18309. for iNdEx < l {
  18310. preIndex := iNdEx
  18311. var wire uint64
  18312. for shift := uint(0); ; shift += 7 {
  18313. if shift >= 64 {
  18314. return ErrIntOverflowApi
  18315. }
  18316. if iNdEx >= l {
  18317. return io.ErrUnexpectedEOF
  18318. }
  18319. b := dAtA[iNdEx]
  18320. iNdEx++
  18321. wire |= (uint64(b) & 0x7F) << shift
  18322. if b < 0x80 {
  18323. break
  18324. }
  18325. }
  18326. fieldNum := int32(wire >> 3)
  18327. wireType := int(wire & 0x7)
  18328. if wireType == 4 {
  18329. return fmt.Errorf("proto: CheckStormResp: wiretype end group for non-group")
  18330. }
  18331. if fieldNum <= 0 {
  18332. return fmt.Errorf("proto: CheckStormResp: illegal tag %d (wire type %d)", fieldNum, wire)
  18333. }
  18334. switch fieldNum {
  18335. case 1:
  18336. if wireType != 0 {
  18337. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  18338. }
  18339. m.Code = 0
  18340. for shift := uint(0); ; shift += 7 {
  18341. if shift >= 64 {
  18342. return ErrIntOverflowApi
  18343. }
  18344. if iNdEx >= l {
  18345. return io.ErrUnexpectedEOF
  18346. }
  18347. b := dAtA[iNdEx]
  18348. iNdEx++
  18349. m.Code |= (int32(b) & 0x7F) << shift
  18350. if b < 0x80 {
  18351. break
  18352. }
  18353. }
  18354. case 2:
  18355. if wireType != 2 {
  18356. return fmt.Errorf("proto: wrong wireType = %d for field Msg", wireType)
  18357. }
  18358. var stringLen uint64
  18359. for shift := uint(0); ; shift += 7 {
  18360. if shift >= 64 {
  18361. return ErrIntOverflowApi
  18362. }
  18363. if iNdEx >= l {
  18364. return io.ErrUnexpectedEOF
  18365. }
  18366. b := dAtA[iNdEx]
  18367. iNdEx++
  18368. stringLen |= (uint64(b) & 0x7F) << shift
  18369. if b < 0x80 {
  18370. break
  18371. }
  18372. }
  18373. intStringLen := int(stringLen)
  18374. if intStringLen < 0 {
  18375. return ErrInvalidLengthApi
  18376. }
  18377. postIndex := iNdEx + intStringLen
  18378. if postIndex > l {
  18379. return io.ErrUnexpectedEOF
  18380. }
  18381. m.Msg = string(dAtA[iNdEx:postIndex])
  18382. iNdEx = postIndex
  18383. case 3:
  18384. if wireType != 2 {
  18385. return fmt.Errorf("proto: wrong wireType = %d for field Check", wireType)
  18386. }
  18387. var msglen int
  18388. for shift := uint(0); ; shift += 7 {
  18389. if shift >= 64 {
  18390. return ErrIntOverflowApi
  18391. }
  18392. if iNdEx >= l {
  18393. return io.ErrUnexpectedEOF
  18394. }
  18395. b := dAtA[iNdEx]
  18396. iNdEx++
  18397. msglen |= (int(b) & 0x7F) << shift
  18398. if b < 0x80 {
  18399. break
  18400. }
  18401. }
  18402. if msglen < 0 {
  18403. return ErrInvalidLengthApi
  18404. }
  18405. postIndex := iNdEx + msglen
  18406. if postIndex > l {
  18407. return io.ErrUnexpectedEOF
  18408. }
  18409. if m.Check == nil {
  18410. m.Check = &CheckData{}
  18411. }
  18412. if err := m.Check.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18413. return err
  18414. }
  18415. iNdEx = postIndex
  18416. default:
  18417. iNdEx = preIndex
  18418. skippy, err := skipApi(dAtA[iNdEx:])
  18419. if err != nil {
  18420. return err
  18421. }
  18422. if skippy < 0 {
  18423. return ErrInvalidLengthApi
  18424. }
  18425. if (iNdEx + skippy) > l {
  18426. return io.ErrUnexpectedEOF
  18427. }
  18428. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18429. iNdEx += skippy
  18430. }
  18431. }
  18432. if iNdEx > l {
  18433. return io.ErrUnexpectedEOF
  18434. }
  18435. return nil
  18436. }
  18437. func (m *CheckData) Unmarshal(dAtA []byte) error {
  18438. l := len(dAtA)
  18439. iNdEx := 0
  18440. for iNdEx < l {
  18441. preIndex := iNdEx
  18442. var wire uint64
  18443. for shift := uint(0); ; shift += 7 {
  18444. if shift >= 64 {
  18445. return ErrIntOverflowApi
  18446. }
  18447. if iNdEx >= l {
  18448. return io.ErrUnexpectedEOF
  18449. }
  18450. b := dAtA[iNdEx]
  18451. iNdEx++
  18452. wire |= (uint64(b) & 0x7F) << shift
  18453. if b < 0x80 {
  18454. break
  18455. }
  18456. }
  18457. fieldNum := int32(wire >> 3)
  18458. wireType := int(wire & 0x7)
  18459. if wireType == 4 {
  18460. return fmt.Errorf("proto: CheckData: wiretype end group for non-group")
  18461. }
  18462. if fieldNum <= 0 {
  18463. return fmt.Errorf("proto: CheckData: illegal tag %d (wire type %d)", fieldNum, wire)
  18464. }
  18465. switch fieldNum {
  18466. case 1:
  18467. if wireType != 0 {
  18468. return fmt.Errorf("proto: wrong wireType = %d for field Id", wireType)
  18469. }
  18470. m.Id = 0
  18471. for shift := uint(0); ; shift += 7 {
  18472. if shift >= 64 {
  18473. return ErrIntOverflowApi
  18474. }
  18475. if iNdEx >= l {
  18476. return io.ErrUnexpectedEOF
  18477. }
  18478. b := dAtA[iNdEx]
  18479. iNdEx++
  18480. m.Id |= (int64(b) & 0x7F) << shift
  18481. if b < 0x80 {
  18482. break
  18483. }
  18484. }
  18485. case 2:
  18486. if wireType != 0 {
  18487. return fmt.Errorf("proto: wrong wireType = %d for field Roomid", wireType)
  18488. }
  18489. m.Roomid = 0
  18490. for shift := uint(0); ; shift += 7 {
  18491. if shift >= 64 {
  18492. return ErrIntOverflowApi
  18493. }
  18494. if iNdEx >= l {
  18495. return io.ErrUnexpectedEOF
  18496. }
  18497. b := dAtA[iNdEx]
  18498. iNdEx++
  18499. m.Roomid |= (int64(b) & 0x7F) << shift
  18500. if b < 0x80 {
  18501. break
  18502. }
  18503. }
  18504. case 3:
  18505. if wireType != 0 {
  18506. return fmt.Errorf("proto: wrong wireType = %d for field Num", wireType)
  18507. }
  18508. m.Num = 0
  18509. for shift := uint(0); ; shift += 7 {
  18510. if shift >= 64 {
  18511. return ErrIntOverflowApi
  18512. }
  18513. if iNdEx >= l {
  18514. return io.ErrUnexpectedEOF
  18515. }
  18516. b := dAtA[iNdEx]
  18517. iNdEx++
  18518. m.Num |= (int64(b) & 0x7F) << shift
  18519. if b < 0x80 {
  18520. break
  18521. }
  18522. }
  18523. case 4:
  18524. if wireType != 2 {
  18525. return fmt.Errorf("proto: wrong wireType = %d for field SendNum", wireType)
  18526. }
  18527. var stringLen uint64
  18528. for shift := uint(0); ; shift += 7 {
  18529. if shift >= 64 {
  18530. return ErrIntOverflowApi
  18531. }
  18532. if iNdEx >= l {
  18533. return io.ErrUnexpectedEOF
  18534. }
  18535. b := dAtA[iNdEx]
  18536. iNdEx++
  18537. stringLen |= (uint64(b) & 0x7F) << shift
  18538. if b < 0x80 {
  18539. break
  18540. }
  18541. }
  18542. intStringLen := int(stringLen)
  18543. if intStringLen < 0 {
  18544. return ErrInvalidLengthApi
  18545. }
  18546. postIndex := iNdEx + intStringLen
  18547. if postIndex > l {
  18548. return io.ErrUnexpectedEOF
  18549. }
  18550. m.SendNum = string(dAtA[iNdEx:postIndex])
  18551. iNdEx = postIndex
  18552. case 5:
  18553. if wireType != 0 {
  18554. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  18555. }
  18556. m.Time = 0
  18557. for shift := uint(0); ; shift += 7 {
  18558. if shift >= 64 {
  18559. return ErrIntOverflowApi
  18560. }
  18561. if iNdEx >= l {
  18562. return io.ErrUnexpectedEOF
  18563. }
  18564. b := dAtA[iNdEx]
  18565. iNdEx++
  18566. m.Time |= (int64(b) & 0x7F) << shift
  18567. if b < 0x80 {
  18568. break
  18569. }
  18570. }
  18571. case 6:
  18572. if wireType != 2 {
  18573. return fmt.Errorf("proto: wrong wireType = %d for field Content", wireType)
  18574. }
  18575. var stringLen uint64
  18576. for shift := uint(0); ; shift += 7 {
  18577. if shift >= 64 {
  18578. return ErrIntOverflowApi
  18579. }
  18580. if iNdEx >= l {
  18581. return io.ErrUnexpectedEOF
  18582. }
  18583. b := dAtA[iNdEx]
  18584. iNdEx++
  18585. stringLen |= (uint64(b) & 0x7F) << shift
  18586. if b < 0x80 {
  18587. break
  18588. }
  18589. }
  18590. intStringLen := int(stringLen)
  18591. if intStringLen < 0 {
  18592. return ErrInvalidLengthApi
  18593. }
  18594. postIndex := iNdEx + intStringLen
  18595. if postIndex > l {
  18596. return io.ErrUnexpectedEOF
  18597. }
  18598. m.Content = string(dAtA[iNdEx:postIndex])
  18599. iNdEx = postIndex
  18600. case 7:
  18601. if wireType != 0 {
  18602. return fmt.Errorf("proto: wrong wireType = %d for field HasJoin", wireType)
  18603. }
  18604. m.HasJoin = 0
  18605. for shift := uint(0); ; shift += 7 {
  18606. if shift >= 64 {
  18607. return ErrIntOverflowApi
  18608. }
  18609. if iNdEx >= l {
  18610. return io.ErrUnexpectedEOF
  18611. }
  18612. b := dAtA[iNdEx]
  18613. iNdEx++
  18614. m.HasJoin |= (int32(b) & 0x7F) << shift
  18615. if b < 0x80 {
  18616. break
  18617. }
  18618. }
  18619. case 8:
  18620. if wireType != 2 {
  18621. return fmt.Errorf("proto: wrong wireType = %d for field StormGif", wireType)
  18622. }
  18623. var stringLen uint64
  18624. for shift := uint(0); ; shift += 7 {
  18625. if shift >= 64 {
  18626. return ErrIntOverflowApi
  18627. }
  18628. if iNdEx >= l {
  18629. return io.ErrUnexpectedEOF
  18630. }
  18631. b := dAtA[iNdEx]
  18632. iNdEx++
  18633. stringLen |= (uint64(b) & 0x7F) << shift
  18634. if b < 0x80 {
  18635. break
  18636. }
  18637. }
  18638. intStringLen := int(stringLen)
  18639. if intStringLen < 0 {
  18640. return ErrInvalidLengthApi
  18641. }
  18642. postIndex := iNdEx + intStringLen
  18643. if postIndex > l {
  18644. return io.ErrUnexpectedEOF
  18645. }
  18646. m.StormGif = string(dAtA[iNdEx:postIndex])
  18647. iNdEx = postIndex
  18648. default:
  18649. iNdEx = preIndex
  18650. skippy, err := skipApi(dAtA[iNdEx:])
  18651. if err != nil {
  18652. return err
  18653. }
  18654. if skippy < 0 {
  18655. return ErrInvalidLengthApi
  18656. }
  18657. if (iNdEx + skippy) > l {
  18658. return io.ErrUnexpectedEOF
  18659. }
  18660. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18661. iNdEx += skippy
  18662. }
  18663. }
  18664. if iNdEx > l {
  18665. return io.ErrUnexpectedEOF
  18666. }
  18667. return nil
  18668. }
  18669. func (m *CapsuleGetCouponListReq) Unmarshal(dAtA []byte) error {
  18670. l := len(dAtA)
  18671. iNdEx := 0
  18672. for iNdEx < l {
  18673. preIndex := iNdEx
  18674. var wire uint64
  18675. for shift := uint(0); ; shift += 7 {
  18676. if shift >= 64 {
  18677. return ErrIntOverflowApi
  18678. }
  18679. if iNdEx >= l {
  18680. return io.ErrUnexpectedEOF
  18681. }
  18682. b := dAtA[iNdEx]
  18683. iNdEx++
  18684. wire |= (uint64(b) & 0x7F) << shift
  18685. if b < 0x80 {
  18686. break
  18687. }
  18688. }
  18689. fieldNum := int32(wire >> 3)
  18690. wireType := int(wire & 0x7)
  18691. if wireType == 4 {
  18692. return fmt.Errorf("proto: CapsuleGetCouponListReq: wiretype end group for non-group")
  18693. }
  18694. if fieldNum <= 0 {
  18695. return fmt.Errorf("proto: CapsuleGetCouponListReq: illegal tag %d (wire type %d)", fieldNum, wire)
  18696. }
  18697. switch fieldNum {
  18698. case 1:
  18699. if wireType != 0 {
  18700. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  18701. }
  18702. m.Uid = 0
  18703. for shift := uint(0); ; shift += 7 {
  18704. if shift >= 64 {
  18705. return ErrIntOverflowApi
  18706. }
  18707. if iNdEx >= l {
  18708. return io.ErrUnexpectedEOF
  18709. }
  18710. b := dAtA[iNdEx]
  18711. iNdEx++
  18712. m.Uid |= (int64(b) & 0x7F) << shift
  18713. if b < 0x80 {
  18714. break
  18715. }
  18716. }
  18717. default:
  18718. iNdEx = preIndex
  18719. skippy, err := skipApi(dAtA[iNdEx:])
  18720. if err != nil {
  18721. return err
  18722. }
  18723. if skippy < 0 {
  18724. return ErrInvalidLengthApi
  18725. }
  18726. if (iNdEx + skippy) > l {
  18727. return io.ErrUnexpectedEOF
  18728. }
  18729. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18730. iNdEx += skippy
  18731. }
  18732. }
  18733. if iNdEx > l {
  18734. return io.ErrUnexpectedEOF
  18735. }
  18736. return nil
  18737. }
  18738. func (m *CapsuleGetCouponListResp) Unmarshal(dAtA []byte) error {
  18739. l := len(dAtA)
  18740. iNdEx := 0
  18741. for iNdEx < l {
  18742. preIndex := iNdEx
  18743. var wire uint64
  18744. for shift := uint(0); ; shift += 7 {
  18745. if shift >= 64 {
  18746. return ErrIntOverflowApi
  18747. }
  18748. if iNdEx >= l {
  18749. return io.ErrUnexpectedEOF
  18750. }
  18751. b := dAtA[iNdEx]
  18752. iNdEx++
  18753. wire |= (uint64(b) & 0x7F) << shift
  18754. if b < 0x80 {
  18755. break
  18756. }
  18757. }
  18758. fieldNum := int32(wire >> 3)
  18759. wireType := int(wire & 0x7)
  18760. if wireType == 4 {
  18761. return fmt.Errorf("proto: CapsuleGetCouponListResp: wiretype end group for non-group")
  18762. }
  18763. if fieldNum <= 0 {
  18764. return fmt.Errorf("proto: CapsuleGetCouponListResp: illegal tag %d (wire type %d)", fieldNum, wire)
  18765. }
  18766. switch fieldNum {
  18767. case 1:
  18768. if wireType != 2 {
  18769. return fmt.Errorf("proto: wrong wireType = %d for field List", wireType)
  18770. }
  18771. var msglen int
  18772. for shift := uint(0); ; shift += 7 {
  18773. if shift >= 64 {
  18774. return ErrIntOverflowApi
  18775. }
  18776. if iNdEx >= l {
  18777. return io.ErrUnexpectedEOF
  18778. }
  18779. b := dAtA[iNdEx]
  18780. iNdEx++
  18781. msglen |= (int(b) & 0x7F) << shift
  18782. if b < 0x80 {
  18783. break
  18784. }
  18785. }
  18786. if msglen < 0 {
  18787. return ErrInvalidLengthApi
  18788. }
  18789. postIndex := iNdEx + msglen
  18790. if postIndex > l {
  18791. return io.ErrUnexpectedEOF
  18792. }
  18793. m.List = append(m.List, &CapsuleGetCouponListResp_List{})
  18794. if err := m.List[len(m.List)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  18795. return err
  18796. }
  18797. iNdEx = postIndex
  18798. default:
  18799. iNdEx = preIndex
  18800. skippy, err := skipApi(dAtA[iNdEx:])
  18801. if err != nil {
  18802. return err
  18803. }
  18804. if skippy < 0 {
  18805. return ErrInvalidLengthApi
  18806. }
  18807. if (iNdEx + skippy) > l {
  18808. return io.ErrUnexpectedEOF
  18809. }
  18810. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  18811. iNdEx += skippy
  18812. }
  18813. }
  18814. if iNdEx > l {
  18815. return io.ErrUnexpectedEOF
  18816. }
  18817. return nil
  18818. }
  18819. func (m *CapsuleGetCouponListResp_List) Unmarshal(dAtA []byte) error {
  18820. l := len(dAtA)
  18821. iNdEx := 0
  18822. for iNdEx < l {
  18823. preIndex := iNdEx
  18824. var wire uint64
  18825. for shift := uint(0); ; shift += 7 {
  18826. if shift >= 64 {
  18827. return ErrIntOverflowApi
  18828. }
  18829. if iNdEx >= l {
  18830. return io.ErrUnexpectedEOF
  18831. }
  18832. b := dAtA[iNdEx]
  18833. iNdEx++
  18834. wire |= (uint64(b) & 0x7F) << shift
  18835. if b < 0x80 {
  18836. break
  18837. }
  18838. }
  18839. fieldNum := int32(wire >> 3)
  18840. wireType := int(wire & 0x7)
  18841. if wireType == 4 {
  18842. return fmt.Errorf("proto: List: wiretype end group for non-group")
  18843. }
  18844. if fieldNum <= 0 {
  18845. return fmt.Errorf("proto: List: illegal tag %d (wire type %d)", fieldNum, wire)
  18846. }
  18847. switch fieldNum {
  18848. case 1:
  18849. if wireType != 0 {
  18850. return fmt.Errorf("proto: wrong wireType = %d for field Uid", wireType)
  18851. }
  18852. m.Uid = 0
  18853. for shift := uint(0); ; shift += 7 {
  18854. if shift >= 64 {
  18855. return ErrIntOverflowApi
  18856. }
  18857. if iNdEx >= l {
  18858. return io.ErrUnexpectedEOF
  18859. }
  18860. b := dAtA[iNdEx]
  18861. iNdEx++
  18862. m.Uid |= (int64(b) & 0x7F) << shift
  18863. if b < 0x80 {
  18864. break
  18865. }
  18866. }
  18867. case 2:
  18868. if wireType != 2 {
  18869. return fmt.Errorf("proto: wrong wireType = %d for field AwardTime", wireType)
  18870. }
  18871. var stringLen uint64
  18872. for shift := uint(0); ; shift += 7 {
  18873. if shift >= 64 {
  18874. return ErrIntOverflowApi
  18875. }
  18876. if iNdEx >= l {
  18877. return io.ErrUnexpectedEOF
  18878. }
  18879. b := dAtA[iNdEx]
  18880. iNdEx++
  18881. stringLen |= (uint64(b) & 0x7F) << shift
  18882. if b < 0x80 {
  18883. break
  18884. }
  18885. }
  18886. intStringLen := int(stringLen)
  18887. if intStringLen < 0 {
  18888. return ErrInvalidLengthApi
  18889. }
  18890. postIndex := iNdEx + intStringLen
  18891. if postIndex > l {
  18892. return io.ErrUnexpectedEOF
  18893. }
  18894. m.AwardTime = string(dAtA[iNdEx:postIndex])
  18895. iNdEx = postIndex
  18896. case 3:
  18897. if wireType != 2 {
  18898. return fmt.Errorf("proto: wrong wireType = %d for field AwardName", wireType)
  18899. }
  18900. var stringLen uint64
  18901. for shift := uint(0); ; shift += 7 {
  18902. if shift >= 64 {
  18903. return ErrIntOverflowApi
  18904. }
  18905. if iNdEx >= l {
  18906. return io.ErrUnexpectedEOF
  18907. }
  18908. b := dAtA[iNdEx]
  18909. iNdEx++
  18910. stringLen |= (uint64(b) & 0x7F) << shift
  18911. if b < 0x80 {
  18912. break
  18913. }
  18914. }
  18915. intStringLen := int(stringLen)
  18916. if intStringLen < 0 {
  18917. return ErrInvalidLengthApi
  18918. }
  18919. postIndex := iNdEx + intStringLen
  18920. if postIndex > l {
  18921. return io.ErrUnexpectedEOF
  18922. }
  18923. m.AwardName = string(dAtA[iNdEx:postIndex])
  18924. iNdEx = postIndex
  18925. case 4:
  18926. if wireType != 2 {
  18927. return fmt.Errorf("proto: wrong wireType = %d for field AwardCode", wireType)
  18928. }
  18929. var stringLen uint64
  18930. for shift := uint(0); ; shift += 7 {
  18931. if shift >= 64 {
  18932. return ErrIntOverflowApi
  18933. }
  18934. if iNdEx >= l {
  18935. return io.ErrUnexpectedEOF
  18936. }
  18937. b := dAtA[iNdEx]
  18938. iNdEx++
  18939. stringLen |= (uint64(b) & 0x7F) << shift
  18940. if b < 0x80 {
  18941. break
  18942. }
  18943. }
  18944. intStringLen := int(stringLen)
  18945. if intStringLen < 0 {
  18946. return ErrInvalidLengthApi
  18947. }
  18948. postIndex := iNdEx + intStringLen
  18949. if postIndex > l {
  18950. return io.ErrUnexpectedEOF
  18951. }
  18952. m.AwardCode = string(dAtA[iNdEx:postIndex])
  18953. iNdEx = postIndex
  18954. case 5:
  18955. if wireType != 0 {
  18956. return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  18957. }
  18958. m.Status = 0
  18959. for shift := uint(0); ; shift += 7 {
  18960. if shift >= 64 {
  18961. return ErrIntOverflowApi
  18962. }
  18963. if iNdEx >= l {
  18964. return io.ErrUnexpectedEOF
  18965. }
  18966. b := dAtA[iNdEx]
  18967. iNdEx++
  18968. m.Status |= (int64(b) & 0x7F) << shift
  18969. if b < 0x80 {
  18970. break
  18971. }
  18972. }
  18973. case 6:
  18974. if wireType != 2 {
  18975. return fmt.Errorf("proto: wrong wireType = %d for field RetryTime", wireType)
  18976. }
  18977. var stringLen uint64
  18978. for shift := uint(0); ; shift += 7 {
  18979. if shift >= 64 {
  18980. return ErrIntOverflowApi
  18981. }
  18982. if iNdEx >= l {
  18983. return io.ErrUnexpectedEOF
  18984. }
  18985. b := dAtA[iNdEx]
  18986. iNdEx++
  18987. stringLen |= (uint64(b) & 0x7F) << shift
  18988. if b < 0x80 {
  18989. break
  18990. }
  18991. }
  18992. intStringLen := int(stringLen)
  18993. if intStringLen < 0 {
  18994. return ErrInvalidLengthApi
  18995. }
  18996. postIndex := iNdEx + intStringLen
  18997. if postIndex > l {
  18998. return io.ErrUnexpectedEOF
  18999. }
  19000. m.RetryTime = string(dAtA[iNdEx:postIndex])
  19001. iNdEx = postIndex
  19002. default:
  19003. iNdEx = preIndex
  19004. skippy, err := skipApi(dAtA[iNdEx:])
  19005. if err != nil {
  19006. return err
  19007. }
  19008. if skippy < 0 {
  19009. return ErrInvalidLengthApi
  19010. }
  19011. if (iNdEx + skippy) > l {
  19012. return io.ErrUnexpectedEOF
  19013. }
  19014. m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
  19015. iNdEx += skippy
  19016. }
  19017. }
  19018. if iNdEx > l {
  19019. return io.ErrUnexpectedEOF
  19020. }
  19021. return nil
  19022. }
  19023. func skipApi(dAtA []byte) (n int, err error) {
  19024. l := len(dAtA)
  19025. iNdEx := 0
  19026. for iNdEx < l {
  19027. var wire uint64
  19028. for shift := uint(0); ; shift += 7 {
  19029. if shift >= 64 {
  19030. return 0, ErrIntOverflowApi
  19031. }
  19032. if iNdEx >= l {
  19033. return 0, io.ErrUnexpectedEOF
  19034. }
  19035. b := dAtA[iNdEx]
  19036. iNdEx++
  19037. wire |= (uint64(b) & 0x7F) << shift
  19038. if b < 0x80 {
  19039. break
  19040. }
  19041. }
  19042. wireType := int(wire & 0x7)
  19043. switch wireType {
  19044. case 0:
  19045. for shift := uint(0); ; shift += 7 {
  19046. if shift >= 64 {
  19047. return 0, ErrIntOverflowApi
  19048. }
  19049. if iNdEx >= l {
  19050. return 0, io.ErrUnexpectedEOF
  19051. }
  19052. iNdEx++
  19053. if dAtA[iNdEx-1] < 0x80 {
  19054. break
  19055. }
  19056. }
  19057. return iNdEx, nil
  19058. case 1:
  19059. iNdEx += 8
  19060. return iNdEx, nil
  19061. case 2:
  19062. var length int
  19063. for shift := uint(0); ; shift += 7 {
  19064. if shift >= 64 {
  19065. return 0, ErrIntOverflowApi
  19066. }
  19067. if iNdEx >= l {
  19068. return 0, io.ErrUnexpectedEOF
  19069. }
  19070. b := dAtA[iNdEx]
  19071. iNdEx++
  19072. length |= (int(b) & 0x7F) << shift
  19073. if b < 0x80 {
  19074. break
  19075. }
  19076. }
  19077. iNdEx += length
  19078. if length < 0 {
  19079. return 0, ErrInvalidLengthApi
  19080. }
  19081. return iNdEx, nil
  19082. case 3:
  19083. for {
  19084. var innerWire uint64
  19085. var start int = iNdEx
  19086. for shift := uint(0); ; shift += 7 {
  19087. if shift >= 64 {
  19088. return 0, ErrIntOverflowApi
  19089. }
  19090. if iNdEx >= l {
  19091. return 0, io.ErrUnexpectedEOF
  19092. }
  19093. b := dAtA[iNdEx]
  19094. iNdEx++
  19095. innerWire |= (uint64(b) & 0x7F) << shift
  19096. if b < 0x80 {
  19097. break
  19098. }
  19099. }
  19100. innerWireType := int(innerWire & 0x7)
  19101. if innerWireType == 4 {
  19102. break
  19103. }
  19104. next, err := skipApi(dAtA[start:])
  19105. if err != nil {
  19106. return 0, err
  19107. }
  19108. iNdEx = start + next
  19109. }
  19110. return iNdEx, nil
  19111. case 4:
  19112. return iNdEx, nil
  19113. case 5:
  19114. iNdEx += 4
  19115. return iNdEx, nil
  19116. default:
  19117. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  19118. }
  19119. }
  19120. panic("unreachable")
  19121. }
  19122. var (
  19123. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  19124. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  19125. )
  19126. func init() {
  19127. proto.RegisterFile("app/service/live/xlottery/api/grpc/v1/api.proto", fileDescriptor_api_9467f450102a207d)
  19128. }
  19129. var fileDescriptor_api_9467f450102a207d = []byte{
  19130. // 3747 bytes of a gzipped FileDescriptorProto
  19131. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x3b, 0x4b, 0x6f, 0x1c, 0xc7,
  19132. 0x99, 0x98, 0xf7, 0x4c, 0xf1, 0x21, 0xaa, 0x25, 0xcb, 0xd4, 0xd8, 0x52, 0x53, 0xad, 0xa7, 0xc5,
  19133. 0x25, 0xb9, 0x7a, 0xd8, 0x5a, 0x6b, 0xe1, 0x95, 0x2d, 0x4a, 0x2b, 0x53, 0xbb, 0xd6, 0x12, 0xa5,
  19134. 0x87, 0x85, 0xf5, 0x7a, 0xc7, 0xcd, 0x99, 0xe6, 0xb0, 0xad, 0x99, 0xe9, 0x66, 0x77, 0x8f, 0x28,
  19135. 0x69, 0xb1, 0x87, 0x20, 0x7f, 0x21, 0x39, 0x04, 0x49, 0x0e, 0x41, 0x10, 0xe4, 0x12, 0x18, 0xc8,
  19136. 0x35, 0x40, 0x80, 0x00, 0xce, 0x21, 0xc8, 0xc9, 0x09, 0x10, 0x38, 0xb9, 0x34, 0x0c, 0x1f, 0x19,
  19137. 0xf8, 0x32, 0xd7, 0x5c, 0x82, 0xef, 0xab, 0x67, 0xcf, 0x74, 0x73, 0x86, 0x92, 0x01, 0x3b, 0x97,
  19138. 0x9e, 0xaa, 0xaf, 0xab, 0xbf, 0xfa, 0xea, 0xab, 0xef, 0x5d, 0x35, 0x64, 0xc5, 0xf6, 0xfd, 0x95,
  19139. 0xd0, 0x09, 0x1e, 0xbb, 0x4d, 0x67, 0xa5, 0xe3, 0x3e, 0x76, 0x56, 0x9e, 0x74, 0xbc, 0x28, 0x72,
  19140. 0x82, 0xa7, 0x2b, 0xb6, 0xef, 0xae, 0xb4, 0x03, 0xbf, 0xb9, 0xf2, 0xf8, 0x02, 0xb4, 0x97, 0xfd,
  19141. 0xc0, 0x8b, 0x3c, 0x63, 0x0e, 0x06, 0x2d, 0x8b, 0x41, 0xcb, 0x8f, 0x2f, 0xd4, 0x97, 0xda, 0x6e,
  19142. 0xb4, 0xd5, 0xdf, 0x58, 0x6e, 0x7a, 0xdd, 0x95, 0xb6, 0xd7, 0xf6, 0x56, 0x70, 0xe0, 0x46, 0x7f,
  19143. 0x13, 0x7b, 0xd8, 0xc1, 0x16, 0x43, 0x60, 0xdd, 0x21, 0x87, 0x56, 0x6d, 0x3f, 0xec, 0x77, 0x9c,
  19144. 0x5b, 0x4e, 0x74, 0xc3, 0x89, 0x6c, 0xb7, 0x43, 0x9d, 0x6d, 0xe3, 0x28, 0x29, 0xf4, 0xdd, 0xd6,
  19145. 0x7c, 0x6e, 0x21, 0x77, 0xae, 0x70, 0xbd, 0xb2, 0x1b, 0x9b, 0xd0, 0xa5, 0xf0, 0x30, 0x5e, 0x25,
  19146. 0xc5, 0xcd, 0xc0, 0xeb, 0xce, 0xe7, 0x17, 0x72, 0xe7, 0x6a, 0xd7, 0xab, 0xbb, 0xb1, 0x89, 0x7d,
  19147. 0x8a, 0x4f, 0xeb, 0x6d, 0x52, 0xba, 0x1f, 0xda, 0x6d, 0x07, 0x86, 0x45, 0xce, 0x93, 0x08, 0x51,
  19148. 0xf0, 0x61, 0xd0, 0xa7, 0xf8, 0x44, 0xfc, 0x41, 0x87, 0xe3, 0x60, 0xf8, 0x83, 0x0e, 0x85, 0x87,
  19149. 0xf5, 0x36, 0xa9, 0xae, 0x07, 0x5e, 0x3b, 0x70, 0xc2, 0x10, 0x86, 0xf5, 0xbc, 0x1d, 0x9d, 0x8c,
  19150. 0x9e, 0xb7, 0x43, 0xe1, 0x01, 0xaf, 0xba, 0xf6, 0x13, 0xc4, 0xc0, 0x5f, 0x75, 0xed, 0x27, 0x14,
  19151. 0x1e, 0xd6, 0x8f, 0x2a, 0xe4, 0xf0, 0xe8, 0xa2, 0x42, 0xdf, 0x78, 0x40, 0xca, 0x3d, 0x2f, 0xe8,
  19152. 0xda, 0x1d, 0xc4, 0x38, 0x75, 0xf1, 0xe2, 0xf2, 0x30, 0xfb, 0x96, 0xd3, 0xbe, 0x13, 0xc0, 0xb5,
  19153. 0xde, 0xa6, 0x77, 0x9d, 0xec, 0xc6, 0x26, 0xc7, 0x42, 0xf9, 0xaf, 0xf1, 0x3f, 0xa4, 0xda, 0xf4,
  19154. 0x3a, 0x5e, 0xb0, 0xd9, 0x67, 0x4b, 0x7a, 0x3e, 0xcc, 0xd3, 0xbb, 0xb1, 0x29, 0xf1, 0x50, 0xd9,
  19155. 0xaa, 0x7f, 0x91, 0x23, 0xc5, 0x5b, 0xee, 0x66, 0x04, 0x2c, 0xed, 0xd9, 0x5d, 0x47, 0xe7, 0x3c,
  19156. 0xf4, 0x29, 0x3e, 0x0d, 0x93, 0x94, 0xdc, 0xae, 0xdd, 0x76, 0xe6, 0x0b, 0xf8, 0xba, 0xb6, 0x1b,
  19157. 0x9b, 0x0c, 0x40, 0xd9, 0x8f, 0xf1, 0x2f, 0xa4, 0xd4, 0x87, 0xad, 0x99, 0x2f, 0x22, 0x89, 0x2f,
  19158. 0x8f, 0x92, 0x88, 0x3b, 0xc7, 0xbe, 0xc4, 0x91, 0x94, 0xfd, 0x18, 0xe7, 0x49, 0x6d, 0xc7, 0xd9,
  19159. 0x68, 0x30, 0xf4, 0x25, 0x44, 0x3f, 0xb3, 0x1b, 0x9b, 0x0a, 0x48, 0xab, 0x3b, 0xce, 0xc6, 0x1a,
  19160. 0xce, 0x72, 0x89, 0x4c, 0x77, 0xbd, 0x0d, 0xb7, 0xe3, 0xf0, 0xe1, 0x65, 0x1c, 0x3e, 0xb7, 0x1b,
  19161. 0x9b, 0x09, 0x38, 0x9d, 0x62, 0x3d, 0xfc, 0xa8, 0xfe, 0x7f, 0xa4, 0xf8, 0x9f, 0x6e, 0x88, 0x62,
  19162. 0xd1, 0xeb, 0x77, 0x13, 0xfb, 0xdd, 0xef, 0x52, 0x78, 0xc0, 0xe2, 0xdb, 0xee, 0x66, 0xa4, 0x2f,
  19163. 0x1e, 0xfa, 0x14, 0x9f, 0xf0, 0xb6, 0x65, 0x47, 0x62, 0xed, 0xf8, 0x16, 0xfa, 0x14, 0x9f, 0x92,
  19164. 0x71, 0xc5, 0x34, 0xc6, 0xd5, 0xbf, 0xca, 0x93, 0x29, 0x6d, 0x1f, 0x0c, 0x8b, 0x94, 0xc3, 0xc8,
  19165. 0x8e, 0xfa, 0x21, 0xd2, 0x51, 0x65, 0x3b, 0xce, 0x20, 0x94, 0xff, 0x02, 0xc6, 0xa6, 0xe7, 0xf6,
  19166. 0xb8, 0xf8, 0x21, 0x46, 0xe8, 0x53, 0x7c, 0x02, 0x86, 0xe6, 0x96, 0xdd, 0xe3, 0x7b, 0x51, 0x60,
  19167. 0x18, 0x18, 0x84, 0xf2, 0x5f, 0xe3, 0x06, 0xa9, 0xfa, 0x5c, 0xcc, 0xf9, 0x86, 0xd4, 0x47, 0x37,
  19168. 0x44, 0x28, 0x02, 0x93, 0x0d, 0x31, 0x9e, 0xca, 0x16, 0xd0, 0x11, 0xf4, 0x3b, 0x62, 0x53, 0x90,
  19169. 0x0e, 0xe8, 0x53, 0x7c, 0x1a, 0x6b, 0x9c, 0x67, 0xe5, 0x85, 0xc2, 0xb9, 0xa9, 0x8b, 0x8b, 0x13,
  19170. 0xca, 0x24, 0xc8, 0xda, 0x08, 0x83, 0xd7, 0x48, 0xb1, 0xe3, 0x86, 0xd1, 0x7c, 0x65, 0x5f, 0xa8,
  19171. 0x60, 0x53, 0x19, 0x2a, 0xf8, 0x98, 0xe2, 0xd3, 0xfa, 0x61, 0x8e, 0xbc, 0xc4, 0x47, 0xff, 0x97,
  19172. 0xef, 0xf4, 0x78, 0x73, 0xbc, 0xd5, 0x89, 0x9e, 0xfa, 0x09, 0xd9, 0x87, 0x3e, 0xc5, 0x27, 0xc8,
  19173. 0x7e, 0xd3, 0xeb, 0xf7, 0x22, 0xce, 0x6f, 0x94, 0x60, 0x04, 0x50, 0xf6, 0x63, 0x9c, 0x23, 0x55,
  19174. 0xbf, 0x63, 0x47, 0x9b, 0x5e, 0xd0, 0xe5, 0x52, 0xc0, 0x38, 0xca, 0x61, 0x54, 0xb6, 0xac, 0xdf,
  19175. 0x56, 0xc8, 0x91, 0x34, 0xea, 0x42, 0x7f, 0x52, 0xc1, 0x40, 0xb3, 0x97, 0x5f, 0x28, 0xa4, 0x98,
  19176. 0xbd, 0x73, 0xa4, 0xea, 0x86, 0x37, 0x7b, 0x91, 0x1b, 0x3d, 0x45, 0x52, 0xab, 0x8c, 0x0c, 0x01,
  19177. 0xa3, 0xb2, 0x65, 0xfc, 0x07, 0x29, 0xba, 0xbd, 0x4d, 0x8f, 0x8b, 0xc6, 0x52, 0x26, 0xbf, 0x87,
  19178. 0x68, 0x5c, 0x46, 0x4b, 0x82, 0xd3, 0xc2, 0xe7, 0x14, 0x9f, 0xc6, 0x22, 0xa9, 0x85, 0x5b, 0xde,
  19179. 0xce, 0x3d, 0x37, 0xea, 0x24, 0xf4, 0x57, 0x02, 0xa9, 0x6a, 0x1a, 0x94, 0x94, 0xed, 0x1d, 0x3b,
  19180. 0x68, 0x85, 0x5c, 0x6c, 0x96, 0x27, 0x9e, 0xfb, 0x1d, 0xf8, 0x8c, 0x71, 0x85, 0x61, 0xa0, 0xfc,
  19181. 0xb7, 0xfe, 0xfd, 0x5c, 0x52, 0xc5, 0x84, 0xfa, 0xe4, 0xc6, 0xa8, 0x4f, 0x7e, 0x22, 0xf5, 0x29,
  19182. 0x3c, 0xaf, 0xfa, 0xd4, 0x7f, 0x93, 0x23, 0x45, 0x24, 0xe8, 0xe1, 0x90, 0x67, 0xb8, 0x3c, 0xf1,
  19183. 0xa2, 0xc7, 0xf9, 0x86, 0xff, 0x1d, 0xf1, 0x0d, 0xcf, 0x87, 0x3b, 0xcb, 0x3b, 0x7c, 0x2f, 0x4f,
  19184. 0x4a, 0xc8, 0xf8, 0x31, 0xee, 0x81, 0x9b, 0xd6, 0x42, 0xba, 0x69, 0x45, 0x99, 0x2d, 0x66, 0xb9,
  19185. 0x6a, 0xb7, 0xdb, 0xe6, 0x62, 0x83, 0x1f, 0xba, 0xdd, 0x36, 0x85, 0x87, 0xf2, 0x28, 0xe5, 0x17,
  19186. 0xf2, 0x28, 0x95, 0xfd, 0x79, 0x94, 0xea, 0x04, 0x1e, 0xc5, 0xda, 0x26, 0xf3, 0xca, 0x22, 0x69,
  19187. 0x7c, 0x7c, 0x21, 0x33, 0x23, 0x42, 0x9f, 0x42, 0x6a, 0xe8, 0xf3, 0xfb, 0x32, 0x39, 0x9a, 0x31,
  19188. 0x67, 0xe8, 0x8f, 0x11, 0x79, 0x61, 0xc7, 0xf3, 0xa9, 0x76, 0xfc, 0x23, 0x52, 0x03, 0x23, 0xdc,
  19189. 0x40, 0x0b, 0x5c, 0x40, 0xad, 0xbc, 0xbc, 0x97, 0x05, 0x1e, 0x9a, 0x1b, 0x2d, 0x3a, 0x9a, 0x62,
  19190. 0xe4, 0xb1, 0x44, 0x45, 0xab, 0x6d, 0xfe, 0xc2, 0xd8, 0x22, 0x53, 0x08, 0xde, 0x74, 0x3b, 0x91,
  19191. 0x13, 0xcc, 0x17, 0x71, 0x8e, 0x37, 0xf6, 0x3b, 0xc7, 0xbf, 0xe3, 0xd7, 0xd7, 0x0f, 0xec, 0xc6,
  19192. 0xa6, 0x8e, 0x8e, 0x92, 0xb6, 0x7c, 0x59, 0xff, 0x2c, 0x4f, 0xaa, 0x82, 0x1e, 0xe3, 0x08, 0xc9,
  19193. 0xcb, 0x8d, 0x28, 0xef, 0xc6, 0x66, 0xde, 0x6d, 0xd1, 0xbc, 0xfb, 0x02, 0xa2, 0x6c, 0x91, 0xf2,
  19194. 0x8e, 0xe3, 0xb6, 0xb7, 0x98, 0x30, 0x73, 0xd3, 0xc1, 0x20, 0x94, 0xff, 0x1a, 0xa7, 0x48, 0x05,
  19195. 0xc4, 0x0c, 0xe2, 0x4f, 0x26, 0xd4, 0x53, 0xbb, 0xb1, 0x29, 0x40, 0x30, 0x6a, 0xe3, 0x7e, 0xd0,
  19196. 0x31, 0x96, 0x08, 0xe1, 0xd2, 0x05, 0x03, 0x59, 0x14, 0x33, 0xbb, 0x1b, 0x9b, 0x1a, 0x94, 0xd6,
  19197. 0x58, 0x1b, 0x86, 0x4b, 0x55, 0xa8, 0xec, 0x57, 0x15, 0x84, 0xc8, 0x55, 0x95, 0x60, 0x68, 0x22,
  19198. 0x67, 0x91, 0xb2, 0xf3, 0xc4, 0x77, 0x03, 0x67, 0xbe, 0x86, 0x24, 0xe0, 0x82, 0x18, 0x84, 0xf2,
  19199. 0xdf, 0xfa, 0x1f, 0x72, 0x84, 0x28, 0xf6, 0x3f, 0x27, 0x53, 0x35, 0xae, 0x14, 0x26, 0xe5, 0x4a,
  19200. 0x71, 0x62, 0xae, 0x94, 0xf6, 0xc9, 0x15, 0xeb, 0x27, 0x39, 0xf2, 0xca, 0xa8, 0x55, 0xbc, 0xfe,
  19201. 0xf4, 0x1e, 0xb0, 0xe6, 0x5b, 0x12, 0x2a, 0xfc, 0xa5, 0x44, 0x5e, 0xcd, 0xa6, 0x71, 0xc2, 0x80,
  19202. 0x41, 0x0f, 0x09, 0xf2, 0x7b, 0x86, 0x04, 0x0f, 0x79, 0x48, 0xc0, 0xdc, 0xdd, 0xd5, 0x49, 0xbc,
  19203. 0x88, 0xa2, 0x25, 0xe1, 0x4b, 0x86, 0xe3, 0x83, 0x87, 0xd2, 0xe5, 0x17, 0xc7, 0x18, 0x97, 0x74,
  19204. 0xdc, 0x99, 0x8e, 0x5f, 0xba, 0x96, 0x52, 0x5a, 0x38, 0x54, 0x5f, 0xdc, 0x47, 0x54, 0x50, 0xff,
  19205. 0xab, 0x74, 0x74, 0x5f, 0xbb, 0xd5, 0xd8, 0xdb, 0x01, 0x7e, 0xcb, 0xec, 0x85, 0x32, 0x71, 0xd5,
  19206. 0x4c, 0x13, 0x27, 0x54, 0xa0, 0x36, 0xc6, 0xa6, 0x90, 0x2c, 0x9b, 0x62, 0xfd, 0x2c, 0x47, 0x66,
  19207. 0xc1, 0xca, 0x7b, 0x6e, 0x0f, 0x2c, 0x35, 0xa8, 0xdc, 0x35, 0x52, 0xf4, 0x81, 0x62, 0xc6, 0xf8,
  19208. 0x45, 0x40, 0x0a, 0xfd, 0x41, 0x6c, 0x9a, 0xa0, 0x0e, 0x57, 0x2d, 0xe8, 0x59, 0x0b, 0x8f, 0xed,
  19209. 0x8e, 0x0b, 0x59, 0xd7, 0x55, 0x2b, 0x70, 0xb6, 0xfb, 0x6e, 0xe0, 0xb4, 0x2c, 0x8a, 0x03, 0x0d,
  19210. 0x4a, 0x6a, 0xf0, 0xdb, 0x08, 0xdd, 0x67, 0x22, 0xb4, 0x7b, 0x1d, 0x1c, 0x92, 0x04, 0x0e, 0x62,
  19211. 0xf3, 0x94, 0x42, 0x85, 0xa0, 0x74, 0x7c, 0x55, 0x78, 0x7f, 0x17, 0x5e, 0x7f, 0x5a, 0x22, 0x07,
  19212. 0x12, 0x74, 0x86, 0x3e, 0xa8, 0x78, 0xe4, 0x45, 0x3c, 0x96, 0xe3, 0x2a, 0x8e, 0x00, 0xca, 0x7e,
  19213. 0x60, 0xaf, 0xb0, 0xd1, 0xc0, 0xf5, 0x30, 0x4a, 0x70, 0xaf, 0x14, 0x94, 0xd6, 0xb0, 0xbd, 0x6e,
  19214. 0x63, 0xac, 0x59, 0xd4, 0x3c, 0xef, 0x99, 0xd1, 0xad, 0x1a, 0x22, 0x20, 0x35, 0xed, 0xa9, 0xff,
  19215. 0xa0, 0xc8, 0x93, 0xdc, 0x2c, 0xf1, 0x05, 0xb2, 0x31, 0x42, 0xcf, 0xab, 0x04, 0x1e, 0x01, 0x94,
  19216. 0xfd, 0x00, 0xd9, 0x2c, 0xfa, 0x6d, 0x28, 0x41, 0x46, 0xb2, 0x15, 0x94, 0xd6, 0x58, 0xfb, 0x4e,
  19217. 0xbf, 0x0b, 0xc3, 0xc3, 0xc8, 0x0e, 0xa2, 0x46, 0xe4, 0xf2, 0xdc, 0x97, 0x0f, 0x57, 0x50, 0x5a,
  19218. 0xc3, 0xf6, 0x3d, 0xb7, 0xeb, 0x18, 0x67, 0x49, 0xd5, 0xe9, 0xb5, 0xd8, 0xe0, 0x12, 0x0e, 0x46,
  19219. 0x43, 0x24, 0x60, 0xb4, 0xe2, 0xf4, 0x5a, 0x38, 0x50, 0x59, 0xb5, 0xb2, 0x12, 0xc0, 0x21, 0xab,
  19220. 0x76, 0x9e, 0x47, 0x2c, 0x28, 0x85, 0x15, 0x1c, 0xa6, 0x62, 0x0f, 0x14, 0x45, 0x8c, 0x3d, 0xc0,
  19221. 0x82, 0x18, 0xff, 0xcc, 0x63, 0x8f, 0xa6, 0xd7, 0xdb, 0x74, 0xdb, 0x3c, 0xbc, 0x53, 0x31, 0x04,
  19222. 0x03, 0xb3, 0x18, 0x62, 0x15, 0xdb, 0xc6, 0xfb, 0xa4, 0x6a, 0x07, 0x8e, 0xdd, 0x70, 0x5b, 0xe1,
  19223. 0x7c, 0x2d, 0x2b, 0x49, 0x49, 0xdb, 0x94, 0xe5, 0x77, 0x02, 0xc7, 0x5e, 0x6b, 0xf1, 0x84, 0x40,
  19224. 0xe0, 0xa0, 0x15, 0x9b, 0x81, 0xeb, 0x8f, 0x49, 0x85, 0x8f, 0x80, 0x15, 0xf8, 0x76, 0xe0, 0xf4,
  19225. 0xa2, 0x86, 0xdc, 0xac, 0x19, 0x26, 0xac, 0x1c, 0x08, 0x42, 0x08, 0xcd, 0xb5, 0x96, 0x71, 0x82,
  19226. 0x94, 0xdd, 0xb0, 0x61, 0x77, 0x3a, 0x7a, 0xc2, 0xc2, 0x20, 0xb4, 0xe4, 0x86, 0xef, 0x74, 0x3a,
  19227. 0xa0, 0x91, 0x52, 0x86, 0x0a, 0x23, 0x29, 0xf1, 0x2f, 0x2a, 0xe4, 0xd0, 0x7d, 0x1f, 0xa4, 0x1c,
  19228. 0x48, 0x66, 0xab, 0x04, 0x95, 0x3b, 0xa9, 0x89, 0xca, 0x21, 0x26, 0x2a, 0x83, 0xd8, 0xac, 0x31,
  19229. 0x1d, 0x71, 0x5b, 0x16, 0xca, 0xcd, 0x6a, 0x52, 0x6e, 0x96, 0xa4, 0xdc, 0x0c, 0x62, 0x73, 0x81,
  19230. 0x0d, 0xc5, 0x6e, 0xba, 0x2a, 0x71, 0xd9, 0x7a, 0x90, 0x22, 0x5b, 0x57, 0x92, 0xb2, 0x35, 0x88,
  19231. 0xcd, 0xd3, 0x0c, 0x9d, 0x82, 0xa5, 0xe3, 0xd4, 0x84, 0xf0, 0x41, 0x8a, 0x10, 0x5e, 0x49, 0x0a,
  19232. 0xa1, 0xc2, 0xab, 0x60, 0x19, 0x78, 0x95, 0xb4, 0xde, 0x19, 0x91, 0xd6, 0x4b, 0xba, 0xb4, 0x0e,
  19233. 0x62, 0xf3, 0x24, 0xc3, 0x29, 0x20, 0xe9, 0x18, 0xa5, 0x50, 0xdf, 0x1a, 0x12, 0xea, 0x15, 0x25,
  19234. 0xd4, 0x83, 0xd8, 0x3c, 0x21, 0xe9, 0x8b, 0xfa, 0x61, 0x3a, 0x26, 0x21, 0xf9, 0x74, 0x54, 0xf2,
  19235. 0x5f, 0x4f, 0x48, 0xbe, 0x32, 0x72, 0x12, 0x94, 0x61, 0xe4, 0xa4, 0x86, 0x5c, 0x25, 0xd8, 0x46,
  19236. 0x79, 0xaf, 0xa2, 0x00, 0x99, 0xb0, 0x58, 0x01, 0x1b, 0xc4, 0xe6, 0x01, 0x0d, 0xa3, 0xdb, 0x0a,
  19237. 0x2d, 0x5a, 0x81, 0x26, 0xc8, 0xf1, 0xff, 0x8f, 0xe8, 0x4a, 0x4a, 0x31, 0x21, 0x45, 0xf6, 0xa4,
  19238. 0xaa, 0x5c, 0xd2, 0x55, 0x45, 0xf1, 0x55, 0x40, 0x32, 0xf8, 0x2a, 0x34, 0xea, 0x8f, 0x39, 0xa5,
  19239. 0x52, 0x74, 0x54, 0xa5, 0x5e, 0x4f, 0xa8, 0x94, 0x6e, 0xff, 0x39, 0x28, 0xd3, 0xfe, 0x73, 0xd5,
  19240. 0xbb, 0x38, 0xa4, 0x7a, 0xaf, 0x28, 0xd5, 0x1b, 0xc4, 0xe6, 0x0c, 0xd7, 0x14, 0xec, 0x5b, 0x42,
  19241. 0x17, 0xaf, 0x25, 0x74, 0x71, 0x51, 0xe8, 0xa2, 0x72, 0x64, 0xa8, 0x93, 0xe9, 0x8e, 0x0c, 0x5f,
  19242. 0x5d, 0x25, 0x87, 0x47, 0x39, 0x36, 0x59, 0xbc, 0x67, 0x7d, 0x37, 0xa7, 0xab, 0xfa, 0x5d, 0xf6,
  19243. 0xd2, 0xd9, 0x36, 0xae, 0x68, 0xaa, 0x7e, 0x56, 0xaa, 0xfa, 0x31, 0xa9, 0xea, 0xa9, 0xe4, 0x80,
  19244. 0xfa, 0x5f, 0x92, 0x93, 0x6a, 0x1c, 0x90, 0x92, 0x3b, 0x93, 0x90, 0x5c, 0x49, 0x45, 0x62, 0x05,
  19245. 0x82, 0x88, 0x09, 0x57, 0xf0, 0x2e, 0x99, 0xb9, 0xe1, 0x74, 0x1c, 0xf6, 0xed, 0x8b, 0x90, 0x6e,
  19246. 0x5d, 0x26, 0xb3, 0x3a, 0xa6, 0x09, 0xe7, 0xe7, 0xa1, 0xc9, 0xba, 0xe7, 0x75, 0xbe, 0xd5, 0xa1,
  19247. 0xc9, 0x9f, 0x0b, 0x18, 0x9a, 0x28, 0x3a, 0xbf, 0xa1, 0xd0, 0x44, 0x27, 0x20, 0x3d, 0x34, 0xf9,
  19248. 0x24, 0x3f, 0x26, 0x34, 0x39, 0x45, 0x2a, 0x10, 0x83, 0x83, 0xde, 0x32, 0x92, 0x30, 0x04, 0xe6,
  19249. 0x20, 0x5a, 0x86, 0xc6, 0x9a, 0x16, 0xc0, 0x14, 0xb2, 0x03, 0x98, 0x6f, 0x2c, 0x22, 0x11, 0x15,
  19250. 0x96, 0x4a, 0x6a, 0x85, 0x05, 0x42, 0x2b, 0x58, 0x0d, 0xa3, 0xbf, 0xaa, 0xa2, 0x77, 0x05, 0xa5,
  19251. 0x35, 0x68, 0x63, 0x8d, 0xd4, 0xfa, 0xa4, 0x40, 0x66, 0x98, 0xfe, 0x00, 0x73, 0x27, 0xf6, 0xd4,
  19252. 0xb7, 0x87, 0xd9, 0x78, 0x41, 0x63, 0xe3, 0x20, 0x36, 0x2d, 0xee, 0x5e, 0x19, 0x20, 0xc3, 0xcf,
  19253. 0x70, 0x66, 0xaf, 0x26, 0x99, 0xfd, 0xdc, 0x5e, 0xff, 0x1f, 0xc2, 0x3b, 0x5f, 0xe3, 0x9b, 0xc7,
  19254. 0xd2, 0xaa, 0x45, 0xb1, 0x79, 0x4a, 0xbf, 0xa1, 0x97, 0xa1, 0xdf, 0xf8, 0xea, 0x32, 0x99, 0xd5,
  19255. 0xf7, 0x6b, 0xbf, 0x96, 0x4e, 0xec, 0xf2, 0x8b, 0x5b, 0xba, 0x7d, 0xcd, 0xaf, 0x7c, 0x05, 0x7c,
  19256. 0xf6, 0x8d, 0xfb, 0x0a, 0x9d, 0x88, 0x09, 0x57, 0xf0, 0xa1, 0x34, 0x81, 0xeb, 0x81, 0xfb, 0x0c,
  19257. 0x2b, 0x37, 0xb7, 0x49, 0xc5, 0xf7, 0xbc, 0x8e, 0x8a, 0x01, 0x50, 0x09, 0x38, 0x48, 0x29, 0x01,
  19258. 0x07, 0x64, 0x28, 0x01, 0xbc, 0x5d, 0x6b, 0x59, 0x9f, 0x97, 0xc8, 0x5c, 0x12, 0x7f, 0xe8, 0x1b,
  19259. 0x37, 0xb9, 0x4d, 0xcc, 0xa1, 0x4d, 0x3c, 0x9b, 0x69, 0x13, 0xe5, 0x17, 0xe9, 0x46, 0xf1, 0x6f,
  19260. 0xc5, 0xf1, 0x46, 0x51, 0x2c, 0x44, 0x33, 0x8a, 0x1c, 0x24, 0x48, 0x94, 0xa9, 0x78, 0x21, 0x35,
  19261. 0x15, 0xe7, 0x45, 0x89, 0x62, 0x4a, 0x51, 0xe2, 0x3c, 0xa9, 0x79, 0x1b, 0x1f, 0x3b, 0x4d, 0x8c,
  19262. 0x96, 0x4a, 0x2a, 0x01, 0x91, 0x40, 0x5a, 0x65, 0xcd, 0xb5, 0x96, 0x5e, 0xa2, 0x28, 0x4f, 0x5a,
  19263. 0xa2, 0xa8, 0x8c, 0x2b, 0x51, 0x5c, 0x20, 0x53, 0x2d, 0x27, 0x6c, 0x06, 0xae, 0x1f, 0xb9, 0x5e,
  19264. 0x4f, 0xcf, 0xcb, 0x34, 0x30, 0xd5, 0x3b, 0x60, 0xb1, 0x3f, 0xee, 0x77, 0x7d, 0xc4, 0x5f, 0x53,
  19265. 0xb5, 0x33, 0x01, 0xa3, 0x15, 0x68, 0x01, 0xee, 0xb3, 0x78, 0x7c, 0xc3, 0x82, 0x64, 0xa2, 0x4c,
  19266. 0xbb, 0x80, 0xd1, 0x8a, 0x1f, 0x78, 0xf7, 0x78, 0xad, 0x02, 0x92, 0x89, 0xa6, 0x33, 0x3f, 0xa5,
  19267. 0x6a, 0x15, 0x0c, 0x42, 0xf9, 0x2f, 0xe6, 0x56, 0x9e, 0xe7, 0xcf, 0x4f, 0x2b, 0x16, 0x43, 0x9f,
  19268. 0xe2, 0x13, 0xbc, 0x52, 0xc7, 0xed, 0xba, 0xd1, 0xfc, 0x8c, 0x72, 0xb9, 0x08, 0xa0, 0xec, 0x47,
  19269. 0x96, 0x8d, 0x66, 0x53, 0xcb, 0x46, 0xaa, 0xdc, 0x72, 0x20, 0xb3, 0xdc, 0xb2, 0x44, 0xc8, 0xce,
  19270. 0x96, 0x1b, 0x39, 0x8d, 0x3e, 0x44, 0xd9, 0x73, 0x18, 0x56, 0x22, 0x63, 0x15, 0x94, 0xd6, 0xb0,
  19271. 0x7d, 0xdf, 0x6d, 0x85, 0x5a, 0xfd, 0xe5, 0xa0, 0x42, 0x39, 0x54, 0x7f, 0xf9, 0xbc, 0x42, 0x0c,
  19272. 0xa5, 0x75, 0x52, 0x79, 0x26, 0x72, 0x33, 0x6f, 0x0c, 0x0b, 0xe6, 0xb1, 0xa4, 0x86, 0xcd, 0x26,
  19273. 0x35, 0x4c, 0x8a, 0xea, 0xb5, 0x84, 0xa8, 0x2e, 0x0a, 0x51, 0x55, 0x56, 0x36, 0x3b, 0x57, 0x61,
  19274. 0xd2, 0xfc, 0xaf, 0xba, 0x34, 0xbf, 0xc6, 0xa5, 0x79, 0x10, 0x9b, 0xc7, 0xd9, 0xe7, 0x99, 0xf9,
  19275. 0x22, 0xca, 0xfb, 0xbf, 0x8d, 0xca, 0xfb, 0x89, 0x84, 0xbc, 0x0f, 0x62, 0x73, 0x8e, 0x21, 0x92,
  19276. 0x20, 0x4b, 0xd3, 0x81, 0x4b, 0x92, 0xab, 0x65, 0x65, 0xdb, 0x18, 0x44, 0xd9, 0x36, 0xce, 0x5d,
  19277. 0xc1, 0x66, 0x30, 0x46, 0x42, 0x71, 0x98, 0x3e, 0x5c, 0xd0, 0x14, 0x47, 0x19, 0x23, 0x0e, 0xc8,
  19278. 0x30, 0x46, 0x5c, 0xbd, 0x1e, 0x24, 0xd4, 0x8b, 0xa9, 0xcb, 0x95, 0xa4, 0x7a, 0x29, 0x67, 0xaa,
  19279. 0x60, 0x19, 0xce, 0x54, 0xe9, 0xe1, 0x07, 0x49, 0x3d, 0x64, 0x7a, 0xf5, 0xe6, 0x90, 0x1e, 0x0e,
  19280. 0x62, 0xf3, 0x0c, 0xc3, 0xac, 0x01, 0xd3, 0x51, 0x27, 0x34, 0xf6, 0xaa, 0xa6, 0xb1, 0xac, 0x1a,
  19281. 0x68, 0xea, 0x1a, 0xab, 0x52, 0x4b, 0x01, 0xb1, 0x94, 0x12, 0xdf, 0xd1, 0x94, 0x78, 0x4a, 0x79,
  19282. 0x79, 0x01, 0x53, 0x5e, 0x5e, 0x40, 0x32, 0xbc, 0xbc, 0xd0, 0xf5, 0x4b, 0x52, 0xd7, 0xa7, 0xd5,
  19283. 0x0e, 0x32, 0x88, 0xda, 0x41, 0xd6, 0xb7, 0xa4, 0xf2, 0x2f, 0x72, 0xe5, 0x67, 0xda, 0xfd, 0xb2,
  19284. 0x50, 0xfe, 0x41, 0x6c, 0x4e, 0xf1, 0x64, 0xce, 0xf3, 0x7c, 0x8b, 0xdb, 0x82, 0x15, 0x61, 0x0b,
  19285. 0x66, 0x71, 0xf4, 0x51, 0x69, 0x0b, 0x06, 0xb1, 0x39, 0x2d, 0x72, 0xbf, 0xae, 0x1b, 0x59, 0xc2,
  19286. 0x36, 0x7c, 0xfd, 0xda, 0x6f, 0x6d, 0xe8, 0x3e, 0x5d, 0x79, 0xad, 0x49, 0xce, 0x0a, 0xd0, 0x6a,
  19287. 0xba, 0xcf, 0x1c, 0xa5, 0xd9, 0xdc, 0x6a, 0x32, 0x18, 0x70, 0xd2, 0x7d, 0xe6, 0xac, 0xb5, 0xac,
  19288. 0xf7, 0x88, 0xa1, 0xc2, 0x0d, 0x69, 0x3c, 0x9e, 0x3b, 0x7a, 0x79, 0x93, 0x1c, 0x1a, 0x41, 0x37,
  19289. 0x61, 0x00, 0x70, 0x90, 0x05, 0x00, 0xf0, 0x0d, 0x3f, 0xba, 0xb1, 0x7e, 0x9c, 0x63, 0x4e, 0x5b,
  19290. 0xc1, 0x34, 0xa7, 0x5d, 0xd8, 0xcb, 0x69, 0xeb, 0x5f, 0xa4, 0x3b, 0xed, 0xeb, 0xdc, 0x67, 0x0b,
  19291. 0xaf, 0x9b, 0x4b, 0xf5, 0xba, 0x7b, 0x1e, 0x14, 0x58, 0x87, 0xc8, 0x41, 0x31, 0xd9, 0x4d, 0x66,
  19292. 0x94, 0x9d, 0x6d, 0xeb, 0xe7, 0x39, 0x62, 0x0c, 0x43, 0x43, 0xdf, 0xb8, 0x95, 0x20, 0xfb, 0xb5,
  19293. 0x6c, 0xb2, 0xd5, 0x37, 0xe9, 0x84, 0xbf, 0xcb, 0x09, 0x57, 0xbe, 0x21, 0x97, 0xe5, 0x1b, 0xc6,
  19294. 0x90, 0xff, 0x69, 0x8e, 0xcc, 0xdc, 0x85, 0x48, 0xfc, 0x6e, 0xe4, 0x05, 0x5d, 0xd8, 0xf7, 0x39,
  19295. 0xed, 0xac, 0x8c, 0x1d, 0x91, 0x19, 0x10, 0x4f, 0x0b, 0x21, 0xa2, 0xd8, 0x36, 0x8e, 0x90, 0x72,
  19296. 0xe0, 0x79, 0x5d, 0xb7, 0xc5, 0xec, 0x3f, 0xe5, 0x3d, 0xe3, 0x55, 0x52, 0xeb, 0x87, 0xce, 0xdd,
  19297. 0x2d, 0xd7, 0xe9, 0xb4, 0xd0, 0xb4, 0x57, 0xa9, 0x02, 0x00, 0x6e, 0x30, 0xf9, 0x25, 0x86, 0x1b,
  19298. 0xec, 0xf8, 0x11, 0x52, 0xde, 0x70, 0xec, 0xc8, 0x6d, 0x31, 0x3b, 0x4c, 0x79, 0xcf, 0xf8, 0x27,
  19299. 0x72, 0x30, 0x7c, 0xe4, 0xfa, 0x37, 0x9f, 0x44, 0x4e, 0xd0, 0xb3, 0x3b, 0xab, 0x5b, 0x4e, 0xf3,
  19300. 0x11, 0x2b, 0x90, 0xd1, 0xd1, 0x17, 0x96, 0x4b, 0x66, 0xf5, 0x45, 0x84, 0x3e, 0xd0, 0xdc, 0xf4,
  19301. 0x5a, 0x8c, 0x2f, 0x25, 0x8a, 0x6d, 0x98, 0xbd, 0x1b, 0xb6, 0x19, 0x23, 0x28, 0x34, 0x8d, 0x0b,
  19302. 0xa4, 0x84, 0x69, 0x08, 0x3f, 0x25, 0x7b, 0x65, 0x74, 0x47, 0x10, 0xed, 0x0d, 0x3b, 0xb2, 0x29,
  19303. 0x1b, 0x69, 0xad, 0x90, 0x9a, 0x84, 0xc1, 0x2c, 0x98, 0xb5, 0xf0, 0x59, 0xa0, 0x6d, 0xcc, 0xa2,
  19304. 0xde, 0x30, 0x5e, 0x81, 0x3a, 0x3c, 0x24, 0x07, 0x57, 0xed, 0xde, 0x73, 0x91, 0x77, 0x8c, 0x90,
  19305. 0xc0, 0x89, 0x1a, 0x5c, 0x6d, 0x0a, 0x8c, 0x9b, 0x81, 0x13, 0xb1, 0xb0, 0xda, 0xfa, 0x53, 0x9e,
  19306. 0x4c, 0xdf, 0xc6, 0x8a, 0x0c, 0xdf, 0xba, 0x63, 0x9a, 0xca, 0xce, 0x8c, 0x7a, 0xfa, 0xf3, 0x72,
  19307. 0xcf, 0x98, 0x39, 0x30, 0x94, 0x77, 0x67, 0x70, 0x6b, 0x41, 0xee, 0xe3, 0x19, 0x52, 0xc2, 0x4b,
  19308. 0x23, 0x3c, 0x61, 0x9c, 0x53, 0x26, 0x0f, 0xc1, 0x16, 0x65, 0xaf, 0x8d, 0x05, 0x52, 0x00, 0x84,
  19309. 0x3c, 0x3b, 0x1f, 0xc4, 0x26, 0xe1, 0x1e, 0x0b, 0x26, 0x85, 0x57, 0xc6, 0x8a, 0x76, 0x42, 0xca,
  19310. 0x4e, 0xc4, 0x0e, 0x29, 0x3f, 0x21, 0x4f, 0x47, 0xd5, 0x41, 0xa9, 0xf1, 0x16, 0x99, 0x69, 0xda,
  19311. 0x7e, 0xd4, 0xdc, 0xb2, 0x1b, 0x91, 0xf7, 0xc8, 0xe9, 0xf1, 0x20, 0x75, 0x7e, 0x10, 0x9b, 0x87,
  19312. 0x39, 0x09, 0xfa, 0x6b, 0x8b, 0x4e, 0xf3, 0xfe, 0x3d, 0xe8, 0x1a, 0x6f, 0x93, 0x59, 0xf1, 0xde,
  19313. 0xdf, 0x0a, 0xec, 0x50, 0x24, 0xf1, 0x47, 0x07, 0xb1, 0xf9, 0x52, 0xf2, 0x7b, 0xf6, 0xde, 0xa2,
  19314. 0x62, 0xbe, 0x75, 0xd6, 0x77, 0xc8, 0x8c, 0xc6, 0xd6, 0x89, 0x77, 0x6b, 0x99, 0x14, 0x3f, 0xf6,
  19315. 0xdc, 0x5e, 0xf6, 0x05, 0x23, 0x40, 0x8a, 0xa2, 0x84, 0xe3, 0xac, 0x5f, 0xe6, 0x49, 0x55, 0x80,
  19316. 0x20, 0x26, 0xe7, 0xe5, 0x58, 0xbe, 0x7f, 0x18, 0x93, 0x73, 0x10, 0x2d, 0xb3, 0xfa, 0xec, 0xf8,
  19317. 0x43, 0x9f, 0xd3, 0xa4, 0xd2, 0xf4, 0x7a, 0x91, 0xc3, 0x4f, 0xac, 0x6b, 0xa2, 0xf4, 0x82, 0x20,
  19318. 0x2a, 0x1a, 0xc6, 0x9b, 0x64, 0x96, 0x87, 0x14, 0x62, 0x34, 0x3b, 0xcc, 0x34, 0x76, 0x63, 0x73,
  19319. 0xe8, 0x0d, 0x9d, 0x61, 0xfd, 0x55, 0xfe, 0xe9, 0x59, 0x51, 0x5d, 0x96, 0xb7, 0x7c, 0xa6, 0x55,
  19320. 0x75, 0xb9, 0xdb, 0xe6, 0xa5, 0xe4, 0x6e, 0x5b, 0x0e, 0x04, 0x85, 0x2f, 0x2b, 0xf7, 0x23, 0x60,
  19321. 0x6c, 0xe0, 0x1d, 0x96, 0xba, 0x30, 0x20, 0x58, 0x29, 0xed, 0x76, 0x8f, 0x04, 0xb2, 0xda, 0xf6,
  19322. 0x1d, 0x30, 0x57, 0xdb, 0x64, 0x06, 0x35, 0x5e, 0x8a, 0xfc, 0x5b, 0x52, 0xa6, 0x19, 0xdb, 0x4e,
  19323. 0xab, 0xfa, 0xbb, 0x90, 0xe9, 0xd4, 0x28, 0x8c, 0x8b, 0xf9, 0x09, 0x66, 0xec, 0x98, 0x3e, 0x1c,
  19324. 0x50, 0x61, 0x40, 0x1f, 0x95, 0x01, 0xde, 0x81, 0x6d, 0xd1, 0xa7, 0xdc, 0x8f, 0x6d, 0x69, 0xa2,
  19325. 0xd5, 0xca, 0xb4, 0x2d, 0x88, 0x96, 0xd9, 0x16, 0x1c, 0x69, 0xfd, 0x34, 0x4f, 0x6a, 0x12, 0x98,
  19326. 0x99, 0x49, 0x5a, 0x43, 0x6a, 0x8c, 0x46, 0x9f, 0x41, 0xe4, 0xba, 0xf6, 0x38, 0xbe, 0x3e, 0x4b,
  19327. 0xaa, 0xa1, 0xd3, 0x6b, 0x35, 0x44, 0xec, 0xcd, 0x37, 0x50, 0xc0, 0x68, 0x05, 0x5a, 0x77, 0xf8,
  19328. 0x39, 0xb7, 0x2a, 0xc9, 0x30, 0xaf, 0xe8, 0x82, 0xe3, 0x40, 0x33, 0xa7, 0x49, 0x5a, 0x79, 0x0f,
  19329. 0x49, 0x3b, 0x4d, 0x2a, 0x5b, 0x76, 0x08, 0x62, 0x8e, 0x5b, 0x5b, 0x62, 0xc3, 0x38, 0x88, 0x8a,
  19330. 0x06, 0xc8, 0x40, 0x08, 0xfc, 0x6d, 0xb4, 0xdd, 0x4d, 0x1e, 0x0c, 0xb3, 0x3b, 0x87, 0x02, 0x48,
  19331. 0xab, 0xd8, 0xbc, 0xe5, 0x6e, 0x5a, 0x97, 0xc9, 0xcb, 0xda, 0xc5, 0x22, 0xaf, 0xef, 0x7b, 0xf2,
  19332. 0xd0, 0x39, 0xfb, 0x9e, 0x87, 0xf5, 0x55, 0x3e, 0x71, 0xc7, 0x4b, 0xfb, 0x2c, 0xf4, 0x8d, 0xf7,
  19333. 0x12, 0x45, 0x80, 0x95, 0x3d, 0x6f, 0x32, 0x25, 0xbe, 0x4c, 0x77, 0xcf, 0xdf, 0xc9, 0xab, 0x1b,
  19334. 0xca, 0x59, 0xf7, 0x4e, 0x96, 0x08, 0xc1, 0x5b, 0x0f, 0xac, 0xec, 0x95, 0x57, 0xe9, 0xb5, 0x82,
  19335. 0xd2, 0x1a, 0xb6, 0xb1, 0xa6, 0x25, 0x87, 0xa3, 0x96, 0x14, 0x86, 0x87, 0xa3, 0x9a, 0xb0, 0xe1,
  19336. 0xa0, 0x27, 0x6a, 0x38, 0x0a, 0x6a, 0x71, 0x78, 0x38, 0x40, 0xf9, 0xf0, 0x55, 0x90, 0x5e, 0x15,
  19337. 0x9b, 0x95, 0x32, 0x4b, 0xa2, 0x4b, 0xe8, 0x8c, 0x82, 0xa7, 0x8c, 0x60, 0xed, 0xca, 0x82, 0x82,
  19338. 0xa2, 0x73, 0x0a, 0x9e, 0x02, 0xc1, 0x17, 0x7f, 0x3d, 0x43, 0x2a, 0x9c, 0x6b, 0xc6, 0x07, 0x84,
  19339. 0xb4, 0x9d, 0xa8, 0xd1, 0xc2, 0xab, 0xbe, 0xc6, 0xe9, 0x49, 0xae, 0x03, 0x6f, 0xd7, 0xcf, 0x4c,
  19340. 0x76, 0x6b, 0xd8, 0xb0, 0xc9, 0xb4, 0xe7, 0x3b, 0xbd, 0x46, 0x93, 0x4f, 0x76, 0x76, 0xb2, 0x0b,
  19341. 0x93, 0xdb, 0xf5, 0x73, 0x93, 0xde, 0xac, 0x34, 0xee, 0x91, 0x19, 0xa0, 0x1f, 0x2b, 0xad, 0xb0,
  19342. 0xc1, 0xc6, 0xc2, 0x98, 0x03, 0xe4, 0xed, 0xfa, 0x89, 0xb1, 0x47, 0xcc, 0x46, 0x93, 0x18, 0x7d,
  19343. 0x0c, 0xed, 0x19, 0x62, 0x76, 0x72, 0x9d, 0xc6, 0x9d, 0x94, 0xf3, 0xb6, 0x34, 0xee, 0xa4, 0x1e,
  19344. 0x32, 0x0d, 0x4d, 0xc2, 0xf7, 0x72, 0xcf, 0x49, 0x64, 0xe5, 0x70, 0xef, 0x49, 0xb4, 0xda, 0xde,
  19345. 0x3a, 0xe4, 0x9c, 0x10, 0xf1, 0xe3, 0x24, 0x86, 0x39, 0xfa, 0x59, 0xe2, 0x08, 0xa8, 0xbe, 0xb0,
  19346. 0xf7, 0x00, 0xc5, 0x71, 0x2c, 0x3a, 0xec, 0xc1, 0x71, 0xed, 0x54, 0x27, 0x83, 0xe3, 0x89, 0xf3,
  19347. 0x94, 0x75, 0x32, 0xc5, 0x99, 0x01, 0x88, 0xd3, 0xe8, 0x4c, 0x94, 0xe9, 0xd3, 0xe8, 0x1c, 0xaa,
  19348. 0x0b, 0xab, 0x95, 0x67, 0x61, 0x4c, 0x94, 0x84, 0xb3, 0x57, 0x2e, 0x31, 0xaa, 0x0d, 0xc3, 0xc5,
  19349. 0x8f, 0xdb, 0xb0, 0x44, 0xa9, 0x37, 0x7b, 0xc3, 0x86, 0x8a, 0xb1, 0xef, 0x93, 0x59, 0xc9, 0x5e,
  19350. 0xcc, 0x02, 0x8d, 0x13, 0xe3, 0x0a, 0x9f, 0xdb, 0x75, 0x6b, 0x7c, 0x6d, 0x54, 0x22, 0xc6, 0x1c,
  19351. 0x13, 0xb3, 0xa7, 0x13, 0xe3, 0x92, 0xb3, 0x4c, 0xc4, 0x89, 0x8c, 0xef, 0x43, 0x32, 0xa7, 0x10,
  19352. 0xf3, 0xcc, 0xe6, 0xe4, 0xf8, 0x04, 0x6a, 0xbb, 0x7e, 0x6a, 0x92, 0x2c, 0xcb, 0xf8, 0x88, 0x1c,
  19353. 0xd4, 0xb9, 0xce, 0x78, 0x72, 0x6a, 0x2f, 0x6e, 0x4a, 0xb6, 0x9c, 0x9e, 0x60, 0x14, 0x9b, 0x41,
  19354. 0x93, 0x94, 0xec, 0x19, 0x46, 0x33, 0xf1, 0xb4, 0x19, 0xd2, 0x12, 0xec, 0x47, 0x8c, 0x45, 0xdc,
  19355. 0x0e, 0x36, 0xf0, 0xae, 0xde, 0xf9, 0x89, 0x2f, 0xe5, 0x6e, 0xd7, 0x17, 0xf7, 0x71, 0x81, 0xd7,
  19356. 0xe8, 0x93, 0xc3, 0xba, 0xd5, 0x6d, 0x6c, 0x3c, 0x65, 0xdb, 0xbd, 0xb4, 0x9f, 0xcb, 0x80, 0xdb,
  19357. 0xf5, 0xe5, 0xfd, 0xdd, 0x1d, 0x34, 0xb6, 0xc8, 0x01, 0x66, 0x89, 0xc1, 0x09, 0x33, 0xcb, 0xf0,
  19358. 0xda, 0xa4, 0xde, 0x7a, 0xbb, 0x7e, 0x7e, 0x72, 0xc7, 0x7e, 0xf1, 0x57, 0x79, 0x52, 0xc2, 0x90,
  19359. 0xcf, 0xb8, 0x0d, 0x0d, 0x3b, 0x88, 0xd2, 0xb4, 0x3b, 0x91, 0x3a, 0xa7, 0x69, 0xf7, 0x50, 0xde,
  19360. 0xb7, 0x4e, 0xaa, 0x22, 0x19, 0x1c, 0x8f, 0xee, 0x64, 0x1a, 0xb9, 0xc3, 0x99, 0xe4, 0x2d, 0x52,
  19361. 0xc4, 0x08, 0xea, 0x78, 0x7a, 0xbe, 0x21, 0x91, 0x99, 0x7b, 0xbe, 0x0f, 0x7d, 0x58, 0x26, 0xc6,
  19362. 0x9e, 0x69, 0x74, 0x25, 0x62, 0xee, 0xb4, 0x65, 0x26, 0x23, 0xe4, 0xeb, 0x73, 0xbf, 0xfb, 0xf2,
  19363. 0x78, 0xee, 0xb3, 0x2f, 0x8f, 0xe7, 0xbe, 0xf8, 0xf2, 0x78, 0xee, 0xbf, 0xf3, 0x8f, 0x2f, 0x6c,
  19364. 0x94, 0xf1, 0x0f, 0x84, 0x97, 0xfe, 0x1e, 0x00, 0x00, 0xff, 0xff, 0xb5, 0x07, 0xc3, 0x8d, 0xb4,
  19365. 0x38, 0x00, 0x00,
  19366. }