protores.js 3.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941
  1. /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
  2. import * as $protobuf from "protobufjs/minimal";
  3. // Common aliases
  4. const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
  5. // Exported root namespace
  6. const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
  7. export const game = $root.game = (() => {
  8. /**
  9. * Namespace game.
  10. * @exports game
  11. * @namespace
  12. */
  13. const game = {};
  14. game.ping = (function() {
  15. /**
  16. * Properties of a ping.
  17. * @memberof game
  18. * @interface Iping
  19. */
  20. /**
  21. * Constructs a new ping.
  22. * @memberof game
  23. * @classdesc Represents a ping.
  24. * @implements Iping
  25. * @constructor
  26. * @param {game.Iping=} [properties] Properties to set
  27. */
  28. function ping(properties) {
  29. if (properties)
  30. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31. if (properties[keys[i]] != null)
  32. this[keys[i]] = properties[keys[i]];
  33. }
  34. /**
  35. * Creates a new ping instance using the specified properties.
  36. * @function create
  37. * @memberof game.ping
  38. * @static
  39. * @param {game.Iping=} [properties] Properties to set
  40. * @returns {game.ping} ping instance
  41. */
  42. ping.create = function create(properties) {
  43. return new ping(properties);
  44. };
  45. /**
  46. * Encodes the specified ping message. Does not implicitly {@link game.ping.verify|verify} messages.
  47. * @function encode
  48. * @memberof game.ping
  49. * @static
  50. * @param {game.Iping} message ping message or plain object to encode
  51. * @param {$protobuf.Writer} [writer] Writer to encode to
  52. * @returns {$protobuf.Writer} Writer
  53. */
  54. ping.encode = function encode(message, writer) {
  55. if (!writer)
  56. writer = $Writer.create();
  57. return writer;
  58. };
  59. /**
  60. * Encodes the specified ping message, length delimited. Does not implicitly {@link game.ping.verify|verify} messages.
  61. * @function encodeDelimited
  62. * @memberof game.ping
  63. * @static
  64. * @param {game.Iping} message ping message or plain object to encode
  65. * @param {$protobuf.Writer} [writer] Writer to encode to
  66. * @returns {$protobuf.Writer} Writer
  67. */
  68. ping.encodeDelimited = function encodeDelimited(message, writer) {
  69. return this.encode(message, writer).ldelim();
  70. };
  71. /**
  72. * Decodes a ping message from the specified reader or buffer.
  73. * @function decode
  74. * @memberof game.ping
  75. * @static
  76. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  77. * @param {number} [length] Message length if known beforehand
  78. * @returns {game.ping} ping
  79. * @throws {Error} If the payload is not a reader or valid buffer
  80. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  81. */
  82. ping.decode = function decode(reader, length) {
  83. if (!(reader instanceof $Reader))
  84. reader = $Reader.create(reader);
  85. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ping();
  86. while (reader.pos < end) {
  87. let tag = reader.uint32();
  88. switch (tag >>> 3) {
  89. default:
  90. reader.skipType(tag & 7);
  91. break;
  92. }
  93. }
  94. return message;
  95. };
  96. /**
  97. * Decodes a ping message from the specified reader or buffer, length delimited.
  98. * @function decodeDelimited
  99. * @memberof game.ping
  100. * @static
  101. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  102. * @returns {game.ping} ping
  103. * @throws {Error} If the payload is not a reader or valid buffer
  104. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  105. */
  106. ping.decodeDelimited = function decodeDelimited(reader) {
  107. if (!(reader instanceof $Reader))
  108. reader = new $Reader(reader);
  109. return this.decode(reader, reader.uint32());
  110. };
  111. /**
  112. * Verifies a ping message.
  113. * @function verify
  114. * @memberof game.ping
  115. * @static
  116. * @param {Object.<string,*>} message Plain object to verify
  117. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  118. */
  119. ping.verify = function verify(message) {
  120. if (typeof message !== "object" || message === null)
  121. return "object expected";
  122. return null;
  123. };
  124. /**
  125. * Creates a ping message from a plain object. Also converts values to their respective internal types.
  126. * @function fromObject
  127. * @memberof game.ping
  128. * @static
  129. * @param {Object.<string,*>} object Plain object
  130. * @returns {game.ping} ping
  131. */
  132. ping.fromObject = function fromObject(object) {
  133. if (object instanceof $root.game.ping)
  134. return object;
  135. return new $root.game.ping();
  136. };
  137. /**
  138. * Creates a plain object from a ping message. Also converts values to other types if specified.
  139. * @function toObject
  140. * @memberof game.ping
  141. * @static
  142. * @param {game.ping} message ping
  143. * @param {$protobuf.IConversionOptions} [options] Conversion options
  144. * @returns {Object.<string,*>} Plain object
  145. */
  146. ping.toObject = function toObject() {
  147. return {};
  148. };
  149. /**
  150. * Converts this ping to JSON.
  151. * @function toJSON
  152. * @memberof game.ping
  153. * @instance
  154. * @returns {Object.<string,*>} JSON object
  155. */
  156. ping.prototype.toJSON = function toJSON() {
  157. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  158. };
  159. return ping;
  160. })();
  161. game.ping_rsp = (function() {
  162. /**
  163. * Properties of a ping_rsp.
  164. * @memberof game
  165. * @interface Iping_rsp
  166. * @property {number|Long|null} [time] ping_rsp time
  167. */
  168. /**
  169. * Constructs a new ping_rsp.
  170. * @memberof game
  171. * @classdesc Represents a ping_rsp.
  172. * @implements Iping_rsp
  173. * @constructor
  174. * @param {game.Iping_rsp=} [properties] Properties to set
  175. */
  176. function ping_rsp(properties) {
  177. if (properties)
  178. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  179. if (properties[keys[i]] != null)
  180. this[keys[i]] = properties[keys[i]];
  181. }
  182. /**
  183. * ping_rsp time.
  184. * @member {number|Long} time
  185. * @memberof game.ping_rsp
  186. * @instance
  187. */
  188. ping_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  189. /**
  190. * Creates a new ping_rsp instance using the specified properties.
  191. * @function create
  192. * @memberof game.ping_rsp
  193. * @static
  194. * @param {game.Iping_rsp=} [properties] Properties to set
  195. * @returns {game.ping_rsp} ping_rsp instance
  196. */
  197. ping_rsp.create = function create(properties) {
  198. return new ping_rsp(properties);
  199. };
  200. /**
  201. * Encodes the specified ping_rsp message. Does not implicitly {@link game.ping_rsp.verify|verify} messages.
  202. * @function encode
  203. * @memberof game.ping_rsp
  204. * @static
  205. * @param {game.Iping_rsp} message ping_rsp message or plain object to encode
  206. * @param {$protobuf.Writer} [writer] Writer to encode to
  207. * @returns {$protobuf.Writer} Writer
  208. */
  209. ping_rsp.encode = function encode(message, writer) {
  210. if (!writer)
  211. writer = $Writer.create();
  212. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  213. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.time);
  214. return writer;
  215. };
  216. /**
  217. * Encodes the specified ping_rsp message, length delimited. Does not implicitly {@link game.ping_rsp.verify|verify} messages.
  218. * @function encodeDelimited
  219. * @memberof game.ping_rsp
  220. * @static
  221. * @param {game.Iping_rsp} message ping_rsp message or plain object to encode
  222. * @param {$protobuf.Writer} [writer] Writer to encode to
  223. * @returns {$protobuf.Writer} Writer
  224. */
  225. ping_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  226. return this.encode(message, writer).ldelim();
  227. };
  228. /**
  229. * Decodes a ping_rsp message from the specified reader or buffer.
  230. * @function decode
  231. * @memberof game.ping_rsp
  232. * @static
  233. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  234. * @param {number} [length] Message length if known beforehand
  235. * @returns {game.ping_rsp} ping_rsp
  236. * @throws {Error} If the payload is not a reader or valid buffer
  237. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  238. */
  239. ping_rsp.decode = function decode(reader, length) {
  240. if (!(reader instanceof $Reader))
  241. reader = $Reader.create(reader);
  242. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ping_rsp();
  243. while (reader.pos < end) {
  244. let tag = reader.uint32();
  245. switch (tag >>> 3) {
  246. case 1:
  247. message.time = reader.int64();
  248. break;
  249. default:
  250. reader.skipType(tag & 7);
  251. break;
  252. }
  253. }
  254. return message;
  255. };
  256. /**
  257. * Decodes a ping_rsp message from the specified reader or buffer, length delimited.
  258. * @function decodeDelimited
  259. * @memberof game.ping_rsp
  260. * @static
  261. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  262. * @returns {game.ping_rsp} ping_rsp
  263. * @throws {Error} If the payload is not a reader or valid buffer
  264. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  265. */
  266. ping_rsp.decodeDelimited = function decodeDelimited(reader) {
  267. if (!(reader instanceof $Reader))
  268. reader = new $Reader(reader);
  269. return this.decode(reader, reader.uint32());
  270. };
  271. /**
  272. * Verifies a ping_rsp message.
  273. * @function verify
  274. * @memberof game.ping_rsp
  275. * @static
  276. * @param {Object.<string,*>} message Plain object to verify
  277. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  278. */
  279. ping_rsp.verify = function verify(message) {
  280. if (typeof message !== "object" || message === null)
  281. return "object expected";
  282. if (message.time != null && message.hasOwnProperty("time"))
  283. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  284. return "time: integer|Long expected";
  285. return null;
  286. };
  287. /**
  288. * Creates a ping_rsp message from a plain object. Also converts values to their respective internal types.
  289. * @function fromObject
  290. * @memberof game.ping_rsp
  291. * @static
  292. * @param {Object.<string,*>} object Plain object
  293. * @returns {game.ping_rsp} ping_rsp
  294. */
  295. ping_rsp.fromObject = function fromObject(object) {
  296. if (object instanceof $root.game.ping_rsp)
  297. return object;
  298. let message = new $root.game.ping_rsp();
  299. if (object.time != null)
  300. if ($util.Long)
  301. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  302. else if (typeof object.time === "string")
  303. message.time = parseInt(object.time, 10);
  304. else if (typeof object.time === "number")
  305. message.time = object.time;
  306. else if (typeof object.time === "object")
  307. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  308. return message;
  309. };
  310. /**
  311. * Creates a plain object from a ping_rsp message. Also converts values to other types if specified.
  312. * @function toObject
  313. * @memberof game.ping_rsp
  314. * @static
  315. * @param {game.ping_rsp} message ping_rsp
  316. * @param {$protobuf.IConversionOptions} [options] Conversion options
  317. * @returns {Object.<string,*>} Plain object
  318. */
  319. ping_rsp.toObject = function toObject(message, options) {
  320. if (!options)
  321. options = {};
  322. let object = {};
  323. if (options.defaults)
  324. if ($util.Long) {
  325. let long = new $util.Long(0, 0, false);
  326. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  327. } else
  328. object.time = options.longs === String ? "0" : 0;
  329. if (message.time != null && message.hasOwnProperty("time"))
  330. if (typeof message.time === "number")
  331. object.time = options.longs === String ? String(message.time) : message.time;
  332. else
  333. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  334. return object;
  335. };
  336. /**
  337. * Converts this ping_rsp to JSON.
  338. * @function toJSON
  339. * @memberof game.ping_rsp
  340. * @instance
  341. * @returns {Object.<string,*>} JSON object
  342. */
  343. ping_rsp.prototype.toJSON = function toJSON() {
  344. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  345. };
  346. return ping_rsp;
  347. })();
  348. game.login = (function() {
  349. /**
  350. * Properties of a login.
  351. * @memberof game
  352. * @interface Ilogin
  353. * @property {number|Long|null} [sid] login sid
  354. * @property {string|null} [account] login account
  355. * @property {string|null} [channel] login channel
  356. */
  357. /**
  358. * Constructs a new login.
  359. * @memberof game
  360. * @classdesc Represents a login.
  361. * @implements Ilogin
  362. * @constructor
  363. * @param {game.Ilogin=} [properties] Properties to set
  364. */
  365. function login(properties) {
  366. if (properties)
  367. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  368. if (properties[keys[i]] != null)
  369. this[keys[i]] = properties[keys[i]];
  370. }
  371. /**
  372. * login sid.
  373. * @member {number|Long} sid
  374. * @memberof game.login
  375. * @instance
  376. */
  377. login.prototype.sid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  378. /**
  379. * login account.
  380. * @member {string} account
  381. * @memberof game.login
  382. * @instance
  383. */
  384. login.prototype.account = "";
  385. /**
  386. * login channel.
  387. * @member {string} channel
  388. * @memberof game.login
  389. * @instance
  390. */
  391. login.prototype.channel = "";
  392. /**
  393. * Creates a new login instance using the specified properties.
  394. * @function create
  395. * @memberof game.login
  396. * @static
  397. * @param {game.Ilogin=} [properties] Properties to set
  398. * @returns {game.login} login instance
  399. */
  400. login.create = function create(properties) {
  401. return new login(properties);
  402. };
  403. /**
  404. * Encodes the specified login message. Does not implicitly {@link game.login.verify|verify} messages.
  405. * @function encode
  406. * @memberof game.login
  407. * @static
  408. * @param {game.Ilogin} message login message or plain object to encode
  409. * @param {$protobuf.Writer} [writer] Writer to encode to
  410. * @returns {$protobuf.Writer} Writer
  411. */
  412. login.encode = function encode(message, writer) {
  413. if (!writer)
  414. writer = $Writer.create();
  415. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  416. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.sid);
  417. if (message.account != null && Object.hasOwnProperty.call(message, "account"))
  418. writer.uint32(/* id 2, wireType 2 =*/18).string(message.account);
  419. if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
  420. writer.uint32(/* id 3, wireType 2 =*/26).string(message.channel);
  421. return writer;
  422. };
  423. /**
  424. * Encodes the specified login message, length delimited. Does not implicitly {@link game.login.verify|verify} messages.
  425. * @function encodeDelimited
  426. * @memberof game.login
  427. * @static
  428. * @param {game.Ilogin} message login message or plain object to encode
  429. * @param {$protobuf.Writer} [writer] Writer to encode to
  430. * @returns {$protobuf.Writer} Writer
  431. */
  432. login.encodeDelimited = function encodeDelimited(message, writer) {
  433. return this.encode(message, writer).ldelim();
  434. };
  435. /**
  436. * Decodes a login message from the specified reader or buffer.
  437. * @function decode
  438. * @memberof game.login
  439. * @static
  440. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  441. * @param {number} [length] Message length if known beforehand
  442. * @returns {game.login} login
  443. * @throws {Error} If the payload is not a reader or valid buffer
  444. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  445. */
  446. login.decode = function decode(reader, length) {
  447. if (!(reader instanceof $Reader))
  448. reader = $Reader.create(reader);
  449. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.login();
  450. while (reader.pos < end) {
  451. let tag = reader.uint32();
  452. switch (tag >>> 3) {
  453. case 1:
  454. message.sid = reader.int64();
  455. break;
  456. case 2:
  457. message.account = reader.string();
  458. break;
  459. case 3:
  460. message.channel = reader.string();
  461. break;
  462. default:
  463. reader.skipType(tag & 7);
  464. break;
  465. }
  466. }
  467. return message;
  468. };
  469. /**
  470. * Decodes a login message from the specified reader or buffer, length delimited.
  471. * @function decodeDelimited
  472. * @memberof game.login
  473. * @static
  474. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  475. * @returns {game.login} login
  476. * @throws {Error} If the payload is not a reader or valid buffer
  477. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  478. */
  479. login.decodeDelimited = function decodeDelimited(reader) {
  480. if (!(reader instanceof $Reader))
  481. reader = new $Reader(reader);
  482. return this.decode(reader, reader.uint32());
  483. };
  484. /**
  485. * Verifies a login message.
  486. * @function verify
  487. * @memberof game.login
  488. * @static
  489. * @param {Object.<string,*>} message Plain object to verify
  490. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  491. */
  492. login.verify = function verify(message) {
  493. if (typeof message !== "object" || message === null)
  494. return "object expected";
  495. if (message.sid != null && message.hasOwnProperty("sid"))
  496. if (!$util.isInteger(message.sid) && !(message.sid && $util.isInteger(message.sid.low) && $util.isInteger(message.sid.high)))
  497. return "sid: integer|Long expected";
  498. if (message.account != null && message.hasOwnProperty("account"))
  499. if (!$util.isString(message.account))
  500. return "account: string expected";
  501. if (message.channel != null && message.hasOwnProperty("channel"))
  502. if (!$util.isString(message.channel))
  503. return "channel: string expected";
  504. return null;
  505. };
  506. /**
  507. * Creates a login message from a plain object. Also converts values to their respective internal types.
  508. * @function fromObject
  509. * @memberof game.login
  510. * @static
  511. * @param {Object.<string,*>} object Plain object
  512. * @returns {game.login} login
  513. */
  514. login.fromObject = function fromObject(object) {
  515. if (object instanceof $root.game.login)
  516. return object;
  517. let message = new $root.game.login();
  518. if (object.sid != null)
  519. if ($util.Long)
  520. (message.sid = $util.Long.fromValue(object.sid)).unsigned = false;
  521. else if (typeof object.sid === "string")
  522. message.sid = parseInt(object.sid, 10);
  523. else if (typeof object.sid === "number")
  524. message.sid = object.sid;
  525. else if (typeof object.sid === "object")
  526. message.sid = new $util.LongBits(object.sid.low >>> 0, object.sid.high >>> 0).toNumber();
  527. if (object.account != null)
  528. message.account = String(object.account);
  529. if (object.channel != null)
  530. message.channel = String(object.channel);
  531. return message;
  532. };
  533. /**
  534. * Creates a plain object from a login message. Also converts values to other types if specified.
  535. * @function toObject
  536. * @memberof game.login
  537. * @static
  538. * @param {game.login} message login
  539. * @param {$protobuf.IConversionOptions} [options] Conversion options
  540. * @returns {Object.<string,*>} Plain object
  541. */
  542. login.toObject = function toObject(message, options) {
  543. if (!options)
  544. options = {};
  545. let object = {};
  546. if (options.defaults) {
  547. if ($util.Long) {
  548. let long = new $util.Long(0, 0, false);
  549. object.sid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  550. } else
  551. object.sid = options.longs === String ? "0" : 0;
  552. object.account = "";
  553. object.channel = "";
  554. }
  555. if (message.sid != null && message.hasOwnProperty("sid"))
  556. if (typeof message.sid === "number")
  557. object.sid = options.longs === String ? String(message.sid) : message.sid;
  558. else
  559. object.sid = options.longs === String ? $util.Long.prototype.toString.call(message.sid) : options.longs === Number ? new $util.LongBits(message.sid.low >>> 0, message.sid.high >>> 0).toNumber() : message.sid;
  560. if (message.account != null && message.hasOwnProperty("account"))
  561. object.account = message.account;
  562. if (message.channel != null && message.hasOwnProperty("channel"))
  563. object.channel = message.channel;
  564. return object;
  565. };
  566. /**
  567. * Converts this login to JSON.
  568. * @function toJSON
  569. * @memberof game.login
  570. * @instance
  571. * @returns {Object.<string,*>} JSON object
  572. */
  573. login.prototype.toJSON = function toJSON() {
  574. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  575. };
  576. return login;
  577. })();
  578. game.login_rsp = (function() {
  579. /**
  580. * Properties of a login_rsp.
  581. * @memberof game
  582. * @interface Ilogin_rsp
  583. * @property {number|Long|null} [errno] login_rsp errno
  584. */
  585. /**
  586. * Constructs a new login_rsp.
  587. * @memberof game
  588. * @classdesc Represents a login_rsp.
  589. * @implements Ilogin_rsp
  590. * @constructor
  591. * @param {game.Ilogin_rsp=} [properties] Properties to set
  592. */
  593. function login_rsp(properties) {
  594. if (properties)
  595. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  596. if (properties[keys[i]] != null)
  597. this[keys[i]] = properties[keys[i]];
  598. }
  599. /**
  600. * login_rsp errno.
  601. * @member {number|Long} errno
  602. * @memberof game.login_rsp
  603. * @instance
  604. */
  605. login_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  606. /**
  607. * Creates a new login_rsp instance using the specified properties.
  608. * @function create
  609. * @memberof game.login_rsp
  610. * @static
  611. * @param {game.Ilogin_rsp=} [properties] Properties to set
  612. * @returns {game.login_rsp} login_rsp instance
  613. */
  614. login_rsp.create = function create(properties) {
  615. return new login_rsp(properties);
  616. };
  617. /**
  618. * Encodes the specified login_rsp message. Does not implicitly {@link game.login_rsp.verify|verify} messages.
  619. * @function encode
  620. * @memberof game.login_rsp
  621. * @static
  622. * @param {game.Ilogin_rsp} message login_rsp message or plain object to encode
  623. * @param {$protobuf.Writer} [writer] Writer to encode to
  624. * @returns {$protobuf.Writer} Writer
  625. */
  626. login_rsp.encode = function encode(message, writer) {
  627. if (!writer)
  628. writer = $Writer.create();
  629. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  630. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  631. return writer;
  632. };
  633. /**
  634. * Encodes the specified login_rsp message, length delimited. Does not implicitly {@link game.login_rsp.verify|verify} messages.
  635. * @function encodeDelimited
  636. * @memberof game.login_rsp
  637. * @static
  638. * @param {game.Ilogin_rsp} message login_rsp message or plain object to encode
  639. * @param {$protobuf.Writer} [writer] Writer to encode to
  640. * @returns {$protobuf.Writer} Writer
  641. */
  642. login_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  643. return this.encode(message, writer).ldelim();
  644. };
  645. /**
  646. * Decodes a login_rsp message from the specified reader or buffer.
  647. * @function decode
  648. * @memberof game.login_rsp
  649. * @static
  650. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  651. * @param {number} [length] Message length if known beforehand
  652. * @returns {game.login_rsp} login_rsp
  653. * @throws {Error} If the payload is not a reader or valid buffer
  654. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  655. */
  656. login_rsp.decode = function decode(reader, length) {
  657. if (!(reader instanceof $Reader))
  658. reader = $Reader.create(reader);
  659. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.login_rsp();
  660. while (reader.pos < end) {
  661. let tag = reader.uint32();
  662. switch (tag >>> 3) {
  663. case 1:
  664. message.errno = reader.int64();
  665. break;
  666. default:
  667. reader.skipType(tag & 7);
  668. break;
  669. }
  670. }
  671. return message;
  672. };
  673. /**
  674. * Decodes a login_rsp message from the specified reader or buffer, length delimited.
  675. * @function decodeDelimited
  676. * @memberof game.login_rsp
  677. * @static
  678. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  679. * @returns {game.login_rsp} login_rsp
  680. * @throws {Error} If the payload is not a reader or valid buffer
  681. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  682. */
  683. login_rsp.decodeDelimited = function decodeDelimited(reader) {
  684. if (!(reader instanceof $Reader))
  685. reader = new $Reader(reader);
  686. return this.decode(reader, reader.uint32());
  687. };
  688. /**
  689. * Verifies a login_rsp message.
  690. * @function verify
  691. * @memberof game.login_rsp
  692. * @static
  693. * @param {Object.<string,*>} message Plain object to verify
  694. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  695. */
  696. login_rsp.verify = function verify(message) {
  697. if (typeof message !== "object" || message === null)
  698. return "object expected";
  699. if (message.errno != null && message.hasOwnProperty("errno"))
  700. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  701. return "errno: integer|Long expected";
  702. return null;
  703. };
  704. /**
  705. * Creates a login_rsp message from a plain object. Also converts values to their respective internal types.
  706. * @function fromObject
  707. * @memberof game.login_rsp
  708. * @static
  709. * @param {Object.<string,*>} object Plain object
  710. * @returns {game.login_rsp} login_rsp
  711. */
  712. login_rsp.fromObject = function fromObject(object) {
  713. if (object instanceof $root.game.login_rsp)
  714. return object;
  715. let message = new $root.game.login_rsp();
  716. if (object.errno != null)
  717. if ($util.Long)
  718. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  719. else if (typeof object.errno === "string")
  720. message.errno = parseInt(object.errno, 10);
  721. else if (typeof object.errno === "number")
  722. message.errno = object.errno;
  723. else if (typeof object.errno === "object")
  724. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  725. return message;
  726. };
  727. /**
  728. * Creates a plain object from a login_rsp message. Also converts values to other types if specified.
  729. * @function toObject
  730. * @memberof game.login_rsp
  731. * @static
  732. * @param {game.login_rsp} message login_rsp
  733. * @param {$protobuf.IConversionOptions} [options] Conversion options
  734. * @returns {Object.<string,*>} Plain object
  735. */
  736. login_rsp.toObject = function toObject(message, options) {
  737. if (!options)
  738. options = {};
  739. let object = {};
  740. if (options.defaults)
  741. if ($util.Long) {
  742. let long = new $util.Long(0, 0, false);
  743. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  744. } else
  745. object.errno = options.longs === String ? "0" : 0;
  746. if (message.errno != null && message.hasOwnProperty("errno"))
  747. if (typeof message.errno === "number")
  748. object.errno = options.longs === String ? String(message.errno) : message.errno;
  749. else
  750. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  751. return object;
  752. };
  753. /**
  754. * Converts this login_rsp to JSON.
  755. * @function toJSON
  756. * @memberof game.login_rsp
  757. * @instance
  758. * @returns {Object.<string,*>} JSON object
  759. */
  760. login_rsp.prototype.toJSON = function toJSON() {
  761. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  762. };
  763. return login_rsp;
  764. })();
  765. game.create = (function() {
  766. /**
  767. * Properties of a create.
  768. * @memberof game
  769. * @interface Icreate
  770. * @property {string|null} [nickname] create nickname
  771. */
  772. /**
  773. * Constructs a new create.
  774. * @memberof game
  775. * @classdesc Represents a create.
  776. * @implements Icreate
  777. * @constructor
  778. * @param {game.Icreate=} [properties] Properties to set
  779. */
  780. function create(properties) {
  781. if (properties)
  782. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  783. if (properties[keys[i]] != null)
  784. this[keys[i]] = properties[keys[i]];
  785. }
  786. /**
  787. * create nickname.
  788. * @member {string} nickname
  789. * @memberof game.create
  790. * @instance
  791. */
  792. create.prototype.nickname = "";
  793. /**
  794. * Creates a new create instance using the specified properties.
  795. * @function create
  796. * @memberof game.create
  797. * @static
  798. * @param {game.Icreate=} [properties] Properties to set
  799. * @returns {game.create} create instance
  800. */
  801. create.create = function create(properties) {
  802. return new create(properties);
  803. };
  804. /**
  805. * Encodes the specified create message. Does not implicitly {@link game.create.verify|verify} messages.
  806. * @function encode
  807. * @memberof game.create
  808. * @static
  809. * @param {game.Icreate} message create message or plain object to encode
  810. * @param {$protobuf.Writer} [writer] Writer to encode to
  811. * @returns {$protobuf.Writer} Writer
  812. */
  813. create.encode = function encode(message, writer) {
  814. if (!writer)
  815. writer = $Writer.create();
  816. if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
  817. writer.uint32(/* id 1, wireType 2 =*/10).string(message.nickname);
  818. return writer;
  819. };
  820. /**
  821. * Encodes the specified create message, length delimited. Does not implicitly {@link game.create.verify|verify} messages.
  822. * @function encodeDelimited
  823. * @memberof game.create
  824. * @static
  825. * @param {game.Icreate} message create message or plain object to encode
  826. * @param {$protobuf.Writer} [writer] Writer to encode to
  827. * @returns {$protobuf.Writer} Writer
  828. */
  829. create.encodeDelimited = function encodeDelimited(message, writer) {
  830. return this.encode(message, writer).ldelim();
  831. };
  832. /**
  833. * Decodes a create message from the specified reader or buffer.
  834. * @function decode
  835. * @memberof game.create
  836. * @static
  837. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  838. * @param {number} [length] Message length if known beforehand
  839. * @returns {game.create} create
  840. * @throws {Error} If the payload is not a reader or valid buffer
  841. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  842. */
  843. create.decode = function decode(reader, length) {
  844. if (!(reader instanceof $Reader))
  845. reader = $Reader.create(reader);
  846. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create();
  847. while (reader.pos < end) {
  848. let tag = reader.uint32();
  849. switch (tag >>> 3) {
  850. case 1:
  851. message.nickname = reader.string();
  852. break;
  853. default:
  854. reader.skipType(tag & 7);
  855. break;
  856. }
  857. }
  858. return message;
  859. };
  860. /**
  861. * Decodes a create message from the specified reader or buffer, length delimited.
  862. * @function decodeDelimited
  863. * @memberof game.create
  864. * @static
  865. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  866. * @returns {game.create} create
  867. * @throws {Error} If the payload is not a reader or valid buffer
  868. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  869. */
  870. create.decodeDelimited = function decodeDelimited(reader) {
  871. if (!(reader instanceof $Reader))
  872. reader = new $Reader(reader);
  873. return this.decode(reader, reader.uint32());
  874. };
  875. /**
  876. * Verifies a create message.
  877. * @function verify
  878. * @memberof game.create
  879. * @static
  880. * @param {Object.<string,*>} message Plain object to verify
  881. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  882. */
  883. create.verify = function verify(message) {
  884. if (typeof message !== "object" || message === null)
  885. return "object expected";
  886. if (message.nickname != null && message.hasOwnProperty("nickname"))
  887. if (!$util.isString(message.nickname))
  888. return "nickname: string expected";
  889. return null;
  890. };
  891. /**
  892. * Creates a create message from a plain object. Also converts values to their respective internal types.
  893. * @function fromObject
  894. * @memberof game.create
  895. * @static
  896. * @param {Object.<string,*>} object Plain object
  897. * @returns {game.create} create
  898. */
  899. create.fromObject = function fromObject(object) {
  900. if (object instanceof $root.game.create)
  901. return object;
  902. let message = new $root.game.create();
  903. if (object.nickname != null)
  904. message.nickname = String(object.nickname);
  905. return message;
  906. };
  907. /**
  908. * Creates a plain object from a create message. Also converts values to other types if specified.
  909. * @function toObject
  910. * @memberof game.create
  911. * @static
  912. * @param {game.create} message create
  913. * @param {$protobuf.IConversionOptions} [options] Conversion options
  914. * @returns {Object.<string,*>} Plain object
  915. */
  916. create.toObject = function toObject(message, options) {
  917. if (!options)
  918. options = {};
  919. let object = {};
  920. if (options.defaults)
  921. object.nickname = "";
  922. if (message.nickname != null && message.hasOwnProperty("nickname"))
  923. object.nickname = message.nickname;
  924. return object;
  925. };
  926. /**
  927. * Converts this create to JSON.
  928. * @function toJSON
  929. * @memberof game.create
  930. * @instance
  931. * @returns {Object.<string,*>} JSON object
  932. */
  933. create.prototype.toJSON = function toJSON() {
  934. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  935. };
  936. return create;
  937. })();
  938. game.create_rsp = (function() {
  939. /**
  940. * Properties of a create_rsp.
  941. * @memberof game
  942. * @interface Icreate_rsp
  943. * @property {number|Long|null} [errno] create_rsp errno
  944. */
  945. /**
  946. * Constructs a new create_rsp.
  947. * @memberof game
  948. * @classdesc Represents a create_rsp.
  949. * @implements Icreate_rsp
  950. * @constructor
  951. * @param {game.Icreate_rsp=} [properties] Properties to set
  952. */
  953. function create_rsp(properties) {
  954. if (properties)
  955. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  956. if (properties[keys[i]] != null)
  957. this[keys[i]] = properties[keys[i]];
  958. }
  959. /**
  960. * create_rsp errno.
  961. * @member {number|Long} errno
  962. * @memberof game.create_rsp
  963. * @instance
  964. */
  965. create_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  966. /**
  967. * Creates a new create_rsp instance using the specified properties.
  968. * @function create
  969. * @memberof game.create_rsp
  970. * @static
  971. * @param {game.Icreate_rsp=} [properties] Properties to set
  972. * @returns {game.create_rsp} create_rsp instance
  973. */
  974. create_rsp.create = function create(properties) {
  975. return new create_rsp(properties);
  976. };
  977. /**
  978. * Encodes the specified create_rsp message. Does not implicitly {@link game.create_rsp.verify|verify} messages.
  979. * @function encode
  980. * @memberof game.create_rsp
  981. * @static
  982. * @param {game.Icreate_rsp} message create_rsp message or plain object to encode
  983. * @param {$protobuf.Writer} [writer] Writer to encode to
  984. * @returns {$protobuf.Writer} Writer
  985. */
  986. create_rsp.encode = function encode(message, writer) {
  987. if (!writer)
  988. writer = $Writer.create();
  989. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  990. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  991. return writer;
  992. };
  993. /**
  994. * Encodes the specified create_rsp message, length delimited. Does not implicitly {@link game.create_rsp.verify|verify} messages.
  995. * @function encodeDelimited
  996. * @memberof game.create_rsp
  997. * @static
  998. * @param {game.Icreate_rsp} message create_rsp message or plain object to encode
  999. * @param {$protobuf.Writer} [writer] Writer to encode to
  1000. * @returns {$protobuf.Writer} Writer
  1001. */
  1002. create_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  1003. return this.encode(message, writer).ldelim();
  1004. };
  1005. /**
  1006. * Decodes a create_rsp message from the specified reader or buffer.
  1007. * @function decode
  1008. * @memberof game.create_rsp
  1009. * @static
  1010. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1011. * @param {number} [length] Message length if known beforehand
  1012. * @returns {game.create_rsp} create_rsp
  1013. * @throws {Error} If the payload is not a reader or valid buffer
  1014. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1015. */
  1016. create_rsp.decode = function decode(reader, length) {
  1017. if (!(reader instanceof $Reader))
  1018. reader = $Reader.create(reader);
  1019. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create_rsp();
  1020. while (reader.pos < end) {
  1021. let tag = reader.uint32();
  1022. switch (tag >>> 3) {
  1023. case 1:
  1024. message.errno = reader.int64();
  1025. break;
  1026. default:
  1027. reader.skipType(tag & 7);
  1028. break;
  1029. }
  1030. }
  1031. return message;
  1032. };
  1033. /**
  1034. * Decodes a create_rsp message from the specified reader or buffer, length delimited.
  1035. * @function decodeDelimited
  1036. * @memberof game.create_rsp
  1037. * @static
  1038. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1039. * @returns {game.create_rsp} create_rsp
  1040. * @throws {Error} If the payload is not a reader or valid buffer
  1041. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1042. */
  1043. create_rsp.decodeDelimited = function decodeDelimited(reader) {
  1044. if (!(reader instanceof $Reader))
  1045. reader = new $Reader(reader);
  1046. return this.decode(reader, reader.uint32());
  1047. };
  1048. /**
  1049. * Verifies a create_rsp message.
  1050. * @function verify
  1051. * @memberof game.create_rsp
  1052. * @static
  1053. * @param {Object.<string,*>} message Plain object to verify
  1054. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1055. */
  1056. create_rsp.verify = function verify(message) {
  1057. if (typeof message !== "object" || message === null)
  1058. return "object expected";
  1059. if (message.errno != null && message.hasOwnProperty("errno"))
  1060. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  1061. return "errno: integer|Long expected";
  1062. return null;
  1063. };
  1064. /**
  1065. * Creates a create_rsp message from a plain object. Also converts values to their respective internal types.
  1066. * @function fromObject
  1067. * @memberof game.create_rsp
  1068. * @static
  1069. * @param {Object.<string,*>} object Plain object
  1070. * @returns {game.create_rsp} create_rsp
  1071. */
  1072. create_rsp.fromObject = function fromObject(object) {
  1073. if (object instanceof $root.game.create_rsp)
  1074. return object;
  1075. let message = new $root.game.create_rsp();
  1076. if (object.errno != null)
  1077. if ($util.Long)
  1078. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  1079. else if (typeof object.errno === "string")
  1080. message.errno = parseInt(object.errno, 10);
  1081. else if (typeof object.errno === "number")
  1082. message.errno = object.errno;
  1083. else if (typeof object.errno === "object")
  1084. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  1085. return message;
  1086. };
  1087. /**
  1088. * Creates a plain object from a create_rsp message. Also converts values to other types if specified.
  1089. * @function toObject
  1090. * @memberof game.create_rsp
  1091. * @static
  1092. * @param {game.create_rsp} message create_rsp
  1093. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1094. * @returns {Object.<string,*>} Plain object
  1095. */
  1096. create_rsp.toObject = function toObject(message, options) {
  1097. if (!options)
  1098. options = {};
  1099. let object = {};
  1100. if (options.defaults)
  1101. if ($util.Long) {
  1102. let long = new $util.Long(0, 0, false);
  1103. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1104. } else
  1105. object.errno = options.longs === String ? "0" : 0;
  1106. if (message.errno != null && message.hasOwnProperty("errno"))
  1107. if (typeof message.errno === "number")
  1108. object.errno = options.longs === String ? String(message.errno) : message.errno;
  1109. else
  1110. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  1111. return object;
  1112. };
  1113. /**
  1114. * Converts this create_rsp to JSON.
  1115. * @function toJSON
  1116. * @memberof game.create_rsp
  1117. * @instance
  1118. * @returns {Object.<string,*>} JSON object
  1119. */
  1120. create_rsp.prototype.toJSON = function toJSON() {
  1121. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1122. };
  1123. return create_rsp;
  1124. })();
  1125. game.user = (function() {
  1126. /**
  1127. * Properties of a user.
  1128. * @memberof game
  1129. * @interface Iuser
  1130. * @property {string|null} [uid] user uid
  1131. * @property {string|null} [nickname] user nickname
  1132. * @property {number|Long|null} [level] user level
  1133. * @property {number|Long|null} [exp] user exp
  1134. * @property {number|Long|null} [avatar] user avatar
  1135. * @property {number|Long|null} [svrtime] user svrtime
  1136. * @property {number|Long|null} [renameTime] user renameTime
  1137. * @property {number|Long|null} [createtime] user createtime
  1138. * @property {Array.<game.Iid_num>|null} [currency] user currency
  1139. */
  1140. /**
  1141. * Constructs a new user.
  1142. * @memberof game
  1143. * @classdesc Represents a user.
  1144. * @implements Iuser
  1145. * @constructor
  1146. * @param {game.Iuser=} [properties] Properties to set
  1147. */
  1148. function user(properties) {
  1149. this.currency = [];
  1150. if (properties)
  1151. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1152. if (properties[keys[i]] != null)
  1153. this[keys[i]] = properties[keys[i]];
  1154. }
  1155. /**
  1156. * user uid.
  1157. * @member {string} uid
  1158. * @memberof game.user
  1159. * @instance
  1160. */
  1161. user.prototype.uid = "";
  1162. /**
  1163. * user nickname.
  1164. * @member {string} nickname
  1165. * @memberof game.user
  1166. * @instance
  1167. */
  1168. user.prototype.nickname = "";
  1169. /**
  1170. * user level.
  1171. * @member {number|Long} level
  1172. * @memberof game.user
  1173. * @instance
  1174. */
  1175. user.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1176. /**
  1177. * user exp.
  1178. * @member {number|Long} exp
  1179. * @memberof game.user
  1180. * @instance
  1181. */
  1182. user.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1183. /**
  1184. * user avatar.
  1185. * @member {number|Long} avatar
  1186. * @memberof game.user
  1187. * @instance
  1188. */
  1189. user.prototype.avatar = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1190. /**
  1191. * user svrtime.
  1192. * @member {number|Long} svrtime
  1193. * @memberof game.user
  1194. * @instance
  1195. */
  1196. user.prototype.svrtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1197. /**
  1198. * user renameTime.
  1199. * @member {number|Long} renameTime
  1200. * @memberof game.user
  1201. * @instance
  1202. */
  1203. user.prototype.renameTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1204. /**
  1205. * user createtime.
  1206. * @member {number|Long} createtime
  1207. * @memberof game.user
  1208. * @instance
  1209. */
  1210. user.prototype.createtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1211. /**
  1212. * user currency.
  1213. * @member {Array.<game.Iid_num>} currency
  1214. * @memberof game.user
  1215. * @instance
  1216. */
  1217. user.prototype.currency = $util.emptyArray;
  1218. /**
  1219. * Creates a new user instance using the specified properties.
  1220. * @function create
  1221. * @memberof game.user
  1222. * @static
  1223. * @param {game.Iuser=} [properties] Properties to set
  1224. * @returns {game.user} user instance
  1225. */
  1226. user.create = function create(properties) {
  1227. return new user(properties);
  1228. };
  1229. /**
  1230. * Encodes the specified user message. Does not implicitly {@link game.user.verify|verify} messages.
  1231. * @function encode
  1232. * @memberof game.user
  1233. * @static
  1234. * @param {game.Iuser} message user message or plain object to encode
  1235. * @param {$protobuf.Writer} [writer] Writer to encode to
  1236. * @returns {$protobuf.Writer} Writer
  1237. */
  1238. user.encode = function encode(message, writer) {
  1239. if (!writer)
  1240. writer = $Writer.create();
  1241. if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
  1242. writer.uint32(/* id 1, wireType 2 =*/10).string(message.uid);
  1243. if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
  1244. writer.uint32(/* id 2, wireType 2 =*/18).string(message.nickname);
  1245. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  1246. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.level);
  1247. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  1248. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.exp);
  1249. if (message.avatar != null && Object.hasOwnProperty.call(message, "avatar"))
  1250. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.avatar);
  1251. if (message.svrtime != null && Object.hasOwnProperty.call(message, "svrtime"))
  1252. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.svrtime);
  1253. if (message.renameTime != null && Object.hasOwnProperty.call(message, "renameTime"))
  1254. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.renameTime);
  1255. if (message.createtime != null && Object.hasOwnProperty.call(message, "createtime"))
  1256. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.createtime);
  1257. if (message.currency != null && message.currency.length)
  1258. for (let i = 0; i < message.currency.length; ++i)
  1259. $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
  1260. return writer;
  1261. };
  1262. /**
  1263. * Encodes the specified user message, length delimited. Does not implicitly {@link game.user.verify|verify} messages.
  1264. * @function encodeDelimited
  1265. * @memberof game.user
  1266. * @static
  1267. * @param {game.Iuser} message user message or plain object to encode
  1268. * @param {$protobuf.Writer} [writer] Writer to encode to
  1269. * @returns {$protobuf.Writer} Writer
  1270. */
  1271. user.encodeDelimited = function encodeDelimited(message, writer) {
  1272. return this.encode(message, writer).ldelim();
  1273. };
  1274. /**
  1275. * Decodes a user message from the specified reader or buffer.
  1276. * @function decode
  1277. * @memberof game.user
  1278. * @static
  1279. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1280. * @param {number} [length] Message length if known beforehand
  1281. * @returns {game.user} user
  1282. * @throws {Error} If the payload is not a reader or valid buffer
  1283. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1284. */
  1285. user.decode = function decode(reader, length) {
  1286. if (!(reader instanceof $Reader))
  1287. reader = $Reader.create(reader);
  1288. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.user();
  1289. while (reader.pos < end) {
  1290. let tag = reader.uint32();
  1291. switch (tag >>> 3) {
  1292. case 1:
  1293. message.uid = reader.string();
  1294. break;
  1295. case 2:
  1296. message.nickname = reader.string();
  1297. break;
  1298. case 3:
  1299. message.level = reader.int64();
  1300. break;
  1301. case 4:
  1302. message.exp = reader.int64();
  1303. break;
  1304. case 5:
  1305. message.avatar = reader.int64();
  1306. break;
  1307. case 6:
  1308. message.svrtime = reader.int64();
  1309. break;
  1310. case 7:
  1311. message.renameTime = reader.int64();
  1312. break;
  1313. case 8:
  1314. message.createtime = reader.int64();
  1315. break;
  1316. case 20:
  1317. if (!(message.currency && message.currency.length))
  1318. message.currency = [];
  1319. message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
  1320. break;
  1321. default:
  1322. reader.skipType(tag & 7);
  1323. break;
  1324. }
  1325. }
  1326. return message;
  1327. };
  1328. /**
  1329. * Decodes a user message from the specified reader or buffer, length delimited.
  1330. * @function decodeDelimited
  1331. * @memberof game.user
  1332. * @static
  1333. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1334. * @returns {game.user} user
  1335. * @throws {Error} If the payload is not a reader or valid buffer
  1336. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1337. */
  1338. user.decodeDelimited = function decodeDelimited(reader) {
  1339. if (!(reader instanceof $Reader))
  1340. reader = new $Reader(reader);
  1341. return this.decode(reader, reader.uint32());
  1342. };
  1343. /**
  1344. * Verifies a user message.
  1345. * @function verify
  1346. * @memberof game.user
  1347. * @static
  1348. * @param {Object.<string,*>} message Plain object to verify
  1349. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1350. */
  1351. user.verify = function verify(message) {
  1352. if (typeof message !== "object" || message === null)
  1353. return "object expected";
  1354. if (message.uid != null && message.hasOwnProperty("uid"))
  1355. if (!$util.isString(message.uid))
  1356. return "uid: string expected";
  1357. if (message.nickname != null && message.hasOwnProperty("nickname"))
  1358. if (!$util.isString(message.nickname))
  1359. return "nickname: string expected";
  1360. if (message.level != null && message.hasOwnProperty("level"))
  1361. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  1362. return "level: integer|Long expected";
  1363. if (message.exp != null && message.hasOwnProperty("exp"))
  1364. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  1365. return "exp: integer|Long expected";
  1366. if (message.avatar != null && message.hasOwnProperty("avatar"))
  1367. if (!$util.isInteger(message.avatar) && !(message.avatar && $util.isInteger(message.avatar.low) && $util.isInteger(message.avatar.high)))
  1368. return "avatar: integer|Long expected";
  1369. if (message.svrtime != null && message.hasOwnProperty("svrtime"))
  1370. if (!$util.isInteger(message.svrtime) && !(message.svrtime && $util.isInteger(message.svrtime.low) && $util.isInteger(message.svrtime.high)))
  1371. return "svrtime: integer|Long expected";
  1372. if (message.renameTime != null && message.hasOwnProperty("renameTime"))
  1373. if (!$util.isInteger(message.renameTime) && !(message.renameTime && $util.isInteger(message.renameTime.low) && $util.isInteger(message.renameTime.high)))
  1374. return "renameTime: integer|Long expected";
  1375. if (message.createtime != null && message.hasOwnProperty("createtime"))
  1376. if (!$util.isInteger(message.createtime) && !(message.createtime && $util.isInteger(message.createtime.low) && $util.isInteger(message.createtime.high)))
  1377. return "createtime: integer|Long expected";
  1378. if (message.currency != null && message.hasOwnProperty("currency")) {
  1379. if (!Array.isArray(message.currency))
  1380. return "currency: array expected";
  1381. for (let i = 0; i < message.currency.length; ++i) {
  1382. let error = $root.game.id_num.verify(message.currency[i]);
  1383. if (error)
  1384. return "currency." + error;
  1385. }
  1386. }
  1387. return null;
  1388. };
  1389. /**
  1390. * Creates a user message from a plain object. Also converts values to their respective internal types.
  1391. * @function fromObject
  1392. * @memberof game.user
  1393. * @static
  1394. * @param {Object.<string,*>} object Plain object
  1395. * @returns {game.user} user
  1396. */
  1397. user.fromObject = function fromObject(object) {
  1398. if (object instanceof $root.game.user)
  1399. return object;
  1400. let message = new $root.game.user();
  1401. if (object.uid != null)
  1402. message.uid = String(object.uid);
  1403. if (object.nickname != null)
  1404. message.nickname = String(object.nickname);
  1405. if (object.level != null)
  1406. if ($util.Long)
  1407. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  1408. else if (typeof object.level === "string")
  1409. message.level = parseInt(object.level, 10);
  1410. else if (typeof object.level === "number")
  1411. message.level = object.level;
  1412. else if (typeof object.level === "object")
  1413. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  1414. if (object.exp != null)
  1415. if ($util.Long)
  1416. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  1417. else if (typeof object.exp === "string")
  1418. message.exp = parseInt(object.exp, 10);
  1419. else if (typeof object.exp === "number")
  1420. message.exp = object.exp;
  1421. else if (typeof object.exp === "object")
  1422. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  1423. if (object.avatar != null)
  1424. if ($util.Long)
  1425. (message.avatar = $util.Long.fromValue(object.avatar)).unsigned = false;
  1426. else if (typeof object.avatar === "string")
  1427. message.avatar = parseInt(object.avatar, 10);
  1428. else if (typeof object.avatar === "number")
  1429. message.avatar = object.avatar;
  1430. else if (typeof object.avatar === "object")
  1431. message.avatar = new $util.LongBits(object.avatar.low >>> 0, object.avatar.high >>> 0).toNumber();
  1432. if (object.svrtime != null)
  1433. if ($util.Long)
  1434. (message.svrtime = $util.Long.fromValue(object.svrtime)).unsigned = false;
  1435. else if (typeof object.svrtime === "string")
  1436. message.svrtime = parseInt(object.svrtime, 10);
  1437. else if (typeof object.svrtime === "number")
  1438. message.svrtime = object.svrtime;
  1439. else if (typeof object.svrtime === "object")
  1440. message.svrtime = new $util.LongBits(object.svrtime.low >>> 0, object.svrtime.high >>> 0).toNumber();
  1441. if (object.renameTime != null)
  1442. if ($util.Long)
  1443. (message.renameTime = $util.Long.fromValue(object.renameTime)).unsigned = false;
  1444. else if (typeof object.renameTime === "string")
  1445. message.renameTime = parseInt(object.renameTime, 10);
  1446. else if (typeof object.renameTime === "number")
  1447. message.renameTime = object.renameTime;
  1448. else if (typeof object.renameTime === "object")
  1449. message.renameTime = new $util.LongBits(object.renameTime.low >>> 0, object.renameTime.high >>> 0).toNumber();
  1450. if (object.createtime != null)
  1451. if ($util.Long)
  1452. (message.createtime = $util.Long.fromValue(object.createtime)).unsigned = false;
  1453. else if (typeof object.createtime === "string")
  1454. message.createtime = parseInt(object.createtime, 10);
  1455. else if (typeof object.createtime === "number")
  1456. message.createtime = object.createtime;
  1457. else if (typeof object.createtime === "object")
  1458. message.createtime = new $util.LongBits(object.createtime.low >>> 0, object.createtime.high >>> 0).toNumber();
  1459. if (object.currency) {
  1460. if (!Array.isArray(object.currency))
  1461. throw TypeError(".game.user.currency: array expected");
  1462. message.currency = [];
  1463. for (let i = 0; i < object.currency.length; ++i) {
  1464. if (typeof object.currency[i] !== "object")
  1465. throw TypeError(".game.user.currency: object expected");
  1466. message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
  1467. }
  1468. }
  1469. return message;
  1470. };
  1471. /**
  1472. * Creates a plain object from a user message. Also converts values to other types if specified.
  1473. * @function toObject
  1474. * @memberof game.user
  1475. * @static
  1476. * @param {game.user} message user
  1477. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1478. * @returns {Object.<string,*>} Plain object
  1479. */
  1480. user.toObject = function toObject(message, options) {
  1481. if (!options)
  1482. options = {};
  1483. let object = {};
  1484. if (options.arrays || options.defaults)
  1485. object.currency = [];
  1486. if (options.defaults) {
  1487. object.uid = "";
  1488. object.nickname = "";
  1489. if ($util.Long) {
  1490. let long = new $util.Long(0, 0, false);
  1491. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1492. } else
  1493. object.level = options.longs === String ? "0" : 0;
  1494. if ($util.Long) {
  1495. let long = new $util.Long(0, 0, false);
  1496. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1497. } else
  1498. object.exp = options.longs === String ? "0" : 0;
  1499. if ($util.Long) {
  1500. let long = new $util.Long(0, 0, false);
  1501. object.avatar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1502. } else
  1503. object.avatar = options.longs === String ? "0" : 0;
  1504. if ($util.Long) {
  1505. let long = new $util.Long(0, 0, false);
  1506. object.svrtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1507. } else
  1508. object.svrtime = options.longs === String ? "0" : 0;
  1509. if ($util.Long) {
  1510. let long = new $util.Long(0, 0, false);
  1511. object.renameTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1512. } else
  1513. object.renameTime = options.longs === String ? "0" : 0;
  1514. if ($util.Long) {
  1515. let long = new $util.Long(0, 0, false);
  1516. object.createtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1517. } else
  1518. object.createtime = options.longs === String ? "0" : 0;
  1519. }
  1520. if (message.uid != null && message.hasOwnProperty("uid"))
  1521. object.uid = message.uid;
  1522. if (message.nickname != null && message.hasOwnProperty("nickname"))
  1523. object.nickname = message.nickname;
  1524. if (message.level != null && message.hasOwnProperty("level"))
  1525. if (typeof message.level === "number")
  1526. object.level = options.longs === String ? String(message.level) : message.level;
  1527. else
  1528. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  1529. if (message.exp != null && message.hasOwnProperty("exp"))
  1530. if (typeof message.exp === "number")
  1531. object.exp = options.longs === String ? String(message.exp) : message.exp;
  1532. else
  1533. object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
  1534. if (message.avatar != null && message.hasOwnProperty("avatar"))
  1535. if (typeof message.avatar === "number")
  1536. object.avatar = options.longs === String ? String(message.avatar) : message.avatar;
  1537. else
  1538. object.avatar = options.longs === String ? $util.Long.prototype.toString.call(message.avatar) : options.longs === Number ? new $util.LongBits(message.avatar.low >>> 0, message.avatar.high >>> 0).toNumber() : message.avatar;
  1539. if (message.svrtime != null && message.hasOwnProperty("svrtime"))
  1540. if (typeof message.svrtime === "number")
  1541. object.svrtime = options.longs === String ? String(message.svrtime) : message.svrtime;
  1542. else
  1543. object.svrtime = options.longs === String ? $util.Long.prototype.toString.call(message.svrtime) : options.longs === Number ? new $util.LongBits(message.svrtime.low >>> 0, message.svrtime.high >>> 0).toNumber() : message.svrtime;
  1544. if (message.renameTime != null && message.hasOwnProperty("renameTime"))
  1545. if (typeof message.renameTime === "number")
  1546. object.renameTime = options.longs === String ? String(message.renameTime) : message.renameTime;
  1547. else
  1548. object.renameTime = options.longs === String ? $util.Long.prototype.toString.call(message.renameTime) : options.longs === Number ? new $util.LongBits(message.renameTime.low >>> 0, message.renameTime.high >>> 0).toNumber() : message.renameTime;
  1549. if (message.createtime != null && message.hasOwnProperty("createtime"))
  1550. if (typeof message.createtime === "number")
  1551. object.createtime = options.longs === String ? String(message.createtime) : message.createtime;
  1552. else
  1553. object.createtime = options.longs === String ? $util.Long.prototype.toString.call(message.createtime) : options.longs === Number ? new $util.LongBits(message.createtime.low >>> 0, message.createtime.high >>> 0).toNumber() : message.createtime;
  1554. if (message.currency && message.currency.length) {
  1555. object.currency = [];
  1556. for (let j = 0; j < message.currency.length; ++j)
  1557. object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
  1558. }
  1559. return object;
  1560. };
  1561. /**
  1562. * Converts this user to JSON.
  1563. * @function toJSON
  1564. * @memberof game.user
  1565. * @instance
  1566. * @returns {Object.<string,*>} JSON object
  1567. */
  1568. user.prototype.toJSON = function toJSON() {
  1569. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1570. };
  1571. return user;
  1572. })();
  1573. game.reward_info = (function() {
  1574. /**
  1575. * Properties of a reward_info.
  1576. * @memberof game
  1577. * @interface Ireward_info
  1578. * @property {string|null} [flags] reward_info flags
  1579. * @property {game.Ireward|null} [added] reward_info added
  1580. */
  1581. /**
  1582. * Constructs a new reward_info.
  1583. * @memberof game
  1584. * @classdesc Represents a reward_info.
  1585. * @implements Ireward_info
  1586. * @constructor
  1587. * @param {game.Ireward_info=} [properties] Properties to set
  1588. */
  1589. function reward_info(properties) {
  1590. if (properties)
  1591. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1592. if (properties[keys[i]] != null)
  1593. this[keys[i]] = properties[keys[i]];
  1594. }
  1595. /**
  1596. * reward_info flags.
  1597. * @member {string} flags
  1598. * @memberof game.reward_info
  1599. * @instance
  1600. */
  1601. reward_info.prototype.flags = "";
  1602. /**
  1603. * reward_info added.
  1604. * @member {game.Ireward|null|undefined} added
  1605. * @memberof game.reward_info
  1606. * @instance
  1607. */
  1608. reward_info.prototype.added = null;
  1609. /**
  1610. * Creates a new reward_info instance using the specified properties.
  1611. * @function create
  1612. * @memberof game.reward_info
  1613. * @static
  1614. * @param {game.Ireward_info=} [properties] Properties to set
  1615. * @returns {game.reward_info} reward_info instance
  1616. */
  1617. reward_info.create = function create(properties) {
  1618. return new reward_info(properties);
  1619. };
  1620. /**
  1621. * Encodes the specified reward_info message. Does not implicitly {@link game.reward_info.verify|verify} messages.
  1622. * @function encode
  1623. * @memberof game.reward_info
  1624. * @static
  1625. * @param {game.Ireward_info} message reward_info message or plain object to encode
  1626. * @param {$protobuf.Writer} [writer] Writer to encode to
  1627. * @returns {$protobuf.Writer} Writer
  1628. */
  1629. reward_info.encode = function encode(message, writer) {
  1630. if (!writer)
  1631. writer = $Writer.create();
  1632. if (message.flags != null && Object.hasOwnProperty.call(message, "flags"))
  1633. writer.uint32(/* id 1, wireType 2 =*/10).string(message.flags);
  1634. if (message.added != null && Object.hasOwnProperty.call(message, "added"))
  1635. $root.game.reward.encode(message.added, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  1636. return writer;
  1637. };
  1638. /**
  1639. * Encodes the specified reward_info message, length delimited. Does not implicitly {@link game.reward_info.verify|verify} messages.
  1640. * @function encodeDelimited
  1641. * @memberof game.reward_info
  1642. * @static
  1643. * @param {game.Ireward_info} message reward_info message or plain object to encode
  1644. * @param {$protobuf.Writer} [writer] Writer to encode to
  1645. * @returns {$protobuf.Writer} Writer
  1646. */
  1647. reward_info.encodeDelimited = function encodeDelimited(message, writer) {
  1648. return this.encode(message, writer).ldelim();
  1649. };
  1650. /**
  1651. * Decodes a reward_info message from the specified reader or buffer.
  1652. * @function decode
  1653. * @memberof game.reward_info
  1654. * @static
  1655. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1656. * @param {number} [length] Message length if known beforehand
  1657. * @returns {game.reward_info} reward_info
  1658. * @throws {Error} If the payload is not a reader or valid buffer
  1659. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1660. */
  1661. reward_info.decode = function decode(reader, length) {
  1662. if (!(reader instanceof $Reader))
  1663. reader = $Reader.create(reader);
  1664. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.reward_info();
  1665. while (reader.pos < end) {
  1666. let tag = reader.uint32();
  1667. switch (tag >>> 3) {
  1668. case 1:
  1669. message.flags = reader.string();
  1670. break;
  1671. case 2:
  1672. message.added = $root.game.reward.decode(reader, reader.uint32());
  1673. break;
  1674. default:
  1675. reader.skipType(tag & 7);
  1676. break;
  1677. }
  1678. }
  1679. return message;
  1680. };
  1681. /**
  1682. * Decodes a reward_info message from the specified reader or buffer, length delimited.
  1683. * @function decodeDelimited
  1684. * @memberof game.reward_info
  1685. * @static
  1686. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1687. * @returns {game.reward_info} reward_info
  1688. * @throws {Error} If the payload is not a reader or valid buffer
  1689. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1690. */
  1691. reward_info.decodeDelimited = function decodeDelimited(reader) {
  1692. if (!(reader instanceof $Reader))
  1693. reader = new $Reader(reader);
  1694. return this.decode(reader, reader.uint32());
  1695. };
  1696. /**
  1697. * Verifies a reward_info message.
  1698. * @function verify
  1699. * @memberof game.reward_info
  1700. * @static
  1701. * @param {Object.<string,*>} message Plain object to verify
  1702. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1703. */
  1704. reward_info.verify = function verify(message) {
  1705. if (typeof message !== "object" || message === null)
  1706. return "object expected";
  1707. if (message.flags != null && message.hasOwnProperty("flags"))
  1708. if (!$util.isString(message.flags))
  1709. return "flags: string expected";
  1710. if (message.added != null && message.hasOwnProperty("added")) {
  1711. let error = $root.game.reward.verify(message.added);
  1712. if (error)
  1713. return "added." + error;
  1714. }
  1715. return null;
  1716. };
  1717. /**
  1718. * Creates a reward_info message from a plain object. Also converts values to their respective internal types.
  1719. * @function fromObject
  1720. * @memberof game.reward_info
  1721. * @static
  1722. * @param {Object.<string,*>} object Plain object
  1723. * @returns {game.reward_info} reward_info
  1724. */
  1725. reward_info.fromObject = function fromObject(object) {
  1726. if (object instanceof $root.game.reward_info)
  1727. return object;
  1728. let message = new $root.game.reward_info();
  1729. if (object.flags != null)
  1730. message.flags = String(object.flags);
  1731. if (object.added != null) {
  1732. if (typeof object.added !== "object")
  1733. throw TypeError(".game.reward_info.added: object expected");
  1734. message.added = $root.game.reward.fromObject(object.added);
  1735. }
  1736. return message;
  1737. };
  1738. /**
  1739. * Creates a plain object from a reward_info message. Also converts values to other types if specified.
  1740. * @function toObject
  1741. * @memberof game.reward_info
  1742. * @static
  1743. * @param {game.reward_info} message reward_info
  1744. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1745. * @returns {Object.<string,*>} Plain object
  1746. */
  1747. reward_info.toObject = function toObject(message, options) {
  1748. if (!options)
  1749. options = {};
  1750. let object = {};
  1751. if (options.defaults) {
  1752. object.flags = "";
  1753. object.added = null;
  1754. }
  1755. if (message.flags != null && message.hasOwnProperty("flags"))
  1756. object.flags = message.flags;
  1757. if (message.added != null && message.hasOwnProperty("added"))
  1758. object.added = $root.game.reward.toObject(message.added, options);
  1759. return object;
  1760. };
  1761. /**
  1762. * Converts this reward_info to JSON.
  1763. * @function toJSON
  1764. * @memberof game.reward_info
  1765. * @instance
  1766. * @returns {Object.<string,*>} JSON object
  1767. */
  1768. reward_info.prototype.toJSON = function toJSON() {
  1769. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1770. };
  1771. return reward_info;
  1772. })();
  1773. game.city_change = (function() {
  1774. /**
  1775. * Properties of a city_change.
  1776. * @memberof game
  1777. * @interface Icity_change
  1778. * @property {game.Iid_num|null} [currency] city_change currency
  1779. * @property {number|Long|null} [time] city_change time
  1780. */
  1781. /**
  1782. * Constructs a new city_change.
  1783. * @memberof game
  1784. * @classdesc Represents a city_change.
  1785. * @implements Icity_change
  1786. * @constructor
  1787. * @param {game.Icity_change=} [properties] Properties to set
  1788. */
  1789. function city_change(properties) {
  1790. if (properties)
  1791. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  1792. if (properties[keys[i]] != null)
  1793. this[keys[i]] = properties[keys[i]];
  1794. }
  1795. /**
  1796. * city_change currency.
  1797. * @member {game.Iid_num|null|undefined} currency
  1798. * @memberof game.city_change
  1799. * @instance
  1800. */
  1801. city_change.prototype.currency = null;
  1802. /**
  1803. * city_change time.
  1804. * @member {number|Long} time
  1805. * @memberof game.city_change
  1806. * @instance
  1807. */
  1808. city_change.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  1809. /**
  1810. * Creates a new city_change instance using the specified properties.
  1811. * @function create
  1812. * @memberof game.city_change
  1813. * @static
  1814. * @param {game.Icity_change=} [properties] Properties to set
  1815. * @returns {game.city_change} city_change instance
  1816. */
  1817. city_change.create = function create(properties) {
  1818. return new city_change(properties);
  1819. };
  1820. /**
  1821. * Encodes the specified city_change message. Does not implicitly {@link game.city_change.verify|verify} messages.
  1822. * @function encode
  1823. * @memberof game.city_change
  1824. * @static
  1825. * @param {game.Icity_change} message city_change message or plain object to encode
  1826. * @param {$protobuf.Writer} [writer] Writer to encode to
  1827. * @returns {$protobuf.Writer} Writer
  1828. */
  1829. city_change.encode = function encode(message, writer) {
  1830. if (!writer)
  1831. writer = $Writer.create();
  1832. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  1833. $root.game.id_num.encode(message.currency, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  1834. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  1835. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  1836. return writer;
  1837. };
  1838. /**
  1839. * Encodes the specified city_change message, length delimited. Does not implicitly {@link game.city_change.verify|verify} messages.
  1840. * @function encodeDelimited
  1841. * @memberof game.city_change
  1842. * @static
  1843. * @param {game.Icity_change} message city_change message or plain object to encode
  1844. * @param {$protobuf.Writer} [writer] Writer to encode to
  1845. * @returns {$protobuf.Writer} Writer
  1846. */
  1847. city_change.encodeDelimited = function encodeDelimited(message, writer) {
  1848. return this.encode(message, writer).ldelim();
  1849. };
  1850. /**
  1851. * Decodes a city_change message from the specified reader or buffer.
  1852. * @function decode
  1853. * @memberof game.city_change
  1854. * @static
  1855. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1856. * @param {number} [length] Message length if known beforehand
  1857. * @returns {game.city_change} city_change
  1858. * @throws {Error} If the payload is not a reader or valid buffer
  1859. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1860. */
  1861. city_change.decode = function decode(reader, length) {
  1862. if (!(reader instanceof $Reader))
  1863. reader = $Reader.create(reader);
  1864. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_change();
  1865. while (reader.pos < end) {
  1866. let tag = reader.uint32();
  1867. switch (tag >>> 3) {
  1868. case 1:
  1869. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  1870. break;
  1871. case 3:
  1872. message.time = reader.int64();
  1873. break;
  1874. default:
  1875. reader.skipType(tag & 7);
  1876. break;
  1877. }
  1878. }
  1879. return message;
  1880. };
  1881. /**
  1882. * Decodes a city_change message from the specified reader or buffer, length delimited.
  1883. * @function decodeDelimited
  1884. * @memberof game.city_change
  1885. * @static
  1886. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  1887. * @returns {game.city_change} city_change
  1888. * @throws {Error} If the payload is not a reader or valid buffer
  1889. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  1890. */
  1891. city_change.decodeDelimited = function decodeDelimited(reader) {
  1892. if (!(reader instanceof $Reader))
  1893. reader = new $Reader(reader);
  1894. return this.decode(reader, reader.uint32());
  1895. };
  1896. /**
  1897. * Verifies a city_change message.
  1898. * @function verify
  1899. * @memberof game.city_change
  1900. * @static
  1901. * @param {Object.<string,*>} message Plain object to verify
  1902. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  1903. */
  1904. city_change.verify = function verify(message) {
  1905. if (typeof message !== "object" || message === null)
  1906. return "object expected";
  1907. if (message.currency != null && message.hasOwnProperty("currency")) {
  1908. let error = $root.game.id_num.verify(message.currency);
  1909. if (error)
  1910. return "currency." + error;
  1911. }
  1912. if (message.time != null && message.hasOwnProperty("time"))
  1913. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  1914. return "time: integer|Long expected";
  1915. return null;
  1916. };
  1917. /**
  1918. * Creates a city_change message from a plain object. Also converts values to their respective internal types.
  1919. * @function fromObject
  1920. * @memberof game.city_change
  1921. * @static
  1922. * @param {Object.<string,*>} object Plain object
  1923. * @returns {game.city_change} city_change
  1924. */
  1925. city_change.fromObject = function fromObject(object) {
  1926. if (object instanceof $root.game.city_change)
  1927. return object;
  1928. let message = new $root.game.city_change();
  1929. if (object.currency != null) {
  1930. if (typeof object.currency !== "object")
  1931. throw TypeError(".game.city_change.currency: object expected");
  1932. message.currency = $root.game.id_num.fromObject(object.currency);
  1933. }
  1934. if (object.time != null)
  1935. if ($util.Long)
  1936. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  1937. else if (typeof object.time === "string")
  1938. message.time = parseInt(object.time, 10);
  1939. else if (typeof object.time === "number")
  1940. message.time = object.time;
  1941. else if (typeof object.time === "object")
  1942. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  1943. return message;
  1944. };
  1945. /**
  1946. * Creates a plain object from a city_change message. Also converts values to other types if specified.
  1947. * @function toObject
  1948. * @memberof game.city_change
  1949. * @static
  1950. * @param {game.city_change} message city_change
  1951. * @param {$protobuf.IConversionOptions} [options] Conversion options
  1952. * @returns {Object.<string,*>} Plain object
  1953. */
  1954. city_change.toObject = function toObject(message, options) {
  1955. if (!options)
  1956. options = {};
  1957. let object = {};
  1958. if (options.defaults) {
  1959. object.currency = null;
  1960. if ($util.Long) {
  1961. let long = new $util.Long(0, 0, false);
  1962. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  1963. } else
  1964. object.time = options.longs === String ? "0" : 0;
  1965. }
  1966. if (message.currency != null && message.hasOwnProperty("currency"))
  1967. object.currency = $root.game.id_num.toObject(message.currency, options);
  1968. if (message.time != null && message.hasOwnProperty("time"))
  1969. if (typeof message.time === "number")
  1970. object.time = options.longs === String ? String(message.time) : message.time;
  1971. else
  1972. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  1973. return object;
  1974. };
  1975. /**
  1976. * Converts this city_change to JSON.
  1977. * @function toJSON
  1978. * @memberof game.city_change
  1979. * @instance
  1980. * @returns {Object.<string,*>} JSON object
  1981. */
  1982. city_change.prototype.toJSON = function toJSON() {
  1983. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  1984. };
  1985. return city_change;
  1986. })();
  1987. game.pay_currency = (function() {
  1988. /**
  1989. * Properties of a pay_currency.
  1990. * @memberof game
  1991. * @interface Ipay_currency
  1992. * @property {Array.<game.Iid_num>|null} [now] pay_currency now
  1993. * @property {Array.<game.Iid_num>|null} [pay] pay_currency pay
  1994. */
  1995. /**
  1996. * Constructs a new pay_currency.
  1997. * @memberof game
  1998. * @classdesc Represents a pay_currency.
  1999. * @implements Ipay_currency
  2000. * @constructor
  2001. * @param {game.Ipay_currency=} [properties] Properties to set
  2002. */
  2003. function pay_currency(properties) {
  2004. this.now = [];
  2005. this.pay = [];
  2006. if (properties)
  2007. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2008. if (properties[keys[i]] != null)
  2009. this[keys[i]] = properties[keys[i]];
  2010. }
  2011. /**
  2012. * pay_currency now.
  2013. * @member {Array.<game.Iid_num>} now
  2014. * @memberof game.pay_currency
  2015. * @instance
  2016. */
  2017. pay_currency.prototype.now = $util.emptyArray;
  2018. /**
  2019. * pay_currency pay.
  2020. * @member {Array.<game.Iid_num>} pay
  2021. * @memberof game.pay_currency
  2022. * @instance
  2023. */
  2024. pay_currency.prototype.pay = $util.emptyArray;
  2025. /**
  2026. * Creates a new pay_currency instance using the specified properties.
  2027. * @function create
  2028. * @memberof game.pay_currency
  2029. * @static
  2030. * @param {game.Ipay_currency=} [properties] Properties to set
  2031. * @returns {game.pay_currency} pay_currency instance
  2032. */
  2033. pay_currency.create = function create(properties) {
  2034. return new pay_currency(properties);
  2035. };
  2036. /**
  2037. * Encodes the specified pay_currency message. Does not implicitly {@link game.pay_currency.verify|verify} messages.
  2038. * @function encode
  2039. * @memberof game.pay_currency
  2040. * @static
  2041. * @param {game.Ipay_currency} message pay_currency message or plain object to encode
  2042. * @param {$protobuf.Writer} [writer] Writer to encode to
  2043. * @returns {$protobuf.Writer} Writer
  2044. */
  2045. pay_currency.encode = function encode(message, writer) {
  2046. if (!writer)
  2047. writer = $Writer.create();
  2048. if (message.now != null && message.now.length)
  2049. for (let i = 0; i < message.now.length; ++i)
  2050. $root.game.id_num.encode(message.now[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  2051. if (message.pay != null && message.pay.length)
  2052. for (let i = 0; i < message.pay.length; ++i)
  2053. $root.game.id_num.encode(message.pay[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  2054. return writer;
  2055. };
  2056. /**
  2057. * Encodes the specified pay_currency message, length delimited. Does not implicitly {@link game.pay_currency.verify|verify} messages.
  2058. * @function encodeDelimited
  2059. * @memberof game.pay_currency
  2060. * @static
  2061. * @param {game.Ipay_currency} message pay_currency message or plain object to encode
  2062. * @param {$protobuf.Writer} [writer] Writer to encode to
  2063. * @returns {$protobuf.Writer} Writer
  2064. */
  2065. pay_currency.encodeDelimited = function encodeDelimited(message, writer) {
  2066. return this.encode(message, writer).ldelim();
  2067. };
  2068. /**
  2069. * Decodes a pay_currency message from the specified reader or buffer.
  2070. * @function decode
  2071. * @memberof game.pay_currency
  2072. * @static
  2073. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2074. * @param {number} [length] Message length if known beforehand
  2075. * @returns {game.pay_currency} pay_currency
  2076. * @throws {Error} If the payload is not a reader or valid buffer
  2077. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2078. */
  2079. pay_currency.decode = function decode(reader, length) {
  2080. if (!(reader instanceof $Reader))
  2081. reader = $Reader.create(reader);
  2082. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pay_currency();
  2083. while (reader.pos < end) {
  2084. let tag = reader.uint32();
  2085. switch (tag >>> 3) {
  2086. case 1:
  2087. if (!(message.now && message.now.length))
  2088. message.now = [];
  2089. message.now.push($root.game.id_num.decode(reader, reader.uint32()));
  2090. break;
  2091. case 2:
  2092. if (!(message.pay && message.pay.length))
  2093. message.pay = [];
  2094. message.pay.push($root.game.id_num.decode(reader, reader.uint32()));
  2095. break;
  2096. default:
  2097. reader.skipType(tag & 7);
  2098. break;
  2099. }
  2100. }
  2101. return message;
  2102. };
  2103. /**
  2104. * Decodes a pay_currency message from the specified reader or buffer, length delimited.
  2105. * @function decodeDelimited
  2106. * @memberof game.pay_currency
  2107. * @static
  2108. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2109. * @returns {game.pay_currency} pay_currency
  2110. * @throws {Error} If the payload is not a reader or valid buffer
  2111. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2112. */
  2113. pay_currency.decodeDelimited = function decodeDelimited(reader) {
  2114. if (!(reader instanceof $Reader))
  2115. reader = new $Reader(reader);
  2116. return this.decode(reader, reader.uint32());
  2117. };
  2118. /**
  2119. * Verifies a pay_currency message.
  2120. * @function verify
  2121. * @memberof game.pay_currency
  2122. * @static
  2123. * @param {Object.<string,*>} message Plain object to verify
  2124. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2125. */
  2126. pay_currency.verify = function verify(message) {
  2127. if (typeof message !== "object" || message === null)
  2128. return "object expected";
  2129. if (message.now != null && message.hasOwnProperty("now")) {
  2130. if (!Array.isArray(message.now))
  2131. return "now: array expected";
  2132. for (let i = 0; i < message.now.length; ++i) {
  2133. let error = $root.game.id_num.verify(message.now[i]);
  2134. if (error)
  2135. return "now." + error;
  2136. }
  2137. }
  2138. if (message.pay != null && message.hasOwnProperty("pay")) {
  2139. if (!Array.isArray(message.pay))
  2140. return "pay: array expected";
  2141. for (let i = 0; i < message.pay.length; ++i) {
  2142. let error = $root.game.id_num.verify(message.pay[i]);
  2143. if (error)
  2144. return "pay." + error;
  2145. }
  2146. }
  2147. return null;
  2148. };
  2149. /**
  2150. * Creates a pay_currency message from a plain object. Also converts values to their respective internal types.
  2151. * @function fromObject
  2152. * @memberof game.pay_currency
  2153. * @static
  2154. * @param {Object.<string,*>} object Plain object
  2155. * @returns {game.pay_currency} pay_currency
  2156. */
  2157. pay_currency.fromObject = function fromObject(object) {
  2158. if (object instanceof $root.game.pay_currency)
  2159. return object;
  2160. let message = new $root.game.pay_currency();
  2161. if (object.now) {
  2162. if (!Array.isArray(object.now))
  2163. throw TypeError(".game.pay_currency.now: array expected");
  2164. message.now = [];
  2165. for (let i = 0; i < object.now.length; ++i) {
  2166. if (typeof object.now[i] !== "object")
  2167. throw TypeError(".game.pay_currency.now: object expected");
  2168. message.now[i] = $root.game.id_num.fromObject(object.now[i]);
  2169. }
  2170. }
  2171. if (object.pay) {
  2172. if (!Array.isArray(object.pay))
  2173. throw TypeError(".game.pay_currency.pay: array expected");
  2174. message.pay = [];
  2175. for (let i = 0; i < object.pay.length; ++i) {
  2176. if (typeof object.pay[i] !== "object")
  2177. throw TypeError(".game.pay_currency.pay: object expected");
  2178. message.pay[i] = $root.game.id_num.fromObject(object.pay[i]);
  2179. }
  2180. }
  2181. return message;
  2182. };
  2183. /**
  2184. * Creates a plain object from a pay_currency message. Also converts values to other types if specified.
  2185. * @function toObject
  2186. * @memberof game.pay_currency
  2187. * @static
  2188. * @param {game.pay_currency} message pay_currency
  2189. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2190. * @returns {Object.<string,*>} Plain object
  2191. */
  2192. pay_currency.toObject = function toObject(message, options) {
  2193. if (!options)
  2194. options = {};
  2195. let object = {};
  2196. if (options.arrays || options.defaults) {
  2197. object.now = [];
  2198. object.pay = [];
  2199. }
  2200. if (message.now && message.now.length) {
  2201. object.now = [];
  2202. for (let j = 0; j < message.now.length; ++j)
  2203. object.now[j] = $root.game.id_num.toObject(message.now[j], options);
  2204. }
  2205. if (message.pay && message.pay.length) {
  2206. object.pay = [];
  2207. for (let j = 0; j < message.pay.length; ++j)
  2208. object.pay[j] = $root.game.id_num.toObject(message.pay[j], options);
  2209. }
  2210. return object;
  2211. };
  2212. /**
  2213. * Converts this pay_currency to JSON.
  2214. * @function toJSON
  2215. * @memberof game.pay_currency
  2216. * @instance
  2217. * @returns {Object.<string,*>} JSON object
  2218. */
  2219. pay_currency.prototype.toJSON = function toJSON() {
  2220. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2221. };
  2222. return pay_currency;
  2223. })();
  2224. game.pay_debris_nty = (function() {
  2225. /**
  2226. * Properties of a pay_debris_nty.
  2227. * @memberof game
  2228. * @interface Ipay_debris_nty
  2229. * @property {Array.<game.Iid_num>|null} [list] pay_debris_nty list
  2230. */
  2231. /**
  2232. * Constructs a new pay_debris_nty.
  2233. * @memberof game
  2234. * @classdesc Represents a pay_debris_nty.
  2235. * @implements Ipay_debris_nty
  2236. * @constructor
  2237. * @param {game.Ipay_debris_nty=} [properties] Properties to set
  2238. */
  2239. function pay_debris_nty(properties) {
  2240. this.list = [];
  2241. if (properties)
  2242. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2243. if (properties[keys[i]] != null)
  2244. this[keys[i]] = properties[keys[i]];
  2245. }
  2246. /**
  2247. * pay_debris_nty list.
  2248. * @member {Array.<game.Iid_num>} list
  2249. * @memberof game.pay_debris_nty
  2250. * @instance
  2251. */
  2252. pay_debris_nty.prototype.list = $util.emptyArray;
  2253. /**
  2254. * Creates a new pay_debris_nty instance using the specified properties.
  2255. * @function create
  2256. * @memberof game.pay_debris_nty
  2257. * @static
  2258. * @param {game.Ipay_debris_nty=} [properties] Properties to set
  2259. * @returns {game.pay_debris_nty} pay_debris_nty instance
  2260. */
  2261. pay_debris_nty.create = function create(properties) {
  2262. return new pay_debris_nty(properties);
  2263. };
  2264. /**
  2265. * Encodes the specified pay_debris_nty message. Does not implicitly {@link game.pay_debris_nty.verify|verify} messages.
  2266. * @function encode
  2267. * @memberof game.pay_debris_nty
  2268. * @static
  2269. * @param {game.Ipay_debris_nty} message pay_debris_nty message or plain object to encode
  2270. * @param {$protobuf.Writer} [writer] Writer to encode to
  2271. * @returns {$protobuf.Writer} Writer
  2272. */
  2273. pay_debris_nty.encode = function encode(message, writer) {
  2274. if (!writer)
  2275. writer = $Writer.create();
  2276. if (message.list != null && message.list.length)
  2277. for (let i = 0; i < message.list.length; ++i)
  2278. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  2279. return writer;
  2280. };
  2281. /**
  2282. * Encodes the specified pay_debris_nty message, length delimited. Does not implicitly {@link game.pay_debris_nty.verify|verify} messages.
  2283. * @function encodeDelimited
  2284. * @memberof game.pay_debris_nty
  2285. * @static
  2286. * @param {game.Ipay_debris_nty} message pay_debris_nty message or plain object to encode
  2287. * @param {$protobuf.Writer} [writer] Writer to encode to
  2288. * @returns {$protobuf.Writer} Writer
  2289. */
  2290. pay_debris_nty.encodeDelimited = function encodeDelimited(message, writer) {
  2291. return this.encode(message, writer).ldelim();
  2292. };
  2293. /**
  2294. * Decodes a pay_debris_nty message from the specified reader or buffer.
  2295. * @function decode
  2296. * @memberof game.pay_debris_nty
  2297. * @static
  2298. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2299. * @param {number} [length] Message length if known beforehand
  2300. * @returns {game.pay_debris_nty} pay_debris_nty
  2301. * @throws {Error} If the payload is not a reader or valid buffer
  2302. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2303. */
  2304. pay_debris_nty.decode = function decode(reader, length) {
  2305. if (!(reader instanceof $Reader))
  2306. reader = $Reader.create(reader);
  2307. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pay_debris_nty();
  2308. while (reader.pos < end) {
  2309. let tag = reader.uint32();
  2310. switch (tag >>> 3) {
  2311. case 1:
  2312. if (!(message.list && message.list.length))
  2313. message.list = [];
  2314. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  2315. break;
  2316. default:
  2317. reader.skipType(tag & 7);
  2318. break;
  2319. }
  2320. }
  2321. return message;
  2322. };
  2323. /**
  2324. * Decodes a pay_debris_nty message from the specified reader or buffer, length delimited.
  2325. * @function decodeDelimited
  2326. * @memberof game.pay_debris_nty
  2327. * @static
  2328. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2329. * @returns {game.pay_debris_nty} pay_debris_nty
  2330. * @throws {Error} If the payload is not a reader or valid buffer
  2331. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2332. */
  2333. pay_debris_nty.decodeDelimited = function decodeDelimited(reader) {
  2334. if (!(reader instanceof $Reader))
  2335. reader = new $Reader(reader);
  2336. return this.decode(reader, reader.uint32());
  2337. };
  2338. /**
  2339. * Verifies a pay_debris_nty message.
  2340. * @function verify
  2341. * @memberof game.pay_debris_nty
  2342. * @static
  2343. * @param {Object.<string,*>} message Plain object to verify
  2344. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2345. */
  2346. pay_debris_nty.verify = function verify(message) {
  2347. if (typeof message !== "object" || message === null)
  2348. return "object expected";
  2349. if (message.list != null && message.hasOwnProperty("list")) {
  2350. if (!Array.isArray(message.list))
  2351. return "list: array expected";
  2352. for (let i = 0; i < message.list.length; ++i) {
  2353. let error = $root.game.id_num.verify(message.list[i]);
  2354. if (error)
  2355. return "list." + error;
  2356. }
  2357. }
  2358. return null;
  2359. };
  2360. /**
  2361. * Creates a pay_debris_nty message from a plain object. Also converts values to their respective internal types.
  2362. * @function fromObject
  2363. * @memberof game.pay_debris_nty
  2364. * @static
  2365. * @param {Object.<string,*>} object Plain object
  2366. * @returns {game.pay_debris_nty} pay_debris_nty
  2367. */
  2368. pay_debris_nty.fromObject = function fromObject(object) {
  2369. if (object instanceof $root.game.pay_debris_nty)
  2370. return object;
  2371. let message = new $root.game.pay_debris_nty();
  2372. if (object.list) {
  2373. if (!Array.isArray(object.list))
  2374. throw TypeError(".game.pay_debris_nty.list: array expected");
  2375. message.list = [];
  2376. for (let i = 0; i < object.list.length; ++i) {
  2377. if (typeof object.list[i] !== "object")
  2378. throw TypeError(".game.pay_debris_nty.list: object expected");
  2379. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  2380. }
  2381. }
  2382. return message;
  2383. };
  2384. /**
  2385. * Creates a plain object from a pay_debris_nty message. Also converts values to other types if specified.
  2386. * @function toObject
  2387. * @memberof game.pay_debris_nty
  2388. * @static
  2389. * @param {game.pay_debris_nty} message pay_debris_nty
  2390. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2391. * @returns {Object.<string,*>} Plain object
  2392. */
  2393. pay_debris_nty.toObject = function toObject(message, options) {
  2394. if (!options)
  2395. options = {};
  2396. let object = {};
  2397. if (options.arrays || options.defaults)
  2398. object.list = [];
  2399. if (message.list && message.list.length) {
  2400. object.list = [];
  2401. for (let j = 0; j < message.list.length; ++j)
  2402. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  2403. }
  2404. return object;
  2405. };
  2406. /**
  2407. * Converts this pay_debris_nty to JSON.
  2408. * @function toJSON
  2409. * @memberof game.pay_debris_nty
  2410. * @instance
  2411. * @returns {Object.<string,*>} JSON object
  2412. */
  2413. pay_debris_nty.prototype.toJSON = function toJSON() {
  2414. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2415. };
  2416. return pay_debris_nty;
  2417. })();
  2418. game.exception_nty = (function() {
  2419. /**
  2420. * Properties of an exception_nty.
  2421. * @memberof game
  2422. * @interface Iexception_nty
  2423. * @property {number|Long|null} [errno] exception_nty errno
  2424. */
  2425. /**
  2426. * Constructs a new exception_nty.
  2427. * @memberof game
  2428. * @classdesc Represents an exception_nty.
  2429. * @implements Iexception_nty
  2430. * @constructor
  2431. * @param {game.Iexception_nty=} [properties] Properties to set
  2432. */
  2433. function exception_nty(properties) {
  2434. if (properties)
  2435. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2436. if (properties[keys[i]] != null)
  2437. this[keys[i]] = properties[keys[i]];
  2438. }
  2439. /**
  2440. * exception_nty errno.
  2441. * @member {number|Long} errno
  2442. * @memberof game.exception_nty
  2443. * @instance
  2444. */
  2445. exception_nty.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2446. /**
  2447. * Creates a new exception_nty instance using the specified properties.
  2448. * @function create
  2449. * @memberof game.exception_nty
  2450. * @static
  2451. * @param {game.Iexception_nty=} [properties] Properties to set
  2452. * @returns {game.exception_nty} exception_nty instance
  2453. */
  2454. exception_nty.create = function create(properties) {
  2455. return new exception_nty(properties);
  2456. };
  2457. /**
  2458. * Encodes the specified exception_nty message. Does not implicitly {@link game.exception_nty.verify|verify} messages.
  2459. * @function encode
  2460. * @memberof game.exception_nty
  2461. * @static
  2462. * @param {game.Iexception_nty} message exception_nty message or plain object to encode
  2463. * @param {$protobuf.Writer} [writer] Writer to encode to
  2464. * @returns {$protobuf.Writer} Writer
  2465. */
  2466. exception_nty.encode = function encode(message, writer) {
  2467. if (!writer)
  2468. writer = $Writer.create();
  2469. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  2470. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  2471. return writer;
  2472. };
  2473. /**
  2474. * Encodes the specified exception_nty message, length delimited. Does not implicitly {@link game.exception_nty.verify|verify} messages.
  2475. * @function encodeDelimited
  2476. * @memberof game.exception_nty
  2477. * @static
  2478. * @param {game.Iexception_nty} message exception_nty message or plain object to encode
  2479. * @param {$protobuf.Writer} [writer] Writer to encode to
  2480. * @returns {$protobuf.Writer} Writer
  2481. */
  2482. exception_nty.encodeDelimited = function encodeDelimited(message, writer) {
  2483. return this.encode(message, writer).ldelim();
  2484. };
  2485. /**
  2486. * Decodes an exception_nty message from the specified reader or buffer.
  2487. * @function decode
  2488. * @memberof game.exception_nty
  2489. * @static
  2490. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2491. * @param {number} [length] Message length if known beforehand
  2492. * @returns {game.exception_nty} exception_nty
  2493. * @throws {Error} If the payload is not a reader or valid buffer
  2494. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2495. */
  2496. exception_nty.decode = function decode(reader, length) {
  2497. if (!(reader instanceof $Reader))
  2498. reader = $Reader.create(reader);
  2499. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.exception_nty();
  2500. while (reader.pos < end) {
  2501. let tag = reader.uint32();
  2502. switch (tag >>> 3) {
  2503. case 1:
  2504. message.errno = reader.int64();
  2505. break;
  2506. default:
  2507. reader.skipType(tag & 7);
  2508. break;
  2509. }
  2510. }
  2511. return message;
  2512. };
  2513. /**
  2514. * Decodes an exception_nty message from the specified reader or buffer, length delimited.
  2515. * @function decodeDelimited
  2516. * @memberof game.exception_nty
  2517. * @static
  2518. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2519. * @returns {game.exception_nty} exception_nty
  2520. * @throws {Error} If the payload is not a reader or valid buffer
  2521. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2522. */
  2523. exception_nty.decodeDelimited = function decodeDelimited(reader) {
  2524. if (!(reader instanceof $Reader))
  2525. reader = new $Reader(reader);
  2526. return this.decode(reader, reader.uint32());
  2527. };
  2528. /**
  2529. * Verifies an exception_nty message.
  2530. * @function verify
  2531. * @memberof game.exception_nty
  2532. * @static
  2533. * @param {Object.<string,*>} message Plain object to verify
  2534. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2535. */
  2536. exception_nty.verify = function verify(message) {
  2537. if (typeof message !== "object" || message === null)
  2538. return "object expected";
  2539. if (message.errno != null && message.hasOwnProperty("errno"))
  2540. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  2541. return "errno: integer|Long expected";
  2542. return null;
  2543. };
  2544. /**
  2545. * Creates an exception_nty message from a plain object. Also converts values to their respective internal types.
  2546. * @function fromObject
  2547. * @memberof game.exception_nty
  2548. * @static
  2549. * @param {Object.<string,*>} object Plain object
  2550. * @returns {game.exception_nty} exception_nty
  2551. */
  2552. exception_nty.fromObject = function fromObject(object) {
  2553. if (object instanceof $root.game.exception_nty)
  2554. return object;
  2555. let message = new $root.game.exception_nty();
  2556. if (object.errno != null)
  2557. if ($util.Long)
  2558. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  2559. else if (typeof object.errno === "string")
  2560. message.errno = parseInt(object.errno, 10);
  2561. else if (typeof object.errno === "number")
  2562. message.errno = object.errno;
  2563. else if (typeof object.errno === "object")
  2564. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  2565. return message;
  2566. };
  2567. /**
  2568. * Creates a plain object from an exception_nty message. Also converts values to other types if specified.
  2569. * @function toObject
  2570. * @memberof game.exception_nty
  2571. * @static
  2572. * @param {game.exception_nty} message exception_nty
  2573. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2574. * @returns {Object.<string,*>} Plain object
  2575. */
  2576. exception_nty.toObject = function toObject(message, options) {
  2577. if (!options)
  2578. options = {};
  2579. let object = {};
  2580. if (options.defaults)
  2581. if ($util.Long) {
  2582. let long = new $util.Long(0, 0, false);
  2583. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2584. } else
  2585. object.errno = options.longs === String ? "0" : 0;
  2586. if (message.errno != null && message.hasOwnProperty("errno"))
  2587. if (typeof message.errno === "number")
  2588. object.errno = options.longs === String ? String(message.errno) : message.errno;
  2589. else
  2590. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  2591. return object;
  2592. };
  2593. /**
  2594. * Converts this exception_nty to JSON.
  2595. * @function toJSON
  2596. * @memberof game.exception_nty
  2597. * @instance
  2598. * @returns {Object.<string,*>} JSON object
  2599. */
  2600. exception_nty.prototype.toJSON = function toJSON() {
  2601. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2602. };
  2603. return exception_nty;
  2604. })();
  2605. game.create_order_nty = (function() {
  2606. /**
  2607. * Properties of a create_order_nty.
  2608. * @memberof game
  2609. * @interface Icreate_order_nty
  2610. * @property {string|null} [id] create_order_nty id
  2611. * @property {number|Long|null} [cfid] create_order_nty cfid
  2612. */
  2613. /**
  2614. * Constructs a new create_order_nty.
  2615. * @memberof game
  2616. * @classdesc Represents a create_order_nty.
  2617. * @implements Icreate_order_nty
  2618. * @constructor
  2619. * @param {game.Icreate_order_nty=} [properties] Properties to set
  2620. */
  2621. function create_order_nty(properties) {
  2622. if (properties)
  2623. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2624. if (properties[keys[i]] != null)
  2625. this[keys[i]] = properties[keys[i]];
  2626. }
  2627. /**
  2628. * create_order_nty id.
  2629. * @member {string} id
  2630. * @memberof game.create_order_nty
  2631. * @instance
  2632. */
  2633. create_order_nty.prototype.id = "";
  2634. /**
  2635. * create_order_nty cfid.
  2636. * @member {number|Long} cfid
  2637. * @memberof game.create_order_nty
  2638. * @instance
  2639. */
  2640. create_order_nty.prototype.cfid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2641. /**
  2642. * Creates a new create_order_nty instance using the specified properties.
  2643. * @function create
  2644. * @memberof game.create_order_nty
  2645. * @static
  2646. * @param {game.Icreate_order_nty=} [properties] Properties to set
  2647. * @returns {game.create_order_nty} create_order_nty instance
  2648. */
  2649. create_order_nty.create = function create(properties) {
  2650. return new create_order_nty(properties);
  2651. };
  2652. /**
  2653. * Encodes the specified create_order_nty message. Does not implicitly {@link game.create_order_nty.verify|verify} messages.
  2654. * @function encode
  2655. * @memberof game.create_order_nty
  2656. * @static
  2657. * @param {game.Icreate_order_nty} message create_order_nty message or plain object to encode
  2658. * @param {$protobuf.Writer} [writer] Writer to encode to
  2659. * @returns {$protobuf.Writer} Writer
  2660. */
  2661. create_order_nty.encode = function encode(message, writer) {
  2662. if (!writer)
  2663. writer = $Writer.create();
  2664. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  2665. writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
  2666. if (message.cfid != null && Object.hasOwnProperty.call(message, "cfid"))
  2667. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.cfid);
  2668. return writer;
  2669. };
  2670. /**
  2671. * Encodes the specified create_order_nty message, length delimited. Does not implicitly {@link game.create_order_nty.verify|verify} messages.
  2672. * @function encodeDelimited
  2673. * @memberof game.create_order_nty
  2674. * @static
  2675. * @param {game.Icreate_order_nty} message create_order_nty message or plain object to encode
  2676. * @param {$protobuf.Writer} [writer] Writer to encode to
  2677. * @returns {$protobuf.Writer} Writer
  2678. */
  2679. create_order_nty.encodeDelimited = function encodeDelimited(message, writer) {
  2680. return this.encode(message, writer).ldelim();
  2681. };
  2682. /**
  2683. * Decodes a create_order_nty message from the specified reader or buffer.
  2684. * @function decode
  2685. * @memberof game.create_order_nty
  2686. * @static
  2687. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2688. * @param {number} [length] Message length if known beforehand
  2689. * @returns {game.create_order_nty} create_order_nty
  2690. * @throws {Error} If the payload is not a reader or valid buffer
  2691. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2692. */
  2693. create_order_nty.decode = function decode(reader, length) {
  2694. if (!(reader instanceof $Reader))
  2695. reader = $Reader.create(reader);
  2696. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.create_order_nty();
  2697. while (reader.pos < end) {
  2698. let tag = reader.uint32();
  2699. switch (tag >>> 3) {
  2700. case 1:
  2701. message.id = reader.string();
  2702. break;
  2703. case 2:
  2704. message.cfid = reader.int64();
  2705. break;
  2706. default:
  2707. reader.skipType(tag & 7);
  2708. break;
  2709. }
  2710. }
  2711. return message;
  2712. };
  2713. /**
  2714. * Decodes a create_order_nty message from the specified reader or buffer, length delimited.
  2715. * @function decodeDelimited
  2716. * @memberof game.create_order_nty
  2717. * @static
  2718. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2719. * @returns {game.create_order_nty} create_order_nty
  2720. * @throws {Error} If the payload is not a reader or valid buffer
  2721. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2722. */
  2723. create_order_nty.decodeDelimited = function decodeDelimited(reader) {
  2724. if (!(reader instanceof $Reader))
  2725. reader = new $Reader(reader);
  2726. return this.decode(reader, reader.uint32());
  2727. };
  2728. /**
  2729. * Verifies a create_order_nty message.
  2730. * @function verify
  2731. * @memberof game.create_order_nty
  2732. * @static
  2733. * @param {Object.<string,*>} message Plain object to verify
  2734. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2735. */
  2736. create_order_nty.verify = function verify(message) {
  2737. if (typeof message !== "object" || message === null)
  2738. return "object expected";
  2739. if (message.id != null && message.hasOwnProperty("id"))
  2740. if (!$util.isString(message.id))
  2741. return "id: string expected";
  2742. if (message.cfid != null && message.hasOwnProperty("cfid"))
  2743. if (!$util.isInteger(message.cfid) && !(message.cfid && $util.isInteger(message.cfid.low) && $util.isInteger(message.cfid.high)))
  2744. return "cfid: integer|Long expected";
  2745. return null;
  2746. };
  2747. /**
  2748. * Creates a create_order_nty message from a plain object. Also converts values to their respective internal types.
  2749. * @function fromObject
  2750. * @memberof game.create_order_nty
  2751. * @static
  2752. * @param {Object.<string,*>} object Plain object
  2753. * @returns {game.create_order_nty} create_order_nty
  2754. */
  2755. create_order_nty.fromObject = function fromObject(object) {
  2756. if (object instanceof $root.game.create_order_nty)
  2757. return object;
  2758. let message = new $root.game.create_order_nty();
  2759. if (object.id != null)
  2760. message.id = String(object.id);
  2761. if (object.cfid != null)
  2762. if ($util.Long)
  2763. (message.cfid = $util.Long.fromValue(object.cfid)).unsigned = false;
  2764. else if (typeof object.cfid === "string")
  2765. message.cfid = parseInt(object.cfid, 10);
  2766. else if (typeof object.cfid === "number")
  2767. message.cfid = object.cfid;
  2768. else if (typeof object.cfid === "object")
  2769. message.cfid = new $util.LongBits(object.cfid.low >>> 0, object.cfid.high >>> 0).toNumber();
  2770. return message;
  2771. };
  2772. /**
  2773. * Creates a plain object from a create_order_nty message. Also converts values to other types if specified.
  2774. * @function toObject
  2775. * @memberof game.create_order_nty
  2776. * @static
  2777. * @param {game.create_order_nty} message create_order_nty
  2778. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2779. * @returns {Object.<string,*>} Plain object
  2780. */
  2781. create_order_nty.toObject = function toObject(message, options) {
  2782. if (!options)
  2783. options = {};
  2784. let object = {};
  2785. if (options.defaults) {
  2786. object.id = "";
  2787. if ($util.Long) {
  2788. let long = new $util.Long(0, 0, false);
  2789. object.cfid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  2790. } else
  2791. object.cfid = options.longs === String ? "0" : 0;
  2792. }
  2793. if (message.id != null && message.hasOwnProperty("id"))
  2794. object.id = message.id;
  2795. if (message.cfid != null && message.hasOwnProperty("cfid"))
  2796. if (typeof message.cfid === "number")
  2797. object.cfid = options.longs === String ? String(message.cfid) : message.cfid;
  2798. else
  2799. object.cfid = options.longs === String ? $util.Long.prototype.toString.call(message.cfid) : options.longs === Number ? new $util.LongBits(message.cfid.low >>> 0, message.cfid.high >>> 0).toNumber() : message.cfid;
  2800. return object;
  2801. };
  2802. /**
  2803. * Converts this create_order_nty to JSON.
  2804. * @function toJSON
  2805. * @memberof game.create_order_nty
  2806. * @instance
  2807. * @returns {Object.<string,*>} JSON object
  2808. */
  2809. create_order_nty.prototype.toJSON = function toJSON() {
  2810. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2811. };
  2812. return create_order_nty;
  2813. })();
  2814. game.city_data = (function() {
  2815. /**
  2816. * Properties of a city_data.
  2817. * @memberof game
  2818. * @interface Icity_data
  2819. */
  2820. /**
  2821. * Constructs a new city_data.
  2822. * @memberof game
  2823. * @classdesc Represents a city_data.
  2824. * @implements Icity_data
  2825. * @constructor
  2826. * @param {game.Icity_data=} [properties] Properties to set
  2827. */
  2828. function city_data(properties) {
  2829. if (properties)
  2830. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2831. if (properties[keys[i]] != null)
  2832. this[keys[i]] = properties[keys[i]];
  2833. }
  2834. /**
  2835. * Creates a new city_data instance using the specified properties.
  2836. * @function create
  2837. * @memberof game.city_data
  2838. * @static
  2839. * @param {game.Icity_data=} [properties] Properties to set
  2840. * @returns {game.city_data} city_data instance
  2841. */
  2842. city_data.create = function create(properties) {
  2843. return new city_data(properties);
  2844. };
  2845. /**
  2846. * Encodes the specified city_data message. Does not implicitly {@link game.city_data.verify|verify} messages.
  2847. * @function encode
  2848. * @memberof game.city_data
  2849. * @static
  2850. * @param {game.Icity_data} message city_data message or plain object to encode
  2851. * @param {$protobuf.Writer} [writer] Writer to encode to
  2852. * @returns {$protobuf.Writer} Writer
  2853. */
  2854. city_data.encode = function encode(message, writer) {
  2855. if (!writer)
  2856. writer = $Writer.create();
  2857. return writer;
  2858. };
  2859. /**
  2860. * Encodes the specified city_data message, length delimited. Does not implicitly {@link game.city_data.verify|verify} messages.
  2861. * @function encodeDelimited
  2862. * @memberof game.city_data
  2863. * @static
  2864. * @param {game.Icity_data} message city_data message or plain object to encode
  2865. * @param {$protobuf.Writer} [writer] Writer to encode to
  2866. * @returns {$protobuf.Writer} Writer
  2867. */
  2868. city_data.encodeDelimited = function encodeDelimited(message, writer) {
  2869. return this.encode(message, writer).ldelim();
  2870. };
  2871. /**
  2872. * Decodes a city_data message from the specified reader or buffer.
  2873. * @function decode
  2874. * @memberof game.city_data
  2875. * @static
  2876. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2877. * @param {number} [length] Message length if known beforehand
  2878. * @returns {game.city_data} city_data
  2879. * @throws {Error} If the payload is not a reader or valid buffer
  2880. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2881. */
  2882. city_data.decode = function decode(reader, length) {
  2883. if (!(reader instanceof $Reader))
  2884. reader = $Reader.create(reader);
  2885. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data();
  2886. while (reader.pos < end) {
  2887. let tag = reader.uint32();
  2888. switch (tag >>> 3) {
  2889. default:
  2890. reader.skipType(tag & 7);
  2891. break;
  2892. }
  2893. }
  2894. return message;
  2895. };
  2896. /**
  2897. * Decodes a city_data message from the specified reader or buffer, length delimited.
  2898. * @function decodeDelimited
  2899. * @memberof game.city_data
  2900. * @static
  2901. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  2902. * @returns {game.city_data} city_data
  2903. * @throws {Error} If the payload is not a reader or valid buffer
  2904. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  2905. */
  2906. city_data.decodeDelimited = function decodeDelimited(reader) {
  2907. if (!(reader instanceof $Reader))
  2908. reader = new $Reader(reader);
  2909. return this.decode(reader, reader.uint32());
  2910. };
  2911. /**
  2912. * Verifies a city_data message.
  2913. * @function verify
  2914. * @memberof game.city_data
  2915. * @static
  2916. * @param {Object.<string,*>} message Plain object to verify
  2917. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  2918. */
  2919. city_data.verify = function verify(message) {
  2920. if (typeof message !== "object" || message === null)
  2921. return "object expected";
  2922. return null;
  2923. };
  2924. /**
  2925. * Creates a city_data message from a plain object. Also converts values to their respective internal types.
  2926. * @function fromObject
  2927. * @memberof game.city_data
  2928. * @static
  2929. * @param {Object.<string,*>} object Plain object
  2930. * @returns {game.city_data} city_data
  2931. */
  2932. city_data.fromObject = function fromObject(object) {
  2933. if (object instanceof $root.game.city_data)
  2934. return object;
  2935. return new $root.game.city_data();
  2936. };
  2937. /**
  2938. * Creates a plain object from a city_data message. Also converts values to other types if specified.
  2939. * @function toObject
  2940. * @memberof game.city_data
  2941. * @static
  2942. * @param {game.city_data} message city_data
  2943. * @param {$protobuf.IConversionOptions} [options] Conversion options
  2944. * @returns {Object.<string,*>} Plain object
  2945. */
  2946. city_data.toObject = function toObject() {
  2947. return {};
  2948. };
  2949. /**
  2950. * Converts this city_data to JSON.
  2951. * @function toJSON
  2952. * @memberof game.city_data
  2953. * @instance
  2954. * @returns {Object.<string,*>} JSON object
  2955. */
  2956. city_data.prototype.toJSON = function toJSON() {
  2957. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  2958. };
  2959. return city_data;
  2960. })();
  2961. game.city_data_rsp = (function() {
  2962. /**
  2963. * Properties of a city_data_rsp.
  2964. * @memberof game
  2965. * @interface Icity_data_rsp
  2966. * @property {number|Long|null} [errno] city_data_rsp errno
  2967. * @property {number|Long|null} [time] city_data_rsp time
  2968. * @property {Array.<game.Ibuilding>|null} [list] city_data_rsp list
  2969. * @property {Array.<number|Long>|null} [skillList] city_data_rsp skillList
  2970. * @property {number|Long|null} [skillid] city_data_rsp skillid
  2971. */
  2972. /**
  2973. * Constructs a new city_data_rsp.
  2974. * @memberof game
  2975. * @classdesc Represents a city_data_rsp.
  2976. * @implements Icity_data_rsp
  2977. * @constructor
  2978. * @param {game.Icity_data_rsp=} [properties] Properties to set
  2979. */
  2980. function city_data_rsp(properties) {
  2981. this.list = [];
  2982. this.skillList = [];
  2983. if (properties)
  2984. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  2985. if (properties[keys[i]] != null)
  2986. this[keys[i]] = properties[keys[i]];
  2987. }
  2988. /**
  2989. * city_data_rsp errno.
  2990. * @member {number|Long} errno
  2991. * @memberof game.city_data_rsp
  2992. * @instance
  2993. */
  2994. city_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  2995. /**
  2996. * city_data_rsp time.
  2997. * @member {number|Long} time
  2998. * @memberof game.city_data_rsp
  2999. * @instance
  3000. */
  3001. city_data_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3002. /**
  3003. * city_data_rsp list.
  3004. * @member {Array.<game.Ibuilding>} list
  3005. * @memberof game.city_data_rsp
  3006. * @instance
  3007. */
  3008. city_data_rsp.prototype.list = $util.emptyArray;
  3009. /**
  3010. * city_data_rsp skillList.
  3011. * @member {Array.<number|Long>} skillList
  3012. * @memberof game.city_data_rsp
  3013. * @instance
  3014. */
  3015. city_data_rsp.prototype.skillList = $util.emptyArray;
  3016. /**
  3017. * city_data_rsp skillid.
  3018. * @member {number|Long} skillid
  3019. * @memberof game.city_data_rsp
  3020. * @instance
  3021. */
  3022. city_data_rsp.prototype.skillid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3023. /**
  3024. * Creates a new city_data_rsp instance using the specified properties.
  3025. * @function create
  3026. * @memberof game.city_data_rsp
  3027. * @static
  3028. * @param {game.Icity_data_rsp=} [properties] Properties to set
  3029. * @returns {game.city_data_rsp} city_data_rsp instance
  3030. */
  3031. city_data_rsp.create = function create(properties) {
  3032. return new city_data_rsp(properties);
  3033. };
  3034. /**
  3035. * Encodes the specified city_data_rsp message. Does not implicitly {@link game.city_data_rsp.verify|verify} messages.
  3036. * @function encode
  3037. * @memberof game.city_data_rsp
  3038. * @static
  3039. * @param {game.Icity_data_rsp} message city_data_rsp message or plain object to encode
  3040. * @param {$protobuf.Writer} [writer] Writer to encode to
  3041. * @returns {$protobuf.Writer} Writer
  3042. */
  3043. city_data_rsp.encode = function encode(message, writer) {
  3044. if (!writer)
  3045. writer = $Writer.create();
  3046. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  3047. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  3048. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  3049. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  3050. if (message.list != null && message.list.length)
  3051. for (let i = 0; i < message.list.length; ++i)
  3052. $root.game.building.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  3053. if (message.skillList != null && message.skillList.length) {
  3054. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  3055. for (let i = 0; i < message.skillList.length; ++i)
  3056. writer.int64(message.skillList[i]);
  3057. writer.ldelim();
  3058. }
  3059. if (message.skillid != null && Object.hasOwnProperty.call(message, "skillid"))
  3060. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.skillid);
  3061. return writer;
  3062. };
  3063. /**
  3064. * Encodes the specified city_data_rsp message, length delimited. Does not implicitly {@link game.city_data_rsp.verify|verify} messages.
  3065. * @function encodeDelimited
  3066. * @memberof game.city_data_rsp
  3067. * @static
  3068. * @param {game.Icity_data_rsp} message city_data_rsp message or plain object to encode
  3069. * @param {$protobuf.Writer} [writer] Writer to encode to
  3070. * @returns {$protobuf.Writer} Writer
  3071. */
  3072. city_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  3073. return this.encode(message, writer).ldelim();
  3074. };
  3075. /**
  3076. * Decodes a city_data_rsp message from the specified reader or buffer.
  3077. * @function decode
  3078. * @memberof game.city_data_rsp
  3079. * @static
  3080. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3081. * @param {number} [length] Message length if known beforehand
  3082. * @returns {game.city_data_rsp} city_data_rsp
  3083. * @throws {Error} If the payload is not a reader or valid buffer
  3084. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3085. */
  3086. city_data_rsp.decode = function decode(reader, length) {
  3087. if (!(reader instanceof $Reader))
  3088. reader = $Reader.create(reader);
  3089. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data_rsp();
  3090. while (reader.pos < end) {
  3091. let tag = reader.uint32();
  3092. switch (tag >>> 3) {
  3093. case 1:
  3094. message.errno = reader.int64();
  3095. break;
  3096. case 2:
  3097. message.time = reader.int64();
  3098. break;
  3099. case 3:
  3100. if (!(message.list && message.list.length))
  3101. message.list = [];
  3102. message.list.push($root.game.building.decode(reader, reader.uint32()));
  3103. break;
  3104. case 4:
  3105. if (!(message.skillList && message.skillList.length))
  3106. message.skillList = [];
  3107. if ((tag & 7) === 2) {
  3108. let end2 = reader.uint32() + reader.pos;
  3109. while (reader.pos < end2)
  3110. message.skillList.push(reader.int64());
  3111. } else
  3112. message.skillList.push(reader.int64());
  3113. break;
  3114. case 5:
  3115. message.skillid = reader.int64();
  3116. break;
  3117. default:
  3118. reader.skipType(tag & 7);
  3119. break;
  3120. }
  3121. }
  3122. return message;
  3123. };
  3124. /**
  3125. * Decodes a city_data_rsp message from the specified reader or buffer, length delimited.
  3126. * @function decodeDelimited
  3127. * @memberof game.city_data_rsp
  3128. * @static
  3129. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3130. * @returns {game.city_data_rsp} city_data_rsp
  3131. * @throws {Error} If the payload is not a reader or valid buffer
  3132. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3133. */
  3134. city_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  3135. if (!(reader instanceof $Reader))
  3136. reader = new $Reader(reader);
  3137. return this.decode(reader, reader.uint32());
  3138. };
  3139. /**
  3140. * Verifies a city_data_rsp message.
  3141. * @function verify
  3142. * @memberof game.city_data_rsp
  3143. * @static
  3144. * @param {Object.<string,*>} message Plain object to verify
  3145. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3146. */
  3147. city_data_rsp.verify = function verify(message) {
  3148. if (typeof message !== "object" || message === null)
  3149. return "object expected";
  3150. if (message.errno != null && message.hasOwnProperty("errno"))
  3151. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  3152. return "errno: integer|Long expected";
  3153. if (message.time != null && message.hasOwnProperty("time"))
  3154. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  3155. return "time: integer|Long expected";
  3156. if (message.list != null && message.hasOwnProperty("list")) {
  3157. if (!Array.isArray(message.list))
  3158. return "list: array expected";
  3159. for (let i = 0; i < message.list.length; ++i) {
  3160. let error = $root.game.building.verify(message.list[i]);
  3161. if (error)
  3162. return "list." + error;
  3163. }
  3164. }
  3165. if (message.skillList != null && message.hasOwnProperty("skillList")) {
  3166. if (!Array.isArray(message.skillList))
  3167. return "skillList: array expected";
  3168. for (let i = 0; i < message.skillList.length; ++i)
  3169. if (!$util.isInteger(message.skillList[i]) && !(message.skillList[i] && $util.isInteger(message.skillList[i].low) && $util.isInteger(message.skillList[i].high)))
  3170. return "skillList: integer|Long[] expected";
  3171. }
  3172. if (message.skillid != null && message.hasOwnProperty("skillid"))
  3173. if (!$util.isInteger(message.skillid) && !(message.skillid && $util.isInteger(message.skillid.low) && $util.isInteger(message.skillid.high)))
  3174. return "skillid: integer|Long expected";
  3175. return null;
  3176. };
  3177. /**
  3178. * Creates a city_data_rsp message from a plain object. Also converts values to their respective internal types.
  3179. * @function fromObject
  3180. * @memberof game.city_data_rsp
  3181. * @static
  3182. * @param {Object.<string,*>} object Plain object
  3183. * @returns {game.city_data_rsp} city_data_rsp
  3184. */
  3185. city_data_rsp.fromObject = function fromObject(object) {
  3186. if (object instanceof $root.game.city_data_rsp)
  3187. return object;
  3188. let message = new $root.game.city_data_rsp();
  3189. if (object.errno != null)
  3190. if ($util.Long)
  3191. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  3192. else if (typeof object.errno === "string")
  3193. message.errno = parseInt(object.errno, 10);
  3194. else if (typeof object.errno === "number")
  3195. message.errno = object.errno;
  3196. else if (typeof object.errno === "object")
  3197. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  3198. if (object.time != null)
  3199. if ($util.Long)
  3200. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  3201. else if (typeof object.time === "string")
  3202. message.time = parseInt(object.time, 10);
  3203. else if (typeof object.time === "number")
  3204. message.time = object.time;
  3205. else if (typeof object.time === "object")
  3206. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  3207. if (object.list) {
  3208. if (!Array.isArray(object.list))
  3209. throw TypeError(".game.city_data_rsp.list: array expected");
  3210. message.list = [];
  3211. for (let i = 0; i < object.list.length; ++i) {
  3212. if (typeof object.list[i] !== "object")
  3213. throw TypeError(".game.city_data_rsp.list: object expected");
  3214. message.list[i] = $root.game.building.fromObject(object.list[i]);
  3215. }
  3216. }
  3217. if (object.skillList) {
  3218. if (!Array.isArray(object.skillList))
  3219. throw TypeError(".game.city_data_rsp.skillList: array expected");
  3220. message.skillList = [];
  3221. for (let i = 0; i < object.skillList.length; ++i)
  3222. if ($util.Long)
  3223. (message.skillList[i] = $util.Long.fromValue(object.skillList[i])).unsigned = false;
  3224. else if (typeof object.skillList[i] === "string")
  3225. message.skillList[i] = parseInt(object.skillList[i], 10);
  3226. else if (typeof object.skillList[i] === "number")
  3227. message.skillList[i] = object.skillList[i];
  3228. else if (typeof object.skillList[i] === "object")
  3229. message.skillList[i] = new $util.LongBits(object.skillList[i].low >>> 0, object.skillList[i].high >>> 0).toNumber();
  3230. }
  3231. if (object.skillid != null)
  3232. if ($util.Long)
  3233. (message.skillid = $util.Long.fromValue(object.skillid)).unsigned = false;
  3234. else if (typeof object.skillid === "string")
  3235. message.skillid = parseInt(object.skillid, 10);
  3236. else if (typeof object.skillid === "number")
  3237. message.skillid = object.skillid;
  3238. else if (typeof object.skillid === "object")
  3239. message.skillid = new $util.LongBits(object.skillid.low >>> 0, object.skillid.high >>> 0).toNumber();
  3240. return message;
  3241. };
  3242. /**
  3243. * Creates a plain object from a city_data_rsp message. Also converts values to other types if specified.
  3244. * @function toObject
  3245. * @memberof game.city_data_rsp
  3246. * @static
  3247. * @param {game.city_data_rsp} message city_data_rsp
  3248. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3249. * @returns {Object.<string,*>} Plain object
  3250. */
  3251. city_data_rsp.toObject = function toObject(message, options) {
  3252. if (!options)
  3253. options = {};
  3254. let object = {};
  3255. if (options.arrays || options.defaults) {
  3256. object.list = [];
  3257. object.skillList = [];
  3258. }
  3259. if (options.defaults) {
  3260. if ($util.Long) {
  3261. let long = new $util.Long(0, 0, false);
  3262. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3263. } else
  3264. object.errno = options.longs === String ? "0" : 0;
  3265. if ($util.Long) {
  3266. let long = new $util.Long(0, 0, false);
  3267. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3268. } else
  3269. object.time = options.longs === String ? "0" : 0;
  3270. if ($util.Long) {
  3271. let long = new $util.Long(0, 0, false);
  3272. object.skillid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3273. } else
  3274. object.skillid = options.longs === String ? "0" : 0;
  3275. }
  3276. if (message.errno != null && message.hasOwnProperty("errno"))
  3277. if (typeof message.errno === "number")
  3278. object.errno = options.longs === String ? String(message.errno) : message.errno;
  3279. else
  3280. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  3281. if (message.time != null && message.hasOwnProperty("time"))
  3282. if (typeof message.time === "number")
  3283. object.time = options.longs === String ? String(message.time) : message.time;
  3284. else
  3285. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  3286. if (message.list && message.list.length) {
  3287. object.list = [];
  3288. for (let j = 0; j < message.list.length; ++j)
  3289. object.list[j] = $root.game.building.toObject(message.list[j], options);
  3290. }
  3291. if (message.skillList && message.skillList.length) {
  3292. object.skillList = [];
  3293. for (let j = 0; j < message.skillList.length; ++j)
  3294. if (typeof message.skillList[j] === "number")
  3295. object.skillList[j] = options.longs === String ? String(message.skillList[j]) : message.skillList[j];
  3296. else
  3297. object.skillList[j] = options.longs === String ? $util.Long.prototype.toString.call(message.skillList[j]) : options.longs === Number ? new $util.LongBits(message.skillList[j].low >>> 0, message.skillList[j].high >>> 0).toNumber() : message.skillList[j];
  3298. }
  3299. if (message.skillid != null && message.hasOwnProperty("skillid"))
  3300. if (typeof message.skillid === "number")
  3301. object.skillid = options.longs === String ? String(message.skillid) : message.skillid;
  3302. else
  3303. object.skillid = options.longs === String ? $util.Long.prototype.toString.call(message.skillid) : options.longs === Number ? new $util.LongBits(message.skillid.low >>> 0, message.skillid.high >>> 0).toNumber() : message.skillid;
  3304. return object;
  3305. };
  3306. /**
  3307. * Converts this city_data_rsp to JSON.
  3308. * @function toJSON
  3309. * @memberof game.city_data_rsp
  3310. * @instance
  3311. * @returns {Object.<string,*>} JSON object
  3312. */
  3313. city_data_rsp.prototype.toJSON = function toJSON() {
  3314. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3315. };
  3316. return city_data_rsp;
  3317. })();
  3318. game.city_data_send = (function() {
  3319. /**
  3320. * Properties of a city_data_send.
  3321. * @memberof game
  3322. * @interface Icity_data_send
  3323. * @property {number|Long|null} [time] city_data_send time
  3324. * @property {Array.<game.Ibuilding>|null} [list] city_data_send list
  3325. */
  3326. /**
  3327. * Constructs a new city_data_send.
  3328. * @memberof game
  3329. * @classdesc Represents a city_data_send.
  3330. * @implements Icity_data_send
  3331. * @constructor
  3332. * @param {game.Icity_data_send=} [properties] Properties to set
  3333. */
  3334. function city_data_send(properties) {
  3335. this.list = [];
  3336. if (properties)
  3337. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3338. if (properties[keys[i]] != null)
  3339. this[keys[i]] = properties[keys[i]];
  3340. }
  3341. /**
  3342. * city_data_send time.
  3343. * @member {number|Long} time
  3344. * @memberof game.city_data_send
  3345. * @instance
  3346. */
  3347. city_data_send.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3348. /**
  3349. * city_data_send list.
  3350. * @member {Array.<game.Ibuilding>} list
  3351. * @memberof game.city_data_send
  3352. * @instance
  3353. */
  3354. city_data_send.prototype.list = $util.emptyArray;
  3355. /**
  3356. * Creates a new city_data_send instance using the specified properties.
  3357. * @function create
  3358. * @memberof game.city_data_send
  3359. * @static
  3360. * @param {game.Icity_data_send=} [properties] Properties to set
  3361. * @returns {game.city_data_send} city_data_send instance
  3362. */
  3363. city_data_send.create = function create(properties) {
  3364. return new city_data_send(properties);
  3365. };
  3366. /**
  3367. * Encodes the specified city_data_send message. Does not implicitly {@link game.city_data_send.verify|verify} messages.
  3368. * @function encode
  3369. * @memberof game.city_data_send
  3370. * @static
  3371. * @param {game.Icity_data_send} message city_data_send message or plain object to encode
  3372. * @param {$protobuf.Writer} [writer] Writer to encode to
  3373. * @returns {$protobuf.Writer} Writer
  3374. */
  3375. city_data_send.encode = function encode(message, writer) {
  3376. if (!writer)
  3377. writer = $Writer.create();
  3378. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  3379. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.time);
  3380. if (message.list != null && message.list.length)
  3381. for (let i = 0; i < message.list.length; ++i)
  3382. $root.game.building.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  3383. return writer;
  3384. };
  3385. /**
  3386. * Encodes the specified city_data_send message, length delimited. Does not implicitly {@link game.city_data_send.verify|verify} messages.
  3387. * @function encodeDelimited
  3388. * @memberof game.city_data_send
  3389. * @static
  3390. * @param {game.Icity_data_send} message city_data_send message or plain object to encode
  3391. * @param {$protobuf.Writer} [writer] Writer to encode to
  3392. * @returns {$protobuf.Writer} Writer
  3393. */
  3394. city_data_send.encodeDelimited = function encodeDelimited(message, writer) {
  3395. return this.encode(message, writer).ldelim();
  3396. };
  3397. /**
  3398. * Decodes a city_data_send message from the specified reader or buffer.
  3399. * @function decode
  3400. * @memberof game.city_data_send
  3401. * @static
  3402. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3403. * @param {number} [length] Message length if known beforehand
  3404. * @returns {game.city_data_send} city_data_send
  3405. * @throws {Error} If the payload is not a reader or valid buffer
  3406. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3407. */
  3408. city_data_send.decode = function decode(reader, length) {
  3409. if (!(reader instanceof $Reader))
  3410. reader = $Reader.create(reader);
  3411. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_data_send();
  3412. while (reader.pos < end) {
  3413. let tag = reader.uint32();
  3414. switch (tag >>> 3) {
  3415. case 1:
  3416. message.time = reader.int64();
  3417. break;
  3418. case 2:
  3419. if (!(message.list && message.list.length))
  3420. message.list = [];
  3421. message.list.push($root.game.building.decode(reader, reader.uint32()));
  3422. break;
  3423. default:
  3424. reader.skipType(tag & 7);
  3425. break;
  3426. }
  3427. }
  3428. return message;
  3429. };
  3430. /**
  3431. * Decodes a city_data_send message from the specified reader or buffer, length delimited.
  3432. * @function decodeDelimited
  3433. * @memberof game.city_data_send
  3434. * @static
  3435. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3436. * @returns {game.city_data_send} city_data_send
  3437. * @throws {Error} If the payload is not a reader or valid buffer
  3438. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3439. */
  3440. city_data_send.decodeDelimited = function decodeDelimited(reader) {
  3441. if (!(reader instanceof $Reader))
  3442. reader = new $Reader(reader);
  3443. return this.decode(reader, reader.uint32());
  3444. };
  3445. /**
  3446. * Verifies a city_data_send message.
  3447. * @function verify
  3448. * @memberof game.city_data_send
  3449. * @static
  3450. * @param {Object.<string,*>} message Plain object to verify
  3451. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3452. */
  3453. city_data_send.verify = function verify(message) {
  3454. if (typeof message !== "object" || message === null)
  3455. return "object expected";
  3456. if (message.time != null && message.hasOwnProperty("time"))
  3457. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  3458. return "time: integer|Long expected";
  3459. if (message.list != null && message.hasOwnProperty("list")) {
  3460. if (!Array.isArray(message.list))
  3461. return "list: array expected";
  3462. for (let i = 0; i < message.list.length; ++i) {
  3463. let error = $root.game.building.verify(message.list[i]);
  3464. if (error)
  3465. return "list." + error;
  3466. }
  3467. }
  3468. return null;
  3469. };
  3470. /**
  3471. * Creates a city_data_send message from a plain object. Also converts values to their respective internal types.
  3472. * @function fromObject
  3473. * @memberof game.city_data_send
  3474. * @static
  3475. * @param {Object.<string,*>} object Plain object
  3476. * @returns {game.city_data_send} city_data_send
  3477. */
  3478. city_data_send.fromObject = function fromObject(object) {
  3479. if (object instanceof $root.game.city_data_send)
  3480. return object;
  3481. let message = new $root.game.city_data_send();
  3482. if (object.time != null)
  3483. if ($util.Long)
  3484. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  3485. else if (typeof object.time === "string")
  3486. message.time = parseInt(object.time, 10);
  3487. else if (typeof object.time === "number")
  3488. message.time = object.time;
  3489. else if (typeof object.time === "object")
  3490. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  3491. if (object.list) {
  3492. if (!Array.isArray(object.list))
  3493. throw TypeError(".game.city_data_send.list: array expected");
  3494. message.list = [];
  3495. for (let i = 0; i < object.list.length; ++i) {
  3496. if (typeof object.list[i] !== "object")
  3497. throw TypeError(".game.city_data_send.list: object expected");
  3498. message.list[i] = $root.game.building.fromObject(object.list[i]);
  3499. }
  3500. }
  3501. return message;
  3502. };
  3503. /**
  3504. * Creates a plain object from a city_data_send message. Also converts values to other types if specified.
  3505. * @function toObject
  3506. * @memberof game.city_data_send
  3507. * @static
  3508. * @param {game.city_data_send} message city_data_send
  3509. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3510. * @returns {Object.<string,*>} Plain object
  3511. */
  3512. city_data_send.toObject = function toObject(message, options) {
  3513. if (!options)
  3514. options = {};
  3515. let object = {};
  3516. if (options.arrays || options.defaults)
  3517. object.list = [];
  3518. if (options.defaults)
  3519. if ($util.Long) {
  3520. let long = new $util.Long(0, 0, false);
  3521. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3522. } else
  3523. object.time = options.longs === String ? "0" : 0;
  3524. if (message.time != null && message.hasOwnProperty("time"))
  3525. if (typeof message.time === "number")
  3526. object.time = options.longs === String ? String(message.time) : message.time;
  3527. else
  3528. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  3529. if (message.list && message.list.length) {
  3530. object.list = [];
  3531. for (let j = 0; j < message.list.length; ++j)
  3532. object.list[j] = $root.game.building.toObject(message.list[j], options);
  3533. }
  3534. return object;
  3535. };
  3536. /**
  3537. * Converts this city_data_send to JSON.
  3538. * @function toJSON
  3539. * @memberof game.city_data_send
  3540. * @instance
  3541. * @returns {Object.<string,*>} JSON object
  3542. */
  3543. city_data_send.prototype.toJSON = function toJSON() {
  3544. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3545. };
  3546. return city_data_send;
  3547. })();
  3548. game.building_upgrade = (function() {
  3549. /**
  3550. * Properties of a building_upgrade.
  3551. * @memberof game
  3552. * @interface Ibuilding_upgrade
  3553. * @property {number|Long|null} [id] building_upgrade id
  3554. */
  3555. /**
  3556. * Constructs a new building_upgrade.
  3557. * @memberof game
  3558. * @classdesc Represents a building_upgrade.
  3559. * @implements Ibuilding_upgrade
  3560. * @constructor
  3561. * @param {game.Ibuilding_upgrade=} [properties] Properties to set
  3562. */
  3563. function building_upgrade(properties) {
  3564. if (properties)
  3565. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3566. if (properties[keys[i]] != null)
  3567. this[keys[i]] = properties[keys[i]];
  3568. }
  3569. /**
  3570. * building_upgrade id.
  3571. * @member {number|Long} id
  3572. * @memberof game.building_upgrade
  3573. * @instance
  3574. */
  3575. building_upgrade.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3576. /**
  3577. * Creates a new building_upgrade instance using the specified properties.
  3578. * @function create
  3579. * @memberof game.building_upgrade
  3580. * @static
  3581. * @param {game.Ibuilding_upgrade=} [properties] Properties to set
  3582. * @returns {game.building_upgrade} building_upgrade instance
  3583. */
  3584. building_upgrade.create = function create(properties) {
  3585. return new building_upgrade(properties);
  3586. };
  3587. /**
  3588. * Encodes the specified building_upgrade message. Does not implicitly {@link game.building_upgrade.verify|verify} messages.
  3589. * @function encode
  3590. * @memberof game.building_upgrade
  3591. * @static
  3592. * @param {game.Ibuilding_upgrade} message building_upgrade message or plain object to encode
  3593. * @param {$protobuf.Writer} [writer] Writer to encode to
  3594. * @returns {$protobuf.Writer} Writer
  3595. */
  3596. building_upgrade.encode = function encode(message, writer) {
  3597. if (!writer)
  3598. writer = $Writer.create();
  3599. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  3600. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  3601. return writer;
  3602. };
  3603. /**
  3604. * Encodes the specified building_upgrade message, length delimited. Does not implicitly {@link game.building_upgrade.verify|verify} messages.
  3605. * @function encodeDelimited
  3606. * @memberof game.building_upgrade
  3607. * @static
  3608. * @param {game.Ibuilding_upgrade} message building_upgrade message or plain object to encode
  3609. * @param {$protobuf.Writer} [writer] Writer to encode to
  3610. * @returns {$protobuf.Writer} Writer
  3611. */
  3612. building_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  3613. return this.encode(message, writer).ldelim();
  3614. };
  3615. /**
  3616. * Decodes a building_upgrade message from the specified reader or buffer.
  3617. * @function decode
  3618. * @memberof game.building_upgrade
  3619. * @static
  3620. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3621. * @param {number} [length] Message length if known beforehand
  3622. * @returns {game.building_upgrade} building_upgrade
  3623. * @throws {Error} If the payload is not a reader or valid buffer
  3624. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3625. */
  3626. building_upgrade.decode = function decode(reader, length) {
  3627. if (!(reader instanceof $Reader))
  3628. reader = $Reader.create(reader);
  3629. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_upgrade();
  3630. while (reader.pos < end) {
  3631. let tag = reader.uint32();
  3632. switch (tag >>> 3) {
  3633. case 1:
  3634. message.id = reader.int64();
  3635. break;
  3636. default:
  3637. reader.skipType(tag & 7);
  3638. break;
  3639. }
  3640. }
  3641. return message;
  3642. };
  3643. /**
  3644. * Decodes a building_upgrade message from the specified reader or buffer, length delimited.
  3645. * @function decodeDelimited
  3646. * @memberof game.building_upgrade
  3647. * @static
  3648. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3649. * @returns {game.building_upgrade} building_upgrade
  3650. * @throws {Error} If the payload is not a reader or valid buffer
  3651. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3652. */
  3653. building_upgrade.decodeDelimited = function decodeDelimited(reader) {
  3654. if (!(reader instanceof $Reader))
  3655. reader = new $Reader(reader);
  3656. return this.decode(reader, reader.uint32());
  3657. };
  3658. /**
  3659. * Verifies a building_upgrade message.
  3660. * @function verify
  3661. * @memberof game.building_upgrade
  3662. * @static
  3663. * @param {Object.<string,*>} message Plain object to verify
  3664. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3665. */
  3666. building_upgrade.verify = function verify(message) {
  3667. if (typeof message !== "object" || message === null)
  3668. return "object expected";
  3669. if (message.id != null && message.hasOwnProperty("id"))
  3670. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  3671. return "id: integer|Long expected";
  3672. return null;
  3673. };
  3674. /**
  3675. * Creates a building_upgrade message from a plain object. Also converts values to their respective internal types.
  3676. * @function fromObject
  3677. * @memberof game.building_upgrade
  3678. * @static
  3679. * @param {Object.<string,*>} object Plain object
  3680. * @returns {game.building_upgrade} building_upgrade
  3681. */
  3682. building_upgrade.fromObject = function fromObject(object) {
  3683. if (object instanceof $root.game.building_upgrade)
  3684. return object;
  3685. let message = new $root.game.building_upgrade();
  3686. if (object.id != null)
  3687. if ($util.Long)
  3688. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  3689. else if (typeof object.id === "string")
  3690. message.id = parseInt(object.id, 10);
  3691. else if (typeof object.id === "number")
  3692. message.id = object.id;
  3693. else if (typeof object.id === "object")
  3694. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  3695. return message;
  3696. };
  3697. /**
  3698. * Creates a plain object from a building_upgrade message. Also converts values to other types if specified.
  3699. * @function toObject
  3700. * @memberof game.building_upgrade
  3701. * @static
  3702. * @param {game.building_upgrade} message building_upgrade
  3703. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3704. * @returns {Object.<string,*>} Plain object
  3705. */
  3706. building_upgrade.toObject = function toObject(message, options) {
  3707. if (!options)
  3708. options = {};
  3709. let object = {};
  3710. if (options.defaults)
  3711. if ($util.Long) {
  3712. let long = new $util.Long(0, 0, false);
  3713. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3714. } else
  3715. object.id = options.longs === String ? "0" : 0;
  3716. if (message.id != null && message.hasOwnProperty("id"))
  3717. if (typeof message.id === "number")
  3718. object.id = options.longs === String ? String(message.id) : message.id;
  3719. else
  3720. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  3721. return object;
  3722. };
  3723. /**
  3724. * Converts this building_upgrade to JSON.
  3725. * @function toJSON
  3726. * @memberof game.building_upgrade
  3727. * @instance
  3728. * @returns {Object.<string,*>} JSON object
  3729. */
  3730. building_upgrade.prototype.toJSON = function toJSON() {
  3731. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3732. };
  3733. return building_upgrade;
  3734. })();
  3735. game.building_upgrade_rsp = (function() {
  3736. /**
  3737. * Properties of a building_upgrade_rsp.
  3738. * @memberof game
  3739. * @interface Ibuilding_upgrade_rsp
  3740. * @property {number|Long|null} [errno] building_upgrade_rsp errno
  3741. * @property {game.Ibuilding|null} [data] building_upgrade_rsp data
  3742. */
  3743. /**
  3744. * Constructs a new building_upgrade_rsp.
  3745. * @memberof game
  3746. * @classdesc Represents a building_upgrade_rsp.
  3747. * @implements Ibuilding_upgrade_rsp
  3748. * @constructor
  3749. * @param {game.Ibuilding_upgrade_rsp=} [properties] Properties to set
  3750. */
  3751. function building_upgrade_rsp(properties) {
  3752. if (properties)
  3753. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3754. if (properties[keys[i]] != null)
  3755. this[keys[i]] = properties[keys[i]];
  3756. }
  3757. /**
  3758. * building_upgrade_rsp errno.
  3759. * @member {number|Long} errno
  3760. * @memberof game.building_upgrade_rsp
  3761. * @instance
  3762. */
  3763. building_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  3764. /**
  3765. * building_upgrade_rsp data.
  3766. * @member {game.Ibuilding|null|undefined} data
  3767. * @memberof game.building_upgrade_rsp
  3768. * @instance
  3769. */
  3770. building_upgrade_rsp.prototype.data = null;
  3771. /**
  3772. * Creates a new building_upgrade_rsp instance using the specified properties.
  3773. * @function create
  3774. * @memberof game.building_upgrade_rsp
  3775. * @static
  3776. * @param {game.Ibuilding_upgrade_rsp=} [properties] Properties to set
  3777. * @returns {game.building_upgrade_rsp} building_upgrade_rsp instance
  3778. */
  3779. building_upgrade_rsp.create = function create(properties) {
  3780. return new building_upgrade_rsp(properties);
  3781. };
  3782. /**
  3783. * Encodes the specified building_upgrade_rsp message. Does not implicitly {@link game.building_upgrade_rsp.verify|verify} messages.
  3784. * @function encode
  3785. * @memberof game.building_upgrade_rsp
  3786. * @static
  3787. * @param {game.Ibuilding_upgrade_rsp} message building_upgrade_rsp message or plain object to encode
  3788. * @param {$protobuf.Writer} [writer] Writer to encode to
  3789. * @returns {$protobuf.Writer} Writer
  3790. */
  3791. building_upgrade_rsp.encode = function encode(message, writer) {
  3792. if (!writer)
  3793. writer = $Writer.create();
  3794. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  3795. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  3796. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  3797. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  3798. return writer;
  3799. };
  3800. /**
  3801. * Encodes the specified building_upgrade_rsp message, length delimited. Does not implicitly {@link game.building_upgrade_rsp.verify|verify} messages.
  3802. * @function encodeDelimited
  3803. * @memberof game.building_upgrade_rsp
  3804. * @static
  3805. * @param {game.Ibuilding_upgrade_rsp} message building_upgrade_rsp message or plain object to encode
  3806. * @param {$protobuf.Writer} [writer] Writer to encode to
  3807. * @returns {$protobuf.Writer} Writer
  3808. */
  3809. building_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  3810. return this.encode(message, writer).ldelim();
  3811. };
  3812. /**
  3813. * Decodes a building_upgrade_rsp message from the specified reader or buffer.
  3814. * @function decode
  3815. * @memberof game.building_upgrade_rsp
  3816. * @static
  3817. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3818. * @param {number} [length] Message length if known beforehand
  3819. * @returns {game.building_upgrade_rsp} building_upgrade_rsp
  3820. * @throws {Error} If the payload is not a reader or valid buffer
  3821. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3822. */
  3823. building_upgrade_rsp.decode = function decode(reader, length) {
  3824. if (!(reader instanceof $Reader))
  3825. reader = $Reader.create(reader);
  3826. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_upgrade_rsp();
  3827. while (reader.pos < end) {
  3828. let tag = reader.uint32();
  3829. switch (tag >>> 3) {
  3830. case 1:
  3831. message.errno = reader.int64();
  3832. break;
  3833. case 2:
  3834. message.data = $root.game.building.decode(reader, reader.uint32());
  3835. break;
  3836. default:
  3837. reader.skipType(tag & 7);
  3838. break;
  3839. }
  3840. }
  3841. return message;
  3842. };
  3843. /**
  3844. * Decodes a building_upgrade_rsp message from the specified reader or buffer, length delimited.
  3845. * @function decodeDelimited
  3846. * @memberof game.building_upgrade_rsp
  3847. * @static
  3848. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  3849. * @returns {game.building_upgrade_rsp} building_upgrade_rsp
  3850. * @throws {Error} If the payload is not a reader or valid buffer
  3851. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  3852. */
  3853. building_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  3854. if (!(reader instanceof $Reader))
  3855. reader = new $Reader(reader);
  3856. return this.decode(reader, reader.uint32());
  3857. };
  3858. /**
  3859. * Verifies a building_upgrade_rsp message.
  3860. * @function verify
  3861. * @memberof game.building_upgrade_rsp
  3862. * @static
  3863. * @param {Object.<string,*>} message Plain object to verify
  3864. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  3865. */
  3866. building_upgrade_rsp.verify = function verify(message) {
  3867. if (typeof message !== "object" || message === null)
  3868. return "object expected";
  3869. if (message.errno != null && message.hasOwnProperty("errno"))
  3870. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  3871. return "errno: integer|Long expected";
  3872. if (message.data != null && message.hasOwnProperty("data")) {
  3873. let error = $root.game.building.verify(message.data);
  3874. if (error)
  3875. return "data." + error;
  3876. }
  3877. return null;
  3878. };
  3879. /**
  3880. * Creates a building_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  3881. * @function fromObject
  3882. * @memberof game.building_upgrade_rsp
  3883. * @static
  3884. * @param {Object.<string,*>} object Plain object
  3885. * @returns {game.building_upgrade_rsp} building_upgrade_rsp
  3886. */
  3887. building_upgrade_rsp.fromObject = function fromObject(object) {
  3888. if (object instanceof $root.game.building_upgrade_rsp)
  3889. return object;
  3890. let message = new $root.game.building_upgrade_rsp();
  3891. if (object.errno != null)
  3892. if ($util.Long)
  3893. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  3894. else if (typeof object.errno === "string")
  3895. message.errno = parseInt(object.errno, 10);
  3896. else if (typeof object.errno === "number")
  3897. message.errno = object.errno;
  3898. else if (typeof object.errno === "object")
  3899. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  3900. if (object.data != null) {
  3901. if (typeof object.data !== "object")
  3902. throw TypeError(".game.building_upgrade_rsp.data: object expected");
  3903. message.data = $root.game.building.fromObject(object.data);
  3904. }
  3905. return message;
  3906. };
  3907. /**
  3908. * Creates a plain object from a building_upgrade_rsp message. Also converts values to other types if specified.
  3909. * @function toObject
  3910. * @memberof game.building_upgrade_rsp
  3911. * @static
  3912. * @param {game.building_upgrade_rsp} message building_upgrade_rsp
  3913. * @param {$protobuf.IConversionOptions} [options] Conversion options
  3914. * @returns {Object.<string,*>} Plain object
  3915. */
  3916. building_upgrade_rsp.toObject = function toObject(message, options) {
  3917. if (!options)
  3918. options = {};
  3919. let object = {};
  3920. if (options.defaults) {
  3921. if ($util.Long) {
  3922. let long = new $util.Long(0, 0, false);
  3923. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  3924. } else
  3925. object.errno = options.longs === String ? "0" : 0;
  3926. object.data = null;
  3927. }
  3928. if (message.errno != null && message.hasOwnProperty("errno"))
  3929. if (typeof message.errno === "number")
  3930. object.errno = options.longs === String ? String(message.errno) : message.errno;
  3931. else
  3932. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  3933. if (message.data != null && message.hasOwnProperty("data"))
  3934. object.data = $root.game.building.toObject(message.data, options);
  3935. return object;
  3936. };
  3937. /**
  3938. * Converts this building_upgrade_rsp to JSON.
  3939. * @function toJSON
  3940. * @memberof game.building_upgrade_rsp
  3941. * @instance
  3942. * @returns {Object.<string,*>} JSON object
  3943. */
  3944. building_upgrade_rsp.prototype.toJSON = function toJSON() {
  3945. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  3946. };
  3947. return building_upgrade_rsp;
  3948. })();
  3949. game.building_one_key = (function() {
  3950. /**
  3951. * Properties of a building_one_key.
  3952. * @memberof game
  3953. * @interface Ibuilding_one_key
  3954. */
  3955. /**
  3956. * Constructs a new building_one_key.
  3957. * @memberof game
  3958. * @classdesc Represents a building_one_key.
  3959. * @implements Ibuilding_one_key
  3960. * @constructor
  3961. * @param {game.Ibuilding_one_key=} [properties] Properties to set
  3962. */
  3963. function building_one_key(properties) {
  3964. if (properties)
  3965. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  3966. if (properties[keys[i]] != null)
  3967. this[keys[i]] = properties[keys[i]];
  3968. }
  3969. /**
  3970. * Creates a new building_one_key instance using the specified properties.
  3971. * @function create
  3972. * @memberof game.building_one_key
  3973. * @static
  3974. * @param {game.Ibuilding_one_key=} [properties] Properties to set
  3975. * @returns {game.building_one_key} building_one_key instance
  3976. */
  3977. building_one_key.create = function create(properties) {
  3978. return new building_one_key(properties);
  3979. };
  3980. /**
  3981. * Encodes the specified building_one_key message. Does not implicitly {@link game.building_one_key.verify|verify} messages.
  3982. * @function encode
  3983. * @memberof game.building_one_key
  3984. * @static
  3985. * @param {game.Ibuilding_one_key} message building_one_key message or plain object to encode
  3986. * @param {$protobuf.Writer} [writer] Writer to encode to
  3987. * @returns {$protobuf.Writer} Writer
  3988. */
  3989. building_one_key.encode = function encode(message, writer) {
  3990. if (!writer)
  3991. writer = $Writer.create();
  3992. return writer;
  3993. };
  3994. /**
  3995. * Encodes the specified building_one_key message, length delimited. Does not implicitly {@link game.building_one_key.verify|verify} messages.
  3996. * @function encodeDelimited
  3997. * @memberof game.building_one_key
  3998. * @static
  3999. * @param {game.Ibuilding_one_key} message building_one_key message or plain object to encode
  4000. * @param {$protobuf.Writer} [writer] Writer to encode to
  4001. * @returns {$protobuf.Writer} Writer
  4002. */
  4003. building_one_key.encodeDelimited = function encodeDelimited(message, writer) {
  4004. return this.encode(message, writer).ldelim();
  4005. };
  4006. /**
  4007. * Decodes a building_one_key message from the specified reader or buffer.
  4008. * @function decode
  4009. * @memberof game.building_one_key
  4010. * @static
  4011. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4012. * @param {number} [length] Message length if known beforehand
  4013. * @returns {game.building_one_key} building_one_key
  4014. * @throws {Error} If the payload is not a reader or valid buffer
  4015. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4016. */
  4017. building_one_key.decode = function decode(reader, length) {
  4018. if (!(reader instanceof $Reader))
  4019. reader = $Reader.create(reader);
  4020. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_one_key();
  4021. while (reader.pos < end) {
  4022. let tag = reader.uint32();
  4023. switch (tag >>> 3) {
  4024. default:
  4025. reader.skipType(tag & 7);
  4026. break;
  4027. }
  4028. }
  4029. return message;
  4030. };
  4031. /**
  4032. * Decodes a building_one_key message from the specified reader or buffer, length delimited.
  4033. * @function decodeDelimited
  4034. * @memberof game.building_one_key
  4035. * @static
  4036. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4037. * @returns {game.building_one_key} building_one_key
  4038. * @throws {Error} If the payload is not a reader or valid buffer
  4039. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4040. */
  4041. building_one_key.decodeDelimited = function decodeDelimited(reader) {
  4042. if (!(reader instanceof $Reader))
  4043. reader = new $Reader(reader);
  4044. return this.decode(reader, reader.uint32());
  4045. };
  4046. /**
  4047. * Verifies a building_one_key message.
  4048. * @function verify
  4049. * @memberof game.building_one_key
  4050. * @static
  4051. * @param {Object.<string,*>} message Plain object to verify
  4052. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4053. */
  4054. building_one_key.verify = function verify(message) {
  4055. if (typeof message !== "object" || message === null)
  4056. return "object expected";
  4057. return null;
  4058. };
  4059. /**
  4060. * Creates a building_one_key message from a plain object. Also converts values to their respective internal types.
  4061. * @function fromObject
  4062. * @memberof game.building_one_key
  4063. * @static
  4064. * @param {Object.<string,*>} object Plain object
  4065. * @returns {game.building_one_key} building_one_key
  4066. */
  4067. building_one_key.fromObject = function fromObject(object) {
  4068. if (object instanceof $root.game.building_one_key)
  4069. return object;
  4070. return new $root.game.building_one_key();
  4071. };
  4072. /**
  4073. * Creates a plain object from a building_one_key message. Also converts values to other types if specified.
  4074. * @function toObject
  4075. * @memberof game.building_one_key
  4076. * @static
  4077. * @param {game.building_one_key} message building_one_key
  4078. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4079. * @returns {Object.<string,*>} Plain object
  4080. */
  4081. building_one_key.toObject = function toObject() {
  4082. return {};
  4083. };
  4084. /**
  4085. * Converts this building_one_key to JSON.
  4086. * @function toJSON
  4087. * @memberof game.building_one_key
  4088. * @instance
  4089. * @returns {Object.<string,*>} JSON object
  4090. */
  4091. building_one_key.prototype.toJSON = function toJSON() {
  4092. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4093. };
  4094. return building_one_key;
  4095. })();
  4096. game.building_one_key_rsp = (function() {
  4097. /**
  4098. * Properties of a building_one_key_rsp.
  4099. * @memberof game
  4100. * @interface Ibuilding_one_key_rsp
  4101. * @property {number|Long|null} [errno] building_one_key_rsp errno
  4102. * @property {Array.<game.Ibuilding>|null} [list] building_one_key_rsp list
  4103. */
  4104. /**
  4105. * Constructs a new building_one_key_rsp.
  4106. * @memberof game
  4107. * @classdesc Represents a building_one_key_rsp.
  4108. * @implements Ibuilding_one_key_rsp
  4109. * @constructor
  4110. * @param {game.Ibuilding_one_key_rsp=} [properties] Properties to set
  4111. */
  4112. function building_one_key_rsp(properties) {
  4113. this.list = [];
  4114. if (properties)
  4115. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4116. if (properties[keys[i]] != null)
  4117. this[keys[i]] = properties[keys[i]];
  4118. }
  4119. /**
  4120. * building_one_key_rsp errno.
  4121. * @member {number|Long} errno
  4122. * @memberof game.building_one_key_rsp
  4123. * @instance
  4124. */
  4125. building_one_key_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4126. /**
  4127. * building_one_key_rsp list.
  4128. * @member {Array.<game.Ibuilding>} list
  4129. * @memberof game.building_one_key_rsp
  4130. * @instance
  4131. */
  4132. building_one_key_rsp.prototype.list = $util.emptyArray;
  4133. /**
  4134. * Creates a new building_one_key_rsp instance using the specified properties.
  4135. * @function create
  4136. * @memberof game.building_one_key_rsp
  4137. * @static
  4138. * @param {game.Ibuilding_one_key_rsp=} [properties] Properties to set
  4139. * @returns {game.building_one_key_rsp} building_one_key_rsp instance
  4140. */
  4141. building_one_key_rsp.create = function create(properties) {
  4142. return new building_one_key_rsp(properties);
  4143. };
  4144. /**
  4145. * Encodes the specified building_one_key_rsp message. Does not implicitly {@link game.building_one_key_rsp.verify|verify} messages.
  4146. * @function encode
  4147. * @memberof game.building_one_key_rsp
  4148. * @static
  4149. * @param {game.Ibuilding_one_key_rsp} message building_one_key_rsp message or plain object to encode
  4150. * @param {$protobuf.Writer} [writer] Writer to encode to
  4151. * @returns {$protobuf.Writer} Writer
  4152. */
  4153. building_one_key_rsp.encode = function encode(message, writer) {
  4154. if (!writer)
  4155. writer = $Writer.create();
  4156. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  4157. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  4158. if (message.list != null && message.list.length)
  4159. for (let i = 0; i < message.list.length; ++i)
  4160. $root.game.building.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  4161. return writer;
  4162. };
  4163. /**
  4164. * Encodes the specified building_one_key_rsp message, length delimited. Does not implicitly {@link game.building_one_key_rsp.verify|verify} messages.
  4165. * @function encodeDelimited
  4166. * @memberof game.building_one_key_rsp
  4167. * @static
  4168. * @param {game.Ibuilding_one_key_rsp} message building_one_key_rsp message or plain object to encode
  4169. * @param {$protobuf.Writer} [writer] Writer to encode to
  4170. * @returns {$protobuf.Writer} Writer
  4171. */
  4172. building_one_key_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  4173. return this.encode(message, writer).ldelim();
  4174. };
  4175. /**
  4176. * Decodes a building_one_key_rsp message from the specified reader or buffer.
  4177. * @function decode
  4178. * @memberof game.building_one_key_rsp
  4179. * @static
  4180. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4181. * @param {number} [length] Message length if known beforehand
  4182. * @returns {game.building_one_key_rsp} building_one_key_rsp
  4183. * @throws {Error} If the payload is not a reader or valid buffer
  4184. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4185. */
  4186. building_one_key_rsp.decode = function decode(reader, length) {
  4187. if (!(reader instanceof $Reader))
  4188. reader = $Reader.create(reader);
  4189. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_one_key_rsp();
  4190. while (reader.pos < end) {
  4191. let tag = reader.uint32();
  4192. switch (tag >>> 3) {
  4193. case 1:
  4194. message.errno = reader.int64();
  4195. break;
  4196. case 2:
  4197. if (!(message.list && message.list.length))
  4198. message.list = [];
  4199. message.list.push($root.game.building.decode(reader, reader.uint32()));
  4200. break;
  4201. default:
  4202. reader.skipType(tag & 7);
  4203. break;
  4204. }
  4205. }
  4206. return message;
  4207. };
  4208. /**
  4209. * Decodes a building_one_key_rsp message from the specified reader or buffer, length delimited.
  4210. * @function decodeDelimited
  4211. * @memberof game.building_one_key_rsp
  4212. * @static
  4213. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4214. * @returns {game.building_one_key_rsp} building_one_key_rsp
  4215. * @throws {Error} If the payload is not a reader or valid buffer
  4216. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4217. */
  4218. building_one_key_rsp.decodeDelimited = function decodeDelimited(reader) {
  4219. if (!(reader instanceof $Reader))
  4220. reader = new $Reader(reader);
  4221. return this.decode(reader, reader.uint32());
  4222. };
  4223. /**
  4224. * Verifies a building_one_key_rsp message.
  4225. * @function verify
  4226. * @memberof game.building_one_key_rsp
  4227. * @static
  4228. * @param {Object.<string,*>} message Plain object to verify
  4229. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4230. */
  4231. building_one_key_rsp.verify = function verify(message) {
  4232. if (typeof message !== "object" || message === null)
  4233. return "object expected";
  4234. if (message.errno != null && message.hasOwnProperty("errno"))
  4235. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  4236. return "errno: integer|Long expected";
  4237. if (message.list != null && message.hasOwnProperty("list")) {
  4238. if (!Array.isArray(message.list))
  4239. return "list: array expected";
  4240. for (let i = 0; i < message.list.length; ++i) {
  4241. let error = $root.game.building.verify(message.list[i]);
  4242. if (error)
  4243. return "list." + error;
  4244. }
  4245. }
  4246. return null;
  4247. };
  4248. /**
  4249. * Creates a building_one_key_rsp message from a plain object. Also converts values to their respective internal types.
  4250. * @function fromObject
  4251. * @memberof game.building_one_key_rsp
  4252. * @static
  4253. * @param {Object.<string,*>} object Plain object
  4254. * @returns {game.building_one_key_rsp} building_one_key_rsp
  4255. */
  4256. building_one_key_rsp.fromObject = function fromObject(object) {
  4257. if (object instanceof $root.game.building_one_key_rsp)
  4258. return object;
  4259. let message = new $root.game.building_one_key_rsp();
  4260. if (object.errno != null)
  4261. if ($util.Long)
  4262. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  4263. else if (typeof object.errno === "string")
  4264. message.errno = parseInt(object.errno, 10);
  4265. else if (typeof object.errno === "number")
  4266. message.errno = object.errno;
  4267. else if (typeof object.errno === "object")
  4268. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  4269. if (object.list) {
  4270. if (!Array.isArray(object.list))
  4271. throw TypeError(".game.building_one_key_rsp.list: array expected");
  4272. message.list = [];
  4273. for (let i = 0; i < object.list.length; ++i) {
  4274. if (typeof object.list[i] !== "object")
  4275. throw TypeError(".game.building_one_key_rsp.list: object expected");
  4276. message.list[i] = $root.game.building.fromObject(object.list[i]);
  4277. }
  4278. }
  4279. return message;
  4280. };
  4281. /**
  4282. * Creates a plain object from a building_one_key_rsp message. Also converts values to other types if specified.
  4283. * @function toObject
  4284. * @memberof game.building_one_key_rsp
  4285. * @static
  4286. * @param {game.building_one_key_rsp} message building_one_key_rsp
  4287. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4288. * @returns {Object.<string,*>} Plain object
  4289. */
  4290. building_one_key_rsp.toObject = function toObject(message, options) {
  4291. if (!options)
  4292. options = {};
  4293. let object = {};
  4294. if (options.arrays || options.defaults)
  4295. object.list = [];
  4296. if (options.defaults)
  4297. if ($util.Long) {
  4298. let long = new $util.Long(0, 0, false);
  4299. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4300. } else
  4301. object.errno = options.longs === String ? "0" : 0;
  4302. if (message.errno != null && message.hasOwnProperty("errno"))
  4303. if (typeof message.errno === "number")
  4304. object.errno = options.longs === String ? String(message.errno) : message.errno;
  4305. else
  4306. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  4307. if (message.list && message.list.length) {
  4308. object.list = [];
  4309. for (let j = 0; j < message.list.length; ++j)
  4310. object.list[j] = $root.game.building.toObject(message.list[j], options);
  4311. }
  4312. return object;
  4313. };
  4314. /**
  4315. * Converts this building_one_key_rsp to JSON.
  4316. * @function toJSON
  4317. * @memberof game.building_one_key_rsp
  4318. * @instance
  4319. * @returns {Object.<string,*>} JSON object
  4320. */
  4321. building_one_key_rsp.prototype.toJSON = function toJSON() {
  4322. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4323. };
  4324. return building_one_key_rsp;
  4325. })();
  4326. game.adventure_data = (function() {
  4327. /**
  4328. * Properties of an adventure_data.
  4329. * @memberof game
  4330. * @interface Iadventure_data
  4331. */
  4332. /**
  4333. * Constructs a new adventure_data.
  4334. * @memberof game
  4335. * @classdesc Represents an adventure_data.
  4336. * @implements Iadventure_data
  4337. * @constructor
  4338. * @param {game.Iadventure_data=} [properties] Properties to set
  4339. */
  4340. function adventure_data(properties) {
  4341. if (properties)
  4342. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4343. if (properties[keys[i]] != null)
  4344. this[keys[i]] = properties[keys[i]];
  4345. }
  4346. /**
  4347. * Creates a new adventure_data instance using the specified properties.
  4348. * @function create
  4349. * @memberof game.adventure_data
  4350. * @static
  4351. * @param {game.Iadventure_data=} [properties] Properties to set
  4352. * @returns {game.adventure_data} adventure_data instance
  4353. */
  4354. adventure_data.create = function create(properties) {
  4355. return new adventure_data(properties);
  4356. };
  4357. /**
  4358. * Encodes the specified adventure_data message. Does not implicitly {@link game.adventure_data.verify|verify} messages.
  4359. * @function encode
  4360. * @memberof game.adventure_data
  4361. * @static
  4362. * @param {game.Iadventure_data} message adventure_data message or plain object to encode
  4363. * @param {$protobuf.Writer} [writer] Writer to encode to
  4364. * @returns {$protobuf.Writer} Writer
  4365. */
  4366. adventure_data.encode = function encode(message, writer) {
  4367. if (!writer)
  4368. writer = $Writer.create();
  4369. return writer;
  4370. };
  4371. /**
  4372. * Encodes the specified adventure_data message, length delimited. Does not implicitly {@link game.adventure_data.verify|verify} messages.
  4373. * @function encodeDelimited
  4374. * @memberof game.adventure_data
  4375. * @static
  4376. * @param {game.Iadventure_data} message adventure_data message or plain object to encode
  4377. * @param {$protobuf.Writer} [writer] Writer to encode to
  4378. * @returns {$protobuf.Writer} Writer
  4379. */
  4380. adventure_data.encodeDelimited = function encodeDelimited(message, writer) {
  4381. return this.encode(message, writer).ldelim();
  4382. };
  4383. /**
  4384. * Decodes an adventure_data message from the specified reader or buffer.
  4385. * @function decode
  4386. * @memberof game.adventure_data
  4387. * @static
  4388. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4389. * @param {number} [length] Message length if known beforehand
  4390. * @returns {game.adventure_data} adventure_data
  4391. * @throws {Error} If the payload is not a reader or valid buffer
  4392. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4393. */
  4394. adventure_data.decode = function decode(reader, length) {
  4395. if (!(reader instanceof $Reader))
  4396. reader = $Reader.create(reader);
  4397. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_data();
  4398. while (reader.pos < end) {
  4399. let tag = reader.uint32();
  4400. switch (tag >>> 3) {
  4401. default:
  4402. reader.skipType(tag & 7);
  4403. break;
  4404. }
  4405. }
  4406. return message;
  4407. };
  4408. /**
  4409. * Decodes an adventure_data message from the specified reader or buffer, length delimited.
  4410. * @function decodeDelimited
  4411. * @memberof game.adventure_data
  4412. * @static
  4413. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4414. * @returns {game.adventure_data} adventure_data
  4415. * @throws {Error} If the payload is not a reader or valid buffer
  4416. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4417. */
  4418. adventure_data.decodeDelimited = function decodeDelimited(reader) {
  4419. if (!(reader instanceof $Reader))
  4420. reader = new $Reader(reader);
  4421. return this.decode(reader, reader.uint32());
  4422. };
  4423. /**
  4424. * Verifies an adventure_data message.
  4425. * @function verify
  4426. * @memberof game.adventure_data
  4427. * @static
  4428. * @param {Object.<string,*>} message Plain object to verify
  4429. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4430. */
  4431. adventure_data.verify = function verify(message) {
  4432. if (typeof message !== "object" || message === null)
  4433. return "object expected";
  4434. return null;
  4435. };
  4436. /**
  4437. * Creates an adventure_data message from a plain object. Also converts values to their respective internal types.
  4438. * @function fromObject
  4439. * @memberof game.adventure_data
  4440. * @static
  4441. * @param {Object.<string,*>} object Plain object
  4442. * @returns {game.adventure_data} adventure_data
  4443. */
  4444. adventure_data.fromObject = function fromObject(object) {
  4445. if (object instanceof $root.game.adventure_data)
  4446. return object;
  4447. return new $root.game.adventure_data();
  4448. };
  4449. /**
  4450. * Creates a plain object from an adventure_data message. Also converts values to other types if specified.
  4451. * @function toObject
  4452. * @memberof game.adventure_data
  4453. * @static
  4454. * @param {game.adventure_data} message adventure_data
  4455. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4456. * @returns {Object.<string,*>} Plain object
  4457. */
  4458. adventure_data.toObject = function toObject() {
  4459. return {};
  4460. };
  4461. /**
  4462. * Converts this adventure_data to JSON.
  4463. * @function toJSON
  4464. * @memberof game.adventure_data
  4465. * @instance
  4466. * @returns {Object.<string,*>} JSON object
  4467. */
  4468. adventure_data.prototype.toJSON = function toJSON() {
  4469. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4470. };
  4471. return adventure_data;
  4472. })();
  4473. game.adventure_data_rsp = (function() {
  4474. /**
  4475. * Properties of an adventure_data_rsp.
  4476. * @memberof game
  4477. * @interface Iadventure_data_rsp
  4478. * @property {number|Long|null} [errno] adventure_data_rsp errno
  4479. * @property {number|Long|null} [id1] adventure_data_rsp id1
  4480. * @property {Array.<number|Long>|null} [award1] adventure_data_rsp award1
  4481. * @property {number|Long|null} [id2] adventure_data_rsp id2
  4482. * @property {Array.<number|Long>|null} [award2] adventure_data_rsp award2
  4483. * @property {number|Long|null} [type] adventure_data_rsp type
  4484. * @property {number|Long|null} [layer] adventure_data_rsp layer
  4485. * @property {number|Long|null} [cost] adventure_data_rsp cost
  4486. */
  4487. /**
  4488. * Constructs a new adventure_data_rsp.
  4489. * @memberof game
  4490. * @classdesc Represents an adventure_data_rsp.
  4491. * @implements Iadventure_data_rsp
  4492. * @constructor
  4493. * @param {game.Iadventure_data_rsp=} [properties] Properties to set
  4494. */
  4495. function adventure_data_rsp(properties) {
  4496. this.award1 = [];
  4497. this.award2 = [];
  4498. if (properties)
  4499. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4500. if (properties[keys[i]] != null)
  4501. this[keys[i]] = properties[keys[i]];
  4502. }
  4503. /**
  4504. * adventure_data_rsp errno.
  4505. * @member {number|Long} errno
  4506. * @memberof game.adventure_data_rsp
  4507. * @instance
  4508. */
  4509. adventure_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4510. /**
  4511. * adventure_data_rsp id1.
  4512. * @member {number|Long} id1
  4513. * @memberof game.adventure_data_rsp
  4514. * @instance
  4515. */
  4516. adventure_data_rsp.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4517. /**
  4518. * adventure_data_rsp award1.
  4519. * @member {Array.<number|Long>} award1
  4520. * @memberof game.adventure_data_rsp
  4521. * @instance
  4522. */
  4523. adventure_data_rsp.prototype.award1 = $util.emptyArray;
  4524. /**
  4525. * adventure_data_rsp id2.
  4526. * @member {number|Long} id2
  4527. * @memberof game.adventure_data_rsp
  4528. * @instance
  4529. */
  4530. adventure_data_rsp.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4531. /**
  4532. * adventure_data_rsp award2.
  4533. * @member {Array.<number|Long>} award2
  4534. * @memberof game.adventure_data_rsp
  4535. * @instance
  4536. */
  4537. adventure_data_rsp.prototype.award2 = $util.emptyArray;
  4538. /**
  4539. * adventure_data_rsp type.
  4540. * @member {number|Long} type
  4541. * @memberof game.adventure_data_rsp
  4542. * @instance
  4543. */
  4544. adventure_data_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4545. /**
  4546. * adventure_data_rsp layer.
  4547. * @member {number|Long} layer
  4548. * @memberof game.adventure_data_rsp
  4549. * @instance
  4550. */
  4551. adventure_data_rsp.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4552. /**
  4553. * adventure_data_rsp cost.
  4554. * @member {number|Long} cost
  4555. * @memberof game.adventure_data_rsp
  4556. * @instance
  4557. */
  4558. adventure_data_rsp.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4559. /**
  4560. * Creates a new adventure_data_rsp instance using the specified properties.
  4561. * @function create
  4562. * @memberof game.adventure_data_rsp
  4563. * @static
  4564. * @param {game.Iadventure_data_rsp=} [properties] Properties to set
  4565. * @returns {game.adventure_data_rsp} adventure_data_rsp instance
  4566. */
  4567. adventure_data_rsp.create = function create(properties) {
  4568. return new adventure_data_rsp(properties);
  4569. };
  4570. /**
  4571. * Encodes the specified adventure_data_rsp message. Does not implicitly {@link game.adventure_data_rsp.verify|verify} messages.
  4572. * @function encode
  4573. * @memberof game.adventure_data_rsp
  4574. * @static
  4575. * @param {game.Iadventure_data_rsp} message adventure_data_rsp message or plain object to encode
  4576. * @param {$protobuf.Writer} [writer] Writer to encode to
  4577. * @returns {$protobuf.Writer} Writer
  4578. */
  4579. adventure_data_rsp.encode = function encode(message, writer) {
  4580. if (!writer)
  4581. writer = $Writer.create();
  4582. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  4583. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  4584. if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
  4585. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id1);
  4586. if (message.award1 != null && message.award1.length) {
  4587. writer.uint32(/* id 3, wireType 2 =*/26).fork();
  4588. for (let i = 0; i < message.award1.length; ++i)
  4589. writer.int64(message.award1[i]);
  4590. writer.ldelim();
  4591. }
  4592. if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
  4593. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.id2);
  4594. if (message.award2 != null && message.award2.length) {
  4595. writer.uint32(/* id 5, wireType 2 =*/42).fork();
  4596. for (let i = 0; i < message.award2.length; ++i)
  4597. writer.int64(message.award2[i]);
  4598. writer.ldelim();
  4599. }
  4600. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  4601. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.type);
  4602. if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
  4603. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.layer);
  4604. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  4605. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.cost);
  4606. return writer;
  4607. };
  4608. /**
  4609. * Encodes the specified adventure_data_rsp message, length delimited. Does not implicitly {@link game.adventure_data_rsp.verify|verify} messages.
  4610. * @function encodeDelimited
  4611. * @memberof game.adventure_data_rsp
  4612. * @static
  4613. * @param {game.Iadventure_data_rsp} message adventure_data_rsp message or plain object to encode
  4614. * @param {$protobuf.Writer} [writer] Writer to encode to
  4615. * @returns {$protobuf.Writer} Writer
  4616. */
  4617. adventure_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  4618. return this.encode(message, writer).ldelim();
  4619. };
  4620. /**
  4621. * Decodes an adventure_data_rsp message from the specified reader or buffer.
  4622. * @function decode
  4623. * @memberof game.adventure_data_rsp
  4624. * @static
  4625. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4626. * @param {number} [length] Message length if known beforehand
  4627. * @returns {game.adventure_data_rsp} adventure_data_rsp
  4628. * @throws {Error} If the payload is not a reader or valid buffer
  4629. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4630. */
  4631. adventure_data_rsp.decode = function decode(reader, length) {
  4632. if (!(reader instanceof $Reader))
  4633. reader = $Reader.create(reader);
  4634. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_data_rsp();
  4635. while (reader.pos < end) {
  4636. let tag = reader.uint32();
  4637. switch (tag >>> 3) {
  4638. case 1:
  4639. message.errno = reader.int64();
  4640. break;
  4641. case 2:
  4642. message.id1 = reader.int64();
  4643. break;
  4644. case 3:
  4645. if (!(message.award1 && message.award1.length))
  4646. message.award1 = [];
  4647. if ((tag & 7) === 2) {
  4648. let end2 = reader.uint32() + reader.pos;
  4649. while (reader.pos < end2)
  4650. message.award1.push(reader.int64());
  4651. } else
  4652. message.award1.push(reader.int64());
  4653. break;
  4654. case 4:
  4655. message.id2 = reader.int64();
  4656. break;
  4657. case 5:
  4658. if (!(message.award2 && message.award2.length))
  4659. message.award2 = [];
  4660. if ((tag & 7) === 2) {
  4661. let end2 = reader.uint32() + reader.pos;
  4662. while (reader.pos < end2)
  4663. message.award2.push(reader.int64());
  4664. } else
  4665. message.award2.push(reader.int64());
  4666. break;
  4667. case 6:
  4668. message.type = reader.int64();
  4669. break;
  4670. case 7:
  4671. message.layer = reader.int64();
  4672. break;
  4673. case 8:
  4674. message.cost = reader.int64();
  4675. break;
  4676. default:
  4677. reader.skipType(tag & 7);
  4678. break;
  4679. }
  4680. }
  4681. return message;
  4682. };
  4683. /**
  4684. * Decodes an adventure_data_rsp message from the specified reader or buffer, length delimited.
  4685. * @function decodeDelimited
  4686. * @memberof game.adventure_data_rsp
  4687. * @static
  4688. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  4689. * @returns {game.adventure_data_rsp} adventure_data_rsp
  4690. * @throws {Error} If the payload is not a reader or valid buffer
  4691. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  4692. */
  4693. adventure_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  4694. if (!(reader instanceof $Reader))
  4695. reader = new $Reader(reader);
  4696. return this.decode(reader, reader.uint32());
  4697. };
  4698. /**
  4699. * Verifies an adventure_data_rsp message.
  4700. * @function verify
  4701. * @memberof game.adventure_data_rsp
  4702. * @static
  4703. * @param {Object.<string,*>} message Plain object to verify
  4704. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  4705. */
  4706. adventure_data_rsp.verify = function verify(message) {
  4707. if (typeof message !== "object" || message === null)
  4708. return "object expected";
  4709. if (message.errno != null && message.hasOwnProperty("errno"))
  4710. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  4711. return "errno: integer|Long expected";
  4712. if (message.id1 != null && message.hasOwnProperty("id1"))
  4713. if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
  4714. return "id1: integer|Long expected";
  4715. if (message.award1 != null && message.hasOwnProperty("award1")) {
  4716. if (!Array.isArray(message.award1))
  4717. return "award1: array expected";
  4718. for (let i = 0; i < message.award1.length; ++i)
  4719. if (!$util.isInteger(message.award1[i]) && !(message.award1[i] && $util.isInteger(message.award1[i].low) && $util.isInteger(message.award1[i].high)))
  4720. return "award1: integer|Long[] expected";
  4721. }
  4722. if (message.id2 != null && message.hasOwnProperty("id2"))
  4723. if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
  4724. return "id2: integer|Long expected";
  4725. if (message.award2 != null && message.hasOwnProperty("award2")) {
  4726. if (!Array.isArray(message.award2))
  4727. return "award2: array expected";
  4728. for (let i = 0; i < message.award2.length; ++i)
  4729. if (!$util.isInteger(message.award2[i]) && !(message.award2[i] && $util.isInteger(message.award2[i].low) && $util.isInteger(message.award2[i].high)))
  4730. return "award2: integer|Long[] expected";
  4731. }
  4732. if (message.type != null && message.hasOwnProperty("type"))
  4733. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  4734. return "type: integer|Long expected";
  4735. if (message.layer != null && message.hasOwnProperty("layer"))
  4736. if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
  4737. return "layer: integer|Long expected";
  4738. if (message.cost != null && message.hasOwnProperty("cost"))
  4739. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  4740. return "cost: integer|Long expected";
  4741. return null;
  4742. };
  4743. /**
  4744. * Creates an adventure_data_rsp message from a plain object. Also converts values to their respective internal types.
  4745. * @function fromObject
  4746. * @memberof game.adventure_data_rsp
  4747. * @static
  4748. * @param {Object.<string,*>} object Plain object
  4749. * @returns {game.adventure_data_rsp} adventure_data_rsp
  4750. */
  4751. adventure_data_rsp.fromObject = function fromObject(object) {
  4752. if (object instanceof $root.game.adventure_data_rsp)
  4753. return object;
  4754. let message = new $root.game.adventure_data_rsp();
  4755. if (object.errno != null)
  4756. if ($util.Long)
  4757. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  4758. else if (typeof object.errno === "string")
  4759. message.errno = parseInt(object.errno, 10);
  4760. else if (typeof object.errno === "number")
  4761. message.errno = object.errno;
  4762. else if (typeof object.errno === "object")
  4763. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  4764. if (object.id1 != null)
  4765. if ($util.Long)
  4766. (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
  4767. else if (typeof object.id1 === "string")
  4768. message.id1 = parseInt(object.id1, 10);
  4769. else if (typeof object.id1 === "number")
  4770. message.id1 = object.id1;
  4771. else if (typeof object.id1 === "object")
  4772. message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
  4773. if (object.award1) {
  4774. if (!Array.isArray(object.award1))
  4775. throw TypeError(".game.adventure_data_rsp.award1: array expected");
  4776. message.award1 = [];
  4777. for (let i = 0; i < object.award1.length; ++i)
  4778. if ($util.Long)
  4779. (message.award1[i] = $util.Long.fromValue(object.award1[i])).unsigned = false;
  4780. else if (typeof object.award1[i] === "string")
  4781. message.award1[i] = parseInt(object.award1[i], 10);
  4782. else if (typeof object.award1[i] === "number")
  4783. message.award1[i] = object.award1[i];
  4784. else if (typeof object.award1[i] === "object")
  4785. message.award1[i] = new $util.LongBits(object.award1[i].low >>> 0, object.award1[i].high >>> 0).toNumber();
  4786. }
  4787. if (object.id2 != null)
  4788. if ($util.Long)
  4789. (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
  4790. else if (typeof object.id2 === "string")
  4791. message.id2 = parseInt(object.id2, 10);
  4792. else if (typeof object.id2 === "number")
  4793. message.id2 = object.id2;
  4794. else if (typeof object.id2 === "object")
  4795. message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
  4796. if (object.award2) {
  4797. if (!Array.isArray(object.award2))
  4798. throw TypeError(".game.adventure_data_rsp.award2: array expected");
  4799. message.award2 = [];
  4800. for (let i = 0; i < object.award2.length; ++i)
  4801. if ($util.Long)
  4802. (message.award2[i] = $util.Long.fromValue(object.award2[i])).unsigned = false;
  4803. else if (typeof object.award2[i] === "string")
  4804. message.award2[i] = parseInt(object.award2[i], 10);
  4805. else if (typeof object.award2[i] === "number")
  4806. message.award2[i] = object.award2[i];
  4807. else if (typeof object.award2[i] === "object")
  4808. message.award2[i] = new $util.LongBits(object.award2[i].low >>> 0, object.award2[i].high >>> 0).toNumber();
  4809. }
  4810. if (object.type != null)
  4811. if ($util.Long)
  4812. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  4813. else if (typeof object.type === "string")
  4814. message.type = parseInt(object.type, 10);
  4815. else if (typeof object.type === "number")
  4816. message.type = object.type;
  4817. else if (typeof object.type === "object")
  4818. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  4819. if (object.layer != null)
  4820. if ($util.Long)
  4821. (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
  4822. else if (typeof object.layer === "string")
  4823. message.layer = parseInt(object.layer, 10);
  4824. else if (typeof object.layer === "number")
  4825. message.layer = object.layer;
  4826. else if (typeof object.layer === "object")
  4827. message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
  4828. if (object.cost != null)
  4829. if ($util.Long)
  4830. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  4831. else if (typeof object.cost === "string")
  4832. message.cost = parseInt(object.cost, 10);
  4833. else if (typeof object.cost === "number")
  4834. message.cost = object.cost;
  4835. else if (typeof object.cost === "object")
  4836. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  4837. return message;
  4838. };
  4839. /**
  4840. * Creates a plain object from an adventure_data_rsp message. Also converts values to other types if specified.
  4841. * @function toObject
  4842. * @memberof game.adventure_data_rsp
  4843. * @static
  4844. * @param {game.adventure_data_rsp} message adventure_data_rsp
  4845. * @param {$protobuf.IConversionOptions} [options] Conversion options
  4846. * @returns {Object.<string,*>} Plain object
  4847. */
  4848. adventure_data_rsp.toObject = function toObject(message, options) {
  4849. if (!options)
  4850. options = {};
  4851. let object = {};
  4852. if (options.arrays || options.defaults) {
  4853. object.award1 = [];
  4854. object.award2 = [];
  4855. }
  4856. if (options.defaults) {
  4857. if ($util.Long) {
  4858. let long = new $util.Long(0, 0, false);
  4859. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4860. } else
  4861. object.errno = options.longs === String ? "0" : 0;
  4862. if ($util.Long) {
  4863. let long = new $util.Long(0, 0, false);
  4864. object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4865. } else
  4866. object.id1 = options.longs === String ? "0" : 0;
  4867. if ($util.Long) {
  4868. let long = new $util.Long(0, 0, false);
  4869. object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4870. } else
  4871. object.id2 = options.longs === String ? "0" : 0;
  4872. if ($util.Long) {
  4873. let long = new $util.Long(0, 0, false);
  4874. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4875. } else
  4876. object.type = options.longs === String ? "0" : 0;
  4877. if ($util.Long) {
  4878. let long = new $util.Long(0, 0, false);
  4879. object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4880. } else
  4881. object.layer = options.longs === String ? "0" : 0;
  4882. if ($util.Long) {
  4883. let long = new $util.Long(0, 0, false);
  4884. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  4885. } else
  4886. object.cost = options.longs === String ? "0" : 0;
  4887. }
  4888. if (message.errno != null && message.hasOwnProperty("errno"))
  4889. if (typeof message.errno === "number")
  4890. object.errno = options.longs === String ? String(message.errno) : message.errno;
  4891. else
  4892. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  4893. if (message.id1 != null && message.hasOwnProperty("id1"))
  4894. if (typeof message.id1 === "number")
  4895. object.id1 = options.longs === String ? String(message.id1) : message.id1;
  4896. else
  4897. object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1;
  4898. if (message.award1 && message.award1.length) {
  4899. object.award1 = [];
  4900. for (let j = 0; j < message.award1.length; ++j)
  4901. if (typeof message.award1[j] === "number")
  4902. object.award1[j] = options.longs === String ? String(message.award1[j]) : message.award1[j];
  4903. else
  4904. object.award1[j] = options.longs === String ? $util.Long.prototype.toString.call(message.award1[j]) : options.longs === Number ? new $util.LongBits(message.award1[j].low >>> 0, message.award1[j].high >>> 0).toNumber() : message.award1[j];
  4905. }
  4906. if (message.id2 != null && message.hasOwnProperty("id2"))
  4907. if (typeof message.id2 === "number")
  4908. object.id2 = options.longs === String ? String(message.id2) : message.id2;
  4909. else
  4910. object.id2 = options.longs === String ? $util.Long.prototype.toString.call(message.id2) : options.longs === Number ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() : message.id2;
  4911. if (message.award2 && message.award2.length) {
  4912. object.award2 = [];
  4913. for (let j = 0; j < message.award2.length; ++j)
  4914. if (typeof message.award2[j] === "number")
  4915. object.award2[j] = options.longs === String ? String(message.award2[j]) : message.award2[j];
  4916. else
  4917. object.award2[j] = options.longs === String ? $util.Long.prototype.toString.call(message.award2[j]) : options.longs === Number ? new $util.LongBits(message.award2[j].low >>> 0, message.award2[j].high >>> 0).toNumber() : message.award2[j];
  4918. }
  4919. if (message.type != null && message.hasOwnProperty("type"))
  4920. if (typeof message.type === "number")
  4921. object.type = options.longs === String ? String(message.type) : message.type;
  4922. else
  4923. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  4924. if (message.layer != null && message.hasOwnProperty("layer"))
  4925. if (typeof message.layer === "number")
  4926. object.layer = options.longs === String ? String(message.layer) : message.layer;
  4927. else
  4928. object.layer = options.longs === String ? $util.Long.prototype.toString.call(message.layer) : options.longs === Number ? new $util.LongBits(message.layer.low >>> 0, message.layer.high >>> 0).toNumber() : message.layer;
  4929. if (message.cost != null && message.hasOwnProperty("cost"))
  4930. if (typeof message.cost === "number")
  4931. object.cost = options.longs === String ? String(message.cost) : message.cost;
  4932. else
  4933. object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
  4934. return object;
  4935. };
  4936. /**
  4937. * Converts this adventure_data_rsp to JSON.
  4938. * @function toJSON
  4939. * @memberof game.adventure_data_rsp
  4940. * @instance
  4941. * @returns {Object.<string,*>} JSON object
  4942. */
  4943. adventure_data_rsp.prototype.toJSON = function toJSON() {
  4944. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  4945. };
  4946. return adventure_data_rsp;
  4947. })();
  4948. game.adventure_start = (function() {
  4949. /**
  4950. * Properties of an adventure_start.
  4951. * @memberof game
  4952. * @interface Iadventure_start
  4953. * @property {number|Long|null} [id] adventure_start id
  4954. * @property {number|Long|null} [type] adventure_start type
  4955. */
  4956. /**
  4957. * Constructs a new adventure_start.
  4958. * @memberof game
  4959. * @classdesc Represents an adventure_start.
  4960. * @implements Iadventure_start
  4961. * @constructor
  4962. * @param {game.Iadventure_start=} [properties] Properties to set
  4963. */
  4964. function adventure_start(properties) {
  4965. if (properties)
  4966. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  4967. if (properties[keys[i]] != null)
  4968. this[keys[i]] = properties[keys[i]];
  4969. }
  4970. /**
  4971. * adventure_start id.
  4972. * @member {number|Long} id
  4973. * @memberof game.adventure_start
  4974. * @instance
  4975. */
  4976. adventure_start.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4977. /**
  4978. * adventure_start type.
  4979. * @member {number|Long} type
  4980. * @memberof game.adventure_start
  4981. * @instance
  4982. */
  4983. adventure_start.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  4984. /**
  4985. * Creates a new adventure_start instance using the specified properties.
  4986. * @function create
  4987. * @memberof game.adventure_start
  4988. * @static
  4989. * @param {game.Iadventure_start=} [properties] Properties to set
  4990. * @returns {game.adventure_start} adventure_start instance
  4991. */
  4992. adventure_start.create = function create(properties) {
  4993. return new adventure_start(properties);
  4994. };
  4995. /**
  4996. * Encodes the specified adventure_start message. Does not implicitly {@link game.adventure_start.verify|verify} messages.
  4997. * @function encode
  4998. * @memberof game.adventure_start
  4999. * @static
  5000. * @param {game.Iadventure_start} message adventure_start message or plain object to encode
  5001. * @param {$protobuf.Writer} [writer] Writer to encode to
  5002. * @returns {$protobuf.Writer} Writer
  5003. */
  5004. adventure_start.encode = function encode(message, writer) {
  5005. if (!writer)
  5006. writer = $Writer.create();
  5007. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  5008. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  5009. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  5010. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  5011. return writer;
  5012. };
  5013. /**
  5014. * Encodes the specified adventure_start message, length delimited. Does not implicitly {@link game.adventure_start.verify|verify} messages.
  5015. * @function encodeDelimited
  5016. * @memberof game.adventure_start
  5017. * @static
  5018. * @param {game.Iadventure_start} message adventure_start message or plain object to encode
  5019. * @param {$protobuf.Writer} [writer] Writer to encode to
  5020. * @returns {$protobuf.Writer} Writer
  5021. */
  5022. adventure_start.encodeDelimited = function encodeDelimited(message, writer) {
  5023. return this.encode(message, writer).ldelim();
  5024. };
  5025. /**
  5026. * Decodes an adventure_start message from the specified reader or buffer.
  5027. * @function decode
  5028. * @memberof game.adventure_start
  5029. * @static
  5030. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5031. * @param {number} [length] Message length if known beforehand
  5032. * @returns {game.adventure_start} adventure_start
  5033. * @throws {Error} If the payload is not a reader or valid buffer
  5034. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5035. */
  5036. adventure_start.decode = function decode(reader, length) {
  5037. if (!(reader instanceof $Reader))
  5038. reader = $Reader.create(reader);
  5039. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_start();
  5040. while (reader.pos < end) {
  5041. let tag = reader.uint32();
  5042. switch (tag >>> 3) {
  5043. case 1:
  5044. message.id = reader.int64();
  5045. break;
  5046. case 2:
  5047. message.type = reader.int64();
  5048. break;
  5049. default:
  5050. reader.skipType(tag & 7);
  5051. break;
  5052. }
  5053. }
  5054. return message;
  5055. };
  5056. /**
  5057. * Decodes an adventure_start message from the specified reader or buffer, length delimited.
  5058. * @function decodeDelimited
  5059. * @memberof game.adventure_start
  5060. * @static
  5061. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5062. * @returns {game.adventure_start} adventure_start
  5063. * @throws {Error} If the payload is not a reader or valid buffer
  5064. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5065. */
  5066. adventure_start.decodeDelimited = function decodeDelimited(reader) {
  5067. if (!(reader instanceof $Reader))
  5068. reader = new $Reader(reader);
  5069. return this.decode(reader, reader.uint32());
  5070. };
  5071. /**
  5072. * Verifies an adventure_start message.
  5073. * @function verify
  5074. * @memberof game.adventure_start
  5075. * @static
  5076. * @param {Object.<string,*>} message Plain object to verify
  5077. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5078. */
  5079. adventure_start.verify = function verify(message) {
  5080. if (typeof message !== "object" || message === null)
  5081. return "object expected";
  5082. if (message.id != null && message.hasOwnProperty("id"))
  5083. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  5084. return "id: integer|Long expected";
  5085. if (message.type != null && message.hasOwnProperty("type"))
  5086. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  5087. return "type: integer|Long expected";
  5088. return null;
  5089. };
  5090. /**
  5091. * Creates an adventure_start message from a plain object. Also converts values to their respective internal types.
  5092. * @function fromObject
  5093. * @memberof game.adventure_start
  5094. * @static
  5095. * @param {Object.<string,*>} object Plain object
  5096. * @returns {game.adventure_start} adventure_start
  5097. */
  5098. adventure_start.fromObject = function fromObject(object) {
  5099. if (object instanceof $root.game.adventure_start)
  5100. return object;
  5101. let message = new $root.game.adventure_start();
  5102. if (object.id != null)
  5103. if ($util.Long)
  5104. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  5105. else if (typeof object.id === "string")
  5106. message.id = parseInt(object.id, 10);
  5107. else if (typeof object.id === "number")
  5108. message.id = object.id;
  5109. else if (typeof object.id === "object")
  5110. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  5111. if (object.type != null)
  5112. if ($util.Long)
  5113. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  5114. else if (typeof object.type === "string")
  5115. message.type = parseInt(object.type, 10);
  5116. else if (typeof object.type === "number")
  5117. message.type = object.type;
  5118. else if (typeof object.type === "object")
  5119. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  5120. return message;
  5121. };
  5122. /**
  5123. * Creates a plain object from an adventure_start message. Also converts values to other types if specified.
  5124. * @function toObject
  5125. * @memberof game.adventure_start
  5126. * @static
  5127. * @param {game.adventure_start} message adventure_start
  5128. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5129. * @returns {Object.<string,*>} Plain object
  5130. */
  5131. adventure_start.toObject = function toObject(message, options) {
  5132. if (!options)
  5133. options = {};
  5134. let object = {};
  5135. if (options.defaults) {
  5136. if ($util.Long) {
  5137. let long = new $util.Long(0, 0, false);
  5138. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5139. } else
  5140. object.id = options.longs === String ? "0" : 0;
  5141. if ($util.Long) {
  5142. let long = new $util.Long(0, 0, false);
  5143. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5144. } else
  5145. object.type = options.longs === String ? "0" : 0;
  5146. }
  5147. if (message.id != null && message.hasOwnProperty("id"))
  5148. if (typeof message.id === "number")
  5149. object.id = options.longs === String ? String(message.id) : message.id;
  5150. else
  5151. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  5152. if (message.type != null && message.hasOwnProperty("type"))
  5153. if (typeof message.type === "number")
  5154. object.type = options.longs === String ? String(message.type) : message.type;
  5155. else
  5156. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  5157. return object;
  5158. };
  5159. /**
  5160. * Converts this adventure_start to JSON.
  5161. * @function toJSON
  5162. * @memberof game.adventure_start
  5163. * @instance
  5164. * @returns {Object.<string,*>} JSON object
  5165. */
  5166. adventure_start.prototype.toJSON = function toJSON() {
  5167. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5168. };
  5169. return adventure_start;
  5170. })();
  5171. game.adventure_start_rsp = (function() {
  5172. /**
  5173. * Properties of an adventure_start_rsp.
  5174. * @memberof game
  5175. * @interface Iadventure_start_rsp
  5176. * @property {number|Long|null} [errno] adventure_start_rsp errno
  5177. * @property {boolean|null} [btrial] adventure_start_rsp btrial
  5178. * @property {number|Long|null} [trialId] adventure_start_rsp trialId
  5179. * @property {number|Long|null} [trialNum] adventure_start_rsp trialNum
  5180. */
  5181. /**
  5182. * Constructs a new adventure_start_rsp.
  5183. * @memberof game
  5184. * @classdesc Represents an adventure_start_rsp.
  5185. * @implements Iadventure_start_rsp
  5186. * @constructor
  5187. * @param {game.Iadventure_start_rsp=} [properties] Properties to set
  5188. */
  5189. function adventure_start_rsp(properties) {
  5190. if (properties)
  5191. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5192. if (properties[keys[i]] != null)
  5193. this[keys[i]] = properties[keys[i]];
  5194. }
  5195. /**
  5196. * adventure_start_rsp errno.
  5197. * @member {number|Long} errno
  5198. * @memberof game.adventure_start_rsp
  5199. * @instance
  5200. */
  5201. adventure_start_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5202. /**
  5203. * adventure_start_rsp btrial.
  5204. * @member {boolean} btrial
  5205. * @memberof game.adventure_start_rsp
  5206. * @instance
  5207. */
  5208. adventure_start_rsp.prototype.btrial = false;
  5209. /**
  5210. * adventure_start_rsp trialId.
  5211. * @member {number|Long} trialId
  5212. * @memberof game.adventure_start_rsp
  5213. * @instance
  5214. */
  5215. adventure_start_rsp.prototype.trialId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5216. /**
  5217. * adventure_start_rsp trialNum.
  5218. * @member {number|Long} trialNum
  5219. * @memberof game.adventure_start_rsp
  5220. * @instance
  5221. */
  5222. adventure_start_rsp.prototype.trialNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5223. /**
  5224. * Creates a new adventure_start_rsp instance using the specified properties.
  5225. * @function create
  5226. * @memberof game.adventure_start_rsp
  5227. * @static
  5228. * @param {game.Iadventure_start_rsp=} [properties] Properties to set
  5229. * @returns {game.adventure_start_rsp} adventure_start_rsp instance
  5230. */
  5231. adventure_start_rsp.create = function create(properties) {
  5232. return new adventure_start_rsp(properties);
  5233. };
  5234. /**
  5235. * Encodes the specified adventure_start_rsp message. Does not implicitly {@link game.adventure_start_rsp.verify|verify} messages.
  5236. * @function encode
  5237. * @memberof game.adventure_start_rsp
  5238. * @static
  5239. * @param {game.Iadventure_start_rsp} message adventure_start_rsp message or plain object to encode
  5240. * @param {$protobuf.Writer} [writer] Writer to encode to
  5241. * @returns {$protobuf.Writer} Writer
  5242. */
  5243. adventure_start_rsp.encode = function encode(message, writer) {
  5244. if (!writer)
  5245. writer = $Writer.create();
  5246. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  5247. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  5248. if (message.btrial != null && Object.hasOwnProperty.call(message, "btrial"))
  5249. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.btrial);
  5250. if (message.trialId != null && Object.hasOwnProperty.call(message, "trialId"))
  5251. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.trialId);
  5252. if (message.trialNum != null && Object.hasOwnProperty.call(message, "trialNum"))
  5253. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.trialNum);
  5254. return writer;
  5255. };
  5256. /**
  5257. * Encodes the specified adventure_start_rsp message, length delimited. Does not implicitly {@link game.adventure_start_rsp.verify|verify} messages.
  5258. * @function encodeDelimited
  5259. * @memberof game.adventure_start_rsp
  5260. * @static
  5261. * @param {game.Iadventure_start_rsp} message adventure_start_rsp message or plain object to encode
  5262. * @param {$protobuf.Writer} [writer] Writer to encode to
  5263. * @returns {$protobuf.Writer} Writer
  5264. */
  5265. adventure_start_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  5266. return this.encode(message, writer).ldelim();
  5267. };
  5268. /**
  5269. * Decodes an adventure_start_rsp message from the specified reader or buffer.
  5270. * @function decode
  5271. * @memberof game.adventure_start_rsp
  5272. * @static
  5273. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5274. * @param {number} [length] Message length if known beforehand
  5275. * @returns {game.adventure_start_rsp} adventure_start_rsp
  5276. * @throws {Error} If the payload is not a reader or valid buffer
  5277. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5278. */
  5279. adventure_start_rsp.decode = function decode(reader, length) {
  5280. if (!(reader instanceof $Reader))
  5281. reader = $Reader.create(reader);
  5282. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_start_rsp();
  5283. while (reader.pos < end) {
  5284. let tag = reader.uint32();
  5285. switch (tag >>> 3) {
  5286. case 1:
  5287. message.errno = reader.int64();
  5288. break;
  5289. case 2:
  5290. message.btrial = reader.bool();
  5291. break;
  5292. case 3:
  5293. message.trialId = reader.int64();
  5294. break;
  5295. case 4:
  5296. message.trialNum = reader.int64();
  5297. break;
  5298. default:
  5299. reader.skipType(tag & 7);
  5300. break;
  5301. }
  5302. }
  5303. return message;
  5304. };
  5305. /**
  5306. * Decodes an adventure_start_rsp message from the specified reader or buffer, length delimited.
  5307. * @function decodeDelimited
  5308. * @memberof game.adventure_start_rsp
  5309. * @static
  5310. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5311. * @returns {game.adventure_start_rsp} adventure_start_rsp
  5312. * @throws {Error} If the payload is not a reader or valid buffer
  5313. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5314. */
  5315. adventure_start_rsp.decodeDelimited = function decodeDelimited(reader) {
  5316. if (!(reader instanceof $Reader))
  5317. reader = new $Reader(reader);
  5318. return this.decode(reader, reader.uint32());
  5319. };
  5320. /**
  5321. * Verifies an adventure_start_rsp message.
  5322. * @function verify
  5323. * @memberof game.adventure_start_rsp
  5324. * @static
  5325. * @param {Object.<string,*>} message Plain object to verify
  5326. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5327. */
  5328. adventure_start_rsp.verify = function verify(message) {
  5329. if (typeof message !== "object" || message === null)
  5330. return "object expected";
  5331. if (message.errno != null && message.hasOwnProperty("errno"))
  5332. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  5333. return "errno: integer|Long expected";
  5334. if (message.btrial != null && message.hasOwnProperty("btrial"))
  5335. if (typeof message.btrial !== "boolean")
  5336. return "btrial: boolean expected";
  5337. if (message.trialId != null && message.hasOwnProperty("trialId"))
  5338. if (!$util.isInteger(message.trialId) && !(message.trialId && $util.isInteger(message.trialId.low) && $util.isInteger(message.trialId.high)))
  5339. return "trialId: integer|Long expected";
  5340. if (message.trialNum != null && message.hasOwnProperty("trialNum"))
  5341. if (!$util.isInteger(message.trialNum) && !(message.trialNum && $util.isInteger(message.trialNum.low) && $util.isInteger(message.trialNum.high)))
  5342. return "trialNum: integer|Long expected";
  5343. return null;
  5344. };
  5345. /**
  5346. * Creates an adventure_start_rsp message from a plain object. Also converts values to their respective internal types.
  5347. * @function fromObject
  5348. * @memberof game.adventure_start_rsp
  5349. * @static
  5350. * @param {Object.<string,*>} object Plain object
  5351. * @returns {game.adventure_start_rsp} adventure_start_rsp
  5352. */
  5353. adventure_start_rsp.fromObject = function fromObject(object) {
  5354. if (object instanceof $root.game.adventure_start_rsp)
  5355. return object;
  5356. let message = new $root.game.adventure_start_rsp();
  5357. if (object.errno != null)
  5358. if ($util.Long)
  5359. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  5360. else if (typeof object.errno === "string")
  5361. message.errno = parseInt(object.errno, 10);
  5362. else if (typeof object.errno === "number")
  5363. message.errno = object.errno;
  5364. else if (typeof object.errno === "object")
  5365. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  5366. if (object.btrial != null)
  5367. message.btrial = Boolean(object.btrial);
  5368. if (object.trialId != null)
  5369. if ($util.Long)
  5370. (message.trialId = $util.Long.fromValue(object.trialId)).unsigned = false;
  5371. else if (typeof object.trialId === "string")
  5372. message.trialId = parseInt(object.trialId, 10);
  5373. else if (typeof object.trialId === "number")
  5374. message.trialId = object.trialId;
  5375. else if (typeof object.trialId === "object")
  5376. message.trialId = new $util.LongBits(object.trialId.low >>> 0, object.trialId.high >>> 0).toNumber();
  5377. if (object.trialNum != null)
  5378. if ($util.Long)
  5379. (message.trialNum = $util.Long.fromValue(object.trialNum)).unsigned = false;
  5380. else if (typeof object.trialNum === "string")
  5381. message.trialNum = parseInt(object.trialNum, 10);
  5382. else if (typeof object.trialNum === "number")
  5383. message.trialNum = object.trialNum;
  5384. else if (typeof object.trialNum === "object")
  5385. message.trialNum = new $util.LongBits(object.trialNum.low >>> 0, object.trialNum.high >>> 0).toNumber();
  5386. return message;
  5387. };
  5388. /**
  5389. * Creates a plain object from an adventure_start_rsp message. Also converts values to other types if specified.
  5390. * @function toObject
  5391. * @memberof game.adventure_start_rsp
  5392. * @static
  5393. * @param {game.adventure_start_rsp} message adventure_start_rsp
  5394. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5395. * @returns {Object.<string,*>} Plain object
  5396. */
  5397. adventure_start_rsp.toObject = function toObject(message, options) {
  5398. if (!options)
  5399. options = {};
  5400. let object = {};
  5401. if (options.defaults) {
  5402. if ($util.Long) {
  5403. let long = new $util.Long(0, 0, false);
  5404. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5405. } else
  5406. object.errno = options.longs === String ? "0" : 0;
  5407. object.btrial = false;
  5408. if ($util.Long) {
  5409. let long = new $util.Long(0, 0, false);
  5410. object.trialId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5411. } else
  5412. object.trialId = options.longs === String ? "0" : 0;
  5413. if ($util.Long) {
  5414. let long = new $util.Long(0, 0, false);
  5415. object.trialNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5416. } else
  5417. object.trialNum = options.longs === String ? "0" : 0;
  5418. }
  5419. if (message.errno != null && message.hasOwnProperty("errno"))
  5420. if (typeof message.errno === "number")
  5421. object.errno = options.longs === String ? String(message.errno) : message.errno;
  5422. else
  5423. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  5424. if (message.btrial != null && message.hasOwnProperty("btrial"))
  5425. object.btrial = message.btrial;
  5426. if (message.trialId != null && message.hasOwnProperty("trialId"))
  5427. if (typeof message.trialId === "number")
  5428. object.trialId = options.longs === String ? String(message.trialId) : message.trialId;
  5429. else
  5430. object.trialId = options.longs === String ? $util.Long.prototype.toString.call(message.trialId) : options.longs === Number ? new $util.LongBits(message.trialId.low >>> 0, message.trialId.high >>> 0).toNumber() : message.trialId;
  5431. if (message.trialNum != null && message.hasOwnProperty("trialNum"))
  5432. if (typeof message.trialNum === "number")
  5433. object.trialNum = options.longs === String ? String(message.trialNum) : message.trialNum;
  5434. else
  5435. object.trialNum = options.longs === String ? $util.Long.prototype.toString.call(message.trialNum) : options.longs === Number ? new $util.LongBits(message.trialNum.low >>> 0, message.trialNum.high >>> 0).toNumber() : message.trialNum;
  5436. return object;
  5437. };
  5438. /**
  5439. * Converts this adventure_start_rsp to JSON.
  5440. * @function toJSON
  5441. * @memberof game.adventure_start_rsp
  5442. * @instance
  5443. * @returns {Object.<string,*>} JSON object
  5444. */
  5445. adventure_start_rsp.prototype.toJSON = function toJSON() {
  5446. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5447. };
  5448. return adventure_start_rsp;
  5449. })();
  5450. game.adventure_end = (function() {
  5451. /**
  5452. * Properties of an adventure_end.
  5453. * @memberof game
  5454. * @interface Iadventure_end
  5455. * @property {boolean|null} [win] adventure_end win
  5456. * @property {number|Long|null} [monsterNum] adventure_end monsterNum
  5457. * @property {number|Long|null} [bossNum] adventure_end bossNum
  5458. * @property {number|Long|null} [eliteNum] adventure_end eliteNum
  5459. */
  5460. /**
  5461. * Constructs a new adventure_end.
  5462. * @memberof game
  5463. * @classdesc Represents an adventure_end.
  5464. * @implements Iadventure_end
  5465. * @constructor
  5466. * @param {game.Iadventure_end=} [properties] Properties to set
  5467. */
  5468. function adventure_end(properties) {
  5469. if (properties)
  5470. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5471. if (properties[keys[i]] != null)
  5472. this[keys[i]] = properties[keys[i]];
  5473. }
  5474. /**
  5475. * adventure_end win.
  5476. * @member {boolean} win
  5477. * @memberof game.adventure_end
  5478. * @instance
  5479. */
  5480. adventure_end.prototype.win = false;
  5481. /**
  5482. * adventure_end monsterNum.
  5483. * @member {number|Long} monsterNum
  5484. * @memberof game.adventure_end
  5485. * @instance
  5486. */
  5487. adventure_end.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5488. /**
  5489. * adventure_end bossNum.
  5490. * @member {number|Long} bossNum
  5491. * @memberof game.adventure_end
  5492. * @instance
  5493. */
  5494. adventure_end.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5495. /**
  5496. * adventure_end eliteNum.
  5497. * @member {number|Long} eliteNum
  5498. * @memberof game.adventure_end
  5499. * @instance
  5500. */
  5501. adventure_end.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5502. /**
  5503. * Creates a new adventure_end instance using the specified properties.
  5504. * @function create
  5505. * @memberof game.adventure_end
  5506. * @static
  5507. * @param {game.Iadventure_end=} [properties] Properties to set
  5508. * @returns {game.adventure_end} adventure_end instance
  5509. */
  5510. adventure_end.create = function create(properties) {
  5511. return new adventure_end(properties);
  5512. };
  5513. /**
  5514. * Encodes the specified adventure_end message. Does not implicitly {@link game.adventure_end.verify|verify} messages.
  5515. * @function encode
  5516. * @memberof game.adventure_end
  5517. * @static
  5518. * @param {game.Iadventure_end} message adventure_end message or plain object to encode
  5519. * @param {$protobuf.Writer} [writer] Writer to encode to
  5520. * @returns {$protobuf.Writer} Writer
  5521. */
  5522. adventure_end.encode = function encode(message, writer) {
  5523. if (!writer)
  5524. writer = $Writer.create();
  5525. if (message.win != null && Object.hasOwnProperty.call(message, "win"))
  5526. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.win);
  5527. if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
  5528. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.monsterNum);
  5529. if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
  5530. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bossNum);
  5531. if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
  5532. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.eliteNum);
  5533. return writer;
  5534. };
  5535. /**
  5536. * Encodes the specified adventure_end message, length delimited. Does not implicitly {@link game.adventure_end.verify|verify} messages.
  5537. * @function encodeDelimited
  5538. * @memberof game.adventure_end
  5539. * @static
  5540. * @param {game.Iadventure_end} message adventure_end message or plain object to encode
  5541. * @param {$protobuf.Writer} [writer] Writer to encode to
  5542. * @returns {$protobuf.Writer} Writer
  5543. */
  5544. adventure_end.encodeDelimited = function encodeDelimited(message, writer) {
  5545. return this.encode(message, writer).ldelim();
  5546. };
  5547. /**
  5548. * Decodes an adventure_end message from the specified reader or buffer.
  5549. * @function decode
  5550. * @memberof game.adventure_end
  5551. * @static
  5552. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5553. * @param {number} [length] Message length if known beforehand
  5554. * @returns {game.adventure_end} adventure_end
  5555. * @throws {Error} If the payload is not a reader or valid buffer
  5556. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5557. */
  5558. adventure_end.decode = function decode(reader, length) {
  5559. if (!(reader instanceof $Reader))
  5560. reader = $Reader.create(reader);
  5561. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_end();
  5562. while (reader.pos < end) {
  5563. let tag = reader.uint32();
  5564. switch (tag >>> 3) {
  5565. case 1:
  5566. message.win = reader.bool();
  5567. break;
  5568. case 2:
  5569. message.monsterNum = reader.int64();
  5570. break;
  5571. case 3:
  5572. message.bossNum = reader.int64();
  5573. break;
  5574. case 4:
  5575. message.eliteNum = reader.int64();
  5576. break;
  5577. default:
  5578. reader.skipType(tag & 7);
  5579. break;
  5580. }
  5581. }
  5582. return message;
  5583. };
  5584. /**
  5585. * Decodes an adventure_end message from the specified reader or buffer, length delimited.
  5586. * @function decodeDelimited
  5587. * @memberof game.adventure_end
  5588. * @static
  5589. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5590. * @returns {game.adventure_end} adventure_end
  5591. * @throws {Error} If the payload is not a reader or valid buffer
  5592. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5593. */
  5594. adventure_end.decodeDelimited = function decodeDelimited(reader) {
  5595. if (!(reader instanceof $Reader))
  5596. reader = new $Reader(reader);
  5597. return this.decode(reader, reader.uint32());
  5598. };
  5599. /**
  5600. * Verifies an adventure_end message.
  5601. * @function verify
  5602. * @memberof game.adventure_end
  5603. * @static
  5604. * @param {Object.<string,*>} message Plain object to verify
  5605. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5606. */
  5607. adventure_end.verify = function verify(message) {
  5608. if (typeof message !== "object" || message === null)
  5609. return "object expected";
  5610. if (message.win != null && message.hasOwnProperty("win"))
  5611. if (typeof message.win !== "boolean")
  5612. return "win: boolean expected";
  5613. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  5614. if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
  5615. return "monsterNum: integer|Long expected";
  5616. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  5617. if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
  5618. return "bossNum: integer|Long expected";
  5619. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  5620. if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
  5621. return "eliteNum: integer|Long expected";
  5622. return null;
  5623. };
  5624. /**
  5625. * Creates an adventure_end message from a plain object. Also converts values to their respective internal types.
  5626. * @function fromObject
  5627. * @memberof game.adventure_end
  5628. * @static
  5629. * @param {Object.<string,*>} object Plain object
  5630. * @returns {game.adventure_end} adventure_end
  5631. */
  5632. adventure_end.fromObject = function fromObject(object) {
  5633. if (object instanceof $root.game.adventure_end)
  5634. return object;
  5635. let message = new $root.game.adventure_end();
  5636. if (object.win != null)
  5637. message.win = Boolean(object.win);
  5638. if (object.monsterNum != null)
  5639. if ($util.Long)
  5640. (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
  5641. else if (typeof object.monsterNum === "string")
  5642. message.monsterNum = parseInt(object.monsterNum, 10);
  5643. else if (typeof object.monsterNum === "number")
  5644. message.monsterNum = object.monsterNum;
  5645. else if (typeof object.monsterNum === "object")
  5646. message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
  5647. if (object.bossNum != null)
  5648. if ($util.Long)
  5649. (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
  5650. else if (typeof object.bossNum === "string")
  5651. message.bossNum = parseInt(object.bossNum, 10);
  5652. else if (typeof object.bossNum === "number")
  5653. message.bossNum = object.bossNum;
  5654. else if (typeof object.bossNum === "object")
  5655. message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
  5656. if (object.eliteNum != null)
  5657. if ($util.Long)
  5658. (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
  5659. else if (typeof object.eliteNum === "string")
  5660. message.eliteNum = parseInt(object.eliteNum, 10);
  5661. else if (typeof object.eliteNum === "number")
  5662. message.eliteNum = object.eliteNum;
  5663. else if (typeof object.eliteNum === "object")
  5664. message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
  5665. return message;
  5666. };
  5667. /**
  5668. * Creates a plain object from an adventure_end message. Also converts values to other types if specified.
  5669. * @function toObject
  5670. * @memberof game.adventure_end
  5671. * @static
  5672. * @param {game.adventure_end} message adventure_end
  5673. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5674. * @returns {Object.<string,*>} Plain object
  5675. */
  5676. adventure_end.toObject = function toObject(message, options) {
  5677. if (!options)
  5678. options = {};
  5679. let object = {};
  5680. if (options.defaults) {
  5681. object.win = false;
  5682. if ($util.Long) {
  5683. let long = new $util.Long(0, 0, false);
  5684. object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5685. } else
  5686. object.monsterNum = options.longs === String ? "0" : 0;
  5687. if ($util.Long) {
  5688. let long = new $util.Long(0, 0, false);
  5689. object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5690. } else
  5691. object.bossNum = options.longs === String ? "0" : 0;
  5692. if ($util.Long) {
  5693. let long = new $util.Long(0, 0, false);
  5694. object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5695. } else
  5696. object.eliteNum = options.longs === String ? "0" : 0;
  5697. }
  5698. if (message.win != null && message.hasOwnProperty("win"))
  5699. object.win = message.win;
  5700. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  5701. if (typeof message.monsterNum === "number")
  5702. object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
  5703. else
  5704. object.monsterNum = options.longs === String ? $util.Long.prototype.toString.call(message.monsterNum) : options.longs === Number ? new $util.LongBits(message.monsterNum.low >>> 0, message.monsterNum.high >>> 0).toNumber() : message.monsterNum;
  5705. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  5706. if (typeof message.bossNum === "number")
  5707. object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
  5708. else
  5709. object.bossNum = options.longs === String ? $util.Long.prototype.toString.call(message.bossNum) : options.longs === Number ? new $util.LongBits(message.bossNum.low >>> 0, message.bossNum.high >>> 0).toNumber() : message.bossNum;
  5710. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  5711. if (typeof message.eliteNum === "number")
  5712. object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
  5713. else
  5714. object.eliteNum = options.longs === String ? $util.Long.prototype.toString.call(message.eliteNum) : options.longs === Number ? new $util.LongBits(message.eliteNum.low >>> 0, message.eliteNum.high >>> 0).toNumber() : message.eliteNum;
  5715. return object;
  5716. };
  5717. /**
  5718. * Converts this adventure_end to JSON.
  5719. * @function toJSON
  5720. * @memberof game.adventure_end
  5721. * @instance
  5722. * @returns {Object.<string,*>} JSON object
  5723. */
  5724. adventure_end.prototype.toJSON = function toJSON() {
  5725. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5726. };
  5727. return adventure_end;
  5728. })();
  5729. game.adventure_end_rsp = (function() {
  5730. /**
  5731. * Properties of an adventure_end_rsp.
  5732. * @memberof game
  5733. * @interface Iadventure_end_rsp
  5734. * @property {number|Long|null} [errno] adventure_end_rsp errno
  5735. */
  5736. /**
  5737. * Constructs a new adventure_end_rsp.
  5738. * @memberof game
  5739. * @classdesc Represents an adventure_end_rsp.
  5740. * @implements Iadventure_end_rsp
  5741. * @constructor
  5742. * @param {game.Iadventure_end_rsp=} [properties] Properties to set
  5743. */
  5744. function adventure_end_rsp(properties) {
  5745. if (properties)
  5746. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5747. if (properties[keys[i]] != null)
  5748. this[keys[i]] = properties[keys[i]];
  5749. }
  5750. /**
  5751. * adventure_end_rsp errno.
  5752. * @member {number|Long} errno
  5753. * @memberof game.adventure_end_rsp
  5754. * @instance
  5755. */
  5756. adventure_end_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5757. /**
  5758. * Creates a new adventure_end_rsp instance using the specified properties.
  5759. * @function create
  5760. * @memberof game.adventure_end_rsp
  5761. * @static
  5762. * @param {game.Iadventure_end_rsp=} [properties] Properties to set
  5763. * @returns {game.adventure_end_rsp} adventure_end_rsp instance
  5764. */
  5765. adventure_end_rsp.create = function create(properties) {
  5766. return new adventure_end_rsp(properties);
  5767. };
  5768. /**
  5769. * Encodes the specified adventure_end_rsp message. Does not implicitly {@link game.adventure_end_rsp.verify|verify} messages.
  5770. * @function encode
  5771. * @memberof game.adventure_end_rsp
  5772. * @static
  5773. * @param {game.Iadventure_end_rsp} message adventure_end_rsp message or plain object to encode
  5774. * @param {$protobuf.Writer} [writer] Writer to encode to
  5775. * @returns {$protobuf.Writer} Writer
  5776. */
  5777. adventure_end_rsp.encode = function encode(message, writer) {
  5778. if (!writer)
  5779. writer = $Writer.create();
  5780. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  5781. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  5782. return writer;
  5783. };
  5784. /**
  5785. * Encodes the specified adventure_end_rsp message, length delimited. Does not implicitly {@link game.adventure_end_rsp.verify|verify} messages.
  5786. * @function encodeDelimited
  5787. * @memberof game.adventure_end_rsp
  5788. * @static
  5789. * @param {game.Iadventure_end_rsp} message adventure_end_rsp message or plain object to encode
  5790. * @param {$protobuf.Writer} [writer] Writer to encode to
  5791. * @returns {$protobuf.Writer} Writer
  5792. */
  5793. adventure_end_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  5794. return this.encode(message, writer).ldelim();
  5795. };
  5796. /**
  5797. * Decodes an adventure_end_rsp message from the specified reader or buffer.
  5798. * @function decode
  5799. * @memberof game.adventure_end_rsp
  5800. * @static
  5801. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5802. * @param {number} [length] Message length if known beforehand
  5803. * @returns {game.adventure_end_rsp} adventure_end_rsp
  5804. * @throws {Error} If the payload is not a reader or valid buffer
  5805. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5806. */
  5807. adventure_end_rsp.decode = function decode(reader, length) {
  5808. if (!(reader instanceof $Reader))
  5809. reader = $Reader.create(reader);
  5810. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_end_rsp();
  5811. while (reader.pos < end) {
  5812. let tag = reader.uint32();
  5813. switch (tag >>> 3) {
  5814. case 1:
  5815. message.errno = reader.int64();
  5816. break;
  5817. default:
  5818. reader.skipType(tag & 7);
  5819. break;
  5820. }
  5821. }
  5822. return message;
  5823. };
  5824. /**
  5825. * Decodes an adventure_end_rsp message from the specified reader or buffer, length delimited.
  5826. * @function decodeDelimited
  5827. * @memberof game.adventure_end_rsp
  5828. * @static
  5829. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  5830. * @returns {game.adventure_end_rsp} adventure_end_rsp
  5831. * @throws {Error} If the payload is not a reader or valid buffer
  5832. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  5833. */
  5834. adventure_end_rsp.decodeDelimited = function decodeDelimited(reader) {
  5835. if (!(reader instanceof $Reader))
  5836. reader = new $Reader(reader);
  5837. return this.decode(reader, reader.uint32());
  5838. };
  5839. /**
  5840. * Verifies an adventure_end_rsp message.
  5841. * @function verify
  5842. * @memberof game.adventure_end_rsp
  5843. * @static
  5844. * @param {Object.<string,*>} message Plain object to verify
  5845. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  5846. */
  5847. adventure_end_rsp.verify = function verify(message) {
  5848. if (typeof message !== "object" || message === null)
  5849. return "object expected";
  5850. if (message.errno != null && message.hasOwnProperty("errno"))
  5851. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  5852. return "errno: integer|Long expected";
  5853. return null;
  5854. };
  5855. /**
  5856. * Creates an adventure_end_rsp message from a plain object. Also converts values to their respective internal types.
  5857. * @function fromObject
  5858. * @memberof game.adventure_end_rsp
  5859. * @static
  5860. * @param {Object.<string,*>} object Plain object
  5861. * @returns {game.adventure_end_rsp} adventure_end_rsp
  5862. */
  5863. adventure_end_rsp.fromObject = function fromObject(object) {
  5864. if (object instanceof $root.game.adventure_end_rsp)
  5865. return object;
  5866. let message = new $root.game.adventure_end_rsp();
  5867. if (object.errno != null)
  5868. if ($util.Long)
  5869. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  5870. else if (typeof object.errno === "string")
  5871. message.errno = parseInt(object.errno, 10);
  5872. else if (typeof object.errno === "number")
  5873. message.errno = object.errno;
  5874. else if (typeof object.errno === "object")
  5875. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  5876. return message;
  5877. };
  5878. /**
  5879. * Creates a plain object from an adventure_end_rsp message. Also converts values to other types if specified.
  5880. * @function toObject
  5881. * @memberof game.adventure_end_rsp
  5882. * @static
  5883. * @param {game.adventure_end_rsp} message adventure_end_rsp
  5884. * @param {$protobuf.IConversionOptions} [options] Conversion options
  5885. * @returns {Object.<string,*>} Plain object
  5886. */
  5887. adventure_end_rsp.toObject = function toObject(message, options) {
  5888. if (!options)
  5889. options = {};
  5890. let object = {};
  5891. if (options.defaults)
  5892. if ($util.Long) {
  5893. let long = new $util.Long(0, 0, false);
  5894. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  5895. } else
  5896. object.errno = options.longs === String ? "0" : 0;
  5897. if (message.errno != null && message.hasOwnProperty("errno"))
  5898. if (typeof message.errno === "number")
  5899. object.errno = options.longs === String ? String(message.errno) : message.errno;
  5900. else
  5901. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  5902. return object;
  5903. };
  5904. /**
  5905. * Converts this adventure_end_rsp to JSON.
  5906. * @function toJSON
  5907. * @memberof game.adventure_end_rsp
  5908. * @instance
  5909. * @returns {Object.<string,*>} JSON object
  5910. */
  5911. adventure_end_rsp.prototype.toJSON = function toJSON() {
  5912. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  5913. };
  5914. return adventure_end_rsp;
  5915. })();
  5916. game.adventure_layer = (function() {
  5917. /**
  5918. * Properties of an adventure_layer.
  5919. * @memberof game
  5920. * @interface Iadventure_layer
  5921. * @property {number|Long|null} [layer] adventure_layer layer
  5922. * @property {number|Long|null} [cost] adventure_layer cost
  5923. * @property {number|Long|null} [monsterNum] adventure_layer monsterNum
  5924. * @property {number|Long|null} [bossNum] adventure_layer bossNum
  5925. * @property {number|Long|null} [eliteNum] adventure_layer eliteNum
  5926. */
  5927. /**
  5928. * Constructs a new adventure_layer.
  5929. * @memberof game
  5930. * @classdesc Represents an adventure_layer.
  5931. * @implements Iadventure_layer
  5932. * @constructor
  5933. * @param {game.Iadventure_layer=} [properties] Properties to set
  5934. */
  5935. function adventure_layer(properties) {
  5936. if (properties)
  5937. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  5938. if (properties[keys[i]] != null)
  5939. this[keys[i]] = properties[keys[i]];
  5940. }
  5941. /**
  5942. * adventure_layer layer.
  5943. * @member {number|Long} layer
  5944. * @memberof game.adventure_layer
  5945. * @instance
  5946. */
  5947. adventure_layer.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5948. /**
  5949. * adventure_layer cost.
  5950. * @member {number|Long} cost
  5951. * @memberof game.adventure_layer
  5952. * @instance
  5953. */
  5954. adventure_layer.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5955. /**
  5956. * adventure_layer monsterNum.
  5957. * @member {number|Long} monsterNum
  5958. * @memberof game.adventure_layer
  5959. * @instance
  5960. */
  5961. adventure_layer.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5962. /**
  5963. * adventure_layer bossNum.
  5964. * @member {number|Long} bossNum
  5965. * @memberof game.adventure_layer
  5966. * @instance
  5967. */
  5968. adventure_layer.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5969. /**
  5970. * adventure_layer eliteNum.
  5971. * @member {number|Long} eliteNum
  5972. * @memberof game.adventure_layer
  5973. * @instance
  5974. */
  5975. adventure_layer.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  5976. /**
  5977. * Creates a new adventure_layer instance using the specified properties.
  5978. * @function create
  5979. * @memberof game.adventure_layer
  5980. * @static
  5981. * @param {game.Iadventure_layer=} [properties] Properties to set
  5982. * @returns {game.adventure_layer} adventure_layer instance
  5983. */
  5984. adventure_layer.create = function create(properties) {
  5985. return new adventure_layer(properties);
  5986. };
  5987. /**
  5988. * Encodes the specified adventure_layer message. Does not implicitly {@link game.adventure_layer.verify|verify} messages.
  5989. * @function encode
  5990. * @memberof game.adventure_layer
  5991. * @static
  5992. * @param {game.Iadventure_layer} message adventure_layer message or plain object to encode
  5993. * @param {$protobuf.Writer} [writer] Writer to encode to
  5994. * @returns {$protobuf.Writer} Writer
  5995. */
  5996. adventure_layer.encode = function encode(message, writer) {
  5997. if (!writer)
  5998. writer = $Writer.create();
  5999. if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
  6000. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.layer);
  6001. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  6002. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.cost);
  6003. if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
  6004. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.monsterNum);
  6005. if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
  6006. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.bossNum);
  6007. if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
  6008. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.eliteNum);
  6009. return writer;
  6010. };
  6011. /**
  6012. * Encodes the specified adventure_layer message, length delimited. Does not implicitly {@link game.adventure_layer.verify|verify} messages.
  6013. * @function encodeDelimited
  6014. * @memberof game.adventure_layer
  6015. * @static
  6016. * @param {game.Iadventure_layer} message adventure_layer message or plain object to encode
  6017. * @param {$protobuf.Writer} [writer] Writer to encode to
  6018. * @returns {$protobuf.Writer} Writer
  6019. */
  6020. adventure_layer.encodeDelimited = function encodeDelimited(message, writer) {
  6021. return this.encode(message, writer).ldelim();
  6022. };
  6023. /**
  6024. * Decodes an adventure_layer message from the specified reader or buffer.
  6025. * @function decode
  6026. * @memberof game.adventure_layer
  6027. * @static
  6028. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6029. * @param {number} [length] Message length if known beforehand
  6030. * @returns {game.adventure_layer} adventure_layer
  6031. * @throws {Error} If the payload is not a reader or valid buffer
  6032. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6033. */
  6034. adventure_layer.decode = function decode(reader, length) {
  6035. if (!(reader instanceof $Reader))
  6036. reader = $Reader.create(reader);
  6037. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_layer();
  6038. while (reader.pos < end) {
  6039. let tag = reader.uint32();
  6040. switch (tag >>> 3) {
  6041. case 1:
  6042. message.layer = reader.int64();
  6043. break;
  6044. case 2:
  6045. message.cost = reader.int64();
  6046. break;
  6047. case 3:
  6048. message.monsterNum = reader.int64();
  6049. break;
  6050. case 4:
  6051. message.bossNum = reader.int64();
  6052. break;
  6053. case 5:
  6054. message.eliteNum = reader.int64();
  6055. break;
  6056. default:
  6057. reader.skipType(tag & 7);
  6058. break;
  6059. }
  6060. }
  6061. return message;
  6062. };
  6063. /**
  6064. * Decodes an adventure_layer message from the specified reader or buffer, length delimited.
  6065. * @function decodeDelimited
  6066. * @memberof game.adventure_layer
  6067. * @static
  6068. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6069. * @returns {game.adventure_layer} adventure_layer
  6070. * @throws {Error} If the payload is not a reader or valid buffer
  6071. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6072. */
  6073. adventure_layer.decodeDelimited = function decodeDelimited(reader) {
  6074. if (!(reader instanceof $Reader))
  6075. reader = new $Reader(reader);
  6076. return this.decode(reader, reader.uint32());
  6077. };
  6078. /**
  6079. * Verifies an adventure_layer message.
  6080. * @function verify
  6081. * @memberof game.adventure_layer
  6082. * @static
  6083. * @param {Object.<string,*>} message Plain object to verify
  6084. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6085. */
  6086. adventure_layer.verify = function verify(message) {
  6087. if (typeof message !== "object" || message === null)
  6088. return "object expected";
  6089. if (message.layer != null && message.hasOwnProperty("layer"))
  6090. if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
  6091. return "layer: integer|Long expected";
  6092. if (message.cost != null && message.hasOwnProperty("cost"))
  6093. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  6094. return "cost: integer|Long expected";
  6095. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  6096. if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
  6097. return "monsterNum: integer|Long expected";
  6098. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  6099. if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
  6100. return "bossNum: integer|Long expected";
  6101. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  6102. if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
  6103. return "eliteNum: integer|Long expected";
  6104. return null;
  6105. };
  6106. /**
  6107. * Creates an adventure_layer message from a plain object. Also converts values to their respective internal types.
  6108. * @function fromObject
  6109. * @memberof game.adventure_layer
  6110. * @static
  6111. * @param {Object.<string,*>} object Plain object
  6112. * @returns {game.adventure_layer} adventure_layer
  6113. */
  6114. adventure_layer.fromObject = function fromObject(object) {
  6115. if (object instanceof $root.game.adventure_layer)
  6116. return object;
  6117. let message = new $root.game.adventure_layer();
  6118. if (object.layer != null)
  6119. if ($util.Long)
  6120. (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
  6121. else if (typeof object.layer === "string")
  6122. message.layer = parseInt(object.layer, 10);
  6123. else if (typeof object.layer === "number")
  6124. message.layer = object.layer;
  6125. else if (typeof object.layer === "object")
  6126. message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
  6127. if (object.cost != null)
  6128. if ($util.Long)
  6129. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  6130. else if (typeof object.cost === "string")
  6131. message.cost = parseInt(object.cost, 10);
  6132. else if (typeof object.cost === "number")
  6133. message.cost = object.cost;
  6134. else if (typeof object.cost === "object")
  6135. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  6136. if (object.monsterNum != null)
  6137. if ($util.Long)
  6138. (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
  6139. else if (typeof object.monsterNum === "string")
  6140. message.monsterNum = parseInt(object.monsterNum, 10);
  6141. else if (typeof object.monsterNum === "number")
  6142. message.monsterNum = object.monsterNum;
  6143. else if (typeof object.monsterNum === "object")
  6144. message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
  6145. if (object.bossNum != null)
  6146. if ($util.Long)
  6147. (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
  6148. else if (typeof object.bossNum === "string")
  6149. message.bossNum = parseInt(object.bossNum, 10);
  6150. else if (typeof object.bossNum === "number")
  6151. message.bossNum = object.bossNum;
  6152. else if (typeof object.bossNum === "object")
  6153. message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
  6154. if (object.eliteNum != null)
  6155. if ($util.Long)
  6156. (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
  6157. else if (typeof object.eliteNum === "string")
  6158. message.eliteNum = parseInt(object.eliteNum, 10);
  6159. else if (typeof object.eliteNum === "number")
  6160. message.eliteNum = object.eliteNum;
  6161. else if (typeof object.eliteNum === "object")
  6162. message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
  6163. return message;
  6164. };
  6165. /**
  6166. * Creates a plain object from an adventure_layer message. Also converts values to other types if specified.
  6167. * @function toObject
  6168. * @memberof game.adventure_layer
  6169. * @static
  6170. * @param {game.adventure_layer} message adventure_layer
  6171. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6172. * @returns {Object.<string,*>} Plain object
  6173. */
  6174. adventure_layer.toObject = function toObject(message, options) {
  6175. if (!options)
  6176. options = {};
  6177. let object = {};
  6178. if (options.defaults) {
  6179. if ($util.Long) {
  6180. let long = new $util.Long(0, 0, false);
  6181. object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6182. } else
  6183. object.layer = options.longs === String ? "0" : 0;
  6184. if ($util.Long) {
  6185. let long = new $util.Long(0, 0, false);
  6186. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6187. } else
  6188. object.cost = options.longs === String ? "0" : 0;
  6189. if ($util.Long) {
  6190. let long = new $util.Long(0, 0, false);
  6191. object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6192. } else
  6193. object.monsterNum = options.longs === String ? "0" : 0;
  6194. if ($util.Long) {
  6195. let long = new $util.Long(0, 0, false);
  6196. object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6197. } else
  6198. object.bossNum = options.longs === String ? "0" : 0;
  6199. if ($util.Long) {
  6200. let long = new $util.Long(0, 0, false);
  6201. object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6202. } else
  6203. object.eliteNum = options.longs === String ? "0" : 0;
  6204. }
  6205. if (message.layer != null && message.hasOwnProperty("layer"))
  6206. if (typeof message.layer === "number")
  6207. object.layer = options.longs === String ? String(message.layer) : message.layer;
  6208. else
  6209. object.layer = options.longs === String ? $util.Long.prototype.toString.call(message.layer) : options.longs === Number ? new $util.LongBits(message.layer.low >>> 0, message.layer.high >>> 0).toNumber() : message.layer;
  6210. if (message.cost != null && message.hasOwnProperty("cost"))
  6211. if (typeof message.cost === "number")
  6212. object.cost = options.longs === String ? String(message.cost) : message.cost;
  6213. else
  6214. object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
  6215. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  6216. if (typeof message.monsterNum === "number")
  6217. object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
  6218. else
  6219. object.monsterNum = options.longs === String ? $util.Long.prototype.toString.call(message.monsterNum) : options.longs === Number ? new $util.LongBits(message.monsterNum.low >>> 0, message.monsterNum.high >>> 0).toNumber() : message.monsterNum;
  6220. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  6221. if (typeof message.bossNum === "number")
  6222. object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
  6223. else
  6224. object.bossNum = options.longs === String ? $util.Long.prototype.toString.call(message.bossNum) : options.longs === Number ? new $util.LongBits(message.bossNum.low >>> 0, message.bossNum.high >>> 0).toNumber() : message.bossNum;
  6225. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  6226. if (typeof message.eliteNum === "number")
  6227. object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
  6228. else
  6229. object.eliteNum = options.longs === String ? $util.Long.prototype.toString.call(message.eliteNum) : options.longs === Number ? new $util.LongBits(message.eliteNum.low >>> 0, message.eliteNum.high >>> 0).toNumber() : message.eliteNum;
  6230. return object;
  6231. };
  6232. /**
  6233. * Converts this adventure_layer to JSON.
  6234. * @function toJSON
  6235. * @memberof game.adventure_layer
  6236. * @instance
  6237. * @returns {Object.<string,*>} JSON object
  6238. */
  6239. adventure_layer.prototype.toJSON = function toJSON() {
  6240. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6241. };
  6242. return adventure_layer;
  6243. })();
  6244. game.adventure_layer_rsp = (function() {
  6245. /**
  6246. * Properties of an adventure_layer_rsp.
  6247. * @memberof game
  6248. * @interface Iadventure_layer_rsp
  6249. * @property {number|Long|null} [errno] adventure_layer_rsp errno
  6250. */
  6251. /**
  6252. * Constructs a new adventure_layer_rsp.
  6253. * @memberof game
  6254. * @classdesc Represents an adventure_layer_rsp.
  6255. * @implements Iadventure_layer_rsp
  6256. * @constructor
  6257. * @param {game.Iadventure_layer_rsp=} [properties] Properties to set
  6258. */
  6259. function adventure_layer_rsp(properties) {
  6260. if (properties)
  6261. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6262. if (properties[keys[i]] != null)
  6263. this[keys[i]] = properties[keys[i]];
  6264. }
  6265. /**
  6266. * adventure_layer_rsp errno.
  6267. * @member {number|Long} errno
  6268. * @memberof game.adventure_layer_rsp
  6269. * @instance
  6270. */
  6271. adventure_layer_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6272. /**
  6273. * Creates a new adventure_layer_rsp instance using the specified properties.
  6274. * @function create
  6275. * @memberof game.adventure_layer_rsp
  6276. * @static
  6277. * @param {game.Iadventure_layer_rsp=} [properties] Properties to set
  6278. * @returns {game.adventure_layer_rsp} adventure_layer_rsp instance
  6279. */
  6280. adventure_layer_rsp.create = function create(properties) {
  6281. return new adventure_layer_rsp(properties);
  6282. };
  6283. /**
  6284. * Encodes the specified adventure_layer_rsp message. Does not implicitly {@link game.adventure_layer_rsp.verify|verify} messages.
  6285. * @function encode
  6286. * @memberof game.adventure_layer_rsp
  6287. * @static
  6288. * @param {game.Iadventure_layer_rsp} message adventure_layer_rsp message or plain object to encode
  6289. * @param {$protobuf.Writer} [writer] Writer to encode to
  6290. * @returns {$protobuf.Writer} Writer
  6291. */
  6292. adventure_layer_rsp.encode = function encode(message, writer) {
  6293. if (!writer)
  6294. writer = $Writer.create();
  6295. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  6296. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  6297. return writer;
  6298. };
  6299. /**
  6300. * Encodes the specified adventure_layer_rsp message, length delimited. Does not implicitly {@link game.adventure_layer_rsp.verify|verify} messages.
  6301. * @function encodeDelimited
  6302. * @memberof game.adventure_layer_rsp
  6303. * @static
  6304. * @param {game.Iadventure_layer_rsp} message adventure_layer_rsp message or plain object to encode
  6305. * @param {$protobuf.Writer} [writer] Writer to encode to
  6306. * @returns {$protobuf.Writer} Writer
  6307. */
  6308. adventure_layer_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  6309. return this.encode(message, writer).ldelim();
  6310. };
  6311. /**
  6312. * Decodes an adventure_layer_rsp message from the specified reader or buffer.
  6313. * @function decode
  6314. * @memberof game.adventure_layer_rsp
  6315. * @static
  6316. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6317. * @param {number} [length] Message length if known beforehand
  6318. * @returns {game.adventure_layer_rsp} adventure_layer_rsp
  6319. * @throws {Error} If the payload is not a reader or valid buffer
  6320. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6321. */
  6322. adventure_layer_rsp.decode = function decode(reader, length) {
  6323. if (!(reader instanceof $Reader))
  6324. reader = $Reader.create(reader);
  6325. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_layer_rsp();
  6326. while (reader.pos < end) {
  6327. let tag = reader.uint32();
  6328. switch (tag >>> 3) {
  6329. case 1:
  6330. message.errno = reader.int64();
  6331. break;
  6332. default:
  6333. reader.skipType(tag & 7);
  6334. break;
  6335. }
  6336. }
  6337. return message;
  6338. };
  6339. /**
  6340. * Decodes an adventure_layer_rsp message from the specified reader or buffer, length delimited.
  6341. * @function decodeDelimited
  6342. * @memberof game.adventure_layer_rsp
  6343. * @static
  6344. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6345. * @returns {game.adventure_layer_rsp} adventure_layer_rsp
  6346. * @throws {Error} If the payload is not a reader or valid buffer
  6347. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6348. */
  6349. adventure_layer_rsp.decodeDelimited = function decodeDelimited(reader) {
  6350. if (!(reader instanceof $Reader))
  6351. reader = new $Reader(reader);
  6352. return this.decode(reader, reader.uint32());
  6353. };
  6354. /**
  6355. * Verifies an adventure_layer_rsp message.
  6356. * @function verify
  6357. * @memberof game.adventure_layer_rsp
  6358. * @static
  6359. * @param {Object.<string,*>} message Plain object to verify
  6360. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6361. */
  6362. adventure_layer_rsp.verify = function verify(message) {
  6363. if (typeof message !== "object" || message === null)
  6364. return "object expected";
  6365. if (message.errno != null && message.hasOwnProperty("errno"))
  6366. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  6367. return "errno: integer|Long expected";
  6368. return null;
  6369. };
  6370. /**
  6371. * Creates an adventure_layer_rsp message from a plain object. Also converts values to their respective internal types.
  6372. * @function fromObject
  6373. * @memberof game.adventure_layer_rsp
  6374. * @static
  6375. * @param {Object.<string,*>} object Plain object
  6376. * @returns {game.adventure_layer_rsp} adventure_layer_rsp
  6377. */
  6378. adventure_layer_rsp.fromObject = function fromObject(object) {
  6379. if (object instanceof $root.game.adventure_layer_rsp)
  6380. return object;
  6381. let message = new $root.game.adventure_layer_rsp();
  6382. if (object.errno != null)
  6383. if ($util.Long)
  6384. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  6385. else if (typeof object.errno === "string")
  6386. message.errno = parseInt(object.errno, 10);
  6387. else if (typeof object.errno === "number")
  6388. message.errno = object.errno;
  6389. else if (typeof object.errno === "object")
  6390. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  6391. return message;
  6392. };
  6393. /**
  6394. * Creates a plain object from an adventure_layer_rsp message. Also converts values to other types if specified.
  6395. * @function toObject
  6396. * @memberof game.adventure_layer_rsp
  6397. * @static
  6398. * @param {game.adventure_layer_rsp} message adventure_layer_rsp
  6399. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6400. * @returns {Object.<string,*>} Plain object
  6401. */
  6402. adventure_layer_rsp.toObject = function toObject(message, options) {
  6403. if (!options)
  6404. options = {};
  6405. let object = {};
  6406. if (options.defaults)
  6407. if ($util.Long) {
  6408. let long = new $util.Long(0, 0, false);
  6409. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6410. } else
  6411. object.errno = options.longs === String ? "0" : 0;
  6412. if (message.errno != null && message.hasOwnProperty("errno"))
  6413. if (typeof message.errno === "number")
  6414. object.errno = options.longs === String ? String(message.errno) : message.errno;
  6415. else
  6416. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  6417. return object;
  6418. };
  6419. /**
  6420. * Converts this adventure_layer_rsp to JSON.
  6421. * @function toJSON
  6422. * @memberof game.adventure_layer_rsp
  6423. * @instance
  6424. * @returns {Object.<string,*>} JSON object
  6425. */
  6426. adventure_layer_rsp.prototype.toJSON = function toJSON() {
  6427. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6428. };
  6429. return adventure_layer_rsp;
  6430. })();
  6431. game.adventure_sweep = (function() {
  6432. /**
  6433. * Properties of an adventure_sweep.
  6434. * @memberof game
  6435. * @interface Iadventure_sweep
  6436. * @property {number|Long|null} [id] adventure_sweep id
  6437. * @property {number|Long|null} [type] adventure_sweep type
  6438. */
  6439. /**
  6440. * Constructs a new adventure_sweep.
  6441. * @memberof game
  6442. * @classdesc Represents an adventure_sweep.
  6443. * @implements Iadventure_sweep
  6444. * @constructor
  6445. * @param {game.Iadventure_sweep=} [properties] Properties to set
  6446. */
  6447. function adventure_sweep(properties) {
  6448. if (properties)
  6449. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6450. if (properties[keys[i]] != null)
  6451. this[keys[i]] = properties[keys[i]];
  6452. }
  6453. /**
  6454. * adventure_sweep id.
  6455. * @member {number|Long} id
  6456. * @memberof game.adventure_sweep
  6457. * @instance
  6458. */
  6459. adventure_sweep.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6460. /**
  6461. * adventure_sweep type.
  6462. * @member {number|Long} type
  6463. * @memberof game.adventure_sweep
  6464. * @instance
  6465. */
  6466. adventure_sweep.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6467. /**
  6468. * Creates a new adventure_sweep instance using the specified properties.
  6469. * @function create
  6470. * @memberof game.adventure_sweep
  6471. * @static
  6472. * @param {game.Iadventure_sweep=} [properties] Properties to set
  6473. * @returns {game.adventure_sweep} adventure_sweep instance
  6474. */
  6475. adventure_sweep.create = function create(properties) {
  6476. return new adventure_sweep(properties);
  6477. };
  6478. /**
  6479. * Encodes the specified adventure_sweep message. Does not implicitly {@link game.adventure_sweep.verify|verify} messages.
  6480. * @function encode
  6481. * @memberof game.adventure_sweep
  6482. * @static
  6483. * @param {game.Iadventure_sweep} message adventure_sweep message or plain object to encode
  6484. * @param {$protobuf.Writer} [writer] Writer to encode to
  6485. * @returns {$protobuf.Writer} Writer
  6486. */
  6487. adventure_sweep.encode = function encode(message, writer) {
  6488. if (!writer)
  6489. writer = $Writer.create();
  6490. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  6491. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  6492. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  6493. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  6494. return writer;
  6495. };
  6496. /**
  6497. * Encodes the specified adventure_sweep message, length delimited. Does not implicitly {@link game.adventure_sweep.verify|verify} messages.
  6498. * @function encodeDelimited
  6499. * @memberof game.adventure_sweep
  6500. * @static
  6501. * @param {game.Iadventure_sweep} message adventure_sweep message or plain object to encode
  6502. * @param {$protobuf.Writer} [writer] Writer to encode to
  6503. * @returns {$protobuf.Writer} Writer
  6504. */
  6505. adventure_sweep.encodeDelimited = function encodeDelimited(message, writer) {
  6506. return this.encode(message, writer).ldelim();
  6507. };
  6508. /**
  6509. * Decodes an adventure_sweep message from the specified reader or buffer.
  6510. * @function decode
  6511. * @memberof game.adventure_sweep
  6512. * @static
  6513. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6514. * @param {number} [length] Message length if known beforehand
  6515. * @returns {game.adventure_sweep} adventure_sweep
  6516. * @throws {Error} If the payload is not a reader or valid buffer
  6517. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6518. */
  6519. adventure_sweep.decode = function decode(reader, length) {
  6520. if (!(reader instanceof $Reader))
  6521. reader = $Reader.create(reader);
  6522. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_sweep();
  6523. while (reader.pos < end) {
  6524. let tag = reader.uint32();
  6525. switch (tag >>> 3) {
  6526. case 1:
  6527. message.id = reader.int64();
  6528. break;
  6529. case 2:
  6530. message.type = reader.int64();
  6531. break;
  6532. default:
  6533. reader.skipType(tag & 7);
  6534. break;
  6535. }
  6536. }
  6537. return message;
  6538. };
  6539. /**
  6540. * Decodes an adventure_sweep message from the specified reader or buffer, length delimited.
  6541. * @function decodeDelimited
  6542. * @memberof game.adventure_sweep
  6543. * @static
  6544. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6545. * @returns {game.adventure_sweep} adventure_sweep
  6546. * @throws {Error} If the payload is not a reader or valid buffer
  6547. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6548. */
  6549. adventure_sweep.decodeDelimited = function decodeDelimited(reader) {
  6550. if (!(reader instanceof $Reader))
  6551. reader = new $Reader(reader);
  6552. return this.decode(reader, reader.uint32());
  6553. };
  6554. /**
  6555. * Verifies an adventure_sweep message.
  6556. * @function verify
  6557. * @memberof game.adventure_sweep
  6558. * @static
  6559. * @param {Object.<string,*>} message Plain object to verify
  6560. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6561. */
  6562. adventure_sweep.verify = function verify(message) {
  6563. if (typeof message !== "object" || message === null)
  6564. return "object expected";
  6565. if (message.id != null && message.hasOwnProperty("id"))
  6566. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  6567. return "id: integer|Long expected";
  6568. if (message.type != null && message.hasOwnProperty("type"))
  6569. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  6570. return "type: integer|Long expected";
  6571. return null;
  6572. };
  6573. /**
  6574. * Creates an adventure_sweep message from a plain object. Also converts values to their respective internal types.
  6575. * @function fromObject
  6576. * @memberof game.adventure_sweep
  6577. * @static
  6578. * @param {Object.<string,*>} object Plain object
  6579. * @returns {game.adventure_sweep} adventure_sweep
  6580. */
  6581. adventure_sweep.fromObject = function fromObject(object) {
  6582. if (object instanceof $root.game.adventure_sweep)
  6583. return object;
  6584. let message = new $root.game.adventure_sweep();
  6585. if (object.id != null)
  6586. if ($util.Long)
  6587. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  6588. else if (typeof object.id === "string")
  6589. message.id = parseInt(object.id, 10);
  6590. else if (typeof object.id === "number")
  6591. message.id = object.id;
  6592. else if (typeof object.id === "object")
  6593. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  6594. if (object.type != null)
  6595. if ($util.Long)
  6596. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  6597. else if (typeof object.type === "string")
  6598. message.type = parseInt(object.type, 10);
  6599. else if (typeof object.type === "number")
  6600. message.type = object.type;
  6601. else if (typeof object.type === "object")
  6602. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  6603. return message;
  6604. };
  6605. /**
  6606. * Creates a plain object from an adventure_sweep message. Also converts values to other types if specified.
  6607. * @function toObject
  6608. * @memberof game.adventure_sweep
  6609. * @static
  6610. * @param {game.adventure_sweep} message adventure_sweep
  6611. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6612. * @returns {Object.<string,*>} Plain object
  6613. */
  6614. adventure_sweep.toObject = function toObject(message, options) {
  6615. if (!options)
  6616. options = {};
  6617. let object = {};
  6618. if (options.defaults) {
  6619. if ($util.Long) {
  6620. let long = new $util.Long(0, 0, false);
  6621. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6622. } else
  6623. object.id = options.longs === String ? "0" : 0;
  6624. if ($util.Long) {
  6625. let long = new $util.Long(0, 0, false);
  6626. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6627. } else
  6628. object.type = options.longs === String ? "0" : 0;
  6629. }
  6630. if (message.id != null && message.hasOwnProperty("id"))
  6631. if (typeof message.id === "number")
  6632. object.id = options.longs === String ? String(message.id) : message.id;
  6633. else
  6634. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  6635. if (message.type != null && message.hasOwnProperty("type"))
  6636. if (typeof message.type === "number")
  6637. object.type = options.longs === String ? String(message.type) : message.type;
  6638. else
  6639. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  6640. return object;
  6641. };
  6642. /**
  6643. * Converts this adventure_sweep to JSON.
  6644. * @function toJSON
  6645. * @memberof game.adventure_sweep
  6646. * @instance
  6647. * @returns {Object.<string,*>} JSON object
  6648. */
  6649. adventure_sweep.prototype.toJSON = function toJSON() {
  6650. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6651. };
  6652. return adventure_sweep;
  6653. })();
  6654. game.adventure_sweep_rsp = (function() {
  6655. /**
  6656. * Properties of an adventure_sweep_rsp.
  6657. * @memberof game
  6658. * @interface Iadventure_sweep_rsp
  6659. * @property {number|Long|null} [errno] adventure_sweep_rsp errno
  6660. */
  6661. /**
  6662. * Constructs a new adventure_sweep_rsp.
  6663. * @memberof game
  6664. * @classdesc Represents an adventure_sweep_rsp.
  6665. * @implements Iadventure_sweep_rsp
  6666. * @constructor
  6667. * @param {game.Iadventure_sweep_rsp=} [properties] Properties to set
  6668. */
  6669. function adventure_sweep_rsp(properties) {
  6670. if (properties)
  6671. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6672. if (properties[keys[i]] != null)
  6673. this[keys[i]] = properties[keys[i]];
  6674. }
  6675. /**
  6676. * adventure_sweep_rsp errno.
  6677. * @member {number|Long} errno
  6678. * @memberof game.adventure_sweep_rsp
  6679. * @instance
  6680. */
  6681. adventure_sweep_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6682. /**
  6683. * Creates a new adventure_sweep_rsp instance using the specified properties.
  6684. * @function create
  6685. * @memberof game.adventure_sweep_rsp
  6686. * @static
  6687. * @param {game.Iadventure_sweep_rsp=} [properties] Properties to set
  6688. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp instance
  6689. */
  6690. adventure_sweep_rsp.create = function create(properties) {
  6691. return new adventure_sweep_rsp(properties);
  6692. };
  6693. /**
  6694. * Encodes the specified adventure_sweep_rsp message. Does not implicitly {@link game.adventure_sweep_rsp.verify|verify} messages.
  6695. * @function encode
  6696. * @memberof game.adventure_sweep_rsp
  6697. * @static
  6698. * @param {game.Iadventure_sweep_rsp} message adventure_sweep_rsp message or plain object to encode
  6699. * @param {$protobuf.Writer} [writer] Writer to encode to
  6700. * @returns {$protobuf.Writer} Writer
  6701. */
  6702. adventure_sweep_rsp.encode = function encode(message, writer) {
  6703. if (!writer)
  6704. writer = $Writer.create();
  6705. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  6706. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  6707. return writer;
  6708. };
  6709. /**
  6710. * Encodes the specified adventure_sweep_rsp message, length delimited. Does not implicitly {@link game.adventure_sweep_rsp.verify|verify} messages.
  6711. * @function encodeDelimited
  6712. * @memberof game.adventure_sweep_rsp
  6713. * @static
  6714. * @param {game.Iadventure_sweep_rsp} message adventure_sweep_rsp message or plain object to encode
  6715. * @param {$protobuf.Writer} [writer] Writer to encode to
  6716. * @returns {$protobuf.Writer} Writer
  6717. */
  6718. adventure_sweep_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  6719. return this.encode(message, writer).ldelim();
  6720. };
  6721. /**
  6722. * Decodes an adventure_sweep_rsp message from the specified reader or buffer.
  6723. * @function decode
  6724. * @memberof game.adventure_sweep_rsp
  6725. * @static
  6726. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6727. * @param {number} [length] Message length if known beforehand
  6728. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
  6729. * @throws {Error} If the payload is not a reader or valid buffer
  6730. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6731. */
  6732. adventure_sweep_rsp.decode = function decode(reader, length) {
  6733. if (!(reader instanceof $Reader))
  6734. reader = $Reader.create(reader);
  6735. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_sweep_rsp();
  6736. while (reader.pos < end) {
  6737. let tag = reader.uint32();
  6738. switch (tag >>> 3) {
  6739. case 1:
  6740. message.errno = reader.int64();
  6741. break;
  6742. default:
  6743. reader.skipType(tag & 7);
  6744. break;
  6745. }
  6746. }
  6747. return message;
  6748. };
  6749. /**
  6750. * Decodes an adventure_sweep_rsp message from the specified reader or buffer, length delimited.
  6751. * @function decodeDelimited
  6752. * @memberof game.adventure_sweep_rsp
  6753. * @static
  6754. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6755. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
  6756. * @throws {Error} If the payload is not a reader or valid buffer
  6757. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6758. */
  6759. adventure_sweep_rsp.decodeDelimited = function decodeDelimited(reader) {
  6760. if (!(reader instanceof $Reader))
  6761. reader = new $Reader(reader);
  6762. return this.decode(reader, reader.uint32());
  6763. };
  6764. /**
  6765. * Verifies an adventure_sweep_rsp message.
  6766. * @function verify
  6767. * @memberof game.adventure_sweep_rsp
  6768. * @static
  6769. * @param {Object.<string,*>} message Plain object to verify
  6770. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6771. */
  6772. adventure_sweep_rsp.verify = function verify(message) {
  6773. if (typeof message !== "object" || message === null)
  6774. return "object expected";
  6775. if (message.errno != null && message.hasOwnProperty("errno"))
  6776. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  6777. return "errno: integer|Long expected";
  6778. return null;
  6779. };
  6780. /**
  6781. * Creates an adventure_sweep_rsp message from a plain object. Also converts values to their respective internal types.
  6782. * @function fromObject
  6783. * @memberof game.adventure_sweep_rsp
  6784. * @static
  6785. * @param {Object.<string,*>} object Plain object
  6786. * @returns {game.adventure_sweep_rsp} adventure_sweep_rsp
  6787. */
  6788. adventure_sweep_rsp.fromObject = function fromObject(object) {
  6789. if (object instanceof $root.game.adventure_sweep_rsp)
  6790. return object;
  6791. let message = new $root.game.adventure_sweep_rsp();
  6792. if (object.errno != null)
  6793. if ($util.Long)
  6794. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  6795. else if (typeof object.errno === "string")
  6796. message.errno = parseInt(object.errno, 10);
  6797. else if (typeof object.errno === "number")
  6798. message.errno = object.errno;
  6799. else if (typeof object.errno === "object")
  6800. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  6801. return message;
  6802. };
  6803. /**
  6804. * Creates a plain object from an adventure_sweep_rsp message. Also converts values to other types if specified.
  6805. * @function toObject
  6806. * @memberof game.adventure_sweep_rsp
  6807. * @static
  6808. * @param {game.adventure_sweep_rsp} message adventure_sweep_rsp
  6809. * @param {$protobuf.IConversionOptions} [options] Conversion options
  6810. * @returns {Object.<string,*>} Plain object
  6811. */
  6812. adventure_sweep_rsp.toObject = function toObject(message, options) {
  6813. if (!options)
  6814. options = {};
  6815. let object = {};
  6816. if (options.defaults)
  6817. if ($util.Long) {
  6818. let long = new $util.Long(0, 0, false);
  6819. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  6820. } else
  6821. object.errno = options.longs === String ? "0" : 0;
  6822. if (message.errno != null && message.hasOwnProperty("errno"))
  6823. if (typeof message.errno === "number")
  6824. object.errno = options.longs === String ? String(message.errno) : message.errno;
  6825. else
  6826. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  6827. return object;
  6828. };
  6829. /**
  6830. * Converts this adventure_sweep_rsp to JSON.
  6831. * @function toJSON
  6832. * @memberof game.adventure_sweep_rsp
  6833. * @instance
  6834. * @returns {Object.<string,*>} JSON object
  6835. */
  6836. adventure_sweep_rsp.prototype.toJSON = function toJSON() {
  6837. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  6838. };
  6839. return adventure_sweep_rsp;
  6840. })();
  6841. game.adventure_pass_award = (function() {
  6842. /**
  6843. * Properties of an adventure_pass_award.
  6844. * @memberof game
  6845. * @interface Iadventure_pass_award
  6846. * @property {number|Long|null} [id] adventure_pass_award id
  6847. * @property {number|Long|null} [type] adventure_pass_award type
  6848. */
  6849. /**
  6850. * Constructs a new adventure_pass_award.
  6851. * @memberof game
  6852. * @classdesc Represents an adventure_pass_award.
  6853. * @implements Iadventure_pass_award
  6854. * @constructor
  6855. * @param {game.Iadventure_pass_award=} [properties] Properties to set
  6856. */
  6857. function adventure_pass_award(properties) {
  6858. if (properties)
  6859. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  6860. if (properties[keys[i]] != null)
  6861. this[keys[i]] = properties[keys[i]];
  6862. }
  6863. /**
  6864. * adventure_pass_award id.
  6865. * @member {number|Long} id
  6866. * @memberof game.adventure_pass_award
  6867. * @instance
  6868. */
  6869. adventure_pass_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6870. /**
  6871. * adventure_pass_award type.
  6872. * @member {number|Long} type
  6873. * @memberof game.adventure_pass_award
  6874. * @instance
  6875. */
  6876. adventure_pass_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  6877. /**
  6878. * Creates a new adventure_pass_award instance using the specified properties.
  6879. * @function create
  6880. * @memberof game.adventure_pass_award
  6881. * @static
  6882. * @param {game.Iadventure_pass_award=} [properties] Properties to set
  6883. * @returns {game.adventure_pass_award} adventure_pass_award instance
  6884. */
  6885. adventure_pass_award.create = function create(properties) {
  6886. return new adventure_pass_award(properties);
  6887. };
  6888. /**
  6889. * Encodes the specified adventure_pass_award message. Does not implicitly {@link game.adventure_pass_award.verify|verify} messages.
  6890. * @function encode
  6891. * @memberof game.adventure_pass_award
  6892. * @static
  6893. * @param {game.Iadventure_pass_award} message adventure_pass_award message or plain object to encode
  6894. * @param {$protobuf.Writer} [writer] Writer to encode to
  6895. * @returns {$protobuf.Writer} Writer
  6896. */
  6897. adventure_pass_award.encode = function encode(message, writer) {
  6898. if (!writer)
  6899. writer = $Writer.create();
  6900. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  6901. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  6902. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  6903. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  6904. return writer;
  6905. };
  6906. /**
  6907. * Encodes the specified adventure_pass_award message, length delimited. Does not implicitly {@link game.adventure_pass_award.verify|verify} messages.
  6908. * @function encodeDelimited
  6909. * @memberof game.adventure_pass_award
  6910. * @static
  6911. * @param {game.Iadventure_pass_award} message adventure_pass_award message or plain object to encode
  6912. * @param {$protobuf.Writer} [writer] Writer to encode to
  6913. * @returns {$protobuf.Writer} Writer
  6914. */
  6915. adventure_pass_award.encodeDelimited = function encodeDelimited(message, writer) {
  6916. return this.encode(message, writer).ldelim();
  6917. };
  6918. /**
  6919. * Decodes an adventure_pass_award message from the specified reader or buffer.
  6920. * @function decode
  6921. * @memberof game.adventure_pass_award
  6922. * @static
  6923. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6924. * @param {number} [length] Message length if known beforehand
  6925. * @returns {game.adventure_pass_award} adventure_pass_award
  6926. * @throws {Error} If the payload is not a reader or valid buffer
  6927. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6928. */
  6929. adventure_pass_award.decode = function decode(reader, length) {
  6930. if (!(reader instanceof $Reader))
  6931. reader = $Reader.create(reader);
  6932. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_pass_award();
  6933. while (reader.pos < end) {
  6934. let tag = reader.uint32();
  6935. switch (tag >>> 3) {
  6936. case 1:
  6937. message.id = reader.int64();
  6938. break;
  6939. case 2:
  6940. message.type = reader.int64();
  6941. break;
  6942. default:
  6943. reader.skipType(tag & 7);
  6944. break;
  6945. }
  6946. }
  6947. return message;
  6948. };
  6949. /**
  6950. * Decodes an adventure_pass_award message from the specified reader or buffer, length delimited.
  6951. * @function decodeDelimited
  6952. * @memberof game.adventure_pass_award
  6953. * @static
  6954. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  6955. * @returns {game.adventure_pass_award} adventure_pass_award
  6956. * @throws {Error} If the payload is not a reader or valid buffer
  6957. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  6958. */
  6959. adventure_pass_award.decodeDelimited = function decodeDelimited(reader) {
  6960. if (!(reader instanceof $Reader))
  6961. reader = new $Reader(reader);
  6962. return this.decode(reader, reader.uint32());
  6963. };
  6964. /**
  6965. * Verifies an adventure_pass_award message.
  6966. * @function verify
  6967. * @memberof game.adventure_pass_award
  6968. * @static
  6969. * @param {Object.<string,*>} message Plain object to verify
  6970. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  6971. */
  6972. adventure_pass_award.verify = function verify(message) {
  6973. if (typeof message !== "object" || message === null)
  6974. return "object expected";
  6975. if (message.id != null && message.hasOwnProperty("id"))
  6976. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  6977. return "id: integer|Long expected";
  6978. if (message.type != null && message.hasOwnProperty("type"))
  6979. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  6980. return "type: integer|Long expected";
  6981. return null;
  6982. };
  6983. /**
  6984. * Creates an adventure_pass_award message from a plain object. Also converts values to their respective internal types.
  6985. * @function fromObject
  6986. * @memberof game.adventure_pass_award
  6987. * @static
  6988. * @param {Object.<string,*>} object Plain object
  6989. * @returns {game.adventure_pass_award} adventure_pass_award
  6990. */
  6991. adventure_pass_award.fromObject = function fromObject(object) {
  6992. if (object instanceof $root.game.adventure_pass_award)
  6993. return object;
  6994. let message = new $root.game.adventure_pass_award();
  6995. if (object.id != null)
  6996. if ($util.Long)
  6997. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  6998. else if (typeof object.id === "string")
  6999. message.id = parseInt(object.id, 10);
  7000. else if (typeof object.id === "number")
  7001. message.id = object.id;
  7002. else if (typeof object.id === "object")
  7003. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  7004. if (object.type != null)
  7005. if ($util.Long)
  7006. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  7007. else if (typeof object.type === "string")
  7008. message.type = parseInt(object.type, 10);
  7009. else if (typeof object.type === "number")
  7010. message.type = object.type;
  7011. else if (typeof object.type === "object")
  7012. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  7013. return message;
  7014. };
  7015. /**
  7016. * Creates a plain object from an adventure_pass_award message. Also converts values to other types if specified.
  7017. * @function toObject
  7018. * @memberof game.adventure_pass_award
  7019. * @static
  7020. * @param {game.adventure_pass_award} message adventure_pass_award
  7021. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7022. * @returns {Object.<string,*>} Plain object
  7023. */
  7024. adventure_pass_award.toObject = function toObject(message, options) {
  7025. if (!options)
  7026. options = {};
  7027. let object = {};
  7028. if (options.defaults) {
  7029. if ($util.Long) {
  7030. let long = new $util.Long(0, 0, false);
  7031. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7032. } else
  7033. object.id = options.longs === String ? "0" : 0;
  7034. if ($util.Long) {
  7035. let long = new $util.Long(0, 0, false);
  7036. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7037. } else
  7038. object.type = options.longs === String ? "0" : 0;
  7039. }
  7040. if (message.id != null && message.hasOwnProperty("id"))
  7041. if (typeof message.id === "number")
  7042. object.id = options.longs === String ? String(message.id) : message.id;
  7043. else
  7044. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  7045. if (message.type != null && message.hasOwnProperty("type"))
  7046. if (typeof message.type === "number")
  7047. object.type = options.longs === String ? String(message.type) : message.type;
  7048. else
  7049. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  7050. return object;
  7051. };
  7052. /**
  7053. * Converts this adventure_pass_award to JSON.
  7054. * @function toJSON
  7055. * @memberof game.adventure_pass_award
  7056. * @instance
  7057. * @returns {Object.<string,*>} JSON object
  7058. */
  7059. adventure_pass_award.prototype.toJSON = function toJSON() {
  7060. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7061. };
  7062. return adventure_pass_award;
  7063. })();
  7064. game.adventure_pass_award_rsp = (function() {
  7065. /**
  7066. * Properties of an adventure_pass_award_rsp.
  7067. * @memberof game
  7068. * @interface Iadventure_pass_award_rsp
  7069. * @property {number|Long|null} [errno] adventure_pass_award_rsp errno
  7070. * @property {number|Long|null} [id] adventure_pass_award_rsp id
  7071. * @property {number|Long|null} [type] adventure_pass_award_rsp type
  7072. */
  7073. /**
  7074. * Constructs a new adventure_pass_award_rsp.
  7075. * @memberof game
  7076. * @classdesc Represents an adventure_pass_award_rsp.
  7077. * @implements Iadventure_pass_award_rsp
  7078. * @constructor
  7079. * @param {game.Iadventure_pass_award_rsp=} [properties] Properties to set
  7080. */
  7081. function adventure_pass_award_rsp(properties) {
  7082. if (properties)
  7083. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7084. if (properties[keys[i]] != null)
  7085. this[keys[i]] = properties[keys[i]];
  7086. }
  7087. /**
  7088. * adventure_pass_award_rsp errno.
  7089. * @member {number|Long} errno
  7090. * @memberof game.adventure_pass_award_rsp
  7091. * @instance
  7092. */
  7093. adventure_pass_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7094. /**
  7095. * adventure_pass_award_rsp id.
  7096. * @member {number|Long} id
  7097. * @memberof game.adventure_pass_award_rsp
  7098. * @instance
  7099. */
  7100. adventure_pass_award_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7101. /**
  7102. * adventure_pass_award_rsp type.
  7103. * @member {number|Long} type
  7104. * @memberof game.adventure_pass_award_rsp
  7105. * @instance
  7106. */
  7107. adventure_pass_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7108. /**
  7109. * Creates a new adventure_pass_award_rsp instance using the specified properties.
  7110. * @function create
  7111. * @memberof game.adventure_pass_award_rsp
  7112. * @static
  7113. * @param {game.Iadventure_pass_award_rsp=} [properties] Properties to set
  7114. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp instance
  7115. */
  7116. adventure_pass_award_rsp.create = function create(properties) {
  7117. return new adventure_pass_award_rsp(properties);
  7118. };
  7119. /**
  7120. * Encodes the specified adventure_pass_award_rsp message. Does not implicitly {@link game.adventure_pass_award_rsp.verify|verify} messages.
  7121. * @function encode
  7122. * @memberof game.adventure_pass_award_rsp
  7123. * @static
  7124. * @param {game.Iadventure_pass_award_rsp} message adventure_pass_award_rsp message or plain object to encode
  7125. * @param {$protobuf.Writer} [writer] Writer to encode to
  7126. * @returns {$protobuf.Writer} Writer
  7127. */
  7128. adventure_pass_award_rsp.encode = function encode(message, writer) {
  7129. if (!writer)
  7130. writer = $Writer.create();
  7131. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  7132. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  7133. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  7134. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  7135. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  7136. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.type);
  7137. return writer;
  7138. };
  7139. /**
  7140. * Encodes the specified adventure_pass_award_rsp message, length delimited. Does not implicitly {@link game.adventure_pass_award_rsp.verify|verify} messages.
  7141. * @function encodeDelimited
  7142. * @memberof game.adventure_pass_award_rsp
  7143. * @static
  7144. * @param {game.Iadventure_pass_award_rsp} message adventure_pass_award_rsp message or plain object to encode
  7145. * @param {$protobuf.Writer} [writer] Writer to encode to
  7146. * @returns {$protobuf.Writer} Writer
  7147. */
  7148. adventure_pass_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  7149. return this.encode(message, writer).ldelim();
  7150. };
  7151. /**
  7152. * Decodes an adventure_pass_award_rsp message from the specified reader or buffer.
  7153. * @function decode
  7154. * @memberof game.adventure_pass_award_rsp
  7155. * @static
  7156. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7157. * @param {number} [length] Message length if known beforehand
  7158. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
  7159. * @throws {Error} If the payload is not a reader or valid buffer
  7160. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7161. */
  7162. adventure_pass_award_rsp.decode = function decode(reader, length) {
  7163. if (!(reader instanceof $Reader))
  7164. reader = $Reader.create(reader);
  7165. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_pass_award_rsp();
  7166. while (reader.pos < end) {
  7167. let tag = reader.uint32();
  7168. switch (tag >>> 3) {
  7169. case 1:
  7170. message.errno = reader.int64();
  7171. break;
  7172. case 2:
  7173. message.id = reader.int64();
  7174. break;
  7175. case 3:
  7176. message.type = reader.int64();
  7177. break;
  7178. default:
  7179. reader.skipType(tag & 7);
  7180. break;
  7181. }
  7182. }
  7183. return message;
  7184. };
  7185. /**
  7186. * Decodes an adventure_pass_award_rsp message from the specified reader or buffer, length delimited.
  7187. * @function decodeDelimited
  7188. * @memberof game.adventure_pass_award_rsp
  7189. * @static
  7190. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7191. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
  7192. * @throws {Error} If the payload is not a reader or valid buffer
  7193. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7194. */
  7195. adventure_pass_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  7196. if (!(reader instanceof $Reader))
  7197. reader = new $Reader(reader);
  7198. return this.decode(reader, reader.uint32());
  7199. };
  7200. /**
  7201. * Verifies an adventure_pass_award_rsp message.
  7202. * @function verify
  7203. * @memberof game.adventure_pass_award_rsp
  7204. * @static
  7205. * @param {Object.<string,*>} message Plain object to verify
  7206. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7207. */
  7208. adventure_pass_award_rsp.verify = function verify(message) {
  7209. if (typeof message !== "object" || message === null)
  7210. return "object expected";
  7211. if (message.errno != null && message.hasOwnProperty("errno"))
  7212. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  7213. return "errno: integer|Long expected";
  7214. if (message.id != null && message.hasOwnProperty("id"))
  7215. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  7216. return "id: integer|Long expected";
  7217. if (message.type != null && message.hasOwnProperty("type"))
  7218. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  7219. return "type: integer|Long expected";
  7220. return null;
  7221. };
  7222. /**
  7223. * Creates an adventure_pass_award_rsp message from a plain object. Also converts values to their respective internal types.
  7224. * @function fromObject
  7225. * @memberof game.adventure_pass_award_rsp
  7226. * @static
  7227. * @param {Object.<string,*>} object Plain object
  7228. * @returns {game.adventure_pass_award_rsp} adventure_pass_award_rsp
  7229. */
  7230. adventure_pass_award_rsp.fromObject = function fromObject(object) {
  7231. if (object instanceof $root.game.adventure_pass_award_rsp)
  7232. return object;
  7233. let message = new $root.game.adventure_pass_award_rsp();
  7234. if (object.errno != null)
  7235. if ($util.Long)
  7236. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  7237. else if (typeof object.errno === "string")
  7238. message.errno = parseInt(object.errno, 10);
  7239. else if (typeof object.errno === "number")
  7240. message.errno = object.errno;
  7241. else if (typeof object.errno === "object")
  7242. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  7243. if (object.id != null)
  7244. if ($util.Long)
  7245. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  7246. else if (typeof object.id === "string")
  7247. message.id = parseInt(object.id, 10);
  7248. else if (typeof object.id === "number")
  7249. message.id = object.id;
  7250. else if (typeof object.id === "object")
  7251. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  7252. if (object.type != null)
  7253. if ($util.Long)
  7254. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  7255. else if (typeof object.type === "string")
  7256. message.type = parseInt(object.type, 10);
  7257. else if (typeof object.type === "number")
  7258. message.type = object.type;
  7259. else if (typeof object.type === "object")
  7260. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  7261. return message;
  7262. };
  7263. /**
  7264. * Creates a plain object from an adventure_pass_award_rsp message. Also converts values to other types if specified.
  7265. * @function toObject
  7266. * @memberof game.adventure_pass_award_rsp
  7267. * @static
  7268. * @param {game.adventure_pass_award_rsp} message adventure_pass_award_rsp
  7269. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7270. * @returns {Object.<string,*>} Plain object
  7271. */
  7272. adventure_pass_award_rsp.toObject = function toObject(message, options) {
  7273. if (!options)
  7274. options = {};
  7275. let object = {};
  7276. if (options.defaults) {
  7277. if ($util.Long) {
  7278. let long = new $util.Long(0, 0, false);
  7279. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7280. } else
  7281. object.errno = options.longs === String ? "0" : 0;
  7282. if ($util.Long) {
  7283. let long = new $util.Long(0, 0, false);
  7284. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7285. } else
  7286. object.id = options.longs === String ? "0" : 0;
  7287. if ($util.Long) {
  7288. let long = new $util.Long(0, 0, false);
  7289. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7290. } else
  7291. object.type = options.longs === String ? "0" : 0;
  7292. }
  7293. if (message.errno != null && message.hasOwnProperty("errno"))
  7294. if (typeof message.errno === "number")
  7295. object.errno = options.longs === String ? String(message.errno) : message.errno;
  7296. else
  7297. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  7298. if (message.id != null && message.hasOwnProperty("id"))
  7299. if (typeof message.id === "number")
  7300. object.id = options.longs === String ? String(message.id) : message.id;
  7301. else
  7302. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  7303. if (message.type != null && message.hasOwnProperty("type"))
  7304. if (typeof message.type === "number")
  7305. object.type = options.longs === String ? String(message.type) : message.type;
  7306. else
  7307. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  7308. return object;
  7309. };
  7310. /**
  7311. * Converts this adventure_pass_award_rsp to JSON.
  7312. * @function toJSON
  7313. * @memberof game.adventure_pass_award_rsp
  7314. * @instance
  7315. * @returns {Object.<string,*>} JSON object
  7316. */
  7317. adventure_pass_award_rsp.prototype.toJSON = function toJSON() {
  7318. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7319. };
  7320. return adventure_pass_award_rsp;
  7321. })();
  7322. game.adventure_ad_award = (function() {
  7323. /**
  7324. * Properties of an adventure_ad_award.
  7325. * @memberof game
  7326. * @interface Iadventure_ad_award
  7327. */
  7328. /**
  7329. * Constructs a new adventure_ad_award.
  7330. * @memberof game
  7331. * @classdesc Represents an adventure_ad_award.
  7332. * @implements Iadventure_ad_award
  7333. * @constructor
  7334. * @param {game.Iadventure_ad_award=} [properties] Properties to set
  7335. */
  7336. function adventure_ad_award(properties) {
  7337. if (properties)
  7338. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7339. if (properties[keys[i]] != null)
  7340. this[keys[i]] = properties[keys[i]];
  7341. }
  7342. /**
  7343. * Creates a new adventure_ad_award instance using the specified properties.
  7344. * @function create
  7345. * @memberof game.adventure_ad_award
  7346. * @static
  7347. * @param {game.Iadventure_ad_award=} [properties] Properties to set
  7348. * @returns {game.adventure_ad_award} adventure_ad_award instance
  7349. */
  7350. adventure_ad_award.create = function create(properties) {
  7351. return new adventure_ad_award(properties);
  7352. };
  7353. /**
  7354. * Encodes the specified adventure_ad_award message. Does not implicitly {@link game.adventure_ad_award.verify|verify} messages.
  7355. * @function encode
  7356. * @memberof game.adventure_ad_award
  7357. * @static
  7358. * @param {game.Iadventure_ad_award} message adventure_ad_award message or plain object to encode
  7359. * @param {$protobuf.Writer} [writer] Writer to encode to
  7360. * @returns {$protobuf.Writer} Writer
  7361. */
  7362. adventure_ad_award.encode = function encode(message, writer) {
  7363. if (!writer)
  7364. writer = $Writer.create();
  7365. return writer;
  7366. };
  7367. /**
  7368. * Encodes the specified adventure_ad_award message, length delimited. Does not implicitly {@link game.adventure_ad_award.verify|verify} messages.
  7369. * @function encodeDelimited
  7370. * @memberof game.adventure_ad_award
  7371. * @static
  7372. * @param {game.Iadventure_ad_award} message adventure_ad_award message or plain object to encode
  7373. * @param {$protobuf.Writer} [writer] Writer to encode to
  7374. * @returns {$protobuf.Writer} Writer
  7375. */
  7376. adventure_ad_award.encodeDelimited = function encodeDelimited(message, writer) {
  7377. return this.encode(message, writer).ldelim();
  7378. };
  7379. /**
  7380. * Decodes an adventure_ad_award message from the specified reader or buffer.
  7381. * @function decode
  7382. * @memberof game.adventure_ad_award
  7383. * @static
  7384. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7385. * @param {number} [length] Message length if known beforehand
  7386. * @returns {game.adventure_ad_award} adventure_ad_award
  7387. * @throws {Error} If the payload is not a reader or valid buffer
  7388. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7389. */
  7390. adventure_ad_award.decode = function decode(reader, length) {
  7391. if (!(reader instanceof $Reader))
  7392. reader = $Reader.create(reader);
  7393. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_ad_award();
  7394. while (reader.pos < end) {
  7395. let tag = reader.uint32();
  7396. switch (tag >>> 3) {
  7397. default:
  7398. reader.skipType(tag & 7);
  7399. break;
  7400. }
  7401. }
  7402. return message;
  7403. };
  7404. /**
  7405. * Decodes an adventure_ad_award message from the specified reader or buffer, length delimited.
  7406. * @function decodeDelimited
  7407. * @memberof game.adventure_ad_award
  7408. * @static
  7409. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7410. * @returns {game.adventure_ad_award} adventure_ad_award
  7411. * @throws {Error} If the payload is not a reader or valid buffer
  7412. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7413. */
  7414. adventure_ad_award.decodeDelimited = function decodeDelimited(reader) {
  7415. if (!(reader instanceof $Reader))
  7416. reader = new $Reader(reader);
  7417. return this.decode(reader, reader.uint32());
  7418. };
  7419. /**
  7420. * Verifies an adventure_ad_award message.
  7421. * @function verify
  7422. * @memberof game.adventure_ad_award
  7423. * @static
  7424. * @param {Object.<string,*>} message Plain object to verify
  7425. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7426. */
  7427. adventure_ad_award.verify = function verify(message) {
  7428. if (typeof message !== "object" || message === null)
  7429. return "object expected";
  7430. return null;
  7431. };
  7432. /**
  7433. * Creates an adventure_ad_award message from a plain object. Also converts values to their respective internal types.
  7434. * @function fromObject
  7435. * @memberof game.adventure_ad_award
  7436. * @static
  7437. * @param {Object.<string,*>} object Plain object
  7438. * @returns {game.adventure_ad_award} adventure_ad_award
  7439. */
  7440. adventure_ad_award.fromObject = function fromObject(object) {
  7441. if (object instanceof $root.game.adventure_ad_award)
  7442. return object;
  7443. return new $root.game.adventure_ad_award();
  7444. };
  7445. /**
  7446. * Creates a plain object from an adventure_ad_award message. Also converts values to other types if specified.
  7447. * @function toObject
  7448. * @memberof game.adventure_ad_award
  7449. * @static
  7450. * @param {game.adventure_ad_award} message adventure_ad_award
  7451. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7452. * @returns {Object.<string,*>} Plain object
  7453. */
  7454. adventure_ad_award.toObject = function toObject() {
  7455. return {};
  7456. };
  7457. /**
  7458. * Converts this adventure_ad_award to JSON.
  7459. * @function toJSON
  7460. * @memberof game.adventure_ad_award
  7461. * @instance
  7462. * @returns {Object.<string,*>} JSON object
  7463. */
  7464. adventure_ad_award.prototype.toJSON = function toJSON() {
  7465. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7466. };
  7467. return adventure_ad_award;
  7468. })();
  7469. game.adventure_ad_award_rsp = (function() {
  7470. /**
  7471. * Properties of an adventure_ad_award_rsp.
  7472. * @memberof game
  7473. * @interface Iadventure_ad_award_rsp
  7474. * @property {number|Long|null} [errno] adventure_ad_award_rsp errno
  7475. */
  7476. /**
  7477. * Constructs a new adventure_ad_award_rsp.
  7478. * @memberof game
  7479. * @classdesc Represents an adventure_ad_award_rsp.
  7480. * @implements Iadventure_ad_award_rsp
  7481. * @constructor
  7482. * @param {game.Iadventure_ad_award_rsp=} [properties] Properties to set
  7483. */
  7484. function adventure_ad_award_rsp(properties) {
  7485. if (properties)
  7486. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7487. if (properties[keys[i]] != null)
  7488. this[keys[i]] = properties[keys[i]];
  7489. }
  7490. /**
  7491. * adventure_ad_award_rsp errno.
  7492. * @member {number|Long} errno
  7493. * @memberof game.adventure_ad_award_rsp
  7494. * @instance
  7495. */
  7496. adventure_ad_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7497. /**
  7498. * Creates a new adventure_ad_award_rsp instance using the specified properties.
  7499. * @function create
  7500. * @memberof game.adventure_ad_award_rsp
  7501. * @static
  7502. * @param {game.Iadventure_ad_award_rsp=} [properties] Properties to set
  7503. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp instance
  7504. */
  7505. adventure_ad_award_rsp.create = function create(properties) {
  7506. return new adventure_ad_award_rsp(properties);
  7507. };
  7508. /**
  7509. * Encodes the specified adventure_ad_award_rsp message. Does not implicitly {@link game.adventure_ad_award_rsp.verify|verify} messages.
  7510. * @function encode
  7511. * @memberof game.adventure_ad_award_rsp
  7512. * @static
  7513. * @param {game.Iadventure_ad_award_rsp} message adventure_ad_award_rsp message or plain object to encode
  7514. * @param {$protobuf.Writer} [writer] Writer to encode to
  7515. * @returns {$protobuf.Writer} Writer
  7516. */
  7517. adventure_ad_award_rsp.encode = function encode(message, writer) {
  7518. if (!writer)
  7519. writer = $Writer.create();
  7520. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  7521. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  7522. return writer;
  7523. };
  7524. /**
  7525. * Encodes the specified adventure_ad_award_rsp message, length delimited. Does not implicitly {@link game.adventure_ad_award_rsp.verify|verify} messages.
  7526. * @function encodeDelimited
  7527. * @memberof game.adventure_ad_award_rsp
  7528. * @static
  7529. * @param {game.Iadventure_ad_award_rsp} message adventure_ad_award_rsp message or plain object to encode
  7530. * @param {$protobuf.Writer} [writer] Writer to encode to
  7531. * @returns {$protobuf.Writer} Writer
  7532. */
  7533. adventure_ad_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  7534. return this.encode(message, writer).ldelim();
  7535. };
  7536. /**
  7537. * Decodes an adventure_ad_award_rsp message from the specified reader or buffer.
  7538. * @function decode
  7539. * @memberof game.adventure_ad_award_rsp
  7540. * @static
  7541. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7542. * @param {number} [length] Message length if known beforehand
  7543. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
  7544. * @throws {Error} If the payload is not a reader or valid buffer
  7545. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7546. */
  7547. adventure_ad_award_rsp.decode = function decode(reader, length) {
  7548. if (!(reader instanceof $Reader))
  7549. reader = $Reader.create(reader);
  7550. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_ad_award_rsp();
  7551. while (reader.pos < end) {
  7552. let tag = reader.uint32();
  7553. switch (tag >>> 3) {
  7554. case 1:
  7555. message.errno = reader.int64();
  7556. break;
  7557. default:
  7558. reader.skipType(tag & 7);
  7559. break;
  7560. }
  7561. }
  7562. return message;
  7563. };
  7564. /**
  7565. * Decodes an adventure_ad_award_rsp message from the specified reader or buffer, length delimited.
  7566. * @function decodeDelimited
  7567. * @memberof game.adventure_ad_award_rsp
  7568. * @static
  7569. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7570. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
  7571. * @throws {Error} If the payload is not a reader or valid buffer
  7572. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7573. */
  7574. adventure_ad_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  7575. if (!(reader instanceof $Reader))
  7576. reader = new $Reader(reader);
  7577. return this.decode(reader, reader.uint32());
  7578. };
  7579. /**
  7580. * Verifies an adventure_ad_award_rsp message.
  7581. * @function verify
  7582. * @memberof game.adventure_ad_award_rsp
  7583. * @static
  7584. * @param {Object.<string,*>} message Plain object to verify
  7585. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7586. */
  7587. adventure_ad_award_rsp.verify = function verify(message) {
  7588. if (typeof message !== "object" || message === null)
  7589. return "object expected";
  7590. if (message.errno != null && message.hasOwnProperty("errno"))
  7591. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  7592. return "errno: integer|Long expected";
  7593. return null;
  7594. };
  7595. /**
  7596. * Creates an adventure_ad_award_rsp message from a plain object. Also converts values to their respective internal types.
  7597. * @function fromObject
  7598. * @memberof game.adventure_ad_award_rsp
  7599. * @static
  7600. * @param {Object.<string,*>} object Plain object
  7601. * @returns {game.adventure_ad_award_rsp} adventure_ad_award_rsp
  7602. */
  7603. adventure_ad_award_rsp.fromObject = function fromObject(object) {
  7604. if (object instanceof $root.game.adventure_ad_award_rsp)
  7605. return object;
  7606. let message = new $root.game.adventure_ad_award_rsp();
  7607. if (object.errno != null)
  7608. if ($util.Long)
  7609. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  7610. else if (typeof object.errno === "string")
  7611. message.errno = parseInt(object.errno, 10);
  7612. else if (typeof object.errno === "number")
  7613. message.errno = object.errno;
  7614. else if (typeof object.errno === "object")
  7615. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  7616. return message;
  7617. };
  7618. /**
  7619. * Creates a plain object from an adventure_ad_award_rsp message. Also converts values to other types if specified.
  7620. * @function toObject
  7621. * @memberof game.adventure_ad_award_rsp
  7622. * @static
  7623. * @param {game.adventure_ad_award_rsp} message adventure_ad_award_rsp
  7624. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7625. * @returns {Object.<string,*>} Plain object
  7626. */
  7627. adventure_ad_award_rsp.toObject = function toObject(message, options) {
  7628. if (!options)
  7629. options = {};
  7630. let object = {};
  7631. if (options.defaults)
  7632. if ($util.Long) {
  7633. let long = new $util.Long(0, 0, false);
  7634. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7635. } else
  7636. object.errno = options.longs === String ? "0" : 0;
  7637. if (message.errno != null && message.hasOwnProperty("errno"))
  7638. if (typeof message.errno === "number")
  7639. object.errno = options.longs === String ? String(message.errno) : message.errno;
  7640. else
  7641. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  7642. return object;
  7643. };
  7644. /**
  7645. * Converts this adventure_ad_award_rsp to JSON.
  7646. * @function toJSON
  7647. * @memberof game.adventure_ad_award_rsp
  7648. * @instance
  7649. * @returns {Object.<string,*>} JSON object
  7650. */
  7651. adventure_ad_award_rsp.prototype.toJSON = function toJSON() {
  7652. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7653. };
  7654. return adventure_ad_award_rsp;
  7655. })();
  7656. game.adventure_trial = (function() {
  7657. /**
  7658. * Properties of an adventure_trial.
  7659. * @memberof game
  7660. * @interface Iadventure_trial
  7661. */
  7662. /**
  7663. * Constructs a new adventure_trial.
  7664. * @memberof game
  7665. * @classdesc Represents an adventure_trial.
  7666. * @implements Iadventure_trial
  7667. * @constructor
  7668. * @param {game.Iadventure_trial=} [properties] Properties to set
  7669. */
  7670. function adventure_trial(properties) {
  7671. if (properties)
  7672. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7673. if (properties[keys[i]] != null)
  7674. this[keys[i]] = properties[keys[i]];
  7675. }
  7676. /**
  7677. * Creates a new adventure_trial instance using the specified properties.
  7678. * @function create
  7679. * @memberof game.adventure_trial
  7680. * @static
  7681. * @param {game.Iadventure_trial=} [properties] Properties to set
  7682. * @returns {game.adventure_trial} adventure_trial instance
  7683. */
  7684. adventure_trial.create = function create(properties) {
  7685. return new adventure_trial(properties);
  7686. };
  7687. /**
  7688. * Encodes the specified adventure_trial message. Does not implicitly {@link game.adventure_trial.verify|verify} messages.
  7689. * @function encode
  7690. * @memberof game.adventure_trial
  7691. * @static
  7692. * @param {game.Iadventure_trial} message adventure_trial message or plain object to encode
  7693. * @param {$protobuf.Writer} [writer] Writer to encode to
  7694. * @returns {$protobuf.Writer} Writer
  7695. */
  7696. adventure_trial.encode = function encode(message, writer) {
  7697. if (!writer)
  7698. writer = $Writer.create();
  7699. return writer;
  7700. };
  7701. /**
  7702. * Encodes the specified adventure_trial message, length delimited. Does not implicitly {@link game.adventure_trial.verify|verify} messages.
  7703. * @function encodeDelimited
  7704. * @memberof game.adventure_trial
  7705. * @static
  7706. * @param {game.Iadventure_trial} message adventure_trial message or plain object to encode
  7707. * @param {$protobuf.Writer} [writer] Writer to encode to
  7708. * @returns {$protobuf.Writer} Writer
  7709. */
  7710. adventure_trial.encodeDelimited = function encodeDelimited(message, writer) {
  7711. return this.encode(message, writer).ldelim();
  7712. };
  7713. /**
  7714. * Decodes an adventure_trial message from the specified reader or buffer.
  7715. * @function decode
  7716. * @memberof game.adventure_trial
  7717. * @static
  7718. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7719. * @param {number} [length] Message length if known beforehand
  7720. * @returns {game.adventure_trial} adventure_trial
  7721. * @throws {Error} If the payload is not a reader or valid buffer
  7722. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7723. */
  7724. adventure_trial.decode = function decode(reader, length) {
  7725. if (!(reader instanceof $Reader))
  7726. reader = $Reader.create(reader);
  7727. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_trial();
  7728. while (reader.pos < end) {
  7729. let tag = reader.uint32();
  7730. switch (tag >>> 3) {
  7731. default:
  7732. reader.skipType(tag & 7);
  7733. break;
  7734. }
  7735. }
  7736. return message;
  7737. };
  7738. /**
  7739. * Decodes an adventure_trial message from the specified reader or buffer, length delimited.
  7740. * @function decodeDelimited
  7741. * @memberof game.adventure_trial
  7742. * @static
  7743. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7744. * @returns {game.adventure_trial} adventure_trial
  7745. * @throws {Error} If the payload is not a reader or valid buffer
  7746. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7747. */
  7748. adventure_trial.decodeDelimited = function decodeDelimited(reader) {
  7749. if (!(reader instanceof $Reader))
  7750. reader = new $Reader(reader);
  7751. return this.decode(reader, reader.uint32());
  7752. };
  7753. /**
  7754. * Verifies an adventure_trial message.
  7755. * @function verify
  7756. * @memberof game.adventure_trial
  7757. * @static
  7758. * @param {Object.<string,*>} message Plain object to verify
  7759. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7760. */
  7761. adventure_trial.verify = function verify(message) {
  7762. if (typeof message !== "object" || message === null)
  7763. return "object expected";
  7764. return null;
  7765. };
  7766. /**
  7767. * Creates an adventure_trial message from a plain object. Also converts values to their respective internal types.
  7768. * @function fromObject
  7769. * @memberof game.adventure_trial
  7770. * @static
  7771. * @param {Object.<string,*>} object Plain object
  7772. * @returns {game.adventure_trial} adventure_trial
  7773. */
  7774. adventure_trial.fromObject = function fromObject(object) {
  7775. if (object instanceof $root.game.adventure_trial)
  7776. return object;
  7777. return new $root.game.adventure_trial();
  7778. };
  7779. /**
  7780. * Creates a plain object from an adventure_trial message. Also converts values to other types if specified.
  7781. * @function toObject
  7782. * @memberof game.adventure_trial
  7783. * @static
  7784. * @param {game.adventure_trial} message adventure_trial
  7785. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7786. * @returns {Object.<string,*>} Plain object
  7787. */
  7788. adventure_trial.toObject = function toObject() {
  7789. return {};
  7790. };
  7791. /**
  7792. * Converts this adventure_trial to JSON.
  7793. * @function toJSON
  7794. * @memberof game.adventure_trial
  7795. * @instance
  7796. * @returns {Object.<string,*>} JSON object
  7797. */
  7798. adventure_trial.prototype.toJSON = function toJSON() {
  7799. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7800. };
  7801. return adventure_trial;
  7802. })();
  7803. game.adventure_trial_rsp = (function() {
  7804. /**
  7805. * Properties of an adventure_trial_rsp.
  7806. * @memberof game
  7807. * @interface Iadventure_trial_rsp
  7808. * @property {number|Long|null} [errno] adventure_trial_rsp errno
  7809. */
  7810. /**
  7811. * Constructs a new adventure_trial_rsp.
  7812. * @memberof game
  7813. * @classdesc Represents an adventure_trial_rsp.
  7814. * @implements Iadventure_trial_rsp
  7815. * @constructor
  7816. * @param {game.Iadventure_trial_rsp=} [properties] Properties to set
  7817. */
  7818. function adventure_trial_rsp(properties) {
  7819. if (properties)
  7820. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  7821. if (properties[keys[i]] != null)
  7822. this[keys[i]] = properties[keys[i]];
  7823. }
  7824. /**
  7825. * adventure_trial_rsp errno.
  7826. * @member {number|Long} errno
  7827. * @memberof game.adventure_trial_rsp
  7828. * @instance
  7829. */
  7830. adventure_trial_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  7831. /**
  7832. * Creates a new adventure_trial_rsp instance using the specified properties.
  7833. * @function create
  7834. * @memberof game.adventure_trial_rsp
  7835. * @static
  7836. * @param {game.Iadventure_trial_rsp=} [properties] Properties to set
  7837. * @returns {game.adventure_trial_rsp} adventure_trial_rsp instance
  7838. */
  7839. adventure_trial_rsp.create = function create(properties) {
  7840. return new adventure_trial_rsp(properties);
  7841. };
  7842. /**
  7843. * Encodes the specified adventure_trial_rsp message. Does not implicitly {@link game.adventure_trial_rsp.verify|verify} messages.
  7844. * @function encode
  7845. * @memberof game.adventure_trial_rsp
  7846. * @static
  7847. * @param {game.Iadventure_trial_rsp} message adventure_trial_rsp message or plain object to encode
  7848. * @param {$protobuf.Writer} [writer] Writer to encode to
  7849. * @returns {$protobuf.Writer} Writer
  7850. */
  7851. adventure_trial_rsp.encode = function encode(message, writer) {
  7852. if (!writer)
  7853. writer = $Writer.create();
  7854. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  7855. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  7856. return writer;
  7857. };
  7858. /**
  7859. * Encodes the specified adventure_trial_rsp message, length delimited. Does not implicitly {@link game.adventure_trial_rsp.verify|verify} messages.
  7860. * @function encodeDelimited
  7861. * @memberof game.adventure_trial_rsp
  7862. * @static
  7863. * @param {game.Iadventure_trial_rsp} message adventure_trial_rsp message or plain object to encode
  7864. * @param {$protobuf.Writer} [writer] Writer to encode to
  7865. * @returns {$protobuf.Writer} Writer
  7866. */
  7867. adventure_trial_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  7868. return this.encode(message, writer).ldelim();
  7869. };
  7870. /**
  7871. * Decodes an adventure_trial_rsp message from the specified reader or buffer.
  7872. * @function decode
  7873. * @memberof game.adventure_trial_rsp
  7874. * @static
  7875. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7876. * @param {number} [length] Message length if known beforehand
  7877. * @returns {game.adventure_trial_rsp} adventure_trial_rsp
  7878. * @throws {Error} If the payload is not a reader or valid buffer
  7879. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7880. */
  7881. adventure_trial_rsp.decode = function decode(reader, length) {
  7882. if (!(reader instanceof $Reader))
  7883. reader = $Reader.create(reader);
  7884. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adventure_trial_rsp();
  7885. while (reader.pos < end) {
  7886. let tag = reader.uint32();
  7887. switch (tag >>> 3) {
  7888. case 1:
  7889. message.errno = reader.int64();
  7890. break;
  7891. default:
  7892. reader.skipType(tag & 7);
  7893. break;
  7894. }
  7895. }
  7896. return message;
  7897. };
  7898. /**
  7899. * Decodes an adventure_trial_rsp message from the specified reader or buffer, length delimited.
  7900. * @function decodeDelimited
  7901. * @memberof game.adventure_trial_rsp
  7902. * @static
  7903. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  7904. * @returns {game.adventure_trial_rsp} adventure_trial_rsp
  7905. * @throws {Error} If the payload is not a reader or valid buffer
  7906. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  7907. */
  7908. adventure_trial_rsp.decodeDelimited = function decodeDelimited(reader) {
  7909. if (!(reader instanceof $Reader))
  7910. reader = new $Reader(reader);
  7911. return this.decode(reader, reader.uint32());
  7912. };
  7913. /**
  7914. * Verifies an adventure_trial_rsp message.
  7915. * @function verify
  7916. * @memberof game.adventure_trial_rsp
  7917. * @static
  7918. * @param {Object.<string,*>} message Plain object to verify
  7919. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  7920. */
  7921. adventure_trial_rsp.verify = function verify(message) {
  7922. if (typeof message !== "object" || message === null)
  7923. return "object expected";
  7924. if (message.errno != null && message.hasOwnProperty("errno"))
  7925. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  7926. return "errno: integer|Long expected";
  7927. return null;
  7928. };
  7929. /**
  7930. * Creates an adventure_trial_rsp message from a plain object. Also converts values to their respective internal types.
  7931. * @function fromObject
  7932. * @memberof game.adventure_trial_rsp
  7933. * @static
  7934. * @param {Object.<string,*>} object Plain object
  7935. * @returns {game.adventure_trial_rsp} adventure_trial_rsp
  7936. */
  7937. adventure_trial_rsp.fromObject = function fromObject(object) {
  7938. if (object instanceof $root.game.adventure_trial_rsp)
  7939. return object;
  7940. let message = new $root.game.adventure_trial_rsp();
  7941. if (object.errno != null)
  7942. if ($util.Long)
  7943. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  7944. else if (typeof object.errno === "string")
  7945. message.errno = parseInt(object.errno, 10);
  7946. else if (typeof object.errno === "number")
  7947. message.errno = object.errno;
  7948. else if (typeof object.errno === "object")
  7949. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  7950. return message;
  7951. };
  7952. /**
  7953. * Creates a plain object from an adventure_trial_rsp message. Also converts values to other types if specified.
  7954. * @function toObject
  7955. * @memberof game.adventure_trial_rsp
  7956. * @static
  7957. * @param {game.adventure_trial_rsp} message adventure_trial_rsp
  7958. * @param {$protobuf.IConversionOptions} [options] Conversion options
  7959. * @returns {Object.<string,*>} Plain object
  7960. */
  7961. adventure_trial_rsp.toObject = function toObject(message, options) {
  7962. if (!options)
  7963. options = {};
  7964. let object = {};
  7965. if (options.defaults)
  7966. if ($util.Long) {
  7967. let long = new $util.Long(0, 0, false);
  7968. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  7969. } else
  7970. object.errno = options.longs === String ? "0" : 0;
  7971. if (message.errno != null && message.hasOwnProperty("errno"))
  7972. if (typeof message.errno === "number")
  7973. object.errno = options.longs === String ? String(message.errno) : message.errno;
  7974. else
  7975. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  7976. return object;
  7977. };
  7978. /**
  7979. * Converts this adventure_trial_rsp to JSON.
  7980. * @function toJSON
  7981. * @memberof game.adventure_trial_rsp
  7982. * @instance
  7983. * @returns {Object.<string,*>} JSON object
  7984. */
  7985. adventure_trial_rsp.prototype.toJSON = function toJSON() {
  7986. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  7987. };
  7988. return adventure_trial_rsp;
  7989. })();
  7990. game.get_mail = (function() {
  7991. /**
  7992. * Properties of a get_mail.
  7993. * @memberof game
  7994. * @interface Iget_mail
  7995. */
  7996. /**
  7997. * Constructs a new get_mail.
  7998. * @memberof game
  7999. * @classdesc Represents a get_mail.
  8000. * @implements Iget_mail
  8001. * @constructor
  8002. * @param {game.Iget_mail=} [properties] Properties to set
  8003. */
  8004. function get_mail(properties) {
  8005. if (properties)
  8006. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8007. if (properties[keys[i]] != null)
  8008. this[keys[i]] = properties[keys[i]];
  8009. }
  8010. /**
  8011. * Creates a new get_mail instance using the specified properties.
  8012. * @function create
  8013. * @memberof game.get_mail
  8014. * @static
  8015. * @param {game.Iget_mail=} [properties] Properties to set
  8016. * @returns {game.get_mail} get_mail instance
  8017. */
  8018. get_mail.create = function create(properties) {
  8019. return new get_mail(properties);
  8020. };
  8021. /**
  8022. * Encodes the specified get_mail message. Does not implicitly {@link game.get_mail.verify|verify} messages.
  8023. * @function encode
  8024. * @memberof game.get_mail
  8025. * @static
  8026. * @param {game.Iget_mail} message get_mail message or plain object to encode
  8027. * @param {$protobuf.Writer} [writer] Writer to encode to
  8028. * @returns {$protobuf.Writer} Writer
  8029. */
  8030. get_mail.encode = function encode(message, writer) {
  8031. if (!writer)
  8032. writer = $Writer.create();
  8033. return writer;
  8034. };
  8035. /**
  8036. * Encodes the specified get_mail message, length delimited. Does not implicitly {@link game.get_mail.verify|verify} messages.
  8037. * @function encodeDelimited
  8038. * @memberof game.get_mail
  8039. * @static
  8040. * @param {game.Iget_mail} message get_mail message or plain object to encode
  8041. * @param {$protobuf.Writer} [writer] Writer to encode to
  8042. * @returns {$protobuf.Writer} Writer
  8043. */
  8044. get_mail.encodeDelimited = function encodeDelimited(message, writer) {
  8045. return this.encode(message, writer).ldelim();
  8046. };
  8047. /**
  8048. * Decodes a get_mail message from the specified reader or buffer.
  8049. * @function decode
  8050. * @memberof game.get_mail
  8051. * @static
  8052. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8053. * @param {number} [length] Message length if known beforehand
  8054. * @returns {game.get_mail} get_mail
  8055. * @throws {Error} If the payload is not a reader or valid buffer
  8056. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8057. */
  8058. get_mail.decode = function decode(reader, length) {
  8059. if (!(reader instanceof $Reader))
  8060. reader = $Reader.create(reader);
  8061. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail();
  8062. while (reader.pos < end) {
  8063. let tag = reader.uint32();
  8064. switch (tag >>> 3) {
  8065. default:
  8066. reader.skipType(tag & 7);
  8067. break;
  8068. }
  8069. }
  8070. return message;
  8071. };
  8072. /**
  8073. * Decodes a get_mail message from the specified reader or buffer, length delimited.
  8074. * @function decodeDelimited
  8075. * @memberof game.get_mail
  8076. * @static
  8077. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8078. * @returns {game.get_mail} get_mail
  8079. * @throws {Error} If the payload is not a reader or valid buffer
  8080. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8081. */
  8082. get_mail.decodeDelimited = function decodeDelimited(reader) {
  8083. if (!(reader instanceof $Reader))
  8084. reader = new $Reader(reader);
  8085. return this.decode(reader, reader.uint32());
  8086. };
  8087. /**
  8088. * Verifies a get_mail message.
  8089. * @function verify
  8090. * @memberof game.get_mail
  8091. * @static
  8092. * @param {Object.<string,*>} message Plain object to verify
  8093. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8094. */
  8095. get_mail.verify = function verify(message) {
  8096. if (typeof message !== "object" || message === null)
  8097. return "object expected";
  8098. return null;
  8099. };
  8100. /**
  8101. * Creates a get_mail message from a plain object. Also converts values to their respective internal types.
  8102. * @function fromObject
  8103. * @memberof game.get_mail
  8104. * @static
  8105. * @param {Object.<string,*>} object Plain object
  8106. * @returns {game.get_mail} get_mail
  8107. */
  8108. get_mail.fromObject = function fromObject(object) {
  8109. if (object instanceof $root.game.get_mail)
  8110. return object;
  8111. return new $root.game.get_mail();
  8112. };
  8113. /**
  8114. * Creates a plain object from a get_mail message. Also converts values to other types if specified.
  8115. * @function toObject
  8116. * @memberof game.get_mail
  8117. * @static
  8118. * @param {game.get_mail} message get_mail
  8119. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8120. * @returns {Object.<string,*>} Plain object
  8121. */
  8122. get_mail.toObject = function toObject() {
  8123. return {};
  8124. };
  8125. /**
  8126. * Converts this get_mail to JSON.
  8127. * @function toJSON
  8128. * @memberof game.get_mail
  8129. * @instance
  8130. * @returns {Object.<string,*>} JSON object
  8131. */
  8132. get_mail.prototype.toJSON = function toJSON() {
  8133. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8134. };
  8135. return get_mail;
  8136. })();
  8137. game.get_mail_rsp = (function() {
  8138. /**
  8139. * Properties of a get_mail_rsp.
  8140. * @memberof game
  8141. * @interface Iget_mail_rsp
  8142. * @property {number|Long|null} [errno] get_mail_rsp errno
  8143. * @property {Array.<game.Imail>|null} [list] get_mail_rsp list
  8144. */
  8145. /**
  8146. * Constructs a new get_mail_rsp.
  8147. * @memberof game
  8148. * @classdesc Represents a get_mail_rsp.
  8149. * @implements Iget_mail_rsp
  8150. * @constructor
  8151. * @param {game.Iget_mail_rsp=} [properties] Properties to set
  8152. */
  8153. function get_mail_rsp(properties) {
  8154. this.list = [];
  8155. if (properties)
  8156. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8157. if (properties[keys[i]] != null)
  8158. this[keys[i]] = properties[keys[i]];
  8159. }
  8160. /**
  8161. * get_mail_rsp errno.
  8162. * @member {number|Long} errno
  8163. * @memberof game.get_mail_rsp
  8164. * @instance
  8165. */
  8166. get_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8167. /**
  8168. * get_mail_rsp list.
  8169. * @member {Array.<game.Imail>} list
  8170. * @memberof game.get_mail_rsp
  8171. * @instance
  8172. */
  8173. get_mail_rsp.prototype.list = $util.emptyArray;
  8174. /**
  8175. * Creates a new get_mail_rsp instance using the specified properties.
  8176. * @function create
  8177. * @memberof game.get_mail_rsp
  8178. * @static
  8179. * @param {game.Iget_mail_rsp=} [properties] Properties to set
  8180. * @returns {game.get_mail_rsp} get_mail_rsp instance
  8181. */
  8182. get_mail_rsp.create = function create(properties) {
  8183. return new get_mail_rsp(properties);
  8184. };
  8185. /**
  8186. * Encodes the specified get_mail_rsp message. Does not implicitly {@link game.get_mail_rsp.verify|verify} messages.
  8187. * @function encode
  8188. * @memberof game.get_mail_rsp
  8189. * @static
  8190. * @param {game.Iget_mail_rsp} message get_mail_rsp message or plain object to encode
  8191. * @param {$protobuf.Writer} [writer] Writer to encode to
  8192. * @returns {$protobuf.Writer} Writer
  8193. */
  8194. get_mail_rsp.encode = function encode(message, writer) {
  8195. if (!writer)
  8196. writer = $Writer.create();
  8197. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  8198. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  8199. if (message.list != null && message.list.length)
  8200. for (let i = 0; i < message.list.length; ++i)
  8201. $root.game.mail.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  8202. return writer;
  8203. };
  8204. /**
  8205. * Encodes the specified get_mail_rsp message, length delimited. Does not implicitly {@link game.get_mail_rsp.verify|verify} messages.
  8206. * @function encodeDelimited
  8207. * @memberof game.get_mail_rsp
  8208. * @static
  8209. * @param {game.Iget_mail_rsp} message get_mail_rsp message or plain object to encode
  8210. * @param {$protobuf.Writer} [writer] Writer to encode to
  8211. * @returns {$protobuf.Writer} Writer
  8212. */
  8213. get_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  8214. return this.encode(message, writer).ldelim();
  8215. };
  8216. /**
  8217. * Decodes a get_mail_rsp message from the specified reader or buffer.
  8218. * @function decode
  8219. * @memberof game.get_mail_rsp
  8220. * @static
  8221. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8222. * @param {number} [length] Message length if known beforehand
  8223. * @returns {game.get_mail_rsp} get_mail_rsp
  8224. * @throws {Error} If the payload is not a reader or valid buffer
  8225. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8226. */
  8227. get_mail_rsp.decode = function decode(reader, length) {
  8228. if (!(reader instanceof $Reader))
  8229. reader = $Reader.create(reader);
  8230. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_rsp();
  8231. while (reader.pos < end) {
  8232. let tag = reader.uint32();
  8233. switch (tag >>> 3) {
  8234. case 1:
  8235. message.errno = reader.int64();
  8236. break;
  8237. case 2:
  8238. if (!(message.list && message.list.length))
  8239. message.list = [];
  8240. message.list.push($root.game.mail.decode(reader, reader.uint32()));
  8241. break;
  8242. default:
  8243. reader.skipType(tag & 7);
  8244. break;
  8245. }
  8246. }
  8247. return message;
  8248. };
  8249. /**
  8250. * Decodes a get_mail_rsp message from the specified reader or buffer, length delimited.
  8251. * @function decodeDelimited
  8252. * @memberof game.get_mail_rsp
  8253. * @static
  8254. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8255. * @returns {game.get_mail_rsp} get_mail_rsp
  8256. * @throws {Error} If the payload is not a reader or valid buffer
  8257. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8258. */
  8259. get_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
  8260. if (!(reader instanceof $Reader))
  8261. reader = new $Reader(reader);
  8262. return this.decode(reader, reader.uint32());
  8263. };
  8264. /**
  8265. * Verifies a get_mail_rsp message.
  8266. * @function verify
  8267. * @memberof game.get_mail_rsp
  8268. * @static
  8269. * @param {Object.<string,*>} message Plain object to verify
  8270. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8271. */
  8272. get_mail_rsp.verify = function verify(message) {
  8273. if (typeof message !== "object" || message === null)
  8274. return "object expected";
  8275. if (message.errno != null && message.hasOwnProperty("errno"))
  8276. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  8277. return "errno: integer|Long expected";
  8278. if (message.list != null && message.hasOwnProperty("list")) {
  8279. if (!Array.isArray(message.list))
  8280. return "list: array expected";
  8281. for (let i = 0; i < message.list.length; ++i) {
  8282. let error = $root.game.mail.verify(message.list[i]);
  8283. if (error)
  8284. return "list." + error;
  8285. }
  8286. }
  8287. return null;
  8288. };
  8289. /**
  8290. * Creates a get_mail_rsp message from a plain object. Also converts values to their respective internal types.
  8291. * @function fromObject
  8292. * @memberof game.get_mail_rsp
  8293. * @static
  8294. * @param {Object.<string,*>} object Plain object
  8295. * @returns {game.get_mail_rsp} get_mail_rsp
  8296. */
  8297. get_mail_rsp.fromObject = function fromObject(object) {
  8298. if (object instanceof $root.game.get_mail_rsp)
  8299. return object;
  8300. let message = new $root.game.get_mail_rsp();
  8301. if (object.errno != null)
  8302. if ($util.Long)
  8303. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  8304. else if (typeof object.errno === "string")
  8305. message.errno = parseInt(object.errno, 10);
  8306. else if (typeof object.errno === "number")
  8307. message.errno = object.errno;
  8308. else if (typeof object.errno === "object")
  8309. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  8310. if (object.list) {
  8311. if (!Array.isArray(object.list))
  8312. throw TypeError(".game.get_mail_rsp.list: array expected");
  8313. message.list = [];
  8314. for (let i = 0; i < object.list.length; ++i) {
  8315. if (typeof object.list[i] !== "object")
  8316. throw TypeError(".game.get_mail_rsp.list: object expected");
  8317. message.list[i] = $root.game.mail.fromObject(object.list[i]);
  8318. }
  8319. }
  8320. return message;
  8321. };
  8322. /**
  8323. * Creates a plain object from a get_mail_rsp message. Also converts values to other types if specified.
  8324. * @function toObject
  8325. * @memberof game.get_mail_rsp
  8326. * @static
  8327. * @param {game.get_mail_rsp} message get_mail_rsp
  8328. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8329. * @returns {Object.<string,*>} Plain object
  8330. */
  8331. get_mail_rsp.toObject = function toObject(message, options) {
  8332. if (!options)
  8333. options = {};
  8334. let object = {};
  8335. if (options.arrays || options.defaults)
  8336. object.list = [];
  8337. if (options.defaults)
  8338. if ($util.Long) {
  8339. let long = new $util.Long(0, 0, false);
  8340. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8341. } else
  8342. object.errno = options.longs === String ? "0" : 0;
  8343. if (message.errno != null && message.hasOwnProperty("errno"))
  8344. if (typeof message.errno === "number")
  8345. object.errno = options.longs === String ? String(message.errno) : message.errno;
  8346. else
  8347. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  8348. if (message.list && message.list.length) {
  8349. object.list = [];
  8350. for (let j = 0; j < message.list.length; ++j)
  8351. object.list[j] = $root.game.mail.toObject(message.list[j], options);
  8352. }
  8353. return object;
  8354. };
  8355. /**
  8356. * Converts this get_mail_rsp to JSON.
  8357. * @function toJSON
  8358. * @memberof game.get_mail_rsp
  8359. * @instance
  8360. * @returns {Object.<string,*>} JSON object
  8361. */
  8362. get_mail_rsp.prototype.toJSON = function toJSON() {
  8363. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8364. };
  8365. return get_mail_rsp;
  8366. })();
  8367. game.get_mail_goods = (function() {
  8368. /**
  8369. * Properties of a get_mail_goods.
  8370. * @memberof game
  8371. * @interface Iget_mail_goods
  8372. * @property {Array.<string>|null} [list] get_mail_goods list
  8373. * @property {boolean|null} [bonekey] get_mail_goods bonekey
  8374. */
  8375. /**
  8376. * Constructs a new get_mail_goods.
  8377. * @memberof game
  8378. * @classdesc Represents a get_mail_goods.
  8379. * @implements Iget_mail_goods
  8380. * @constructor
  8381. * @param {game.Iget_mail_goods=} [properties] Properties to set
  8382. */
  8383. function get_mail_goods(properties) {
  8384. this.list = [];
  8385. if (properties)
  8386. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8387. if (properties[keys[i]] != null)
  8388. this[keys[i]] = properties[keys[i]];
  8389. }
  8390. /**
  8391. * get_mail_goods list.
  8392. * @member {Array.<string>} list
  8393. * @memberof game.get_mail_goods
  8394. * @instance
  8395. */
  8396. get_mail_goods.prototype.list = $util.emptyArray;
  8397. /**
  8398. * get_mail_goods bonekey.
  8399. * @member {boolean} bonekey
  8400. * @memberof game.get_mail_goods
  8401. * @instance
  8402. */
  8403. get_mail_goods.prototype.bonekey = false;
  8404. /**
  8405. * Creates a new get_mail_goods instance using the specified properties.
  8406. * @function create
  8407. * @memberof game.get_mail_goods
  8408. * @static
  8409. * @param {game.Iget_mail_goods=} [properties] Properties to set
  8410. * @returns {game.get_mail_goods} get_mail_goods instance
  8411. */
  8412. get_mail_goods.create = function create(properties) {
  8413. return new get_mail_goods(properties);
  8414. };
  8415. /**
  8416. * Encodes the specified get_mail_goods message. Does not implicitly {@link game.get_mail_goods.verify|verify} messages.
  8417. * @function encode
  8418. * @memberof game.get_mail_goods
  8419. * @static
  8420. * @param {game.Iget_mail_goods} message get_mail_goods message or plain object to encode
  8421. * @param {$protobuf.Writer} [writer] Writer to encode to
  8422. * @returns {$protobuf.Writer} Writer
  8423. */
  8424. get_mail_goods.encode = function encode(message, writer) {
  8425. if (!writer)
  8426. writer = $Writer.create();
  8427. if (message.list != null && message.list.length)
  8428. for (let i = 0; i < message.list.length; ++i)
  8429. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  8430. if (message.bonekey != null && Object.hasOwnProperty.call(message, "bonekey"))
  8431. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.bonekey);
  8432. return writer;
  8433. };
  8434. /**
  8435. * Encodes the specified get_mail_goods message, length delimited. Does not implicitly {@link game.get_mail_goods.verify|verify} messages.
  8436. * @function encodeDelimited
  8437. * @memberof game.get_mail_goods
  8438. * @static
  8439. * @param {game.Iget_mail_goods} message get_mail_goods message or plain object to encode
  8440. * @param {$protobuf.Writer} [writer] Writer to encode to
  8441. * @returns {$protobuf.Writer} Writer
  8442. */
  8443. get_mail_goods.encodeDelimited = function encodeDelimited(message, writer) {
  8444. return this.encode(message, writer).ldelim();
  8445. };
  8446. /**
  8447. * Decodes a get_mail_goods message from the specified reader or buffer.
  8448. * @function decode
  8449. * @memberof game.get_mail_goods
  8450. * @static
  8451. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8452. * @param {number} [length] Message length if known beforehand
  8453. * @returns {game.get_mail_goods} get_mail_goods
  8454. * @throws {Error} If the payload is not a reader or valid buffer
  8455. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8456. */
  8457. get_mail_goods.decode = function decode(reader, length) {
  8458. if (!(reader instanceof $Reader))
  8459. reader = $Reader.create(reader);
  8460. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_goods();
  8461. while (reader.pos < end) {
  8462. let tag = reader.uint32();
  8463. switch (tag >>> 3) {
  8464. case 1:
  8465. if (!(message.list && message.list.length))
  8466. message.list = [];
  8467. message.list.push(reader.string());
  8468. break;
  8469. case 2:
  8470. message.bonekey = reader.bool();
  8471. break;
  8472. default:
  8473. reader.skipType(tag & 7);
  8474. break;
  8475. }
  8476. }
  8477. return message;
  8478. };
  8479. /**
  8480. * Decodes a get_mail_goods message from the specified reader or buffer, length delimited.
  8481. * @function decodeDelimited
  8482. * @memberof game.get_mail_goods
  8483. * @static
  8484. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8485. * @returns {game.get_mail_goods} get_mail_goods
  8486. * @throws {Error} If the payload is not a reader or valid buffer
  8487. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8488. */
  8489. get_mail_goods.decodeDelimited = function decodeDelimited(reader) {
  8490. if (!(reader instanceof $Reader))
  8491. reader = new $Reader(reader);
  8492. return this.decode(reader, reader.uint32());
  8493. };
  8494. /**
  8495. * Verifies a get_mail_goods message.
  8496. * @function verify
  8497. * @memberof game.get_mail_goods
  8498. * @static
  8499. * @param {Object.<string,*>} message Plain object to verify
  8500. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8501. */
  8502. get_mail_goods.verify = function verify(message) {
  8503. if (typeof message !== "object" || message === null)
  8504. return "object expected";
  8505. if (message.list != null && message.hasOwnProperty("list")) {
  8506. if (!Array.isArray(message.list))
  8507. return "list: array expected";
  8508. for (let i = 0; i < message.list.length; ++i)
  8509. if (!$util.isString(message.list[i]))
  8510. return "list: string[] expected";
  8511. }
  8512. if (message.bonekey != null && message.hasOwnProperty("bonekey"))
  8513. if (typeof message.bonekey !== "boolean")
  8514. return "bonekey: boolean expected";
  8515. return null;
  8516. };
  8517. /**
  8518. * Creates a get_mail_goods message from a plain object. Also converts values to their respective internal types.
  8519. * @function fromObject
  8520. * @memberof game.get_mail_goods
  8521. * @static
  8522. * @param {Object.<string,*>} object Plain object
  8523. * @returns {game.get_mail_goods} get_mail_goods
  8524. */
  8525. get_mail_goods.fromObject = function fromObject(object) {
  8526. if (object instanceof $root.game.get_mail_goods)
  8527. return object;
  8528. let message = new $root.game.get_mail_goods();
  8529. if (object.list) {
  8530. if (!Array.isArray(object.list))
  8531. throw TypeError(".game.get_mail_goods.list: array expected");
  8532. message.list = [];
  8533. for (let i = 0; i < object.list.length; ++i)
  8534. message.list[i] = String(object.list[i]);
  8535. }
  8536. if (object.bonekey != null)
  8537. message.bonekey = Boolean(object.bonekey);
  8538. return message;
  8539. };
  8540. /**
  8541. * Creates a plain object from a get_mail_goods message. Also converts values to other types if specified.
  8542. * @function toObject
  8543. * @memberof game.get_mail_goods
  8544. * @static
  8545. * @param {game.get_mail_goods} message get_mail_goods
  8546. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8547. * @returns {Object.<string,*>} Plain object
  8548. */
  8549. get_mail_goods.toObject = function toObject(message, options) {
  8550. if (!options)
  8551. options = {};
  8552. let object = {};
  8553. if (options.arrays || options.defaults)
  8554. object.list = [];
  8555. if (options.defaults)
  8556. object.bonekey = false;
  8557. if (message.list && message.list.length) {
  8558. object.list = [];
  8559. for (let j = 0; j < message.list.length; ++j)
  8560. object.list[j] = message.list[j];
  8561. }
  8562. if (message.bonekey != null && message.hasOwnProperty("bonekey"))
  8563. object.bonekey = message.bonekey;
  8564. return object;
  8565. };
  8566. /**
  8567. * Converts this get_mail_goods to JSON.
  8568. * @function toJSON
  8569. * @memberof game.get_mail_goods
  8570. * @instance
  8571. * @returns {Object.<string,*>} JSON object
  8572. */
  8573. get_mail_goods.prototype.toJSON = function toJSON() {
  8574. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8575. };
  8576. return get_mail_goods;
  8577. })();
  8578. game.get_mail_goods_rsp = (function() {
  8579. /**
  8580. * Properties of a get_mail_goods_rsp.
  8581. * @memberof game
  8582. * @interface Iget_mail_goods_rsp
  8583. * @property {number|Long|null} [errno] get_mail_goods_rsp errno
  8584. * @property {Array.<string>|null} [list] get_mail_goods_rsp list
  8585. */
  8586. /**
  8587. * Constructs a new get_mail_goods_rsp.
  8588. * @memberof game
  8589. * @classdesc Represents a get_mail_goods_rsp.
  8590. * @implements Iget_mail_goods_rsp
  8591. * @constructor
  8592. * @param {game.Iget_mail_goods_rsp=} [properties] Properties to set
  8593. */
  8594. function get_mail_goods_rsp(properties) {
  8595. this.list = [];
  8596. if (properties)
  8597. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8598. if (properties[keys[i]] != null)
  8599. this[keys[i]] = properties[keys[i]];
  8600. }
  8601. /**
  8602. * get_mail_goods_rsp errno.
  8603. * @member {number|Long} errno
  8604. * @memberof game.get_mail_goods_rsp
  8605. * @instance
  8606. */
  8607. get_mail_goods_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  8608. /**
  8609. * get_mail_goods_rsp list.
  8610. * @member {Array.<string>} list
  8611. * @memberof game.get_mail_goods_rsp
  8612. * @instance
  8613. */
  8614. get_mail_goods_rsp.prototype.list = $util.emptyArray;
  8615. /**
  8616. * Creates a new get_mail_goods_rsp instance using the specified properties.
  8617. * @function create
  8618. * @memberof game.get_mail_goods_rsp
  8619. * @static
  8620. * @param {game.Iget_mail_goods_rsp=} [properties] Properties to set
  8621. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp instance
  8622. */
  8623. get_mail_goods_rsp.create = function create(properties) {
  8624. return new get_mail_goods_rsp(properties);
  8625. };
  8626. /**
  8627. * Encodes the specified get_mail_goods_rsp message. Does not implicitly {@link game.get_mail_goods_rsp.verify|verify} messages.
  8628. * @function encode
  8629. * @memberof game.get_mail_goods_rsp
  8630. * @static
  8631. * @param {game.Iget_mail_goods_rsp} message get_mail_goods_rsp message or plain object to encode
  8632. * @param {$protobuf.Writer} [writer] Writer to encode to
  8633. * @returns {$protobuf.Writer} Writer
  8634. */
  8635. get_mail_goods_rsp.encode = function encode(message, writer) {
  8636. if (!writer)
  8637. writer = $Writer.create();
  8638. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  8639. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  8640. if (message.list != null && message.list.length)
  8641. for (let i = 0; i < message.list.length; ++i)
  8642. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  8643. return writer;
  8644. };
  8645. /**
  8646. * Encodes the specified get_mail_goods_rsp message, length delimited. Does not implicitly {@link game.get_mail_goods_rsp.verify|verify} messages.
  8647. * @function encodeDelimited
  8648. * @memberof game.get_mail_goods_rsp
  8649. * @static
  8650. * @param {game.Iget_mail_goods_rsp} message get_mail_goods_rsp message or plain object to encode
  8651. * @param {$protobuf.Writer} [writer] Writer to encode to
  8652. * @returns {$protobuf.Writer} Writer
  8653. */
  8654. get_mail_goods_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  8655. return this.encode(message, writer).ldelim();
  8656. };
  8657. /**
  8658. * Decodes a get_mail_goods_rsp message from the specified reader or buffer.
  8659. * @function decode
  8660. * @memberof game.get_mail_goods_rsp
  8661. * @static
  8662. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8663. * @param {number} [length] Message length if known beforehand
  8664. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
  8665. * @throws {Error} If the payload is not a reader or valid buffer
  8666. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8667. */
  8668. get_mail_goods_rsp.decode = function decode(reader, length) {
  8669. if (!(reader instanceof $Reader))
  8670. reader = $Reader.create(reader);
  8671. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_mail_goods_rsp();
  8672. while (reader.pos < end) {
  8673. let tag = reader.uint32();
  8674. switch (tag >>> 3) {
  8675. case 1:
  8676. message.errno = reader.int64();
  8677. break;
  8678. case 2:
  8679. if (!(message.list && message.list.length))
  8680. message.list = [];
  8681. message.list.push(reader.string());
  8682. break;
  8683. default:
  8684. reader.skipType(tag & 7);
  8685. break;
  8686. }
  8687. }
  8688. return message;
  8689. };
  8690. /**
  8691. * Decodes a get_mail_goods_rsp message from the specified reader or buffer, length delimited.
  8692. * @function decodeDelimited
  8693. * @memberof game.get_mail_goods_rsp
  8694. * @static
  8695. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8696. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
  8697. * @throws {Error} If the payload is not a reader or valid buffer
  8698. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8699. */
  8700. get_mail_goods_rsp.decodeDelimited = function decodeDelimited(reader) {
  8701. if (!(reader instanceof $Reader))
  8702. reader = new $Reader(reader);
  8703. return this.decode(reader, reader.uint32());
  8704. };
  8705. /**
  8706. * Verifies a get_mail_goods_rsp message.
  8707. * @function verify
  8708. * @memberof game.get_mail_goods_rsp
  8709. * @static
  8710. * @param {Object.<string,*>} message Plain object to verify
  8711. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8712. */
  8713. get_mail_goods_rsp.verify = function verify(message) {
  8714. if (typeof message !== "object" || message === null)
  8715. return "object expected";
  8716. if (message.errno != null && message.hasOwnProperty("errno"))
  8717. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  8718. return "errno: integer|Long expected";
  8719. if (message.list != null && message.hasOwnProperty("list")) {
  8720. if (!Array.isArray(message.list))
  8721. return "list: array expected";
  8722. for (let i = 0; i < message.list.length; ++i)
  8723. if (!$util.isString(message.list[i]))
  8724. return "list: string[] expected";
  8725. }
  8726. return null;
  8727. };
  8728. /**
  8729. * Creates a get_mail_goods_rsp message from a plain object. Also converts values to their respective internal types.
  8730. * @function fromObject
  8731. * @memberof game.get_mail_goods_rsp
  8732. * @static
  8733. * @param {Object.<string,*>} object Plain object
  8734. * @returns {game.get_mail_goods_rsp} get_mail_goods_rsp
  8735. */
  8736. get_mail_goods_rsp.fromObject = function fromObject(object) {
  8737. if (object instanceof $root.game.get_mail_goods_rsp)
  8738. return object;
  8739. let message = new $root.game.get_mail_goods_rsp();
  8740. if (object.errno != null)
  8741. if ($util.Long)
  8742. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  8743. else if (typeof object.errno === "string")
  8744. message.errno = parseInt(object.errno, 10);
  8745. else if (typeof object.errno === "number")
  8746. message.errno = object.errno;
  8747. else if (typeof object.errno === "object")
  8748. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  8749. if (object.list) {
  8750. if (!Array.isArray(object.list))
  8751. throw TypeError(".game.get_mail_goods_rsp.list: array expected");
  8752. message.list = [];
  8753. for (let i = 0; i < object.list.length; ++i)
  8754. message.list[i] = String(object.list[i]);
  8755. }
  8756. return message;
  8757. };
  8758. /**
  8759. * Creates a plain object from a get_mail_goods_rsp message. Also converts values to other types if specified.
  8760. * @function toObject
  8761. * @memberof game.get_mail_goods_rsp
  8762. * @static
  8763. * @param {game.get_mail_goods_rsp} message get_mail_goods_rsp
  8764. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8765. * @returns {Object.<string,*>} Plain object
  8766. */
  8767. get_mail_goods_rsp.toObject = function toObject(message, options) {
  8768. if (!options)
  8769. options = {};
  8770. let object = {};
  8771. if (options.arrays || options.defaults)
  8772. object.list = [];
  8773. if (options.defaults)
  8774. if ($util.Long) {
  8775. let long = new $util.Long(0, 0, false);
  8776. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  8777. } else
  8778. object.errno = options.longs === String ? "0" : 0;
  8779. if (message.errno != null && message.hasOwnProperty("errno"))
  8780. if (typeof message.errno === "number")
  8781. object.errno = options.longs === String ? String(message.errno) : message.errno;
  8782. else
  8783. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  8784. if (message.list && message.list.length) {
  8785. object.list = [];
  8786. for (let j = 0; j < message.list.length; ++j)
  8787. object.list[j] = message.list[j];
  8788. }
  8789. return object;
  8790. };
  8791. /**
  8792. * Converts this get_mail_goods_rsp to JSON.
  8793. * @function toJSON
  8794. * @memberof game.get_mail_goods_rsp
  8795. * @instance
  8796. * @returns {Object.<string,*>} JSON object
  8797. */
  8798. get_mail_goods_rsp.prototype.toJSON = function toJSON() {
  8799. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8800. };
  8801. return get_mail_goods_rsp;
  8802. })();
  8803. game.del_mail = (function() {
  8804. /**
  8805. * Properties of a del_mail.
  8806. * @memberof game
  8807. * @interface Idel_mail
  8808. * @property {Array.<string>|null} [list] del_mail list
  8809. */
  8810. /**
  8811. * Constructs a new del_mail.
  8812. * @memberof game
  8813. * @classdesc Represents a del_mail.
  8814. * @implements Idel_mail
  8815. * @constructor
  8816. * @param {game.Idel_mail=} [properties] Properties to set
  8817. */
  8818. function del_mail(properties) {
  8819. this.list = [];
  8820. if (properties)
  8821. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  8822. if (properties[keys[i]] != null)
  8823. this[keys[i]] = properties[keys[i]];
  8824. }
  8825. /**
  8826. * del_mail list.
  8827. * @member {Array.<string>} list
  8828. * @memberof game.del_mail
  8829. * @instance
  8830. */
  8831. del_mail.prototype.list = $util.emptyArray;
  8832. /**
  8833. * Creates a new del_mail instance using the specified properties.
  8834. * @function create
  8835. * @memberof game.del_mail
  8836. * @static
  8837. * @param {game.Idel_mail=} [properties] Properties to set
  8838. * @returns {game.del_mail} del_mail instance
  8839. */
  8840. del_mail.create = function create(properties) {
  8841. return new del_mail(properties);
  8842. };
  8843. /**
  8844. * Encodes the specified del_mail message. Does not implicitly {@link game.del_mail.verify|verify} messages.
  8845. * @function encode
  8846. * @memberof game.del_mail
  8847. * @static
  8848. * @param {game.Idel_mail} message del_mail message or plain object to encode
  8849. * @param {$protobuf.Writer} [writer] Writer to encode to
  8850. * @returns {$protobuf.Writer} Writer
  8851. */
  8852. del_mail.encode = function encode(message, writer) {
  8853. if (!writer)
  8854. writer = $Writer.create();
  8855. if (message.list != null && message.list.length)
  8856. for (let i = 0; i < message.list.length; ++i)
  8857. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  8858. return writer;
  8859. };
  8860. /**
  8861. * Encodes the specified del_mail message, length delimited. Does not implicitly {@link game.del_mail.verify|verify} messages.
  8862. * @function encodeDelimited
  8863. * @memberof game.del_mail
  8864. * @static
  8865. * @param {game.Idel_mail} message del_mail message or plain object to encode
  8866. * @param {$protobuf.Writer} [writer] Writer to encode to
  8867. * @returns {$protobuf.Writer} Writer
  8868. */
  8869. del_mail.encodeDelimited = function encodeDelimited(message, writer) {
  8870. return this.encode(message, writer).ldelim();
  8871. };
  8872. /**
  8873. * Decodes a del_mail message from the specified reader or buffer.
  8874. * @function decode
  8875. * @memberof game.del_mail
  8876. * @static
  8877. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8878. * @param {number} [length] Message length if known beforehand
  8879. * @returns {game.del_mail} del_mail
  8880. * @throws {Error} If the payload is not a reader or valid buffer
  8881. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8882. */
  8883. del_mail.decode = function decode(reader, length) {
  8884. if (!(reader instanceof $Reader))
  8885. reader = $Reader.create(reader);
  8886. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.del_mail();
  8887. while (reader.pos < end) {
  8888. let tag = reader.uint32();
  8889. switch (tag >>> 3) {
  8890. case 1:
  8891. if (!(message.list && message.list.length))
  8892. message.list = [];
  8893. message.list.push(reader.string());
  8894. break;
  8895. default:
  8896. reader.skipType(tag & 7);
  8897. break;
  8898. }
  8899. }
  8900. return message;
  8901. };
  8902. /**
  8903. * Decodes a del_mail message from the specified reader or buffer, length delimited.
  8904. * @function decodeDelimited
  8905. * @memberof game.del_mail
  8906. * @static
  8907. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  8908. * @returns {game.del_mail} del_mail
  8909. * @throws {Error} If the payload is not a reader or valid buffer
  8910. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  8911. */
  8912. del_mail.decodeDelimited = function decodeDelimited(reader) {
  8913. if (!(reader instanceof $Reader))
  8914. reader = new $Reader(reader);
  8915. return this.decode(reader, reader.uint32());
  8916. };
  8917. /**
  8918. * Verifies a del_mail message.
  8919. * @function verify
  8920. * @memberof game.del_mail
  8921. * @static
  8922. * @param {Object.<string,*>} message Plain object to verify
  8923. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  8924. */
  8925. del_mail.verify = function verify(message) {
  8926. if (typeof message !== "object" || message === null)
  8927. return "object expected";
  8928. if (message.list != null && message.hasOwnProperty("list")) {
  8929. if (!Array.isArray(message.list))
  8930. return "list: array expected";
  8931. for (let i = 0; i < message.list.length; ++i)
  8932. if (!$util.isString(message.list[i]))
  8933. return "list: string[] expected";
  8934. }
  8935. return null;
  8936. };
  8937. /**
  8938. * Creates a del_mail message from a plain object. Also converts values to their respective internal types.
  8939. * @function fromObject
  8940. * @memberof game.del_mail
  8941. * @static
  8942. * @param {Object.<string,*>} object Plain object
  8943. * @returns {game.del_mail} del_mail
  8944. */
  8945. del_mail.fromObject = function fromObject(object) {
  8946. if (object instanceof $root.game.del_mail)
  8947. return object;
  8948. let message = new $root.game.del_mail();
  8949. if (object.list) {
  8950. if (!Array.isArray(object.list))
  8951. throw TypeError(".game.del_mail.list: array expected");
  8952. message.list = [];
  8953. for (let i = 0; i < object.list.length; ++i)
  8954. message.list[i] = String(object.list[i]);
  8955. }
  8956. return message;
  8957. };
  8958. /**
  8959. * Creates a plain object from a del_mail message. Also converts values to other types if specified.
  8960. * @function toObject
  8961. * @memberof game.del_mail
  8962. * @static
  8963. * @param {game.del_mail} message del_mail
  8964. * @param {$protobuf.IConversionOptions} [options] Conversion options
  8965. * @returns {Object.<string,*>} Plain object
  8966. */
  8967. del_mail.toObject = function toObject(message, options) {
  8968. if (!options)
  8969. options = {};
  8970. let object = {};
  8971. if (options.arrays || options.defaults)
  8972. object.list = [];
  8973. if (message.list && message.list.length) {
  8974. object.list = [];
  8975. for (let j = 0; j < message.list.length; ++j)
  8976. object.list[j] = message.list[j];
  8977. }
  8978. return object;
  8979. };
  8980. /**
  8981. * Converts this del_mail to JSON.
  8982. * @function toJSON
  8983. * @memberof game.del_mail
  8984. * @instance
  8985. * @returns {Object.<string,*>} JSON object
  8986. */
  8987. del_mail.prototype.toJSON = function toJSON() {
  8988. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  8989. };
  8990. return del_mail;
  8991. })();
  8992. game.del_mail_rsp = (function() {
  8993. /**
  8994. * Properties of a del_mail_rsp.
  8995. * @memberof game
  8996. * @interface Idel_mail_rsp
  8997. * @property {number|Long|null} [errno] del_mail_rsp errno
  8998. * @property {Array.<string>|null} [list] del_mail_rsp list
  8999. */
  9000. /**
  9001. * Constructs a new del_mail_rsp.
  9002. * @memberof game
  9003. * @classdesc Represents a del_mail_rsp.
  9004. * @implements Idel_mail_rsp
  9005. * @constructor
  9006. * @param {game.Idel_mail_rsp=} [properties] Properties to set
  9007. */
  9008. function del_mail_rsp(properties) {
  9009. this.list = [];
  9010. if (properties)
  9011. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9012. if (properties[keys[i]] != null)
  9013. this[keys[i]] = properties[keys[i]];
  9014. }
  9015. /**
  9016. * del_mail_rsp errno.
  9017. * @member {number|Long} errno
  9018. * @memberof game.del_mail_rsp
  9019. * @instance
  9020. */
  9021. del_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9022. /**
  9023. * del_mail_rsp list.
  9024. * @member {Array.<string>} list
  9025. * @memberof game.del_mail_rsp
  9026. * @instance
  9027. */
  9028. del_mail_rsp.prototype.list = $util.emptyArray;
  9029. /**
  9030. * Creates a new del_mail_rsp instance using the specified properties.
  9031. * @function create
  9032. * @memberof game.del_mail_rsp
  9033. * @static
  9034. * @param {game.Idel_mail_rsp=} [properties] Properties to set
  9035. * @returns {game.del_mail_rsp} del_mail_rsp instance
  9036. */
  9037. del_mail_rsp.create = function create(properties) {
  9038. return new del_mail_rsp(properties);
  9039. };
  9040. /**
  9041. * Encodes the specified del_mail_rsp message. Does not implicitly {@link game.del_mail_rsp.verify|verify} messages.
  9042. * @function encode
  9043. * @memberof game.del_mail_rsp
  9044. * @static
  9045. * @param {game.Idel_mail_rsp} message del_mail_rsp message or plain object to encode
  9046. * @param {$protobuf.Writer} [writer] Writer to encode to
  9047. * @returns {$protobuf.Writer} Writer
  9048. */
  9049. del_mail_rsp.encode = function encode(message, writer) {
  9050. if (!writer)
  9051. writer = $Writer.create();
  9052. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  9053. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  9054. if (message.list != null && message.list.length)
  9055. for (let i = 0; i < message.list.length; ++i)
  9056. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  9057. return writer;
  9058. };
  9059. /**
  9060. * Encodes the specified del_mail_rsp message, length delimited. Does not implicitly {@link game.del_mail_rsp.verify|verify} messages.
  9061. * @function encodeDelimited
  9062. * @memberof game.del_mail_rsp
  9063. * @static
  9064. * @param {game.Idel_mail_rsp} message del_mail_rsp message or plain object to encode
  9065. * @param {$protobuf.Writer} [writer] Writer to encode to
  9066. * @returns {$protobuf.Writer} Writer
  9067. */
  9068. del_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  9069. return this.encode(message, writer).ldelim();
  9070. };
  9071. /**
  9072. * Decodes a del_mail_rsp message from the specified reader or buffer.
  9073. * @function decode
  9074. * @memberof game.del_mail_rsp
  9075. * @static
  9076. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9077. * @param {number} [length] Message length if known beforehand
  9078. * @returns {game.del_mail_rsp} del_mail_rsp
  9079. * @throws {Error} If the payload is not a reader or valid buffer
  9080. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9081. */
  9082. del_mail_rsp.decode = function decode(reader, length) {
  9083. if (!(reader instanceof $Reader))
  9084. reader = $Reader.create(reader);
  9085. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.del_mail_rsp();
  9086. while (reader.pos < end) {
  9087. let tag = reader.uint32();
  9088. switch (tag >>> 3) {
  9089. case 1:
  9090. message.errno = reader.int64();
  9091. break;
  9092. case 2:
  9093. if (!(message.list && message.list.length))
  9094. message.list = [];
  9095. message.list.push(reader.string());
  9096. break;
  9097. default:
  9098. reader.skipType(tag & 7);
  9099. break;
  9100. }
  9101. }
  9102. return message;
  9103. };
  9104. /**
  9105. * Decodes a del_mail_rsp message from the specified reader or buffer, length delimited.
  9106. * @function decodeDelimited
  9107. * @memberof game.del_mail_rsp
  9108. * @static
  9109. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9110. * @returns {game.del_mail_rsp} del_mail_rsp
  9111. * @throws {Error} If the payload is not a reader or valid buffer
  9112. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9113. */
  9114. del_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
  9115. if (!(reader instanceof $Reader))
  9116. reader = new $Reader(reader);
  9117. return this.decode(reader, reader.uint32());
  9118. };
  9119. /**
  9120. * Verifies a del_mail_rsp message.
  9121. * @function verify
  9122. * @memberof game.del_mail_rsp
  9123. * @static
  9124. * @param {Object.<string,*>} message Plain object to verify
  9125. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9126. */
  9127. del_mail_rsp.verify = function verify(message) {
  9128. if (typeof message !== "object" || message === null)
  9129. return "object expected";
  9130. if (message.errno != null && message.hasOwnProperty("errno"))
  9131. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  9132. return "errno: integer|Long expected";
  9133. if (message.list != null && message.hasOwnProperty("list")) {
  9134. if (!Array.isArray(message.list))
  9135. return "list: array expected";
  9136. for (let i = 0; i < message.list.length; ++i)
  9137. if (!$util.isString(message.list[i]))
  9138. return "list: string[] expected";
  9139. }
  9140. return null;
  9141. };
  9142. /**
  9143. * Creates a del_mail_rsp message from a plain object. Also converts values to their respective internal types.
  9144. * @function fromObject
  9145. * @memberof game.del_mail_rsp
  9146. * @static
  9147. * @param {Object.<string,*>} object Plain object
  9148. * @returns {game.del_mail_rsp} del_mail_rsp
  9149. */
  9150. del_mail_rsp.fromObject = function fromObject(object) {
  9151. if (object instanceof $root.game.del_mail_rsp)
  9152. return object;
  9153. let message = new $root.game.del_mail_rsp();
  9154. if (object.errno != null)
  9155. if ($util.Long)
  9156. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  9157. else if (typeof object.errno === "string")
  9158. message.errno = parseInt(object.errno, 10);
  9159. else if (typeof object.errno === "number")
  9160. message.errno = object.errno;
  9161. else if (typeof object.errno === "object")
  9162. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  9163. if (object.list) {
  9164. if (!Array.isArray(object.list))
  9165. throw TypeError(".game.del_mail_rsp.list: array expected");
  9166. message.list = [];
  9167. for (let i = 0; i < object.list.length; ++i)
  9168. message.list[i] = String(object.list[i]);
  9169. }
  9170. return message;
  9171. };
  9172. /**
  9173. * Creates a plain object from a del_mail_rsp message. Also converts values to other types if specified.
  9174. * @function toObject
  9175. * @memberof game.del_mail_rsp
  9176. * @static
  9177. * @param {game.del_mail_rsp} message del_mail_rsp
  9178. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9179. * @returns {Object.<string,*>} Plain object
  9180. */
  9181. del_mail_rsp.toObject = function toObject(message, options) {
  9182. if (!options)
  9183. options = {};
  9184. let object = {};
  9185. if (options.arrays || options.defaults)
  9186. object.list = [];
  9187. if (options.defaults)
  9188. if ($util.Long) {
  9189. let long = new $util.Long(0, 0, false);
  9190. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  9191. } else
  9192. object.errno = options.longs === String ? "0" : 0;
  9193. if (message.errno != null && message.hasOwnProperty("errno"))
  9194. if (typeof message.errno === "number")
  9195. object.errno = options.longs === String ? String(message.errno) : message.errno;
  9196. else
  9197. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  9198. if (message.list && message.list.length) {
  9199. object.list = [];
  9200. for (let j = 0; j < message.list.length; ++j)
  9201. object.list[j] = message.list[j];
  9202. }
  9203. return object;
  9204. };
  9205. /**
  9206. * Converts this del_mail_rsp to JSON.
  9207. * @function toJSON
  9208. * @memberof game.del_mail_rsp
  9209. * @instance
  9210. * @returns {Object.<string,*>} JSON object
  9211. */
  9212. del_mail_rsp.prototype.toJSON = function toJSON() {
  9213. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9214. };
  9215. return del_mail_rsp;
  9216. })();
  9217. game.flag_mail = (function() {
  9218. /**
  9219. * Properties of a flag_mail.
  9220. * @memberof game
  9221. * @interface Iflag_mail
  9222. * @property {Array.<string>|null} [list] flag_mail list
  9223. */
  9224. /**
  9225. * Constructs a new flag_mail.
  9226. * @memberof game
  9227. * @classdesc Represents a flag_mail.
  9228. * @implements Iflag_mail
  9229. * @constructor
  9230. * @param {game.Iflag_mail=} [properties] Properties to set
  9231. */
  9232. function flag_mail(properties) {
  9233. this.list = [];
  9234. if (properties)
  9235. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9236. if (properties[keys[i]] != null)
  9237. this[keys[i]] = properties[keys[i]];
  9238. }
  9239. /**
  9240. * flag_mail list.
  9241. * @member {Array.<string>} list
  9242. * @memberof game.flag_mail
  9243. * @instance
  9244. */
  9245. flag_mail.prototype.list = $util.emptyArray;
  9246. /**
  9247. * Creates a new flag_mail instance using the specified properties.
  9248. * @function create
  9249. * @memberof game.flag_mail
  9250. * @static
  9251. * @param {game.Iflag_mail=} [properties] Properties to set
  9252. * @returns {game.flag_mail} flag_mail instance
  9253. */
  9254. flag_mail.create = function create(properties) {
  9255. return new flag_mail(properties);
  9256. };
  9257. /**
  9258. * Encodes the specified flag_mail message. Does not implicitly {@link game.flag_mail.verify|verify} messages.
  9259. * @function encode
  9260. * @memberof game.flag_mail
  9261. * @static
  9262. * @param {game.Iflag_mail} message flag_mail message or plain object to encode
  9263. * @param {$protobuf.Writer} [writer] Writer to encode to
  9264. * @returns {$protobuf.Writer} Writer
  9265. */
  9266. flag_mail.encode = function encode(message, writer) {
  9267. if (!writer)
  9268. writer = $Writer.create();
  9269. if (message.list != null && message.list.length)
  9270. for (let i = 0; i < message.list.length; ++i)
  9271. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  9272. return writer;
  9273. };
  9274. /**
  9275. * Encodes the specified flag_mail message, length delimited. Does not implicitly {@link game.flag_mail.verify|verify} messages.
  9276. * @function encodeDelimited
  9277. * @memberof game.flag_mail
  9278. * @static
  9279. * @param {game.Iflag_mail} message flag_mail message or plain object to encode
  9280. * @param {$protobuf.Writer} [writer] Writer to encode to
  9281. * @returns {$protobuf.Writer} Writer
  9282. */
  9283. flag_mail.encodeDelimited = function encodeDelimited(message, writer) {
  9284. return this.encode(message, writer).ldelim();
  9285. };
  9286. /**
  9287. * Decodes a flag_mail message from the specified reader or buffer.
  9288. * @function decode
  9289. * @memberof game.flag_mail
  9290. * @static
  9291. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9292. * @param {number} [length] Message length if known beforehand
  9293. * @returns {game.flag_mail} flag_mail
  9294. * @throws {Error} If the payload is not a reader or valid buffer
  9295. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9296. */
  9297. flag_mail.decode = function decode(reader, length) {
  9298. if (!(reader instanceof $Reader))
  9299. reader = $Reader.create(reader);
  9300. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.flag_mail();
  9301. while (reader.pos < end) {
  9302. let tag = reader.uint32();
  9303. switch (tag >>> 3) {
  9304. case 1:
  9305. if (!(message.list && message.list.length))
  9306. message.list = [];
  9307. message.list.push(reader.string());
  9308. break;
  9309. default:
  9310. reader.skipType(tag & 7);
  9311. break;
  9312. }
  9313. }
  9314. return message;
  9315. };
  9316. /**
  9317. * Decodes a flag_mail message from the specified reader or buffer, length delimited.
  9318. * @function decodeDelimited
  9319. * @memberof game.flag_mail
  9320. * @static
  9321. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9322. * @returns {game.flag_mail} flag_mail
  9323. * @throws {Error} If the payload is not a reader or valid buffer
  9324. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9325. */
  9326. flag_mail.decodeDelimited = function decodeDelimited(reader) {
  9327. if (!(reader instanceof $Reader))
  9328. reader = new $Reader(reader);
  9329. return this.decode(reader, reader.uint32());
  9330. };
  9331. /**
  9332. * Verifies a flag_mail message.
  9333. * @function verify
  9334. * @memberof game.flag_mail
  9335. * @static
  9336. * @param {Object.<string,*>} message Plain object to verify
  9337. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9338. */
  9339. flag_mail.verify = function verify(message) {
  9340. if (typeof message !== "object" || message === null)
  9341. return "object expected";
  9342. if (message.list != null && message.hasOwnProperty("list")) {
  9343. if (!Array.isArray(message.list))
  9344. return "list: array expected";
  9345. for (let i = 0; i < message.list.length; ++i)
  9346. if (!$util.isString(message.list[i]))
  9347. return "list: string[] expected";
  9348. }
  9349. return null;
  9350. };
  9351. /**
  9352. * Creates a flag_mail message from a plain object. Also converts values to their respective internal types.
  9353. * @function fromObject
  9354. * @memberof game.flag_mail
  9355. * @static
  9356. * @param {Object.<string,*>} object Plain object
  9357. * @returns {game.flag_mail} flag_mail
  9358. */
  9359. flag_mail.fromObject = function fromObject(object) {
  9360. if (object instanceof $root.game.flag_mail)
  9361. return object;
  9362. let message = new $root.game.flag_mail();
  9363. if (object.list) {
  9364. if (!Array.isArray(object.list))
  9365. throw TypeError(".game.flag_mail.list: array expected");
  9366. message.list = [];
  9367. for (let i = 0; i < object.list.length; ++i)
  9368. message.list[i] = String(object.list[i]);
  9369. }
  9370. return message;
  9371. };
  9372. /**
  9373. * Creates a plain object from a flag_mail message. Also converts values to other types if specified.
  9374. * @function toObject
  9375. * @memberof game.flag_mail
  9376. * @static
  9377. * @param {game.flag_mail} message flag_mail
  9378. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9379. * @returns {Object.<string,*>} Plain object
  9380. */
  9381. flag_mail.toObject = function toObject(message, options) {
  9382. if (!options)
  9383. options = {};
  9384. let object = {};
  9385. if (options.arrays || options.defaults)
  9386. object.list = [];
  9387. if (message.list && message.list.length) {
  9388. object.list = [];
  9389. for (let j = 0; j < message.list.length; ++j)
  9390. object.list[j] = message.list[j];
  9391. }
  9392. return object;
  9393. };
  9394. /**
  9395. * Converts this flag_mail to JSON.
  9396. * @function toJSON
  9397. * @memberof game.flag_mail
  9398. * @instance
  9399. * @returns {Object.<string,*>} JSON object
  9400. */
  9401. flag_mail.prototype.toJSON = function toJSON() {
  9402. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9403. };
  9404. return flag_mail;
  9405. })();
  9406. game.flag_mail_rsp = (function() {
  9407. /**
  9408. * Properties of a flag_mail_rsp.
  9409. * @memberof game
  9410. * @interface Iflag_mail_rsp
  9411. * @property {number|Long|null} [errno] flag_mail_rsp errno
  9412. */
  9413. /**
  9414. * Constructs a new flag_mail_rsp.
  9415. * @memberof game
  9416. * @classdesc Represents a flag_mail_rsp.
  9417. * @implements Iflag_mail_rsp
  9418. * @constructor
  9419. * @param {game.Iflag_mail_rsp=} [properties] Properties to set
  9420. */
  9421. function flag_mail_rsp(properties) {
  9422. if (properties)
  9423. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9424. if (properties[keys[i]] != null)
  9425. this[keys[i]] = properties[keys[i]];
  9426. }
  9427. /**
  9428. * flag_mail_rsp errno.
  9429. * @member {number|Long} errno
  9430. * @memberof game.flag_mail_rsp
  9431. * @instance
  9432. */
  9433. flag_mail_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9434. /**
  9435. * Creates a new flag_mail_rsp instance using the specified properties.
  9436. * @function create
  9437. * @memberof game.flag_mail_rsp
  9438. * @static
  9439. * @param {game.Iflag_mail_rsp=} [properties] Properties to set
  9440. * @returns {game.flag_mail_rsp} flag_mail_rsp instance
  9441. */
  9442. flag_mail_rsp.create = function create(properties) {
  9443. return new flag_mail_rsp(properties);
  9444. };
  9445. /**
  9446. * Encodes the specified flag_mail_rsp message. Does not implicitly {@link game.flag_mail_rsp.verify|verify} messages.
  9447. * @function encode
  9448. * @memberof game.flag_mail_rsp
  9449. * @static
  9450. * @param {game.Iflag_mail_rsp} message flag_mail_rsp message or plain object to encode
  9451. * @param {$protobuf.Writer} [writer] Writer to encode to
  9452. * @returns {$protobuf.Writer} Writer
  9453. */
  9454. flag_mail_rsp.encode = function encode(message, writer) {
  9455. if (!writer)
  9456. writer = $Writer.create();
  9457. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  9458. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  9459. return writer;
  9460. };
  9461. /**
  9462. * Encodes the specified flag_mail_rsp message, length delimited. Does not implicitly {@link game.flag_mail_rsp.verify|verify} messages.
  9463. * @function encodeDelimited
  9464. * @memberof game.flag_mail_rsp
  9465. * @static
  9466. * @param {game.Iflag_mail_rsp} message flag_mail_rsp message or plain object to encode
  9467. * @param {$protobuf.Writer} [writer] Writer to encode to
  9468. * @returns {$protobuf.Writer} Writer
  9469. */
  9470. flag_mail_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  9471. return this.encode(message, writer).ldelim();
  9472. };
  9473. /**
  9474. * Decodes a flag_mail_rsp message from the specified reader or buffer.
  9475. * @function decode
  9476. * @memberof game.flag_mail_rsp
  9477. * @static
  9478. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9479. * @param {number} [length] Message length if known beforehand
  9480. * @returns {game.flag_mail_rsp} flag_mail_rsp
  9481. * @throws {Error} If the payload is not a reader or valid buffer
  9482. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9483. */
  9484. flag_mail_rsp.decode = function decode(reader, length) {
  9485. if (!(reader instanceof $Reader))
  9486. reader = $Reader.create(reader);
  9487. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.flag_mail_rsp();
  9488. while (reader.pos < end) {
  9489. let tag = reader.uint32();
  9490. switch (tag >>> 3) {
  9491. case 1:
  9492. message.errno = reader.int64();
  9493. break;
  9494. default:
  9495. reader.skipType(tag & 7);
  9496. break;
  9497. }
  9498. }
  9499. return message;
  9500. };
  9501. /**
  9502. * Decodes a flag_mail_rsp message from the specified reader or buffer, length delimited.
  9503. * @function decodeDelimited
  9504. * @memberof game.flag_mail_rsp
  9505. * @static
  9506. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9507. * @returns {game.flag_mail_rsp} flag_mail_rsp
  9508. * @throws {Error} If the payload is not a reader or valid buffer
  9509. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9510. */
  9511. flag_mail_rsp.decodeDelimited = function decodeDelimited(reader) {
  9512. if (!(reader instanceof $Reader))
  9513. reader = new $Reader(reader);
  9514. return this.decode(reader, reader.uint32());
  9515. };
  9516. /**
  9517. * Verifies a flag_mail_rsp message.
  9518. * @function verify
  9519. * @memberof game.flag_mail_rsp
  9520. * @static
  9521. * @param {Object.<string,*>} message Plain object to verify
  9522. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9523. */
  9524. flag_mail_rsp.verify = function verify(message) {
  9525. if (typeof message !== "object" || message === null)
  9526. return "object expected";
  9527. if (message.errno != null && message.hasOwnProperty("errno"))
  9528. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  9529. return "errno: integer|Long expected";
  9530. return null;
  9531. };
  9532. /**
  9533. * Creates a flag_mail_rsp message from a plain object. Also converts values to their respective internal types.
  9534. * @function fromObject
  9535. * @memberof game.flag_mail_rsp
  9536. * @static
  9537. * @param {Object.<string,*>} object Plain object
  9538. * @returns {game.flag_mail_rsp} flag_mail_rsp
  9539. */
  9540. flag_mail_rsp.fromObject = function fromObject(object) {
  9541. if (object instanceof $root.game.flag_mail_rsp)
  9542. return object;
  9543. let message = new $root.game.flag_mail_rsp();
  9544. if (object.errno != null)
  9545. if ($util.Long)
  9546. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  9547. else if (typeof object.errno === "string")
  9548. message.errno = parseInt(object.errno, 10);
  9549. else if (typeof object.errno === "number")
  9550. message.errno = object.errno;
  9551. else if (typeof object.errno === "object")
  9552. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  9553. return message;
  9554. };
  9555. /**
  9556. * Creates a plain object from a flag_mail_rsp message. Also converts values to other types if specified.
  9557. * @function toObject
  9558. * @memberof game.flag_mail_rsp
  9559. * @static
  9560. * @param {game.flag_mail_rsp} message flag_mail_rsp
  9561. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9562. * @returns {Object.<string,*>} Plain object
  9563. */
  9564. flag_mail_rsp.toObject = function toObject(message, options) {
  9565. if (!options)
  9566. options = {};
  9567. let object = {};
  9568. if (options.defaults)
  9569. if ($util.Long) {
  9570. let long = new $util.Long(0, 0, false);
  9571. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  9572. } else
  9573. object.errno = options.longs === String ? "0" : 0;
  9574. if (message.errno != null && message.hasOwnProperty("errno"))
  9575. if (typeof message.errno === "number")
  9576. object.errno = options.longs === String ? String(message.errno) : message.errno;
  9577. else
  9578. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  9579. return object;
  9580. };
  9581. /**
  9582. * Converts this flag_mail_rsp to JSON.
  9583. * @function toJSON
  9584. * @memberof game.flag_mail_rsp
  9585. * @instance
  9586. * @returns {Object.<string,*>} JSON object
  9587. */
  9588. flag_mail_rsp.prototype.toJSON = function toJSON() {
  9589. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9590. };
  9591. return flag_mail_rsp;
  9592. })();
  9593. game.send_mail = (function() {
  9594. /**
  9595. * Properties of a send_mail.
  9596. * @memberof game
  9597. * @interface Isend_mail
  9598. * @property {Array.<game.Imail>|null} [list] send_mail list
  9599. */
  9600. /**
  9601. * Constructs a new send_mail.
  9602. * @memberof game
  9603. * @classdesc Represents a send_mail.
  9604. * @implements Isend_mail
  9605. * @constructor
  9606. * @param {game.Isend_mail=} [properties] Properties to set
  9607. */
  9608. function send_mail(properties) {
  9609. this.list = [];
  9610. if (properties)
  9611. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9612. if (properties[keys[i]] != null)
  9613. this[keys[i]] = properties[keys[i]];
  9614. }
  9615. /**
  9616. * send_mail list.
  9617. * @member {Array.<game.Imail>} list
  9618. * @memberof game.send_mail
  9619. * @instance
  9620. */
  9621. send_mail.prototype.list = $util.emptyArray;
  9622. /**
  9623. * Creates a new send_mail instance using the specified properties.
  9624. * @function create
  9625. * @memberof game.send_mail
  9626. * @static
  9627. * @param {game.Isend_mail=} [properties] Properties to set
  9628. * @returns {game.send_mail} send_mail instance
  9629. */
  9630. send_mail.create = function create(properties) {
  9631. return new send_mail(properties);
  9632. };
  9633. /**
  9634. * Encodes the specified send_mail message. Does not implicitly {@link game.send_mail.verify|verify} messages.
  9635. * @function encode
  9636. * @memberof game.send_mail
  9637. * @static
  9638. * @param {game.Isend_mail} message send_mail message or plain object to encode
  9639. * @param {$protobuf.Writer} [writer] Writer to encode to
  9640. * @returns {$protobuf.Writer} Writer
  9641. */
  9642. send_mail.encode = function encode(message, writer) {
  9643. if (!writer)
  9644. writer = $Writer.create();
  9645. if (message.list != null && message.list.length)
  9646. for (let i = 0; i < message.list.length; ++i)
  9647. $root.game.mail.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  9648. return writer;
  9649. };
  9650. /**
  9651. * Encodes the specified send_mail message, length delimited. Does not implicitly {@link game.send_mail.verify|verify} messages.
  9652. * @function encodeDelimited
  9653. * @memberof game.send_mail
  9654. * @static
  9655. * @param {game.Isend_mail} message send_mail message or plain object to encode
  9656. * @param {$protobuf.Writer} [writer] Writer to encode to
  9657. * @returns {$protobuf.Writer} Writer
  9658. */
  9659. send_mail.encodeDelimited = function encodeDelimited(message, writer) {
  9660. return this.encode(message, writer).ldelim();
  9661. };
  9662. /**
  9663. * Decodes a send_mail message from the specified reader or buffer.
  9664. * @function decode
  9665. * @memberof game.send_mail
  9666. * @static
  9667. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9668. * @param {number} [length] Message length if known beforehand
  9669. * @returns {game.send_mail} send_mail
  9670. * @throws {Error} If the payload is not a reader or valid buffer
  9671. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9672. */
  9673. send_mail.decode = function decode(reader, length) {
  9674. if (!(reader instanceof $Reader))
  9675. reader = $Reader.create(reader);
  9676. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.send_mail();
  9677. while (reader.pos < end) {
  9678. let tag = reader.uint32();
  9679. switch (tag >>> 3) {
  9680. case 1:
  9681. if (!(message.list && message.list.length))
  9682. message.list = [];
  9683. message.list.push($root.game.mail.decode(reader, reader.uint32()));
  9684. break;
  9685. default:
  9686. reader.skipType(tag & 7);
  9687. break;
  9688. }
  9689. }
  9690. return message;
  9691. };
  9692. /**
  9693. * Decodes a send_mail message from the specified reader or buffer, length delimited.
  9694. * @function decodeDelimited
  9695. * @memberof game.send_mail
  9696. * @static
  9697. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9698. * @returns {game.send_mail} send_mail
  9699. * @throws {Error} If the payload is not a reader or valid buffer
  9700. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9701. */
  9702. send_mail.decodeDelimited = function decodeDelimited(reader) {
  9703. if (!(reader instanceof $Reader))
  9704. reader = new $Reader(reader);
  9705. return this.decode(reader, reader.uint32());
  9706. };
  9707. /**
  9708. * Verifies a send_mail message.
  9709. * @function verify
  9710. * @memberof game.send_mail
  9711. * @static
  9712. * @param {Object.<string,*>} message Plain object to verify
  9713. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9714. */
  9715. send_mail.verify = function verify(message) {
  9716. if (typeof message !== "object" || message === null)
  9717. return "object expected";
  9718. if (message.list != null && message.hasOwnProperty("list")) {
  9719. if (!Array.isArray(message.list))
  9720. return "list: array expected";
  9721. for (let i = 0; i < message.list.length; ++i) {
  9722. let error = $root.game.mail.verify(message.list[i]);
  9723. if (error)
  9724. return "list." + error;
  9725. }
  9726. }
  9727. return null;
  9728. };
  9729. /**
  9730. * Creates a send_mail message from a plain object. Also converts values to their respective internal types.
  9731. * @function fromObject
  9732. * @memberof game.send_mail
  9733. * @static
  9734. * @param {Object.<string,*>} object Plain object
  9735. * @returns {game.send_mail} send_mail
  9736. */
  9737. send_mail.fromObject = function fromObject(object) {
  9738. if (object instanceof $root.game.send_mail)
  9739. return object;
  9740. let message = new $root.game.send_mail();
  9741. if (object.list) {
  9742. if (!Array.isArray(object.list))
  9743. throw TypeError(".game.send_mail.list: array expected");
  9744. message.list = [];
  9745. for (let i = 0; i < object.list.length; ++i) {
  9746. if (typeof object.list[i] !== "object")
  9747. throw TypeError(".game.send_mail.list: object expected");
  9748. message.list[i] = $root.game.mail.fromObject(object.list[i]);
  9749. }
  9750. }
  9751. return message;
  9752. };
  9753. /**
  9754. * Creates a plain object from a send_mail message. Also converts values to other types if specified.
  9755. * @function toObject
  9756. * @memberof game.send_mail
  9757. * @static
  9758. * @param {game.send_mail} message send_mail
  9759. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9760. * @returns {Object.<string,*>} Plain object
  9761. */
  9762. send_mail.toObject = function toObject(message, options) {
  9763. if (!options)
  9764. options = {};
  9765. let object = {};
  9766. if (options.arrays || options.defaults)
  9767. object.list = [];
  9768. if (message.list && message.list.length) {
  9769. object.list = [];
  9770. for (let j = 0; j < message.list.length; ++j)
  9771. object.list[j] = $root.game.mail.toObject(message.list[j], options);
  9772. }
  9773. return object;
  9774. };
  9775. /**
  9776. * Converts this send_mail to JSON.
  9777. * @function toJSON
  9778. * @memberof game.send_mail
  9779. * @instance
  9780. * @returns {Object.<string,*>} JSON object
  9781. */
  9782. send_mail.prototype.toJSON = function toJSON() {
  9783. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  9784. };
  9785. return send_mail;
  9786. })();
  9787. game.simple_mail = (function() {
  9788. /**
  9789. * Properties of a simple_mail.
  9790. * @memberof game
  9791. * @interface Isimple_mail
  9792. * @property {number|Long|null} [num] simple_mail num
  9793. * @property {number|Long|null} [noread] simple_mail noread
  9794. * @property {number|Long|null} [needread] simple_mail needread
  9795. */
  9796. /**
  9797. * Constructs a new simple_mail.
  9798. * @memberof game
  9799. * @classdesc Represents a simple_mail.
  9800. * @implements Isimple_mail
  9801. * @constructor
  9802. * @param {game.Isimple_mail=} [properties] Properties to set
  9803. */
  9804. function simple_mail(properties) {
  9805. if (properties)
  9806. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  9807. if (properties[keys[i]] != null)
  9808. this[keys[i]] = properties[keys[i]];
  9809. }
  9810. /**
  9811. * simple_mail num.
  9812. * @member {number|Long} num
  9813. * @memberof game.simple_mail
  9814. * @instance
  9815. */
  9816. simple_mail.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9817. /**
  9818. * simple_mail noread.
  9819. * @member {number|Long} noread
  9820. * @memberof game.simple_mail
  9821. * @instance
  9822. */
  9823. simple_mail.prototype.noread = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9824. /**
  9825. * simple_mail needread.
  9826. * @member {number|Long} needread
  9827. * @memberof game.simple_mail
  9828. * @instance
  9829. */
  9830. simple_mail.prototype.needread = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  9831. /**
  9832. * Creates a new simple_mail instance using the specified properties.
  9833. * @function create
  9834. * @memberof game.simple_mail
  9835. * @static
  9836. * @param {game.Isimple_mail=} [properties] Properties to set
  9837. * @returns {game.simple_mail} simple_mail instance
  9838. */
  9839. simple_mail.create = function create(properties) {
  9840. return new simple_mail(properties);
  9841. };
  9842. /**
  9843. * Encodes the specified simple_mail message. Does not implicitly {@link game.simple_mail.verify|verify} messages.
  9844. * @function encode
  9845. * @memberof game.simple_mail
  9846. * @static
  9847. * @param {game.Isimple_mail} message simple_mail message or plain object to encode
  9848. * @param {$protobuf.Writer} [writer] Writer to encode to
  9849. * @returns {$protobuf.Writer} Writer
  9850. */
  9851. simple_mail.encode = function encode(message, writer) {
  9852. if (!writer)
  9853. writer = $Writer.create();
  9854. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  9855. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.num);
  9856. if (message.noread != null && Object.hasOwnProperty.call(message, "noread"))
  9857. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.noread);
  9858. if (message.needread != null && Object.hasOwnProperty.call(message, "needread"))
  9859. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.needread);
  9860. return writer;
  9861. };
  9862. /**
  9863. * Encodes the specified simple_mail message, length delimited. Does not implicitly {@link game.simple_mail.verify|verify} messages.
  9864. * @function encodeDelimited
  9865. * @memberof game.simple_mail
  9866. * @static
  9867. * @param {game.Isimple_mail} message simple_mail message or plain object to encode
  9868. * @param {$protobuf.Writer} [writer] Writer to encode to
  9869. * @returns {$protobuf.Writer} Writer
  9870. */
  9871. simple_mail.encodeDelimited = function encodeDelimited(message, writer) {
  9872. return this.encode(message, writer).ldelim();
  9873. };
  9874. /**
  9875. * Decodes a simple_mail message from the specified reader or buffer.
  9876. * @function decode
  9877. * @memberof game.simple_mail
  9878. * @static
  9879. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9880. * @param {number} [length] Message length if known beforehand
  9881. * @returns {game.simple_mail} simple_mail
  9882. * @throws {Error} If the payload is not a reader or valid buffer
  9883. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9884. */
  9885. simple_mail.decode = function decode(reader, length) {
  9886. if (!(reader instanceof $Reader))
  9887. reader = $Reader.create(reader);
  9888. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.simple_mail();
  9889. while (reader.pos < end) {
  9890. let tag = reader.uint32();
  9891. switch (tag >>> 3) {
  9892. case 1:
  9893. message.num = reader.int64();
  9894. break;
  9895. case 2:
  9896. message.noread = reader.int64();
  9897. break;
  9898. case 3:
  9899. message.needread = reader.int64();
  9900. break;
  9901. default:
  9902. reader.skipType(tag & 7);
  9903. break;
  9904. }
  9905. }
  9906. return message;
  9907. };
  9908. /**
  9909. * Decodes a simple_mail message from the specified reader or buffer, length delimited.
  9910. * @function decodeDelimited
  9911. * @memberof game.simple_mail
  9912. * @static
  9913. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  9914. * @returns {game.simple_mail} simple_mail
  9915. * @throws {Error} If the payload is not a reader or valid buffer
  9916. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  9917. */
  9918. simple_mail.decodeDelimited = function decodeDelimited(reader) {
  9919. if (!(reader instanceof $Reader))
  9920. reader = new $Reader(reader);
  9921. return this.decode(reader, reader.uint32());
  9922. };
  9923. /**
  9924. * Verifies a simple_mail message.
  9925. * @function verify
  9926. * @memberof game.simple_mail
  9927. * @static
  9928. * @param {Object.<string,*>} message Plain object to verify
  9929. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  9930. */
  9931. simple_mail.verify = function verify(message) {
  9932. if (typeof message !== "object" || message === null)
  9933. return "object expected";
  9934. if (message.num != null && message.hasOwnProperty("num"))
  9935. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  9936. return "num: integer|Long expected";
  9937. if (message.noread != null && message.hasOwnProperty("noread"))
  9938. if (!$util.isInteger(message.noread) && !(message.noread && $util.isInteger(message.noread.low) && $util.isInteger(message.noread.high)))
  9939. return "noread: integer|Long expected";
  9940. if (message.needread != null && message.hasOwnProperty("needread"))
  9941. if (!$util.isInteger(message.needread) && !(message.needread && $util.isInteger(message.needread.low) && $util.isInteger(message.needread.high)))
  9942. return "needread: integer|Long expected";
  9943. return null;
  9944. };
  9945. /**
  9946. * Creates a simple_mail message from a plain object. Also converts values to their respective internal types.
  9947. * @function fromObject
  9948. * @memberof game.simple_mail
  9949. * @static
  9950. * @param {Object.<string,*>} object Plain object
  9951. * @returns {game.simple_mail} simple_mail
  9952. */
  9953. simple_mail.fromObject = function fromObject(object) {
  9954. if (object instanceof $root.game.simple_mail)
  9955. return object;
  9956. let message = new $root.game.simple_mail();
  9957. if (object.num != null)
  9958. if ($util.Long)
  9959. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  9960. else if (typeof object.num === "string")
  9961. message.num = parseInt(object.num, 10);
  9962. else if (typeof object.num === "number")
  9963. message.num = object.num;
  9964. else if (typeof object.num === "object")
  9965. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  9966. if (object.noread != null)
  9967. if ($util.Long)
  9968. (message.noread = $util.Long.fromValue(object.noread)).unsigned = false;
  9969. else if (typeof object.noread === "string")
  9970. message.noread = parseInt(object.noread, 10);
  9971. else if (typeof object.noread === "number")
  9972. message.noread = object.noread;
  9973. else if (typeof object.noread === "object")
  9974. message.noread = new $util.LongBits(object.noread.low >>> 0, object.noread.high >>> 0).toNumber();
  9975. if (object.needread != null)
  9976. if ($util.Long)
  9977. (message.needread = $util.Long.fromValue(object.needread)).unsigned = false;
  9978. else if (typeof object.needread === "string")
  9979. message.needread = parseInt(object.needread, 10);
  9980. else if (typeof object.needread === "number")
  9981. message.needread = object.needread;
  9982. else if (typeof object.needread === "object")
  9983. message.needread = new $util.LongBits(object.needread.low >>> 0, object.needread.high >>> 0).toNumber();
  9984. return message;
  9985. };
  9986. /**
  9987. * Creates a plain object from a simple_mail message. Also converts values to other types if specified.
  9988. * @function toObject
  9989. * @memberof game.simple_mail
  9990. * @static
  9991. * @param {game.simple_mail} message simple_mail
  9992. * @param {$protobuf.IConversionOptions} [options] Conversion options
  9993. * @returns {Object.<string,*>} Plain object
  9994. */
  9995. simple_mail.toObject = function toObject(message, options) {
  9996. if (!options)
  9997. options = {};
  9998. let object = {};
  9999. if (options.defaults) {
  10000. if ($util.Long) {
  10001. let long = new $util.Long(0, 0, false);
  10002. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10003. } else
  10004. object.num = options.longs === String ? "0" : 0;
  10005. if ($util.Long) {
  10006. let long = new $util.Long(0, 0, false);
  10007. object.noread = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10008. } else
  10009. object.noread = options.longs === String ? "0" : 0;
  10010. if ($util.Long) {
  10011. let long = new $util.Long(0, 0, false);
  10012. object.needread = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10013. } else
  10014. object.needread = options.longs === String ? "0" : 0;
  10015. }
  10016. if (message.num != null && message.hasOwnProperty("num"))
  10017. if (typeof message.num === "number")
  10018. object.num = options.longs === String ? String(message.num) : message.num;
  10019. else
  10020. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  10021. if (message.noread != null && message.hasOwnProperty("noread"))
  10022. if (typeof message.noread === "number")
  10023. object.noread = options.longs === String ? String(message.noread) : message.noread;
  10024. else
  10025. object.noread = options.longs === String ? $util.Long.prototype.toString.call(message.noread) : options.longs === Number ? new $util.LongBits(message.noread.low >>> 0, message.noread.high >>> 0).toNumber() : message.noread;
  10026. if (message.needread != null && message.hasOwnProperty("needread"))
  10027. if (typeof message.needread === "number")
  10028. object.needread = options.longs === String ? String(message.needread) : message.needread;
  10029. else
  10030. object.needread = options.longs === String ? $util.Long.prototype.toString.call(message.needread) : options.longs === Number ? new $util.LongBits(message.needread.low >>> 0, message.needread.high >>> 0).toNumber() : message.needread;
  10031. return object;
  10032. };
  10033. /**
  10034. * Converts this simple_mail to JSON.
  10035. * @function toJSON
  10036. * @memberof game.simple_mail
  10037. * @instance
  10038. * @returns {Object.<string,*>} JSON object
  10039. */
  10040. simple_mail.prototype.toJSON = function toJSON() {
  10041. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10042. };
  10043. return simple_mail;
  10044. })();
  10045. game.embattle_get_data = (function() {
  10046. /**
  10047. * Properties of an embattle_get_data.
  10048. * @memberof game
  10049. * @interface Iembattle_get_data
  10050. */
  10051. /**
  10052. * Constructs a new embattle_get_data.
  10053. * @memberof game
  10054. * @classdesc Represents an embattle_get_data.
  10055. * @implements Iembattle_get_data
  10056. * @constructor
  10057. * @param {game.Iembattle_get_data=} [properties] Properties to set
  10058. */
  10059. function embattle_get_data(properties) {
  10060. if (properties)
  10061. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10062. if (properties[keys[i]] != null)
  10063. this[keys[i]] = properties[keys[i]];
  10064. }
  10065. /**
  10066. * Creates a new embattle_get_data instance using the specified properties.
  10067. * @function create
  10068. * @memberof game.embattle_get_data
  10069. * @static
  10070. * @param {game.Iembattle_get_data=} [properties] Properties to set
  10071. * @returns {game.embattle_get_data} embattle_get_data instance
  10072. */
  10073. embattle_get_data.create = function create(properties) {
  10074. return new embattle_get_data(properties);
  10075. };
  10076. /**
  10077. * Encodes the specified embattle_get_data message. Does not implicitly {@link game.embattle_get_data.verify|verify} messages.
  10078. * @function encode
  10079. * @memberof game.embattle_get_data
  10080. * @static
  10081. * @param {game.Iembattle_get_data} message embattle_get_data message or plain object to encode
  10082. * @param {$protobuf.Writer} [writer] Writer to encode to
  10083. * @returns {$protobuf.Writer} Writer
  10084. */
  10085. embattle_get_data.encode = function encode(message, writer) {
  10086. if (!writer)
  10087. writer = $Writer.create();
  10088. return writer;
  10089. };
  10090. /**
  10091. * Encodes the specified embattle_get_data message, length delimited. Does not implicitly {@link game.embattle_get_data.verify|verify} messages.
  10092. * @function encodeDelimited
  10093. * @memberof game.embattle_get_data
  10094. * @static
  10095. * @param {game.Iembattle_get_data} message embattle_get_data message or plain object to encode
  10096. * @param {$protobuf.Writer} [writer] Writer to encode to
  10097. * @returns {$protobuf.Writer} Writer
  10098. */
  10099. embattle_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  10100. return this.encode(message, writer).ldelim();
  10101. };
  10102. /**
  10103. * Decodes an embattle_get_data message from the specified reader or buffer.
  10104. * @function decode
  10105. * @memberof game.embattle_get_data
  10106. * @static
  10107. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10108. * @param {number} [length] Message length if known beforehand
  10109. * @returns {game.embattle_get_data} embattle_get_data
  10110. * @throws {Error} If the payload is not a reader or valid buffer
  10111. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10112. */
  10113. embattle_get_data.decode = function decode(reader, length) {
  10114. if (!(reader instanceof $Reader))
  10115. reader = $Reader.create(reader);
  10116. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_get_data();
  10117. while (reader.pos < end) {
  10118. let tag = reader.uint32();
  10119. switch (tag >>> 3) {
  10120. default:
  10121. reader.skipType(tag & 7);
  10122. break;
  10123. }
  10124. }
  10125. return message;
  10126. };
  10127. /**
  10128. * Decodes an embattle_get_data message from the specified reader or buffer, length delimited.
  10129. * @function decodeDelimited
  10130. * @memberof game.embattle_get_data
  10131. * @static
  10132. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10133. * @returns {game.embattle_get_data} embattle_get_data
  10134. * @throws {Error} If the payload is not a reader or valid buffer
  10135. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10136. */
  10137. embattle_get_data.decodeDelimited = function decodeDelimited(reader) {
  10138. if (!(reader instanceof $Reader))
  10139. reader = new $Reader(reader);
  10140. return this.decode(reader, reader.uint32());
  10141. };
  10142. /**
  10143. * Verifies an embattle_get_data message.
  10144. * @function verify
  10145. * @memberof game.embattle_get_data
  10146. * @static
  10147. * @param {Object.<string,*>} message Plain object to verify
  10148. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10149. */
  10150. embattle_get_data.verify = function verify(message) {
  10151. if (typeof message !== "object" || message === null)
  10152. return "object expected";
  10153. return null;
  10154. };
  10155. /**
  10156. * Creates an embattle_get_data message from a plain object. Also converts values to their respective internal types.
  10157. * @function fromObject
  10158. * @memberof game.embattle_get_data
  10159. * @static
  10160. * @param {Object.<string,*>} object Plain object
  10161. * @returns {game.embattle_get_data} embattle_get_data
  10162. */
  10163. embattle_get_data.fromObject = function fromObject(object) {
  10164. if (object instanceof $root.game.embattle_get_data)
  10165. return object;
  10166. return new $root.game.embattle_get_data();
  10167. };
  10168. /**
  10169. * Creates a plain object from an embattle_get_data message. Also converts values to other types if specified.
  10170. * @function toObject
  10171. * @memberof game.embattle_get_data
  10172. * @static
  10173. * @param {game.embattle_get_data} message embattle_get_data
  10174. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10175. * @returns {Object.<string,*>} Plain object
  10176. */
  10177. embattle_get_data.toObject = function toObject() {
  10178. return {};
  10179. };
  10180. /**
  10181. * Converts this embattle_get_data to JSON.
  10182. * @function toJSON
  10183. * @memberof game.embattle_get_data
  10184. * @instance
  10185. * @returns {Object.<string,*>} JSON object
  10186. */
  10187. embattle_get_data.prototype.toJSON = function toJSON() {
  10188. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10189. };
  10190. return embattle_get_data;
  10191. })();
  10192. game.embattle_get_data_rsp = (function() {
  10193. /**
  10194. * Properties of an embattle_get_data_rsp.
  10195. * @memberof game
  10196. * @interface Iembattle_get_data_rsp
  10197. * @property {number|Long|null} [errno] embattle_get_data_rsp errno
  10198. * @property {Array.<game.Isid_pos>|null} [list] embattle_get_data_rsp list
  10199. * @property {Array.<game.Isid_pos>|null} [cardList] embattle_get_data_rsp cardList
  10200. */
  10201. /**
  10202. * Constructs a new embattle_get_data_rsp.
  10203. * @memberof game
  10204. * @classdesc Represents an embattle_get_data_rsp.
  10205. * @implements Iembattle_get_data_rsp
  10206. * @constructor
  10207. * @param {game.Iembattle_get_data_rsp=} [properties] Properties to set
  10208. */
  10209. function embattle_get_data_rsp(properties) {
  10210. this.list = [];
  10211. this.cardList = [];
  10212. if (properties)
  10213. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10214. if (properties[keys[i]] != null)
  10215. this[keys[i]] = properties[keys[i]];
  10216. }
  10217. /**
  10218. * embattle_get_data_rsp errno.
  10219. * @member {number|Long} errno
  10220. * @memberof game.embattle_get_data_rsp
  10221. * @instance
  10222. */
  10223. embattle_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10224. /**
  10225. * embattle_get_data_rsp list.
  10226. * @member {Array.<game.Isid_pos>} list
  10227. * @memberof game.embattle_get_data_rsp
  10228. * @instance
  10229. */
  10230. embattle_get_data_rsp.prototype.list = $util.emptyArray;
  10231. /**
  10232. * embattle_get_data_rsp cardList.
  10233. * @member {Array.<game.Isid_pos>} cardList
  10234. * @memberof game.embattle_get_data_rsp
  10235. * @instance
  10236. */
  10237. embattle_get_data_rsp.prototype.cardList = $util.emptyArray;
  10238. /**
  10239. * Creates a new embattle_get_data_rsp instance using the specified properties.
  10240. * @function create
  10241. * @memberof game.embattle_get_data_rsp
  10242. * @static
  10243. * @param {game.Iembattle_get_data_rsp=} [properties] Properties to set
  10244. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp instance
  10245. */
  10246. embattle_get_data_rsp.create = function create(properties) {
  10247. return new embattle_get_data_rsp(properties);
  10248. };
  10249. /**
  10250. * Encodes the specified embattle_get_data_rsp message. Does not implicitly {@link game.embattle_get_data_rsp.verify|verify} messages.
  10251. * @function encode
  10252. * @memberof game.embattle_get_data_rsp
  10253. * @static
  10254. * @param {game.Iembattle_get_data_rsp} message embattle_get_data_rsp message or plain object to encode
  10255. * @param {$protobuf.Writer} [writer] Writer to encode to
  10256. * @returns {$protobuf.Writer} Writer
  10257. */
  10258. embattle_get_data_rsp.encode = function encode(message, writer) {
  10259. if (!writer)
  10260. writer = $Writer.create();
  10261. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  10262. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  10263. if (message.list != null && message.list.length)
  10264. for (let i = 0; i < message.list.length; ++i)
  10265. $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  10266. if (message.cardList != null && message.cardList.length)
  10267. for (let i = 0; i < message.cardList.length; ++i)
  10268. $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  10269. return writer;
  10270. };
  10271. /**
  10272. * Encodes the specified embattle_get_data_rsp message, length delimited. Does not implicitly {@link game.embattle_get_data_rsp.verify|verify} messages.
  10273. * @function encodeDelimited
  10274. * @memberof game.embattle_get_data_rsp
  10275. * @static
  10276. * @param {game.Iembattle_get_data_rsp} message embattle_get_data_rsp message or plain object to encode
  10277. * @param {$protobuf.Writer} [writer] Writer to encode to
  10278. * @returns {$protobuf.Writer} Writer
  10279. */
  10280. embattle_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  10281. return this.encode(message, writer).ldelim();
  10282. };
  10283. /**
  10284. * Decodes an embattle_get_data_rsp message from the specified reader or buffer.
  10285. * @function decode
  10286. * @memberof game.embattle_get_data_rsp
  10287. * @static
  10288. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10289. * @param {number} [length] Message length if known beforehand
  10290. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
  10291. * @throws {Error} If the payload is not a reader or valid buffer
  10292. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10293. */
  10294. embattle_get_data_rsp.decode = function decode(reader, length) {
  10295. if (!(reader instanceof $Reader))
  10296. reader = $Reader.create(reader);
  10297. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_get_data_rsp();
  10298. while (reader.pos < end) {
  10299. let tag = reader.uint32();
  10300. switch (tag >>> 3) {
  10301. case 1:
  10302. message.errno = reader.int64();
  10303. break;
  10304. case 2:
  10305. if (!(message.list && message.list.length))
  10306. message.list = [];
  10307. message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10308. break;
  10309. case 3:
  10310. if (!(message.cardList && message.cardList.length))
  10311. message.cardList = [];
  10312. message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10313. break;
  10314. default:
  10315. reader.skipType(tag & 7);
  10316. break;
  10317. }
  10318. }
  10319. return message;
  10320. };
  10321. /**
  10322. * Decodes an embattle_get_data_rsp message from the specified reader or buffer, length delimited.
  10323. * @function decodeDelimited
  10324. * @memberof game.embattle_get_data_rsp
  10325. * @static
  10326. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10327. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
  10328. * @throws {Error} If the payload is not a reader or valid buffer
  10329. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10330. */
  10331. embattle_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  10332. if (!(reader instanceof $Reader))
  10333. reader = new $Reader(reader);
  10334. return this.decode(reader, reader.uint32());
  10335. };
  10336. /**
  10337. * Verifies an embattle_get_data_rsp message.
  10338. * @function verify
  10339. * @memberof game.embattle_get_data_rsp
  10340. * @static
  10341. * @param {Object.<string,*>} message Plain object to verify
  10342. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10343. */
  10344. embattle_get_data_rsp.verify = function verify(message) {
  10345. if (typeof message !== "object" || message === null)
  10346. return "object expected";
  10347. if (message.errno != null && message.hasOwnProperty("errno"))
  10348. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  10349. return "errno: integer|Long expected";
  10350. if (message.list != null && message.hasOwnProperty("list")) {
  10351. if (!Array.isArray(message.list))
  10352. return "list: array expected";
  10353. for (let i = 0; i < message.list.length; ++i) {
  10354. let error = $root.game.sid_pos.verify(message.list[i]);
  10355. if (error)
  10356. return "list." + error;
  10357. }
  10358. }
  10359. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  10360. if (!Array.isArray(message.cardList))
  10361. return "cardList: array expected";
  10362. for (let i = 0; i < message.cardList.length; ++i) {
  10363. let error = $root.game.sid_pos.verify(message.cardList[i]);
  10364. if (error)
  10365. return "cardList." + error;
  10366. }
  10367. }
  10368. return null;
  10369. };
  10370. /**
  10371. * Creates an embattle_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  10372. * @function fromObject
  10373. * @memberof game.embattle_get_data_rsp
  10374. * @static
  10375. * @param {Object.<string,*>} object Plain object
  10376. * @returns {game.embattle_get_data_rsp} embattle_get_data_rsp
  10377. */
  10378. embattle_get_data_rsp.fromObject = function fromObject(object) {
  10379. if (object instanceof $root.game.embattle_get_data_rsp)
  10380. return object;
  10381. let message = new $root.game.embattle_get_data_rsp();
  10382. if (object.errno != null)
  10383. if ($util.Long)
  10384. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  10385. else if (typeof object.errno === "string")
  10386. message.errno = parseInt(object.errno, 10);
  10387. else if (typeof object.errno === "number")
  10388. message.errno = object.errno;
  10389. else if (typeof object.errno === "object")
  10390. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  10391. if (object.list) {
  10392. if (!Array.isArray(object.list))
  10393. throw TypeError(".game.embattle_get_data_rsp.list: array expected");
  10394. message.list = [];
  10395. for (let i = 0; i < object.list.length; ++i) {
  10396. if (typeof object.list[i] !== "object")
  10397. throw TypeError(".game.embattle_get_data_rsp.list: object expected");
  10398. message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
  10399. }
  10400. }
  10401. if (object.cardList) {
  10402. if (!Array.isArray(object.cardList))
  10403. throw TypeError(".game.embattle_get_data_rsp.cardList: array expected");
  10404. message.cardList = [];
  10405. for (let i = 0; i < object.cardList.length; ++i) {
  10406. if (typeof object.cardList[i] !== "object")
  10407. throw TypeError(".game.embattle_get_data_rsp.cardList: object expected");
  10408. message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
  10409. }
  10410. }
  10411. return message;
  10412. };
  10413. /**
  10414. * Creates a plain object from an embattle_get_data_rsp message. Also converts values to other types if specified.
  10415. * @function toObject
  10416. * @memberof game.embattle_get_data_rsp
  10417. * @static
  10418. * @param {game.embattle_get_data_rsp} message embattle_get_data_rsp
  10419. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10420. * @returns {Object.<string,*>} Plain object
  10421. */
  10422. embattle_get_data_rsp.toObject = function toObject(message, options) {
  10423. if (!options)
  10424. options = {};
  10425. let object = {};
  10426. if (options.arrays || options.defaults) {
  10427. object.list = [];
  10428. object.cardList = [];
  10429. }
  10430. if (options.defaults)
  10431. if ($util.Long) {
  10432. let long = new $util.Long(0, 0, false);
  10433. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10434. } else
  10435. object.errno = options.longs === String ? "0" : 0;
  10436. if (message.errno != null && message.hasOwnProperty("errno"))
  10437. if (typeof message.errno === "number")
  10438. object.errno = options.longs === String ? String(message.errno) : message.errno;
  10439. else
  10440. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  10441. if (message.list && message.list.length) {
  10442. object.list = [];
  10443. for (let j = 0; j < message.list.length; ++j)
  10444. object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
  10445. }
  10446. if (message.cardList && message.cardList.length) {
  10447. object.cardList = [];
  10448. for (let j = 0; j < message.cardList.length; ++j)
  10449. object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
  10450. }
  10451. return object;
  10452. };
  10453. /**
  10454. * Converts this embattle_get_data_rsp to JSON.
  10455. * @function toJSON
  10456. * @memberof game.embattle_get_data_rsp
  10457. * @instance
  10458. * @returns {Object.<string,*>} JSON object
  10459. */
  10460. embattle_get_data_rsp.prototype.toJSON = function toJSON() {
  10461. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10462. };
  10463. return embattle_get_data_rsp;
  10464. })();
  10465. game.embattle_battle = (function() {
  10466. /**
  10467. * Properties of an embattle_battle.
  10468. * @memberof game
  10469. * @interface Iembattle_battle
  10470. * @property {boolean|null} [skill] embattle_battle skill
  10471. * @property {string|null} [sid] embattle_battle sid
  10472. * @property {number|Long|null} [pos] embattle_battle pos
  10473. */
  10474. /**
  10475. * Constructs a new embattle_battle.
  10476. * @memberof game
  10477. * @classdesc Represents an embattle_battle.
  10478. * @implements Iembattle_battle
  10479. * @constructor
  10480. * @param {game.Iembattle_battle=} [properties] Properties to set
  10481. */
  10482. function embattle_battle(properties) {
  10483. if (properties)
  10484. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10485. if (properties[keys[i]] != null)
  10486. this[keys[i]] = properties[keys[i]];
  10487. }
  10488. /**
  10489. * embattle_battle skill.
  10490. * @member {boolean} skill
  10491. * @memberof game.embattle_battle
  10492. * @instance
  10493. */
  10494. embattle_battle.prototype.skill = false;
  10495. /**
  10496. * embattle_battle sid.
  10497. * @member {string} sid
  10498. * @memberof game.embattle_battle
  10499. * @instance
  10500. */
  10501. embattle_battle.prototype.sid = "";
  10502. /**
  10503. * embattle_battle pos.
  10504. * @member {number|Long} pos
  10505. * @memberof game.embattle_battle
  10506. * @instance
  10507. */
  10508. embattle_battle.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10509. /**
  10510. * Creates a new embattle_battle instance using the specified properties.
  10511. * @function create
  10512. * @memberof game.embattle_battle
  10513. * @static
  10514. * @param {game.Iembattle_battle=} [properties] Properties to set
  10515. * @returns {game.embattle_battle} embattle_battle instance
  10516. */
  10517. embattle_battle.create = function create(properties) {
  10518. return new embattle_battle(properties);
  10519. };
  10520. /**
  10521. * Encodes the specified embattle_battle message. Does not implicitly {@link game.embattle_battle.verify|verify} messages.
  10522. * @function encode
  10523. * @memberof game.embattle_battle
  10524. * @static
  10525. * @param {game.Iembattle_battle} message embattle_battle message or plain object to encode
  10526. * @param {$protobuf.Writer} [writer] Writer to encode to
  10527. * @returns {$protobuf.Writer} Writer
  10528. */
  10529. embattle_battle.encode = function encode(message, writer) {
  10530. if (!writer)
  10531. writer = $Writer.create();
  10532. if (message.skill != null && Object.hasOwnProperty.call(message, "skill"))
  10533. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.skill);
  10534. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  10535. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  10536. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  10537. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.pos);
  10538. return writer;
  10539. };
  10540. /**
  10541. * Encodes the specified embattle_battle message, length delimited. Does not implicitly {@link game.embattle_battle.verify|verify} messages.
  10542. * @function encodeDelimited
  10543. * @memberof game.embattle_battle
  10544. * @static
  10545. * @param {game.Iembattle_battle} message embattle_battle message or plain object to encode
  10546. * @param {$protobuf.Writer} [writer] Writer to encode to
  10547. * @returns {$protobuf.Writer} Writer
  10548. */
  10549. embattle_battle.encodeDelimited = function encodeDelimited(message, writer) {
  10550. return this.encode(message, writer).ldelim();
  10551. };
  10552. /**
  10553. * Decodes an embattle_battle message from the specified reader or buffer.
  10554. * @function decode
  10555. * @memberof game.embattle_battle
  10556. * @static
  10557. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10558. * @param {number} [length] Message length if known beforehand
  10559. * @returns {game.embattle_battle} embattle_battle
  10560. * @throws {Error} If the payload is not a reader or valid buffer
  10561. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10562. */
  10563. embattle_battle.decode = function decode(reader, length) {
  10564. if (!(reader instanceof $Reader))
  10565. reader = $Reader.create(reader);
  10566. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_battle();
  10567. while (reader.pos < end) {
  10568. let tag = reader.uint32();
  10569. switch (tag >>> 3) {
  10570. case 1:
  10571. message.skill = reader.bool();
  10572. break;
  10573. case 2:
  10574. message.sid = reader.string();
  10575. break;
  10576. case 3:
  10577. message.pos = reader.int64();
  10578. break;
  10579. default:
  10580. reader.skipType(tag & 7);
  10581. break;
  10582. }
  10583. }
  10584. return message;
  10585. };
  10586. /**
  10587. * Decodes an embattle_battle message from the specified reader or buffer, length delimited.
  10588. * @function decodeDelimited
  10589. * @memberof game.embattle_battle
  10590. * @static
  10591. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10592. * @returns {game.embattle_battle} embattle_battle
  10593. * @throws {Error} If the payload is not a reader or valid buffer
  10594. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10595. */
  10596. embattle_battle.decodeDelimited = function decodeDelimited(reader) {
  10597. if (!(reader instanceof $Reader))
  10598. reader = new $Reader(reader);
  10599. return this.decode(reader, reader.uint32());
  10600. };
  10601. /**
  10602. * Verifies an embattle_battle message.
  10603. * @function verify
  10604. * @memberof game.embattle_battle
  10605. * @static
  10606. * @param {Object.<string,*>} message Plain object to verify
  10607. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10608. */
  10609. embattle_battle.verify = function verify(message) {
  10610. if (typeof message !== "object" || message === null)
  10611. return "object expected";
  10612. if (message.skill != null && message.hasOwnProperty("skill"))
  10613. if (typeof message.skill !== "boolean")
  10614. return "skill: boolean expected";
  10615. if (message.sid != null && message.hasOwnProperty("sid"))
  10616. if (!$util.isString(message.sid))
  10617. return "sid: string expected";
  10618. if (message.pos != null && message.hasOwnProperty("pos"))
  10619. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  10620. return "pos: integer|Long expected";
  10621. return null;
  10622. };
  10623. /**
  10624. * Creates an embattle_battle message from a plain object. Also converts values to their respective internal types.
  10625. * @function fromObject
  10626. * @memberof game.embattle_battle
  10627. * @static
  10628. * @param {Object.<string,*>} object Plain object
  10629. * @returns {game.embattle_battle} embattle_battle
  10630. */
  10631. embattle_battle.fromObject = function fromObject(object) {
  10632. if (object instanceof $root.game.embattle_battle)
  10633. return object;
  10634. let message = new $root.game.embattle_battle();
  10635. if (object.skill != null)
  10636. message.skill = Boolean(object.skill);
  10637. if (object.sid != null)
  10638. message.sid = String(object.sid);
  10639. if (object.pos != null)
  10640. if ($util.Long)
  10641. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  10642. else if (typeof object.pos === "string")
  10643. message.pos = parseInt(object.pos, 10);
  10644. else if (typeof object.pos === "number")
  10645. message.pos = object.pos;
  10646. else if (typeof object.pos === "object")
  10647. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  10648. return message;
  10649. };
  10650. /**
  10651. * Creates a plain object from an embattle_battle message. Also converts values to other types if specified.
  10652. * @function toObject
  10653. * @memberof game.embattle_battle
  10654. * @static
  10655. * @param {game.embattle_battle} message embattle_battle
  10656. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10657. * @returns {Object.<string,*>} Plain object
  10658. */
  10659. embattle_battle.toObject = function toObject(message, options) {
  10660. if (!options)
  10661. options = {};
  10662. let object = {};
  10663. if (options.defaults) {
  10664. object.skill = false;
  10665. object.sid = "";
  10666. if ($util.Long) {
  10667. let long = new $util.Long(0, 0, false);
  10668. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10669. } else
  10670. object.pos = options.longs === String ? "0" : 0;
  10671. }
  10672. if (message.skill != null && message.hasOwnProperty("skill"))
  10673. object.skill = message.skill;
  10674. if (message.sid != null && message.hasOwnProperty("sid"))
  10675. object.sid = message.sid;
  10676. if (message.pos != null && message.hasOwnProperty("pos"))
  10677. if (typeof message.pos === "number")
  10678. object.pos = options.longs === String ? String(message.pos) : message.pos;
  10679. else
  10680. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  10681. return object;
  10682. };
  10683. /**
  10684. * Converts this embattle_battle to JSON.
  10685. * @function toJSON
  10686. * @memberof game.embattle_battle
  10687. * @instance
  10688. * @returns {Object.<string,*>} JSON object
  10689. */
  10690. embattle_battle.prototype.toJSON = function toJSON() {
  10691. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10692. };
  10693. return embattle_battle;
  10694. })();
  10695. game.embattle_battle_rsp = (function() {
  10696. /**
  10697. * Properties of an embattle_battle_rsp.
  10698. * @memberof game
  10699. * @interface Iembattle_battle_rsp
  10700. * @property {number|Long|null} [errno] embattle_battle_rsp errno
  10701. * @property {Array.<game.Isid_pos>|null} [list] embattle_battle_rsp list
  10702. * @property {Array.<game.Isid_pos>|null} [cardList] embattle_battle_rsp cardList
  10703. */
  10704. /**
  10705. * Constructs a new embattle_battle_rsp.
  10706. * @memberof game
  10707. * @classdesc Represents an embattle_battle_rsp.
  10708. * @implements Iembattle_battle_rsp
  10709. * @constructor
  10710. * @param {game.Iembattle_battle_rsp=} [properties] Properties to set
  10711. */
  10712. function embattle_battle_rsp(properties) {
  10713. this.list = [];
  10714. this.cardList = [];
  10715. if (properties)
  10716. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10717. if (properties[keys[i]] != null)
  10718. this[keys[i]] = properties[keys[i]];
  10719. }
  10720. /**
  10721. * embattle_battle_rsp errno.
  10722. * @member {number|Long} errno
  10723. * @memberof game.embattle_battle_rsp
  10724. * @instance
  10725. */
  10726. embattle_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  10727. /**
  10728. * embattle_battle_rsp list.
  10729. * @member {Array.<game.Isid_pos>} list
  10730. * @memberof game.embattle_battle_rsp
  10731. * @instance
  10732. */
  10733. embattle_battle_rsp.prototype.list = $util.emptyArray;
  10734. /**
  10735. * embattle_battle_rsp cardList.
  10736. * @member {Array.<game.Isid_pos>} cardList
  10737. * @memberof game.embattle_battle_rsp
  10738. * @instance
  10739. */
  10740. embattle_battle_rsp.prototype.cardList = $util.emptyArray;
  10741. /**
  10742. * Creates a new embattle_battle_rsp instance using the specified properties.
  10743. * @function create
  10744. * @memberof game.embattle_battle_rsp
  10745. * @static
  10746. * @param {game.Iembattle_battle_rsp=} [properties] Properties to set
  10747. * @returns {game.embattle_battle_rsp} embattle_battle_rsp instance
  10748. */
  10749. embattle_battle_rsp.create = function create(properties) {
  10750. return new embattle_battle_rsp(properties);
  10751. };
  10752. /**
  10753. * Encodes the specified embattle_battle_rsp message. Does not implicitly {@link game.embattle_battle_rsp.verify|verify} messages.
  10754. * @function encode
  10755. * @memberof game.embattle_battle_rsp
  10756. * @static
  10757. * @param {game.Iembattle_battle_rsp} message embattle_battle_rsp message or plain object to encode
  10758. * @param {$protobuf.Writer} [writer] Writer to encode to
  10759. * @returns {$protobuf.Writer} Writer
  10760. */
  10761. embattle_battle_rsp.encode = function encode(message, writer) {
  10762. if (!writer)
  10763. writer = $Writer.create();
  10764. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  10765. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  10766. if (message.list != null && message.list.length)
  10767. for (let i = 0; i < message.list.length; ++i)
  10768. $root.game.sid_pos.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  10769. if (message.cardList != null && message.cardList.length)
  10770. for (let i = 0; i < message.cardList.length; ++i)
  10771. $root.game.sid_pos.encode(message.cardList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  10772. return writer;
  10773. };
  10774. /**
  10775. * Encodes the specified embattle_battle_rsp message, length delimited. Does not implicitly {@link game.embattle_battle_rsp.verify|verify} messages.
  10776. * @function encodeDelimited
  10777. * @memberof game.embattle_battle_rsp
  10778. * @static
  10779. * @param {game.Iembattle_battle_rsp} message embattle_battle_rsp message or plain object to encode
  10780. * @param {$protobuf.Writer} [writer] Writer to encode to
  10781. * @returns {$protobuf.Writer} Writer
  10782. */
  10783. embattle_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  10784. return this.encode(message, writer).ldelim();
  10785. };
  10786. /**
  10787. * Decodes an embattle_battle_rsp message from the specified reader or buffer.
  10788. * @function decode
  10789. * @memberof game.embattle_battle_rsp
  10790. * @static
  10791. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10792. * @param {number} [length] Message length if known beforehand
  10793. * @returns {game.embattle_battle_rsp} embattle_battle_rsp
  10794. * @throws {Error} If the payload is not a reader or valid buffer
  10795. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10796. */
  10797. embattle_battle_rsp.decode = function decode(reader, length) {
  10798. if (!(reader instanceof $Reader))
  10799. reader = $Reader.create(reader);
  10800. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.embattle_battle_rsp();
  10801. while (reader.pos < end) {
  10802. let tag = reader.uint32();
  10803. switch (tag >>> 3) {
  10804. case 1:
  10805. message.errno = reader.int64();
  10806. break;
  10807. case 2:
  10808. if (!(message.list && message.list.length))
  10809. message.list = [];
  10810. message.list.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10811. break;
  10812. case 3:
  10813. if (!(message.cardList && message.cardList.length))
  10814. message.cardList = [];
  10815. message.cardList.push($root.game.sid_pos.decode(reader, reader.uint32()));
  10816. break;
  10817. default:
  10818. reader.skipType(tag & 7);
  10819. break;
  10820. }
  10821. }
  10822. return message;
  10823. };
  10824. /**
  10825. * Decodes an embattle_battle_rsp message from the specified reader or buffer, length delimited.
  10826. * @function decodeDelimited
  10827. * @memberof game.embattle_battle_rsp
  10828. * @static
  10829. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  10830. * @returns {game.embattle_battle_rsp} embattle_battle_rsp
  10831. * @throws {Error} If the payload is not a reader or valid buffer
  10832. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  10833. */
  10834. embattle_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  10835. if (!(reader instanceof $Reader))
  10836. reader = new $Reader(reader);
  10837. return this.decode(reader, reader.uint32());
  10838. };
  10839. /**
  10840. * Verifies an embattle_battle_rsp message.
  10841. * @function verify
  10842. * @memberof game.embattle_battle_rsp
  10843. * @static
  10844. * @param {Object.<string,*>} message Plain object to verify
  10845. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  10846. */
  10847. embattle_battle_rsp.verify = function verify(message) {
  10848. if (typeof message !== "object" || message === null)
  10849. return "object expected";
  10850. if (message.errno != null && message.hasOwnProperty("errno"))
  10851. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  10852. return "errno: integer|Long expected";
  10853. if (message.list != null && message.hasOwnProperty("list")) {
  10854. if (!Array.isArray(message.list))
  10855. return "list: array expected";
  10856. for (let i = 0; i < message.list.length; ++i) {
  10857. let error = $root.game.sid_pos.verify(message.list[i]);
  10858. if (error)
  10859. return "list." + error;
  10860. }
  10861. }
  10862. if (message.cardList != null && message.hasOwnProperty("cardList")) {
  10863. if (!Array.isArray(message.cardList))
  10864. return "cardList: array expected";
  10865. for (let i = 0; i < message.cardList.length; ++i) {
  10866. let error = $root.game.sid_pos.verify(message.cardList[i]);
  10867. if (error)
  10868. return "cardList." + error;
  10869. }
  10870. }
  10871. return null;
  10872. };
  10873. /**
  10874. * Creates an embattle_battle_rsp message from a plain object. Also converts values to their respective internal types.
  10875. * @function fromObject
  10876. * @memberof game.embattle_battle_rsp
  10877. * @static
  10878. * @param {Object.<string,*>} object Plain object
  10879. * @returns {game.embattle_battle_rsp} embattle_battle_rsp
  10880. */
  10881. embattle_battle_rsp.fromObject = function fromObject(object) {
  10882. if (object instanceof $root.game.embattle_battle_rsp)
  10883. return object;
  10884. let message = new $root.game.embattle_battle_rsp();
  10885. if (object.errno != null)
  10886. if ($util.Long)
  10887. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  10888. else if (typeof object.errno === "string")
  10889. message.errno = parseInt(object.errno, 10);
  10890. else if (typeof object.errno === "number")
  10891. message.errno = object.errno;
  10892. else if (typeof object.errno === "object")
  10893. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  10894. if (object.list) {
  10895. if (!Array.isArray(object.list))
  10896. throw TypeError(".game.embattle_battle_rsp.list: array expected");
  10897. message.list = [];
  10898. for (let i = 0; i < object.list.length; ++i) {
  10899. if (typeof object.list[i] !== "object")
  10900. throw TypeError(".game.embattle_battle_rsp.list: object expected");
  10901. message.list[i] = $root.game.sid_pos.fromObject(object.list[i]);
  10902. }
  10903. }
  10904. if (object.cardList) {
  10905. if (!Array.isArray(object.cardList))
  10906. throw TypeError(".game.embattle_battle_rsp.cardList: array expected");
  10907. message.cardList = [];
  10908. for (let i = 0; i < object.cardList.length; ++i) {
  10909. if (typeof object.cardList[i] !== "object")
  10910. throw TypeError(".game.embattle_battle_rsp.cardList: object expected");
  10911. message.cardList[i] = $root.game.sid_pos.fromObject(object.cardList[i]);
  10912. }
  10913. }
  10914. return message;
  10915. };
  10916. /**
  10917. * Creates a plain object from an embattle_battle_rsp message. Also converts values to other types if specified.
  10918. * @function toObject
  10919. * @memberof game.embattle_battle_rsp
  10920. * @static
  10921. * @param {game.embattle_battle_rsp} message embattle_battle_rsp
  10922. * @param {$protobuf.IConversionOptions} [options] Conversion options
  10923. * @returns {Object.<string,*>} Plain object
  10924. */
  10925. embattle_battle_rsp.toObject = function toObject(message, options) {
  10926. if (!options)
  10927. options = {};
  10928. let object = {};
  10929. if (options.arrays || options.defaults) {
  10930. object.list = [];
  10931. object.cardList = [];
  10932. }
  10933. if (options.defaults)
  10934. if ($util.Long) {
  10935. let long = new $util.Long(0, 0, false);
  10936. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  10937. } else
  10938. object.errno = options.longs === String ? "0" : 0;
  10939. if (message.errno != null && message.hasOwnProperty("errno"))
  10940. if (typeof message.errno === "number")
  10941. object.errno = options.longs === String ? String(message.errno) : message.errno;
  10942. else
  10943. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  10944. if (message.list && message.list.length) {
  10945. object.list = [];
  10946. for (let j = 0; j < message.list.length; ++j)
  10947. object.list[j] = $root.game.sid_pos.toObject(message.list[j], options);
  10948. }
  10949. if (message.cardList && message.cardList.length) {
  10950. object.cardList = [];
  10951. for (let j = 0; j < message.cardList.length; ++j)
  10952. object.cardList[j] = $root.game.sid_pos.toObject(message.cardList[j], options);
  10953. }
  10954. return object;
  10955. };
  10956. /**
  10957. * Converts this embattle_battle_rsp to JSON.
  10958. * @function toJSON
  10959. * @memberof game.embattle_battle_rsp
  10960. * @instance
  10961. * @returns {Object.<string,*>} JSON object
  10962. */
  10963. embattle_battle_rsp.prototype.toJSON = function toJSON() {
  10964. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  10965. };
  10966. return embattle_battle_rsp;
  10967. })();
  10968. game.hero_get_data = (function() {
  10969. /**
  10970. * Properties of a hero_get_data.
  10971. * @memberof game
  10972. * @interface Ihero_get_data
  10973. */
  10974. /**
  10975. * Constructs a new hero_get_data.
  10976. * @memberof game
  10977. * @classdesc Represents a hero_get_data.
  10978. * @implements Ihero_get_data
  10979. * @constructor
  10980. * @param {game.Ihero_get_data=} [properties] Properties to set
  10981. */
  10982. function hero_get_data(properties) {
  10983. if (properties)
  10984. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  10985. if (properties[keys[i]] != null)
  10986. this[keys[i]] = properties[keys[i]];
  10987. }
  10988. /**
  10989. * Creates a new hero_get_data instance using the specified properties.
  10990. * @function create
  10991. * @memberof game.hero_get_data
  10992. * @static
  10993. * @param {game.Ihero_get_data=} [properties] Properties to set
  10994. * @returns {game.hero_get_data} hero_get_data instance
  10995. */
  10996. hero_get_data.create = function create(properties) {
  10997. return new hero_get_data(properties);
  10998. };
  10999. /**
  11000. * Encodes the specified hero_get_data message. Does not implicitly {@link game.hero_get_data.verify|verify} messages.
  11001. * @function encode
  11002. * @memberof game.hero_get_data
  11003. * @static
  11004. * @param {game.Ihero_get_data} message hero_get_data message or plain object to encode
  11005. * @param {$protobuf.Writer} [writer] Writer to encode to
  11006. * @returns {$protobuf.Writer} Writer
  11007. */
  11008. hero_get_data.encode = function encode(message, writer) {
  11009. if (!writer)
  11010. writer = $Writer.create();
  11011. return writer;
  11012. };
  11013. /**
  11014. * Encodes the specified hero_get_data message, length delimited. Does not implicitly {@link game.hero_get_data.verify|verify} messages.
  11015. * @function encodeDelimited
  11016. * @memberof game.hero_get_data
  11017. * @static
  11018. * @param {game.Ihero_get_data} message hero_get_data message or plain object to encode
  11019. * @param {$protobuf.Writer} [writer] Writer to encode to
  11020. * @returns {$protobuf.Writer} Writer
  11021. */
  11022. hero_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  11023. return this.encode(message, writer).ldelim();
  11024. };
  11025. /**
  11026. * Decodes a hero_get_data message from the specified reader or buffer.
  11027. * @function decode
  11028. * @memberof game.hero_get_data
  11029. * @static
  11030. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11031. * @param {number} [length] Message length if known beforehand
  11032. * @returns {game.hero_get_data} hero_get_data
  11033. * @throws {Error} If the payload is not a reader or valid buffer
  11034. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11035. */
  11036. hero_get_data.decode = function decode(reader, length) {
  11037. if (!(reader instanceof $Reader))
  11038. reader = $Reader.create(reader);
  11039. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_get_data();
  11040. while (reader.pos < end) {
  11041. let tag = reader.uint32();
  11042. switch (tag >>> 3) {
  11043. default:
  11044. reader.skipType(tag & 7);
  11045. break;
  11046. }
  11047. }
  11048. return message;
  11049. };
  11050. /**
  11051. * Decodes a hero_get_data message from the specified reader or buffer, length delimited.
  11052. * @function decodeDelimited
  11053. * @memberof game.hero_get_data
  11054. * @static
  11055. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11056. * @returns {game.hero_get_data} hero_get_data
  11057. * @throws {Error} If the payload is not a reader or valid buffer
  11058. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11059. */
  11060. hero_get_data.decodeDelimited = function decodeDelimited(reader) {
  11061. if (!(reader instanceof $Reader))
  11062. reader = new $Reader(reader);
  11063. return this.decode(reader, reader.uint32());
  11064. };
  11065. /**
  11066. * Verifies a hero_get_data message.
  11067. * @function verify
  11068. * @memberof game.hero_get_data
  11069. * @static
  11070. * @param {Object.<string,*>} message Plain object to verify
  11071. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11072. */
  11073. hero_get_data.verify = function verify(message) {
  11074. if (typeof message !== "object" || message === null)
  11075. return "object expected";
  11076. return null;
  11077. };
  11078. /**
  11079. * Creates a hero_get_data message from a plain object. Also converts values to their respective internal types.
  11080. * @function fromObject
  11081. * @memberof game.hero_get_data
  11082. * @static
  11083. * @param {Object.<string,*>} object Plain object
  11084. * @returns {game.hero_get_data} hero_get_data
  11085. */
  11086. hero_get_data.fromObject = function fromObject(object) {
  11087. if (object instanceof $root.game.hero_get_data)
  11088. return object;
  11089. return new $root.game.hero_get_data();
  11090. };
  11091. /**
  11092. * Creates a plain object from a hero_get_data message. Also converts values to other types if specified.
  11093. * @function toObject
  11094. * @memberof game.hero_get_data
  11095. * @static
  11096. * @param {game.hero_get_data} message hero_get_data
  11097. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11098. * @returns {Object.<string,*>} Plain object
  11099. */
  11100. hero_get_data.toObject = function toObject() {
  11101. return {};
  11102. };
  11103. /**
  11104. * Converts this hero_get_data to JSON.
  11105. * @function toJSON
  11106. * @memberof game.hero_get_data
  11107. * @instance
  11108. * @returns {Object.<string,*>} JSON object
  11109. */
  11110. hero_get_data.prototype.toJSON = function toJSON() {
  11111. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11112. };
  11113. return hero_get_data;
  11114. })();
  11115. game.hero_get_data_rsp = (function() {
  11116. /**
  11117. * Properties of a hero_get_data_rsp.
  11118. * @memberof game
  11119. * @interface Ihero_get_data_rsp
  11120. * @property {number|Long|null} [errno] hero_get_data_rsp errno
  11121. * @property {Array.<game.Ihero>|null} [list] hero_get_data_rsp list
  11122. */
  11123. /**
  11124. * Constructs a new hero_get_data_rsp.
  11125. * @memberof game
  11126. * @classdesc Represents a hero_get_data_rsp.
  11127. * @implements Ihero_get_data_rsp
  11128. * @constructor
  11129. * @param {game.Ihero_get_data_rsp=} [properties] Properties to set
  11130. */
  11131. function hero_get_data_rsp(properties) {
  11132. this.list = [];
  11133. if (properties)
  11134. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11135. if (properties[keys[i]] != null)
  11136. this[keys[i]] = properties[keys[i]];
  11137. }
  11138. /**
  11139. * hero_get_data_rsp errno.
  11140. * @member {number|Long} errno
  11141. * @memberof game.hero_get_data_rsp
  11142. * @instance
  11143. */
  11144. hero_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11145. /**
  11146. * hero_get_data_rsp list.
  11147. * @member {Array.<game.Ihero>} list
  11148. * @memberof game.hero_get_data_rsp
  11149. * @instance
  11150. */
  11151. hero_get_data_rsp.prototype.list = $util.emptyArray;
  11152. /**
  11153. * Creates a new hero_get_data_rsp instance using the specified properties.
  11154. * @function create
  11155. * @memberof game.hero_get_data_rsp
  11156. * @static
  11157. * @param {game.Ihero_get_data_rsp=} [properties] Properties to set
  11158. * @returns {game.hero_get_data_rsp} hero_get_data_rsp instance
  11159. */
  11160. hero_get_data_rsp.create = function create(properties) {
  11161. return new hero_get_data_rsp(properties);
  11162. };
  11163. /**
  11164. * Encodes the specified hero_get_data_rsp message. Does not implicitly {@link game.hero_get_data_rsp.verify|verify} messages.
  11165. * @function encode
  11166. * @memberof game.hero_get_data_rsp
  11167. * @static
  11168. * @param {game.Ihero_get_data_rsp} message hero_get_data_rsp message or plain object to encode
  11169. * @param {$protobuf.Writer} [writer] Writer to encode to
  11170. * @returns {$protobuf.Writer} Writer
  11171. */
  11172. hero_get_data_rsp.encode = function encode(message, writer) {
  11173. if (!writer)
  11174. writer = $Writer.create();
  11175. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  11176. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  11177. if (message.list != null && message.list.length)
  11178. for (let i = 0; i < message.list.length; ++i)
  11179. $root.game.hero.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  11180. return writer;
  11181. };
  11182. /**
  11183. * Encodes the specified hero_get_data_rsp message, length delimited. Does not implicitly {@link game.hero_get_data_rsp.verify|verify} messages.
  11184. * @function encodeDelimited
  11185. * @memberof game.hero_get_data_rsp
  11186. * @static
  11187. * @param {game.Ihero_get_data_rsp} message hero_get_data_rsp message or plain object to encode
  11188. * @param {$protobuf.Writer} [writer] Writer to encode to
  11189. * @returns {$protobuf.Writer} Writer
  11190. */
  11191. hero_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  11192. return this.encode(message, writer).ldelim();
  11193. };
  11194. /**
  11195. * Decodes a hero_get_data_rsp message from the specified reader or buffer.
  11196. * @function decode
  11197. * @memberof game.hero_get_data_rsp
  11198. * @static
  11199. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11200. * @param {number} [length] Message length if known beforehand
  11201. * @returns {game.hero_get_data_rsp} hero_get_data_rsp
  11202. * @throws {Error} If the payload is not a reader or valid buffer
  11203. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11204. */
  11205. hero_get_data_rsp.decode = function decode(reader, length) {
  11206. if (!(reader instanceof $Reader))
  11207. reader = $Reader.create(reader);
  11208. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_get_data_rsp();
  11209. while (reader.pos < end) {
  11210. let tag = reader.uint32();
  11211. switch (tag >>> 3) {
  11212. case 1:
  11213. message.errno = reader.int64();
  11214. break;
  11215. case 2:
  11216. if (!(message.list && message.list.length))
  11217. message.list = [];
  11218. message.list.push($root.game.hero.decode(reader, reader.uint32()));
  11219. break;
  11220. default:
  11221. reader.skipType(tag & 7);
  11222. break;
  11223. }
  11224. }
  11225. return message;
  11226. };
  11227. /**
  11228. * Decodes a hero_get_data_rsp message from the specified reader or buffer, length delimited.
  11229. * @function decodeDelimited
  11230. * @memberof game.hero_get_data_rsp
  11231. * @static
  11232. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11233. * @returns {game.hero_get_data_rsp} hero_get_data_rsp
  11234. * @throws {Error} If the payload is not a reader or valid buffer
  11235. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11236. */
  11237. hero_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  11238. if (!(reader instanceof $Reader))
  11239. reader = new $Reader(reader);
  11240. return this.decode(reader, reader.uint32());
  11241. };
  11242. /**
  11243. * Verifies a hero_get_data_rsp message.
  11244. * @function verify
  11245. * @memberof game.hero_get_data_rsp
  11246. * @static
  11247. * @param {Object.<string,*>} message Plain object to verify
  11248. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11249. */
  11250. hero_get_data_rsp.verify = function verify(message) {
  11251. if (typeof message !== "object" || message === null)
  11252. return "object expected";
  11253. if (message.errno != null && message.hasOwnProperty("errno"))
  11254. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  11255. return "errno: integer|Long expected";
  11256. if (message.list != null && message.hasOwnProperty("list")) {
  11257. if (!Array.isArray(message.list))
  11258. return "list: array expected";
  11259. for (let i = 0; i < message.list.length; ++i) {
  11260. let error = $root.game.hero.verify(message.list[i]);
  11261. if (error)
  11262. return "list." + error;
  11263. }
  11264. }
  11265. return null;
  11266. };
  11267. /**
  11268. * Creates a hero_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  11269. * @function fromObject
  11270. * @memberof game.hero_get_data_rsp
  11271. * @static
  11272. * @param {Object.<string,*>} object Plain object
  11273. * @returns {game.hero_get_data_rsp} hero_get_data_rsp
  11274. */
  11275. hero_get_data_rsp.fromObject = function fromObject(object) {
  11276. if (object instanceof $root.game.hero_get_data_rsp)
  11277. return object;
  11278. let message = new $root.game.hero_get_data_rsp();
  11279. if (object.errno != null)
  11280. if ($util.Long)
  11281. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  11282. else if (typeof object.errno === "string")
  11283. message.errno = parseInt(object.errno, 10);
  11284. else if (typeof object.errno === "number")
  11285. message.errno = object.errno;
  11286. else if (typeof object.errno === "object")
  11287. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  11288. if (object.list) {
  11289. if (!Array.isArray(object.list))
  11290. throw TypeError(".game.hero_get_data_rsp.list: array expected");
  11291. message.list = [];
  11292. for (let i = 0; i < object.list.length; ++i) {
  11293. if (typeof object.list[i] !== "object")
  11294. throw TypeError(".game.hero_get_data_rsp.list: object expected");
  11295. message.list[i] = $root.game.hero.fromObject(object.list[i]);
  11296. }
  11297. }
  11298. return message;
  11299. };
  11300. /**
  11301. * Creates a plain object from a hero_get_data_rsp message. Also converts values to other types if specified.
  11302. * @function toObject
  11303. * @memberof game.hero_get_data_rsp
  11304. * @static
  11305. * @param {game.hero_get_data_rsp} message hero_get_data_rsp
  11306. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11307. * @returns {Object.<string,*>} Plain object
  11308. */
  11309. hero_get_data_rsp.toObject = function toObject(message, options) {
  11310. if (!options)
  11311. options = {};
  11312. let object = {};
  11313. if (options.arrays || options.defaults)
  11314. object.list = [];
  11315. if (options.defaults)
  11316. if ($util.Long) {
  11317. let long = new $util.Long(0, 0, false);
  11318. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11319. } else
  11320. object.errno = options.longs === String ? "0" : 0;
  11321. if (message.errno != null && message.hasOwnProperty("errno"))
  11322. if (typeof message.errno === "number")
  11323. object.errno = options.longs === String ? String(message.errno) : message.errno;
  11324. else
  11325. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  11326. if (message.list && message.list.length) {
  11327. object.list = [];
  11328. for (let j = 0; j < message.list.length; ++j)
  11329. object.list[j] = $root.game.hero.toObject(message.list[j], options);
  11330. }
  11331. return object;
  11332. };
  11333. /**
  11334. * Converts this hero_get_data_rsp to JSON.
  11335. * @function toJSON
  11336. * @memberof game.hero_get_data_rsp
  11337. * @instance
  11338. * @returns {Object.<string,*>} JSON object
  11339. */
  11340. hero_get_data_rsp.prototype.toJSON = function toJSON() {
  11341. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11342. };
  11343. return hero_get_data_rsp;
  11344. })();
  11345. game.hero_upgrade = (function() {
  11346. /**
  11347. * Properties of a hero_upgrade.
  11348. * @memberof game
  11349. * @interface Ihero_upgrade
  11350. * @property {string|null} [sid] hero_upgrade sid
  11351. * @property {number|Long|null} [num] hero_upgrade num
  11352. */
  11353. /**
  11354. * Constructs a new hero_upgrade.
  11355. * @memberof game
  11356. * @classdesc Represents a hero_upgrade.
  11357. * @implements Ihero_upgrade
  11358. * @constructor
  11359. * @param {game.Ihero_upgrade=} [properties] Properties to set
  11360. */
  11361. function hero_upgrade(properties) {
  11362. if (properties)
  11363. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11364. if (properties[keys[i]] != null)
  11365. this[keys[i]] = properties[keys[i]];
  11366. }
  11367. /**
  11368. * hero_upgrade sid.
  11369. * @member {string} sid
  11370. * @memberof game.hero_upgrade
  11371. * @instance
  11372. */
  11373. hero_upgrade.prototype.sid = "";
  11374. /**
  11375. * hero_upgrade num.
  11376. * @member {number|Long} num
  11377. * @memberof game.hero_upgrade
  11378. * @instance
  11379. */
  11380. hero_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11381. /**
  11382. * Creates a new hero_upgrade instance using the specified properties.
  11383. * @function create
  11384. * @memberof game.hero_upgrade
  11385. * @static
  11386. * @param {game.Ihero_upgrade=} [properties] Properties to set
  11387. * @returns {game.hero_upgrade} hero_upgrade instance
  11388. */
  11389. hero_upgrade.create = function create(properties) {
  11390. return new hero_upgrade(properties);
  11391. };
  11392. /**
  11393. * Encodes the specified hero_upgrade message. Does not implicitly {@link game.hero_upgrade.verify|verify} messages.
  11394. * @function encode
  11395. * @memberof game.hero_upgrade
  11396. * @static
  11397. * @param {game.Ihero_upgrade} message hero_upgrade message or plain object to encode
  11398. * @param {$protobuf.Writer} [writer] Writer to encode to
  11399. * @returns {$protobuf.Writer} Writer
  11400. */
  11401. hero_upgrade.encode = function encode(message, writer) {
  11402. if (!writer)
  11403. writer = $Writer.create();
  11404. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  11405. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  11406. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  11407. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  11408. return writer;
  11409. };
  11410. /**
  11411. * Encodes the specified hero_upgrade message, length delimited. Does not implicitly {@link game.hero_upgrade.verify|verify} messages.
  11412. * @function encodeDelimited
  11413. * @memberof game.hero_upgrade
  11414. * @static
  11415. * @param {game.Ihero_upgrade} message hero_upgrade message or plain object to encode
  11416. * @param {$protobuf.Writer} [writer] Writer to encode to
  11417. * @returns {$protobuf.Writer} Writer
  11418. */
  11419. hero_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  11420. return this.encode(message, writer).ldelim();
  11421. };
  11422. /**
  11423. * Decodes a hero_upgrade message from the specified reader or buffer.
  11424. * @function decode
  11425. * @memberof game.hero_upgrade
  11426. * @static
  11427. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11428. * @param {number} [length] Message length if known beforehand
  11429. * @returns {game.hero_upgrade} hero_upgrade
  11430. * @throws {Error} If the payload is not a reader or valid buffer
  11431. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11432. */
  11433. hero_upgrade.decode = function decode(reader, length) {
  11434. if (!(reader instanceof $Reader))
  11435. reader = $Reader.create(reader);
  11436. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade();
  11437. while (reader.pos < end) {
  11438. let tag = reader.uint32();
  11439. switch (tag >>> 3) {
  11440. case 1:
  11441. message.sid = reader.string();
  11442. break;
  11443. case 2:
  11444. message.num = reader.int64();
  11445. break;
  11446. default:
  11447. reader.skipType(tag & 7);
  11448. break;
  11449. }
  11450. }
  11451. return message;
  11452. };
  11453. /**
  11454. * Decodes a hero_upgrade message from the specified reader or buffer, length delimited.
  11455. * @function decodeDelimited
  11456. * @memberof game.hero_upgrade
  11457. * @static
  11458. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11459. * @returns {game.hero_upgrade} hero_upgrade
  11460. * @throws {Error} If the payload is not a reader or valid buffer
  11461. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11462. */
  11463. hero_upgrade.decodeDelimited = function decodeDelimited(reader) {
  11464. if (!(reader instanceof $Reader))
  11465. reader = new $Reader(reader);
  11466. return this.decode(reader, reader.uint32());
  11467. };
  11468. /**
  11469. * Verifies a hero_upgrade message.
  11470. * @function verify
  11471. * @memberof game.hero_upgrade
  11472. * @static
  11473. * @param {Object.<string,*>} message Plain object to verify
  11474. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11475. */
  11476. hero_upgrade.verify = function verify(message) {
  11477. if (typeof message !== "object" || message === null)
  11478. return "object expected";
  11479. if (message.sid != null && message.hasOwnProperty("sid"))
  11480. if (!$util.isString(message.sid))
  11481. return "sid: string expected";
  11482. if (message.num != null && message.hasOwnProperty("num"))
  11483. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  11484. return "num: integer|Long expected";
  11485. return null;
  11486. };
  11487. /**
  11488. * Creates a hero_upgrade message from a plain object. Also converts values to their respective internal types.
  11489. * @function fromObject
  11490. * @memberof game.hero_upgrade
  11491. * @static
  11492. * @param {Object.<string,*>} object Plain object
  11493. * @returns {game.hero_upgrade} hero_upgrade
  11494. */
  11495. hero_upgrade.fromObject = function fromObject(object) {
  11496. if (object instanceof $root.game.hero_upgrade)
  11497. return object;
  11498. let message = new $root.game.hero_upgrade();
  11499. if (object.sid != null)
  11500. message.sid = String(object.sid);
  11501. if (object.num != null)
  11502. if ($util.Long)
  11503. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  11504. else if (typeof object.num === "string")
  11505. message.num = parseInt(object.num, 10);
  11506. else if (typeof object.num === "number")
  11507. message.num = object.num;
  11508. else if (typeof object.num === "object")
  11509. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  11510. return message;
  11511. };
  11512. /**
  11513. * Creates a plain object from a hero_upgrade message. Also converts values to other types if specified.
  11514. * @function toObject
  11515. * @memberof game.hero_upgrade
  11516. * @static
  11517. * @param {game.hero_upgrade} message hero_upgrade
  11518. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11519. * @returns {Object.<string,*>} Plain object
  11520. */
  11521. hero_upgrade.toObject = function toObject(message, options) {
  11522. if (!options)
  11523. options = {};
  11524. let object = {};
  11525. if (options.defaults) {
  11526. object.sid = "";
  11527. if ($util.Long) {
  11528. let long = new $util.Long(0, 0, false);
  11529. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11530. } else
  11531. object.num = options.longs === String ? "0" : 0;
  11532. }
  11533. if (message.sid != null && message.hasOwnProperty("sid"))
  11534. object.sid = message.sid;
  11535. if (message.num != null && message.hasOwnProperty("num"))
  11536. if (typeof message.num === "number")
  11537. object.num = options.longs === String ? String(message.num) : message.num;
  11538. else
  11539. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  11540. return object;
  11541. };
  11542. /**
  11543. * Converts this hero_upgrade to JSON.
  11544. * @function toJSON
  11545. * @memberof game.hero_upgrade
  11546. * @instance
  11547. * @returns {Object.<string,*>} JSON object
  11548. */
  11549. hero_upgrade.prototype.toJSON = function toJSON() {
  11550. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11551. };
  11552. return hero_upgrade;
  11553. })();
  11554. game.hero_upgrade_rsp = (function() {
  11555. /**
  11556. * Properties of a hero_upgrade_rsp.
  11557. * @memberof game
  11558. * @interface Ihero_upgrade_rsp
  11559. * @property {number|Long|null} [errno] hero_upgrade_rsp errno
  11560. * @property {game.Ihero|null} [data] hero_upgrade_rsp data
  11561. */
  11562. /**
  11563. * Constructs a new hero_upgrade_rsp.
  11564. * @memberof game
  11565. * @classdesc Represents a hero_upgrade_rsp.
  11566. * @implements Ihero_upgrade_rsp
  11567. * @constructor
  11568. * @param {game.Ihero_upgrade_rsp=} [properties] Properties to set
  11569. */
  11570. function hero_upgrade_rsp(properties) {
  11571. if (properties)
  11572. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11573. if (properties[keys[i]] != null)
  11574. this[keys[i]] = properties[keys[i]];
  11575. }
  11576. /**
  11577. * hero_upgrade_rsp errno.
  11578. * @member {number|Long} errno
  11579. * @memberof game.hero_upgrade_rsp
  11580. * @instance
  11581. */
  11582. hero_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  11583. /**
  11584. * hero_upgrade_rsp data.
  11585. * @member {game.Ihero|null|undefined} data
  11586. * @memberof game.hero_upgrade_rsp
  11587. * @instance
  11588. */
  11589. hero_upgrade_rsp.prototype.data = null;
  11590. /**
  11591. * Creates a new hero_upgrade_rsp instance using the specified properties.
  11592. * @function create
  11593. * @memberof game.hero_upgrade_rsp
  11594. * @static
  11595. * @param {game.Ihero_upgrade_rsp=} [properties] Properties to set
  11596. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp instance
  11597. */
  11598. hero_upgrade_rsp.create = function create(properties) {
  11599. return new hero_upgrade_rsp(properties);
  11600. };
  11601. /**
  11602. * Encodes the specified hero_upgrade_rsp message. Does not implicitly {@link game.hero_upgrade_rsp.verify|verify} messages.
  11603. * @function encode
  11604. * @memberof game.hero_upgrade_rsp
  11605. * @static
  11606. * @param {game.Ihero_upgrade_rsp} message hero_upgrade_rsp message or plain object to encode
  11607. * @param {$protobuf.Writer} [writer] Writer to encode to
  11608. * @returns {$protobuf.Writer} Writer
  11609. */
  11610. hero_upgrade_rsp.encode = function encode(message, writer) {
  11611. if (!writer)
  11612. writer = $Writer.create();
  11613. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  11614. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  11615. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  11616. $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  11617. return writer;
  11618. };
  11619. /**
  11620. * Encodes the specified hero_upgrade_rsp message, length delimited. Does not implicitly {@link game.hero_upgrade_rsp.verify|verify} messages.
  11621. * @function encodeDelimited
  11622. * @memberof game.hero_upgrade_rsp
  11623. * @static
  11624. * @param {game.Ihero_upgrade_rsp} message hero_upgrade_rsp message or plain object to encode
  11625. * @param {$protobuf.Writer} [writer] Writer to encode to
  11626. * @returns {$protobuf.Writer} Writer
  11627. */
  11628. hero_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  11629. return this.encode(message, writer).ldelim();
  11630. };
  11631. /**
  11632. * Decodes a hero_upgrade_rsp message from the specified reader or buffer.
  11633. * @function decode
  11634. * @memberof game.hero_upgrade_rsp
  11635. * @static
  11636. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11637. * @param {number} [length] Message length if known beforehand
  11638. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
  11639. * @throws {Error} If the payload is not a reader or valid buffer
  11640. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11641. */
  11642. hero_upgrade_rsp.decode = function decode(reader, length) {
  11643. if (!(reader instanceof $Reader))
  11644. reader = $Reader.create(reader);
  11645. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_rsp();
  11646. while (reader.pos < end) {
  11647. let tag = reader.uint32();
  11648. switch (tag >>> 3) {
  11649. case 1:
  11650. message.errno = reader.int64();
  11651. break;
  11652. case 2:
  11653. message.data = $root.game.hero.decode(reader, reader.uint32());
  11654. break;
  11655. default:
  11656. reader.skipType(tag & 7);
  11657. break;
  11658. }
  11659. }
  11660. return message;
  11661. };
  11662. /**
  11663. * Decodes a hero_upgrade_rsp message from the specified reader or buffer, length delimited.
  11664. * @function decodeDelimited
  11665. * @memberof game.hero_upgrade_rsp
  11666. * @static
  11667. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11668. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
  11669. * @throws {Error} If the payload is not a reader or valid buffer
  11670. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11671. */
  11672. hero_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  11673. if (!(reader instanceof $Reader))
  11674. reader = new $Reader(reader);
  11675. return this.decode(reader, reader.uint32());
  11676. };
  11677. /**
  11678. * Verifies a hero_upgrade_rsp message.
  11679. * @function verify
  11680. * @memberof game.hero_upgrade_rsp
  11681. * @static
  11682. * @param {Object.<string,*>} message Plain object to verify
  11683. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11684. */
  11685. hero_upgrade_rsp.verify = function verify(message) {
  11686. if (typeof message !== "object" || message === null)
  11687. return "object expected";
  11688. if (message.errno != null && message.hasOwnProperty("errno"))
  11689. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  11690. return "errno: integer|Long expected";
  11691. if (message.data != null && message.hasOwnProperty("data")) {
  11692. let error = $root.game.hero.verify(message.data);
  11693. if (error)
  11694. return "data." + error;
  11695. }
  11696. return null;
  11697. };
  11698. /**
  11699. * Creates a hero_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  11700. * @function fromObject
  11701. * @memberof game.hero_upgrade_rsp
  11702. * @static
  11703. * @param {Object.<string,*>} object Plain object
  11704. * @returns {game.hero_upgrade_rsp} hero_upgrade_rsp
  11705. */
  11706. hero_upgrade_rsp.fromObject = function fromObject(object) {
  11707. if (object instanceof $root.game.hero_upgrade_rsp)
  11708. return object;
  11709. let message = new $root.game.hero_upgrade_rsp();
  11710. if (object.errno != null)
  11711. if ($util.Long)
  11712. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  11713. else if (typeof object.errno === "string")
  11714. message.errno = parseInt(object.errno, 10);
  11715. else if (typeof object.errno === "number")
  11716. message.errno = object.errno;
  11717. else if (typeof object.errno === "object")
  11718. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  11719. if (object.data != null) {
  11720. if (typeof object.data !== "object")
  11721. throw TypeError(".game.hero_upgrade_rsp.data: object expected");
  11722. message.data = $root.game.hero.fromObject(object.data);
  11723. }
  11724. return message;
  11725. };
  11726. /**
  11727. * Creates a plain object from a hero_upgrade_rsp message. Also converts values to other types if specified.
  11728. * @function toObject
  11729. * @memberof game.hero_upgrade_rsp
  11730. * @static
  11731. * @param {game.hero_upgrade_rsp} message hero_upgrade_rsp
  11732. * @param {$protobuf.IConversionOptions} [options] Conversion options
  11733. * @returns {Object.<string,*>} Plain object
  11734. */
  11735. hero_upgrade_rsp.toObject = function toObject(message, options) {
  11736. if (!options)
  11737. options = {};
  11738. let object = {};
  11739. if (options.defaults) {
  11740. if ($util.Long) {
  11741. let long = new $util.Long(0, 0, false);
  11742. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  11743. } else
  11744. object.errno = options.longs === String ? "0" : 0;
  11745. object.data = null;
  11746. }
  11747. if (message.errno != null && message.hasOwnProperty("errno"))
  11748. if (typeof message.errno === "number")
  11749. object.errno = options.longs === String ? String(message.errno) : message.errno;
  11750. else
  11751. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  11752. if (message.data != null && message.hasOwnProperty("data"))
  11753. object.data = $root.game.hero.toObject(message.data, options);
  11754. return object;
  11755. };
  11756. /**
  11757. * Converts this hero_upgrade_rsp to JSON.
  11758. * @function toJSON
  11759. * @memberof game.hero_upgrade_rsp
  11760. * @instance
  11761. * @returns {Object.<string,*>} JSON object
  11762. */
  11763. hero_upgrade_rsp.prototype.toJSON = function toJSON() {
  11764. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  11765. };
  11766. return hero_upgrade_rsp;
  11767. })();
  11768. game.hero_upgrade_star = (function() {
  11769. /**
  11770. * Properties of a hero_upgrade_star.
  11771. * @memberof game
  11772. * @interface Ihero_upgrade_star
  11773. * @property {string|null} [sid] hero_upgrade_star sid
  11774. * @property {Array.<string>|null} [same] hero_upgrade_star same
  11775. * @property {Array.<string>|null} [other] hero_upgrade_star other
  11776. * @property {game.Iid_num|null} [currency] hero_upgrade_star currency
  11777. */
  11778. /**
  11779. * Constructs a new hero_upgrade_star.
  11780. * @memberof game
  11781. * @classdesc Represents a hero_upgrade_star.
  11782. * @implements Ihero_upgrade_star
  11783. * @constructor
  11784. * @param {game.Ihero_upgrade_star=} [properties] Properties to set
  11785. */
  11786. function hero_upgrade_star(properties) {
  11787. this.same = [];
  11788. this.other = [];
  11789. if (properties)
  11790. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  11791. if (properties[keys[i]] != null)
  11792. this[keys[i]] = properties[keys[i]];
  11793. }
  11794. /**
  11795. * hero_upgrade_star sid.
  11796. * @member {string} sid
  11797. * @memberof game.hero_upgrade_star
  11798. * @instance
  11799. */
  11800. hero_upgrade_star.prototype.sid = "";
  11801. /**
  11802. * hero_upgrade_star same.
  11803. * @member {Array.<string>} same
  11804. * @memberof game.hero_upgrade_star
  11805. * @instance
  11806. */
  11807. hero_upgrade_star.prototype.same = $util.emptyArray;
  11808. /**
  11809. * hero_upgrade_star other.
  11810. * @member {Array.<string>} other
  11811. * @memberof game.hero_upgrade_star
  11812. * @instance
  11813. */
  11814. hero_upgrade_star.prototype.other = $util.emptyArray;
  11815. /**
  11816. * hero_upgrade_star currency.
  11817. * @member {game.Iid_num|null|undefined} currency
  11818. * @memberof game.hero_upgrade_star
  11819. * @instance
  11820. */
  11821. hero_upgrade_star.prototype.currency = null;
  11822. /**
  11823. * Creates a new hero_upgrade_star instance using the specified properties.
  11824. * @function create
  11825. * @memberof game.hero_upgrade_star
  11826. * @static
  11827. * @param {game.Ihero_upgrade_star=} [properties] Properties to set
  11828. * @returns {game.hero_upgrade_star} hero_upgrade_star instance
  11829. */
  11830. hero_upgrade_star.create = function create(properties) {
  11831. return new hero_upgrade_star(properties);
  11832. };
  11833. /**
  11834. * Encodes the specified hero_upgrade_star message. Does not implicitly {@link game.hero_upgrade_star.verify|verify} messages.
  11835. * @function encode
  11836. * @memberof game.hero_upgrade_star
  11837. * @static
  11838. * @param {game.Ihero_upgrade_star} message hero_upgrade_star message or plain object to encode
  11839. * @param {$protobuf.Writer} [writer] Writer to encode to
  11840. * @returns {$protobuf.Writer} Writer
  11841. */
  11842. hero_upgrade_star.encode = function encode(message, writer) {
  11843. if (!writer)
  11844. writer = $Writer.create();
  11845. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  11846. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  11847. if (message.same != null && message.same.length)
  11848. for (let i = 0; i < message.same.length; ++i)
  11849. writer.uint32(/* id 2, wireType 2 =*/18).string(message.same[i]);
  11850. if (message.other != null && message.other.length)
  11851. for (let i = 0; i < message.other.length; ++i)
  11852. writer.uint32(/* id 3, wireType 2 =*/26).string(message.other[i]);
  11853. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  11854. $root.game.id_num.encode(message.currency, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  11855. return writer;
  11856. };
  11857. /**
  11858. * Encodes the specified hero_upgrade_star message, length delimited. Does not implicitly {@link game.hero_upgrade_star.verify|verify} messages.
  11859. * @function encodeDelimited
  11860. * @memberof game.hero_upgrade_star
  11861. * @static
  11862. * @param {game.Ihero_upgrade_star} message hero_upgrade_star message or plain object to encode
  11863. * @param {$protobuf.Writer} [writer] Writer to encode to
  11864. * @returns {$protobuf.Writer} Writer
  11865. */
  11866. hero_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  11867. return this.encode(message, writer).ldelim();
  11868. };
  11869. /**
  11870. * Decodes a hero_upgrade_star message from the specified reader or buffer.
  11871. * @function decode
  11872. * @memberof game.hero_upgrade_star
  11873. * @static
  11874. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11875. * @param {number} [length] Message length if known beforehand
  11876. * @returns {game.hero_upgrade_star} hero_upgrade_star
  11877. * @throws {Error} If the payload is not a reader or valid buffer
  11878. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11879. */
  11880. hero_upgrade_star.decode = function decode(reader, length) {
  11881. if (!(reader instanceof $Reader))
  11882. reader = $Reader.create(reader);
  11883. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_star();
  11884. while (reader.pos < end) {
  11885. let tag = reader.uint32();
  11886. switch (tag >>> 3) {
  11887. case 1:
  11888. message.sid = reader.string();
  11889. break;
  11890. case 2:
  11891. if (!(message.same && message.same.length))
  11892. message.same = [];
  11893. message.same.push(reader.string());
  11894. break;
  11895. case 3:
  11896. if (!(message.other && message.other.length))
  11897. message.other = [];
  11898. message.other.push(reader.string());
  11899. break;
  11900. case 4:
  11901. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  11902. break;
  11903. default:
  11904. reader.skipType(tag & 7);
  11905. break;
  11906. }
  11907. }
  11908. return message;
  11909. };
  11910. /**
  11911. * Decodes a hero_upgrade_star message from the specified reader or buffer, length delimited.
  11912. * @function decodeDelimited
  11913. * @memberof game.hero_upgrade_star
  11914. * @static
  11915. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  11916. * @returns {game.hero_upgrade_star} hero_upgrade_star
  11917. * @throws {Error} If the payload is not a reader or valid buffer
  11918. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  11919. */
  11920. hero_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  11921. if (!(reader instanceof $Reader))
  11922. reader = new $Reader(reader);
  11923. return this.decode(reader, reader.uint32());
  11924. };
  11925. /**
  11926. * Verifies a hero_upgrade_star message.
  11927. * @function verify
  11928. * @memberof game.hero_upgrade_star
  11929. * @static
  11930. * @param {Object.<string,*>} message Plain object to verify
  11931. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  11932. */
  11933. hero_upgrade_star.verify = function verify(message) {
  11934. if (typeof message !== "object" || message === null)
  11935. return "object expected";
  11936. if (message.sid != null && message.hasOwnProperty("sid"))
  11937. if (!$util.isString(message.sid))
  11938. return "sid: string expected";
  11939. if (message.same != null && message.hasOwnProperty("same")) {
  11940. if (!Array.isArray(message.same))
  11941. return "same: array expected";
  11942. for (let i = 0; i < message.same.length; ++i)
  11943. if (!$util.isString(message.same[i]))
  11944. return "same: string[] expected";
  11945. }
  11946. if (message.other != null && message.hasOwnProperty("other")) {
  11947. if (!Array.isArray(message.other))
  11948. return "other: array expected";
  11949. for (let i = 0; i < message.other.length; ++i)
  11950. if (!$util.isString(message.other[i]))
  11951. return "other: string[] expected";
  11952. }
  11953. if (message.currency != null && message.hasOwnProperty("currency")) {
  11954. let error = $root.game.id_num.verify(message.currency);
  11955. if (error)
  11956. return "currency." + error;
  11957. }
  11958. return null;
  11959. };
  11960. /**
  11961. * Creates a hero_upgrade_star message from a plain object. Also converts values to their respective internal types.
  11962. * @function fromObject
  11963. * @memberof game.hero_upgrade_star
  11964. * @static
  11965. * @param {Object.<string,*>} object Plain object
  11966. * @returns {game.hero_upgrade_star} hero_upgrade_star
  11967. */
  11968. hero_upgrade_star.fromObject = function fromObject(object) {
  11969. if (object instanceof $root.game.hero_upgrade_star)
  11970. return object;
  11971. let message = new $root.game.hero_upgrade_star();
  11972. if (object.sid != null)
  11973. message.sid = String(object.sid);
  11974. if (object.same) {
  11975. if (!Array.isArray(object.same))
  11976. throw TypeError(".game.hero_upgrade_star.same: array expected");
  11977. message.same = [];
  11978. for (let i = 0; i < object.same.length; ++i)
  11979. message.same[i] = String(object.same[i]);
  11980. }
  11981. if (object.other) {
  11982. if (!Array.isArray(object.other))
  11983. throw TypeError(".game.hero_upgrade_star.other: array expected");
  11984. message.other = [];
  11985. for (let i = 0; i < object.other.length; ++i)
  11986. message.other[i] = String(object.other[i]);
  11987. }
  11988. if (object.currency != null) {
  11989. if (typeof object.currency !== "object")
  11990. throw TypeError(".game.hero_upgrade_star.currency: object expected");
  11991. message.currency = $root.game.id_num.fromObject(object.currency);
  11992. }
  11993. return message;
  11994. };
  11995. /**
  11996. * Creates a plain object from a hero_upgrade_star message. Also converts values to other types if specified.
  11997. * @function toObject
  11998. * @memberof game.hero_upgrade_star
  11999. * @static
  12000. * @param {game.hero_upgrade_star} message hero_upgrade_star
  12001. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12002. * @returns {Object.<string,*>} Plain object
  12003. */
  12004. hero_upgrade_star.toObject = function toObject(message, options) {
  12005. if (!options)
  12006. options = {};
  12007. let object = {};
  12008. if (options.arrays || options.defaults) {
  12009. object.same = [];
  12010. object.other = [];
  12011. }
  12012. if (options.defaults) {
  12013. object.sid = "";
  12014. object.currency = null;
  12015. }
  12016. if (message.sid != null && message.hasOwnProperty("sid"))
  12017. object.sid = message.sid;
  12018. if (message.same && message.same.length) {
  12019. object.same = [];
  12020. for (let j = 0; j < message.same.length; ++j)
  12021. object.same[j] = message.same[j];
  12022. }
  12023. if (message.other && message.other.length) {
  12024. object.other = [];
  12025. for (let j = 0; j < message.other.length; ++j)
  12026. object.other[j] = message.other[j];
  12027. }
  12028. if (message.currency != null && message.hasOwnProperty("currency"))
  12029. object.currency = $root.game.id_num.toObject(message.currency, options);
  12030. return object;
  12031. };
  12032. /**
  12033. * Converts this hero_upgrade_star to JSON.
  12034. * @function toJSON
  12035. * @memberof game.hero_upgrade_star
  12036. * @instance
  12037. * @returns {Object.<string,*>} JSON object
  12038. */
  12039. hero_upgrade_star.prototype.toJSON = function toJSON() {
  12040. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12041. };
  12042. return hero_upgrade_star;
  12043. })();
  12044. game.hero_upgrade_star_rsp = (function() {
  12045. /**
  12046. * Properties of a hero_upgrade_star_rsp.
  12047. * @memberof game
  12048. * @interface Ihero_upgrade_star_rsp
  12049. * @property {number|Long|null} [errno] hero_upgrade_star_rsp errno
  12050. * @property {game.Ihero|null} [data] hero_upgrade_star_rsp data
  12051. * @property {Array.<string>|null} [same] hero_upgrade_star_rsp same
  12052. * @property {Array.<string>|null} [other] hero_upgrade_star_rsp other
  12053. * @property {game.Iid_num|null} [currency] hero_upgrade_star_rsp currency
  12054. */
  12055. /**
  12056. * Constructs a new hero_upgrade_star_rsp.
  12057. * @memberof game
  12058. * @classdesc Represents a hero_upgrade_star_rsp.
  12059. * @implements Ihero_upgrade_star_rsp
  12060. * @constructor
  12061. * @param {game.Ihero_upgrade_star_rsp=} [properties] Properties to set
  12062. */
  12063. function hero_upgrade_star_rsp(properties) {
  12064. this.same = [];
  12065. this.other = [];
  12066. if (properties)
  12067. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12068. if (properties[keys[i]] != null)
  12069. this[keys[i]] = properties[keys[i]];
  12070. }
  12071. /**
  12072. * hero_upgrade_star_rsp errno.
  12073. * @member {number|Long} errno
  12074. * @memberof game.hero_upgrade_star_rsp
  12075. * @instance
  12076. */
  12077. hero_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12078. /**
  12079. * hero_upgrade_star_rsp data.
  12080. * @member {game.Ihero|null|undefined} data
  12081. * @memberof game.hero_upgrade_star_rsp
  12082. * @instance
  12083. */
  12084. hero_upgrade_star_rsp.prototype.data = null;
  12085. /**
  12086. * hero_upgrade_star_rsp same.
  12087. * @member {Array.<string>} same
  12088. * @memberof game.hero_upgrade_star_rsp
  12089. * @instance
  12090. */
  12091. hero_upgrade_star_rsp.prototype.same = $util.emptyArray;
  12092. /**
  12093. * hero_upgrade_star_rsp other.
  12094. * @member {Array.<string>} other
  12095. * @memberof game.hero_upgrade_star_rsp
  12096. * @instance
  12097. */
  12098. hero_upgrade_star_rsp.prototype.other = $util.emptyArray;
  12099. /**
  12100. * hero_upgrade_star_rsp currency.
  12101. * @member {game.Iid_num|null|undefined} currency
  12102. * @memberof game.hero_upgrade_star_rsp
  12103. * @instance
  12104. */
  12105. hero_upgrade_star_rsp.prototype.currency = null;
  12106. /**
  12107. * Creates a new hero_upgrade_star_rsp instance using the specified properties.
  12108. * @function create
  12109. * @memberof game.hero_upgrade_star_rsp
  12110. * @static
  12111. * @param {game.Ihero_upgrade_star_rsp=} [properties] Properties to set
  12112. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp instance
  12113. */
  12114. hero_upgrade_star_rsp.create = function create(properties) {
  12115. return new hero_upgrade_star_rsp(properties);
  12116. };
  12117. /**
  12118. * Encodes the specified hero_upgrade_star_rsp message. Does not implicitly {@link game.hero_upgrade_star_rsp.verify|verify} messages.
  12119. * @function encode
  12120. * @memberof game.hero_upgrade_star_rsp
  12121. * @static
  12122. * @param {game.Ihero_upgrade_star_rsp} message hero_upgrade_star_rsp message or plain object to encode
  12123. * @param {$protobuf.Writer} [writer] Writer to encode to
  12124. * @returns {$protobuf.Writer} Writer
  12125. */
  12126. hero_upgrade_star_rsp.encode = function encode(message, writer) {
  12127. if (!writer)
  12128. writer = $Writer.create();
  12129. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  12130. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  12131. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  12132. $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  12133. if (message.same != null && message.same.length)
  12134. for (let i = 0; i < message.same.length; ++i)
  12135. writer.uint32(/* id 3, wireType 2 =*/26).string(message.same[i]);
  12136. if (message.other != null && message.other.length)
  12137. for (let i = 0; i < message.other.length; ++i)
  12138. writer.uint32(/* id 4, wireType 2 =*/34).string(message.other[i]);
  12139. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  12140. $root.game.id_num.encode(message.currency, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  12141. return writer;
  12142. };
  12143. /**
  12144. * Encodes the specified hero_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.hero_upgrade_star_rsp.verify|verify} messages.
  12145. * @function encodeDelimited
  12146. * @memberof game.hero_upgrade_star_rsp
  12147. * @static
  12148. * @param {game.Ihero_upgrade_star_rsp} message hero_upgrade_star_rsp message or plain object to encode
  12149. * @param {$protobuf.Writer} [writer] Writer to encode to
  12150. * @returns {$protobuf.Writer} Writer
  12151. */
  12152. hero_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  12153. return this.encode(message, writer).ldelim();
  12154. };
  12155. /**
  12156. * Decodes a hero_upgrade_star_rsp message from the specified reader or buffer.
  12157. * @function decode
  12158. * @memberof game.hero_upgrade_star_rsp
  12159. * @static
  12160. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12161. * @param {number} [length] Message length if known beforehand
  12162. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
  12163. * @throws {Error} If the payload is not a reader or valid buffer
  12164. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12165. */
  12166. hero_upgrade_star_rsp.decode = function decode(reader, length) {
  12167. if (!(reader instanceof $Reader))
  12168. reader = $Reader.create(reader);
  12169. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_upgrade_star_rsp();
  12170. while (reader.pos < end) {
  12171. let tag = reader.uint32();
  12172. switch (tag >>> 3) {
  12173. case 1:
  12174. message.errno = reader.int64();
  12175. break;
  12176. case 2:
  12177. message.data = $root.game.hero.decode(reader, reader.uint32());
  12178. break;
  12179. case 3:
  12180. if (!(message.same && message.same.length))
  12181. message.same = [];
  12182. message.same.push(reader.string());
  12183. break;
  12184. case 4:
  12185. if (!(message.other && message.other.length))
  12186. message.other = [];
  12187. message.other.push(reader.string());
  12188. break;
  12189. case 5:
  12190. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  12191. break;
  12192. default:
  12193. reader.skipType(tag & 7);
  12194. break;
  12195. }
  12196. }
  12197. return message;
  12198. };
  12199. /**
  12200. * Decodes a hero_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  12201. * @function decodeDelimited
  12202. * @memberof game.hero_upgrade_star_rsp
  12203. * @static
  12204. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12205. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
  12206. * @throws {Error} If the payload is not a reader or valid buffer
  12207. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12208. */
  12209. hero_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  12210. if (!(reader instanceof $Reader))
  12211. reader = new $Reader(reader);
  12212. return this.decode(reader, reader.uint32());
  12213. };
  12214. /**
  12215. * Verifies a hero_upgrade_star_rsp message.
  12216. * @function verify
  12217. * @memberof game.hero_upgrade_star_rsp
  12218. * @static
  12219. * @param {Object.<string,*>} message Plain object to verify
  12220. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12221. */
  12222. hero_upgrade_star_rsp.verify = function verify(message) {
  12223. if (typeof message !== "object" || message === null)
  12224. return "object expected";
  12225. if (message.errno != null && message.hasOwnProperty("errno"))
  12226. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  12227. return "errno: integer|Long expected";
  12228. if (message.data != null && message.hasOwnProperty("data")) {
  12229. let error = $root.game.hero.verify(message.data);
  12230. if (error)
  12231. return "data." + error;
  12232. }
  12233. if (message.same != null && message.hasOwnProperty("same")) {
  12234. if (!Array.isArray(message.same))
  12235. return "same: array expected";
  12236. for (let i = 0; i < message.same.length; ++i)
  12237. if (!$util.isString(message.same[i]))
  12238. return "same: string[] expected";
  12239. }
  12240. if (message.other != null && message.hasOwnProperty("other")) {
  12241. if (!Array.isArray(message.other))
  12242. return "other: array expected";
  12243. for (let i = 0; i < message.other.length; ++i)
  12244. if (!$util.isString(message.other[i]))
  12245. return "other: string[] expected";
  12246. }
  12247. if (message.currency != null && message.hasOwnProperty("currency")) {
  12248. let error = $root.game.id_num.verify(message.currency);
  12249. if (error)
  12250. return "currency." + error;
  12251. }
  12252. return null;
  12253. };
  12254. /**
  12255. * Creates a hero_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  12256. * @function fromObject
  12257. * @memberof game.hero_upgrade_star_rsp
  12258. * @static
  12259. * @param {Object.<string,*>} object Plain object
  12260. * @returns {game.hero_upgrade_star_rsp} hero_upgrade_star_rsp
  12261. */
  12262. hero_upgrade_star_rsp.fromObject = function fromObject(object) {
  12263. if (object instanceof $root.game.hero_upgrade_star_rsp)
  12264. return object;
  12265. let message = new $root.game.hero_upgrade_star_rsp();
  12266. if (object.errno != null)
  12267. if ($util.Long)
  12268. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  12269. else if (typeof object.errno === "string")
  12270. message.errno = parseInt(object.errno, 10);
  12271. else if (typeof object.errno === "number")
  12272. message.errno = object.errno;
  12273. else if (typeof object.errno === "object")
  12274. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  12275. if (object.data != null) {
  12276. if (typeof object.data !== "object")
  12277. throw TypeError(".game.hero_upgrade_star_rsp.data: object expected");
  12278. message.data = $root.game.hero.fromObject(object.data);
  12279. }
  12280. if (object.same) {
  12281. if (!Array.isArray(object.same))
  12282. throw TypeError(".game.hero_upgrade_star_rsp.same: array expected");
  12283. message.same = [];
  12284. for (let i = 0; i < object.same.length; ++i)
  12285. message.same[i] = String(object.same[i]);
  12286. }
  12287. if (object.other) {
  12288. if (!Array.isArray(object.other))
  12289. throw TypeError(".game.hero_upgrade_star_rsp.other: array expected");
  12290. message.other = [];
  12291. for (let i = 0; i < object.other.length; ++i)
  12292. message.other[i] = String(object.other[i]);
  12293. }
  12294. if (object.currency != null) {
  12295. if (typeof object.currency !== "object")
  12296. throw TypeError(".game.hero_upgrade_star_rsp.currency: object expected");
  12297. message.currency = $root.game.id_num.fromObject(object.currency);
  12298. }
  12299. return message;
  12300. };
  12301. /**
  12302. * Creates a plain object from a hero_upgrade_star_rsp message. Also converts values to other types if specified.
  12303. * @function toObject
  12304. * @memberof game.hero_upgrade_star_rsp
  12305. * @static
  12306. * @param {game.hero_upgrade_star_rsp} message hero_upgrade_star_rsp
  12307. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12308. * @returns {Object.<string,*>} Plain object
  12309. */
  12310. hero_upgrade_star_rsp.toObject = function toObject(message, options) {
  12311. if (!options)
  12312. options = {};
  12313. let object = {};
  12314. if (options.arrays || options.defaults) {
  12315. object.same = [];
  12316. object.other = [];
  12317. }
  12318. if (options.defaults) {
  12319. if ($util.Long) {
  12320. let long = new $util.Long(0, 0, false);
  12321. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  12322. } else
  12323. object.errno = options.longs === String ? "0" : 0;
  12324. object.data = null;
  12325. object.currency = null;
  12326. }
  12327. if (message.errno != null && message.hasOwnProperty("errno"))
  12328. if (typeof message.errno === "number")
  12329. object.errno = options.longs === String ? String(message.errno) : message.errno;
  12330. else
  12331. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  12332. if (message.data != null && message.hasOwnProperty("data"))
  12333. object.data = $root.game.hero.toObject(message.data, options);
  12334. if (message.same && message.same.length) {
  12335. object.same = [];
  12336. for (let j = 0; j < message.same.length; ++j)
  12337. object.same[j] = message.same[j];
  12338. }
  12339. if (message.other && message.other.length) {
  12340. object.other = [];
  12341. for (let j = 0; j < message.other.length; ++j)
  12342. object.other[j] = message.other[j];
  12343. }
  12344. if (message.currency != null && message.hasOwnProperty("currency"))
  12345. object.currency = $root.game.id_num.toObject(message.currency, options);
  12346. return object;
  12347. };
  12348. /**
  12349. * Converts this hero_upgrade_star_rsp to JSON.
  12350. * @function toJSON
  12351. * @memberof game.hero_upgrade_star_rsp
  12352. * @instance
  12353. * @returns {Object.<string,*>} JSON object
  12354. */
  12355. hero_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  12356. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12357. };
  12358. return hero_upgrade_star_rsp;
  12359. })();
  12360. game.hero_onekey_upgrade_star = (function() {
  12361. /**
  12362. * Properties of a hero_onekey_upgrade_star.
  12363. * @memberof game
  12364. * @interface Ihero_onekey_upgrade_star
  12365. */
  12366. /**
  12367. * Constructs a new hero_onekey_upgrade_star.
  12368. * @memberof game
  12369. * @classdesc Represents a hero_onekey_upgrade_star.
  12370. * @implements Ihero_onekey_upgrade_star
  12371. * @constructor
  12372. * @param {game.Ihero_onekey_upgrade_star=} [properties] Properties to set
  12373. */
  12374. function hero_onekey_upgrade_star(properties) {
  12375. if (properties)
  12376. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12377. if (properties[keys[i]] != null)
  12378. this[keys[i]] = properties[keys[i]];
  12379. }
  12380. /**
  12381. * Creates a new hero_onekey_upgrade_star instance using the specified properties.
  12382. * @function create
  12383. * @memberof game.hero_onekey_upgrade_star
  12384. * @static
  12385. * @param {game.Ihero_onekey_upgrade_star=} [properties] Properties to set
  12386. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star instance
  12387. */
  12388. hero_onekey_upgrade_star.create = function create(properties) {
  12389. return new hero_onekey_upgrade_star(properties);
  12390. };
  12391. /**
  12392. * Encodes the specified hero_onekey_upgrade_star message. Does not implicitly {@link game.hero_onekey_upgrade_star.verify|verify} messages.
  12393. * @function encode
  12394. * @memberof game.hero_onekey_upgrade_star
  12395. * @static
  12396. * @param {game.Ihero_onekey_upgrade_star} message hero_onekey_upgrade_star message or plain object to encode
  12397. * @param {$protobuf.Writer} [writer] Writer to encode to
  12398. * @returns {$protobuf.Writer} Writer
  12399. */
  12400. hero_onekey_upgrade_star.encode = function encode(message, writer) {
  12401. if (!writer)
  12402. writer = $Writer.create();
  12403. return writer;
  12404. };
  12405. /**
  12406. * Encodes the specified hero_onekey_upgrade_star message, length delimited. Does not implicitly {@link game.hero_onekey_upgrade_star.verify|verify} messages.
  12407. * @function encodeDelimited
  12408. * @memberof game.hero_onekey_upgrade_star
  12409. * @static
  12410. * @param {game.Ihero_onekey_upgrade_star} message hero_onekey_upgrade_star message or plain object to encode
  12411. * @param {$protobuf.Writer} [writer] Writer to encode to
  12412. * @returns {$protobuf.Writer} Writer
  12413. */
  12414. hero_onekey_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  12415. return this.encode(message, writer).ldelim();
  12416. };
  12417. /**
  12418. * Decodes a hero_onekey_upgrade_star message from the specified reader or buffer.
  12419. * @function decode
  12420. * @memberof game.hero_onekey_upgrade_star
  12421. * @static
  12422. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12423. * @param {number} [length] Message length if known beforehand
  12424. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
  12425. * @throws {Error} If the payload is not a reader or valid buffer
  12426. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12427. */
  12428. hero_onekey_upgrade_star.decode = function decode(reader, length) {
  12429. if (!(reader instanceof $Reader))
  12430. reader = $Reader.create(reader);
  12431. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_onekey_upgrade_star();
  12432. while (reader.pos < end) {
  12433. let tag = reader.uint32();
  12434. switch (tag >>> 3) {
  12435. default:
  12436. reader.skipType(tag & 7);
  12437. break;
  12438. }
  12439. }
  12440. return message;
  12441. };
  12442. /**
  12443. * Decodes a hero_onekey_upgrade_star message from the specified reader or buffer, length delimited.
  12444. * @function decodeDelimited
  12445. * @memberof game.hero_onekey_upgrade_star
  12446. * @static
  12447. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12448. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
  12449. * @throws {Error} If the payload is not a reader or valid buffer
  12450. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12451. */
  12452. hero_onekey_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  12453. if (!(reader instanceof $Reader))
  12454. reader = new $Reader(reader);
  12455. return this.decode(reader, reader.uint32());
  12456. };
  12457. /**
  12458. * Verifies a hero_onekey_upgrade_star message.
  12459. * @function verify
  12460. * @memberof game.hero_onekey_upgrade_star
  12461. * @static
  12462. * @param {Object.<string,*>} message Plain object to verify
  12463. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12464. */
  12465. hero_onekey_upgrade_star.verify = function verify(message) {
  12466. if (typeof message !== "object" || message === null)
  12467. return "object expected";
  12468. return null;
  12469. };
  12470. /**
  12471. * Creates a hero_onekey_upgrade_star message from a plain object. Also converts values to their respective internal types.
  12472. * @function fromObject
  12473. * @memberof game.hero_onekey_upgrade_star
  12474. * @static
  12475. * @param {Object.<string,*>} object Plain object
  12476. * @returns {game.hero_onekey_upgrade_star} hero_onekey_upgrade_star
  12477. */
  12478. hero_onekey_upgrade_star.fromObject = function fromObject(object) {
  12479. if (object instanceof $root.game.hero_onekey_upgrade_star)
  12480. return object;
  12481. return new $root.game.hero_onekey_upgrade_star();
  12482. };
  12483. /**
  12484. * Creates a plain object from a hero_onekey_upgrade_star message. Also converts values to other types if specified.
  12485. * @function toObject
  12486. * @memberof game.hero_onekey_upgrade_star
  12487. * @static
  12488. * @param {game.hero_onekey_upgrade_star} message hero_onekey_upgrade_star
  12489. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12490. * @returns {Object.<string,*>} Plain object
  12491. */
  12492. hero_onekey_upgrade_star.toObject = function toObject() {
  12493. return {};
  12494. };
  12495. /**
  12496. * Converts this hero_onekey_upgrade_star to JSON.
  12497. * @function toJSON
  12498. * @memberof game.hero_onekey_upgrade_star
  12499. * @instance
  12500. * @returns {Object.<string,*>} JSON object
  12501. */
  12502. hero_onekey_upgrade_star.prototype.toJSON = function toJSON() {
  12503. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12504. };
  12505. return hero_onekey_upgrade_star;
  12506. })();
  12507. game.hero_onekey_upgrade_star_rsp = (function() {
  12508. /**
  12509. * Properties of a hero_onekey_upgrade_star_rsp.
  12510. * @memberof game
  12511. * @interface Ihero_onekey_upgrade_star_rsp
  12512. * @property {number|Long|null} [errno] hero_onekey_upgrade_star_rsp errno
  12513. * @property {Array.<string>|null} [delList] hero_onekey_upgrade_star_rsp delList
  12514. * @property {Array.<game.Ihero>|null} [changeList] hero_onekey_upgrade_star_rsp changeList
  12515. */
  12516. /**
  12517. * Constructs a new hero_onekey_upgrade_star_rsp.
  12518. * @memberof game
  12519. * @classdesc Represents a hero_onekey_upgrade_star_rsp.
  12520. * @implements Ihero_onekey_upgrade_star_rsp
  12521. * @constructor
  12522. * @param {game.Ihero_onekey_upgrade_star_rsp=} [properties] Properties to set
  12523. */
  12524. function hero_onekey_upgrade_star_rsp(properties) {
  12525. this.delList = [];
  12526. this.changeList = [];
  12527. if (properties)
  12528. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12529. if (properties[keys[i]] != null)
  12530. this[keys[i]] = properties[keys[i]];
  12531. }
  12532. /**
  12533. * hero_onekey_upgrade_star_rsp errno.
  12534. * @member {number|Long} errno
  12535. * @memberof game.hero_onekey_upgrade_star_rsp
  12536. * @instance
  12537. */
  12538. hero_onekey_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12539. /**
  12540. * hero_onekey_upgrade_star_rsp delList.
  12541. * @member {Array.<string>} delList
  12542. * @memberof game.hero_onekey_upgrade_star_rsp
  12543. * @instance
  12544. */
  12545. hero_onekey_upgrade_star_rsp.prototype.delList = $util.emptyArray;
  12546. /**
  12547. * hero_onekey_upgrade_star_rsp changeList.
  12548. * @member {Array.<game.Ihero>} changeList
  12549. * @memberof game.hero_onekey_upgrade_star_rsp
  12550. * @instance
  12551. */
  12552. hero_onekey_upgrade_star_rsp.prototype.changeList = $util.emptyArray;
  12553. /**
  12554. * Creates a new hero_onekey_upgrade_star_rsp instance using the specified properties.
  12555. * @function create
  12556. * @memberof game.hero_onekey_upgrade_star_rsp
  12557. * @static
  12558. * @param {game.Ihero_onekey_upgrade_star_rsp=} [properties] Properties to set
  12559. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp instance
  12560. */
  12561. hero_onekey_upgrade_star_rsp.create = function create(properties) {
  12562. return new hero_onekey_upgrade_star_rsp(properties);
  12563. };
  12564. /**
  12565. * Encodes the specified hero_onekey_upgrade_star_rsp message. Does not implicitly {@link game.hero_onekey_upgrade_star_rsp.verify|verify} messages.
  12566. * @function encode
  12567. * @memberof game.hero_onekey_upgrade_star_rsp
  12568. * @static
  12569. * @param {game.Ihero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp message or plain object to encode
  12570. * @param {$protobuf.Writer} [writer] Writer to encode to
  12571. * @returns {$protobuf.Writer} Writer
  12572. */
  12573. hero_onekey_upgrade_star_rsp.encode = function encode(message, writer) {
  12574. if (!writer)
  12575. writer = $Writer.create();
  12576. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  12577. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  12578. if (message.delList != null && message.delList.length)
  12579. for (let i = 0; i < message.delList.length; ++i)
  12580. writer.uint32(/* id 2, wireType 2 =*/18).string(message.delList[i]);
  12581. if (message.changeList != null && message.changeList.length)
  12582. for (let i = 0; i < message.changeList.length; ++i)
  12583. $root.game.hero.encode(message.changeList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  12584. return writer;
  12585. };
  12586. /**
  12587. * Encodes the specified hero_onekey_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.hero_onekey_upgrade_star_rsp.verify|verify} messages.
  12588. * @function encodeDelimited
  12589. * @memberof game.hero_onekey_upgrade_star_rsp
  12590. * @static
  12591. * @param {game.Ihero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp message or plain object to encode
  12592. * @param {$protobuf.Writer} [writer] Writer to encode to
  12593. * @returns {$protobuf.Writer} Writer
  12594. */
  12595. hero_onekey_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  12596. return this.encode(message, writer).ldelim();
  12597. };
  12598. /**
  12599. * Decodes a hero_onekey_upgrade_star_rsp message from the specified reader or buffer.
  12600. * @function decode
  12601. * @memberof game.hero_onekey_upgrade_star_rsp
  12602. * @static
  12603. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12604. * @param {number} [length] Message length if known beforehand
  12605. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
  12606. * @throws {Error} If the payload is not a reader or valid buffer
  12607. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12608. */
  12609. hero_onekey_upgrade_star_rsp.decode = function decode(reader, length) {
  12610. if (!(reader instanceof $Reader))
  12611. reader = $Reader.create(reader);
  12612. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_onekey_upgrade_star_rsp();
  12613. while (reader.pos < end) {
  12614. let tag = reader.uint32();
  12615. switch (tag >>> 3) {
  12616. case 1:
  12617. message.errno = reader.int64();
  12618. break;
  12619. case 2:
  12620. if (!(message.delList && message.delList.length))
  12621. message.delList = [];
  12622. message.delList.push(reader.string());
  12623. break;
  12624. case 3:
  12625. if (!(message.changeList && message.changeList.length))
  12626. message.changeList = [];
  12627. message.changeList.push($root.game.hero.decode(reader, reader.uint32()));
  12628. break;
  12629. default:
  12630. reader.skipType(tag & 7);
  12631. break;
  12632. }
  12633. }
  12634. return message;
  12635. };
  12636. /**
  12637. * Decodes a hero_onekey_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  12638. * @function decodeDelimited
  12639. * @memberof game.hero_onekey_upgrade_star_rsp
  12640. * @static
  12641. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12642. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
  12643. * @throws {Error} If the payload is not a reader or valid buffer
  12644. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12645. */
  12646. hero_onekey_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  12647. if (!(reader instanceof $Reader))
  12648. reader = new $Reader(reader);
  12649. return this.decode(reader, reader.uint32());
  12650. };
  12651. /**
  12652. * Verifies a hero_onekey_upgrade_star_rsp message.
  12653. * @function verify
  12654. * @memberof game.hero_onekey_upgrade_star_rsp
  12655. * @static
  12656. * @param {Object.<string,*>} message Plain object to verify
  12657. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12658. */
  12659. hero_onekey_upgrade_star_rsp.verify = function verify(message) {
  12660. if (typeof message !== "object" || message === null)
  12661. return "object expected";
  12662. if (message.errno != null && message.hasOwnProperty("errno"))
  12663. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  12664. return "errno: integer|Long expected";
  12665. if (message.delList != null && message.hasOwnProperty("delList")) {
  12666. if (!Array.isArray(message.delList))
  12667. return "delList: array expected";
  12668. for (let i = 0; i < message.delList.length; ++i)
  12669. if (!$util.isString(message.delList[i]))
  12670. return "delList: string[] expected";
  12671. }
  12672. if (message.changeList != null && message.hasOwnProperty("changeList")) {
  12673. if (!Array.isArray(message.changeList))
  12674. return "changeList: array expected";
  12675. for (let i = 0; i < message.changeList.length; ++i) {
  12676. let error = $root.game.hero.verify(message.changeList[i]);
  12677. if (error)
  12678. return "changeList." + error;
  12679. }
  12680. }
  12681. return null;
  12682. };
  12683. /**
  12684. * Creates a hero_onekey_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  12685. * @function fromObject
  12686. * @memberof game.hero_onekey_upgrade_star_rsp
  12687. * @static
  12688. * @param {Object.<string,*>} object Plain object
  12689. * @returns {game.hero_onekey_upgrade_star_rsp} hero_onekey_upgrade_star_rsp
  12690. */
  12691. hero_onekey_upgrade_star_rsp.fromObject = function fromObject(object) {
  12692. if (object instanceof $root.game.hero_onekey_upgrade_star_rsp)
  12693. return object;
  12694. let message = new $root.game.hero_onekey_upgrade_star_rsp();
  12695. if (object.errno != null)
  12696. if ($util.Long)
  12697. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  12698. else if (typeof object.errno === "string")
  12699. message.errno = parseInt(object.errno, 10);
  12700. else if (typeof object.errno === "number")
  12701. message.errno = object.errno;
  12702. else if (typeof object.errno === "object")
  12703. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  12704. if (object.delList) {
  12705. if (!Array.isArray(object.delList))
  12706. throw TypeError(".game.hero_onekey_upgrade_star_rsp.delList: array expected");
  12707. message.delList = [];
  12708. for (let i = 0; i < object.delList.length; ++i)
  12709. message.delList[i] = String(object.delList[i]);
  12710. }
  12711. if (object.changeList) {
  12712. if (!Array.isArray(object.changeList))
  12713. throw TypeError(".game.hero_onekey_upgrade_star_rsp.changeList: array expected");
  12714. message.changeList = [];
  12715. for (let i = 0; i < object.changeList.length; ++i) {
  12716. if (typeof object.changeList[i] !== "object")
  12717. throw TypeError(".game.hero_onekey_upgrade_star_rsp.changeList: object expected");
  12718. message.changeList[i] = $root.game.hero.fromObject(object.changeList[i]);
  12719. }
  12720. }
  12721. return message;
  12722. };
  12723. /**
  12724. * Creates a plain object from a hero_onekey_upgrade_star_rsp message. Also converts values to other types if specified.
  12725. * @function toObject
  12726. * @memberof game.hero_onekey_upgrade_star_rsp
  12727. * @static
  12728. * @param {game.hero_onekey_upgrade_star_rsp} message hero_onekey_upgrade_star_rsp
  12729. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12730. * @returns {Object.<string,*>} Plain object
  12731. */
  12732. hero_onekey_upgrade_star_rsp.toObject = function toObject(message, options) {
  12733. if (!options)
  12734. options = {};
  12735. let object = {};
  12736. if (options.arrays || options.defaults) {
  12737. object.delList = [];
  12738. object.changeList = [];
  12739. }
  12740. if (options.defaults)
  12741. if ($util.Long) {
  12742. let long = new $util.Long(0, 0, false);
  12743. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  12744. } else
  12745. object.errno = options.longs === String ? "0" : 0;
  12746. if (message.errno != null && message.hasOwnProperty("errno"))
  12747. if (typeof message.errno === "number")
  12748. object.errno = options.longs === String ? String(message.errno) : message.errno;
  12749. else
  12750. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  12751. if (message.delList && message.delList.length) {
  12752. object.delList = [];
  12753. for (let j = 0; j < message.delList.length; ++j)
  12754. object.delList[j] = message.delList[j];
  12755. }
  12756. if (message.changeList && message.changeList.length) {
  12757. object.changeList = [];
  12758. for (let j = 0; j < message.changeList.length; ++j)
  12759. object.changeList[j] = $root.game.hero.toObject(message.changeList[j], options);
  12760. }
  12761. return object;
  12762. };
  12763. /**
  12764. * Converts this hero_onekey_upgrade_star_rsp to JSON.
  12765. * @function toJSON
  12766. * @memberof game.hero_onekey_upgrade_star_rsp
  12767. * @instance
  12768. * @returns {Object.<string,*>} JSON object
  12769. */
  12770. hero_onekey_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  12771. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12772. };
  12773. return hero_onekey_upgrade_star_rsp;
  12774. })();
  12775. game.hero_reset = (function() {
  12776. /**
  12777. * Properties of a hero_reset.
  12778. * @memberof game
  12779. * @interface Ihero_reset
  12780. * @property {boolean|null} [level] hero_reset level
  12781. * @property {string|null} [sid] hero_reset sid
  12782. */
  12783. /**
  12784. * Constructs a new hero_reset.
  12785. * @memberof game
  12786. * @classdesc Represents a hero_reset.
  12787. * @implements Ihero_reset
  12788. * @constructor
  12789. * @param {game.Ihero_reset=} [properties] Properties to set
  12790. */
  12791. function hero_reset(properties) {
  12792. if (properties)
  12793. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12794. if (properties[keys[i]] != null)
  12795. this[keys[i]] = properties[keys[i]];
  12796. }
  12797. /**
  12798. * hero_reset level.
  12799. * @member {boolean} level
  12800. * @memberof game.hero_reset
  12801. * @instance
  12802. */
  12803. hero_reset.prototype.level = false;
  12804. /**
  12805. * hero_reset sid.
  12806. * @member {string} sid
  12807. * @memberof game.hero_reset
  12808. * @instance
  12809. */
  12810. hero_reset.prototype.sid = "";
  12811. /**
  12812. * Creates a new hero_reset instance using the specified properties.
  12813. * @function create
  12814. * @memberof game.hero_reset
  12815. * @static
  12816. * @param {game.Ihero_reset=} [properties] Properties to set
  12817. * @returns {game.hero_reset} hero_reset instance
  12818. */
  12819. hero_reset.create = function create(properties) {
  12820. return new hero_reset(properties);
  12821. };
  12822. /**
  12823. * Encodes the specified hero_reset message. Does not implicitly {@link game.hero_reset.verify|verify} messages.
  12824. * @function encode
  12825. * @memberof game.hero_reset
  12826. * @static
  12827. * @param {game.Ihero_reset} message hero_reset message or plain object to encode
  12828. * @param {$protobuf.Writer} [writer] Writer to encode to
  12829. * @returns {$protobuf.Writer} Writer
  12830. */
  12831. hero_reset.encode = function encode(message, writer) {
  12832. if (!writer)
  12833. writer = $Writer.create();
  12834. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  12835. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.level);
  12836. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  12837. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  12838. return writer;
  12839. };
  12840. /**
  12841. * Encodes the specified hero_reset message, length delimited. Does not implicitly {@link game.hero_reset.verify|verify} messages.
  12842. * @function encodeDelimited
  12843. * @memberof game.hero_reset
  12844. * @static
  12845. * @param {game.Ihero_reset} message hero_reset message or plain object to encode
  12846. * @param {$protobuf.Writer} [writer] Writer to encode to
  12847. * @returns {$protobuf.Writer} Writer
  12848. */
  12849. hero_reset.encodeDelimited = function encodeDelimited(message, writer) {
  12850. return this.encode(message, writer).ldelim();
  12851. };
  12852. /**
  12853. * Decodes a hero_reset message from the specified reader or buffer.
  12854. * @function decode
  12855. * @memberof game.hero_reset
  12856. * @static
  12857. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12858. * @param {number} [length] Message length if known beforehand
  12859. * @returns {game.hero_reset} hero_reset
  12860. * @throws {Error} If the payload is not a reader or valid buffer
  12861. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12862. */
  12863. hero_reset.decode = function decode(reader, length) {
  12864. if (!(reader instanceof $Reader))
  12865. reader = $Reader.create(reader);
  12866. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_reset();
  12867. while (reader.pos < end) {
  12868. let tag = reader.uint32();
  12869. switch (tag >>> 3) {
  12870. case 1:
  12871. message.level = reader.bool();
  12872. break;
  12873. case 2:
  12874. message.sid = reader.string();
  12875. break;
  12876. default:
  12877. reader.skipType(tag & 7);
  12878. break;
  12879. }
  12880. }
  12881. return message;
  12882. };
  12883. /**
  12884. * Decodes a hero_reset message from the specified reader or buffer, length delimited.
  12885. * @function decodeDelimited
  12886. * @memberof game.hero_reset
  12887. * @static
  12888. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  12889. * @returns {game.hero_reset} hero_reset
  12890. * @throws {Error} If the payload is not a reader or valid buffer
  12891. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  12892. */
  12893. hero_reset.decodeDelimited = function decodeDelimited(reader) {
  12894. if (!(reader instanceof $Reader))
  12895. reader = new $Reader(reader);
  12896. return this.decode(reader, reader.uint32());
  12897. };
  12898. /**
  12899. * Verifies a hero_reset message.
  12900. * @function verify
  12901. * @memberof game.hero_reset
  12902. * @static
  12903. * @param {Object.<string,*>} message Plain object to verify
  12904. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  12905. */
  12906. hero_reset.verify = function verify(message) {
  12907. if (typeof message !== "object" || message === null)
  12908. return "object expected";
  12909. if (message.level != null && message.hasOwnProperty("level"))
  12910. if (typeof message.level !== "boolean")
  12911. return "level: boolean expected";
  12912. if (message.sid != null && message.hasOwnProperty("sid"))
  12913. if (!$util.isString(message.sid))
  12914. return "sid: string expected";
  12915. return null;
  12916. };
  12917. /**
  12918. * Creates a hero_reset message from a plain object. Also converts values to their respective internal types.
  12919. * @function fromObject
  12920. * @memberof game.hero_reset
  12921. * @static
  12922. * @param {Object.<string,*>} object Plain object
  12923. * @returns {game.hero_reset} hero_reset
  12924. */
  12925. hero_reset.fromObject = function fromObject(object) {
  12926. if (object instanceof $root.game.hero_reset)
  12927. return object;
  12928. let message = new $root.game.hero_reset();
  12929. if (object.level != null)
  12930. message.level = Boolean(object.level);
  12931. if (object.sid != null)
  12932. message.sid = String(object.sid);
  12933. return message;
  12934. };
  12935. /**
  12936. * Creates a plain object from a hero_reset message. Also converts values to other types if specified.
  12937. * @function toObject
  12938. * @memberof game.hero_reset
  12939. * @static
  12940. * @param {game.hero_reset} message hero_reset
  12941. * @param {$protobuf.IConversionOptions} [options] Conversion options
  12942. * @returns {Object.<string,*>} Plain object
  12943. */
  12944. hero_reset.toObject = function toObject(message, options) {
  12945. if (!options)
  12946. options = {};
  12947. let object = {};
  12948. if (options.defaults) {
  12949. object.level = false;
  12950. object.sid = "";
  12951. }
  12952. if (message.level != null && message.hasOwnProperty("level"))
  12953. object.level = message.level;
  12954. if (message.sid != null && message.hasOwnProperty("sid"))
  12955. object.sid = message.sid;
  12956. return object;
  12957. };
  12958. /**
  12959. * Converts this hero_reset to JSON.
  12960. * @function toJSON
  12961. * @memberof game.hero_reset
  12962. * @instance
  12963. * @returns {Object.<string,*>} JSON object
  12964. */
  12965. hero_reset.prototype.toJSON = function toJSON() {
  12966. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  12967. };
  12968. return hero_reset;
  12969. })();
  12970. game.hero_reset_rsp = (function() {
  12971. /**
  12972. * Properties of a hero_reset_rsp.
  12973. * @memberof game
  12974. * @interface Ihero_reset_rsp
  12975. * @property {number|Long|null} [errno] hero_reset_rsp errno
  12976. * @property {game.Ihero|null} [data] hero_reset_rsp data
  12977. */
  12978. /**
  12979. * Constructs a new hero_reset_rsp.
  12980. * @memberof game
  12981. * @classdesc Represents a hero_reset_rsp.
  12982. * @implements Ihero_reset_rsp
  12983. * @constructor
  12984. * @param {game.Ihero_reset_rsp=} [properties] Properties to set
  12985. */
  12986. function hero_reset_rsp(properties) {
  12987. if (properties)
  12988. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  12989. if (properties[keys[i]] != null)
  12990. this[keys[i]] = properties[keys[i]];
  12991. }
  12992. /**
  12993. * hero_reset_rsp errno.
  12994. * @member {number|Long} errno
  12995. * @memberof game.hero_reset_rsp
  12996. * @instance
  12997. */
  12998. hero_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  12999. /**
  13000. * hero_reset_rsp data.
  13001. * @member {game.Ihero|null|undefined} data
  13002. * @memberof game.hero_reset_rsp
  13003. * @instance
  13004. */
  13005. hero_reset_rsp.prototype.data = null;
  13006. /**
  13007. * Creates a new hero_reset_rsp instance using the specified properties.
  13008. * @function create
  13009. * @memberof game.hero_reset_rsp
  13010. * @static
  13011. * @param {game.Ihero_reset_rsp=} [properties] Properties to set
  13012. * @returns {game.hero_reset_rsp} hero_reset_rsp instance
  13013. */
  13014. hero_reset_rsp.create = function create(properties) {
  13015. return new hero_reset_rsp(properties);
  13016. };
  13017. /**
  13018. * Encodes the specified hero_reset_rsp message. Does not implicitly {@link game.hero_reset_rsp.verify|verify} messages.
  13019. * @function encode
  13020. * @memberof game.hero_reset_rsp
  13021. * @static
  13022. * @param {game.Ihero_reset_rsp} message hero_reset_rsp message or plain object to encode
  13023. * @param {$protobuf.Writer} [writer] Writer to encode to
  13024. * @returns {$protobuf.Writer} Writer
  13025. */
  13026. hero_reset_rsp.encode = function encode(message, writer) {
  13027. if (!writer)
  13028. writer = $Writer.create();
  13029. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  13030. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  13031. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  13032. $root.game.hero.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  13033. return writer;
  13034. };
  13035. /**
  13036. * Encodes the specified hero_reset_rsp message, length delimited. Does not implicitly {@link game.hero_reset_rsp.verify|verify} messages.
  13037. * @function encodeDelimited
  13038. * @memberof game.hero_reset_rsp
  13039. * @static
  13040. * @param {game.Ihero_reset_rsp} message hero_reset_rsp message or plain object to encode
  13041. * @param {$protobuf.Writer} [writer] Writer to encode to
  13042. * @returns {$protobuf.Writer} Writer
  13043. */
  13044. hero_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  13045. return this.encode(message, writer).ldelim();
  13046. };
  13047. /**
  13048. * Decodes a hero_reset_rsp message from the specified reader or buffer.
  13049. * @function decode
  13050. * @memberof game.hero_reset_rsp
  13051. * @static
  13052. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13053. * @param {number} [length] Message length if known beforehand
  13054. * @returns {game.hero_reset_rsp} hero_reset_rsp
  13055. * @throws {Error} If the payload is not a reader or valid buffer
  13056. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13057. */
  13058. hero_reset_rsp.decode = function decode(reader, length) {
  13059. if (!(reader instanceof $Reader))
  13060. reader = $Reader.create(reader);
  13061. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_reset_rsp();
  13062. while (reader.pos < end) {
  13063. let tag = reader.uint32();
  13064. switch (tag >>> 3) {
  13065. case 1:
  13066. message.errno = reader.int64();
  13067. break;
  13068. case 2:
  13069. message.data = $root.game.hero.decode(reader, reader.uint32());
  13070. break;
  13071. default:
  13072. reader.skipType(tag & 7);
  13073. break;
  13074. }
  13075. }
  13076. return message;
  13077. };
  13078. /**
  13079. * Decodes a hero_reset_rsp message from the specified reader or buffer, length delimited.
  13080. * @function decodeDelimited
  13081. * @memberof game.hero_reset_rsp
  13082. * @static
  13083. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13084. * @returns {game.hero_reset_rsp} hero_reset_rsp
  13085. * @throws {Error} If the payload is not a reader or valid buffer
  13086. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13087. */
  13088. hero_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
  13089. if (!(reader instanceof $Reader))
  13090. reader = new $Reader(reader);
  13091. return this.decode(reader, reader.uint32());
  13092. };
  13093. /**
  13094. * Verifies a hero_reset_rsp message.
  13095. * @function verify
  13096. * @memberof game.hero_reset_rsp
  13097. * @static
  13098. * @param {Object.<string,*>} message Plain object to verify
  13099. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13100. */
  13101. hero_reset_rsp.verify = function verify(message) {
  13102. if (typeof message !== "object" || message === null)
  13103. return "object expected";
  13104. if (message.errno != null && message.hasOwnProperty("errno"))
  13105. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  13106. return "errno: integer|Long expected";
  13107. if (message.data != null && message.hasOwnProperty("data")) {
  13108. let error = $root.game.hero.verify(message.data);
  13109. if (error)
  13110. return "data." + error;
  13111. }
  13112. return null;
  13113. };
  13114. /**
  13115. * Creates a hero_reset_rsp message from a plain object. Also converts values to their respective internal types.
  13116. * @function fromObject
  13117. * @memberof game.hero_reset_rsp
  13118. * @static
  13119. * @param {Object.<string,*>} object Plain object
  13120. * @returns {game.hero_reset_rsp} hero_reset_rsp
  13121. */
  13122. hero_reset_rsp.fromObject = function fromObject(object) {
  13123. if (object instanceof $root.game.hero_reset_rsp)
  13124. return object;
  13125. let message = new $root.game.hero_reset_rsp();
  13126. if (object.errno != null)
  13127. if ($util.Long)
  13128. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  13129. else if (typeof object.errno === "string")
  13130. message.errno = parseInt(object.errno, 10);
  13131. else if (typeof object.errno === "number")
  13132. message.errno = object.errno;
  13133. else if (typeof object.errno === "object")
  13134. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  13135. if (object.data != null) {
  13136. if (typeof object.data !== "object")
  13137. throw TypeError(".game.hero_reset_rsp.data: object expected");
  13138. message.data = $root.game.hero.fromObject(object.data);
  13139. }
  13140. return message;
  13141. };
  13142. /**
  13143. * Creates a plain object from a hero_reset_rsp message. Also converts values to other types if specified.
  13144. * @function toObject
  13145. * @memberof game.hero_reset_rsp
  13146. * @static
  13147. * @param {game.hero_reset_rsp} message hero_reset_rsp
  13148. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13149. * @returns {Object.<string,*>} Plain object
  13150. */
  13151. hero_reset_rsp.toObject = function toObject(message, options) {
  13152. if (!options)
  13153. options = {};
  13154. let object = {};
  13155. if (options.defaults) {
  13156. if ($util.Long) {
  13157. let long = new $util.Long(0, 0, false);
  13158. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  13159. } else
  13160. object.errno = options.longs === String ? "0" : 0;
  13161. object.data = null;
  13162. }
  13163. if (message.errno != null && message.hasOwnProperty("errno"))
  13164. if (typeof message.errno === "number")
  13165. object.errno = options.longs === String ? String(message.errno) : message.errno;
  13166. else
  13167. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  13168. if (message.data != null && message.hasOwnProperty("data"))
  13169. object.data = $root.game.hero.toObject(message.data, options);
  13170. return object;
  13171. };
  13172. /**
  13173. * Converts this hero_reset_rsp to JSON.
  13174. * @function toJSON
  13175. * @memberof game.hero_reset_rsp
  13176. * @instance
  13177. * @returns {Object.<string,*>} JSON object
  13178. */
  13179. hero_reset_rsp.prototype.toJSON = function toJSON() {
  13180. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13181. };
  13182. return hero_reset_rsp;
  13183. })();
  13184. game.hero_wear_equip = (function() {
  13185. /**
  13186. * Properties of a hero_wear_equip.
  13187. * @memberof game
  13188. * @interface Ihero_wear_equip
  13189. * @property {string|null} [sid] hero_wear_equip sid
  13190. * @property {Array.<string>|null} [list] hero_wear_equip list
  13191. */
  13192. /**
  13193. * Constructs a new hero_wear_equip.
  13194. * @memberof game
  13195. * @classdesc Represents a hero_wear_equip.
  13196. * @implements Ihero_wear_equip
  13197. * @constructor
  13198. * @param {game.Ihero_wear_equip=} [properties] Properties to set
  13199. */
  13200. function hero_wear_equip(properties) {
  13201. this.list = [];
  13202. if (properties)
  13203. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13204. if (properties[keys[i]] != null)
  13205. this[keys[i]] = properties[keys[i]];
  13206. }
  13207. /**
  13208. * hero_wear_equip sid.
  13209. * @member {string} sid
  13210. * @memberof game.hero_wear_equip
  13211. * @instance
  13212. */
  13213. hero_wear_equip.prototype.sid = "";
  13214. /**
  13215. * hero_wear_equip list.
  13216. * @member {Array.<string>} list
  13217. * @memberof game.hero_wear_equip
  13218. * @instance
  13219. */
  13220. hero_wear_equip.prototype.list = $util.emptyArray;
  13221. /**
  13222. * Creates a new hero_wear_equip instance using the specified properties.
  13223. * @function create
  13224. * @memberof game.hero_wear_equip
  13225. * @static
  13226. * @param {game.Ihero_wear_equip=} [properties] Properties to set
  13227. * @returns {game.hero_wear_equip} hero_wear_equip instance
  13228. */
  13229. hero_wear_equip.create = function create(properties) {
  13230. return new hero_wear_equip(properties);
  13231. };
  13232. /**
  13233. * Encodes the specified hero_wear_equip message. Does not implicitly {@link game.hero_wear_equip.verify|verify} messages.
  13234. * @function encode
  13235. * @memberof game.hero_wear_equip
  13236. * @static
  13237. * @param {game.Ihero_wear_equip} message hero_wear_equip message or plain object to encode
  13238. * @param {$protobuf.Writer} [writer] Writer to encode to
  13239. * @returns {$protobuf.Writer} Writer
  13240. */
  13241. hero_wear_equip.encode = function encode(message, writer) {
  13242. if (!writer)
  13243. writer = $Writer.create();
  13244. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  13245. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  13246. if (message.list != null && message.list.length)
  13247. for (let i = 0; i < message.list.length; ++i)
  13248. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  13249. return writer;
  13250. };
  13251. /**
  13252. * Encodes the specified hero_wear_equip message, length delimited. Does not implicitly {@link game.hero_wear_equip.verify|verify} messages.
  13253. * @function encodeDelimited
  13254. * @memberof game.hero_wear_equip
  13255. * @static
  13256. * @param {game.Ihero_wear_equip} message hero_wear_equip message or plain object to encode
  13257. * @param {$protobuf.Writer} [writer] Writer to encode to
  13258. * @returns {$protobuf.Writer} Writer
  13259. */
  13260. hero_wear_equip.encodeDelimited = function encodeDelimited(message, writer) {
  13261. return this.encode(message, writer).ldelim();
  13262. };
  13263. /**
  13264. * Decodes a hero_wear_equip message from the specified reader or buffer.
  13265. * @function decode
  13266. * @memberof game.hero_wear_equip
  13267. * @static
  13268. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13269. * @param {number} [length] Message length if known beforehand
  13270. * @returns {game.hero_wear_equip} hero_wear_equip
  13271. * @throws {Error} If the payload is not a reader or valid buffer
  13272. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13273. */
  13274. hero_wear_equip.decode = function decode(reader, length) {
  13275. if (!(reader instanceof $Reader))
  13276. reader = $Reader.create(reader);
  13277. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_wear_equip();
  13278. while (reader.pos < end) {
  13279. let tag = reader.uint32();
  13280. switch (tag >>> 3) {
  13281. case 1:
  13282. message.sid = reader.string();
  13283. break;
  13284. case 2:
  13285. if (!(message.list && message.list.length))
  13286. message.list = [];
  13287. message.list.push(reader.string());
  13288. break;
  13289. default:
  13290. reader.skipType(tag & 7);
  13291. break;
  13292. }
  13293. }
  13294. return message;
  13295. };
  13296. /**
  13297. * Decodes a hero_wear_equip message from the specified reader or buffer, length delimited.
  13298. * @function decodeDelimited
  13299. * @memberof game.hero_wear_equip
  13300. * @static
  13301. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13302. * @returns {game.hero_wear_equip} hero_wear_equip
  13303. * @throws {Error} If the payload is not a reader or valid buffer
  13304. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13305. */
  13306. hero_wear_equip.decodeDelimited = function decodeDelimited(reader) {
  13307. if (!(reader instanceof $Reader))
  13308. reader = new $Reader(reader);
  13309. return this.decode(reader, reader.uint32());
  13310. };
  13311. /**
  13312. * Verifies a hero_wear_equip message.
  13313. * @function verify
  13314. * @memberof game.hero_wear_equip
  13315. * @static
  13316. * @param {Object.<string,*>} message Plain object to verify
  13317. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13318. */
  13319. hero_wear_equip.verify = function verify(message) {
  13320. if (typeof message !== "object" || message === null)
  13321. return "object expected";
  13322. if (message.sid != null && message.hasOwnProperty("sid"))
  13323. if (!$util.isString(message.sid))
  13324. return "sid: string expected";
  13325. if (message.list != null && message.hasOwnProperty("list")) {
  13326. if (!Array.isArray(message.list))
  13327. return "list: array expected";
  13328. for (let i = 0; i < message.list.length; ++i)
  13329. if (!$util.isString(message.list[i]))
  13330. return "list: string[] expected";
  13331. }
  13332. return null;
  13333. };
  13334. /**
  13335. * Creates a hero_wear_equip message from a plain object. Also converts values to their respective internal types.
  13336. * @function fromObject
  13337. * @memberof game.hero_wear_equip
  13338. * @static
  13339. * @param {Object.<string,*>} object Plain object
  13340. * @returns {game.hero_wear_equip} hero_wear_equip
  13341. */
  13342. hero_wear_equip.fromObject = function fromObject(object) {
  13343. if (object instanceof $root.game.hero_wear_equip)
  13344. return object;
  13345. let message = new $root.game.hero_wear_equip();
  13346. if (object.sid != null)
  13347. message.sid = String(object.sid);
  13348. if (object.list) {
  13349. if (!Array.isArray(object.list))
  13350. throw TypeError(".game.hero_wear_equip.list: array expected");
  13351. message.list = [];
  13352. for (let i = 0; i < object.list.length; ++i)
  13353. message.list[i] = String(object.list[i]);
  13354. }
  13355. return message;
  13356. };
  13357. /**
  13358. * Creates a plain object from a hero_wear_equip message. Also converts values to other types if specified.
  13359. * @function toObject
  13360. * @memberof game.hero_wear_equip
  13361. * @static
  13362. * @param {game.hero_wear_equip} message hero_wear_equip
  13363. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13364. * @returns {Object.<string,*>} Plain object
  13365. */
  13366. hero_wear_equip.toObject = function toObject(message, options) {
  13367. if (!options)
  13368. options = {};
  13369. let object = {};
  13370. if (options.arrays || options.defaults)
  13371. object.list = [];
  13372. if (options.defaults)
  13373. object.sid = "";
  13374. if (message.sid != null && message.hasOwnProperty("sid"))
  13375. object.sid = message.sid;
  13376. if (message.list && message.list.length) {
  13377. object.list = [];
  13378. for (let j = 0; j < message.list.length; ++j)
  13379. object.list[j] = message.list[j];
  13380. }
  13381. return object;
  13382. };
  13383. /**
  13384. * Converts this hero_wear_equip to JSON.
  13385. * @function toJSON
  13386. * @memberof game.hero_wear_equip
  13387. * @instance
  13388. * @returns {Object.<string,*>} JSON object
  13389. */
  13390. hero_wear_equip.prototype.toJSON = function toJSON() {
  13391. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13392. };
  13393. return hero_wear_equip;
  13394. })();
  13395. game.hero_wear_equip_rsp = (function() {
  13396. /**
  13397. * Properties of a hero_wear_equip_rsp.
  13398. * @memberof game
  13399. * @interface Ihero_wear_equip_rsp
  13400. * @property {number|Long|null} [errno] hero_wear_equip_rsp errno
  13401. * @property {Array.<string>|null} [list] hero_wear_equip_rsp list
  13402. * @property {game.Ihero|null} [data] hero_wear_equip_rsp data
  13403. */
  13404. /**
  13405. * Constructs a new hero_wear_equip_rsp.
  13406. * @memberof game
  13407. * @classdesc Represents a hero_wear_equip_rsp.
  13408. * @implements Ihero_wear_equip_rsp
  13409. * @constructor
  13410. * @param {game.Ihero_wear_equip_rsp=} [properties] Properties to set
  13411. */
  13412. function hero_wear_equip_rsp(properties) {
  13413. this.list = [];
  13414. if (properties)
  13415. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13416. if (properties[keys[i]] != null)
  13417. this[keys[i]] = properties[keys[i]];
  13418. }
  13419. /**
  13420. * hero_wear_equip_rsp errno.
  13421. * @member {number|Long} errno
  13422. * @memberof game.hero_wear_equip_rsp
  13423. * @instance
  13424. */
  13425. hero_wear_equip_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  13426. /**
  13427. * hero_wear_equip_rsp list.
  13428. * @member {Array.<string>} list
  13429. * @memberof game.hero_wear_equip_rsp
  13430. * @instance
  13431. */
  13432. hero_wear_equip_rsp.prototype.list = $util.emptyArray;
  13433. /**
  13434. * hero_wear_equip_rsp data.
  13435. * @member {game.Ihero|null|undefined} data
  13436. * @memberof game.hero_wear_equip_rsp
  13437. * @instance
  13438. */
  13439. hero_wear_equip_rsp.prototype.data = null;
  13440. /**
  13441. * Creates a new hero_wear_equip_rsp instance using the specified properties.
  13442. * @function create
  13443. * @memberof game.hero_wear_equip_rsp
  13444. * @static
  13445. * @param {game.Ihero_wear_equip_rsp=} [properties] Properties to set
  13446. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp instance
  13447. */
  13448. hero_wear_equip_rsp.create = function create(properties) {
  13449. return new hero_wear_equip_rsp(properties);
  13450. };
  13451. /**
  13452. * Encodes the specified hero_wear_equip_rsp message. Does not implicitly {@link game.hero_wear_equip_rsp.verify|verify} messages.
  13453. * @function encode
  13454. * @memberof game.hero_wear_equip_rsp
  13455. * @static
  13456. * @param {game.Ihero_wear_equip_rsp} message hero_wear_equip_rsp message or plain object to encode
  13457. * @param {$protobuf.Writer} [writer] Writer to encode to
  13458. * @returns {$protobuf.Writer} Writer
  13459. */
  13460. hero_wear_equip_rsp.encode = function encode(message, writer) {
  13461. if (!writer)
  13462. writer = $Writer.create();
  13463. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  13464. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  13465. if (message.list != null && message.list.length)
  13466. for (let i = 0; i < message.list.length; ++i)
  13467. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  13468. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  13469. $root.game.hero.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  13470. return writer;
  13471. };
  13472. /**
  13473. * Encodes the specified hero_wear_equip_rsp message, length delimited. Does not implicitly {@link game.hero_wear_equip_rsp.verify|verify} messages.
  13474. * @function encodeDelimited
  13475. * @memberof game.hero_wear_equip_rsp
  13476. * @static
  13477. * @param {game.Ihero_wear_equip_rsp} message hero_wear_equip_rsp message or plain object to encode
  13478. * @param {$protobuf.Writer} [writer] Writer to encode to
  13479. * @returns {$protobuf.Writer} Writer
  13480. */
  13481. hero_wear_equip_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  13482. return this.encode(message, writer).ldelim();
  13483. };
  13484. /**
  13485. * Decodes a hero_wear_equip_rsp message from the specified reader or buffer.
  13486. * @function decode
  13487. * @memberof game.hero_wear_equip_rsp
  13488. * @static
  13489. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13490. * @param {number} [length] Message length if known beforehand
  13491. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
  13492. * @throws {Error} If the payload is not a reader or valid buffer
  13493. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13494. */
  13495. hero_wear_equip_rsp.decode = function decode(reader, length) {
  13496. if (!(reader instanceof $Reader))
  13497. reader = $Reader.create(reader);
  13498. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_wear_equip_rsp();
  13499. while (reader.pos < end) {
  13500. let tag = reader.uint32();
  13501. switch (tag >>> 3) {
  13502. case 1:
  13503. message.errno = reader.int64();
  13504. break;
  13505. case 2:
  13506. if (!(message.list && message.list.length))
  13507. message.list = [];
  13508. message.list.push(reader.string());
  13509. break;
  13510. case 3:
  13511. message.data = $root.game.hero.decode(reader, reader.uint32());
  13512. break;
  13513. default:
  13514. reader.skipType(tag & 7);
  13515. break;
  13516. }
  13517. }
  13518. return message;
  13519. };
  13520. /**
  13521. * Decodes a hero_wear_equip_rsp message from the specified reader or buffer, length delimited.
  13522. * @function decodeDelimited
  13523. * @memberof game.hero_wear_equip_rsp
  13524. * @static
  13525. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13526. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
  13527. * @throws {Error} If the payload is not a reader or valid buffer
  13528. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13529. */
  13530. hero_wear_equip_rsp.decodeDelimited = function decodeDelimited(reader) {
  13531. if (!(reader instanceof $Reader))
  13532. reader = new $Reader(reader);
  13533. return this.decode(reader, reader.uint32());
  13534. };
  13535. /**
  13536. * Verifies a hero_wear_equip_rsp message.
  13537. * @function verify
  13538. * @memberof game.hero_wear_equip_rsp
  13539. * @static
  13540. * @param {Object.<string,*>} message Plain object to verify
  13541. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13542. */
  13543. hero_wear_equip_rsp.verify = function verify(message) {
  13544. if (typeof message !== "object" || message === null)
  13545. return "object expected";
  13546. if (message.errno != null && message.hasOwnProperty("errno"))
  13547. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  13548. return "errno: integer|Long expected";
  13549. if (message.list != null && message.hasOwnProperty("list")) {
  13550. if (!Array.isArray(message.list))
  13551. return "list: array expected";
  13552. for (let i = 0; i < message.list.length; ++i)
  13553. if (!$util.isString(message.list[i]))
  13554. return "list: string[] expected";
  13555. }
  13556. if (message.data != null && message.hasOwnProperty("data")) {
  13557. let error = $root.game.hero.verify(message.data);
  13558. if (error)
  13559. return "data." + error;
  13560. }
  13561. return null;
  13562. };
  13563. /**
  13564. * Creates a hero_wear_equip_rsp message from a plain object. Also converts values to their respective internal types.
  13565. * @function fromObject
  13566. * @memberof game.hero_wear_equip_rsp
  13567. * @static
  13568. * @param {Object.<string,*>} object Plain object
  13569. * @returns {game.hero_wear_equip_rsp} hero_wear_equip_rsp
  13570. */
  13571. hero_wear_equip_rsp.fromObject = function fromObject(object) {
  13572. if (object instanceof $root.game.hero_wear_equip_rsp)
  13573. return object;
  13574. let message = new $root.game.hero_wear_equip_rsp();
  13575. if (object.errno != null)
  13576. if ($util.Long)
  13577. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  13578. else if (typeof object.errno === "string")
  13579. message.errno = parseInt(object.errno, 10);
  13580. else if (typeof object.errno === "number")
  13581. message.errno = object.errno;
  13582. else if (typeof object.errno === "object")
  13583. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  13584. if (object.list) {
  13585. if (!Array.isArray(object.list))
  13586. throw TypeError(".game.hero_wear_equip_rsp.list: array expected");
  13587. message.list = [];
  13588. for (let i = 0; i < object.list.length; ++i)
  13589. message.list[i] = String(object.list[i]);
  13590. }
  13591. if (object.data != null) {
  13592. if (typeof object.data !== "object")
  13593. throw TypeError(".game.hero_wear_equip_rsp.data: object expected");
  13594. message.data = $root.game.hero.fromObject(object.data);
  13595. }
  13596. return message;
  13597. };
  13598. /**
  13599. * Creates a plain object from a hero_wear_equip_rsp message. Also converts values to other types if specified.
  13600. * @function toObject
  13601. * @memberof game.hero_wear_equip_rsp
  13602. * @static
  13603. * @param {game.hero_wear_equip_rsp} message hero_wear_equip_rsp
  13604. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13605. * @returns {Object.<string,*>} Plain object
  13606. */
  13607. hero_wear_equip_rsp.toObject = function toObject(message, options) {
  13608. if (!options)
  13609. options = {};
  13610. let object = {};
  13611. if (options.arrays || options.defaults)
  13612. object.list = [];
  13613. if (options.defaults) {
  13614. if ($util.Long) {
  13615. let long = new $util.Long(0, 0, false);
  13616. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  13617. } else
  13618. object.errno = options.longs === String ? "0" : 0;
  13619. object.data = null;
  13620. }
  13621. if (message.errno != null && message.hasOwnProperty("errno"))
  13622. if (typeof message.errno === "number")
  13623. object.errno = options.longs === String ? String(message.errno) : message.errno;
  13624. else
  13625. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  13626. if (message.list && message.list.length) {
  13627. object.list = [];
  13628. for (let j = 0; j < message.list.length; ++j)
  13629. object.list[j] = message.list[j];
  13630. }
  13631. if (message.data != null && message.hasOwnProperty("data"))
  13632. object.data = $root.game.hero.toObject(message.data, options);
  13633. return object;
  13634. };
  13635. /**
  13636. * Converts this hero_wear_equip_rsp to JSON.
  13637. * @function toJSON
  13638. * @memberof game.hero_wear_equip_rsp
  13639. * @instance
  13640. * @returns {Object.<string,*>} JSON object
  13641. */
  13642. hero_wear_equip_rsp.prototype.toJSON = function toJSON() {
  13643. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13644. };
  13645. return hero_wear_equip_rsp;
  13646. })();
  13647. game.hero_change_nty = (function() {
  13648. /**
  13649. * Properties of a hero_change_nty.
  13650. * @memberof game
  13651. * @interface Ihero_change_nty
  13652. * @property {Array.<game.Ihero>|null} [list] hero_change_nty list
  13653. */
  13654. /**
  13655. * Constructs a new hero_change_nty.
  13656. * @memberof game
  13657. * @classdesc Represents a hero_change_nty.
  13658. * @implements Ihero_change_nty
  13659. * @constructor
  13660. * @param {game.Ihero_change_nty=} [properties] Properties to set
  13661. */
  13662. function hero_change_nty(properties) {
  13663. this.list = [];
  13664. if (properties)
  13665. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13666. if (properties[keys[i]] != null)
  13667. this[keys[i]] = properties[keys[i]];
  13668. }
  13669. /**
  13670. * hero_change_nty list.
  13671. * @member {Array.<game.Ihero>} list
  13672. * @memberof game.hero_change_nty
  13673. * @instance
  13674. */
  13675. hero_change_nty.prototype.list = $util.emptyArray;
  13676. /**
  13677. * Creates a new hero_change_nty instance using the specified properties.
  13678. * @function create
  13679. * @memberof game.hero_change_nty
  13680. * @static
  13681. * @param {game.Ihero_change_nty=} [properties] Properties to set
  13682. * @returns {game.hero_change_nty} hero_change_nty instance
  13683. */
  13684. hero_change_nty.create = function create(properties) {
  13685. return new hero_change_nty(properties);
  13686. };
  13687. /**
  13688. * Encodes the specified hero_change_nty message. Does not implicitly {@link game.hero_change_nty.verify|verify} messages.
  13689. * @function encode
  13690. * @memberof game.hero_change_nty
  13691. * @static
  13692. * @param {game.Ihero_change_nty} message hero_change_nty message or plain object to encode
  13693. * @param {$protobuf.Writer} [writer] Writer to encode to
  13694. * @returns {$protobuf.Writer} Writer
  13695. */
  13696. hero_change_nty.encode = function encode(message, writer) {
  13697. if (!writer)
  13698. writer = $Writer.create();
  13699. if (message.list != null && message.list.length)
  13700. for (let i = 0; i < message.list.length; ++i)
  13701. $root.game.hero.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  13702. return writer;
  13703. };
  13704. /**
  13705. * Encodes the specified hero_change_nty message, length delimited. Does not implicitly {@link game.hero_change_nty.verify|verify} messages.
  13706. * @function encodeDelimited
  13707. * @memberof game.hero_change_nty
  13708. * @static
  13709. * @param {game.Ihero_change_nty} message hero_change_nty message or plain object to encode
  13710. * @param {$protobuf.Writer} [writer] Writer to encode to
  13711. * @returns {$protobuf.Writer} Writer
  13712. */
  13713. hero_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
  13714. return this.encode(message, writer).ldelim();
  13715. };
  13716. /**
  13717. * Decodes a hero_change_nty message from the specified reader or buffer.
  13718. * @function decode
  13719. * @memberof game.hero_change_nty
  13720. * @static
  13721. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13722. * @param {number} [length] Message length if known beforehand
  13723. * @returns {game.hero_change_nty} hero_change_nty
  13724. * @throws {Error} If the payload is not a reader or valid buffer
  13725. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13726. */
  13727. hero_change_nty.decode = function decode(reader, length) {
  13728. if (!(reader instanceof $Reader))
  13729. reader = $Reader.create(reader);
  13730. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_change_nty();
  13731. while (reader.pos < end) {
  13732. let tag = reader.uint32();
  13733. switch (tag >>> 3) {
  13734. case 2:
  13735. if (!(message.list && message.list.length))
  13736. message.list = [];
  13737. message.list.push($root.game.hero.decode(reader, reader.uint32()));
  13738. break;
  13739. default:
  13740. reader.skipType(tag & 7);
  13741. break;
  13742. }
  13743. }
  13744. return message;
  13745. };
  13746. /**
  13747. * Decodes a hero_change_nty message from the specified reader or buffer, length delimited.
  13748. * @function decodeDelimited
  13749. * @memberof game.hero_change_nty
  13750. * @static
  13751. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13752. * @returns {game.hero_change_nty} hero_change_nty
  13753. * @throws {Error} If the payload is not a reader or valid buffer
  13754. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13755. */
  13756. hero_change_nty.decodeDelimited = function decodeDelimited(reader) {
  13757. if (!(reader instanceof $Reader))
  13758. reader = new $Reader(reader);
  13759. return this.decode(reader, reader.uint32());
  13760. };
  13761. /**
  13762. * Verifies a hero_change_nty message.
  13763. * @function verify
  13764. * @memberof game.hero_change_nty
  13765. * @static
  13766. * @param {Object.<string,*>} message Plain object to verify
  13767. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13768. */
  13769. hero_change_nty.verify = function verify(message) {
  13770. if (typeof message !== "object" || message === null)
  13771. return "object expected";
  13772. if (message.list != null && message.hasOwnProperty("list")) {
  13773. if (!Array.isArray(message.list))
  13774. return "list: array expected";
  13775. for (let i = 0; i < message.list.length; ++i) {
  13776. let error = $root.game.hero.verify(message.list[i]);
  13777. if (error)
  13778. return "list." + error;
  13779. }
  13780. }
  13781. return null;
  13782. };
  13783. /**
  13784. * Creates a hero_change_nty message from a plain object. Also converts values to their respective internal types.
  13785. * @function fromObject
  13786. * @memberof game.hero_change_nty
  13787. * @static
  13788. * @param {Object.<string,*>} object Plain object
  13789. * @returns {game.hero_change_nty} hero_change_nty
  13790. */
  13791. hero_change_nty.fromObject = function fromObject(object) {
  13792. if (object instanceof $root.game.hero_change_nty)
  13793. return object;
  13794. let message = new $root.game.hero_change_nty();
  13795. if (object.list) {
  13796. if (!Array.isArray(object.list))
  13797. throw TypeError(".game.hero_change_nty.list: array expected");
  13798. message.list = [];
  13799. for (let i = 0; i < object.list.length; ++i) {
  13800. if (typeof object.list[i] !== "object")
  13801. throw TypeError(".game.hero_change_nty.list: object expected");
  13802. message.list[i] = $root.game.hero.fromObject(object.list[i]);
  13803. }
  13804. }
  13805. return message;
  13806. };
  13807. /**
  13808. * Creates a plain object from a hero_change_nty message. Also converts values to other types if specified.
  13809. * @function toObject
  13810. * @memberof game.hero_change_nty
  13811. * @static
  13812. * @param {game.hero_change_nty} message hero_change_nty
  13813. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13814. * @returns {Object.<string,*>} Plain object
  13815. */
  13816. hero_change_nty.toObject = function toObject(message, options) {
  13817. if (!options)
  13818. options = {};
  13819. let object = {};
  13820. if (options.arrays || options.defaults)
  13821. object.list = [];
  13822. if (message.list && message.list.length) {
  13823. object.list = [];
  13824. for (let j = 0; j < message.list.length; ++j)
  13825. object.list[j] = $root.game.hero.toObject(message.list[j], options);
  13826. }
  13827. return object;
  13828. };
  13829. /**
  13830. * Converts this hero_change_nty to JSON.
  13831. * @function toJSON
  13832. * @memberof game.hero_change_nty
  13833. * @instance
  13834. * @returns {Object.<string,*>} JSON object
  13835. */
  13836. hero_change_nty.prototype.toJSON = function toJSON() {
  13837. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13838. };
  13839. return hero_change_nty;
  13840. })();
  13841. game.skill_card_get_data = (function() {
  13842. /**
  13843. * Properties of a skill_card_get_data.
  13844. * @memberof game
  13845. * @interface Iskill_card_get_data
  13846. */
  13847. /**
  13848. * Constructs a new skill_card_get_data.
  13849. * @memberof game
  13850. * @classdesc Represents a skill_card_get_data.
  13851. * @implements Iskill_card_get_data
  13852. * @constructor
  13853. * @param {game.Iskill_card_get_data=} [properties] Properties to set
  13854. */
  13855. function skill_card_get_data(properties) {
  13856. if (properties)
  13857. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  13858. if (properties[keys[i]] != null)
  13859. this[keys[i]] = properties[keys[i]];
  13860. }
  13861. /**
  13862. * Creates a new skill_card_get_data instance using the specified properties.
  13863. * @function create
  13864. * @memberof game.skill_card_get_data
  13865. * @static
  13866. * @param {game.Iskill_card_get_data=} [properties] Properties to set
  13867. * @returns {game.skill_card_get_data} skill_card_get_data instance
  13868. */
  13869. skill_card_get_data.create = function create(properties) {
  13870. return new skill_card_get_data(properties);
  13871. };
  13872. /**
  13873. * Encodes the specified skill_card_get_data message. Does not implicitly {@link game.skill_card_get_data.verify|verify} messages.
  13874. * @function encode
  13875. * @memberof game.skill_card_get_data
  13876. * @static
  13877. * @param {game.Iskill_card_get_data} message skill_card_get_data message or plain object to encode
  13878. * @param {$protobuf.Writer} [writer] Writer to encode to
  13879. * @returns {$protobuf.Writer} Writer
  13880. */
  13881. skill_card_get_data.encode = function encode(message, writer) {
  13882. if (!writer)
  13883. writer = $Writer.create();
  13884. return writer;
  13885. };
  13886. /**
  13887. * Encodes the specified skill_card_get_data message, length delimited. Does not implicitly {@link game.skill_card_get_data.verify|verify} messages.
  13888. * @function encodeDelimited
  13889. * @memberof game.skill_card_get_data
  13890. * @static
  13891. * @param {game.Iskill_card_get_data} message skill_card_get_data message or plain object to encode
  13892. * @param {$protobuf.Writer} [writer] Writer to encode to
  13893. * @returns {$protobuf.Writer} Writer
  13894. */
  13895. skill_card_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  13896. return this.encode(message, writer).ldelim();
  13897. };
  13898. /**
  13899. * Decodes a skill_card_get_data message from the specified reader or buffer.
  13900. * @function decode
  13901. * @memberof game.skill_card_get_data
  13902. * @static
  13903. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13904. * @param {number} [length] Message length if known beforehand
  13905. * @returns {game.skill_card_get_data} skill_card_get_data
  13906. * @throws {Error} If the payload is not a reader or valid buffer
  13907. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13908. */
  13909. skill_card_get_data.decode = function decode(reader, length) {
  13910. if (!(reader instanceof $Reader))
  13911. reader = $Reader.create(reader);
  13912. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_get_data();
  13913. while (reader.pos < end) {
  13914. let tag = reader.uint32();
  13915. switch (tag >>> 3) {
  13916. default:
  13917. reader.skipType(tag & 7);
  13918. break;
  13919. }
  13920. }
  13921. return message;
  13922. };
  13923. /**
  13924. * Decodes a skill_card_get_data message from the specified reader or buffer, length delimited.
  13925. * @function decodeDelimited
  13926. * @memberof game.skill_card_get_data
  13927. * @static
  13928. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  13929. * @returns {game.skill_card_get_data} skill_card_get_data
  13930. * @throws {Error} If the payload is not a reader or valid buffer
  13931. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  13932. */
  13933. skill_card_get_data.decodeDelimited = function decodeDelimited(reader) {
  13934. if (!(reader instanceof $Reader))
  13935. reader = new $Reader(reader);
  13936. return this.decode(reader, reader.uint32());
  13937. };
  13938. /**
  13939. * Verifies a skill_card_get_data message.
  13940. * @function verify
  13941. * @memberof game.skill_card_get_data
  13942. * @static
  13943. * @param {Object.<string,*>} message Plain object to verify
  13944. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  13945. */
  13946. skill_card_get_data.verify = function verify(message) {
  13947. if (typeof message !== "object" || message === null)
  13948. return "object expected";
  13949. return null;
  13950. };
  13951. /**
  13952. * Creates a skill_card_get_data message from a plain object. Also converts values to their respective internal types.
  13953. * @function fromObject
  13954. * @memberof game.skill_card_get_data
  13955. * @static
  13956. * @param {Object.<string,*>} object Plain object
  13957. * @returns {game.skill_card_get_data} skill_card_get_data
  13958. */
  13959. skill_card_get_data.fromObject = function fromObject(object) {
  13960. if (object instanceof $root.game.skill_card_get_data)
  13961. return object;
  13962. return new $root.game.skill_card_get_data();
  13963. };
  13964. /**
  13965. * Creates a plain object from a skill_card_get_data message. Also converts values to other types if specified.
  13966. * @function toObject
  13967. * @memberof game.skill_card_get_data
  13968. * @static
  13969. * @param {game.skill_card_get_data} message skill_card_get_data
  13970. * @param {$protobuf.IConversionOptions} [options] Conversion options
  13971. * @returns {Object.<string,*>} Plain object
  13972. */
  13973. skill_card_get_data.toObject = function toObject() {
  13974. return {};
  13975. };
  13976. /**
  13977. * Converts this skill_card_get_data to JSON.
  13978. * @function toJSON
  13979. * @memberof game.skill_card_get_data
  13980. * @instance
  13981. * @returns {Object.<string,*>} JSON object
  13982. */
  13983. skill_card_get_data.prototype.toJSON = function toJSON() {
  13984. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  13985. };
  13986. return skill_card_get_data;
  13987. })();
  13988. game.skill_card_get_data_rsp = (function() {
  13989. /**
  13990. * Properties of a skill_card_get_data_rsp.
  13991. * @memberof game
  13992. * @interface Iskill_card_get_data_rsp
  13993. * @property {number|Long|null} [errno] skill_card_get_data_rsp errno
  13994. * @property {Array.<game.Icard>|null} [list] skill_card_get_data_rsp list
  13995. */
  13996. /**
  13997. * Constructs a new skill_card_get_data_rsp.
  13998. * @memberof game
  13999. * @classdesc Represents a skill_card_get_data_rsp.
  14000. * @implements Iskill_card_get_data_rsp
  14001. * @constructor
  14002. * @param {game.Iskill_card_get_data_rsp=} [properties] Properties to set
  14003. */
  14004. function skill_card_get_data_rsp(properties) {
  14005. this.list = [];
  14006. if (properties)
  14007. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14008. if (properties[keys[i]] != null)
  14009. this[keys[i]] = properties[keys[i]];
  14010. }
  14011. /**
  14012. * skill_card_get_data_rsp errno.
  14013. * @member {number|Long} errno
  14014. * @memberof game.skill_card_get_data_rsp
  14015. * @instance
  14016. */
  14017. skill_card_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14018. /**
  14019. * skill_card_get_data_rsp list.
  14020. * @member {Array.<game.Icard>} list
  14021. * @memberof game.skill_card_get_data_rsp
  14022. * @instance
  14023. */
  14024. skill_card_get_data_rsp.prototype.list = $util.emptyArray;
  14025. /**
  14026. * Creates a new skill_card_get_data_rsp instance using the specified properties.
  14027. * @function create
  14028. * @memberof game.skill_card_get_data_rsp
  14029. * @static
  14030. * @param {game.Iskill_card_get_data_rsp=} [properties] Properties to set
  14031. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp instance
  14032. */
  14033. skill_card_get_data_rsp.create = function create(properties) {
  14034. return new skill_card_get_data_rsp(properties);
  14035. };
  14036. /**
  14037. * Encodes the specified skill_card_get_data_rsp message. Does not implicitly {@link game.skill_card_get_data_rsp.verify|verify} messages.
  14038. * @function encode
  14039. * @memberof game.skill_card_get_data_rsp
  14040. * @static
  14041. * @param {game.Iskill_card_get_data_rsp} message skill_card_get_data_rsp message or plain object to encode
  14042. * @param {$protobuf.Writer} [writer] Writer to encode to
  14043. * @returns {$protobuf.Writer} Writer
  14044. */
  14045. skill_card_get_data_rsp.encode = function encode(message, writer) {
  14046. if (!writer)
  14047. writer = $Writer.create();
  14048. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  14049. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  14050. if (message.list != null && message.list.length)
  14051. for (let i = 0; i < message.list.length; ++i)
  14052. $root.game.card.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  14053. return writer;
  14054. };
  14055. /**
  14056. * Encodes the specified skill_card_get_data_rsp message, length delimited. Does not implicitly {@link game.skill_card_get_data_rsp.verify|verify} messages.
  14057. * @function encodeDelimited
  14058. * @memberof game.skill_card_get_data_rsp
  14059. * @static
  14060. * @param {game.Iskill_card_get_data_rsp} message skill_card_get_data_rsp message or plain object to encode
  14061. * @param {$protobuf.Writer} [writer] Writer to encode to
  14062. * @returns {$protobuf.Writer} Writer
  14063. */
  14064. skill_card_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  14065. return this.encode(message, writer).ldelim();
  14066. };
  14067. /**
  14068. * Decodes a skill_card_get_data_rsp message from the specified reader or buffer.
  14069. * @function decode
  14070. * @memberof game.skill_card_get_data_rsp
  14071. * @static
  14072. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14073. * @param {number} [length] Message length if known beforehand
  14074. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
  14075. * @throws {Error} If the payload is not a reader or valid buffer
  14076. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14077. */
  14078. skill_card_get_data_rsp.decode = function decode(reader, length) {
  14079. if (!(reader instanceof $Reader))
  14080. reader = $Reader.create(reader);
  14081. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_get_data_rsp();
  14082. while (reader.pos < end) {
  14083. let tag = reader.uint32();
  14084. switch (tag >>> 3) {
  14085. case 1:
  14086. message.errno = reader.int64();
  14087. break;
  14088. case 2:
  14089. if (!(message.list && message.list.length))
  14090. message.list = [];
  14091. message.list.push($root.game.card.decode(reader, reader.uint32()));
  14092. break;
  14093. default:
  14094. reader.skipType(tag & 7);
  14095. break;
  14096. }
  14097. }
  14098. return message;
  14099. };
  14100. /**
  14101. * Decodes a skill_card_get_data_rsp message from the specified reader or buffer, length delimited.
  14102. * @function decodeDelimited
  14103. * @memberof game.skill_card_get_data_rsp
  14104. * @static
  14105. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14106. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
  14107. * @throws {Error} If the payload is not a reader or valid buffer
  14108. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14109. */
  14110. skill_card_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  14111. if (!(reader instanceof $Reader))
  14112. reader = new $Reader(reader);
  14113. return this.decode(reader, reader.uint32());
  14114. };
  14115. /**
  14116. * Verifies a skill_card_get_data_rsp message.
  14117. * @function verify
  14118. * @memberof game.skill_card_get_data_rsp
  14119. * @static
  14120. * @param {Object.<string,*>} message Plain object to verify
  14121. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14122. */
  14123. skill_card_get_data_rsp.verify = function verify(message) {
  14124. if (typeof message !== "object" || message === null)
  14125. return "object expected";
  14126. if (message.errno != null && message.hasOwnProperty("errno"))
  14127. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  14128. return "errno: integer|Long expected";
  14129. if (message.list != null && message.hasOwnProperty("list")) {
  14130. if (!Array.isArray(message.list))
  14131. return "list: array expected";
  14132. for (let i = 0; i < message.list.length; ++i) {
  14133. let error = $root.game.card.verify(message.list[i]);
  14134. if (error)
  14135. return "list." + error;
  14136. }
  14137. }
  14138. return null;
  14139. };
  14140. /**
  14141. * Creates a skill_card_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  14142. * @function fromObject
  14143. * @memberof game.skill_card_get_data_rsp
  14144. * @static
  14145. * @param {Object.<string,*>} object Plain object
  14146. * @returns {game.skill_card_get_data_rsp} skill_card_get_data_rsp
  14147. */
  14148. skill_card_get_data_rsp.fromObject = function fromObject(object) {
  14149. if (object instanceof $root.game.skill_card_get_data_rsp)
  14150. return object;
  14151. let message = new $root.game.skill_card_get_data_rsp();
  14152. if (object.errno != null)
  14153. if ($util.Long)
  14154. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  14155. else if (typeof object.errno === "string")
  14156. message.errno = parseInt(object.errno, 10);
  14157. else if (typeof object.errno === "number")
  14158. message.errno = object.errno;
  14159. else if (typeof object.errno === "object")
  14160. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  14161. if (object.list) {
  14162. if (!Array.isArray(object.list))
  14163. throw TypeError(".game.skill_card_get_data_rsp.list: array expected");
  14164. message.list = [];
  14165. for (let i = 0; i < object.list.length; ++i) {
  14166. if (typeof object.list[i] !== "object")
  14167. throw TypeError(".game.skill_card_get_data_rsp.list: object expected");
  14168. message.list[i] = $root.game.card.fromObject(object.list[i]);
  14169. }
  14170. }
  14171. return message;
  14172. };
  14173. /**
  14174. * Creates a plain object from a skill_card_get_data_rsp message. Also converts values to other types if specified.
  14175. * @function toObject
  14176. * @memberof game.skill_card_get_data_rsp
  14177. * @static
  14178. * @param {game.skill_card_get_data_rsp} message skill_card_get_data_rsp
  14179. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14180. * @returns {Object.<string,*>} Plain object
  14181. */
  14182. skill_card_get_data_rsp.toObject = function toObject(message, options) {
  14183. if (!options)
  14184. options = {};
  14185. let object = {};
  14186. if (options.arrays || options.defaults)
  14187. object.list = [];
  14188. if (options.defaults)
  14189. if ($util.Long) {
  14190. let long = new $util.Long(0, 0, false);
  14191. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14192. } else
  14193. object.errno = options.longs === String ? "0" : 0;
  14194. if (message.errno != null && message.hasOwnProperty("errno"))
  14195. if (typeof message.errno === "number")
  14196. object.errno = options.longs === String ? String(message.errno) : message.errno;
  14197. else
  14198. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  14199. if (message.list && message.list.length) {
  14200. object.list = [];
  14201. for (let j = 0; j < message.list.length; ++j)
  14202. object.list[j] = $root.game.card.toObject(message.list[j], options);
  14203. }
  14204. return object;
  14205. };
  14206. /**
  14207. * Converts this skill_card_get_data_rsp to JSON.
  14208. * @function toJSON
  14209. * @memberof game.skill_card_get_data_rsp
  14210. * @instance
  14211. * @returns {Object.<string,*>} JSON object
  14212. */
  14213. skill_card_get_data_rsp.prototype.toJSON = function toJSON() {
  14214. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14215. };
  14216. return skill_card_get_data_rsp;
  14217. })();
  14218. game.skill_card_upgrade = (function() {
  14219. /**
  14220. * Properties of a skill_card_upgrade.
  14221. * @memberof game
  14222. * @interface Iskill_card_upgrade
  14223. * @property {string|null} [sid] skill_card_upgrade sid
  14224. * @property {number|Long|null} [num] skill_card_upgrade num
  14225. */
  14226. /**
  14227. * Constructs a new skill_card_upgrade.
  14228. * @memberof game
  14229. * @classdesc Represents a skill_card_upgrade.
  14230. * @implements Iskill_card_upgrade
  14231. * @constructor
  14232. * @param {game.Iskill_card_upgrade=} [properties] Properties to set
  14233. */
  14234. function skill_card_upgrade(properties) {
  14235. if (properties)
  14236. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14237. if (properties[keys[i]] != null)
  14238. this[keys[i]] = properties[keys[i]];
  14239. }
  14240. /**
  14241. * skill_card_upgrade sid.
  14242. * @member {string} sid
  14243. * @memberof game.skill_card_upgrade
  14244. * @instance
  14245. */
  14246. skill_card_upgrade.prototype.sid = "";
  14247. /**
  14248. * skill_card_upgrade num.
  14249. * @member {number|Long} num
  14250. * @memberof game.skill_card_upgrade
  14251. * @instance
  14252. */
  14253. skill_card_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14254. /**
  14255. * Creates a new skill_card_upgrade instance using the specified properties.
  14256. * @function create
  14257. * @memberof game.skill_card_upgrade
  14258. * @static
  14259. * @param {game.Iskill_card_upgrade=} [properties] Properties to set
  14260. * @returns {game.skill_card_upgrade} skill_card_upgrade instance
  14261. */
  14262. skill_card_upgrade.create = function create(properties) {
  14263. return new skill_card_upgrade(properties);
  14264. };
  14265. /**
  14266. * Encodes the specified skill_card_upgrade message. Does not implicitly {@link game.skill_card_upgrade.verify|verify} messages.
  14267. * @function encode
  14268. * @memberof game.skill_card_upgrade
  14269. * @static
  14270. * @param {game.Iskill_card_upgrade} message skill_card_upgrade message or plain object to encode
  14271. * @param {$protobuf.Writer} [writer] Writer to encode to
  14272. * @returns {$protobuf.Writer} Writer
  14273. */
  14274. skill_card_upgrade.encode = function encode(message, writer) {
  14275. if (!writer)
  14276. writer = $Writer.create();
  14277. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  14278. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  14279. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  14280. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  14281. return writer;
  14282. };
  14283. /**
  14284. * Encodes the specified skill_card_upgrade message, length delimited. Does not implicitly {@link game.skill_card_upgrade.verify|verify} messages.
  14285. * @function encodeDelimited
  14286. * @memberof game.skill_card_upgrade
  14287. * @static
  14288. * @param {game.Iskill_card_upgrade} message skill_card_upgrade message or plain object to encode
  14289. * @param {$protobuf.Writer} [writer] Writer to encode to
  14290. * @returns {$protobuf.Writer} Writer
  14291. */
  14292. skill_card_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  14293. return this.encode(message, writer).ldelim();
  14294. };
  14295. /**
  14296. * Decodes a skill_card_upgrade message from the specified reader or buffer.
  14297. * @function decode
  14298. * @memberof game.skill_card_upgrade
  14299. * @static
  14300. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14301. * @param {number} [length] Message length if known beforehand
  14302. * @returns {game.skill_card_upgrade} skill_card_upgrade
  14303. * @throws {Error} If the payload is not a reader or valid buffer
  14304. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14305. */
  14306. skill_card_upgrade.decode = function decode(reader, length) {
  14307. if (!(reader instanceof $Reader))
  14308. reader = $Reader.create(reader);
  14309. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade();
  14310. while (reader.pos < end) {
  14311. let tag = reader.uint32();
  14312. switch (tag >>> 3) {
  14313. case 1:
  14314. message.sid = reader.string();
  14315. break;
  14316. case 2:
  14317. message.num = reader.int64();
  14318. break;
  14319. default:
  14320. reader.skipType(tag & 7);
  14321. break;
  14322. }
  14323. }
  14324. return message;
  14325. };
  14326. /**
  14327. * Decodes a skill_card_upgrade message from the specified reader or buffer, length delimited.
  14328. * @function decodeDelimited
  14329. * @memberof game.skill_card_upgrade
  14330. * @static
  14331. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14332. * @returns {game.skill_card_upgrade} skill_card_upgrade
  14333. * @throws {Error} If the payload is not a reader or valid buffer
  14334. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14335. */
  14336. skill_card_upgrade.decodeDelimited = function decodeDelimited(reader) {
  14337. if (!(reader instanceof $Reader))
  14338. reader = new $Reader(reader);
  14339. return this.decode(reader, reader.uint32());
  14340. };
  14341. /**
  14342. * Verifies a skill_card_upgrade message.
  14343. * @function verify
  14344. * @memberof game.skill_card_upgrade
  14345. * @static
  14346. * @param {Object.<string,*>} message Plain object to verify
  14347. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14348. */
  14349. skill_card_upgrade.verify = function verify(message) {
  14350. if (typeof message !== "object" || message === null)
  14351. return "object expected";
  14352. if (message.sid != null && message.hasOwnProperty("sid"))
  14353. if (!$util.isString(message.sid))
  14354. return "sid: string expected";
  14355. if (message.num != null && message.hasOwnProperty("num"))
  14356. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  14357. return "num: integer|Long expected";
  14358. return null;
  14359. };
  14360. /**
  14361. * Creates a skill_card_upgrade message from a plain object. Also converts values to their respective internal types.
  14362. * @function fromObject
  14363. * @memberof game.skill_card_upgrade
  14364. * @static
  14365. * @param {Object.<string,*>} object Plain object
  14366. * @returns {game.skill_card_upgrade} skill_card_upgrade
  14367. */
  14368. skill_card_upgrade.fromObject = function fromObject(object) {
  14369. if (object instanceof $root.game.skill_card_upgrade)
  14370. return object;
  14371. let message = new $root.game.skill_card_upgrade();
  14372. if (object.sid != null)
  14373. message.sid = String(object.sid);
  14374. if (object.num != null)
  14375. if ($util.Long)
  14376. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  14377. else if (typeof object.num === "string")
  14378. message.num = parseInt(object.num, 10);
  14379. else if (typeof object.num === "number")
  14380. message.num = object.num;
  14381. else if (typeof object.num === "object")
  14382. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  14383. return message;
  14384. };
  14385. /**
  14386. * Creates a plain object from a skill_card_upgrade message. Also converts values to other types if specified.
  14387. * @function toObject
  14388. * @memberof game.skill_card_upgrade
  14389. * @static
  14390. * @param {game.skill_card_upgrade} message skill_card_upgrade
  14391. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14392. * @returns {Object.<string,*>} Plain object
  14393. */
  14394. skill_card_upgrade.toObject = function toObject(message, options) {
  14395. if (!options)
  14396. options = {};
  14397. let object = {};
  14398. if (options.defaults) {
  14399. object.sid = "";
  14400. if ($util.Long) {
  14401. let long = new $util.Long(0, 0, false);
  14402. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14403. } else
  14404. object.num = options.longs === String ? "0" : 0;
  14405. }
  14406. if (message.sid != null && message.hasOwnProperty("sid"))
  14407. object.sid = message.sid;
  14408. if (message.num != null && message.hasOwnProperty("num"))
  14409. if (typeof message.num === "number")
  14410. object.num = options.longs === String ? String(message.num) : message.num;
  14411. else
  14412. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  14413. return object;
  14414. };
  14415. /**
  14416. * Converts this skill_card_upgrade to JSON.
  14417. * @function toJSON
  14418. * @memberof game.skill_card_upgrade
  14419. * @instance
  14420. * @returns {Object.<string,*>} JSON object
  14421. */
  14422. skill_card_upgrade.prototype.toJSON = function toJSON() {
  14423. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14424. };
  14425. return skill_card_upgrade;
  14426. })();
  14427. game.skill_card_upgrade_rsp = (function() {
  14428. /**
  14429. * Properties of a skill_card_upgrade_rsp.
  14430. * @memberof game
  14431. * @interface Iskill_card_upgrade_rsp
  14432. * @property {number|Long|null} [errno] skill_card_upgrade_rsp errno
  14433. * @property {game.Icard|null} [data] skill_card_upgrade_rsp data
  14434. */
  14435. /**
  14436. * Constructs a new skill_card_upgrade_rsp.
  14437. * @memberof game
  14438. * @classdesc Represents a skill_card_upgrade_rsp.
  14439. * @implements Iskill_card_upgrade_rsp
  14440. * @constructor
  14441. * @param {game.Iskill_card_upgrade_rsp=} [properties] Properties to set
  14442. */
  14443. function skill_card_upgrade_rsp(properties) {
  14444. if (properties)
  14445. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14446. if (properties[keys[i]] != null)
  14447. this[keys[i]] = properties[keys[i]];
  14448. }
  14449. /**
  14450. * skill_card_upgrade_rsp errno.
  14451. * @member {number|Long} errno
  14452. * @memberof game.skill_card_upgrade_rsp
  14453. * @instance
  14454. */
  14455. skill_card_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14456. /**
  14457. * skill_card_upgrade_rsp data.
  14458. * @member {game.Icard|null|undefined} data
  14459. * @memberof game.skill_card_upgrade_rsp
  14460. * @instance
  14461. */
  14462. skill_card_upgrade_rsp.prototype.data = null;
  14463. /**
  14464. * Creates a new skill_card_upgrade_rsp instance using the specified properties.
  14465. * @function create
  14466. * @memberof game.skill_card_upgrade_rsp
  14467. * @static
  14468. * @param {game.Iskill_card_upgrade_rsp=} [properties] Properties to set
  14469. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp instance
  14470. */
  14471. skill_card_upgrade_rsp.create = function create(properties) {
  14472. return new skill_card_upgrade_rsp(properties);
  14473. };
  14474. /**
  14475. * Encodes the specified skill_card_upgrade_rsp message. Does not implicitly {@link game.skill_card_upgrade_rsp.verify|verify} messages.
  14476. * @function encode
  14477. * @memberof game.skill_card_upgrade_rsp
  14478. * @static
  14479. * @param {game.Iskill_card_upgrade_rsp} message skill_card_upgrade_rsp message or plain object to encode
  14480. * @param {$protobuf.Writer} [writer] Writer to encode to
  14481. * @returns {$protobuf.Writer} Writer
  14482. */
  14483. skill_card_upgrade_rsp.encode = function encode(message, writer) {
  14484. if (!writer)
  14485. writer = $Writer.create();
  14486. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  14487. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  14488. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  14489. $root.game.card.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  14490. return writer;
  14491. };
  14492. /**
  14493. * Encodes the specified skill_card_upgrade_rsp message, length delimited. Does not implicitly {@link game.skill_card_upgrade_rsp.verify|verify} messages.
  14494. * @function encodeDelimited
  14495. * @memberof game.skill_card_upgrade_rsp
  14496. * @static
  14497. * @param {game.Iskill_card_upgrade_rsp} message skill_card_upgrade_rsp message or plain object to encode
  14498. * @param {$protobuf.Writer} [writer] Writer to encode to
  14499. * @returns {$protobuf.Writer} Writer
  14500. */
  14501. skill_card_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  14502. return this.encode(message, writer).ldelim();
  14503. };
  14504. /**
  14505. * Decodes a skill_card_upgrade_rsp message from the specified reader or buffer.
  14506. * @function decode
  14507. * @memberof game.skill_card_upgrade_rsp
  14508. * @static
  14509. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14510. * @param {number} [length] Message length if known beforehand
  14511. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
  14512. * @throws {Error} If the payload is not a reader or valid buffer
  14513. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14514. */
  14515. skill_card_upgrade_rsp.decode = function decode(reader, length) {
  14516. if (!(reader instanceof $Reader))
  14517. reader = $Reader.create(reader);
  14518. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_rsp();
  14519. while (reader.pos < end) {
  14520. let tag = reader.uint32();
  14521. switch (tag >>> 3) {
  14522. case 1:
  14523. message.errno = reader.int64();
  14524. break;
  14525. case 2:
  14526. message.data = $root.game.card.decode(reader, reader.uint32());
  14527. break;
  14528. default:
  14529. reader.skipType(tag & 7);
  14530. break;
  14531. }
  14532. }
  14533. return message;
  14534. };
  14535. /**
  14536. * Decodes a skill_card_upgrade_rsp message from the specified reader or buffer, length delimited.
  14537. * @function decodeDelimited
  14538. * @memberof game.skill_card_upgrade_rsp
  14539. * @static
  14540. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14541. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
  14542. * @throws {Error} If the payload is not a reader or valid buffer
  14543. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14544. */
  14545. skill_card_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  14546. if (!(reader instanceof $Reader))
  14547. reader = new $Reader(reader);
  14548. return this.decode(reader, reader.uint32());
  14549. };
  14550. /**
  14551. * Verifies a skill_card_upgrade_rsp message.
  14552. * @function verify
  14553. * @memberof game.skill_card_upgrade_rsp
  14554. * @static
  14555. * @param {Object.<string,*>} message Plain object to verify
  14556. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14557. */
  14558. skill_card_upgrade_rsp.verify = function verify(message) {
  14559. if (typeof message !== "object" || message === null)
  14560. return "object expected";
  14561. if (message.errno != null && message.hasOwnProperty("errno"))
  14562. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  14563. return "errno: integer|Long expected";
  14564. if (message.data != null && message.hasOwnProperty("data")) {
  14565. let error = $root.game.card.verify(message.data);
  14566. if (error)
  14567. return "data." + error;
  14568. }
  14569. return null;
  14570. };
  14571. /**
  14572. * Creates a skill_card_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  14573. * @function fromObject
  14574. * @memberof game.skill_card_upgrade_rsp
  14575. * @static
  14576. * @param {Object.<string,*>} object Plain object
  14577. * @returns {game.skill_card_upgrade_rsp} skill_card_upgrade_rsp
  14578. */
  14579. skill_card_upgrade_rsp.fromObject = function fromObject(object) {
  14580. if (object instanceof $root.game.skill_card_upgrade_rsp)
  14581. return object;
  14582. let message = new $root.game.skill_card_upgrade_rsp();
  14583. if (object.errno != null)
  14584. if ($util.Long)
  14585. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  14586. else if (typeof object.errno === "string")
  14587. message.errno = parseInt(object.errno, 10);
  14588. else if (typeof object.errno === "number")
  14589. message.errno = object.errno;
  14590. else if (typeof object.errno === "object")
  14591. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  14592. if (object.data != null) {
  14593. if (typeof object.data !== "object")
  14594. throw TypeError(".game.skill_card_upgrade_rsp.data: object expected");
  14595. message.data = $root.game.card.fromObject(object.data);
  14596. }
  14597. return message;
  14598. };
  14599. /**
  14600. * Creates a plain object from a skill_card_upgrade_rsp message. Also converts values to other types if specified.
  14601. * @function toObject
  14602. * @memberof game.skill_card_upgrade_rsp
  14603. * @static
  14604. * @param {game.skill_card_upgrade_rsp} message skill_card_upgrade_rsp
  14605. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14606. * @returns {Object.<string,*>} Plain object
  14607. */
  14608. skill_card_upgrade_rsp.toObject = function toObject(message, options) {
  14609. if (!options)
  14610. options = {};
  14611. let object = {};
  14612. if (options.defaults) {
  14613. if ($util.Long) {
  14614. let long = new $util.Long(0, 0, false);
  14615. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  14616. } else
  14617. object.errno = options.longs === String ? "0" : 0;
  14618. object.data = null;
  14619. }
  14620. if (message.errno != null && message.hasOwnProperty("errno"))
  14621. if (typeof message.errno === "number")
  14622. object.errno = options.longs === String ? String(message.errno) : message.errno;
  14623. else
  14624. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  14625. if (message.data != null && message.hasOwnProperty("data"))
  14626. object.data = $root.game.card.toObject(message.data, options);
  14627. return object;
  14628. };
  14629. /**
  14630. * Converts this skill_card_upgrade_rsp to JSON.
  14631. * @function toJSON
  14632. * @memberof game.skill_card_upgrade_rsp
  14633. * @instance
  14634. * @returns {Object.<string,*>} JSON object
  14635. */
  14636. skill_card_upgrade_rsp.prototype.toJSON = function toJSON() {
  14637. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14638. };
  14639. return skill_card_upgrade_rsp;
  14640. })();
  14641. game.skill_card_upgrade_star = (function() {
  14642. /**
  14643. * Properties of a skill_card_upgrade_star.
  14644. * @memberof game
  14645. * @interface Iskill_card_upgrade_star
  14646. * @property {string|null} [sid] skill_card_upgrade_star sid
  14647. */
  14648. /**
  14649. * Constructs a new skill_card_upgrade_star.
  14650. * @memberof game
  14651. * @classdesc Represents a skill_card_upgrade_star.
  14652. * @implements Iskill_card_upgrade_star
  14653. * @constructor
  14654. * @param {game.Iskill_card_upgrade_star=} [properties] Properties to set
  14655. */
  14656. function skill_card_upgrade_star(properties) {
  14657. if (properties)
  14658. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14659. if (properties[keys[i]] != null)
  14660. this[keys[i]] = properties[keys[i]];
  14661. }
  14662. /**
  14663. * skill_card_upgrade_star sid.
  14664. * @member {string} sid
  14665. * @memberof game.skill_card_upgrade_star
  14666. * @instance
  14667. */
  14668. skill_card_upgrade_star.prototype.sid = "";
  14669. /**
  14670. * Creates a new skill_card_upgrade_star instance using the specified properties.
  14671. * @function create
  14672. * @memberof game.skill_card_upgrade_star
  14673. * @static
  14674. * @param {game.Iskill_card_upgrade_star=} [properties] Properties to set
  14675. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star instance
  14676. */
  14677. skill_card_upgrade_star.create = function create(properties) {
  14678. return new skill_card_upgrade_star(properties);
  14679. };
  14680. /**
  14681. * Encodes the specified skill_card_upgrade_star message. Does not implicitly {@link game.skill_card_upgrade_star.verify|verify} messages.
  14682. * @function encode
  14683. * @memberof game.skill_card_upgrade_star
  14684. * @static
  14685. * @param {game.Iskill_card_upgrade_star} message skill_card_upgrade_star message or plain object to encode
  14686. * @param {$protobuf.Writer} [writer] Writer to encode to
  14687. * @returns {$protobuf.Writer} Writer
  14688. */
  14689. skill_card_upgrade_star.encode = function encode(message, writer) {
  14690. if (!writer)
  14691. writer = $Writer.create();
  14692. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  14693. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  14694. return writer;
  14695. };
  14696. /**
  14697. * Encodes the specified skill_card_upgrade_star message, length delimited. Does not implicitly {@link game.skill_card_upgrade_star.verify|verify} messages.
  14698. * @function encodeDelimited
  14699. * @memberof game.skill_card_upgrade_star
  14700. * @static
  14701. * @param {game.Iskill_card_upgrade_star} message skill_card_upgrade_star message or plain object to encode
  14702. * @param {$protobuf.Writer} [writer] Writer to encode to
  14703. * @returns {$protobuf.Writer} Writer
  14704. */
  14705. skill_card_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  14706. return this.encode(message, writer).ldelim();
  14707. };
  14708. /**
  14709. * Decodes a skill_card_upgrade_star message from the specified reader or buffer.
  14710. * @function decode
  14711. * @memberof game.skill_card_upgrade_star
  14712. * @static
  14713. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14714. * @param {number} [length] Message length if known beforehand
  14715. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
  14716. * @throws {Error} If the payload is not a reader or valid buffer
  14717. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14718. */
  14719. skill_card_upgrade_star.decode = function decode(reader, length) {
  14720. if (!(reader instanceof $Reader))
  14721. reader = $Reader.create(reader);
  14722. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_star();
  14723. while (reader.pos < end) {
  14724. let tag = reader.uint32();
  14725. switch (tag >>> 3) {
  14726. case 1:
  14727. message.sid = reader.string();
  14728. break;
  14729. default:
  14730. reader.skipType(tag & 7);
  14731. break;
  14732. }
  14733. }
  14734. return message;
  14735. };
  14736. /**
  14737. * Decodes a skill_card_upgrade_star message from the specified reader or buffer, length delimited.
  14738. * @function decodeDelimited
  14739. * @memberof game.skill_card_upgrade_star
  14740. * @static
  14741. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14742. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
  14743. * @throws {Error} If the payload is not a reader or valid buffer
  14744. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14745. */
  14746. skill_card_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  14747. if (!(reader instanceof $Reader))
  14748. reader = new $Reader(reader);
  14749. return this.decode(reader, reader.uint32());
  14750. };
  14751. /**
  14752. * Verifies a skill_card_upgrade_star message.
  14753. * @function verify
  14754. * @memberof game.skill_card_upgrade_star
  14755. * @static
  14756. * @param {Object.<string,*>} message Plain object to verify
  14757. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14758. */
  14759. skill_card_upgrade_star.verify = function verify(message) {
  14760. if (typeof message !== "object" || message === null)
  14761. return "object expected";
  14762. if (message.sid != null && message.hasOwnProperty("sid"))
  14763. if (!$util.isString(message.sid))
  14764. return "sid: string expected";
  14765. return null;
  14766. };
  14767. /**
  14768. * Creates a skill_card_upgrade_star message from a plain object. Also converts values to their respective internal types.
  14769. * @function fromObject
  14770. * @memberof game.skill_card_upgrade_star
  14771. * @static
  14772. * @param {Object.<string,*>} object Plain object
  14773. * @returns {game.skill_card_upgrade_star} skill_card_upgrade_star
  14774. */
  14775. skill_card_upgrade_star.fromObject = function fromObject(object) {
  14776. if (object instanceof $root.game.skill_card_upgrade_star)
  14777. return object;
  14778. let message = new $root.game.skill_card_upgrade_star();
  14779. if (object.sid != null)
  14780. message.sid = String(object.sid);
  14781. return message;
  14782. };
  14783. /**
  14784. * Creates a plain object from a skill_card_upgrade_star message. Also converts values to other types if specified.
  14785. * @function toObject
  14786. * @memberof game.skill_card_upgrade_star
  14787. * @static
  14788. * @param {game.skill_card_upgrade_star} message skill_card_upgrade_star
  14789. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14790. * @returns {Object.<string,*>} Plain object
  14791. */
  14792. skill_card_upgrade_star.toObject = function toObject(message, options) {
  14793. if (!options)
  14794. options = {};
  14795. let object = {};
  14796. if (options.defaults)
  14797. object.sid = "";
  14798. if (message.sid != null && message.hasOwnProperty("sid"))
  14799. object.sid = message.sid;
  14800. return object;
  14801. };
  14802. /**
  14803. * Converts this skill_card_upgrade_star to JSON.
  14804. * @function toJSON
  14805. * @memberof game.skill_card_upgrade_star
  14806. * @instance
  14807. * @returns {Object.<string,*>} JSON object
  14808. */
  14809. skill_card_upgrade_star.prototype.toJSON = function toJSON() {
  14810. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  14811. };
  14812. return skill_card_upgrade_star;
  14813. })();
  14814. game.skill_card_upgrade_star_rsp = (function() {
  14815. /**
  14816. * Properties of a skill_card_upgrade_star_rsp.
  14817. * @memberof game
  14818. * @interface Iskill_card_upgrade_star_rsp
  14819. * @property {number|Long|null} [errno] skill_card_upgrade_star_rsp errno
  14820. * @property {game.Icard|null} [data] skill_card_upgrade_star_rsp data
  14821. */
  14822. /**
  14823. * Constructs a new skill_card_upgrade_star_rsp.
  14824. * @memberof game
  14825. * @classdesc Represents a skill_card_upgrade_star_rsp.
  14826. * @implements Iskill_card_upgrade_star_rsp
  14827. * @constructor
  14828. * @param {game.Iskill_card_upgrade_star_rsp=} [properties] Properties to set
  14829. */
  14830. function skill_card_upgrade_star_rsp(properties) {
  14831. if (properties)
  14832. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  14833. if (properties[keys[i]] != null)
  14834. this[keys[i]] = properties[keys[i]];
  14835. }
  14836. /**
  14837. * skill_card_upgrade_star_rsp errno.
  14838. * @member {number|Long} errno
  14839. * @memberof game.skill_card_upgrade_star_rsp
  14840. * @instance
  14841. */
  14842. skill_card_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  14843. /**
  14844. * skill_card_upgrade_star_rsp data.
  14845. * @member {game.Icard|null|undefined} data
  14846. * @memberof game.skill_card_upgrade_star_rsp
  14847. * @instance
  14848. */
  14849. skill_card_upgrade_star_rsp.prototype.data = null;
  14850. /**
  14851. * Creates a new skill_card_upgrade_star_rsp instance using the specified properties.
  14852. * @function create
  14853. * @memberof game.skill_card_upgrade_star_rsp
  14854. * @static
  14855. * @param {game.Iskill_card_upgrade_star_rsp=} [properties] Properties to set
  14856. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp instance
  14857. */
  14858. skill_card_upgrade_star_rsp.create = function create(properties) {
  14859. return new skill_card_upgrade_star_rsp(properties);
  14860. };
  14861. /**
  14862. * Encodes the specified skill_card_upgrade_star_rsp message. Does not implicitly {@link game.skill_card_upgrade_star_rsp.verify|verify} messages.
  14863. * @function encode
  14864. * @memberof game.skill_card_upgrade_star_rsp
  14865. * @static
  14866. * @param {game.Iskill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp message or plain object to encode
  14867. * @param {$protobuf.Writer} [writer] Writer to encode to
  14868. * @returns {$protobuf.Writer} Writer
  14869. */
  14870. skill_card_upgrade_star_rsp.encode = function encode(message, writer) {
  14871. if (!writer)
  14872. writer = $Writer.create();
  14873. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  14874. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  14875. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  14876. $root.game.card.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  14877. return writer;
  14878. };
  14879. /**
  14880. * Encodes the specified skill_card_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.skill_card_upgrade_star_rsp.verify|verify} messages.
  14881. * @function encodeDelimited
  14882. * @memberof game.skill_card_upgrade_star_rsp
  14883. * @static
  14884. * @param {game.Iskill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp message or plain object to encode
  14885. * @param {$protobuf.Writer} [writer] Writer to encode to
  14886. * @returns {$protobuf.Writer} Writer
  14887. */
  14888. skill_card_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  14889. return this.encode(message, writer).ldelim();
  14890. };
  14891. /**
  14892. * Decodes a skill_card_upgrade_star_rsp message from the specified reader or buffer.
  14893. * @function decode
  14894. * @memberof game.skill_card_upgrade_star_rsp
  14895. * @static
  14896. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14897. * @param {number} [length] Message length if known beforehand
  14898. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
  14899. * @throws {Error} If the payload is not a reader or valid buffer
  14900. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14901. */
  14902. skill_card_upgrade_star_rsp.decode = function decode(reader, length) {
  14903. if (!(reader instanceof $Reader))
  14904. reader = $Reader.create(reader);
  14905. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.skill_card_upgrade_star_rsp();
  14906. while (reader.pos < end) {
  14907. let tag = reader.uint32();
  14908. switch (tag >>> 3) {
  14909. case 1:
  14910. message.errno = reader.int64();
  14911. break;
  14912. case 2:
  14913. message.data = $root.game.card.decode(reader, reader.uint32());
  14914. break;
  14915. default:
  14916. reader.skipType(tag & 7);
  14917. break;
  14918. }
  14919. }
  14920. return message;
  14921. };
  14922. /**
  14923. * Decodes a skill_card_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  14924. * @function decodeDelimited
  14925. * @memberof game.skill_card_upgrade_star_rsp
  14926. * @static
  14927. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  14928. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
  14929. * @throws {Error} If the payload is not a reader or valid buffer
  14930. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  14931. */
  14932. skill_card_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  14933. if (!(reader instanceof $Reader))
  14934. reader = new $Reader(reader);
  14935. return this.decode(reader, reader.uint32());
  14936. };
  14937. /**
  14938. * Verifies a skill_card_upgrade_star_rsp message.
  14939. * @function verify
  14940. * @memberof game.skill_card_upgrade_star_rsp
  14941. * @static
  14942. * @param {Object.<string,*>} message Plain object to verify
  14943. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  14944. */
  14945. skill_card_upgrade_star_rsp.verify = function verify(message) {
  14946. if (typeof message !== "object" || message === null)
  14947. return "object expected";
  14948. if (message.errno != null && message.hasOwnProperty("errno"))
  14949. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  14950. return "errno: integer|Long expected";
  14951. if (message.data != null && message.hasOwnProperty("data")) {
  14952. let error = $root.game.card.verify(message.data);
  14953. if (error)
  14954. return "data." + error;
  14955. }
  14956. return null;
  14957. };
  14958. /**
  14959. * Creates a skill_card_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  14960. * @function fromObject
  14961. * @memberof game.skill_card_upgrade_star_rsp
  14962. * @static
  14963. * @param {Object.<string,*>} object Plain object
  14964. * @returns {game.skill_card_upgrade_star_rsp} skill_card_upgrade_star_rsp
  14965. */
  14966. skill_card_upgrade_star_rsp.fromObject = function fromObject(object) {
  14967. if (object instanceof $root.game.skill_card_upgrade_star_rsp)
  14968. return object;
  14969. let message = new $root.game.skill_card_upgrade_star_rsp();
  14970. if (object.errno != null)
  14971. if ($util.Long)
  14972. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  14973. else if (typeof object.errno === "string")
  14974. message.errno = parseInt(object.errno, 10);
  14975. else if (typeof object.errno === "number")
  14976. message.errno = object.errno;
  14977. else if (typeof object.errno === "object")
  14978. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  14979. if (object.data != null) {
  14980. if (typeof object.data !== "object")
  14981. throw TypeError(".game.skill_card_upgrade_star_rsp.data: object expected");
  14982. message.data = $root.game.card.fromObject(object.data);
  14983. }
  14984. return message;
  14985. };
  14986. /**
  14987. * Creates a plain object from a skill_card_upgrade_star_rsp message. Also converts values to other types if specified.
  14988. * @function toObject
  14989. * @memberof game.skill_card_upgrade_star_rsp
  14990. * @static
  14991. * @param {game.skill_card_upgrade_star_rsp} message skill_card_upgrade_star_rsp
  14992. * @param {$protobuf.IConversionOptions} [options] Conversion options
  14993. * @returns {Object.<string,*>} Plain object
  14994. */
  14995. skill_card_upgrade_star_rsp.toObject = function toObject(message, options) {
  14996. if (!options)
  14997. options = {};
  14998. let object = {};
  14999. if (options.defaults) {
  15000. if ($util.Long) {
  15001. let long = new $util.Long(0, 0, false);
  15002. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15003. } else
  15004. object.errno = options.longs === String ? "0" : 0;
  15005. object.data = null;
  15006. }
  15007. if (message.errno != null && message.hasOwnProperty("errno"))
  15008. if (typeof message.errno === "number")
  15009. object.errno = options.longs === String ? String(message.errno) : message.errno;
  15010. else
  15011. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  15012. if (message.data != null && message.hasOwnProperty("data"))
  15013. object.data = $root.game.card.toObject(message.data, options);
  15014. return object;
  15015. };
  15016. /**
  15017. * Converts this skill_card_upgrade_star_rsp to JSON.
  15018. * @function toJSON
  15019. * @memberof game.skill_card_upgrade_star_rsp
  15020. * @instance
  15021. * @returns {Object.<string,*>} JSON object
  15022. */
  15023. skill_card_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  15024. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15025. };
  15026. return skill_card_upgrade_star_rsp;
  15027. })();
  15028. game.role_get_data = (function() {
  15029. /**
  15030. * Properties of a role_get_data.
  15031. * @memberof game
  15032. * @interface Irole_get_data
  15033. */
  15034. /**
  15035. * Constructs a new role_get_data.
  15036. * @memberof game
  15037. * @classdesc Represents a role_get_data.
  15038. * @implements Irole_get_data
  15039. * @constructor
  15040. * @param {game.Irole_get_data=} [properties] Properties to set
  15041. */
  15042. function role_get_data(properties) {
  15043. if (properties)
  15044. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15045. if (properties[keys[i]] != null)
  15046. this[keys[i]] = properties[keys[i]];
  15047. }
  15048. /**
  15049. * Creates a new role_get_data instance using the specified properties.
  15050. * @function create
  15051. * @memberof game.role_get_data
  15052. * @static
  15053. * @param {game.Irole_get_data=} [properties] Properties to set
  15054. * @returns {game.role_get_data} role_get_data instance
  15055. */
  15056. role_get_data.create = function create(properties) {
  15057. return new role_get_data(properties);
  15058. };
  15059. /**
  15060. * Encodes the specified role_get_data message. Does not implicitly {@link game.role_get_data.verify|verify} messages.
  15061. * @function encode
  15062. * @memberof game.role_get_data
  15063. * @static
  15064. * @param {game.Irole_get_data} message role_get_data message or plain object to encode
  15065. * @param {$protobuf.Writer} [writer] Writer to encode to
  15066. * @returns {$protobuf.Writer} Writer
  15067. */
  15068. role_get_data.encode = function encode(message, writer) {
  15069. if (!writer)
  15070. writer = $Writer.create();
  15071. return writer;
  15072. };
  15073. /**
  15074. * Encodes the specified role_get_data message, length delimited. Does not implicitly {@link game.role_get_data.verify|verify} messages.
  15075. * @function encodeDelimited
  15076. * @memberof game.role_get_data
  15077. * @static
  15078. * @param {game.Irole_get_data} message role_get_data message or plain object to encode
  15079. * @param {$protobuf.Writer} [writer] Writer to encode to
  15080. * @returns {$protobuf.Writer} Writer
  15081. */
  15082. role_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  15083. return this.encode(message, writer).ldelim();
  15084. };
  15085. /**
  15086. * Decodes a role_get_data message from the specified reader or buffer.
  15087. * @function decode
  15088. * @memberof game.role_get_data
  15089. * @static
  15090. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15091. * @param {number} [length] Message length if known beforehand
  15092. * @returns {game.role_get_data} role_get_data
  15093. * @throws {Error} If the payload is not a reader or valid buffer
  15094. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15095. */
  15096. role_get_data.decode = function decode(reader, length) {
  15097. if (!(reader instanceof $Reader))
  15098. reader = $Reader.create(reader);
  15099. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_get_data();
  15100. while (reader.pos < end) {
  15101. let tag = reader.uint32();
  15102. switch (tag >>> 3) {
  15103. default:
  15104. reader.skipType(tag & 7);
  15105. break;
  15106. }
  15107. }
  15108. return message;
  15109. };
  15110. /**
  15111. * Decodes a role_get_data message from the specified reader or buffer, length delimited.
  15112. * @function decodeDelimited
  15113. * @memberof game.role_get_data
  15114. * @static
  15115. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15116. * @returns {game.role_get_data} role_get_data
  15117. * @throws {Error} If the payload is not a reader or valid buffer
  15118. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15119. */
  15120. role_get_data.decodeDelimited = function decodeDelimited(reader) {
  15121. if (!(reader instanceof $Reader))
  15122. reader = new $Reader(reader);
  15123. return this.decode(reader, reader.uint32());
  15124. };
  15125. /**
  15126. * Verifies a role_get_data message.
  15127. * @function verify
  15128. * @memberof game.role_get_data
  15129. * @static
  15130. * @param {Object.<string,*>} message Plain object to verify
  15131. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15132. */
  15133. role_get_data.verify = function verify(message) {
  15134. if (typeof message !== "object" || message === null)
  15135. return "object expected";
  15136. return null;
  15137. };
  15138. /**
  15139. * Creates a role_get_data message from a plain object. Also converts values to their respective internal types.
  15140. * @function fromObject
  15141. * @memberof game.role_get_data
  15142. * @static
  15143. * @param {Object.<string,*>} object Plain object
  15144. * @returns {game.role_get_data} role_get_data
  15145. */
  15146. role_get_data.fromObject = function fromObject(object) {
  15147. if (object instanceof $root.game.role_get_data)
  15148. return object;
  15149. return new $root.game.role_get_data();
  15150. };
  15151. /**
  15152. * Creates a plain object from a role_get_data message. Also converts values to other types if specified.
  15153. * @function toObject
  15154. * @memberof game.role_get_data
  15155. * @static
  15156. * @param {game.role_get_data} message role_get_data
  15157. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15158. * @returns {Object.<string,*>} Plain object
  15159. */
  15160. role_get_data.toObject = function toObject() {
  15161. return {};
  15162. };
  15163. /**
  15164. * Converts this role_get_data to JSON.
  15165. * @function toJSON
  15166. * @memberof game.role_get_data
  15167. * @instance
  15168. * @returns {Object.<string,*>} JSON object
  15169. */
  15170. role_get_data.prototype.toJSON = function toJSON() {
  15171. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15172. };
  15173. return role_get_data;
  15174. })();
  15175. game.role_get_data_rsp = (function() {
  15176. /**
  15177. * Properties of a role_get_data_rsp.
  15178. * @memberof game
  15179. * @interface Irole_get_data_rsp
  15180. * @property {number|Long|null} [errno] role_get_data_rsp errno
  15181. * @property {number|Long|null} [level] role_get_data_rsp level
  15182. * @property {number|Long|null} [exp] role_get_data_rsp exp
  15183. */
  15184. /**
  15185. * Constructs a new role_get_data_rsp.
  15186. * @memberof game
  15187. * @classdesc Represents a role_get_data_rsp.
  15188. * @implements Irole_get_data_rsp
  15189. * @constructor
  15190. * @param {game.Irole_get_data_rsp=} [properties] Properties to set
  15191. */
  15192. function role_get_data_rsp(properties) {
  15193. if (properties)
  15194. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15195. if (properties[keys[i]] != null)
  15196. this[keys[i]] = properties[keys[i]];
  15197. }
  15198. /**
  15199. * role_get_data_rsp errno.
  15200. * @member {number|Long} errno
  15201. * @memberof game.role_get_data_rsp
  15202. * @instance
  15203. */
  15204. role_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15205. /**
  15206. * role_get_data_rsp level.
  15207. * @member {number|Long} level
  15208. * @memberof game.role_get_data_rsp
  15209. * @instance
  15210. */
  15211. role_get_data_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15212. /**
  15213. * role_get_data_rsp exp.
  15214. * @member {number|Long} exp
  15215. * @memberof game.role_get_data_rsp
  15216. * @instance
  15217. */
  15218. role_get_data_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15219. /**
  15220. * Creates a new role_get_data_rsp instance using the specified properties.
  15221. * @function create
  15222. * @memberof game.role_get_data_rsp
  15223. * @static
  15224. * @param {game.Irole_get_data_rsp=} [properties] Properties to set
  15225. * @returns {game.role_get_data_rsp} role_get_data_rsp instance
  15226. */
  15227. role_get_data_rsp.create = function create(properties) {
  15228. return new role_get_data_rsp(properties);
  15229. };
  15230. /**
  15231. * Encodes the specified role_get_data_rsp message. Does not implicitly {@link game.role_get_data_rsp.verify|verify} messages.
  15232. * @function encode
  15233. * @memberof game.role_get_data_rsp
  15234. * @static
  15235. * @param {game.Irole_get_data_rsp} message role_get_data_rsp message or plain object to encode
  15236. * @param {$protobuf.Writer} [writer] Writer to encode to
  15237. * @returns {$protobuf.Writer} Writer
  15238. */
  15239. role_get_data_rsp.encode = function encode(message, writer) {
  15240. if (!writer)
  15241. writer = $Writer.create();
  15242. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  15243. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  15244. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  15245. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  15246. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  15247. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
  15248. return writer;
  15249. };
  15250. /**
  15251. * Encodes the specified role_get_data_rsp message, length delimited. Does not implicitly {@link game.role_get_data_rsp.verify|verify} messages.
  15252. * @function encodeDelimited
  15253. * @memberof game.role_get_data_rsp
  15254. * @static
  15255. * @param {game.Irole_get_data_rsp} message role_get_data_rsp message or plain object to encode
  15256. * @param {$protobuf.Writer} [writer] Writer to encode to
  15257. * @returns {$protobuf.Writer} Writer
  15258. */
  15259. role_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  15260. return this.encode(message, writer).ldelim();
  15261. };
  15262. /**
  15263. * Decodes a role_get_data_rsp message from the specified reader or buffer.
  15264. * @function decode
  15265. * @memberof game.role_get_data_rsp
  15266. * @static
  15267. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15268. * @param {number} [length] Message length if known beforehand
  15269. * @returns {game.role_get_data_rsp} role_get_data_rsp
  15270. * @throws {Error} If the payload is not a reader or valid buffer
  15271. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15272. */
  15273. role_get_data_rsp.decode = function decode(reader, length) {
  15274. if (!(reader instanceof $Reader))
  15275. reader = $Reader.create(reader);
  15276. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_get_data_rsp();
  15277. while (reader.pos < end) {
  15278. let tag = reader.uint32();
  15279. switch (tag >>> 3) {
  15280. case 1:
  15281. message.errno = reader.int64();
  15282. break;
  15283. case 2:
  15284. message.level = reader.int64();
  15285. break;
  15286. case 3:
  15287. message.exp = reader.int64();
  15288. break;
  15289. default:
  15290. reader.skipType(tag & 7);
  15291. break;
  15292. }
  15293. }
  15294. return message;
  15295. };
  15296. /**
  15297. * Decodes a role_get_data_rsp message from the specified reader or buffer, length delimited.
  15298. * @function decodeDelimited
  15299. * @memberof game.role_get_data_rsp
  15300. * @static
  15301. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15302. * @returns {game.role_get_data_rsp} role_get_data_rsp
  15303. * @throws {Error} If the payload is not a reader or valid buffer
  15304. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15305. */
  15306. role_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  15307. if (!(reader instanceof $Reader))
  15308. reader = new $Reader(reader);
  15309. return this.decode(reader, reader.uint32());
  15310. };
  15311. /**
  15312. * Verifies a role_get_data_rsp message.
  15313. * @function verify
  15314. * @memberof game.role_get_data_rsp
  15315. * @static
  15316. * @param {Object.<string,*>} message Plain object to verify
  15317. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15318. */
  15319. role_get_data_rsp.verify = function verify(message) {
  15320. if (typeof message !== "object" || message === null)
  15321. return "object expected";
  15322. if (message.errno != null && message.hasOwnProperty("errno"))
  15323. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  15324. return "errno: integer|Long expected";
  15325. if (message.level != null && message.hasOwnProperty("level"))
  15326. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  15327. return "level: integer|Long expected";
  15328. if (message.exp != null && message.hasOwnProperty("exp"))
  15329. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  15330. return "exp: integer|Long expected";
  15331. return null;
  15332. };
  15333. /**
  15334. * Creates a role_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  15335. * @function fromObject
  15336. * @memberof game.role_get_data_rsp
  15337. * @static
  15338. * @param {Object.<string,*>} object Plain object
  15339. * @returns {game.role_get_data_rsp} role_get_data_rsp
  15340. */
  15341. role_get_data_rsp.fromObject = function fromObject(object) {
  15342. if (object instanceof $root.game.role_get_data_rsp)
  15343. return object;
  15344. let message = new $root.game.role_get_data_rsp();
  15345. if (object.errno != null)
  15346. if ($util.Long)
  15347. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  15348. else if (typeof object.errno === "string")
  15349. message.errno = parseInt(object.errno, 10);
  15350. else if (typeof object.errno === "number")
  15351. message.errno = object.errno;
  15352. else if (typeof object.errno === "object")
  15353. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  15354. if (object.level != null)
  15355. if ($util.Long)
  15356. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  15357. else if (typeof object.level === "string")
  15358. message.level = parseInt(object.level, 10);
  15359. else if (typeof object.level === "number")
  15360. message.level = object.level;
  15361. else if (typeof object.level === "object")
  15362. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  15363. if (object.exp != null)
  15364. if ($util.Long)
  15365. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  15366. else if (typeof object.exp === "string")
  15367. message.exp = parseInt(object.exp, 10);
  15368. else if (typeof object.exp === "number")
  15369. message.exp = object.exp;
  15370. else if (typeof object.exp === "object")
  15371. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  15372. return message;
  15373. };
  15374. /**
  15375. * Creates a plain object from a role_get_data_rsp message. Also converts values to other types if specified.
  15376. * @function toObject
  15377. * @memberof game.role_get_data_rsp
  15378. * @static
  15379. * @param {game.role_get_data_rsp} message role_get_data_rsp
  15380. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15381. * @returns {Object.<string,*>} Plain object
  15382. */
  15383. role_get_data_rsp.toObject = function toObject(message, options) {
  15384. if (!options)
  15385. options = {};
  15386. let object = {};
  15387. if (options.defaults) {
  15388. if ($util.Long) {
  15389. let long = new $util.Long(0, 0, false);
  15390. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15391. } else
  15392. object.errno = options.longs === String ? "0" : 0;
  15393. if ($util.Long) {
  15394. let long = new $util.Long(0, 0, false);
  15395. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15396. } else
  15397. object.level = options.longs === String ? "0" : 0;
  15398. if ($util.Long) {
  15399. let long = new $util.Long(0, 0, false);
  15400. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15401. } else
  15402. object.exp = options.longs === String ? "0" : 0;
  15403. }
  15404. if (message.errno != null && message.hasOwnProperty("errno"))
  15405. if (typeof message.errno === "number")
  15406. object.errno = options.longs === String ? String(message.errno) : message.errno;
  15407. else
  15408. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  15409. if (message.level != null && message.hasOwnProperty("level"))
  15410. if (typeof message.level === "number")
  15411. object.level = options.longs === String ? String(message.level) : message.level;
  15412. else
  15413. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  15414. if (message.exp != null && message.hasOwnProperty("exp"))
  15415. if (typeof message.exp === "number")
  15416. object.exp = options.longs === String ? String(message.exp) : message.exp;
  15417. else
  15418. object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
  15419. return object;
  15420. };
  15421. /**
  15422. * Converts this role_get_data_rsp to JSON.
  15423. * @function toJSON
  15424. * @memberof game.role_get_data_rsp
  15425. * @instance
  15426. * @returns {Object.<string,*>} JSON object
  15427. */
  15428. role_get_data_rsp.prototype.toJSON = function toJSON() {
  15429. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15430. };
  15431. return role_get_data_rsp;
  15432. })();
  15433. game.role_upgrade = (function() {
  15434. /**
  15435. * Properties of a role_upgrade.
  15436. * @memberof game
  15437. * @interface Irole_upgrade
  15438. */
  15439. /**
  15440. * Constructs a new role_upgrade.
  15441. * @memberof game
  15442. * @classdesc Represents a role_upgrade.
  15443. * @implements Irole_upgrade
  15444. * @constructor
  15445. * @param {game.Irole_upgrade=} [properties] Properties to set
  15446. */
  15447. function role_upgrade(properties) {
  15448. if (properties)
  15449. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15450. if (properties[keys[i]] != null)
  15451. this[keys[i]] = properties[keys[i]];
  15452. }
  15453. /**
  15454. * Creates a new role_upgrade instance using the specified properties.
  15455. * @function create
  15456. * @memberof game.role_upgrade
  15457. * @static
  15458. * @param {game.Irole_upgrade=} [properties] Properties to set
  15459. * @returns {game.role_upgrade} role_upgrade instance
  15460. */
  15461. role_upgrade.create = function create(properties) {
  15462. return new role_upgrade(properties);
  15463. };
  15464. /**
  15465. * Encodes the specified role_upgrade message. Does not implicitly {@link game.role_upgrade.verify|verify} messages.
  15466. * @function encode
  15467. * @memberof game.role_upgrade
  15468. * @static
  15469. * @param {game.Irole_upgrade} message role_upgrade message or plain object to encode
  15470. * @param {$protobuf.Writer} [writer] Writer to encode to
  15471. * @returns {$protobuf.Writer} Writer
  15472. */
  15473. role_upgrade.encode = function encode(message, writer) {
  15474. if (!writer)
  15475. writer = $Writer.create();
  15476. return writer;
  15477. };
  15478. /**
  15479. * Encodes the specified role_upgrade message, length delimited. Does not implicitly {@link game.role_upgrade.verify|verify} messages.
  15480. * @function encodeDelimited
  15481. * @memberof game.role_upgrade
  15482. * @static
  15483. * @param {game.Irole_upgrade} message role_upgrade message or plain object to encode
  15484. * @param {$protobuf.Writer} [writer] Writer to encode to
  15485. * @returns {$protobuf.Writer} Writer
  15486. */
  15487. role_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  15488. return this.encode(message, writer).ldelim();
  15489. };
  15490. /**
  15491. * Decodes a role_upgrade message from the specified reader or buffer.
  15492. * @function decode
  15493. * @memberof game.role_upgrade
  15494. * @static
  15495. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15496. * @param {number} [length] Message length if known beforehand
  15497. * @returns {game.role_upgrade} role_upgrade
  15498. * @throws {Error} If the payload is not a reader or valid buffer
  15499. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15500. */
  15501. role_upgrade.decode = function decode(reader, length) {
  15502. if (!(reader instanceof $Reader))
  15503. reader = $Reader.create(reader);
  15504. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_upgrade();
  15505. while (reader.pos < end) {
  15506. let tag = reader.uint32();
  15507. switch (tag >>> 3) {
  15508. default:
  15509. reader.skipType(tag & 7);
  15510. break;
  15511. }
  15512. }
  15513. return message;
  15514. };
  15515. /**
  15516. * Decodes a role_upgrade message from the specified reader or buffer, length delimited.
  15517. * @function decodeDelimited
  15518. * @memberof game.role_upgrade
  15519. * @static
  15520. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15521. * @returns {game.role_upgrade} role_upgrade
  15522. * @throws {Error} If the payload is not a reader or valid buffer
  15523. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15524. */
  15525. role_upgrade.decodeDelimited = function decodeDelimited(reader) {
  15526. if (!(reader instanceof $Reader))
  15527. reader = new $Reader(reader);
  15528. return this.decode(reader, reader.uint32());
  15529. };
  15530. /**
  15531. * Verifies a role_upgrade message.
  15532. * @function verify
  15533. * @memberof game.role_upgrade
  15534. * @static
  15535. * @param {Object.<string,*>} message Plain object to verify
  15536. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15537. */
  15538. role_upgrade.verify = function verify(message) {
  15539. if (typeof message !== "object" || message === null)
  15540. return "object expected";
  15541. return null;
  15542. };
  15543. /**
  15544. * Creates a role_upgrade message from a plain object. Also converts values to their respective internal types.
  15545. * @function fromObject
  15546. * @memberof game.role_upgrade
  15547. * @static
  15548. * @param {Object.<string,*>} object Plain object
  15549. * @returns {game.role_upgrade} role_upgrade
  15550. */
  15551. role_upgrade.fromObject = function fromObject(object) {
  15552. if (object instanceof $root.game.role_upgrade)
  15553. return object;
  15554. return new $root.game.role_upgrade();
  15555. };
  15556. /**
  15557. * Creates a plain object from a role_upgrade message. Also converts values to other types if specified.
  15558. * @function toObject
  15559. * @memberof game.role_upgrade
  15560. * @static
  15561. * @param {game.role_upgrade} message role_upgrade
  15562. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15563. * @returns {Object.<string,*>} Plain object
  15564. */
  15565. role_upgrade.toObject = function toObject() {
  15566. return {};
  15567. };
  15568. /**
  15569. * Converts this role_upgrade to JSON.
  15570. * @function toJSON
  15571. * @memberof game.role_upgrade
  15572. * @instance
  15573. * @returns {Object.<string,*>} JSON object
  15574. */
  15575. role_upgrade.prototype.toJSON = function toJSON() {
  15576. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15577. };
  15578. return role_upgrade;
  15579. })();
  15580. game.role_upgrade_rsp = (function() {
  15581. /**
  15582. * Properties of a role_upgrade_rsp.
  15583. * @memberof game
  15584. * @interface Irole_upgrade_rsp
  15585. * @property {number|Long|null} [errno] role_upgrade_rsp errno
  15586. * @property {number|Long|null} [level] role_upgrade_rsp level
  15587. * @property {number|Long|null} [exp] role_upgrade_rsp exp
  15588. */
  15589. /**
  15590. * Constructs a new role_upgrade_rsp.
  15591. * @memberof game
  15592. * @classdesc Represents a role_upgrade_rsp.
  15593. * @implements Irole_upgrade_rsp
  15594. * @constructor
  15595. * @param {game.Irole_upgrade_rsp=} [properties] Properties to set
  15596. */
  15597. function role_upgrade_rsp(properties) {
  15598. if (properties)
  15599. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15600. if (properties[keys[i]] != null)
  15601. this[keys[i]] = properties[keys[i]];
  15602. }
  15603. /**
  15604. * role_upgrade_rsp errno.
  15605. * @member {number|Long} errno
  15606. * @memberof game.role_upgrade_rsp
  15607. * @instance
  15608. */
  15609. role_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15610. /**
  15611. * role_upgrade_rsp level.
  15612. * @member {number|Long} level
  15613. * @memberof game.role_upgrade_rsp
  15614. * @instance
  15615. */
  15616. role_upgrade_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15617. /**
  15618. * role_upgrade_rsp exp.
  15619. * @member {number|Long} exp
  15620. * @memberof game.role_upgrade_rsp
  15621. * @instance
  15622. */
  15623. role_upgrade_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  15624. /**
  15625. * Creates a new role_upgrade_rsp instance using the specified properties.
  15626. * @function create
  15627. * @memberof game.role_upgrade_rsp
  15628. * @static
  15629. * @param {game.Irole_upgrade_rsp=} [properties] Properties to set
  15630. * @returns {game.role_upgrade_rsp} role_upgrade_rsp instance
  15631. */
  15632. role_upgrade_rsp.create = function create(properties) {
  15633. return new role_upgrade_rsp(properties);
  15634. };
  15635. /**
  15636. * Encodes the specified role_upgrade_rsp message. Does not implicitly {@link game.role_upgrade_rsp.verify|verify} messages.
  15637. * @function encode
  15638. * @memberof game.role_upgrade_rsp
  15639. * @static
  15640. * @param {game.Irole_upgrade_rsp} message role_upgrade_rsp message or plain object to encode
  15641. * @param {$protobuf.Writer} [writer] Writer to encode to
  15642. * @returns {$protobuf.Writer} Writer
  15643. */
  15644. role_upgrade_rsp.encode = function encode(message, writer) {
  15645. if (!writer)
  15646. writer = $Writer.create();
  15647. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  15648. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  15649. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  15650. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  15651. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  15652. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
  15653. return writer;
  15654. };
  15655. /**
  15656. * Encodes the specified role_upgrade_rsp message, length delimited. Does not implicitly {@link game.role_upgrade_rsp.verify|verify} messages.
  15657. * @function encodeDelimited
  15658. * @memberof game.role_upgrade_rsp
  15659. * @static
  15660. * @param {game.Irole_upgrade_rsp} message role_upgrade_rsp message or plain object to encode
  15661. * @param {$protobuf.Writer} [writer] Writer to encode to
  15662. * @returns {$protobuf.Writer} Writer
  15663. */
  15664. role_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  15665. return this.encode(message, writer).ldelim();
  15666. };
  15667. /**
  15668. * Decodes a role_upgrade_rsp message from the specified reader or buffer.
  15669. * @function decode
  15670. * @memberof game.role_upgrade_rsp
  15671. * @static
  15672. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15673. * @param {number} [length] Message length if known beforehand
  15674. * @returns {game.role_upgrade_rsp} role_upgrade_rsp
  15675. * @throws {Error} If the payload is not a reader or valid buffer
  15676. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15677. */
  15678. role_upgrade_rsp.decode = function decode(reader, length) {
  15679. if (!(reader instanceof $Reader))
  15680. reader = $Reader.create(reader);
  15681. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_upgrade_rsp();
  15682. while (reader.pos < end) {
  15683. let tag = reader.uint32();
  15684. switch (tag >>> 3) {
  15685. case 1:
  15686. message.errno = reader.int64();
  15687. break;
  15688. case 2:
  15689. message.level = reader.int64();
  15690. break;
  15691. case 3:
  15692. message.exp = reader.int64();
  15693. break;
  15694. default:
  15695. reader.skipType(tag & 7);
  15696. break;
  15697. }
  15698. }
  15699. return message;
  15700. };
  15701. /**
  15702. * Decodes a role_upgrade_rsp message from the specified reader or buffer, length delimited.
  15703. * @function decodeDelimited
  15704. * @memberof game.role_upgrade_rsp
  15705. * @static
  15706. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15707. * @returns {game.role_upgrade_rsp} role_upgrade_rsp
  15708. * @throws {Error} If the payload is not a reader or valid buffer
  15709. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15710. */
  15711. role_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  15712. if (!(reader instanceof $Reader))
  15713. reader = new $Reader(reader);
  15714. return this.decode(reader, reader.uint32());
  15715. };
  15716. /**
  15717. * Verifies a role_upgrade_rsp message.
  15718. * @function verify
  15719. * @memberof game.role_upgrade_rsp
  15720. * @static
  15721. * @param {Object.<string,*>} message Plain object to verify
  15722. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15723. */
  15724. role_upgrade_rsp.verify = function verify(message) {
  15725. if (typeof message !== "object" || message === null)
  15726. return "object expected";
  15727. if (message.errno != null && message.hasOwnProperty("errno"))
  15728. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  15729. return "errno: integer|Long expected";
  15730. if (message.level != null && message.hasOwnProperty("level"))
  15731. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  15732. return "level: integer|Long expected";
  15733. if (message.exp != null && message.hasOwnProperty("exp"))
  15734. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  15735. return "exp: integer|Long expected";
  15736. return null;
  15737. };
  15738. /**
  15739. * Creates a role_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  15740. * @function fromObject
  15741. * @memberof game.role_upgrade_rsp
  15742. * @static
  15743. * @param {Object.<string,*>} object Plain object
  15744. * @returns {game.role_upgrade_rsp} role_upgrade_rsp
  15745. */
  15746. role_upgrade_rsp.fromObject = function fromObject(object) {
  15747. if (object instanceof $root.game.role_upgrade_rsp)
  15748. return object;
  15749. let message = new $root.game.role_upgrade_rsp();
  15750. if (object.errno != null)
  15751. if ($util.Long)
  15752. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  15753. else if (typeof object.errno === "string")
  15754. message.errno = parseInt(object.errno, 10);
  15755. else if (typeof object.errno === "number")
  15756. message.errno = object.errno;
  15757. else if (typeof object.errno === "object")
  15758. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  15759. if (object.level != null)
  15760. if ($util.Long)
  15761. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  15762. else if (typeof object.level === "string")
  15763. message.level = parseInt(object.level, 10);
  15764. else if (typeof object.level === "number")
  15765. message.level = object.level;
  15766. else if (typeof object.level === "object")
  15767. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  15768. if (object.exp != null)
  15769. if ($util.Long)
  15770. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  15771. else if (typeof object.exp === "string")
  15772. message.exp = parseInt(object.exp, 10);
  15773. else if (typeof object.exp === "number")
  15774. message.exp = object.exp;
  15775. else if (typeof object.exp === "object")
  15776. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  15777. return message;
  15778. };
  15779. /**
  15780. * Creates a plain object from a role_upgrade_rsp message. Also converts values to other types if specified.
  15781. * @function toObject
  15782. * @memberof game.role_upgrade_rsp
  15783. * @static
  15784. * @param {game.role_upgrade_rsp} message role_upgrade_rsp
  15785. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15786. * @returns {Object.<string,*>} Plain object
  15787. */
  15788. role_upgrade_rsp.toObject = function toObject(message, options) {
  15789. if (!options)
  15790. options = {};
  15791. let object = {};
  15792. if (options.defaults) {
  15793. if ($util.Long) {
  15794. let long = new $util.Long(0, 0, false);
  15795. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15796. } else
  15797. object.errno = options.longs === String ? "0" : 0;
  15798. if ($util.Long) {
  15799. let long = new $util.Long(0, 0, false);
  15800. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15801. } else
  15802. object.level = options.longs === String ? "0" : 0;
  15803. if ($util.Long) {
  15804. let long = new $util.Long(0, 0, false);
  15805. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  15806. } else
  15807. object.exp = options.longs === String ? "0" : 0;
  15808. }
  15809. if (message.errno != null && message.hasOwnProperty("errno"))
  15810. if (typeof message.errno === "number")
  15811. object.errno = options.longs === String ? String(message.errno) : message.errno;
  15812. else
  15813. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  15814. if (message.level != null && message.hasOwnProperty("level"))
  15815. if (typeof message.level === "number")
  15816. object.level = options.longs === String ? String(message.level) : message.level;
  15817. else
  15818. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  15819. if (message.exp != null && message.hasOwnProperty("exp"))
  15820. if (typeof message.exp === "number")
  15821. object.exp = options.longs === String ? String(message.exp) : message.exp;
  15822. else
  15823. object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
  15824. return object;
  15825. };
  15826. /**
  15827. * Converts this role_upgrade_rsp to JSON.
  15828. * @function toJSON
  15829. * @memberof game.role_upgrade_rsp
  15830. * @instance
  15831. * @returns {Object.<string,*>} JSON object
  15832. */
  15833. role_upgrade_rsp.prototype.toJSON = function toJSON() {
  15834. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  15835. };
  15836. return role_upgrade_rsp;
  15837. })();
  15838. game.role_rename = (function() {
  15839. /**
  15840. * Properties of a role_rename.
  15841. * @memberof game
  15842. * @interface Irole_rename
  15843. * @property {string|null} [name] role_rename name
  15844. */
  15845. /**
  15846. * Constructs a new role_rename.
  15847. * @memberof game
  15848. * @classdesc Represents a role_rename.
  15849. * @implements Irole_rename
  15850. * @constructor
  15851. * @param {game.Irole_rename=} [properties] Properties to set
  15852. */
  15853. function role_rename(properties) {
  15854. if (properties)
  15855. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  15856. if (properties[keys[i]] != null)
  15857. this[keys[i]] = properties[keys[i]];
  15858. }
  15859. /**
  15860. * role_rename name.
  15861. * @member {string} name
  15862. * @memberof game.role_rename
  15863. * @instance
  15864. */
  15865. role_rename.prototype.name = "";
  15866. /**
  15867. * Creates a new role_rename instance using the specified properties.
  15868. * @function create
  15869. * @memberof game.role_rename
  15870. * @static
  15871. * @param {game.Irole_rename=} [properties] Properties to set
  15872. * @returns {game.role_rename} role_rename instance
  15873. */
  15874. role_rename.create = function create(properties) {
  15875. return new role_rename(properties);
  15876. };
  15877. /**
  15878. * Encodes the specified role_rename message. Does not implicitly {@link game.role_rename.verify|verify} messages.
  15879. * @function encode
  15880. * @memberof game.role_rename
  15881. * @static
  15882. * @param {game.Irole_rename} message role_rename message or plain object to encode
  15883. * @param {$protobuf.Writer} [writer] Writer to encode to
  15884. * @returns {$protobuf.Writer} Writer
  15885. */
  15886. role_rename.encode = function encode(message, writer) {
  15887. if (!writer)
  15888. writer = $Writer.create();
  15889. if (message.name != null && Object.hasOwnProperty.call(message, "name"))
  15890. writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
  15891. return writer;
  15892. };
  15893. /**
  15894. * Encodes the specified role_rename message, length delimited. Does not implicitly {@link game.role_rename.verify|verify} messages.
  15895. * @function encodeDelimited
  15896. * @memberof game.role_rename
  15897. * @static
  15898. * @param {game.Irole_rename} message role_rename message or plain object to encode
  15899. * @param {$protobuf.Writer} [writer] Writer to encode to
  15900. * @returns {$protobuf.Writer} Writer
  15901. */
  15902. role_rename.encodeDelimited = function encodeDelimited(message, writer) {
  15903. return this.encode(message, writer).ldelim();
  15904. };
  15905. /**
  15906. * Decodes a role_rename message from the specified reader or buffer.
  15907. * @function decode
  15908. * @memberof game.role_rename
  15909. * @static
  15910. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15911. * @param {number} [length] Message length if known beforehand
  15912. * @returns {game.role_rename} role_rename
  15913. * @throws {Error} If the payload is not a reader or valid buffer
  15914. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15915. */
  15916. role_rename.decode = function decode(reader, length) {
  15917. if (!(reader instanceof $Reader))
  15918. reader = $Reader.create(reader);
  15919. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_rename();
  15920. while (reader.pos < end) {
  15921. let tag = reader.uint32();
  15922. switch (tag >>> 3) {
  15923. case 1:
  15924. message.name = reader.string();
  15925. break;
  15926. default:
  15927. reader.skipType(tag & 7);
  15928. break;
  15929. }
  15930. }
  15931. return message;
  15932. };
  15933. /**
  15934. * Decodes a role_rename message from the specified reader or buffer, length delimited.
  15935. * @function decodeDelimited
  15936. * @memberof game.role_rename
  15937. * @static
  15938. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  15939. * @returns {game.role_rename} role_rename
  15940. * @throws {Error} If the payload is not a reader or valid buffer
  15941. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  15942. */
  15943. role_rename.decodeDelimited = function decodeDelimited(reader) {
  15944. if (!(reader instanceof $Reader))
  15945. reader = new $Reader(reader);
  15946. return this.decode(reader, reader.uint32());
  15947. };
  15948. /**
  15949. * Verifies a role_rename message.
  15950. * @function verify
  15951. * @memberof game.role_rename
  15952. * @static
  15953. * @param {Object.<string,*>} message Plain object to verify
  15954. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  15955. */
  15956. role_rename.verify = function verify(message) {
  15957. if (typeof message !== "object" || message === null)
  15958. return "object expected";
  15959. if (message.name != null && message.hasOwnProperty("name"))
  15960. if (!$util.isString(message.name))
  15961. return "name: string expected";
  15962. return null;
  15963. };
  15964. /**
  15965. * Creates a role_rename message from a plain object. Also converts values to their respective internal types.
  15966. * @function fromObject
  15967. * @memberof game.role_rename
  15968. * @static
  15969. * @param {Object.<string,*>} object Plain object
  15970. * @returns {game.role_rename} role_rename
  15971. */
  15972. role_rename.fromObject = function fromObject(object) {
  15973. if (object instanceof $root.game.role_rename)
  15974. return object;
  15975. let message = new $root.game.role_rename();
  15976. if (object.name != null)
  15977. message.name = String(object.name);
  15978. return message;
  15979. };
  15980. /**
  15981. * Creates a plain object from a role_rename message. Also converts values to other types if specified.
  15982. * @function toObject
  15983. * @memberof game.role_rename
  15984. * @static
  15985. * @param {game.role_rename} message role_rename
  15986. * @param {$protobuf.IConversionOptions} [options] Conversion options
  15987. * @returns {Object.<string,*>} Plain object
  15988. */
  15989. role_rename.toObject = function toObject(message, options) {
  15990. if (!options)
  15991. options = {};
  15992. let object = {};
  15993. if (options.defaults)
  15994. object.name = "";
  15995. if (message.name != null && message.hasOwnProperty("name"))
  15996. object.name = message.name;
  15997. return object;
  15998. };
  15999. /**
  16000. * Converts this role_rename to JSON.
  16001. * @function toJSON
  16002. * @memberof game.role_rename
  16003. * @instance
  16004. * @returns {Object.<string,*>} JSON object
  16005. */
  16006. role_rename.prototype.toJSON = function toJSON() {
  16007. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16008. };
  16009. return role_rename;
  16010. })();
  16011. game.role_rename_rsp = (function() {
  16012. /**
  16013. * Properties of a role_rename_rsp.
  16014. * @memberof game
  16015. * @interface Irole_rename_rsp
  16016. * @property {number|Long|null} [errno] role_rename_rsp errno
  16017. * @property {string|null} [name] role_rename_rsp name
  16018. * @property {number|Long|null} [time] role_rename_rsp time
  16019. */
  16020. /**
  16021. * Constructs a new role_rename_rsp.
  16022. * @memberof game
  16023. * @classdesc Represents a role_rename_rsp.
  16024. * @implements Irole_rename_rsp
  16025. * @constructor
  16026. * @param {game.Irole_rename_rsp=} [properties] Properties to set
  16027. */
  16028. function role_rename_rsp(properties) {
  16029. if (properties)
  16030. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16031. if (properties[keys[i]] != null)
  16032. this[keys[i]] = properties[keys[i]];
  16033. }
  16034. /**
  16035. * role_rename_rsp errno.
  16036. * @member {number|Long} errno
  16037. * @memberof game.role_rename_rsp
  16038. * @instance
  16039. */
  16040. role_rename_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16041. /**
  16042. * role_rename_rsp name.
  16043. * @member {string} name
  16044. * @memberof game.role_rename_rsp
  16045. * @instance
  16046. */
  16047. role_rename_rsp.prototype.name = "";
  16048. /**
  16049. * role_rename_rsp time.
  16050. * @member {number|Long} time
  16051. * @memberof game.role_rename_rsp
  16052. * @instance
  16053. */
  16054. role_rename_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16055. /**
  16056. * Creates a new role_rename_rsp instance using the specified properties.
  16057. * @function create
  16058. * @memberof game.role_rename_rsp
  16059. * @static
  16060. * @param {game.Irole_rename_rsp=} [properties] Properties to set
  16061. * @returns {game.role_rename_rsp} role_rename_rsp instance
  16062. */
  16063. role_rename_rsp.create = function create(properties) {
  16064. return new role_rename_rsp(properties);
  16065. };
  16066. /**
  16067. * Encodes the specified role_rename_rsp message. Does not implicitly {@link game.role_rename_rsp.verify|verify} messages.
  16068. * @function encode
  16069. * @memberof game.role_rename_rsp
  16070. * @static
  16071. * @param {game.Irole_rename_rsp} message role_rename_rsp message or plain object to encode
  16072. * @param {$protobuf.Writer} [writer] Writer to encode to
  16073. * @returns {$protobuf.Writer} Writer
  16074. */
  16075. role_rename_rsp.encode = function encode(message, writer) {
  16076. if (!writer)
  16077. writer = $Writer.create();
  16078. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  16079. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  16080. if (message.name != null && Object.hasOwnProperty.call(message, "name"))
  16081. writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
  16082. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  16083. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  16084. return writer;
  16085. };
  16086. /**
  16087. * Encodes the specified role_rename_rsp message, length delimited. Does not implicitly {@link game.role_rename_rsp.verify|verify} messages.
  16088. * @function encodeDelimited
  16089. * @memberof game.role_rename_rsp
  16090. * @static
  16091. * @param {game.Irole_rename_rsp} message role_rename_rsp message or plain object to encode
  16092. * @param {$protobuf.Writer} [writer] Writer to encode to
  16093. * @returns {$protobuf.Writer} Writer
  16094. */
  16095. role_rename_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  16096. return this.encode(message, writer).ldelim();
  16097. };
  16098. /**
  16099. * Decodes a role_rename_rsp message from the specified reader or buffer.
  16100. * @function decode
  16101. * @memberof game.role_rename_rsp
  16102. * @static
  16103. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16104. * @param {number} [length] Message length if known beforehand
  16105. * @returns {game.role_rename_rsp} role_rename_rsp
  16106. * @throws {Error} If the payload is not a reader or valid buffer
  16107. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16108. */
  16109. role_rename_rsp.decode = function decode(reader, length) {
  16110. if (!(reader instanceof $Reader))
  16111. reader = $Reader.create(reader);
  16112. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_rename_rsp();
  16113. while (reader.pos < end) {
  16114. let tag = reader.uint32();
  16115. switch (tag >>> 3) {
  16116. case 1:
  16117. message.errno = reader.int64();
  16118. break;
  16119. case 2:
  16120. message.name = reader.string();
  16121. break;
  16122. case 3:
  16123. message.time = reader.int64();
  16124. break;
  16125. default:
  16126. reader.skipType(tag & 7);
  16127. break;
  16128. }
  16129. }
  16130. return message;
  16131. };
  16132. /**
  16133. * Decodes a role_rename_rsp message from the specified reader or buffer, length delimited.
  16134. * @function decodeDelimited
  16135. * @memberof game.role_rename_rsp
  16136. * @static
  16137. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16138. * @returns {game.role_rename_rsp} role_rename_rsp
  16139. * @throws {Error} If the payload is not a reader or valid buffer
  16140. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16141. */
  16142. role_rename_rsp.decodeDelimited = function decodeDelimited(reader) {
  16143. if (!(reader instanceof $Reader))
  16144. reader = new $Reader(reader);
  16145. return this.decode(reader, reader.uint32());
  16146. };
  16147. /**
  16148. * Verifies a role_rename_rsp message.
  16149. * @function verify
  16150. * @memberof game.role_rename_rsp
  16151. * @static
  16152. * @param {Object.<string,*>} message Plain object to verify
  16153. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16154. */
  16155. role_rename_rsp.verify = function verify(message) {
  16156. if (typeof message !== "object" || message === null)
  16157. return "object expected";
  16158. if (message.errno != null && message.hasOwnProperty("errno"))
  16159. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  16160. return "errno: integer|Long expected";
  16161. if (message.name != null && message.hasOwnProperty("name"))
  16162. if (!$util.isString(message.name))
  16163. return "name: string expected";
  16164. if (message.time != null && message.hasOwnProperty("time"))
  16165. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  16166. return "time: integer|Long expected";
  16167. return null;
  16168. };
  16169. /**
  16170. * Creates a role_rename_rsp message from a plain object. Also converts values to their respective internal types.
  16171. * @function fromObject
  16172. * @memberof game.role_rename_rsp
  16173. * @static
  16174. * @param {Object.<string,*>} object Plain object
  16175. * @returns {game.role_rename_rsp} role_rename_rsp
  16176. */
  16177. role_rename_rsp.fromObject = function fromObject(object) {
  16178. if (object instanceof $root.game.role_rename_rsp)
  16179. return object;
  16180. let message = new $root.game.role_rename_rsp();
  16181. if (object.errno != null)
  16182. if ($util.Long)
  16183. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  16184. else if (typeof object.errno === "string")
  16185. message.errno = parseInt(object.errno, 10);
  16186. else if (typeof object.errno === "number")
  16187. message.errno = object.errno;
  16188. else if (typeof object.errno === "object")
  16189. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  16190. if (object.name != null)
  16191. message.name = String(object.name);
  16192. if (object.time != null)
  16193. if ($util.Long)
  16194. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  16195. else if (typeof object.time === "string")
  16196. message.time = parseInt(object.time, 10);
  16197. else if (typeof object.time === "number")
  16198. message.time = object.time;
  16199. else if (typeof object.time === "object")
  16200. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  16201. return message;
  16202. };
  16203. /**
  16204. * Creates a plain object from a role_rename_rsp message. Also converts values to other types if specified.
  16205. * @function toObject
  16206. * @memberof game.role_rename_rsp
  16207. * @static
  16208. * @param {game.role_rename_rsp} message role_rename_rsp
  16209. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16210. * @returns {Object.<string,*>} Plain object
  16211. */
  16212. role_rename_rsp.toObject = function toObject(message, options) {
  16213. if (!options)
  16214. options = {};
  16215. let object = {};
  16216. if (options.defaults) {
  16217. if ($util.Long) {
  16218. let long = new $util.Long(0, 0, false);
  16219. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16220. } else
  16221. object.errno = options.longs === String ? "0" : 0;
  16222. object.name = "";
  16223. if ($util.Long) {
  16224. let long = new $util.Long(0, 0, false);
  16225. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16226. } else
  16227. object.time = options.longs === String ? "0" : 0;
  16228. }
  16229. if (message.errno != null && message.hasOwnProperty("errno"))
  16230. if (typeof message.errno === "number")
  16231. object.errno = options.longs === String ? String(message.errno) : message.errno;
  16232. else
  16233. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  16234. if (message.name != null && message.hasOwnProperty("name"))
  16235. object.name = message.name;
  16236. if (message.time != null && message.hasOwnProperty("time"))
  16237. if (typeof message.time === "number")
  16238. object.time = options.longs === String ? String(message.time) : message.time;
  16239. else
  16240. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  16241. return object;
  16242. };
  16243. /**
  16244. * Converts this role_rename_rsp to JSON.
  16245. * @function toJSON
  16246. * @memberof game.role_rename_rsp
  16247. * @instance
  16248. * @returns {Object.<string,*>} JSON object
  16249. */
  16250. role_rename_rsp.prototype.toJSON = function toJSON() {
  16251. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16252. };
  16253. return role_rename_rsp;
  16254. })();
  16255. game.debris_get_data = (function() {
  16256. /**
  16257. * Properties of a debris_get_data.
  16258. * @memberof game
  16259. * @interface Idebris_get_data
  16260. */
  16261. /**
  16262. * Constructs a new debris_get_data.
  16263. * @memberof game
  16264. * @classdesc Represents a debris_get_data.
  16265. * @implements Idebris_get_data
  16266. * @constructor
  16267. * @param {game.Idebris_get_data=} [properties] Properties to set
  16268. */
  16269. function debris_get_data(properties) {
  16270. if (properties)
  16271. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16272. if (properties[keys[i]] != null)
  16273. this[keys[i]] = properties[keys[i]];
  16274. }
  16275. /**
  16276. * Creates a new debris_get_data instance using the specified properties.
  16277. * @function create
  16278. * @memberof game.debris_get_data
  16279. * @static
  16280. * @param {game.Idebris_get_data=} [properties] Properties to set
  16281. * @returns {game.debris_get_data} debris_get_data instance
  16282. */
  16283. debris_get_data.create = function create(properties) {
  16284. return new debris_get_data(properties);
  16285. };
  16286. /**
  16287. * Encodes the specified debris_get_data message. Does not implicitly {@link game.debris_get_data.verify|verify} messages.
  16288. * @function encode
  16289. * @memberof game.debris_get_data
  16290. * @static
  16291. * @param {game.Idebris_get_data} message debris_get_data message or plain object to encode
  16292. * @param {$protobuf.Writer} [writer] Writer to encode to
  16293. * @returns {$protobuf.Writer} Writer
  16294. */
  16295. debris_get_data.encode = function encode(message, writer) {
  16296. if (!writer)
  16297. writer = $Writer.create();
  16298. return writer;
  16299. };
  16300. /**
  16301. * Encodes the specified debris_get_data message, length delimited. Does not implicitly {@link game.debris_get_data.verify|verify} messages.
  16302. * @function encodeDelimited
  16303. * @memberof game.debris_get_data
  16304. * @static
  16305. * @param {game.Idebris_get_data} message debris_get_data message or plain object to encode
  16306. * @param {$protobuf.Writer} [writer] Writer to encode to
  16307. * @returns {$protobuf.Writer} Writer
  16308. */
  16309. debris_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  16310. return this.encode(message, writer).ldelim();
  16311. };
  16312. /**
  16313. * Decodes a debris_get_data message from the specified reader or buffer.
  16314. * @function decode
  16315. * @memberof game.debris_get_data
  16316. * @static
  16317. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16318. * @param {number} [length] Message length if known beforehand
  16319. * @returns {game.debris_get_data} debris_get_data
  16320. * @throws {Error} If the payload is not a reader or valid buffer
  16321. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16322. */
  16323. debris_get_data.decode = function decode(reader, length) {
  16324. if (!(reader instanceof $Reader))
  16325. reader = $Reader.create(reader);
  16326. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_get_data();
  16327. while (reader.pos < end) {
  16328. let tag = reader.uint32();
  16329. switch (tag >>> 3) {
  16330. default:
  16331. reader.skipType(tag & 7);
  16332. break;
  16333. }
  16334. }
  16335. return message;
  16336. };
  16337. /**
  16338. * Decodes a debris_get_data message from the specified reader or buffer, length delimited.
  16339. * @function decodeDelimited
  16340. * @memberof game.debris_get_data
  16341. * @static
  16342. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16343. * @returns {game.debris_get_data} debris_get_data
  16344. * @throws {Error} If the payload is not a reader or valid buffer
  16345. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16346. */
  16347. debris_get_data.decodeDelimited = function decodeDelimited(reader) {
  16348. if (!(reader instanceof $Reader))
  16349. reader = new $Reader(reader);
  16350. return this.decode(reader, reader.uint32());
  16351. };
  16352. /**
  16353. * Verifies a debris_get_data message.
  16354. * @function verify
  16355. * @memberof game.debris_get_data
  16356. * @static
  16357. * @param {Object.<string,*>} message Plain object to verify
  16358. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16359. */
  16360. debris_get_data.verify = function verify(message) {
  16361. if (typeof message !== "object" || message === null)
  16362. return "object expected";
  16363. return null;
  16364. };
  16365. /**
  16366. * Creates a debris_get_data message from a plain object. Also converts values to their respective internal types.
  16367. * @function fromObject
  16368. * @memberof game.debris_get_data
  16369. * @static
  16370. * @param {Object.<string,*>} object Plain object
  16371. * @returns {game.debris_get_data} debris_get_data
  16372. */
  16373. debris_get_data.fromObject = function fromObject(object) {
  16374. if (object instanceof $root.game.debris_get_data)
  16375. return object;
  16376. return new $root.game.debris_get_data();
  16377. };
  16378. /**
  16379. * Creates a plain object from a debris_get_data message. Also converts values to other types if specified.
  16380. * @function toObject
  16381. * @memberof game.debris_get_data
  16382. * @static
  16383. * @param {game.debris_get_data} message debris_get_data
  16384. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16385. * @returns {Object.<string,*>} Plain object
  16386. */
  16387. debris_get_data.toObject = function toObject() {
  16388. return {};
  16389. };
  16390. /**
  16391. * Converts this debris_get_data to JSON.
  16392. * @function toJSON
  16393. * @memberof game.debris_get_data
  16394. * @instance
  16395. * @returns {Object.<string,*>} JSON object
  16396. */
  16397. debris_get_data.prototype.toJSON = function toJSON() {
  16398. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16399. };
  16400. return debris_get_data;
  16401. })();
  16402. game.debris_get_data_rsp = (function() {
  16403. /**
  16404. * Properties of a debris_get_data_rsp.
  16405. * @memberof game
  16406. * @interface Idebris_get_data_rsp
  16407. * @property {number|Long|null} [errno] debris_get_data_rsp errno
  16408. * @property {Array.<game.Iid_num>|null} [list] debris_get_data_rsp list
  16409. */
  16410. /**
  16411. * Constructs a new debris_get_data_rsp.
  16412. * @memberof game
  16413. * @classdesc Represents a debris_get_data_rsp.
  16414. * @implements Idebris_get_data_rsp
  16415. * @constructor
  16416. * @param {game.Idebris_get_data_rsp=} [properties] Properties to set
  16417. */
  16418. function debris_get_data_rsp(properties) {
  16419. this.list = [];
  16420. if (properties)
  16421. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16422. if (properties[keys[i]] != null)
  16423. this[keys[i]] = properties[keys[i]];
  16424. }
  16425. /**
  16426. * debris_get_data_rsp errno.
  16427. * @member {number|Long} errno
  16428. * @memberof game.debris_get_data_rsp
  16429. * @instance
  16430. */
  16431. debris_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16432. /**
  16433. * debris_get_data_rsp list.
  16434. * @member {Array.<game.Iid_num>} list
  16435. * @memberof game.debris_get_data_rsp
  16436. * @instance
  16437. */
  16438. debris_get_data_rsp.prototype.list = $util.emptyArray;
  16439. /**
  16440. * Creates a new debris_get_data_rsp instance using the specified properties.
  16441. * @function create
  16442. * @memberof game.debris_get_data_rsp
  16443. * @static
  16444. * @param {game.Idebris_get_data_rsp=} [properties] Properties to set
  16445. * @returns {game.debris_get_data_rsp} debris_get_data_rsp instance
  16446. */
  16447. debris_get_data_rsp.create = function create(properties) {
  16448. return new debris_get_data_rsp(properties);
  16449. };
  16450. /**
  16451. * Encodes the specified debris_get_data_rsp message. Does not implicitly {@link game.debris_get_data_rsp.verify|verify} messages.
  16452. * @function encode
  16453. * @memberof game.debris_get_data_rsp
  16454. * @static
  16455. * @param {game.Idebris_get_data_rsp} message debris_get_data_rsp message or plain object to encode
  16456. * @param {$protobuf.Writer} [writer] Writer to encode to
  16457. * @returns {$protobuf.Writer} Writer
  16458. */
  16459. debris_get_data_rsp.encode = function encode(message, writer) {
  16460. if (!writer)
  16461. writer = $Writer.create();
  16462. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  16463. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  16464. if (message.list != null && message.list.length)
  16465. for (let i = 0; i < message.list.length; ++i)
  16466. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  16467. return writer;
  16468. };
  16469. /**
  16470. * Encodes the specified debris_get_data_rsp message, length delimited. Does not implicitly {@link game.debris_get_data_rsp.verify|verify} messages.
  16471. * @function encodeDelimited
  16472. * @memberof game.debris_get_data_rsp
  16473. * @static
  16474. * @param {game.Idebris_get_data_rsp} message debris_get_data_rsp message or plain object to encode
  16475. * @param {$protobuf.Writer} [writer] Writer to encode to
  16476. * @returns {$protobuf.Writer} Writer
  16477. */
  16478. debris_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  16479. return this.encode(message, writer).ldelim();
  16480. };
  16481. /**
  16482. * Decodes a debris_get_data_rsp message from the specified reader or buffer.
  16483. * @function decode
  16484. * @memberof game.debris_get_data_rsp
  16485. * @static
  16486. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16487. * @param {number} [length] Message length if known beforehand
  16488. * @returns {game.debris_get_data_rsp} debris_get_data_rsp
  16489. * @throws {Error} If the payload is not a reader or valid buffer
  16490. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16491. */
  16492. debris_get_data_rsp.decode = function decode(reader, length) {
  16493. if (!(reader instanceof $Reader))
  16494. reader = $Reader.create(reader);
  16495. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_get_data_rsp();
  16496. while (reader.pos < end) {
  16497. let tag = reader.uint32();
  16498. switch (tag >>> 3) {
  16499. case 1:
  16500. message.errno = reader.int64();
  16501. break;
  16502. case 2:
  16503. if (!(message.list && message.list.length))
  16504. message.list = [];
  16505. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  16506. break;
  16507. default:
  16508. reader.skipType(tag & 7);
  16509. break;
  16510. }
  16511. }
  16512. return message;
  16513. };
  16514. /**
  16515. * Decodes a debris_get_data_rsp message from the specified reader or buffer, length delimited.
  16516. * @function decodeDelimited
  16517. * @memberof game.debris_get_data_rsp
  16518. * @static
  16519. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16520. * @returns {game.debris_get_data_rsp} debris_get_data_rsp
  16521. * @throws {Error} If the payload is not a reader or valid buffer
  16522. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16523. */
  16524. debris_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  16525. if (!(reader instanceof $Reader))
  16526. reader = new $Reader(reader);
  16527. return this.decode(reader, reader.uint32());
  16528. };
  16529. /**
  16530. * Verifies a debris_get_data_rsp message.
  16531. * @function verify
  16532. * @memberof game.debris_get_data_rsp
  16533. * @static
  16534. * @param {Object.<string,*>} message Plain object to verify
  16535. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16536. */
  16537. debris_get_data_rsp.verify = function verify(message) {
  16538. if (typeof message !== "object" || message === null)
  16539. return "object expected";
  16540. if (message.errno != null && message.hasOwnProperty("errno"))
  16541. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  16542. return "errno: integer|Long expected";
  16543. if (message.list != null && message.hasOwnProperty("list")) {
  16544. if (!Array.isArray(message.list))
  16545. return "list: array expected";
  16546. for (let i = 0; i < message.list.length; ++i) {
  16547. let error = $root.game.id_num.verify(message.list[i]);
  16548. if (error)
  16549. return "list." + error;
  16550. }
  16551. }
  16552. return null;
  16553. };
  16554. /**
  16555. * Creates a debris_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  16556. * @function fromObject
  16557. * @memberof game.debris_get_data_rsp
  16558. * @static
  16559. * @param {Object.<string,*>} object Plain object
  16560. * @returns {game.debris_get_data_rsp} debris_get_data_rsp
  16561. */
  16562. debris_get_data_rsp.fromObject = function fromObject(object) {
  16563. if (object instanceof $root.game.debris_get_data_rsp)
  16564. return object;
  16565. let message = new $root.game.debris_get_data_rsp();
  16566. if (object.errno != null)
  16567. if ($util.Long)
  16568. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  16569. else if (typeof object.errno === "string")
  16570. message.errno = parseInt(object.errno, 10);
  16571. else if (typeof object.errno === "number")
  16572. message.errno = object.errno;
  16573. else if (typeof object.errno === "object")
  16574. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  16575. if (object.list) {
  16576. if (!Array.isArray(object.list))
  16577. throw TypeError(".game.debris_get_data_rsp.list: array expected");
  16578. message.list = [];
  16579. for (let i = 0; i < object.list.length; ++i) {
  16580. if (typeof object.list[i] !== "object")
  16581. throw TypeError(".game.debris_get_data_rsp.list: object expected");
  16582. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  16583. }
  16584. }
  16585. return message;
  16586. };
  16587. /**
  16588. * Creates a plain object from a debris_get_data_rsp message. Also converts values to other types if specified.
  16589. * @function toObject
  16590. * @memberof game.debris_get_data_rsp
  16591. * @static
  16592. * @param {game.debris_get_data_rsp} message debris_get_data_rsp
  16593. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16594. * @returns {Object.<string,*>} Plain object
  16595. */
  16596. debris_get_data_rsp.toObject = function toObject(message, options) {
  16597. if (!options)
  16598. options = {};
  16599. let object = {};
  16600. if (options.arrays || options.defaults)
  16601. object.list = [];
  16602. if (options.defaults)
  16603. if ($util.Long) {
  16604. let long = new $util.Long(0, 0, false);
  16605. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16606. } else
  16607. object.errno = options.longs === String ? "0" : 0;
  16608. if (message.errno != null && message.hasOwnProperty("errno"))
  16609. if (typeof message.errno === "number")
  16610. object.errno = options.longs === String ? String(message.errno) : message.errno;
  16611. else
  16612. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  16613. if (message.list && message.list.length) {
  16614. object.list = [];
  16615. for (let j = 0; j < message.list.length; ++j)
  16616. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  16617. }
  16618. return object;
  16619. };
  16620. /**
  16621. * Converts this debris_get_data_rsp to JSON.
  16622. * @function toJSON
  16623. * @memberof game.debris_get_data_rsp
  16624. * @instance
  16625. * @returns {Object.<string,*>} JSON object
  16626. */
  16627. debris_get_data_rsp.prototype.toJSON = function toJSON() {
  16628. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16629. };
  16630. return debris_get_data_rsp;
  16631. })();
  16632. game.debris_merge = (function() {
  16633. /**
  16634. * Properties of a debris_merge.
  16635. * @memberof game
  16636. * @interface Idebris_merge
  16637. * @property {number|Long|null} [id] debris_merge id
  16638. */
  16639. /**
  16640. * Constructs a new debris_merge.
  16641. * @memberof game
  16642. * @classdesc Represents a debris_merge.
  16643. * @implements Idebris_merge
  16644. * @constructor
  16645. * @param {game.Idebris_merge=} [properties] Properties to set
  16646. */
  16647. function debris_merge(properties) {
  16648. if (properties)
  16649. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16650. if (properties[keys[i]] != null)
  16651. this[keys[i]] = properties[keys[i]];
  16652. }
  16653. /**
  16654. * debris_merge id.
  16655. * @member {number|Long} id
  16656. * @memberof game.debris_merge
  16657. * @instance
  16658. */
  16659. debris_merge.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16660. /**
  16661. * Creates a new debris_merge instance using the specified properties.
  16662. * @function create
  16663. * @memberof game.debris_merge
  16664. * @static
  16665. * @param {game.Idebris_merge=} [properties] Properties to set
  16666. * @returns {game.debris_merge} debris_merge instance
  16667. */
  16668. debris_merge.create = function create(properties) {
  16669. return new debris_merge(properties);
  16670. };
  16671. /**
  16672. * Encodes the specified debris_merge message. Does not implicitly {@link game.debris_merge.verify|verify} messages.
  16673. * @function encode
  16674. * @memberof game.debris_merge
  16675. * @static
  16676. * @param {game.Idebris_merge} message debris_merge message or plain object to encode
  16677. * @param {$protobuf.Writer} [writer] Writer to encode to
  16678. * @returns {$protobuf.Writer} Writer
  16679. */
  16680. debris_merge.encode = function encode(message, writer) {
  16681. if (!writer)
  16682. writer = $Writer.create();
  16683. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  16684. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  16685. return writer;
  16686. };
  16687. /**
  16688. * Encodes the specified debris_merge message, length delimited. Does not implicitly {@link game.debris_merge.verify|verify} messages.
  16689. * @function encodeDelimited
  16690. * @memberof game.debris_merge
  16691. * @static
  16692. * @param {game.Idebris_merge} message debris_merge message or plain object to encode
  16693. * @param {$protobuf.Writer} [writer] Writer to encode to
  16694. * @returns {$protobuf.Writer} Writer
  16695. */
  16696. debris_merge.encodeDelimited = function encodeDelimited(message, writer) {
  16697. return this.encode(message, writer).ldelim();
  16698. };
  16699. /**
  16700. * Decodes a debris_merge message from the specified reader or buffer.
  16701. * @function decode
  16702. * @memberof game.debris_merge
  16703. * @static
  16704. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16705. * @param {number} [length] Message length if known beforehand
  16706. * @returns {game.debris_merge} debris_merge
  16707. * @throws {Error} If the payload is not a reader or valid buffer
  16708. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16709. */
  16710. debris_merge.decode = function decode(reader, length) {
  16711. if (!(reader instanceof $Reader))
  16712. reader = $Reader.create(reader);
  16713. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_merge();
  16714. while (reader.pos < end) {
  16715. let tag = reader.uint32();
  16716. switch (tag >>> 3) {
  16717. case 1:
  16718. message.id = reader.int64();
  16719. break;
  16720. default:
  16721. reader.skipType(tag & 7);
  16722. break;
  16723. }
  16724. }
  16725. return message;
  16726. };
  16727. /**
  16728. * Decodes a debris_merge message from the specified reader or buffer, length delimited.
  16729. * @function decodeDelimited
  16730. * @memberof game.debris_merge
  16731. * @static
  16732. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16733. * @returns {game.debris_merge} debris_merge
  16734. * @throws {Error} If the payload is not a reader or valid buffer
  16735. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16736. */
  16737. debris_merge.decodeDelimited = function decodeDelimited(reader) {
  16738. if (!(reader instanceof $Reader))
  16739. reader = new $Reader(reader);
  16740. return this.decode(reader, reader.uint32());
  16741. };
  16742. /**
  16743. * Verifies a debris_merge message.
  16744. * @function verify
  16745. * @memberof game.debris_merge
  16746. * @static
  16747. * @param {Object.<string,*>} message Plain object to verify
  16748. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16749. */
  16750. debris_merge.verify = function verify(message) {
  16751. if (typeof message !== "object" || message === null)
  16752. return "object expected";
  16753. if (message.id != null && message.hasOwnProperty("id"))
  16754. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  16755. return "id: integer|Long expected";
  16756. return null;
  16757. };
  16758. /**
  16759. * Creates a debris_merge message from a plain object. Also converts values to their respective internal types.
  16760. * @function fromObject
  16761. * @memberof game.debris_merge
  16762. * @static
  16763. * @param {Object.<string,*>} object Plain object
  16764. * @returns {game.debris_merge} debris_merge
  16765. */
  16766. debris_merge.fromObject = function fromObject(object) {
  16767. if (object instanceof $root.game.debris_merge)
  16768. return object;
  16769. let message = new $root.game.debris_merge();
  16770. if (object.id != null)
  16771. if ($util.Long)
  16772. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  16773. else if (typeof object.id === "string")
  16774. message.id = parseInt(object.id, 10);
  16775. else if (typeof object.id === "number")
  16776. message.id = object.id;
  16777. else if (typeof object.id === "object")
  16778. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  16779. return message;
  16780. };
  16781. /**
  16782. * Creates a plain object from a debris_merge message. Also converts values to other types if specified.
  16783. * @function toObject
  16784. * @memberof game.debris_merge
  16785. * @static
  16786. * @param {game.debris_merge} message debris_merge
  16787. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16788. * @returns {Object.<string,*>} Plain object
  16789. */
  16790. debris_merge.toObject = function toObject(message, options) {
  16791. if (!options)
  16792. options = {};
  16793. let object = {};
  16794. if (options.defaults)
  16795. if ($util.Long) {
  16796. let long = new $util.Long(0, 0, false);
  16797. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16798. } else
  16799. object.id = options.longs === String ? "0" : 0;
  16800. if (message.id != null && message.hasOwnProperty("id"))
  16801. if (typeof message.id === "number")
  16802. object.id = options.longs === String ? String(message.id) : message.id;
  16803. else
  16804. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  16805. return object;
  16806. };
  16807. /**
  16808. * Converts this debris_merge to JSON.
  16809. * @function toJSON
  16810. * @memberof game.debris_merge
  16811. * @instance
  16812. * @returns {Object.<string,*>} JSON object
  16813. */
  16814. debris_merge.prototype.toJSON = function toJSON() {
  16815. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  16816. };
  16817. return debris_merge;
  16818. })();
  16819. game.debris_merge_rsp = (function() {
  16820. /**
  16821. * Properties of a debris_merge_rsp.
  16822. * @memberof game
  16823. * @interface Idebris_merge_rsp
  16824. * @property {number|Long|null} [errno] debris_merge_rsp errno
  16825. */
  16826. /**
  16827. * Constructs a new debris_merge_rsp.
  16828. * @memberof game
  16829. * @classdesc Represents a debris_merge_rsp.
  16830. * @implements Idebris_merge_rsp
  16831. * @constructor
  16832. * @param {game.Idebris_merge_rsp=} [properties] Properties to set
  16833. */
  16834. function debris_merge_rsp(properties) {
  16835. if (properties)
  16836. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  16837. if (properties[keys[i]] != null)
  16838. this[keys[i]] = properties[keys[i]];
  16839. }
  16840. /**
  16841. * debris_merge_rsp errno.
  16842. * @member {number|Long} errno
  16843. * @memberof game.debris_merge_rsp
  16844. * @instance
  16845. */
  16846. debris_merge_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  16847. /**
  16848. * Creates a new debris_merge_rsp instance using the specified properties.
  16849. * @function create
  16850. * @memberof game.debris_merge_rsp
  16851. * @static
  16852. * @param {game.Idebris_merge_rsp=} [properties] Properties to set
  16853. * @returns {game.debris_merge_rsp} debris_merge_rsp instance
  16854. */
  16855. debris_merge_rsp.create = function create(properties) {
  16856. return new debris_merge_rsp(properties);
  16857. };
  16858. /**
  16859. * Encodes the specified debris_merge_rsp message. Does not implicitly {@link game.debris_merge_rsp.verify|verify} messages.
  16860. * @function encode
  16861. * @memberof game.debris_merge_rsp
  16862. * @static
  16863. * @param {game.Idebris_merge_rsp} message debris_merge_rsp message or plain object to encode
  16864. * @param {$protobuf.Writer} [writer] Writer to encode to
  16865. * @returns {$protobuf.Writer} Writer
  16866. */
  16867. debris_merge_rsp.encode = function encode(message, writer) {
  16868. if (!writer)
  16869. writer = $Writer.create();
  16870. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  16871. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  16872. return writer;
  16873. };
  16874. /**
  16875. * Encodes the specified debris_merge_rsp message, length delimited. Does not implicitly {@link game.debris_merge_rsp.verify|verify} messages.
  16876. * @function encodeDelimited
  16877. * @memberof game.debris_merge_rsp
  16878. * @static
  16879. * @param {game.Idebris_merge_rsp} message debris_merge_rsp message or plain object to encode
  16880. * @param {$protobuf.Writer} [writer] Writer to encode to
  16881. * @returns {$protobuf.Writer} Writer
  16882. */
  16883. debris_merge_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  16884. return this.encode(message, writer).ldelim();
  16885. };
  16886. /**
  16887. * Decodes a debris_merge_rsp message from the specified reader or buffer.
  16888. * @function decode
  16889. * @memberof game.debris_merge_rsp
  16890. * @static
  16891. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16892. * @param {number} [length] Message length if known beforehand
  16893. * @returns {game.debris_merge_rsp} debris_merge_rsp
  16894. * @throws {Error} If the payload is not a reader or valid buffer
  16895. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16896. */
  16897. debris_merge_rsp.decode = function decode(reader, length) {
  16898. if (!(reader instanceof $Reader))
  16899. reader = $Reader.create(reader);
  16900. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.debris_merge_rsp();
  16901. while (reader.pos < end) {
  16902. let tag = reader.uint32();
  16903. switch (tag >>> 3) {
  16904. case 1:
  16905. message.errno = reader.int64();
  16906. break;
  16907. default:
  16908. reader.skipType(tag & 7);
  16909. break;
  16910. }
  16911. }
  16912. return message;
  16913. };
  16914. /**
  16915. * Decodes a debris_merge_rsp message from the specified reader or buffer, length delimited.
  16916. * @function decodeDelimited
  16917. * @memberof game.debris_merge_rsp
  16918. * @static
  16919. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  16920. * @returns {game.debris_merge_rsp} debris_merge_rsp
  16921. * @throws {Error} If the payload is not a reader or valid buffer
  16922. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  16923. */
  16924. debris_merge_rsp.decodeDelimited = function decodeDelimited(reader) {
  16925. if (!(reader instanceof $Reader))
  16926. reader = new $Reader(reader);
  16927. return this.decode(reader, reader.uint32());
  16928. };
  16929. /**
  16930. * Verifies a debris_merge_rsp message.
  16931. * @function verify
  16932. * @memberof game.debris_merge_rsp
  16933. * @static
  16934. * @param {Object.<string,*>} message Plain object to verify
  16935. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  16936. */
  16937. debris_merge_rsp.verify = function verify(message) {
  16938. if (typeof message !== "object" || message === null)
  16939. return "object expected";
  16940. if (message.errno != null && message.hasOwnProperty("errno"))
  16941. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  16942. return "errno: integer|Long expected";
  16943. return null;
  16944. };
  16945. /**
  16946. * Creates a debris_merge_rsp message from a plain object. Also converts values to their respective internal types.
  16947. * @function fromObject
  16948. * @memberof game.debris_merge_rsp
  16949. * @static
  16950. * @param {Object.<string,*>} object Plain object
  16951. * @returns {game.debris_merge_rsp} debris_merge_rsp
  16952. */
  16953. debris_merge_rsp.fromObject = function fromObject(object) {
  16954. if (object instanceof $root.game.debris_merge_rsp)
  16955. return object;
  16956. let message = new $root.game.debris_merge_rsp();
  16957. if (object.errno != null)
  16958. if ($util.Long)
  16959. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  16960. else if (typeof object.errno === "string")
  16961. message.errno = parseInt(object.errno, 10);
  16962. else if (typeof object.errno === "number")
  16963. message.errno = object.errno;
  16964. else if (typeof object.errno === "object")
  16965. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  16966. return message;
  16967. };
  16968. /**
  16969. * Creates a plain object from a debris_merge_rsp message. Also converts values to other types if specified.
  16970. * @function toObject
  16971. * @memberof game.debris_merge_rsp
  16972. * @static
  16973. * @param {game.debris_merge_rsp} message debris_merge_rsp
  16974. * @param {$protobuf.IConversionOptions} [options] Conversion options
  16975. * @returns {Object.<string,*>} Plain object
  16976. */
  16977. debris_merge_rsp.toObject = function toObject(message, options) {
  16978. if (!options)
  16979. options = {};
  16980. let object = {};
  16981. if (options.defaults)
  16982. if ($util.Long) {
  16983. let long = new $util.Long(0, 0, false);
  16984. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  16985. } else
  16986. object.errno = options.longs === String ? "0" : 0;
  16987. if (message.errno != null && message.hasOwnProperty("errno"))
  16988. if (typeof message.errno === "number")
  16989. object.errno = options.longs === String ? String(message.errno) : message.errno;
  16990. else
  16991. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  16992. return object;
  16993. };
  16994. /**
  16995. * Converts this debris_merge_rsp to JSON.
  16996. * @function toJSON
  16997. * @memberof game.debris_merge_rsp
  16998. * @instance
  16999. * @returns {Object.<string,*>} JSON object
  17000. */
  17001. debris_merge_rsp.prototype.toJSON = function toJSON() {
  17002. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17003. };
  17004. return debris_merge_rsp;
  17005. })();
  17006. game.equip_get_data = (function() {
  17007. /**
  17008. * Properties of an equip_get_data.
  17009. * @memberof game
  17010. * @interface Iequip_get_data
  17011. */
  17012. /**
  17013. * Constructs a new equip_get_data.
  17014. * @memberof game
  17015. * @classdesc Represents an equip_get_data.
  17016. * @implements Iequip_get_data
  17017. * @constructor
  17018. * @param {game.Iequip_get_data=} [properties] Properties to set
  17019. */
  17020. function equip_get_data(properties) {
  17021. if (properties)
  17022. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17023. if (properties[keys[i]] != null)
  17024. this[keys[i]] = properties[keys[i]];
  17025. }
  17026. /**
  17027. * Creates a new equip_get_data instance using the specified properties.
  17028. * @function create
  17029. * @memberof game.equip_get_data
  17030. * @static
  17031. * @param {game.Iequip_get_data=} [properties] Properties to set
  17032. * @returns {game.equip_get_data} equip_get_data instance
  17033. */
  17034. equip_get_data.create = function create(properties) {
  17035. return new equip_get_data(properties);
  17036. };
  17037. /**
  17038. * Encodes the specified equip_get_data message. Does not implicitly {@link game.equip_get_data.verify|verify} messages.
  17039. * @function encode
  17040. * @memberof game.equip_get_data
  17041. * @static
  17042. * @param {game.Iequip_get_data} message equip_get_data message or plain object to encode
  17043. * @param {$protobuf.Writer} [writer] Writer to encode to
  17044. * @returns {$protobuf.Writer} Writer
  17045. */
  17046. equip_get_data.encode = function encode(message, writer) {
  17047. if (!writer)
  17048. writer = $Writer.create();
  17049. return writer;
  17050. };
  17051. /**
  17052. * Encodes the specified equip_get_data message, length delimited. Does not implicitly {@link game.equip_get_data.verify|verify} messages.
  17053. * @function encodeDelimited
  17054. * @memberof game.equip_get_data
  17055. * @static
  17056. * @param {game.Iequip_get_data} message equip_get_data message or plain object to encode
  17057. * @param {$protobuf.Writer} [writer] Writer to encode to
  17058. * @returns {$protobuf.Writer} Writer
  17059. */
  17060. equip_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  17061. return this.encode(message, writer).ldelim();
  17062. };
  17063. /**
  17064. * Decodes an equip_get_data message from the specified reader or buffer.
  17065. * @function decode
  17066. * @memberof game.equip_get_data
  17067. * @static
  17068. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17069. * @param {number} [length] Message length if known beforehand
  17070. * @returns {game.equip_get_data} equip_get_data
  17071. * @throws {Error} If the payload is not a reader or valid buffer
  17072. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17073. */
  17074. equip_get_data.decode = function decode(reader, length) {
  17075. if (!(reader instanceof $Reader))
  17076. reader = $Reader.create(reader);
  17077. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_get_data();
  17078. while (reader.pos < end) {
  17079. let tag = reader.uint32();
  17080. switch (tag >>> 3) {
  17081. default:
  17082. reader.skipType(tag & 7);
  17083. break;
  17084. }
  17085. }
  17086. return message;
  17087. };
  17088. /**
  17089. * Decodes an equip_get_data message from the specified reader or buffer, length delimited.
  17090. * @function decodeDelimited
  17091. * @memberof game.equip_get_data
  17092. * @static
  17093. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17094. * @returns {game.equip_get_data} equip_get_data
  17095. * @throws {Error} If the payload is not a reader or valid buffer
  17096. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17097. */
  17098. equip_get_data.decodeDelimited = function decodeDelimited(reader) {
  17099. if (!(reader instanceof $Reader))
  17100. reader = new $Reader(reader);
  17101. return this.decode(reader, reader.uint32());
  17102. };
  17103. /**
  17104. * Verifies an equip_get_data message.
  17105. * @function verify
  17106. * @memberof game.equip_get_data
  17107. * @static
  17108. * @param {Object.<string,*>} message Plain object to verify
  17109. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17110. */
  17111. equip_get_data.verify = function verify(message) {
  17112. if (typeof message !== "object" || message === null)
  17113. return "object expected";
  17114. return null;
  17115. };
  17116. /**
  17117. * Creates an equip_get_data message from a plain object. Also converts values to their respective internal types.
  17118. * @function fromObject
  17119. * @memberof game.equip_get_data
  17120. * @static
  17121. * @param {Object.<string,*>} object Plain object
  17122. * @returns {game.equip_get_data} equip_get_data
  17123. */
  17124. equip_get_data.fromObject = function fromObject(object) {
  17125. if (object instanceof $root.game.equip_get_data)
  17126. return object;
  17127. return new $root.game.equip_get_data();
  17128. };
  17129. /**
  17130. * Creates a plain object from an equip_get_data message. Also converts values to other types if specified.
  17131. * @function toObject
  17132. * @memberof game.equip_get_data
  17133. * @static
  17134. * @param {game.equip_get_data} message equip_get_data
  17135. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17136. * @returns {Object.<string,*>} Plain object
  17137. */
  17138. equip_get_data.toObject = function toObject() {
  17139. return {};
  17140. };
  17141. /**
  17142. * Converts this equip_get_data to JSON.
  17143. * @function toJSON
  17144. * @memberof game.equip_get_data
  17145. * @instance
  17146. * @returns {Object.<string,*>} JSON object
  17147. */
  17148. equip_get_data.prototype.toJSON = function toJSON() {
  17149. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17150. };
  17151. return equip_get_data;
  17152. })();
  17153. game.equip_get_data_rsp = (function() {
  17154. /**
  17155. * Properties of an equip_get_data_rsp.
  17156. * @memberof game
  17157. * @interface Iequip_get_data_rsp
  17158. * @property {number|Long|null} [errno] equip_get_data_rsp errno
  17159. * @property {Array.<game.Iequip>|null} [list] equip_get_data_rsp list
  17160. */
  17161. /**
  17162. * Constructs a new equip_get_data_rsp.
  17163. * @memberof game
  17164. * @classdesc Represents an equip_get_data_rsp.
  17165. * @implements Iequip_get_data_rsp
  17166. * @constructor
  17167. * @param {game.Iequip_get_data_rsp=} [properties] Properties to set
  17168. */
  17169. function equip_get_data_rsp(properties) {
  17170. this.list = [];
  17171. if (properties)
  17172. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17173. if (properties[keys[i]] != null)
  17174. this[keys[i]] = properties[keys[i]];
  17175. }
  17176. /**
  17177. * equip_get_data_rsp errno.
  17178. * @member {number|Long} errno
  17179. * @memberof game.equip_get_data_rsp
  17180. * @instance
  17181. */
  17182. equip_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17183. /**
  17184. * equip_get_data_rsp list.
  17185. * @member {Array.<game.Iequip>} list
  17186. * @memberof game.equip_get_data_rsp
  17187. * @instance
  17188. */
  17189. equip_get_data_rsp.prototype.list = $util.emptyArray;
  17190. /**
  17191. * Creates a new equip_get_data_rsp instance using the specified properties.
  17192. * @function create
  17193. * @memberof game.equip_get_data_rsp
  17194. * @static
  17195. * @param {game.Iequip_get_data_rsp=} [properties] Properties to set
  17196. * @returns {game.equip_get_data_rsp} equip_get_data_rsp instance
  17197. */
  17198. equip_get_data_rsp.create = function create(properties) {
  17199. return new equip_get_data_rsp(properties);
  17200. };
  17201. /**
  17202. * Encodes the specified equip_get_data_rsp message. Does not implicitly {@link game.equip_get_data_rsp.verify|verify} messages.
  17203. * @function encode
  17204. * @memberof game.equip_get_data_rsp
  17205. * @static
  17206. * @param {game.Iequip_get_data_rsp} message equip_get_data_rsp message or plain object to encode
  17207. * @param {$protobuf.Writer} [writer] Writer to encode to
  17208. * @returns {$protobuf.Writer} Writer
  17209. */
  17210. equip_get_data_rsp.encode = function encode(message, writer) {
  17211. if (!writer)
  17212. writer = $Writer.create();
  17213. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  17214. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  17215. if (message.list != null && message.list.length)
  17216. for (let i = 0; i < message.list.length; ++i)
  17217. $root.game.equip.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  17218. return writer;
  17219. };
  17220. /**
  17221. * Encodes the specified equip_get_data_rsp message, length delimited. Does not implicitly {@link game.equip_get_data_rsp.verify|verify} messages.
  17222. * @function encodeDelimited
  17223. * @memberof game.equip_get_data_rsp
  17224. * @static
  17225. * @param {game.Iequip_get_data_rsp} message equip_get_data_rsp message or plain object to encode
  17226. * @param {$protobuf.Writer} [writer] Writer to encode to
  17227. * @returns {$protobuf.Writer} Writer
  17228. */
  17229. equip_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  17230. return this.encode(message, writer).ldelim();
  17231. };
  17232. /**
  17233. * Decodes an equip_get_data_rsp message from the specified reader or buffer.
  17234. * @function decode
  17235. * @memberof game.equip_get_data_rsp
  17236. * @static
  17237. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17238. * @param {number} [length] Message length if known beforehand
  17239. * @returns {game.equip_get_data_rsp} equip_get_data_rsp
  17240. * @throws {Error} If the payload is not a reader or valid buffer
  17241. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17242. */
  17243. equip_get_data_rsp.decode = function decode(reader, length) {
  17244. if (!(reader instanceof $Reader))
  17245. reader = $Reader.create(reader);
  17246. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_get_data_rsp();
  17247. while (reader.pos < end) {
  17248. let tag = reader.uint32();
  17249. switch (tag >>> 3) {
  17250. case 1:
  17251. message.errno = reader.int64();
  17252. break;
  17253. case 2:
  17254. if (!(message.list && message.list.length))
  17255. message.list = [];
  17256. message.list.push($root.game.equip.decode(reader, reader.uint32()));
  17257. break;
  17258. default:
  17259. reader.skipType(tag & 7);
  17260. break;
  17261. }
  17262. }
  17263. return message;
  17264. };
  17265. /**
  17266. * Decodes an equip_get_data_rsp message from the specified reader or buffer, length delimited.
  17267. * @function decodeDelimited
  17268. * @memberof game.equip_get_data_rsp
  17269. * @static
  17270. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17271. * @returns {game.equip_get_data_rsp} equip_get_data_rsp
  17272. * @throws {Error} If the payload is not a reader or valid buffer
  17273. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17274. */
  17275. equip_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  17276. if (!(reader instanceof $Reader))
  17277. reader = new $Reader(reader);
  17278. return this.decode(reader, reader.uint32());
  17279. };
  17280. /**
  17281. * Verifies an equip_get_data_rsp message.
  17282. * @function verify
  17283. * @memberof game.equip_get_data_rsp
  17284. * @static
  17285. * @param {Object.<string,*>} message Plain object to verify
  17286. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17287. */
  17288. equip_get_data_rsp.verify = function verify(message) {
  17289. if (typeof message !== "object" || message === null)
  17290. return "object expected";
  17291. if (message.errno != null && message.hasOwnProperty("errno"))
  17292. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  17293. return "errno: integer|Long expected";
  17294. if (message.list != null && message.hasOwnProperty("list")) {
  17295. if (!Array.isArray(message.list))
  17296. return "list: array expected";
  17297. for (let i = 0; i < message.list.length; ++i) {
  17298. let error = $root.game.equip.verify(message.list[i]);
  17299. if (error)
  17300. return "list." + error;
  17301. }
  17302. }
  17303. return null;
  17304. };
  17305. /**
  17306. * Creates an equip_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  17307. * @function fromObject
  17308. * @memberof game.equip_get_data_rsp
  17309. * @static
  17310. * @param {Object.<string,*>} object Plain object
  17311. * @returns {game.equip_get_data_rsp} equip_get_data_rsp
  17312. */
  17313. equip_get_data_rsp.fromObject = function fromObject(object) {
  17314. if (object instanceof $root.game.equip_get_data_rsp)
  17315. return object;
  17316. let message = new $root.game.equip_get_data_rsp();
  17317. if (object.errno != null)
  17318. if ($util.Long)
  17319. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  17320. else if (typeof object.errno === "string")
  17321. message.errno = parseInt(object.errno, 10);
  17322. else if (typeof object.errno === "number")
  17323. message.errno = object.errno;
  17324. else if (typeof object.errno === "object")
  17325. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  17326. if (object.list) {
  17327. if (!Array.isArray(object.list))
  17328. throw TypeError(".game.equip_get_data_rsp.list: array expected");
  17329. message.list = [];
  17330. for (let i = 0; i < object.list.length; ++i) {
  17331. if (typeof object.list[i] !== "object")
  17332. throw TypeError(".game.equip_get_data_rsp.list: object expected");
  17333. message.list[i] = $root.game.equip.fromObject(object.list[i]);
  17334. }
  17335. }
  17336. return message;
  17337. };
  17338. /**
  17339. * Creates a plain object from an equip_get_data_rsp message. Also converts values to other types if specified.
  17340. * @function toObject
  17341. * @memberof game.equip_get_data_rsp
  17342. * @static
  17343. * @param {game.equip_get_data_rsp} message equip_get_data_rsp
  17344. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17345. * @returns {Object.<string,*>} Plain object
  17346. */
  17347. equip_get_data_rsp.toObject = function toObject(message, options) {
  17348. if (!options)
  17349. options = {};
  17350. let object = {};
  17351. if (options.arrays || options.defaults)
  17352. object.list = [];
  17353. if (options.defaults)
  17354. if ($util.Long) {
  17355. let long = new $util.Long(0, 0, false);
  17356. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17357. } else
  17358. object.errno = options.longs === String ? "0" : 0;
  17359. if (message.errno != null && message.hasOwnProperty("errno"))
  17360. if (typeof message.errno === "number")
  17361. object.errno = options.longs === String ? String(message.errno) : message.errno;
  17362. else
  17363. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  17364. if (message.list && message.list.length) {
  17365. object.list = [];
  17366. for (let j = 0; j < message.list.length; ++j)
  17367. object.list[j] = $root.game.equip.toObject(message.list[j], options);
  17368. }
  17369. return object;
  17370. };
  17371. /**
  17372. * Converts this equip_get_data_rsp to JSON.
  17373. * @function toJSON
  17374. * @memberof game.equip_get_data_rsp
  17375. * @instance
  17376. * @returns {Object.<string,*>} JSON object
  17377. */
  17378. equip_get_data_rsp.prototype.toJSON = function toJSON() {
  17379. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17380. };
  17381. return equip_get_data_rsp;
  17382. })();
  17383. game.equip_upgrade = (function() {
  17384. /**
  17385. * Properties of an equip_upgrade.
  17386. * @memberof game
  17387. * @interface Iequip_upgrade
  17388. * @property {string|null} [sid] equip_upgrade sid
  17389. * @property {number|Long|null} [num] equip_upgrade num
  17390. */
  17391. /**
  17392. * Constructs a new equip_upgrade.
  17393. * @memberof game
  17394. * @classdesc Represents an equip_upgrade.
  17395. * @implements Iequip_upgrade
  17396. * @constructor
  17397. * @param {game.Iequip_upgrade=} [properties] Properties to set
  17398. */
  17399. function equip_upgrade(properties) {
  17400. if (properties)
  17401. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17402. if (properties[keys[i]] != null)
  17403. this[keys[i]] = properties[keys[i]];
  17404. }
  17405. /**
  17406. * equip_upgrade sid.
  17407. * @member {string} sid
  17408. * @memberof game.equip_upgrade
  17409. * @instance
  17410. */
  17411. equip_upgrade.prototype.sid = "";
  17412. /**
  17413. * equip_upgrade num.
  17414. * @member {number|Long} num
  17415. * @memberof game.equip_upgrade
  17416. * @instance
  17417. */
  17418. equip_upgrade.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17419. /**
  17420. * Creates a new equip_upgrade instance using the specified properties.
  17421. * @function create
  17422. * @memberof game.equip_upgrade
  17423. * @static
  17424. * @param {game.Iequip_upgrade=} [properties] Properties to set
  17425. * @returns {game.equip_upgrade} equip_upgrade instance
  17426. */
  17427. equip_upgrade.create = function create(properties) {
  17428. return new equip_upgrade(properties);
  17429. };
  17430. /**
  17431. * Encodes the specified equip_upgrade message. Does not implicitly {@link game.equip_upgrade.verify|verify} messages.
  17432. * @function encode
  17433. * @memberof game.equip_upgrade
  17434. * @static
  17435. * @param {game.Iequip_upgrade} message equip_upgrade message or plain object to encode
  17436. * @param {$protobuf.Writer} [writer] Writer to encode to
  17437. * @returns {$protobuf.Writer} Writer
  17438. */
  17439. equip_upgrade.encode = function encode(message, writer) {
  17440. if (!writer)
  17441. writer = $Writer.create();
  17442. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  17443. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  17444. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  17445. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  17446. return writer;
  17447. };
  17448. /**
  17449. * Encodes the specified equip_upgrade message, length delimited. Does not implicitly {@link game.equip_upgrade.verify|verify} messages.
  17450. * @function encodeDelimited
  17451. * @memberof game.equip_upgrade
  17452. * @static
  17453. * @param {game.Iequip_upgrade} message equip_upgrade message or plain object to encode
  17454. * @param {$protobuf.Writer} [writer] Writer to encode to
  17455. * @returns {$protobuf.Writer} Writer
  17456. */
  17457. equip_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  17458. return this.encode(message, writer).ldelim();
  17459. };
  17460. /**
  17461. * Decodes an equip_upgrade message from the specified reader or buffer.
  17462. * @function decode
  17463. * @memberof game.equip_upgrade
  17464. * @static
  17465. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17466. * @param {number} [length] Message length if known beforehand
  17467. * @returns {game.equip_upgrade} equip_upgrade
  17468. * @throws {Error} If the payload is not a reader or valid buffer
  17469. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17470. */
  17471. equip_upgrade.decode = function decode(reader, length) {
  17472. if (!(reader instanceof $Reader))
  17473. reader = $Reader.create(reader);
  17474. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade();
  17475. while (reader.pos < end) {
  17476. let tag = reader.uint32();
  17477. switch (tag >>> 3) {
  17478. case 1:
  17479. message.sid = reader.string();
  17480. break;
  17481. case 2:
  17482. message.num = reader.int64();
  17483. break;
  17484. default:
  17485. reader.skipType(tag & 7);
  17486. break;
  17487. }
  17488. }
  17489. return message;
  17490. };
  17491. /**
  17492. * Decodes an equip_upgrade message from the specified reader or buffer, length delimited.
  17493. * @function decodeDelimited
  17494. * @memberof game.equip_upgrade
  17495. * @static
  17496. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17497. * @returns {game.equip_upgrade} equip_upgrade
  17498. * @throws {Error} If the payload is not a reader or valid buffer
  17499. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17500. */
  17501. equip_upgrade.decodeDelimited = function decodeDelimited(reader) {
  17502. if (!(reader instanceof $Reader))
  17503. reader = new $Reader(reader);
  17504. return this.decode(reader, reader.uint32());
  17505. };
  17506. /**
  17507. * Verifies an equip_upgrade message.
  17508. * @function verify
  17509. * @memberof game.equip_upgrade
  17510. * @static
  17511. * @param {Object.<string,*>} message Plain object to verify
  17512. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17513. */
  17514. equip_upgrade.verify = function verify(message) {
  17515. if (typeof message !== "object" || message === null)
  17516. return "object expected";
  17517. if (message.sid != null && message.hasOwnProperty("sid"))
  17518. if (!$util.isString(message.sid))
  17519. return "sid: string expected";
  17520. if (message.num != null && message.hasOwnProperty("num"))
  17521. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  17522. return "num: integer|Long expected";
  17523. return null;
  17524. };
  17525. /**
  17526. * Creates an equip_upgrade message from a plain object. Also converts values to their respective internal types.
  17527. * @function fromObject
  17528. * @memberof game.equip_upgrade
  17529. * @static
  17530. * @param {Object.<string,*>} object Plain object
  17531. * @returns {game.equip_upgrade} equip_upgrade
  17532. */
  17533. equip_upgrade.fromObject = function fromObject(object) {
  17534. if (object instanceof $root.game.equip_upgrade)
  17535. return object;
  17536. let message = new $root.game.equip_upgrade();
  17537. if (object.sid != null)
  17538. message.sid = String(object.sid);
  17539. if (object.num != null)
  17540. if ($util.Long)
  17541. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  17542. else if (typeof object.num === "string")
  17543. message.num = parseInt(object.num, 10);
  17544. else if (typeof object.num === "number")
  17545. message.num = object.num;
  17546. else if (typeof object.num === "object")
  17547. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  17548. return message;
  17549. };
  17550. /**
  17551. * Creates a plain object from an equip_upgrade message. Also converts values to other types if specified.
  17552. * @function toObject
  17553. * @memberof game.equip_upgrade
  17554. * @static
  17555. * @param {game.equip_upgrade} message equip_upgrade
  17556. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17557. * @returns {Object.<string,*>} Plain object
  17558. */
  17559. equip_upgrade.toObject = function toObject(message, options) {
  17560. if (!options)
  17561. options = {};
  17562. let object = {};
  17563. if (options.defaults) {
  17564. object.sid = "";
  17565. if ($util.Long) {
  17566. let long = new $util.Long(0, 0, false);
  17567. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17568. } else
  17569. object.num = options.longs === String ? "0" : 0;
  17570. }
  17571. if (message.sid != null && message.hasOwnProperty("sid"))
  17572. object.sid = message.sid;
  17573. if (message.num != null && message.hasOwnProperty("num"))
  17574. if (typeof message.num === "number")
  17575. object.num = options.longs === String ? String(message.num) : message.num;
  17576. else
  17577. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  17578. return object;
  17579. };
  17580. /**
  17581. * Converts this equip_upgrade to JSON.
  17582. * @function toJSON
  17583. * @memberof game.equip_upgrade
  17584. * @instance
  17585. * @returns {Object.<string,*>} JSON object
  17586. */
  17587. equip_upgrade.prototype.toJSON = function toJSON() {
  17588. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17589. };
  17590. return equip_upgrade;
  17591. })();
  17592. game.equip_upgrade_rsp = (function() {
  17593. /**
  17594. * Properties of an equip_upgrade_rsp.
  17595. * @memberof game
  17596. * @interface Iequip_upgrade_rsp
  17597. * @property {number|Long|null} [errno] equip_upgrade_rsp errno
  17598. * @property {game.Iequip|null} [data] equip_upgrade_rsp data
  17599. */
  17600. /**
  17601. * Constructs a new equip_upgrade_rsp.
  17602. * @memberof game
  17603. * @classdesc Represents an equip_upgrade_rsp.
  17604. * @implements Iequip_upgrade_rsp
  17605. * @constructor
  17606. * @param {game.Iequip_upgrade_rsp=} [properties] Properties to set
  17607. */
  17608. function equip_upgrade_rsp(properties) {
  17609. if (properties)
  17610. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17611. if (properties[keys[i]] != null)
  17612. this[keys[i]] = properties[keys[i]];
  17613. }
  17614. /**
  17615. * equip_upgrade_rsp errno.
  17616. * @member {number|Long} errno
  17617. * @memberof game.equip_upgrade_rsp
  17618. * @instance
  17619. */
  17620. equip_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  17621. /**
  17622. * equip_upgrade_rsp data.
  17623. * @member {game.Iequip|null|undefined} data
  17624. * @memberof game.equip_upgrade_rsp
  17625. * @instance
  17626. */
  17627. equip_upgrade_rsp.prototype.data = null;
  17628. /**
  17629. * Creates a new equip_upgrade_rsp instance using the specified properties.
  17630. * @function create
  17631. * @memberof game.equip_upgrade_rsp
  17632. * @static
  17633. * @param {game.Iequip_upgrade_rsp=} [properties] Properties to set
  17634. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp instance
  17635. */
  17636. equip_upgrade_rsp.create = function create(properties) {
  17637. return new equip_upgrade_rsp(properties);
  17638. };
  17639. /**
  17640. * Encodes the specified equip_upgrade_rsp message. Does not implicitly {@link game.equip_upgrade_rsp.verify|verify} messages.
  17641. * @function encode
  17642. * @memberof game.equip_upgrade_rsp
  17643. * @static
  17644. * @param {game.Iequip_upgrade_rsp} message equip_upgrade_rsp message or plain object to encode
  17645. * @param {$protobuf.Writer} [writer] Writer to encode to
  17646. * @returns {$protobuf.Writer} Writer
  17647. */
  17648. equip_upgrade_rsp.encode = function encode(message, writer) {
  17649. if (!writer)
  17650. writer = $Writer.create();
  17651. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  17652. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  17653. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  17654. $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  17655. return writer;
  17656. };
  17657. /**
  17658. * Encodes the specified equip_upgrade_rsp message, length delimited. Does not implicitly {@link game.equip_upgrade_rsp.verify|verify} messages.
  17659. * @function encodeDelimited
  17660. * @memberof game.equip_upgrade_rsp
  17661. * @static
  17662. * @param {game.Iequip_upgrade_rsp} message equip_upgrade_rsp message or plain object to encode
  17663. * @param {$protobuf.Writer} [writer] Writer to encode to
  17664. * @returns {$protobuf.Writer} Writer
  17665. */
  17666. equip_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  17667. return this.encode(message, writer).ldelim();
  17668. };
  17669. /**
  17670. * Decodes an equip_upgrade_rsp message from the specified reader or buffer.
  17671. * @function decode
  17672. * @memberof game.equip_upgrade_rsp
  17673. * @static
  17674. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17675. * @param {number} [length] Message length if known beforehand
  17676. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
  17677. * @throws {Error} If the payload is not a reader or valid buffer
  17678. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17679. */
  17680. equip_upgrade_rsp.decode = function decode(reader, length) {
  17681. if (!(reader instanceof $Reader))
  17682. reader = $Reader.create(reader);
  17683. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_rsp();
  17684. while (reader.pos < end) {
  17685. let tag = reader.uint32();
  17686. switch (tag >>> 3) {
  17687. case 1:
  17688. message.errno = reader.int64();
  17689. break;
  17690. case 2:
  17691. message.data = $root.game.equip.decode(reader, reader.uint32());
  17692. break;
  17693. default:
  17694. reader.skipType(tag & 7);
  17695. break;
  17696. }
  17697. }
  17698. return message;
  17699. };
  17700. /**
  17701. * Decodes an equip_upgrade_rsp message from the specified reader or buffer, length delimited.
  17702. * @function decodeDelimited
  17703. * @memberof game.equip_upgrade_rsp
  17704. * @static
  17705. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17706. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
  17707. * @throws {Error} If the payload is not a reader or valid buffer
  17708. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17709. */
  17710. equip_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  17711. if (!(reader instanceof $Reader))
  17712. reader = new $Reader(reader);
  17713. return this.decode(reader, reader.uint32());
  17714. };
  17715. /**
  17716. * Verifies an equip_upgrade_rsp message.
  17717. * @function verify
  17718. * @memberof game.equip_upgrade_rsp
  17719. * @static
  17720. * @param {Object.<string,*>} message Plain object to verify
  17721. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17722. */
  17723. equip_upgrade_rsp.verify = function verify(message) {
  17724. if (typeof message !== "object" || message === null)
  17725. return "object expected";
  17726. if (message.errno != null && message.hasOwnProperty("errno"))
  17727. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  17728. return "errno: integer|Long expected";
  17729. if (message.data != null && message.hasOwnProperty("data")) {
  17730. let error = $root.game.equip.verify(message.data);
  17731. if (error)
  17732. return "data." + error;
  17733. }
  17734. return null;
  17735. };
  17736. /**
  17737. * Creates an equip_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  17738. * @function fromObject
  17739. * @memberof game.equip_upgrade_rsp
  17740. * @static
  17741. * @param {Object.<string,*>} object Plain object
  17742. * @returns {game.equip_upgrade_rsp} equip_upgrade_rsp
  17743. */
  17744. equip_upgrade_rsp.fromObject = function fromObject(object) {
  17745. if (object instanceof $root.game.equip_upgrade_rsp)
  17746. return object;
  17747. let message = new $root.game.equip_upgrade_rsp();
  17748. if (object.errno != null)
  17749. if ($util.Long)
  17750. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  17751. else if (typeof object.errno === "string")
  17752. message.errno = parseInt(object.errno, 10);
  17753. else if (typeof object.errno === "number")
  17754. message.errno = object.errno;
  17755. else if (typeof object.errno === "object")
  17756. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  17757. if (object.data != null) {
  17758. if (typeof object.data !== "object")
  17759. throw TypeError(".game.equip_upgrade_rsp.data: object expected");
  17760. message.data = $root.game.equip.fromObject(object.data);
  17761. }
  17762. return message;
  17763. };
  17764. /**
  17765. * Creates a plain object from an equip_upgrade_rsp message. Also converts values to other types if specified.
  17766. * @function toObject
  17767. * @memberof game.equip_upgrade_rsp
  17768. * @static
  17769. * @param {game.equip_upgrade_rsp} message equip_upgrade_rsp
  17770. * @param {$protobuf.IConversionOptions} [options] Conversion options
  17771. * @returns {Object.<string,*>} Plain object
  17772. */
  17773. equip_upgrade_rsp.toObject = function toObject(message, options) {
  17774. if (!options)
  17775. options = {};
  17776. let object = {};
  17777. if (options.defaults) {
  17778. if ($util.Long) {
  17779. let long = new $util.Long(0, 0, false);
  17780. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  17781. } else
  17782. object.errno = options.longs === String ? "0" : 0;
  17783. object.data = null;
  17784. }
  17785. if (message.errno != null && message.hasOwnProperty("errno"))
  17786. if (typeof message.errno === "number")
  17787. object.errno = options.longs === String ? String(message.errno) : message.errno;
  17788. else
  17789. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  17790. if (message.data != null && message.hasOwnProperty("data"))
  17791. object.data = $root.game.equip.toObject(message.data, options);
  17792. return object;
  17793. };
  17794. /**
  17795. * Converts this equip_upgrade_rsp to JSON.
  17796. * @function toJSON
  17797. * @memberof game.equip_upgrade_rsp
  17798. * @instance
  17799. * @returns {Object.<string,*>} JSON object
  17800. */
  17801. equip_upgrade_rsp.prototype.toJSON = function toJSON() {
  17802. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  17803. };
  17804. return equip_upgrade_rsp;
  17805. })();
  17806. game.equip_upgrade_star = (function() {
  17807. /**
  17808. * Properties of an equip_upgrade_star.
  17809. * @memberof game
  17810. * @interface Iequip_upgrade_star
  17811. * @property {string|null} [sid] equip_upgrade_star sid
  17812. * @property {Array.<string>|null} [same] equip_upgrade_star same
  17813. * @property {Array.<string>|null} [other] equip_upgrade_star other
  17814. * @property {game.Iid_num|null} [currency] equip_upgrade_star currency
  17815. */
  17816. /**
  17817. * Constructs a new equip_upgrade_star.
  17818. * @memberof game
  17819. * @classdesc Represents an equip_upgrade_star.
  17820. * @implements Iequip_upgrade_star
  17821. * @constructor
  17822. * @param {game.Iequip_upgrade_star=} [properties] Properties to set
  17823. */
  17824. function equip_upgrade_star(properties) {
  17825. this.same = [];
  17826. this.other = [];
  17827. if (properties)
  17828. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  17829. if (properties[keys[i]] != null)
  17830. this[keys[i]] = properties[keys[i]];
  17831. }
  17832. /**
  17833. * equip_upgrade_star sid.
  17834. * @member {string} sid
  17835. * @memberof game.equip_upgrade_star
  17836. * @instance
  17837. */
  17838. equip_upgrade_star.prototype.sid = "";
  17839. /**
  17840. * equip_upgrade_star same.
  17841. * @member {Array.<string>} same
  17842. * @memberof game.equip_upgrade_star
  17843. * @instance
  17844. */
  17845. equip_upgrade_star.prototype.same = $util.emptyArray;
  17846. /**
  17847. * equip_upgrade_star other.
  17848. * @member {Array.<string>} other
  17849. * @memberof game.equip_upgrade_star
  17850. * @instance
  17851. */
  17852. equip_upgrade_star.prototype.other = $util.emptyArray;
  17853. /**
  17854. * equip_upgrade_star currency.
  17855. * @member {game.Iid_num|null|undefined} currency
  17856. * @memberof game.equip_upgrade_star
  17857. * @instance
  17858. */
  17859. equip_upgrade_star.prototype.currency = null;
  17860. /**
  17861. * Creates a new equip_upgrade_star instance using the specified properties.
  17862. * @function create
  17863. * @memberof game.equip_upgrade_star
  17864. * @static
  17865. * @param {game.Iequip_upgrade_star=} [properties] Properties to set
  17866. * @returns {game.equip_upgrade_star} equip_upgrade_star instance
  17867. */
  17868. equip_upgrade_star.create = function create(properties) {
  17869. return new equip_upgrade_star(properties);
  17870. };
  17871. /**
  17872. * Encodes the specified equip_upgrade_star message. Does not implicitly {@link game.equip_upgrade_star.verify|verify} messages.
  17873. * @function encode
  17874. * @memberof game.equip_upgrade_star
  17875. * @static
  17876. * @param {game.Iequip_upgrade_star} message equip_upgrade_star message or plain object to encode
  17877. * @param {$protobuf.Writer} [writer] Writer to encode to
  17878. * @returns {$protobuf.Writer} Writer
  17879. */
  17880. equip_upgrade_star.encode = function encode(message, writer) {
  17881. if (!writer)
  17882. writer = $Writer.create();
  17883. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  17884. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  17885. if (message.same != null && message.same.length)
  17886. for (let i = 0; i < message.same.length; ++i)
  17887. writer.uint32(/* id 2, wireType 2 =*/18).string(message.same[i]);
  17888. if (message.other != null && message.other.length)
  17889. for (let i = 0; i < message.other.length; ++i)
  17890. writer.uint32(/* id 3, wireType 2 =*/26).string(message.other[i]);
  17891. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  17892. $root.game.id_num.encode(message.currency, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  17893. return writer;
  17894. };
  17895. /**
  17896. * Encodes the specified equip_upgrade_star message, length delimited. Does not implicitly {@link game.equip_upgrade_star.verify|verify} messages.
  17897. * @function encodeDelimited
  17898. * @memberof game.equip_upgrade_star
  17899. * @static
  17900. * @param {game.Iequip_upgrade_star} message equip_upgrade_star message or plain object to encode
  17901. * @param {$protobuf.Writer} [writer] Writer to encode to
  17902. * @returns {$protobuf.Writer} Writer
  17903. */
  17904. equip_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  17905. return this.encode(message, writer).ldelim();
  17906. };
  17907. /**
  17908. * Decodes an equip_upgrade_star message from the specified reader or buffer.
  17909. * @function decode
  17910. * @memberof game.equip_upgrade_star
  17911. * @static
  17912. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17913. * @param {number} [length] Message length if known beforehand
  17914. * @returns {game.equip_upgrade_star} equip_upgrade_star
  17915. * @throws {Error} If the payload is not a reader or valid buffer
  17916. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17917. */
  17918. equip_upgrade_star.decode = function decode(reader, length) {
  17919. if (!(reader instanceof $Reader))
  17920. reader = $Reader.create(reader);
  17921. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_star();
  17922. while (reader.pos < end) {
  17923. let tag = reader.uint32();
  17924. switch (tag >>> 3) {
  17925. case 1:
  17926. message.sid = reader.string();
  17927. break;
  17928. case 2:
  17929. if (!(message.same && message.same.length))
  17930. message.same = [];
  17931. message.same.push(reader.string());
  17932. break;
  17933. case 3:
  17934. if (!(message.other && message.other.length))
  17935. message.other = [];
  17936. message.other.push(reader.string());
  17937. break;
  17938. case 4:
  17939. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  17940. break;
  17941. default:
  17942. reader.skipType(tag & 7);
  17943. break;
  17944. }
  17945. }
  17946. return message;
  17947. };
  17948. /**
  17949. * Decodes an equip_upgrade_star message from the specified reader or buffer, length delimited.
  17950. * @function decodeDelimited
  17951. * @memberof game.equip_upgrade_star
  17952. * @static
  17953. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  17954. * @returns {game.equip_upgrade_star} equip_upgrade_star
  17955. * @throws {Error} If the payload is not a reader or valid buffer
  17956. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  17957. */
  17958. equip_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  17959. if (!(reader instanceof $Reader))
  17960. reader = new $Reader(reader);
  17961. return this.decode(reader, reader.uint32());
  17962. };
  17963. /**
  17964. * Verifies an equip_upgrade_star message.
  17965. * @function verify
  17966. * @memberof game.equip_upgrade_star
  17967. * @static
  17968. * @param {Object.<string,*>} message Plain object to verify
  17969. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  17970. */
  17971. equip_upgrade_star.verify = function verify(message) {
  17972. if (typeof message !== "object" || message === null)
  17973. return "object expected";
  17974. if (message.sid != null && message.hasOwnProperty("sid"))
  17975. if (!$util.isString(message.sid))
  17976. return "sid: string expected";
  17977. if (message.same != null && message.hasOwnProperty("same")) {
  17978. if (!Array.isArray(message.same))
  17979. return "same: array expected";
  17980. for (let i = 0; i < message.same.length; ++i)
  17981. if (!$util.isString(message.same[i]))
  17982. return "same: string[] expected";
  17983. }
  17984. if (message.other != null && message.hasOwnProperty("other")) {
  17985. if (!Array.isArray(message.other))
  17986. return "other: array expected";
  17987. for (let i = 0; i < message.other.length; ++i)
  17988. if (!$util.isString(message.other[i]))
  17989. return "other: string[] expected";
  17990. }
  17991. if (message.currency != null && message.hasOwnProperty("currency")) {
  17992. let error = $root.game.id_num.verify(message.currency);
  17993. if (error)
  17994. return "currency." + error;
  17995. }
  17996. return null;
  17997. };
  17998. /**
  17999. * Creates an equip_upgrade_star message from a plain object. Also converts values to their respective internal types.
  18000. * @function fromObject
  18001. * @memberof game.equip_upgrade_star
  18002. * @static
  18003. * @param {Object.<string,*>} object Plain object
  18004. * @returns {game.equip_upgrade_star} equip_upgrade_star
  18005. */
  18006. equip_upgrade_star.fromObject = function fromObject(object) {
  18007. if (object instanceof $root.game.equip_upgrade_star)
  18008. return object;
  18009. let message = new $root.game.equip_upgrade_star();
  18010. if (object.sid != null)
  18011. message.sid = String(object.sid);
  18012. if (object.same) {
  18013. if (!Array.isArray(object.same))
  18014. throw TypeError(".game.equip_upgrade_star.same: array expected");
  18015. message.same = [];
  18016. for (let i = 0; i < object.same.length; ++i)
  18017. message.same[i] = String(object.same[i]);
  18018. }
  18019. if (object.other) {
  18020. if (!Array.isArray(object.other))
  18021. throw TypeError(".game.equip_upgrade_star.other: array expected");
  18022. message.other = [];
  18023. for (let i = 0; i < object.other.length; ++i)
  18024. message.other[i] = String(object.other[i]);
  18025. }
  18026. if (object.currency != null) {
  18027. if (typeof object.currency !== "object")
  18028. throw TypeError(".game.equip_upgrade_star.currency: object expected");
  18029. message.currency = $root.game.id_num.fromObject(object.currency);
  18030. }
  18031. return message;
  18032. };
  18033. /**
  18034. * Creates a plain object from an equip_upgrade_star message. Also converts values to other types if specified.
  18035. * @function toObject
  18036. * @memberof game.equip_upgrade_star
  18037. * @static
  18038. * @param {game.equip_upgrade_star} message equip_upgrade_star
  18039. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18040. * @returns {Object.<string,*>} Plain object
  18041. */
  18042. equip_upgrade_star.toObject = function toObject(message, options) {
  18043. if (!options)
  18044. options = {};
  18045. let object = {};
  18046. if (options.arrays || options.defaults) {
  18047. object.same = [];
  18048. object.other = [];
  18049. }
  18050. if (options.defaults) {
  18051. object.sid = "";
  18052. object.currency = null;
  18053. }
  18054. if (message.sid != null && message.hasOwnProperty("sid"))
  18055. object.sid = message.sid;
  18056. if (message.same && message.same.length) {
  18057. object.same = [];
  18058. for (let j = 0; j < message.same.length; ++j)
  18059. object.same[j] = message.same[j];
  18060. }
  18061. if (message.other && message.other.length) {
  18062. object.other = [];
  18063. for (let j = 0; j < message.other.length; ++j)
  18064. object.other[j] = message.other[j];
  18065. }
  18066. if (message.currency != null && message.hasOwnProperty("currency"))
  18067. object.currency = $root.game.id_num.toObject(message.currency, options);
  18068. return object;
  18069. };
  18070. /**
  18071. * Converts this equip_upgrade_star to JSON.
  18072. * @function toJSON
  18073. * @memberof game.equip_upgrade_star
  18074. * @instance
  18075. * @returns {Object.<string,*>} JSON object
  18076. */
  18077. equip_upgrade_star.prototype.toJSON = function toJSON() {
  18078. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18079. };
  18080. return equip_upgrade_star;
  18081. })();
  18082. game.equip_upgrade_star_rsp = (function() {
  18083. /**
  18084. * Properties of an equip_upgrade_star_rsp.
  18085. * @memberof game
  18086. * @interface Iequip_upgrade_star_rsp
  18087. * @property {number|Long|null} [errno] equip_upgrade_star_rsp errno
  18088. * @property {game.Iequip|null} [data] equip_upgrade_star_rsp data
  18089. * @property {Array.<string>|null} [same] equip_upgrade_star_rsp same
  18090. * @property {Array.<string>|null} [other] equip_upgrade_star_rsp other
  18091. * @property {game.Iid_num|null} [currency] equip_upgrade_star_rsp currency
  18092. */
  18093. /**
  18094. * Constructs a new equip_upgrade_star_rsp.
  18095. * @memberof game
  18096. * @classdesc Represents an equip_upgrade_star_rsp.
  18097. * @implements Iequip_upgrade_star_rsp
  18098. * @constructor
  18099. * @param {game.Iequip_upgrade_star_rsp=} [properties] Properties to set
  18100. */
  18101. function equip_upgrade_star_rsp(properties) {
  18102. this.same = [];
  18103. this.other = [];
  18104. if (properties)
  18105. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18106. if (properties[keys[i]] != null)
  18107. this[keys[i]] = properties[keys[i]];
  18108. }
  18109. /**
  18110. * equip_upgrade_star_rsp errno.
  18111. * @member {number|Long} errno
  18112. * @memberof game.equip_upgrade_star_rsp
  18113. * @instance
  18114. */
  18115. equip_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  18116. /**
  18117. * equip_upgrade_star_rsp data.
  18118. * @member {game.Iequip|null|undefined} data
  18119. * @memberof game.equip_upgrade_star_rsp
  18120. * @instance
  18121. */
  18122. equip_upgrade_star_rsp.prototype.data = null;
  18123. /**
  18124. * equip_upgrade_star_rsp same.
  18125. * @member {Array.<string>} same
  18126. * @memberof game.equip_upgrade_star_rsp
  18127. * @instance
  18128. */
  18129. equip_upgrade_star_rsp.prototype.same = $util.emptyArray;
  18130. /**
  18131. * equip_upgrade_star_rsp other.
  18132. * @member {Array.<string>} other
  18133. * @memberof game.equip_upgrade_star_rsp
  18134. * @instance
  18135. */
  18136. equip_upgrade_star_rsp.prototype.other = $util.emptyArray;
  18137. /**
  18138. * equip_upgrade_star_rsp currency.
  18139. * @member {game.Iid_num|null|undefined} currency
  18140. * @memberof game.equip_upgrade_star_rsp
  18141. * @instance
  18142. */
  18143. equip_upgrade_star_rsp.prototype.currency = null;
  18144. /**
  18145. * Creates a new equip_upgrade_star_rsp instance using the specified properties.
  18146. * @function create
  18147. * @memberof game.equip_upgrade_star_rsp
  18148. * @static
  18149. * @param {game.Iequip_upgrade_star_rsp=} [properties] Properties to set
  18150. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp instance
  18151. */
  18152. equip_upgrade_star_rsp.create = function create(properties) {
  18153. return new equip_upgrade_star_rsp(properties);
  18154. };
  18155. /**
  18156. * Encodes the specified equip_upgrade_star_rsp message. Does not implicitly {@link game.equip_upgrade_star_rsp.verify|verify} messages.
  18157. * @function encode
  18158. * @memberof game.equip_upgrade_star_rsp
  18159. * @static
  18160. * @param {game.Iequip_upgrade_star_rsp} message equip_upgrade_star_rsp message or plain object to encode
  18161. * @param {$protobuf.Writer} [writer] Writer to encode to
  18162. * @returns {$protobuf.Writer} Writer
  18163. */
  18164. equip_upgrade_star_rsp.encode = function encode(message, writer) {
  18165. if (!writer)
  18166. writer = $Writer.create();
  18167. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  18168. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  18169. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  18170. $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  18171. if (message.same != null && message.same.length)
  18172. for (let i = 0; i < message.same.length; ++i)
  18173. writer.uint32(/* id 3, wireType 2 =*/26).string(message.same[i]);
  18174. if (message.other != null && message.other.length)
  18175. for (let i = 0; i < message.other.length; ++i)
  18176. writer.uint32(/* id 4, wireType 2 =*/34).string(message.other[i]);
  18177. if (message.currency != null && Object.hasOwnProperty.call(message, "currency"))
  18178. $root.game.id_num.encode(message.currency, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  18179. return writer;
  18180. };
  18181. /**
  18182. * Encodes the specified equip_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.equip_upgrade_star_rsp.verify|verify} messages.
  18183. * @function encodeDelimited
  18184. * @memberof game.equip_upgrade_star_rsp
  18185. * @static
  18186. * @param {game.Iequip_upgrade_star_rsp} message equip_upgrade_star_rsp message or plain object to encode
  18187. * @param {$protobuf.Writer} [writer] Writer to encode to
  18188. * @returns {$protobuf.Writer} Writer
  18189. */
  18190. equip_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  18191. return this.encode(message, writer).ldelim();
  18192. };
  18193. /**
  18194. * Decodes an equip_upgrade_star_rsp message from the specified reader or buffer.
  18195. * @function decode
  18196. * @memberof game.equip_upgrade_star_rsp
  18197. * @static
  18198. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18199. * @param {number} [length] Message length if known beforehand
  18200. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
  18201. * @throws {Error} If the payload is not a reader or valid buffer
  18202. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18203. */
  18204. equip_upgrade_star_rsp.decode = function decode(reader, length) {
  18205. if (!(reader instanceof $Reader))
  18206. reader = $Reader.create(reader);
  18207. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_upgrade_star_rsp();
  18208. while (reader.pos < end) {
  18209. let tag = reader.uint32();
  18210. switch (tag >>> 3) {
  18211. case 1:
  18212. message.errno = reader.int64();
  18213. break;
  18214. case 2:
  18215. message.data = $root.game.equip.decode(reader, reader.uint32());
  18216. break;
  18217. case 3:
  18218. if (!(message.same && message.same.length))
  18219. message.same = [];
  18220. message.same.push(reader.string());
  18221. break;
  18222. case 4:
  18223. if (!(message.other && message.other.length))
  18224. message.other = [];
  18225. message.other.push(reader.string());
  18226. break;
  18227. case 5:
  18228. message.currency = $root.game.id_num.decode(reader, reader.uint32());
  18229. break;
  18230. default:
  18231. reader.skipType(tag & 7);
  18232. break;
  18233. }
  18234. }
  18235. return message;
  18236. };
  18237. /**
  18238. * Decodes an equip_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  18239. * @function decodeDelimited
  18240. * @memberof game.equip_upgrade_star_rsp
  18241. * @static
  18242. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18243. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
  18244. * @throws {Error} If the payload is not a reader or valid buffer
  18245. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18246. */
  18247. equip_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  18248. if (!(reader instanceof $Reader))
  18249. reader = new $Reader(reader);
  18250. return this.decode(reader, reader.uint32());
  18251. };
  18252. /**
  18253. * Verifies an equip_upgrade_star_rsp message.
  18254. * @function verify
  18255. * @memberof game.equip_upgrade_star_rsp
  18256. * @static
  18257. * @param {Object.<string,*>} message Plain object to verify
  18258. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18259. */
  18260. equip_upgrade_star_rsp.verify = function verify(message) {
  18261. if (typeof message !== "object" || message === null)
  18262. return "object expected";
  18263. if (message.errno != null && message.hasOwnProperty("errno"))
  18264. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  18265. return "errno: integer|Long expected";
  18266. if (message.data != null && message.hasOwnProperty("data")) {
  18267. let error = $root.game.equip.verify(message.data);
  18268. if (error)
  18269. return "data." + error;
  18270. }
  18271. if (message.same != null && message.hasOwnProperty("same")) {
  18272. if (!Array.isArray(message.same))
  18273. return "same: array expected";
  18274. for (let i = 0; i < message.same.length; ++i)
  18275. if (!$util.isString(message.same[i]))
  18276. return "same: string[] expected";
  18277. }
  18278. if (message.other != null && message.hasOwnProperty("other")) {
  18279. if (!Array.isArray(message.other))
  18280. return "other: array expected";
  18281. for (let i = 0; i < message.other.length; ++i)
  18282. if (!$util.isString(message.other[i]))
  18283. return "other: string[] expected";
  18284. }
  18285. if (message.currency != null && message.hasOwnProperty("currency")) {
  18286. let error = $root.game.id_num.verify(message.currency);
  18287. if (error)
  18288. return "currency." + error;
  18289. }
  18290. return null;
  18291. };
  18292. /**
  18293. * Creates an equip_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  18294. * @function fromObject
  18295. * @memberof game.equip_upgrade_star_rsp
  18296. * @static
  18297. * @param {Object.<string,*>} object Plain object
  18298. * @returns {game.equip_upgrade_star_rsp} equip_upgrade_star_rsp
  18299. */
  18300. equip_upgrade_star_rsp.fromObject = function fromObject(object) {
  18301. if (object instanceof $root.game.equip_upgrade_star_rsp)
  18302. return object;
  18303. let message = new $root.game.equip_upgrade_star_rsp();
  18304. if (object.errno != null)
  18305. if ($util.Long)
  18306. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  18307. else if (typeof object.errno === "string")
  18308. message.errno = parseInt(object.errno, 10);
  18309. else if (typeof object.errno === "number")
  18310. message.errno = object.errno;
  18311. else if (typeof object.errno === "object")
  18312. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  18313. if (object.data != null) {
  18314. if (typeof object.data !== "object")
  18315. throw TypeError(".game.equip_upgrade_star_rsp.data: object expected");
  18316. message.data = $root.game.equip.fromObject(object.data);
  18317. }
  18318. if (object.same) {
  18319. if (!Array.isArray(object.same))
  18320. throw TypeError(".game.equip_upgrade_star_rsp.same: array expected");
  18321. message.same = [];
  18322. for (let i = 0; i < object.same.length; ++i)
  18323. message.same[i] = String(object.same[i]);
  18324. }
  18325. if (object.other) {
  18326. if (!Array.isArray(object.other))
  18327. throw TypeError(".game.equip_upgrade_star_rsp.other: array expected");
  18328. message.other = [];
  18329. for (let i = 0; i < object.other.length; ++i)
  18330. message.other[i] = String(object.other[i]);
  18331. }
  18332. if (object.currency != null) {
  18333. if (typeof object.currency !== "object")
  18334. throw TypeError(".game.equip_upgrade_star_rsp.currency: object expected");
  18335. message.currency = $root.game.id_num.fromObject(object.currency);
  18336. }
  18337. return message;
  18338. };
  18339. /**
  18340. * Creates a plain object from an equip_upgrade_star_rsp message. Also converts values to other types if specified.
  18341. * @function toObject
  18342. * @memberof game.equip_upgrade_star_rsp
  18343. * @static
  18344. * @param {game.equip_upgrade_star_rsp} message equip_upgrade_star_rsp
  18345. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18346. * @returns {Object.<string,*>} Plain object
  18347. */
  18348. equip_upgrade_star_rsp.toObject = function toObject(message, options) {
  18349. if (!options)
  18350. options = {};
  18351. let object = {};
  18352. if (options.arrays || options.defaults) {
  18353. object.same = [];
  18354. object.other = [];
  18355. }
  18356. if (options.defaults) {
  18357. if ($util.Long) {
  18358. let long = new $util.Long(0, 0, false);
  18359. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  18360. } else
  18361. object.errno = options.longs === String ? "0" : 0;
  18362. object.data = null;
  18363. object.currency = null;
  18364. }
  18365. if (message.errno != null && message.hasOwnProperty("errno"))
  18366. if (typeof message.errno === "number")
  18367. object.errno = options.longs === String ? String(message.errno) : message.errno;
  18368. else
  18369. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  18370. if (message.data != null && message.hasOwnProperty("data"))
  18371. object.data = $root.game.equip.toObject(message.data, options);
  18372. if (message.same && message.same.length) {
  18373. object.same = [];
  18374. for (let j = 0; j < message.same.length; ++j)
  18375. object.same[j] = message.same[j];
  18376. }
  18377. if (message.other && message.other.length) {
  18378. object.other = [];
  18379. for (let j = 0; j < message.other.length; ++j)
  18380. object.other[j] = message.other[j];
  18381. }
  18382. if (message.currency != null && message.hasOwnProperty("currency"))
  18383. object.currency = $root.game.id_num.toObject(message.currency, options);
  18384. return object;
  18385. };
  18386. /**
  18387. * Converts this equip_upgrade_star_rsp to JSON.
  18388. * @function toJSON
  18389. * @memberof game.equip_upgrade_star_rsp
  18390. * @instance
  18391. * @returns {Object.<string,*>} JSON object
  18392. */
  18393. equip_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  18394. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18395. };
  18396. return equip_upgrade_star_rsp;
  18397. })();
  18398. game.equip_onekey_upgrade_star = (function() {
  18399. /**
  18400. * Properties of an equip_onekey_upgrade_star.
  18401. * @memberof game
  18402. * @interface Iequip_onekey_upgrade_star
  18403. */
  18404. /**
  18405. * Constructs a new equip_onekey_upgrade_star.
  18406. * @memberof game
  18407. * @classdesc Represents an equip_onekey_upgrade_star.
  18408. * @implements Iequip_onekey_upgrade_star
  18409. * @constructor
  18410. * @param {game.Iequip_onekey_upgrade_star=} [properties] Properties to set
  18411. */
  18412. function equip_onekey_upgrade_star(properties) {
  18413. if (properties)
  18414. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18415. if (properties[keys[i]] != null)
  18416. this[keys[i]] = properties[keys[i]];
  18417. }
  18418. /**
  18419. * Creates a new equip_onekey_upgrade_star instance using the specified properties.
  18420. * @function create
  18421. * @memberof game.equip_onekey_upgrade_star
  18422. * @static
  18423. * @param {game.Iequip_onekey_upgrade_star=} [properties] Properties to set
  18424. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star instance
  18425. */
  18426. equip_onekey_upgrade_star.create = function create(properties) {
  18427. return new equip_onekey_upgrade_star(properties);
  18428. };
  18429. /**
  18430. * Encodes the specified equip_onekey_upgrade_star message. Does not implicitly {@link game.equip_onekey_upgrade_star.verify|verify} messages.
  18431. * @function encode
  18432. * @memberof game.equip_onekey_upgrade_star
  18433. * @static
  18434. * @param {game.Iequip_onekey_upgrade_star} message equip_onekey_upgrade_star message or plain object to encode
  18435. * @param {$protobuf.Writer} [writer] Writer to encode to
  18436. * @returns {$protobuf.Writer} Writer
  18437. */
  18438. equip_onekey_upgrade_star.encode = function encode(message, writer) {
  18439. if (!writer)
  18440. writer = $Writer.create();
  18441. return writer;
  18442. };
  18443. /**
  18444. * Encodes the specified equip_onekey_upgrade_star message, length delimited. Does not implicitly {@link game.equip_onekey_upgrade_star.verify|verify} messages.
  18445. * @function encodeDelimited
  18446. * @memberof game.equip_onekey_upgrade_star
  18447. * @static
  18448. * @param {game.Iequip_onekey_upgrade_star} message equip_onekey_upgrade_star message or plain object to encode
  18449. * @param {$protobuf.Writer} [writer] Writer to encode to
  18450. * @returns {$protobuf.Writer} Writer
  18451. */
  18452. equip_onekey_upgrade_star.encodeDelimited = function encodeDelimited(message, writer) {
  18453. return this.encode(message, writer).ldelim();
  18454. };
  18455. /**
  18456. * Decodes an equip_onekey_upgrade_star message from the specified reader or buffer.
  18457. * @function decode
  18458. * @memberof game.equip_onekey_upgrade_star
  18459. * @static
  18460. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18461. * @param {number} [length] Message length if known beforehand
  18462. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
  18463. * @throws {Error} If the payload is not a reader or valid buffer
  18464. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18465. */
  18466. equip_onekey_upgrade_star.decode = function decode(reader, length) {
  18467. if (!(reader instanceof $Reader))
  18468. reader = $Reader.create(reader);
  18469. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_onekey_upgrade_star();
  18470. while (reader.pos < end) {
  18471. let tag = reader.uint32();
  18472. switch (tag >>> 3) {
  18473. default:
  18474. reader.skipType(tag & 7);
  18475. break;
  18476. }
  18477. }
  18478. return message;
  18479. };
  18480. /**
  18481. * Decodes an equip_onekey_upgrade_star message from the specified reader or buffer, length delimited.
  18482. * @function decodeDelimited
  18483. * @memberof game.equip_onekey_upgrade_star
  18484. * @static
  18485. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18486. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
  18487. * @throws {Error} If the payload is not a reader or valid buffer
  18488. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18489. */
  18490. equip_onekey_upgrade_star.decodeDelimited = function decodeDelimited(reader) {
  18491. if (!(reader instanceof $Reader))
  18492. reader = new $Reader(reader);
  18493. return this.decode(reader, reader.uint32());
  18494. };
  18495. /**
  18496. * Verifies an equip_onekey_upgrade_star message.
  18497. * @function verify
  18498. * @memberof game.equip_onekey_upgrade_star
  18499. * @static
  18500. * @param {Object.<string,*>} message Plain object to verify
  18501. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18502. */
  18503. equip_onekey_upgrade_star.verify = function verify(message) {
  18504. if (typeof message !== "object" || message === null)
  18505. return "object expected";
  18506. return null;
  18507. };
  18508. /**
  18509. * Creates an equip_onekey_upgrade_star message from a plain object. Also converts values to their respective internal types.
  18510. * @function fromObject
  18511. * @memberof game.equip_onekey_upgrade_star
  18512. * @static
  18513. * @param {Object.<string,*>} object Plain object
  18514. * @returns {game.equip_onekey_upgrade_star} equip_onekey_upgrade_star
  18515. */
  18516. equip_onekey_upgrade_star.fromObject = function fromObject(object) {
  18517. if (object instanceof $root.game.equip_onekey_upgrade_star)
  18518. return object;
  18519. return new $root.game.equip_onekey_upgrade_star();
  18520. };
  18521. /**
  18522. * Creates a plain object from an equip_onekey_upgrade_star message. Also converts values to other types if specified.
  18523. * @function toObject
  18524. * @memberof game.equip_onekey_upgrade_star
  18525. * @static
  18526. * @param {game.equip_onekey_upgrade_star} message equip_onekey_upgrade_star
  18527. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18528. * @returns {Object.<string,*>} Plain object
  18529. */
  18530. equip_onekey_upgrade_star.toObject = function toObject() {
  18531. return {};
  18532. };
  18533. /**
  18534. * Converts this equip_onekey_upgrade_star to JSON.
  18535. * @function toJSON
  18536. * @memberof game.equip_onekey_upgrade_star
  18537. * @instance
  18538. * @returns {Object.<string,*>} JSON object
  18539. */
  18540. equip_onekey_upgrade_star.prototype.toJSON = function toJSON() {
  18541. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18542. };
  18543. return equip_onekey_upgrade_star;
  18544. })();
  18545. game.equip_onekey_upgrade_star_rsp = (function() {
  18546. /**
  18547. * Properties of an equip_onekey_upgrade_star_rsp.
  18548. * @memberof game
  18549. * @interface Iequip_onekey_upgrade_star_rsp
  18550. * @property {number|Long|null} [errno] equip_onekey_upgrade_star_rsp errno
  18551. * @property {Array.<string>|null} [delList] equip_onekey_upgrade_star_rsp delList
  18552. * @property {Array.<game.Iequip>|null} [changeList] equip_onekey_upgrade_star_rsp changeList
  18553. */
  18554. /**
  18555. * Constructs a new equip_onekey_upgrade_star_rsp.
  18556. * @memberof game
  18557. * @classdesc Represents an equip_onekey_upgrade_star_rsp.
  18558. * @implements Iequip_onekey_upgrade_star_rsp
  18559. * @constructor
  18560. * @param {game.Iequip_onekey_upgrade_star_rsp=} [properties] Properties to set
  18561. */
  18562. function equip_onekey_upgrade_star_rsp(properties) {
  18563. this.delList = [];
  18564. this.changeList = [];
  18565. if (properties)
  18566. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18567. if (properties[keys[i]] != null)
  18568. this[keys[i]] = properties[keys[i]];
  18569. }
  18570. /**
  18571. * equip_onekey_upgrade_star_rsp errno.
  18572. * @member {number|Long} errno
  18573. * @memberof game.equip_onekey_upgrade_star_rsp
  18574. * @instance
  18575. */
  18576. equip_onekey_upgrade_star_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  18577. /**
  18578. * equip_onekey_upgrade_star_rsp delList.
  18579. * @member {Array.<string>} delList
  18580. * @memberof game.equip_onekey_upgrade_star_rsp
  18581. * @instance
  18582. */
  18583. equip_onekey_upgrade_star_rsp.prototype.delList = $util.emptyArray;
  18584. /**
  18585. * equip_onekey_upgrade_star_rsp changeList.
  18586. * @member {Array.<game.Iequip>} changeList
  18587. * @memberof game.equip_onekey_upgrade_star_rsp
  18588. * @instance
  18589. */
  18590. equip_onekey_upgrade_star_rsp.prototype.changeList = $util.emptyArray;
  18591. /**
  18592. * Creates a new equip_onekey_upgrade_star_rsp instance using the specified properties.
  18593. * @function create
  18594. * @memberof game.equip_onekey_upgrade_star_rsp
  18595. * @static
  18596. * @param {game.Iequip_onekey_upgrade_star_rsp=} [properties] Properties to set
  18597. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp instance
  18598. */
  18599. equip_onekey_upgrade_star_rsp.create = function create(properties) {
  18600. return new equip_onekey_upgrade_star_rsp(properties);
  18601. };
  18602. /**
  18603. * Encodes the specified equip_onekey_upgrade_star_rsp message. Does not implicitly {@link game.equip_onekey_upgrade_star_rsp.verify|verify} messages.
  18604. * @function encode
  18605. * @memberof game.equip_onekey_upgrade_star_rsp
  18606. * @static
  18607. * @param {game.Iequip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp message or plain object to encode
  18608. * @param {$protobuf.Writer} [writer] Writer to encode to
  18609. * @returns {$protobuf.Writer} Writer
  18610. */
  18611. equip_onekey_upgrade_star_rsp.encode = function encode(message, writer) {
  18612. if (!writer)
  18613. writer = $Writer.create();
  18614. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  18615. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  18616. if (message.delList != null && message.delList.length)
  18617. for (let i = 0; i < message.delList.length; ++i)
  18618. writer.uint32(/* id 2, wireType 2 =*/18).string(message.delList[i]);
  18619. if (message.changeList != null && message.changeList.length)
  18620. for (let i = 0; i < message.changeList.length; ++i)
  18621. $root.game.equip.encode(message.changeList[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  18622. return writer;
  18623. };
  18624. /**
  18625. * Encodes the specified equip_onekey_upgrade_star_rsp message, length delimited. Does not implicitly {@link game.equip_onekey_upgrade_star_rsp.verify|verify} messages.
  18626. * @function encodeDelimited
  18627. * @memberof game.equip_onekey_upgrade_star_rsp
  18628. * @static
  18629. * @param {game.Iequip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp message or plain object to encode
  18630. * @param {$protobuf.Writer} [writer] Writer to encode to
  18631. * @returns {$protobuf.Writer} Writer
  18632. */
  18633. equip_onekey_upgrade_star_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  18634. return this.encode(message, writer).ldelim();
  18635. };
  18636. /**
  18637. * Decodes an equip_onekey_upgrade_star_rsp message from the specified reader or buffer.
  18638. * @function decode
  18639. * @memberof game.equip_onekey_upgrade_star_rsp
  18640. * @static
  18641. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18642. * @param {number} [length] Message length if known beforehand
  18643. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
  18644. * @throws {Error} If the payload is not a reader or valid buffer
  18645. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18646. */
  18647. equip_onekey_upgrade_star_rsp.decode = function decode(reader, length) {
  18648. if (!(reader instanceof $Reader))
  18649. reader = $Reader.create(reader);
  18650. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_onekey_upgrade_star_rsp();
  18651. while (reader.pos < end) {
  18652. let tag = reader.uint32();
  18653. switch (tag >>> 3) {
  18654. case 1:
  18655. message.errno = reader.int64();
  18656. break;
  18657. case 2:
  18658. if (!(message.delList && message.delList.length))
  18659. message.delList = [];
  18660. message.delList.push(reader.string());
  18661. break;
  18662. case 3:
  18663. if (!(message.changeList && message.changeList.length))
  18664. message.changeList = [];
  18665. message.changeList.push($root.game.equip.decode(reader, reader.uint32()));
  18666. break;
  18667. default:
  18668. reader.skipType(tag & 7);
  18669. break;
  18670. }
  18671. }
  18672. return message;
  18673. };
  18674. /**
  18675. * Decodes an equip_onekey_upgrade_star_rsp message from the specified reader or buffer, length delimited.
  18676. * @function decodeDelimited
  18677. * @memberof game.equip_onekey_upgrade_star_rsp
  18678. * @static
  18679. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18680. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
  18681. * @throws {Error} If the payload is not a reader or valid buffer
  18682. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18683. */
  18684. equip_onekey_upgrade_star_rsp.decodeDelimited = function decodeDelimited(reader) {
  18685. if (!(reader instanceof $Reader))
  18686. reader = new $Reader(reader);
  18687. return this.decode(reader, reader.uint32());
  18688. };
  18689. /**
  18690. * Verifies an equip_onekey_upgrade_star_rsp message.
  18691. * @function verify
  18692. * @memberof game.equip_onekey_upgrade_star_rsp
  18693. * @static
  18694. * @param {Object.<string,*>} message Plain object to verify
  18695. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18696. */
  18697. equip_onekey_upgrade_star_rsp.verify = function verify(message) {
  18698. if (typeof message !== "object" || message === null)
  18699. return "object expected";
  18700. if (message.errno != null && message.hasOwnProperty("errno"))
  18701. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  18702. return "errno: integer|Long expected";
  18703. if (message.delList != null && message.hasOwnProperty("delList")) {
  18704. if (!Array.isArray(message.delList))
  18705. return "delList: array expected";
  18706. for (let i = 0; i < message.delList.length; ++i)
  18707. if (!$util.isString(message.delList[i]))
  18708. return "delList: string[] expected";
  18709. }
  18710. if (message.changeList != null && message.hasOwnProperty("changeList")) {
  18711. if (!Array.isArray(message.changeList))
  18712. return "changeList: array expected";
  18713. for (let i = 0; i < message.changeList.length; ++i) {
  18714. let error = $root.game.equip.verify(message.changeList[i]);
  18715. if (error)
  18716. return "changeList." + error;
  18717. }
  18718. }
  18719. return null;
  18720. };
  18721. /**
  18722. * Creates an equip_onekey_upgrade_star_rsp message from a plain object. Also converts values to their respective internal types.
  18723. * @function fromObject
  18724. * @memberof game.equip_onekey_upgrade_star_rsp
  18725. * @static
  18726. * @param {Object.<string,*>} object Plain object
  18727. * @returns {game.equip_onekey_upgrade_star_rsp} equip_onekey_upgrade_star_rsp
  18728. */
  18729. equip_onekey_upgrade_star_rsp.fromObject = function fromObject(object) {
  18730. if (object instanceof $root.game.equip_onekey_upgrade_star_rsp)
  18731. return object;
  18732. let message = new $root.game.equip_onekey_upgrade_star_rsp();
  18733. if (object.errno != null)
  18734. if ($util.Long)
  18735. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  18736. else if (typeof object.errno === "string")
  18737. message.errno = parseInt(object.errno, 10);
  18738. else if (typeof object.errno === "number")
  18739. message.errno = object.errno;
  18740. else if (typeof object.errno === "object")
  18741. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  18742. if (object.delList) {
  18743. if (!Array.isArray(object.delList))
  18744. throw TypeError(".game.equip_onekey_upgrade_star_rsp.delList: array expected");
  18745. message.delList = [];
  18746. for (let i = 0; i < object.delList.length; ++i)
  18747. message.delList[i] = String(object.delList[i]);
  18748. }
  18749. if (object.changeList) {
  18750. if (!Array.isArray(object.changeList))
  18751. throw TypeError(".game.equip_onekey_upgrade_star_rsp.changeList: array expected");
  18752. message.changeList = [];
  18753. for (let i = 0; i < object.changeList.length; ++i) {
  18754. if (typeof object.changeList[i] !== "object")
  18755. throw TypeError(".game.equip_onekey_upgrade_star_rsp.changeList: object expected");
  18756. message.changeList[i] = $root.game.equip.fromObject(object.changeList[i]);
  18757. }
  18758. }
  18759. return message;
  18760. };
  18761. /**
  18762. * Creates a plain object from an equip_onekey_upgrade_star_rsp message. Also converts values to other types if specified.
  18763. * @function toObject
  18764. * @memberof game.equip_onekey_upgrade_star_rsp
  18765. * @static
  18766. * @param {game.equip_onekey_upgrade_star_rsp} message equip_onekey_upgrade_star_rsp
  18767. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18768. * @returns {Object.<string,*>} Plain object
  18769. */
  18770. equip_onekey_upgrade_star_rsp.toObject = function toObject(message, options) {
  18771. if (!options)
  18772. options = {};
  18773. let object = {};
  18774. if (options.arrays || options.defaults) {
  18775. object.delList = [];
  18776. object.changeList = [];
  18777. }
  18778. if (options.defaults)
  18779. if ($util.Long) {
  18780. let long = new $util.Long(0, 0, false);
  18781. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  18782. } else
  18783. object.errno = options.longs === String ? "0" : 0;
  18784. if (message.errno != null && message.hasOwnProperty("errno"))
  18785. if (typeof message.errno === "number")
  18786. object.errno = options.longs === String ? String(message.errno) : message.errno;
  18787. else
  18788. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  18789. if (message.delList && message.delList.length) {
  18790. object.delList = [];
  18791. for (let j = 0; j < message.delList.length; ++j)
  18792. object.delList[j] = message.delList[j];
  18793. }
  18794. if (message.changeList && message.changeList.length) {
  18795. object.changeList = [];
  18796. for (let j = 0; j < message.changeList.length; ++j)
  18797. object.changeList[j] = $root.game.equip.toObject(message.changeList[j], options);
  18798. }
  18799. return object;
  18800. };
  18801. /**
  18802. * Converts this equip_onekey_upgrade_star_rsp to JSON.
  18803. * @function toJSON
  18804. * @memberof game.equip_onekey_upgrade_star_rsp
  18805. * @instance
  18806. * @returns {Object.<string,*>} JSON object
  18807. */
  18808. equip_onekey_upgrade_star_rsp.prototype.toJSON = function toJSON() {
  18809. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  18810. };
  18811. return equip_onekey_upgrade_star_rsp;
  18812. })();
  18813. game.equip_reset = (function() {
  18814. /**
  18815. * Properties of an equip_reset.
  18816. * @memberof game
  18817. * @interface Iequip_reset
  18818. * @property {boolean|null} [level] equip_reset level
  18819. * @property {string|null} [sid] equip_reset sid
  18820. */
  18821. /**
  18822. * Constructs a new equip_reset.
  18823. * @memberof game
  18824. * @classdesc Represents an equip_reset.
  18825. * @implements Iequip_reset
  18826. * @constructor
  18827. * @param {game.Iequip_reset=} [properties] Properties to set
  18828. */
  18829. function equip_reset(properties) {
  18830. if (properties)
  18831. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  18832. if (properties[keys[i]] != null)
  18833. this[keys[i]] = properties[keys[i]];
  18834. }
  18835. /**
  18836. * equip_reset level.
  18837. * @member {boolean} level
  18838. * @memberof game.equip_reset
  18839. * @instance
  18840. */
  18841. equip_reset.prototype.level = false;
  18842. /**
  18843. * equip_reset sid.
  18844. * @member {string} sid
  18845. * @memberof game.equip_reset
  18846. * @instance
  18847. */
  18848. equip_reset.prototype.sid = "";
  18849. /**
  18850. * Creates a new equip_reset instance using the specified properties.
  18851. * @function create
  18852. * @memberof game.equip_reset
  18853. * @static
  18854. * @param {game.Iequip_reset=} [properties] Properties to set
  18855. * @returns {game.equip_reset} equip_reset instance
  18856. */
  18857. equip_reset.create = function create(properties) {
  18858. return new equip_reset(properties);
  18859. };
  18860. /**
  18861. * Encodes the specified equip_reset message. Does not implicitly {@link game.equip_reset.verify|verify} messages.
  18862. * @function encode
  18863. * @memberof game.equip_reset
  18864. * @static
  18865. * @param {game.Iequip_reset} message equip_reset message or plain object to encode
  18866. * @param {$protobuf.Writer} [writer] Writer to encode to
  18867. * @returns {$protobuf.Writer} Writer
  18868. */
  18869. equip_reset.encode = function encode(message, writer) {
  18870. if (!writer)
  18871. writer = $Writer.create();
  18872. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  18873. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.level);
  18874. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  18875. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  18876. return writer;
  18877. };
  18878. /**
  18879. * Encodes the specified equip_reset message, length delimited. Does not implicitly {@link game.equip_reset.verify|verify} messages.
  18880. * @function encodeDelimited
  18881. * @memberof game.equip_reset
  18882. * @static
  18883. * @param {game.Iequip_reset} message equip_reset message or plain object to encode
  18884. * @param {$protobuf.Writer} [writer] Writer to encode to
  18885. * @returns {$protobuf.Writer} Writer
  18886. */
  18887. equip_reset.encodeDelimited = function encodeDelimited(message, writer) {
  18888. return this.encode(message, writer).ldelim();
  18889. };
  18890. /**
  18891. * Decodes an equip_reset message from the specified reader or buffer.
  18892. * @function decode
  18893. * @memberof game.equip_reset
  18894. * @static
  18895. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18896. * @param {number} [length] Message length if known beforehand
  18897. * @returns {game.equip_reset} equip_reset
  18898. * @throws {Error} If the payload is not a reader or valid buffer
  18899. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18900. */
  18901. equip_reset.decode = function decode(reader, length) {
  18902. if (!(reader instanceof $Reader))
  18903. reader = $Reader.create(reader);
  18904. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_reset();
  18905. while (reader.pos < end) {
  18906. let tag = reader.uint32();
  18907. switch (tag >>> 3) {
  18908. case 1:
  18909. message.level = reader.bool();
  18910. break;
  18911. case 2:
  18912. message.sid = reader.string();
  18913. break;
  18914. default:
  18915. reader.skipType(tag & 7);
  18916. break;
  18917. }
  18918. }
  18919. return message;
  18920. };
  18921. /**
  18922. * Decodes an equip_reset message from the specified reader or buffer, length delimited.
  18923. * @function decodeDelimited
  18924. * @memberof game.equip_reset
  18925. * @static
  18926. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  18927. * @returns {game.equip_reset} equip_reset
  18928. * @throws {Error} If the payload is not a reader or valid buffer
  18929. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  18930. */
  18931. equip_reset.decodeDelimited = function decodeDelimited(reader) {
  18932. if (!(reader instanceof $Reader))
  18933. reader = new $Reader(reader);
  18934. return this.decode(reader, reader.uint32());
  18935. };
  18936. /**
  18937. * Verifies an equip_reset message.
  18938. * @function verify
  18939. * @memberof game.equip_reset
  18940. * @static
  18941. * @param {Object.<string,*>} message Plain object to verify
  18942. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  18943. */
  18944. equip_reset.verify = function verify(message) {
  18945. if (typeof message !== "object" || message === null)
  18946. return "object expected";
  18947. if (message.level != null && message.hasOwnProperty("level"))
  18948. if (typeof message.level !== "boolean")
  18949. return "level: boolean expected";
  18950. if (message.sid != null && message.hasOwnProperty("sid"))
  18951. if (!$util.isString(message.sid))
  18952. return "sid: string expected";
  18953. return null;
  18954. };
  18955. /**
  18956. * Creates an equip_reset message from a plain object. Also converts values to their respective internal types.
  18957. * @function fromObject
  18958. * @memberof game.equip_reset
  18959. * @static
  18960. * @param {Object.<string,*>} object Plain object
  18961. * @returns {game.equip_reset} equip_reset
  18962. */
  18963. equip_reset.fromObject = function fromObject(object) {
  18964. if (object instanceof $root.game.equip_reset)
  18965. return object;
  18966. let message = new $root.game.equip_reset();
  18967. if (object.level != null)
  18968. message.level = Boolean(object.level);
  18969. if (object.sid != null)
  18970. message.sid = String(object.sid);
  18971. return message;
  18972. };
  18973. /**
  18974. * Creates a plain object from an equip_reset message. Also converts values to other types if specified.
  18975. * @function toObject
  18976. * @memberof game.equip_reset
  18977. * @static
  18978. * @param {game.equip_reset} message equip_reset
  18979. * @param {$protobuf.IConversionOptions} [options] Conversion options
  18980. * @returns {Object.<string,*>} Plain object
  18981. */
  18982. equip_reset.toObject = function toObject(message, options) {
  18983. if (!options)
  18984. options = {};
  18985. let object = {};
  18986. if (options.defaults) {
  18987. object.level = false;
  18988. object.sid = "";
  18989. }
  18990. if (message.level != null && message.hasOwnProperty("level"))
  18991. object.level = message.level;
  18992. if (message.sid != null && message.hasOwnProperty("sid"))
  18993. object.sid = message.sid;
  18994. return object;
  18995. };
  18996. /**
  18997. * Converts this equip_reset to JSON.
  18998. * @function toJSON
  18999. * @memberof game.equip_reset
  19000. * @instance
  19001. * @returns {Object.<string,*>} JSON object
  19002. */
  19003. equip_reset.prototype.toJSON = function toJSON() {
  19004. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19005. };
  19006. return equip_reset;
  19007. })();
  19008. game.equip_reset_rsp = (function() {
  19009. /**
  19010. * Properties of an equip_reset_rsp.
  19011. * @memberof game
  19012. * @interface Iequip_reset_rsp
  19013. * @property {number|Long|null} [errno] equip_reset_rsp errno
  19014. * @property {game.Iequip|null} [data] equip_reset_rsp data
  19015. */
  19016. /**
  19017. * Constructs a new equip_reset_rsp.
  19018. * @memberof game
  19019. * @classdesc Represents an equip_reset_rsp.
  19020. * @implements Iequip_reset_rsp
  19021. * @constructor
  19022. * @param {game.Iequip_reset_rsp=} [properties] Properties to set
  19023. */
  19024. function equip_reset_rsp(properties) {
  19025. if (properties)
  19026. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19027. if (properties[keys[i]] != null)
  19028. this[keys[i]] = properties[keys[i]];
  19029. }
  19030. /**
  19031. * equip_reset_rsp errno.
  19032. * @member {number|Long} errno
  19033. * @memberof game.equip_reset_rsp
  19034. * @instance
  19035. */
  19036. equip_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19037. /**
  19038. * equip_reset_rsp data.
  19039. * @member {game.Iequip|null|undefined} data
  19040. * @memberof game.equip_reset_rsp
  19041. * @instance
  19042. */
  19043. equip_reset_rsp.prototype.data = null;
  19044. /**
  19045. * Creates a new equip_reset_rsp instance using the specified properties.
  19046. * @function create
  19047. * @memberof game.equip_reset_rsp
  19048. * @static
  19049. * @param {game.Iequip_reset_rsp=} [properties] Properties to set
  19050. * @returns {game.equip_reset_rsp} equip_reset_rsp instance
  19051. */
  19052. equip_reset_rsp.create = function create(properties) {
  19053. return new equip_reset_rsp(properties);
  19054. };
  19055. /**
  19056. * Encodes the specified equip_reset_rsp message. Does not implicitly {@link game.equip_reset_rsp.verify|verify} messages.
  19057. * @function encode
  19058. * @memberof game.equip_reset_rsp
  19059. * @static
  19060. * @param {game.Iequip_reset_rsp} message equip_reset_rsp message or plain object to encode
  19061. * @param {$protobuf.Writer} [writer] Writer to encode to
  19062. * @returns {$protobuf.Writer} Writer
  19063. */
  19064. equip_reset_rsp.encode = function encode(message, writer) {
  19065. if (!writer)
  19066. writer = $Writer.create();
  19067. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  19068. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  19069. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  19070. $root.game.equip.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  19071. return writer;
  19072. };
  19073. /**
  19074. * Encodes the specified equip_reset_rsp message, length delimited. Does not implicitly {@link game.equip_reset_rsp.verify|verify} messages.
  19075. * @function encodeDelimited
  19076. * @memberof game.equip_reset_rsp
  19077. * @static
  19078. * @param {game.Iequip_reset_rsp} message equip_reset_rsp message or plain object to encode
  19079. * @param {$protobuf.Writer} [writer] Writer to encode to
  19080. * @returns {$protobuf.Writer} Writer
  19081. */
  19082. equip_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  19083. return this.encode(message, writer).ldelim();
  19084. };
  19085. /**
  19086. * Decodes an equip_reset_rsp message from the specified reader or buffer.
  19087. * @function decode
  19088. * @memberof game.equip_reset_rsp
  19089. * @static
  19090. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19091. * @param {number} [length] Message length if known beforehand
  19092. * @returns {game.equip_reset_rsp} equip_reset_rsp
  19093. * @throws {Error} If the payload is not a reader or valid buffer
  19094. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19095. */
  19096. equip_reset_rsp.decode = function decode(reader, length) {
  19097. if (!(reader instanceof $Reader))
  19098. reader = $Reader.create(reader);
  19099. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_reset_rsp();
  19100. while (reader.pos < end) {
  19101. let tag = reader.uint32();
  19102. switch (tag >>> 3) {
  19103. case 1:
  19104. message.errno = reader.int64();
  19105. break;
  19106. case 2:
  19107. message.data = $root.game.equip.decode(reader, reader.uint32());
  19108. break;
  19109. default:
  19110. reader.skipType(tag & 7);
  19111. break;
  19112. }
  19113. }
  19114. return message;
  19115. };
  19116. /**
  19117. * Decodes an equip_reset_rsp message from the specified reader or buffer, length delimited.
  19118. * @function decodeDelimited
  19119. * @memberof game.equip_reset_rsp
  19120. * @static
  19121. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19122. * @returns {game.equip_reset_rsp} equip_reset_rsp
  19123. * @throws {Error} If the payload is not a reader or valid buffer
  19124. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19125. */
  19126. equip_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
  19127. if (!(reader instanceof $Reader))
  19128. reader = new $Reader(reader);
  19129. return this.decode(reader, reader.uint32());
  19130. };
  19131. /**
  19132. * Verifies an equip_reset_rsp message.
  19133. * @function verify
  19134. * @memberof game.equip_reset_rsp
  19135. * @static
  19136. * @param {Object.<string,*>} message Plain object to verify
  19137. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19138. */
  19139. equip_reset_rsp.verify = function verify(message) {
  19140. if (typeof message !== "object" || message === null)
  19141. return "object expected";
  19142. if (message.errno != null && message.hasOwnProperty("errno"))
  19143. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  19144. return "errno: integer|Long expected";
  19145. if (message.data != null && message.hasOwnProperty("data")) {
  19146. let error = $root.game.equip.verify(message.data);
  19147. if (error)
  19148. return "data." + error;
  19149. }
  19150. return null;
  19151. };
  19152. /**
  19153. * Creates an equip_reset_rsp message from a plain object. Also converts values to their respective internal types.
  19154. * @function fromObject
  19155. * @memberof game.equip_reset_rsp
  19156. * @static
  19157. * @param {Object.<string,*>} object Plain object
  19158. * @returns {game.equip_reset_rsp} equip_reset_rsp
  19159. */
  19160. equip_reset_rsp.fromObject = function fromObject(object) {
  19161. if (object instanceof $root.game.equip_reset_rsp)
  19162. return object;
  19163. let message = new $root.game.equip_reset_rsp();
  19164. if (object.errno != null)
  19165. if ($util.Long)
  19166. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  19167. else if (typeof object.errno === "string")
  19168. message.errno = parseInt(object.errno, 10);
  19169. else if (typeof object.errno === "number")
  19170. message.errno = object.errno;
  19171. else if (typeof object.errno === "object")
  19172. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  19173. if (object.data != null) {
  19174. if (typeof object.data !== "object")
  19175. throw TypeError(".game.equip_reset_rsp.data: object expected");
  19176. message.data = $root.game.equip.fromObject(object.data);
  19177. }
  19178. return message;
  19179. };
  19180. /**
  19181. * Creates a plain object from an equip_reset_rsp message. Also converts values to other types if specified.
  19182. * @function toObject
  19183. * @memberof game.equip_reset_rsp
  19184. * @static
  19185. * @param {game.equip_reset_rsp} message equip_reset_rsp
  19186. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19187. * @returns {Object.<string,*>} Plain object
  19188. */
  19189. equip_reset_rsp.toObject = function toObject(message, options) {
  19190. if (!options)
  19191. options = {};
  19192. let object = {};
  19193. if (options.defaults) {
  19194. if ($util.Long) {
  19195. let long = new $util.Long(0, 0, false);
  19196. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19197. } else
  19198. object.errno = options.longs === String ? "0" : 0;
  19199. object.data = null;
  19200. }
  19201. if (message.errno != null && message.hasOwnProperty("errno"))
  19202. if (typeof message.errno === "number")
  19203. object.errno = options.longs === String ? String(message.errno) : message.errno;
  19204. else
  19205. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  19206. if (message.data != null && message.hasOwnProperty("data"))
  19207. object.data = $root.game.equip.toObject(message.data, options);
  19208. return object;
  19209. };
  19210. /**
  19211. * Converts this equip_reset_rsp to JSON.
  19212. * @function toJSON
  19213. * @memberof game.equip_reset_rsp
  19214. * @instance
  19215. * @returns {Object.<string,*>} JSON object
  19216. */
  19217. equip_reset_rsp.prototype.toJSON = function toJSON() {
  19218. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19219. };
  19220. return equip_reset_rsp;
  19221. })();
  19222. game.equip_change_nty = (function() {
  19223. /**
  19224. * Properties of an equip_change_nty.
  19225. * @memberof game
  19226. * @interface Iequip_change_nty
  19227. * @property {Array.<game.Iequip>|null} [list] equip_change_nty list
  19228. */
  19229. /**
  19230. * Constructs a new equip_change_nty.
  19231. * @memberof game
  19232. * @classdesc Represents an equip_change_nty.
  19233. * @implements Iequip_change_nty
  19234. * @constructor
  19235. * @param {game.Iequip_change_nty=} [properties] Properties to set
  19236. */
  19237. function equip_change_nty(properties) {
  19238. this.list = [];
  19239. if (properties)
  19240. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19241. if (properties[keys[i]] != null)
  19242. this[keys[i]] = properties[keys[i]];
  19243. }
  19244. /**
  19245. * equip_change_nty list.
  19246. * @member {Array.<game.Iequip>} list
  19247. * @memberof game.equip_change_nty
  19248. * @instance
  19249. */
  19250. equip_change_nty.prototype.list = $util.emptyArray;
  19251. /**
  19252. * Creates a new equip_change_nty instance using the specified properties.
  19253. * @function create
  19254. * @memberof game.equip_change_nty
  19255. * @static
  19256. * @param {game.Iequip_change_nty=} [properties] Properties to set
  19257. * @returns {game.equip_change_nty} equip_change_nty instance
  19258. */
  19259. equip_change_nty.create = function create(properties) {
  19260. return new equip_change_nty(properties);
  19261. };
  19262. /**
  19263. * Encodes the specified equip_change_nty message. Does not implicitly {@link game.equip_change_nty.verify|verify} messages.
  19264. * @function encode
  19265. * @memberof game.equip_change_nty
  19266. * @static
  19267. * @param {game.Iequip_change_nty} message equip_change_nty message or plain object to encode
  19268. * @param {$protobuf.Writer} [writer] Writer to encode to
  19269. * @returns {$protobuf.Writer} Writer
  19270. */
  19271. equip_change_nty.encode = function encode(message, writer) {
  19272. if (!writer)
  19273. writer = $Writer.create();
  19274. if (message.list != null && message.list.length)
  19275. for (let i = 0; i < message.list.length; ++i)
  19276. $root.game.equip.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  19277. return writer;
  19278. };
  19279. /**
  19280. * Encodes the specified equip_change_nty message, length delimited. Does not implicitly {@link game.equip_change_nty.verify|verify} messages.
  19281. * @function encodeDelimited
  19282. * @memberof game.equip_change_nty
  19283. * @static
  19284. * @param {game.Iequip_change_nty} message equip_change_nty message or plain object to encode
  19285. * @param {$protobuf.Writer} [writer] Writer to encode to
  19286. * @returns {$protobuf.Writer} Writer
  19287. */
  19288. equip_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
  19289. return this.encode(message, writer).ldelim();
  19290. };
  19291. /**
  19292. * Decodes an equip_change_nty message from the specified reader or buffer.
  19293. * @function decode
  19294. * @memberof game.equip_change_nty
  19295. * @static
  19296. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19297. * @param {number} [length] Message length if known beforehand
  19298. * @returns {game.equip_change_nty} equip_change_nty
  19299. * @throws {Error} If the payload is not a reader or valid buffer
  19300. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19301. */
  19302. equip_change_nty.decode = function decode(reader, length) {
  19303. if (!(reader instanceof $Reader))
  19304. reader = $Reader.create(reader);
  19305. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip_change_nty();
  19306. while (reader.pos < end) {
  19307. let tag = reader.uint32();
  19308. switch (tag >>> 3) {
  19309. case 1:
  19310. if (!(message.list && message.list.length))
  19311. message.list = [];
  19312. message.list.push($root.game.equip.decode(reader, reader.uint32()));
  19313. break;
  19314. default:
  19315. reader.skipType(tag & 7);
  19316. break;
  19317. }
  19318. }
  19319. return message;
  19320. };
  19321. /**
  19322. * Decodes an equip_change_nty message from the specified reader or buffer, length delimited.
  19323. * @function decodeDelimited
  19324. * @memberof game.equip_change_nty
  19325. * @static
  19326. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19327. * @returns {game.equip_change_nty} equip_change_nty
  19328. * @throws {Error} If the payload is not a reader or valid buffer
  19329. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19330. */
  19331. equip_change_nty.decodeDelimited = function decodeDelimited(reader) {
  19332. if (!(reader instanceof $Reader))
  19333. reader = new $Reader(reader);
  19334. return this.decode(reader, reader.uint32());
  19335. };
  19336. /**
  19337. * Verifies an equip_change_nty message.
  19338. * @function verify
  19339. * @memberof game.equip_change_nty
  19340. * @static
  19341. * @param {Object.<string,*>} message Plain object to verify
  19342. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19343. */
  19344. equip_change_nty.verify = function verify(message) {
  19345. if (typeof message !== "object" || message === null)
  19346. return "object expected";
  19347. if (message.list != null && message.hasOwnProperty("list")) {
  19348. if (!Array.isArray(message.list))
  19349. return "list: array expected";
  19350. for (let i = 0; i < message.list.length; ++i) {
  19351. let error = $root.game.equip.verify(message.list[i]);
  19352. if (error)
  19353. return "list." + error;
  19354. }
  19355. }
  19356. return null;
  19357. };
  19358. /**
  19359. * Creates an equip_change_nty message from a plain object. Also converts values to their respective internal types.
  19360. * @function fromObject
  19361. * @memberof game.equip_change_nty
  19362. * @static
  19363. * @param {Object.<string,*>} object Plain object
  19364. * @returns {game.equip_change_nty} equip_change_nty
  19365. */
  19366. equip_change_nty.fromObject = function fromObject(object) {
  19367. if (object instanceof $root.game.equip_change_nty)
  19368. return object;
  19369. let message = new $root.game.equip_change_nty();
  19370. if (object.list) {
  19371. if (!Array.isArray(object.list))
  19372. throw TypeError(".game.equip_change_nty.list: array expected");
  19373. message.list = [];
  19374. for (let i = 0; i < object.list.length; ++i) {
  19375. if (typeof object.list[i] !== "object")
  19376. throw TypeError(".game.equip_change_nty.list: object expected");
  19377. message.list[i] = $root.game.equip.fromObject(object.list[i]);
  19378. }
  19379. }
  19380. return message;
  19381. };
  19382. /**
  19383. * Creates a plain object from an equip_change_nty message. Also converts values to other types if specified.
  19384. * @function toObject
  19385. * @memberof game.equip_change_nty
  19386. * @static
  19387. * @param {game.equip_change_nty} message equip_change_nty
  19388. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19389. * @returns {Object.<string,*>} Plain object
  19390. */
  19391. equip_change_nty.toObject = function toObject(message, options) {
  19392. if (!options)
  19393. options = {};
  19394. let object = {};
  19395. if (options.arrays || options.defaults)
  19396. object.list = [];
  19397. if (message.list && message.list.length) {
  19398. object.list = [];
  19399. for (let j = 0; j < message.list.length; ++j)
  19400. object.list[j] = $root.game.equip.toObject(message.list[j], options);
  19401. }
  19402. return object;
  19403. };
  19404. /**
  19405. * Converts this equip_change_nty to JSON.
  19406. * @function toJSON
  19407. * @memberof game.equip_change_nty
  19408. * @instance
  19409. * @returns {Object.<string,*>} JSON object
  19410. */
  19411. equip_change_nty.prototype.toJSON = function toJSON() {
  19412. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19413. };
  19414. return equip_change_nty;
  19415. })();
  19416. game.talent_get_data = (function() {
  19417. /**
  19418. * Properties of a talent_get_data.
  19419. * @memberof game
  19420. * @interface Italent_get_data
  19421. */
  19422. /**
  19423. * Constructs a new talent_get_data.
  19424. * @memberof game
  19425. * @classdesc Represents a talent_get_data.
  19426. * @implements Italent_get_data
  19427. * @constructor
  19428. * @param {game.Italent_get_data=} [properties] Properties to set
  19429. */
  19430. function talent_get_data(properties) {
  19431. if (properties)
  19432. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19433. if (properties[keys[i]] != null)
  19434. this[keys[i]] = properties[keys[i]];
  19435. }
  19436. /**
  19437. * Creates a new talent_get_data instance using the specified properties.
  19438. * @function create
  19439. * @memberof game.talent_get_data
  19440. * @static
  19441. * @param {game.Italent_get_data=} [properties] Properties to set
  19442. * @returns {game.talent_get_data} talent_get_data instance
  19443. */
  19444. talent_get_data.create = function create(properties) {
  19445. return new talent_get_data(properties);
  19446. };
  19447. /**
  19448. * Encodes the specified talent_get_data message. Does not implicitly {@link game.talent_get_data.verify|verify} messages.
  19449. * @function encode
  19450. * @memberof game.talent_get_data
  19451. * @static
  19452. * @param {game.Italent_get_data} message talent_get_data message or plain object to encode
  19453. * @param {$protobuf.Writer} [writer] Writer to encode to
  19454. * @returns {$protobuf.Writer} Writer
  19455. */
  19456. talent_get_data.encode = function encode(message, writer) {
  19457. if (!writer)
  19458. writer = $Writer.create();
  19459. return writer;
  19460. };
  19461. /**
  19462. * Encodes the specified talent_get_data message, length delimited. Does not implicitly {@link game.talent_get_data.verify|verify} messages.
  19463. * @function encodeDelimited
  19464. * @memberof game.talent_get_data
  19465. * @static
  19466. * @param {game.Italent_get_data} message talent_get_data message or plain object to encode
  19467. * @param {$protobuf.Writer} [writer] Writer to encode to
  19468. * @returns {$protobuf.Writer} Writer
  19469. */
  19470. talent_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  19471. return this.encode(message, writer).ldelim();
  19472. };
  19473. /**
  19474. * Decodes a talent_get_data message from the specified reader or buffer.
  19475. * @function decode
  19476. * @memberof game.talent_get_data
  19477. * @static
  19478. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19479. * @param {number} [length] Message length if known beforehand
  19480. * @returns {game.talent_get_data} talent_get_data
  19481. * @throws {Error} If the payload is not a reader or valid buffer
  19482. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19483. */
  19484. talent_get_data.decode = function decode(reader, length) {
  19485. if (!(reader instanceof $Reader))
  19486. reader = $Reader.create(reader);
  19487. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_get_data();
  19488. while (reader.pos < end) {
  19489. let tag = reader.uint32();
  19490. switch (tag >>> 3) {
  19491. default:
  19492. reader.skipType(tag & 7);
  19493. break;
  19494. }
  19495. }
  19496. return message;
  19497. };
  19498. /**
  19499. * Decodes a talent_get_data message from the specified reader or buffer, length delimited.
  19500. * @function decodeDelimited
  19501. * @memberof game.talent_get_data
  19502. * @static
  19503. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19504. * @returns {game.talent_get_data} talent_get_data
  19505. * @throws {Error} If the payload is not a reader or valid buffer
  19506. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19507. */
  19508. talent_get_data.decodeDelimited = function decodeDelimited(reader) {
  19509. if (!(reader instanceof $Reader))
  19510. reader = new $Reader(reader);
  19511. return this.decode(reader, reader.uint32());
  19512. };
  19513. /**
  19514. * Verifies a talent_get_data message.
  19515. * @function verify
  19516. * @memberof game.talent_get_data
  19517. * @static
  19518. * @param {Object.<string,*>} message Plain object to verify
  19519. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19520. */
  19521. talent_get_data.verify = function verify(message) {
  19522. if (typeof message !== "object" || message === null)
  19523. return "object expected";
  19524. return null;
  19525. };
  19526. /**
  19527. * Creates a talent_get_data message from a plain object. Also converts values to their respective internal types.
  19528. * @function fromObject
  19529. * @memberof game.talent_get_data
  19530. * @static
  19531. * @param {Object.<string,*>} object Plain object
  19532. * @returns {game.talent_get_data} talent_get_data
  19533. */
  19534. talent_get_data.fromObject = function fromObject(object) {
  19535. if (object instanceof $root.game.talent_get_data)
  19536. return object;
  19537. return new $root.game.talent_get_data();
  19538. };
  19539. /**
  19540. * Creates a plain object from a talent_get_data message. Also converts values to other types if specified.
  19541. * @function toObject
  19542. * @memberof game.talent_get_data
  19543. * @static
  19544. * @param {game.talent_get_data} message talent_get_data
  19545. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19546. * @returns {Object.<string,*>} Plain object
  19547. */
  19548. talent_get_data.toObject = function toObject() {
  19549. return {};
  19550. };
  19551. /**
  19552. * Converts this talent_get_data to JSON.
  19553. * @function toJSON
  19554. * @memberof game.talent_get_data
  19555. * @instance
  19556. * @returns {Object.<string,*>} JSON object
  19557. */
  19558. talent_get_data.prototype.toJSON = function toJSON() {
  19559. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19560. };
  19561. return talent_get_data;
  19562. })();
  19563. game.talent_get_data_rsp = (function() {
  19564. /**
  19565. * Properties of a talent_get_data_rsp.
  19566. * @memberof game
  19567. * @interface Italent_get_data_rsp
  19568. * @property {number|Long|null} [errno] talent_get_data_rsp errno
  19569. * @property {number|Long|null} [id1] talent_get_data_rsp id1
  19570. * @property {number|Long|null} [id2] talent_get_data_rsp id2
  19571. */
  19572. /**
  19573. * Constructs a new talent_get_data_rsp.
  19574. * @memberof game
  19575. * @classdesc Represents a talent_get_data_rsp.
  19576. * @implements Italent_get_data_rsp
  19577. * @constructor
  19578. * @param {game.Italent_get_data_rsp=} [properties] Properties to set
  19579. */
  19580. function talent_get_data_rsp(properties) {
  19581. if (properties)
  19582. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19583. if (properties[keys[i]] != null)
  19584. this[keys[i]] = properties[keys[i]];
  19585. }
  19586. /**
  19587. * talent_get_data_rsp errno.
  19588. * @member {number|Long} errno
  19589. * @memberof game.talent_get_data_rsp
  19590. * @instance
  19591. */
  19592. talent_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19593. /**
  19594. * talent_get_data_rsp id1.
  19595. * @member {number|Long} id1
  19596. * @memberof game.talent_get_data_rsp
  19597. * @instance
  19598. */
  19599. talent_get_data_rsp.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19600. /**
  19601. * talent_get_data_rsp id2.
  19602. * @member {number|Long} id2
  19603. * @memberof game.talent_get_data_rsp
  19604. * @instance
  19605. */
  19606. talent_get_data_rsp.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19607. /**
  19608. * Creates a new talent_get_data_rsp instance using the specified properties.
  19609. * @function create
  19610. * @memberof game.talent_get_data_rsp
  19611. * @static
  19612. * @param {game.Italent_get_data_rsp=} [properties] Properties to set
  19613. * @returns {game.talent_get_data_rsp} talent_get_data_rsp instance
  19614. */
  19615. talent_get_data_rsp.create = function create(properties) {
  19616. return new talent_get_data_rsp(properties);
  19617. };
  19618. /**
  19619. * Encodes the specified talent_get_data_rsp message. Does not implicitly {@link game.talent_get_data_rsp.verify|verify} messages.
  19620. * @function encode
  19621. * @memberof game.talent_get_data_rsp
  19622. * @static
  19623. * @param {game.Italent_get_data_rsp} message talent_get_data_rsp message or plain object to encode
  19624. * @param {$protobuf.Writer} [writer] Writer to encode to
  19625. * @returns {$protobuf.Writer} Writer
  19626. */
  19627. talent_get_data_rsp.encode = function encode(message, writer) {
  19628. if (!writer)
  19629. writer = $Writer.create();
  19630. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  19631. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  19632. if (message.id1 != null && Object.hasOwnProperty.call(message, "id1"))
  19633. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id1);
  19634. if (message.id2 != null && Object.hasOwnProperty.call(message, "id2"))
  19635. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.id2);
  19636. return writer;
  19637. };
  19638. /**
  19639. * Encodes the specified talent_get_data_rsp message, length delimited. Does not implicitly {@link game.talent_get_data_rsp.verify|verify} messages.
  19640. * @function encodeDelimited
  19641. * @memberof game.talent_get_data_rsp
  19642. * @static
  19643. * @param {game.Italent_get_data_rsp} message talent_get_data_rsp message or plain object to encode
  19644. * @param {$protobuf.Writer} [writer] Writer to encode to
  19645. * @returns {$protobuf.Writer} Writer
  19646. */
  19647. talent_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  19648. return this.encode(message, writer).ldelim();
  19649. };
  19650. /**
  19651. * Decodes a talent_get_data_rsp message from the specified reader or buffer.
  19652. * @function decode
  19653. * @memberof game.talent_get_data_rsp
  19654. * @static
  19655. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19656. * @param {number} [length] Message length if known beforehand
  19657. * @returns {game.talent_get_data_rsp} talent_get_data_rsp
  19658. * @throws {Error} If the payload is not a reader or valid buffer
  19659. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19660. */
  19661. talent_get_data_rsp.decode = function decode(reader, length) {
  19662. if (!(reader instanceof $Reader))
  19663. reader = $Reader.create(reader);
  19664. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_get_data_rsp();
  19665. while (reader.pos < end) {
  19666. let tag = reader.uint32();
  19667. switch (tag >>> 3) {
  19668. case 1:
  19669. message.errno = reader.int64();
  19670. break;
  19671. case 2:
  19672. message.id1 = reader.int64();
  19673. break;
  19674. case 3:
  19675. message.id2 = reader.int64();
  19676. break;
  19677. default:
  19678. reader.skipType(tag & 7);
  19679. break;
  19680. }
  19681. }
  19682. return message;
  19683. };
  19684. /**
  19685. * Decodes a talent_get_data_rsp message from the specified reader or buffer, length delimited.
  19686. * @function decodeDelimited
  19687. * @memberof game.talent_get_data_rsp
  19688. * @static
  19689. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19690. * @returns {game.talent_get_data_rsp} talent_get_data_rsp
  19691. * @throws {Error} If the payload is not a reader or valid buffer
  19692. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19693. */
  19694. talent_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  19695. if (!(reader instanceof $Reader))
  19696. reader = new $Reader(reader);
  19697. return this.decode(reader, reader.uint32());
  19698. };
  19699. /**
  19700. * Verifies a talent_get_data_rsp message.
  19701. * @function verify
  19702. * @memberof game.talent_get_data_rsp
  19703. * @static
  19704. * @param {Object.<string,*>} message Plain object to verify
  19705. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19706. */
  19707. talent_get_data_rsp.verify = function verify(message) {
  19708. if (typeof message !== "object" || message === null)
  19709. return "object expected";
  19710. if (message.errno != null && message.hasOwnProperty("errno"))
  19711. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  19712. return "errno: integer|Long expected";
  19713. if (message.id1 != null && message.hasOwnProperty("id1"))
  19714. if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)))
  19715. return "id1: integer|Long expected";
  19716. if (message.id2 != null && message.hasOwnProperty("id2"))
  19717. if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)))
  19718. return "id2: integer|Long expected";
  19719. return null;
  19720. };
  19721. /**
  19722. * Creates a talent_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  19723. * @function fromObject
  19724. * @memberof game.talent_get_data_rsp
  19725. * @static
  19726. * @param {Object.<string,*>} object Plain object
  19727. * @returns {game.talent_get_data_rsp} talent_get_data_rsp
  19728. */
  19729. talent_get_data_rsp.fromObject = function fromObject(object) {
  19730. if (object instanceof $root.game.talent_get_data_rsp)
  19731. return object;
  19732. let message = new $root.game.talent_get_data_rsp();
  19733. if (object.errno != null)
  19734. if ($util.Long)
  19735. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  19736. else if (typeof object.errno === "string")
  19737. message.errno = parseInt(object.errno, 10);
  19738. else if (typeof object.errno === "number")
  19739. message.errno = object.errno;
  19740. else if (typeof object.errno === "object")
  19741. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  19742. if (object.id1 != null)
  19743. if ($util.Long)
  19744. (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false;
  19745. else if (typeof object.id1 === "string")
  19746. message.id1 = parseInt(object.id1, 10);
  19747. else if (typeof object.id1 === "number")
  19748. message.id1 = object.id1;
  19749. else if (typeof object.id1 === "object")
  19750. message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber();
  19751. if (object.id2 != null)
  19752. if ($util.Long)
  19753. (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false;
  19754. else if (typeof object.id2 === "string")
  19755. message.id2 = parseInt(object.id2, 10);
  19756. else if (typeof object.id2 === "number")
  19757. message.id2 = object.id2;
  19758. else if (typeof object.id2 === "object")
  19759. message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber();
  19760. return message;
  19761. };
  19762. /**
  19763. * Creates a plain object from a talent_get_data_rsp message. Also converts values to other types if specified.
  19764. * @function toObject
  19765. * @memberof game.talent_get_data_rsp
  19766. * @static
  19767. * @param {game.talent_get_data_rsp} message talent_get_data_rsp
  19768. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19769. * @returns {Object.<string,*>} Plain object
  19770. */
  19771. talent_get_data_rsp.toObject = function toObject(message, options) {
  19772. if (!options)
  19773. options = {};
  19774. let object = {};
  19775. if (options.defaults) {
  19776. if ($util.Long) {
  19777. let long = new $util.Long(0, 0, false);
  19778. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19779. } else
  19780. object.errno = options.longs === String ? "0" : 0;
  19781. if ($util.Long) {
  19782. let long = new $util.Long(0, 0, false);
  19783. object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19784. } else
  19785. object.id1 = options.longs === String ? "0" : 0;
  19786. if ($util.Long) {
  19787. let long = new $util.Long(0, 0, false);
  19788. object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19789. } else
  19790. object.id2 = options.longs === String ? "0" : 0;
  19791. }
  19792. if (message.errno != null && message.hasOwnProperty("errno"))
  19793. if (typeof message.errno === "number")
  19794. object.errno = options.longs === String ? String(message.errno) : message.errno;
  19795. else
  19796. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  19797. if (message.id1 != null && message.hasOwnProperty("id1"))
  19798. if (typeof message.id1 === "number")
  19799. object.id1 = options.longs === String ? String(message.id1) : message.id1;
  19800. else
  19801. object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1;
  19802. if (message.id2 != null && message.hasOwnProperty("id2"))
  19803. if (typeof message.id2 === "number")
  19804. object.id2 = options.longs === String ? String(message.id2) : message.id2;
  19805. else
  19806. object.id2 = options.longs === String ? $util.Long.prototype.toString.call(message.id2) : options.longs === Number ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() : message.id2;
  19807. return object;
  19808. };
  19809. /**
  19810. * Converts this talent_get_data_rsp to JSON.
  19811. * @function toJSON
  19812. * @memberof game.talent_get_data_rsp
  19813. * @instance
  19814. * @returns {Object.<string,*>} JSON object
  19815. */
  19816. talent_get_data_rsp.prototype.toJSON = function toJSON() {
  19817. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  19818. };
  19819. return talent_get_data_rsp;
  19820. })();
  19821. game.talent_activate = (function() {
  19822. /**
  19823. * Properties of a talent_activate.
  19824. * @memberof game
  19825. * @interface Italent_activate
  19826. * @property {number|Long|null} [id] talent_activate id
  19827. */
  19828. /**
  19829. * Constructs a new talent_activate.
  19830. * @memberof game
  19831. * @classdesc Represents a talent_activate.
  19832. * @implements Italent_activate
  19833. * @constructor
  19834. * @param {game.Italent_activate=} [properties] Properties to set
  19835. */
  19836. function talent_activate(properties) {
  19837. if (properties)
  19838. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  19839. if (properties[keys[i]] != null)
  19840. this[keys[i]] = properties[keys[i]];
  19841. }
  19842. /**
  19843. * talent_activate id.
  19844. * @member {number|Long} id
  19845. * @memberof game.talent_activate
  19846. * @instance
  19847. */
  19848. talent_activate.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  19849. /**
  19850. * Creates a new talent_activate instance using the specified properties.
  19851. * @function create
  19852. * @memberof game.talent_activate
  19853. * @static
  19854. * @param {game.Italent_activate=} [properties] Properties to set
  19855. * @returns {game.talent_activate} talent_activate instance
  19856. */
  19857. talent_activate.create = function create(properties) {
  19858. return new talent_activate(properties);
  19859. };
  19860. /**
  19861. * Encodes the specified talent_activate message. Does not implicitly {@link game.talent_activate.verify|verify} messages.
  19862. * @function encode
  19863. * @memberof game.talent_activate
  19864. * @static
  19865. * @param {game.Italent_activate} message talent_activate message or plain object to encode
  19866. * @param {$protobuf.Writer} [writer] Writer to encode to
  19867. * @returns {$protobuf.Writer} Writer
  19868. */
  19869. talent_activate.encode = function encode(message, writer) {
  19870. if (!writer)
  19871. writer = $Writer.create();
  19872. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  19873. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  19874. return writer;
  19875. };
  19876. /**
  19877. * Encodes the specified talent_activate message, length delimited. Does not implicitly {@link game.talent_activate.verify|verify} messages.
  19878. * @function encodeDelimited
  19879. * @memberof game.talent_activate
  19880. * @static
  19881. * @param {game.Italent_activate} message talent_activate message or plain object to encode
  19882. * @param {$protobuf.Writer} [writer] Writer to encode to
  19883. * @returns {$protobuf.Writer} Writer
  19884. */
  19885. talent_activate.encodeDelimited = function encodeDelimited(message, writer) {
  19886. return this.encode(message, writer).ldelim();
  19887. };
  19888. /**
  19889. * Decodes a talent_activate message from the specified reader or buffer.
  19890. * @function decode
  19891. * @memberof game.talent_activate
  19892. * @static
  19893. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19894. * @param {number} [length] Message length if known beforehand
  19895. * @returns {game.talent_activate} talent_activate
  19896. * @throws {Error} If the payload is not a reader or valid buffer
  19897. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19898. */
  19899. talent_activate.decode = function decode(reader, length) {
  19900. if (!(reader instanceof $Reader))
  19901. reader = $Reader.create(reader);
  19902. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_activate();
  19903. while (reader.pos < end) {
  19904. let tag = reader.uint32();
  19905. switch (tag >>> 3) {
  19906. case 1:
  19907. message.id = reader.int64();
  19908. break;
  19909. default:
  19910. reader.skipType(tag & 7);
  19911. break;
  19912. }
  19913. }
  19914. return message;
  19915. };
  19916. /**
  19917. * Decodes a talent_activate message from the specified reader or buffer, length delimited.
  19918. * @function decodeDelimited
  19919. * @memberof game.talent_activate
  19920. * @static
  19921. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  19922. * @returns {game.talent_activate} talent_activate
  19923. * @throws {Error} If the payload is not a reader or valid buffer
  19924. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  19925. */
  19926. talent_activate.decodeDelimited = function decodeDelimited(reader) {
  19927. if (!(reader instanceof $Reader))
  19928. reader = new $Reader(reader);
  19929. return this.decode(reader, reader.uint32());
  19930. };
  19931. /**
  19932. * Verifies a talent_activate message.
  19933. * @function verify
  19934. * @memberof game.talent_activate
  19935. * @static
  19936. * @param {Object.<string,*>} message Plain object to verify
  19937. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  19938. */
  19939. talent_activate.verify = function verify(message) {
  19940. if (typeof message !== "object" || message === null)
  19941. return "object expected";
  19942. if (message.id != null && message.hasOwnProperty("id"))
  19943. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  19944. return "id: integer|Long expected";
  19945. return null;
  19946. };
  19947. /**
  19948. * Creates a talent_activate message from a plain object. Also converts values to their respective internal types.
  19949. * @function fromObject
  19950. * @memberof game.talent_activate
  19951. * @static
  19952. * @param {Object.<string,*>} object Plain object
  19953. * @returns {game.talent_activate} talent_activate
  19954. */
  19955. talent_activate.fromObject = function fromObject(object) {
  19956. if (object instanceof $root.game.talent_activate)
  19957. return object;
  19958. let message = new $root.game.talent_activate();
  19959. if (object.id != null)
  19960. if ($util.Long)
  19961. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  19962. else if (typeof object.id === "string")
  19963. message.id = parseInt(object.id, 10);
  19964. else if (typeof object.id === "number")
  19965. message.id = object.id;
  19966. else if (typeof object.id === "object")
  19967. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  19968. return message;
  19969. };
  19970. /**
  19971. * Creates a plain object from a talent_activate message. Also converts values to other types if specified.
  19972. * @function toObject
  19973. * @memberof game.talent_activate
  19974. * @static
  19975. * @param {game.talent_activate} message talent_activate
  19976. * @param {$protobuf.IConversionOptions} [options] Conversion options
  19977. * @returns {Object.<string,*>} Plain object
  19978. */
  19979. talent_activate.toObject = function toObject(message, options) {
  19980. if (!options)
  19981. options = {};
  19982. let object = {};
  19983. if (options.defaults)
  19984. if ($util.Long) {
  19985. let long = new $util.Long(0, 0, false);
  19986. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  19987. } else
  19988. object.id = options.longs === String ? "0" : 0;
  19989. if (message.id != null && message.hasOwnProperty("id"))
  19990. if (typeof message.id === "number")
  19991. object.id = options.longs === String ? String(message.id) : message.id;
  19992. else
  19993. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  19994. return object;
  19995. };
  19996. /**
  19997. * Converts this talent_activate to JSON.
  19998. * @function toJSON
  19999. * @memberof game.talent_activate
  20000. * @instance
  20001. * @returns {Object.<string,*>} JSON object
  20002. */
  20003. talent_activate.prototype.toJSON = function toJSON() {
  20004. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20005. };
  20006. return talent_activate;
  20007. })();
  20008. game.talent_activate_rsp = (function() {
  20009. /**
  20010. * Properties of a talent_activate_rsp.
  20011. * @memberof game
  20012. * @interface Italent_activate_rsp
  20013. * @property {number|Long|null} [errno] talent_activate_rsp errno
  20014. * @property {number|Long|null} [id] talent_activate_rsp id
  20015. */
  20016. /**
  20017. * Constructs a new talent_activate_rsp.
  20018. * @memberof game
  20019. * @classdesc Represents a talent_activate_rsp.
  20020. * @implements Italent_activate_rsp
  20021. * @constructor
  20022. * @param {game.Italent_activate_rsp=} [properties] Properties to set
  20023. */
  20024. function talent_activate_rsp(properties) {
  20025. if (properties)
  20026. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20027. if (properties[keys[i]] != null)
  20028. this[keys[i]] = properties[keys[i]];
  20029. }
  20030. /**
  20031. * talent_activate_rsp errno.
  20032. * @member {number|Long} errno
  20033. * @memberof game.talent_activate_rsp
  20034. * @instance
  20035. */
  20036. talent_activate_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20037. /**
  20038. * talent_activate_rsp id.
  20039. * @member {number|Long} id
  20040. * @memberof game.talent_activate_rsp
  20041. * @instance
  20042. */
  20043. talent_activate_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20044. /**
  20045. * Creates a new talent_activate_rsp instance using the specified properties.
  20046. * @function create
  20047. * @memberof game.talent_activate_rsp
  20048. * @static
  20049. * @param {game.Italent_activate_rsp=} [properties] Properties to set
  20050. * @returns {game.talent_activate_rsp} talent_activate_rsp instance
  20051. */
  20052. talent_activate_rsp.create = function create(properties) {
  20053. return new talent_activate_rsp(properties);
  20054. };
  20055. /**
  20056. * Encodes the specified talent_activate_rsp message. Does not implicitly {@link game.talent_activate_rsp.verify|verify} messages.
  20057. * @function encode
  20058. * @memberof game.talent_activate_rsp
  20059. * @static
  20060. * @param {game.Italent_activate_rsp} message talent_activate_rsp message or plain object to encode
  20061. * @param {$protobuf.Writer} [writer] Writer to encode to
  20062. * @returns {$protobuf.Writer} Writer
  20063. */
  20064. talent_activate_rsp.encode = function encode(message, writer) {
  20065. if (!writer)
  20066. writer = $Writer.create();
  20067. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  20068. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  20069. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  20070. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  20071. return writer;
  20072. };
  20073. /**
  20074. * Encodes the specified talent_activate_rsp message, length delimited. Does not implicitly {@link game.talent_activate_rsp.verify|verify} messages.
  20075. * @function encodeDelimited
  20076. * @memberof game.talent_activate_rsp
  20077. * @static
  20078. * @param {game.Italent_activate_rsp} message talent_activate_rsp message or plain object to encode
  20079. * @param {$protobuf.Writer} [writer] Writer to encode to
  20080. * @returns {$protobuf.Writer} Writer
  20081. */
  20082. talent_activate_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  20083. return this.encode(message, writer).ldelim();
  20084. };
  20085. /**
  20086. * Decodes a talent_activate_rsp message from the specified reader or buffer.
  20087. * @function decode
  20088. * @memberof game.talent_activate_rsp
  20089. * @static
  20090. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20091. * @param {number} [length] Message length if known beforehand
  20092. * @returns {game.talent_activate_rsp} talent_activate_rsp
  20093. * @throws {Error} If the payload is not a reader or valid buffer
  20094. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20095. */
  20096. talent_activate_rsp.decode = function decode(reader, length) {
  20097. if (!(reader instanceof $Reader))
  20098. reader = $Reader.create(reader);
  20099. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.talent_activate_rsp();
  20100. while (reader.pos < end) {
  20101. let tag = reader.uint32();
  20102. switch (tag >>> 3) {
  20103. case 1:
  20104. message.errno = reader.int64();
  20105. break;
  20106. case 2:
  20107. message.id = reader.int64();
  20108. break;
  20109. default:
  20110. reader.skipType(tag & 7);
  20111. break;
  20112. }
  20113. }
  20114. return message;
  20115. };
  20116. /**
  20117. * Decodes a talent_activate_rsp message from the specified reader or buffer, length delimited.
  20118. * @function decodeDelimited
  20119. * @memberof game.talent_activate_rsp
  20120. * @static
  20121. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20122. * @returns {game.talent_activate_rsp} talent_activate_rsp
  20123. * @throws {Error} If the payload is not a reader or valid buffer
  20124. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20125. */
  20126. talent_activate_rsp.decodeDelimited = function decodeDelimited(reader) {
  20127. if (!(reader instanceof $Reader))
  20128. reader = new $Reader(reader);
  20129. return this.decode(reader, reader.uint32());
  20130. };
  20131. /**
  20132. * Verifies a talent_activate_rsp message.
  20133. * @function verify
  20134. * @memberof game.talent_activate_rsp
  20135. * @static
  20136. * @param {Object.<string,*>} message Plain object to verify
  20137. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20138. */
  20139. talent_activate_rsp.verify = function verify(message) {
  20140. if (typeof message !== "object" || message === null)
  20141. return "object expected";
  20142. if (message.errno != null && message.hasOwnProperty("errno"))
  20143. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  20144. return "errno: integer|Long expected";
  20145. if (message.id != null && message.hasOwnProperty("id"))
  20146. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  20147. return "id: integer|Long expected";
  20148. return null;
  20149. };
  20150. /**
  20151. * Creates a talent_activate_rsp message from a plain object. Also converts values to their respective internal types.
  20152. * @function fromObject
  20153. * @memberof game.talent_activate_rsp
  20154. * @static
  20155. * @param {Object.<string,*>} object Plain object
  20156. * @returns {game.talent_activate_rsp} talent_activate_rsp
  20157. */
  20158. talent_activate_rsp.fromObject = function fromObject(object) {
  20159. if (object instanceof $root.game.talent_activate_rsp)
  20160. return object;
  20161. let message = new $root.game.talent_activate_rsp();
  20162. if (object.errno != null)
  20163. if ($util.Long)
  20164. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  20165. else if (typeof object.errno === "string")
  20166. message.errno = parseInt(object.errno, 10);
  20167. else if (typeof object.errno === "number")
  20168. message.errno = object.errno;
  20169. else if (typeof object.errno === "object")
  20170. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  20171. if (object.id != null)
  20172. if ($util.Long)
  20173. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  20174. else if (typeof object.id === "string")
  20175. message.id = parseInt(object.id, 10);
  20176. else if (typeof object.id === "number")
  20177. message.id = object.id;
  20178. else if (typeof object.id === "object")
  20179. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  20180. return message;
  20181. };
  20182. /**
  20183. * Creates a plain object from a talent_activate_rsp message. Also converts values to other types if specified.
  20184. * @function toObject
  20185. * @memberof game.talent_activate_rsp
  20186. * @static
  20187. * @param {game.talent_activate_rsp} message talent_activate_rsp
  20188. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20189. * @returns {Object.<string,*>} Plain object
  20190. */
  20191. talent_activate_rsp.toObject = function toObject(message, options) {
  20192. if (!options)
  20193. options = {};
  20194. let object = {};
  20195. if (options.defaults) {
  20196. if ($util.Long) {
  20197. let long = new $util.Long(0, 0, false);
  20198. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20199. } else
  20200. object.errno = options.longs === String ? "0" : 0;
  20201. if ($util.Long) {
  20202. let long = new $util.Long(0, 0, false);
  20203. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20204. } else
  20205. object.id = options.longs === String ? "0" : 0;
  20206. }
  20207. if (message.errno != null && message.hasOwnProperty("errno"))
  20208. if (typeof message.errno === "number")
  20209. object.errno = options.longs === String ? String(message.errno) : message.errno;
  20210. else
  20211. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  20212. if (message.id != null && message.hasOwnProperty("id"))
  20213. if (typeof message.id === "number")
  20214. object.id = options.longs === String ? String(message.id) : message.id;
  20215. else
  20216. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  20217. return object;
  20218. };
  20219. /**
  20220. * Converts this talent_activate_rsp to JSON.
  20221. * @function toJSON
  20222. * @memberof game.talent_activate_rsp
  20223. * @instance
  20224. * @returns {Object.<string,*>} JSON object
  20225. */
  20226. talent_activate_rsp.prototype.toJSON = function toJSON() {
  20227. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20228. };
  20229. return talent_activate_rsp;
  20230. })();
  20231. game.sign_in_get_data = (function() {
  20232. /**
  20233. * Properties of a sign_in_get_data.
  20234. * @memberof game
  20235. * @interface Isign_in_get_data
  20236. */
  20237. /**
  20238. * Constructs a new sign_in_get_data.
  20239. * @memberof game
  20240. * @classdesc Represents a sign_in_get_data.
  20241. * @implements Isign_in_get_data
  20242. * @constructor
  20243. * @param {game.Isign_in_get_data=} [properties] Properties to set
  20244. */
  20245. function sign_in_get_data(properties) {
  20246. if (properties)
  20247. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20248. if (properties[keys[i]] != null)
  20249. this[keys[i]] = properties[keys[i]];
  20250. }
  20251. /**
  20252. * Creates a new sign_in_get_data instance using the specified properties.
  20253. * @function create
  20254. * @memberof game.sign_in_get_data
  20255. * @static
  20256. * @param {game.Isign_in_get_data=} [properties] Properties to set
  20257. * @returns {game.sign_in_get_data} sign_in_get_data instance
  20258. */
  20259. sign_in_get_data.create = function create(properties) {
  20260. return new sign_in_get_data(properties);
  20261. };
  20262. /**
  20263. * Encodes the specified sign_in_get_data message. Does not implicitly {@link game.sign_in_get_data.verify|verify} messages.
  20264. * @function encode
  20265. * @memberof game.sign_in_get_data
  20266. * @static
  20267. * @param {game.Isign_in_get_data} message sign_in_get_data message or plain object to encode
  20268. * @param {$protobuf.Writer} [writer] Writer to encode to
  20269. * @returns {$protobuf.Writer} Writer
  20270. */
  20271. sign_in_get_data.encode = function encode(message, writer) {
  20272. if (!writer)
  20273. writer = $Writer.create();
  20274. return writer;
  20275. };
  20276. /**
  20277. * Encodes the specified sign_in_get_data message, length delimited. Does not implicitly {@link game.sign_in_get_data.verify|verify} messages.
  20278. * @function encodeDelimited
  20279. * @memberof game.sign_in_get_data
  20280. * @static
  20281. * @param {game.Isign_in_get_data} message sign_in_get_data message or plain object to encode
  20282. * @param {$protobuf.Writer} [writer] Writer to encode to
  20283. * @returns {$protobuf.Writer} Writer
  20284. */
  20285. sign_in_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  20286. return this.encode(message, writer).ldelim();
  20287. };
  20288. /**
  20289. * Decodes a sign_in_get_data message from the specified reader or buffer.
  20290. * @function decode
  20291. * @memberof game.sign_in_get_data
  20292. * @static
  20293. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20294. * @param {number} [length] Message length if known beforehand
  20295. * @returns {game.sign_in_get_data} sign_in_get_data
  20296. * @throws {Error} If the payload is not a reader or valid buffer
  20297. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20298. */
  20299. sign_in_get_data.decode = function decode(reader, length) {
  20300. if (!(reader instanceof $Reader))
  20301. reader = $Reader.create(reader);
  20302. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_get_data();
  20303. while (reader.pos < end) {
  20304. let tag = reader.uint32();
  20305. switch (tag >>> 3) {
  20306. default:
  20307. reader.skipType(tag & 7);
  20308. break;
  20309. }
  20310. }
  20311. return message;
  20312. };
  20313. /**
  20314. * Decodes a sign_in_get_data message from the specified reader or buffer, length delimited.
  20315. * @function decodeDelimited
  20316. * @memberof game.sign_in_get_data
  20317. * @static
  20318. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20319. * @returns {game.sign_in_get_data} sign_in_get_data
  20320. * @throws {Error} If the payload is not a reader or valid buffer
  20321. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20322. */
  20323. sign_in_get_data.decodeDelimited = function decodeDelimited(reader) {
  20324. if (!(reader instanceof $Reader))
  20325. reader = new $Reader(reader);
  20326. return this.decode(reader, reader.uint32());
  20327. };
  20328. /**
  20329. * Verifies a sign_in_get_data message.
  20330. * @function verify
  20331. * @memberof game.sign_in_get_data
  20332. * @static
  20333. * @param {Object.<string,*>} message Plain object to verify
  20334. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20335. */
  20336. sign_in_get_data.verify = function verify(message) {
  20337. if (typeof message !== "object" || message === null)
  20338. return "object expected";
  20339. return null;
  20340. };
  20341. /**
  20342. * Creates a sign_in_get_data message from a plain object. Also converts values to their respective internal types.
  20343. * @function fromObject
  20344. * @memberof game.sign_in_get_data
  20345. * @static
  20346. * @param {Object.<string,*>} object Plain object
  20347. * @returns {game.sign_in_get_data} sign_in_get_data
  20348. */
  20349. sign_in_get_data.fromObject = function fromObject(object) {
  20350. if (object instanceof $root.game.sign_in_get_data)
  20351. return object;
  20352. return new $root.game.sign_in_get_data();
  20353. };
  20354. /**
  20355. * Creates a plain object from a sign_in_get_data message. Also converts values to other types if specified.
  20356. * @function toObject
  20357. * @memberof game.sign_in_get_data
  20358. * @static
  20359. * @param {game.sign_in_get_data} message sign_in_get_data
  20360. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20361. * @returns {Object.<string,*>} Plain object
  20362. */
  20363. sign_in_get_data.toObject = function toObject() {
  20364. return {};
  20365. };
  20366. /**
  20367. * Converts this sign_in_get_data to JSON.
  20368. * @function toJSON
  20369. * @memberof game.sign_in_get_data
  20370. * @instance
  20371. * @returns {Object.<string,*>} JSON object
  20372. */
  20373. sign_in_get_data.prototype.toJSON = function toJSON() {
  20374. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20375. };
  20376. return sign_in_get_data;
  20377. })();
  20378. game.sign_in_get_data_rsp = (function() {
  20379. /**
  20380. * Properties of a sign_in_get_data_rsp.
  20381. * @memberof game
  20382. * @interface Isign_in_get_data_rsp
  20383. * @property {number|Long|null} [errno] sign_in_get_data_rsp errno
  20384. */
  20385. /**
  20386. * Constructs a new sign_in_get_data_rsp.
  20387. * @memberof game
  20388. * @classdesc Represents a sign_in_get_data_rsp.
  20389. * @implements Isign_in_get_data_rsp
  20390. * @constructor
  20391. * @param {game.Isign_in_get_data_rsp=} [properties] Properties to set
  20392. */
  20393. function sign_in_get_data_rsp(properties) {
  20394. if (properties)
  20395. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20396. if (properties[keys[i]] != null)
  20397. this[keys[i]] = properties[keys[i]];
  20398. }
  20399. /**
  20400. * sign_in_get_data_rsp errno.
  20401. * @member {number|Long} errno
  20402. * @memberof game.sign_in_get_data_rsp
  20403. * @instance
  20404. */
  20405. sign_in_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20406. /**
  20407. * Creates a new sign_in_get_data_rsp instance using the specified properties.
  20408. * @function create
  20409. * @memberof game.sign_in_get_data_rsp
  20410. * @static
  20411. * @param {game.Isign_in_get_data_rsp=} [properties] Properties to set
  20412. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp instance
  20413. */
  20414. sign_in_get_data_rsp.create = function create(properties) {
  20415. return new sign_in_get_data_rsp(properties);
  20416. };
  20417. /**
  20418. * Encodes the specified sign_in_get_data_rsp message. Does not implicitly {@link game.sign_in_get_data_rsp.verify|verify} messages.
  20419. * @function encode
  20420. * @memberof game.sign_in_get_data_rsp
  20421. * @static
  20422. * @param {game.Isign_in_get_data_rsp} message sign_in_get_data_rsp message or plain object to encode
  20423. * @param {$protobuf.Writer} [writer] Writer to encode to
  20424. * @returns {$protobuf.Writer} Writer
  20425. */
  20426. sign_in_get_data_rsp.encode = function encode(message, writer) {
  20427. if (!writer)
  20428. writer = $Writer.create();
  20429. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  20430. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  20431. return writer;
  20432. };
  20433. /**
  20434. * Encodes the specified sign_in_get_data_rsp message, length delimited. Does not implicitly {@link game.sign_in_get_data_rsp.verify|verify} messages.
  20435. * @function encodeDelimited
  20436. * @memberof game.sign_in_get_data_rsp
  20437. * @static
  20438. * @param {game.Isign_in_get_data_rsp} message sign_in_get_data_rsp message or plain object to encode
  20439. * @param {$protobuf.Writer} [writer] Writer to encode to
  20440. * @returns {$protobuf.Writer} Writer
  20441. */
  20442. sign_in_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  20443. return this.encode(message, writer).ldelim();
  20444. };
  20445. /**
  20446. * Decodes a sign_in_get_data_rsp message from the specified reader or buffer.
  20447. * @function decode
  20448. * @memberof game.sign_in_get_data_rsp
  20449. * @static
  20450. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20451. * @param {number} [length] Message length if known beforehand
  20452. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
  20453. * @throws {Error} If the payload is not a reader or valid buffer
  20454. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20455. */
  20456. sign_in_get_data_rsp.decode = function decode(reader, length) {
  20457. if (!(reader instanceof $Reader))
  20458. reader = $Reader.create(reader);
  20459. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_get_data_rsp();
  20460. while (reader.pos < end) {
  20461. let tag = reader.uint32();
  20462. switch (tag >>> 3) {
  20463. case 1:
  20464. message.errno = reader.int64();
  20465. break;
  20466. default:
  20467. reader.skipType(tag & 7);
  20468. break;
  20469. }
  20470. }
  20471. return message;
  20472. };
  20473. /**
  20474. * Decodes a sign_in_get_data_rsp message from the specified reader or buffer, length delimited.
  20475. * @function decodeDelimited
  20476. * @memberof game.sign_in_get_data_rsp
  20477. * @static
  20478. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20479. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
  20480. * @throws {Error} If the payload is not a reader or valid buffer
  20481. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20482. */
  20483. sign_in_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  20484. if (!(reader instanceof $Reader))
  20485. reader = new $Reader(reader);
  20486. return this.decode(reader, reader.uint32());
  20487. };
  20488. /**
  20489. * Verifies a sign_in_get_data_rsp message.
  20490. * @function verify
  20491. * @memberof game.sign_in_get_data_rsp
  20492. * @static
  20493. * @param {Object.<string,*>} message Plain object to verify
  20494. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20495. */
  20496. sign_in_get_data_rsp.verify = function verify(message) {
  20497. if (typeof message !== "object" || message === null)
  20498. return "object expected";
  20499. if (message.errno != null && message.hasOwnProperty("errno"))
  20500. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  20501. return "errno: integer|Long expected";
  20502. return null;
  20503. };
  20504. /**
  20505. * Creates a sign_in_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  20506. * @function fromObject
  20507. * @memberof game.sign_in_get_data_rsp
  20508. * @static
  20509. * @param {Object.<string,*>} object Plain object
  20510. * @returns {game.sign_in_get_data_rsp} sign_in_get_data_rsp
  20511. */
  20512. sign_in_get_data_rsp.fromObject = function fromObject(object) {
  20513. if (object instanceof $root.game.sign_in_get_data_rsp)
  20514. return object;
  20515. let message = new $root.game.sign_in_get_data_rsp();
  20516. if (object.errno != null)
  20517. if ($util.Long)
  20518. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  20519. else if (typeof object.errno === "string")
  20520. message.errno = parseInt(object.errno, 10);
  20521. else if (typeof object.errno === "number")
  20522. message.errno = object.errno;
  20523. else if (typeof object.errno === "object")
  20524. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  20525. return message;
  20526. };
  20527. /**
  20528. * Creates a plain object from a sign_in_get_data_rsp message. Also converts values to other types if specified.
  20529. * @function toObject
  20530. * @memberof game.sign_in_get_data_rsp
  20531. * @static
  20532. * @param {game.sign_in_get_data_rsp} message sign_in_get_data_rsp
  20533. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20534. * @returns {Object.<string,*>} Plain object
  20535. */
  20536. sign_in_get_data_rsp.toObject = function toObject(message, options) {
  20537. if (!options)
  20538. options = {};
  20539. let object = {};
  20540. if (options.defaults)
  20541. if ($util.Long) {
  20542. let long = new $util.Long(0, 0, false);
  20543. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20544. } else
  20545. object.errno = options.longs === String ? "0" : 0;
  20546. if (message.errno != null && message.hasOwnProperty("errno"))
  20547. if (typeof message.errno === "number")
  20548. object.errno = options.longs === String ? String(message.errno) : message.errno;
  20549. else
  20550. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  20551. return object;
  20552. };
  20553. /**
  20554. * Converts this sign_in_get_data_rsp to JSON.
  20555. * @function toJSON
  20556. * @memberof game.sign_in_get_data_rsp
  20557. * @instance
  20558. * @returns {Object.<string,*>} JSON object
  20559. */
  20560. sign_in_get_data_rsp.prototype.toJSON = function toJSON() {
  20561. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20562. };
  20563. return sign_in_get_data_rsp;
  20564. })();
  20565. game.sign_in_award = (function() {
  20566. /**
  20567. * Properties of a sign_in_award.
  20568. * @memberof game
  20569. * @interface Isign_in_award
  20570. * @property {number|Long|null} [day] sign_in_award day
  20571. */
  20572. /**
  20573. * Constructs a new sign_in_award.
  20574. * @memberof game
  20575. * @classdesc Represents a sign_in_award.
  20576. * @implements Isign_in_award
  20577. * @constructor
  20578. * @param {game.Isign_in_award=} [properties] Properties to set
  20579. */
  20580. function sign_in_award(properties) {
  20581. if (properties)
  20582. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20583. if (properties[keys[i]] != null)
  20584. this[keys[i]] = properties[keys[i]];
  20585. }
  20586. /**
  20587. * sign_in_award day.
  20588. * @member {number|Long} day
  20589. * @memberof game.sign_in_award
  20590. * @instance
  20591. */
  20592. sign_in_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20593. /**
  20594. * Creates a new sign_in_award instance using the specified properties.
  20595. * @function create
  20596. * @memberof game.sign_in_award
  20597. * @static
  20598. * @param {game.Isign_in_award=} [properties] Properties to set
  20599. * @returns {game.sign_in_award} sign_in_award instance
  20600. */
  20601. sign_in_award.create = function create(properties) {
  20602. return new sign_in_award(properties);
  20603. };
  20604. /**
  20605. * Encodes the specified sign_in_award message. Does not implicitly {@link game.sign_in_award.verify|verify} messages.
  20606. * @function encode
  20607. * @memberof game.sign_in_award
  20608. * @static
  20609. * @param {game.Isign_in_award} message sign_in_award message or plain object to encode
  20610. * @param {$protobuf.Writer} [writer] Writer to encode to
  20611. * @returns {$protobuf.Writer} Writer
  20612. */
  20613. sign_in_award.encode = function encode(message, writer) {
  20614. if (!writer)
  20615. writer = $Writer.create();
  20616. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  20617. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.day);
  20618. return writer;
  20619. };
  20620. /**
  20621. * Encodes the specified sign_in_award message, length delimited. Does not implicitly {@link game.sign_in_award.verify|verify} messages.
  20622. * @function encodeDelimited
  20623. * @memberof game.sign_in_award
  20624. * @static
  20625. * @param {game.Isign_in_award} message sign_in_award message or plain object to encode
  20626. * @param {$protobuf.Writer} [writer] Writer to encode to
  20627. * @returns {$protobuf.Writer} Writer
  20628. */
  20629. sign_in_award.encodeDelimited = function encodeDelimited(message, writer) {
  20630. return this.encode(message, writer).ldelim();
  20631. };
  20632. /**
  20633. * Decodes a sign_in_award message from the specified reader or buffer.
  20634. * @function decode
  20635. * @memberof game.sign_in_award
  20636. * @static
  20637. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20638. * @param {number} [length] Message length if known beforehand
  20639. * @returns {game.sign_in_award} sign_in_award
  20640. * @throws {Error} If the payload is not a reader or valid buffer
  20641. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20642. */
  20643. sign_in_award.decode = function decode(reader, length) {
  20644. if (!(reader instanceof $Reader))
  20645. reader = $Reader.create(reader);
  20646. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_award();
  20647. while (reader.pos < end) {
  20648. let tag = reader.uint32();
  20649. switch (tag >>> 3) {
  20650. case 1:
  20651. message.day = reader.int64();
  20652. break;
  20653. default:
  20654. reader.skipType(tag & 7);
  20655. break;
  20656. }
  20657. }
  20658. return message;
  20659. };
  20660. /**
  20661. * Decodes a sign_in_award message from the specified reader or buffer, length delimited.
  20662. * @function decodeDelimited
  20663. * @memberof game.sign_in_award
  20664. * @static
  20665. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20666. * @returns {game.sign_in_award} sign_in_award
  20667. * @throws {Error} If the payload is not a reader or valid buffer
  20668. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20669. */
  20670. sign_in_award.decodeDelimited = function decodeDelimited(reader) {
  20671. if (!(reader instanceof $Reader))
  20672. reader = new $Reader(reader);
  20673. return this.decode(reader, reader.uint32());
  20674. };
  20675. /**
  20676. * Verifies a sign_in_award message.
  20677. * @function verify
  20678. * @memberof game.sign_in_award
  20679. * @static
  20680. * @param {Object.<string,*>} message Plain object to verify
  20681. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20682. */
  20683. sign_in_award.verify = function verify(message) {
  20684. if (typeof message !== "object" || message === null)
  20685. return "object expected";
  20686. if (message.day != null && message.hasOwnProperty("day"))
  20687. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  20688. return "day: integer|Long expected";
  20689. return null;
  20690. };
  20691. /**
  20692. * Creates a sign_in_award message from a plain object. Also converts values to their respective internal types.
  20693. * @function fromObject
  20694. * @memberof game.sign_in_award
  20695. * @static
  20696. * @param {Object.<string,*>} object Plain object
  20697. * @returns {game.sign_in_award} sign_in_award
  20698. */
  20699. sign_in_award.fromObject = function fromObject(object) {
  20700. if (object instanceof $root.game.sign_in_award)
  20701. return object;
  20702. let message = new $root.game.sign_in_award();
  20703. if (object.day != null)
  20704. if ($util.Long)
  20705. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  20706. else if (typeof object.day === "string")
  20707. message.day = parseInt(object.day, 10);
  20708. else if (typeof object.day === "number")
  20709. message.day = object.day;
  20710. else if (typeof object.day === "object")
  20711. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  20712. return message;
  20713. };
  20714. /**
  20715. * Creates a plain object from a sign_in_award message. Also converts values to other types if specified.
  20716. * @function toObject
  20717. * @memberof game.sign_in_award
  20718. * @static
  20719. * @param {game.sign_in_award} message sign_in_award
  20720. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20721. * @returns {Object.<string,*>} Plain object
  20722. */
  20723. sign_in_award.toObject = function toObject(message, options) {
  20724. if (!options)
  20725. options = {};
  20726. let object = {};
  20727. if (options.defaults)
  20728. if ($util.Long) {
  20729. let long = new $util.Long(0, 0, false);
  20730. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20731. } else
  20732. object.day = options.longs === String ? "0" : 0;
  20733. if (message.day != null && message.hasOwnProperty("day"))
  20734. if (typeof message.day === "number")
  20735. object.day = options.longs === String ? String(message.day) : message.day;
  20736. else
  20737. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  20738. return object;
  20739. };
  20740. /**
  20741. * Converts this sign_in_award to JSON.
  20742. * @function toJSON
  20743. * @memberof game.sign_in_award
  20744. * @instance
  20745. * @returns {Object.<string,*>} JSON object
  20746. */
  20747. sign_in_award.prototype.toJSON = function toJSON() {
  20748. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  20749. };
  20750. return sign_in_award;
  20751. })();
  20752. game.sign_in_award_rsp = (function() {
  20753. /**
  20754. * Properties of a sign_in_award_rsp.
  20755. * @memberof game
  20756. * @interface Isign_in_award_rsp
  20757. * @property {number|Long|null} [errno] sign_in_award_rsp errno
  20758. * @property {number|Long|null} [day] sign_in_award_rsp day
  20759. * @property {number|Long|null} [award] sign_in_award_rsp award
  20760. */
  20761. /**
  20762. * Constructs a new sign_in_award_rsp.
  20763. * @memberof game
  20764. * @classdesc Represents a sign_in_award_rsp.
  20765. * @implements Isign_in_award_rsp
  20766. * @constructor
  20767. * @param {game.Isign_in_award_rsp=} [properties] Properties to set
  20768. */
  20769. function sign_in_award_rsp(properties) {
  20770. if (properties)
  20771. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  20772. if (properties[keys[i]] != null)
  20773. this[keys[i]] = properties[keys[i]];
  20774. }
  20775. /**
  20776. * sign_in_award_rsp errno.
  20777. * @member {number|Long} errno
  20778. * @memberof game.sign_in_award_rsp
  20779. * @instance
  20780. */
  20781. sign_in_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20782. /**
  20783. * sign_in_award_rsp day.
  20784. * @member {number|Long} day
  20785. * @memberof game.sign_in_award_rsp
  20786. * @instance
  20787. */
  20788. sign_in_award_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20789. /**
  20790. * sign_in_award_rsp award.
  20791. * @member {number|Long} award
  20792. * @memberof game.sign_in_award_rsp
  20793. * @instance
  20794. */
  20795. sign_in_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  20796. /**
  20797. * Creates a new sign_in_award_rsp instance using the specified properties.
  20798. * @function create
  20799. * @memberof game.sign_in_award_rsp
  20800. * @static
  20801. * @param {game.Isign_in_award_rsp=} [properties] Properties to set
  20802. * @returns {game.sign_in_award_rsp} sign_in_award_rsp instance
  20803. */
  20804. sign_in_award_rsp.create = function create(properties) {
  20805. return new sign_in_award_rsp(properties);
  20806. };
  20807. /**
  20808. * Encodes the specified sign_in_award_rsp message. Does not implicitly {@link game.sign_in_award_rsp.verify|verify} messages.
  20809. * @function encode
  20810. * @memberof game.sign_in_award_rsp
  20811. * @static
  20812. * @param {game.Isign_in_award_rsp} message sign_in_award_rsp message or plain object to encode
  20813. * @param {$protobuf.Writer} [writer] Writer to encode to
  20814. * @returns {$protobuf.Writer} Writer
  20815. */
  20816. sign_in_award_rsp.encode = function encode(message, writer) {
  20817. if (!writer)
  20818. writer = $Writer.create();
  20819. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  20820. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  20821. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  20822. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  20823. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  20824. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  20825. return writer;
  20826. };
  20827. /**
  20828. * Encodes the specified sign_in_award_rsp message, length delimited. Does not implicitly {@link game.sign_in_award_rsp.verify|verify} messages.
  20829. * @function encodeDelimited
  20830. * @memberof game.sign_in_award_rsp
  20831. * @static
  20832. * @param {game.Isign_in_award_rsp} message sign_in_award_rsp message or plain object to encode
  20833. * @param {$protobuf.Writer} [writer] Writer to encode to
  20834. * @returns {$protobuf.Writer} Writer
  20835. */
  20836. sign_in_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  20837. return this.encode(message, writer).ldelim();
  20838. };
  20839. /**
  20840. * Decodes a sign_in_award_rsp message from the specified reader or buffer.
  20841. * @function decode
  20842. * @memberof game.sign_in_award_rsp
  20843. * @static
  20844. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20845. * @param {number} [length] Message length if known beforehand
  20846. * @returns {game.sign_in_award_rsp} sign_in_award_rsp
  20847. * @throws {Error} If the payload is not a reader or valid buffer
  20848. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20849. */
  20850. sign_in_award_rsp.decode = function decode(reader, length) {
  20851. if (!(reader instanceof $Reader))
  20852. reader = $Reader.create(reader);
  20853. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_award_rsp();
  20854. while (reader.pos < end) {
  20855. let tag = reader.uint32();
  20856. switch (tag >>> 3) {
  20857. case 1:
  20858. message.errno = reader.int64();
  20859. break;
  20860. case 2:
  20861. message.day = reader.int64();
  20862. break;
  20863. case 3:
  20864. message.award = reader.int64();
  20865. break;
  20866. default:
  20867. reader.skipType(tag & 7);
  20868. break;
  20869. }
  20870. }
  20871. return message;
  20872. };
  20873. /**
  20874. * Decodes a sign_in_award_rsp message from the specified reader or buffer, length delimited.
  20875. * @function decodeDelimited
  20876. * @memberof game.sign_in_award_rsp
  20877. * @static
  20878. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  20879. * @returns {game.sign_in_award_rsp} sign_in_award_rsp
  20880. * @throws {Error} If the payload is not a reader or valid buffer
  20881. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  20882. */
  20883. sign_in_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  20884. if (!(reader instanceof $Reader))
  20885. reader = new $Reader(reader);
  20886. return this.decode(reader, reader.uint32());
  20887. };
  20888. /**
  20889. * Verifies a sign_in_award_rsp message.
  20890. * @function verify
  20891. * @memberof game.sign_in_award_rsp
  20892. * @static
  20893. * @param {Object.<string,*>} message Plain object to verify
  20894. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  20895. */
  20896. sign_in_award_rsp.verify = function verify(message) {
  20897. if (typeof message !== "object" || message === null)
  20898. return "object expected";
  20899. if (message.errno != null && message.hasOwnProperty("errno"))
  20900. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  20901. return "errno: integer|Long expected";
  20902. if (message.day != null && message.hasOwnProperty("day"))
  20903. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  20904. return "day: integer|Long expected";
  20905. if (message.award != null && message.hasOwnProperty("award"))
  20906. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  20907. return "award: integer|Long expected";
  20908. return null;
  20909. };
  20910. /**
  20911. * Creates a sign_in_award_rsp message from a plain object. Also converts values to their respective internal types.
  20912. * @function fromObject
  20913. * @memberof game.sign_in_award_rsp
  20914. * @static
  20915. * @param {Object.<string,*>} object Plain object
  20916. * @returns {game.sign_in_award_rsp} sign_in_award_rsp
  20917. */
  20918. sign_in_award_rsp.fromObject = function fromObject(object) {
  20919. if (object instanceof $root.game.sign_in_award_rsp)
  20920. return object;
  20921. let message = new $root.game.sign_in_award_rsp();
  20922. if (object.errno != null)
  20923. if ($util.Long)
  20924. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  20925. else if (typeof object.errno === "string")
  20926. message.errno = parseInt(object.errno, 10);
  20927. else if (typeof object.errno === "number")
  20928. message.errno = object.errno;
  20929. else if (typeof object.errno === "object")
  20930. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  20931. if (object.day != null)
  20932. if ($util.Long)
  20933. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  20934. else if (typeof object.day === "string")
  20935. message.day = parseInt(object.day, 10);
  20936. else if (typeof object.day === "number")
  20937. message.day = object.day;
  20938. else if (typeof object.day === "object")
  20939. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  20940. if (object.award != null)
  20941. if ($util.Long)
  20942. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  20943. else if (typeof object.award === "string")
  20944. message.award = parseInt(object.award, 10);
  20945. else if (typeof object.award === "number")
  20946. message.award = object.award;
  20947. else if (typeof object.award === "object")
  20948. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  20949. return message;
  20950. };
  20951. /**
  20952. * Creates a plain object from a sign_in_award_rsp message. Also converts values to other types if specified.
  20953. * @function toObject
  20954. * @memberof game.sign_in_award_rsp
  20955. * @static
  20956. * @param {game.sign_in_award_rsp} message sign_in_award_rsp
  20957. * @param {$protobuf.IConversionOptions} [options] Conversion options
  20958. * @returns {Object.<string,*>} Plain object
  20959. */
  20960. sign_in_award_rsp.toObject = function toObject(message, options) {
  20961. if (!options)
  20962. options = {};
  20963. let object = {};
  20964. if (options.defaults) {
  20965. if ($util.Long) {
  20966. let long = new $util.Long(0, 0, false);
  20967. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20968. } else
  20969. object.errno = options.longs === String ? "0" : 0;
  20970. if ($util.Long) {
  20971. let long = new $util.Long(0, 0, false);
  20972. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20973. } else
  20974. object.day = options.longs === String ? "0" : 0;
  20975. if ($util.Long) {
  20976. let long = new $util.Long(0, 0, false);
  20977. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  20978. } else
  20979. object.award = options.longs === String ? "0" : 0;
  20980. }
  20981. if (message.errno != null && message.hasOwnProperty("errno"))
  20982. if (typeof message.errno === "number")
  20983. object.errno = options.longs === String ? String(message.errno) : message.errno;
  20984. else
  20985. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  20986. if (message.day != null && message.hasOwnProperty("day"))
  20987. if (typeof message.day === "number")
  20988. object.day = options.longs === String ? String(message.day) : message.day;
  20989. else
  20990. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  20991. if (message.award != null && message.hasOwnProperty("award"))
  20992. if (typeof message.award === "number")
  20993. object.award = options.longs === String ? String(message.award) : message.award;
  20994. else
  20995. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  20996. return object;
  20997. };
  20998. /**
  20999. * Converts this sign_in_award_rsp to JSON.
  21000. * @function toJSON
  21001. * @memberof game.sign_in_award_rsp
  21002. * @instance
  21003. * @returns {Object.<string,*>} JSON object
  21004. */
  21005. sign_in_award_rsp.prototype.toJSON = function toJSON() {
  21006. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  21007. };
  21008. return sign_in_award_rsp;
  21009. })();
  21010. game.sign_in_nty = (function() {
  21011. /**
  21012. * Properties of a sign_in_nty.
  21013. * @memberof game
  21014. * @interface Isign_in_nty
  21015. * @property {boolean|null} [open] sign_in_nty open
  21016. * @property {number|Long|null} [day] sign_in_nty day
  21017. * @property {number|Long|null} [award] sign_in_nty award
  21018. * @property {number|Long|null} [round] sign_in_nty round
  21019. */
  21020. /**
  21021. * Constructs a new sign_in_nty.
  21022. * @memberof game
  21023. * @classdesc Represents a sign_in_nty.
  21024. * @implements Isign_in_nty
  21025. * @constructor
  21026. * @param {game.Isign_in_nty=} [properties] Properties to set
  21027. */
  21028. function sign_in_nty(properties) {
  21029. if (properties)
  21030. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  21031. if (properties[keys[i]] != null)
  21032. this[keys[i]] = properties[keys[i]];
  21033. }
  21034. /**
  21035. * sign_in_nty open.
  21036. * @member {boolean} open
  21037. * @memberof game.sign_in_nty
  21038. * @instance
  21039. */
  21040. sign_in_nty.prototype.open = false;
  21041. /**
  21042. * sign_in_nty day.
  21043. * @member {number|Long} day
  21044. * @memberof game.sign_in_nty
  21045. * @instance
  21046. */
  21047. sign_in_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21048. /**
  21049. * sign_in_nty award.
  21050. * @member {number|Long} award
  21051. * @memberof game.sign_in_nty
  21052. * @instance
  21053. */
  21054. sign_in_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21055. /**
  21056. * sign_in_nty round.
  21057. * @member {number|Long} round
  21058. * @memberof game.sign_in_nty
  21059. * @instance
  21060. */
  21061. sign_in_nty.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21062. /**
  21063. * Creates a new sign_in_nty instance using the specified properties.
  21064. * @function create
  21065. * @memberof game.sign_in_nty
  21066. * @static
  21067. * @param {game.Isign_in_nty=} [properties] Properties to set
  21068. * @returns {game.sign_in_nty} sign_in_nty instance
  21069. */
  21070. sign_in_nty.create = function create(properties) {
  21071. return new sign_in_nty(properties);
  21072. };
  21073. /**
  21074. * Encodes the specified sign_in_nty message. Does not implicitly {@link game.sign_in_nty.verify|verify} messages.
  21075. * @function encode
  21076. * @memberof game.sign_in_nty
  21077. * @static
  21078. * @param {game.Isign_in_nty} message sign_in_nty message or plain object to encode
  21079. * @param {$protobuf.Writer} [writer] Writer to encode to
  21080. * @returns {$protobuf.Writer} Writer
  21081. */
  21082. sign_in_nty.encode = function encode(message, writer) {
  21083. if (!writer)
  21084. writer = $Writer.create();
  21085. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  21086. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.open);
  21087. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  21088. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  21089. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  21090. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  21091. if (message.round != null && Object.hasOwnProperty.call(message, "round"))
  21092. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.round);
  21093. return writer;
  21094. };
  21095. /**
  21096. * Encodes the specified sign_in_nty message, length delimited. Does not implicitly {@link game.sign_in_nty.verify|verify} messages.
  21097. * @function encodeDelimited
  21098. * @memberof game.sign_in_nty
  21099. * @static
  21100. * @param {game.Isign_in_nty} message sign_in_nty message or plain object to encode
  21101. * @param {$protobuf.Writer} [writer] Writer to encode to
  21102. * @returns {$protobuf.Writer} Writer
  21103. */
  21104. sign_in_nty.encodeDelimited = function encodeDelimited(message, writer) {
  21105. return this.encode(message, writer).ldelim();
  21106. };
  21107. /**
  21108. * Decodes a sign_in_nty message from the specified reader or buffer.
  21109. * @function decode
  21110. * @memberof game.sign_in_nty
  21111. * @static
  21112. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21113. * @param {number} [length] Message length if known beforehand
  21114. * @returns {game.sign_in_nty} sign_in_nty
  21115. * @throws {Error} If the payload is not a reader or valid buffer
  21116. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21117. */
  21118. sign_in_nty.decode = function decode(reader, length) {
  21119. if (!(reader instanceof $Reader))
  21120. reader = $Reader.create(reader);
  21121. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sign_in_nty();
  21122. while (reader.pos < end) {
  21123. let tag = reader.uint32();
  21124. switch (tag >>> 3) {
  21125. case 1:
  21126. message.open = reader.bool();
  21127. break;
  21128. case 2:
  21129. message.day = reader.int64();
  21130. break;
  21131. case 3:
  21132. message.award = reader.int64();
  21133. break;
  21134. case 4:
  21135. message.round = reader.int64();
  21136. break;
  21137. default:
  21138. reader.skipType(tag & 7);
  21139. break;
  21140. }
  21141. }
  21142. return message;
  21143. };
  21144. /**
  21145. * Decodes a sign_in_nty message from the specified reader or buffer, length delimited.
  21146. * @function decodeDelimited
  21147. * @memberof game.sign_in_nty
  21148. * @static
  21149. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21150. * @returns {game.sign_in_nty} sign_in_nty
  21151. * @throws {Error} If the payload is not a reader or valid buffer
  21152. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21153. */
  21154. sign_in_nty.decodeDelimited = function decodeDelimited(reader) {
  21155. if (!(reader instanceof $Reader))
  21156. reader = new $Reader(reader);
  21157. return this.decode(reader, reader.uint32());
  21158. };
  21159. /**
  21160. * Verifies a sign_in_nty message.
  21161. * @function verify
  21162. * @memberof game.sign_in_nty
  21163. * @static
  21164. * @param {Object.<string,*>} message Plain object to verify
  21165. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  21166. */
  21167. sign_in_nty.verify = function verify(message) {
  21168. if (typeof message !== "object" || message === null)
  21169. return "object expected";
  21170. if (message.open != null && message.hasOwnProperty("open"))
  21171. if (typeof message.open !== "boolean")
  21172. return "open: boolean expected";
  21173. if (message.day != null && message.hasOwnProperty("day"))
  21174. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  21175. return "day: integer|Long expected";
  21176. if (message.award != null && message.hasOwnProperty("award"))
  21177. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  21178. return "award: integer|Long expected";
  21179. if (message.round != null && message.hasOwnProperty("round"))
  21180. if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
  21181. return "round: integer|Long expected";
  21182. return null;
  21183. };
  21184. /**
  21185. * Creates a sign_in_nty message from a plain object. Also converts values to their respective internal types.
  21186. * @function fromObject
  21187. * @memberof game.sign_in_nty
  21188. * @static
  21189. * @param {Object.<string,*>} object Plain object
  21190. * @returns {game.sign_in_nty} sign_in_nty
  21191. */
  21192. sign_in_nty.fromObject = function fromObject(object) {
  21193. if (object instanceof $root.game.sign_in_nty)
  21194. return object;
  21195. let message = new $root.game.sign_in_nty();
  21196. if (object.open != null)
  21197. message.open = Boolean(object.open);
  21198. if (object.day != null)
  21199. if ($util.Long)
  21200. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  21201. else if (typeof object.day === "string")
  21202. message.day = parseInt(object.day, 10);
  21203. else if (typeof object.day === "number")
  21204. message.day = object.day;
  21205. else if (typeof object.day === "object")
  21206. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  21207. if (object.award != null)
  21208. if ($util.Long)
  21209. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  21210. else if (typeof object.award === "string")
  21211. message.award = parseInt(object.award, 10);
  21212. else if (typeof object.award === "number")
  21213. message.award = object.award;
  21214. else if (typeof object.award === "object")
  21215. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  21216. if (object.round != null)
  21217. if ($util.Long)
  21218. (message.round = $util.Long.fromValue(object.round)).unsigned = false;
  21219. else if (typeof object.round === "string")
  21220. message.round = parseInt(object.round, 10);
  21221. else if (typeof object.round === "number")
  21222. message.round = object.round;
  21223. else if (typeof object.round === "object")
  21224. message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
  21225. return message;
  21226. };
  21227. /**
  21228. * Creates a plain object from a sign_in_nty message. Also converts values to other types if specified.
  21229. * @function toObject
  21230. * @memberof game.sign_in_nty
  21231. * @static
  21232. * @param {game.sign_in_nty} message sign_in_nty
  21233. * @param {$protobuf.IConversionOptions} [options] Conversion options
  21234. * @returns {Object.<string,*>} Plain object
  21235. */
  21236. sign_in_nty.toObject = function toObject(message, options) {
  21237. if (!options)
  21238. options = {};
  21239. let object = {};
  21240. if (options.defaults) {
  21241. object.open = false;
  21242. if ($util.Long) {
  21243. let long = new $util.Long(0, 0, false);
  21244. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21245. } else
  21246. object.day = options.longs === String ? "0" : 0;
  21247. if ($util.Long) {
  21248. let long = new $util.Long(0, 0, false);
  21249. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21250. } else
  21251. object.award = options.longs === String ? "0" : 0;
  21252. if ($util.Long) {
  21253. let long = new $util.Long(0, 0, false);
  21254. object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21255. } else
  21256. object.round = options.longs === String ? "0" : 0;
  21257. }
  21258. if (message.open != null && message.hasOwnProperty("open"))
  21259. object.open = message.open;
  21260. if (message.day != null && message.hasOwnProperty("day"))
  21261. if (typeof message.day === "number")
  21262. object.day = options.longs === String ? String(message.day) : message.day;
  21263. else
  21264. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  21265. if (message.award != null && message.hasOwnProperty("award"))
  21266. if (typeof message.award === "number")
  21267. object.award = options.longs === String ? String(message.award) : message.award;
  21268. else
  21269. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  21270. if (message.round != null && message.hasOwnProperty("round"))
  21271. if (typeof message.round === "number")
  21272. object.round = options.longs === String ? String(message.round) : message.round;
  21273. else
  21274. object.round = options.longs === String ? $util.Long.prototype.toString.call(message.round) : options.longs === Number ? new $util.LongBits(message.round.low >>> 0, message.round.high >>> 0).toNumber() : message.round;
  21275. return object;
  21276. };
  21277. /**
  21278. * Converts this sign_in_nty to JSON.
  21279. * @function toJSON
  21280. * @memberof game.sign_in_nty
  21281. * @instance
  21282. * @returns {Object.<string,*>} JSON object
  21283. */
  21284. sign_in_nty.prototype.toJSON = function toJSON() {
  21285. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  21286. };
  21287. return sign_in_nty;
  21288. })();
  21289. game.quest_get_data = (function() {
  21290. /**
  21291. * Properties of a quest_get_data.
  21292. * @memberof game
  21293. * @interface Iquest_get_data
  21294. */
  21295. /**
  21296. * Constructs a new quest_get_data.
  21297. * @memberof game
  21298. * @classdesc Represents a quest_get_data.
  21299. * @implements Iquest_get_data
  21300. * @constructor
  21301. * @param {game.Iquest_get_data=} [properties] Properties to set
  21302. */
  21303. function quest_get_data(properties) {
  21304. if (properties)
  21305. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  21306. if (properties[keys[i]] != null)
  21307. this[keys[i]] = properties[keys[i]];
  21308. }
  21309. /**
  21310. * Creates a new quest_get_data instance using the specified properties.
  21311. * @function create
  21312. * @memberof game.quest_get_data
  21313. * @static
  21314. * @param {game.Iquest_get_data=} [properties] Properties to set
  21315. * @returns {game.quest_get_data} quest_get_data instance
  21316. */
  21317. quest_get_data.create = function create(properties) {
  21318. return new quest_get_data(properties);
  21319. };
  21320. /**
  21321. * Encodes the specified quest_get_data message. Does not implicitly {@link game.quest_get_data.verify|verify} messages.
  21322. * @function encode
  21323. * @memberof game.quest_get_data
  21324. * @static
  21325. * @param {game.Iquest_get_data} message quest_get_data message or plain object to encode
  21326. * @param {$protobuf.Writer} [writer] Writer to encode to
  21327. * @returns {$protobuf.Writer} Writer
  21328. */
  21329. quest_get_data.encode = function encode(message, writer) {
  21330. if (!writer)
  21331. writer = $Writer.create();
  21332. return writer;
  21333. };
  21334. /**
  21335. * Encodes the specified quest_get_data message, length delimited. Does not implicitly {@link game.quest_get_data.verify|verify} messages.
  21336. * @function encodeDelimited
  21337. * @memberof game.quest_get_data
  21338. * @static
  21339. * @param {game.Iquest_get_data} message quest_get_data message or plain object to encode
  21340. * @param {$protobuf.Writer} [writer] Writer to encode to
  21341. * @returns {$protobuf.Writer} Writer
  21342. */
  21343. quest_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  21344. return this.encode(message, writer).ldelim();
  21345. };
  21346. /**
  21347. * Decodes a quest_get_data message from the specified reader or buffer.
  21348. * @function decode
  21349. * @memberof game.quest_get_data
  21350. * @static
  21351. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21352. * @param {number} [length] Message length if known beforehand
  21353. * @returns {game.quest_get_data} quest_get_data
  21354. * @throws {Error} If the payload is not a reader or valid buffer
  21355. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21356. */
  21357. quest_get_data.decode = function decode(reader, length) {
  21358. if (!(reader instanceof $Reader))
  21359. reader = $Reader.create(reader);
  21360. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_data();
  21361. while (reader.pos < end) {
  21362. let tag = reader.uint32();
  21363. switch (tag >>> 3) {
  21364. default:
  21365. reader.skipType(tag & 7);
  21366. break;
  21367. }
  21368. }
  21369. return message;
  21370. };
  21371. /**
  21372. * Decodes a quest_get_data message from the specified reader or buffer, length delimited.
  21373. * @function decodeDelimited
  21374. * @memberof game.quest_get_data
  21375. * @static
  21376. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21377. * @returns {game.quest_get_data} quest_get_data
  21378. * @throws {Error} If the payload is not a reader or valid buffer
  21379. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21380. */
  21381. quest_get_data.decodeDelimited = function decodeDelimited(reader) {
  21382. if (!(reader instanceof $Reader))
  21383. reader = new $Reader(reader);
  21384. return this.decode(reader, reader.uint32());
  21385. };
  21386. /**
  21387. * Verifies a quest_get_data message.
  21388. * @function verify
  21389. * @memberof game.quest_get_data
  21390. * @static
  21391. * @param {Object.<string,*>} message Plain object to verify
  21392. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  21393. */
  21394. quest_get_data.verify = function verify(message) {
  21395. if (typeof message !== "object" || message === null)
  21396. return "object expected";
  21397. return null;
  21398. };
  21399. /**
  21400. * Creates a quest_get_data message from a plain object. Also converts values to their respective internal types.
  21401. * @function fromObject
  21402. * @memberof game.quest_get_data
  21403. * @static
  21404. * @param {Object.<string,*>} object Plain object
  21405. * @returns {game.quest_get_data} quest_get_data
  21406. */
  21407. quest_get_data.fromObject = function fromObject(object) {
  21408. if (object instanceof $root.game.quest_get_data)
  21409. return object;
  21410. return new $root.game.quest_get_data();
  21411. };
  21412. /**
  21413. * Creates a plain object from a quest_get_data message. Also converts values to other types if specified.
  21414. * @function toObject
  21415. * @memberof game.quest_get_data
  21416. * @static
  21417. * @param {game.quest_get_data} message quest_get_data
  21418. * @param {$protobuf.IConversionOptions} [options] Conversion options
  21419. * @returns {Object.<string,*>} Plain object
  21420. */
  21421. quest_get_data.toObject = function toObject() {
  21422. return {};
  21423. };
  21424. /**
  21425. * Converts this quest_get_data to JSON.
  21426. * @function toJSON
  21427. * @memberof game.quest_get_data
  21428. * @instance
  21429. * @returns {Object.<string,*>} JSON object
  21430. */
  21431. quest_get_data.prototype.toJSON = function toJSON() {
  21432. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  21433. };
  21434. return quest_get_data;
  21435. })();
  21436. game.quest_get_data_rsp = (function() {
  21437. /**
  21438. * Properties of a quest_get_data_rsp.
  21439. * @memberof game
  21440. * @interface Iquest_get_data_rsp
  21441. * @property {number|Long|null} [errno] quest_get_data_rsp errno
  21442. * @property {number|Long|null} [dlv] quest_get_data_rsp dlv
  21443. * @property {number|Long|null} [wlv] quest_get_data_rsp wlv
  21444. * @property {number|Long|null} [daward] quest_get_data_rsp daward
  21445. * @property {number|Long|null} [waward] quest_get_data_rsp waward
  21446. * @property {Array.<game.Iquest>|null} [daily] quest_get_data_rsp daily
  21447. * @property {Array.<game.Iquest>|null} [weekly] quest_get_data_rsp weekly
  21448. * @property {Array.<game.Iquest>|null} [achievement] quest_get_data_rsp achievement
  21449. * @property {game.Iquest|null} [mainQuest] quest_get_data_rsp mainQuest
  21450. */
  21451. /**
  21452. * Constructs a new quest_get_data_rsp.
  21453. * @memberof game
  21454. * @classdesc Represents a quest_get_data_rsp.
  21455. * @implements Iquest_get_data_rsp
  21456. * @constructor
  21457. * @param {game.Iquest_get_data_rsp=} [properties] Properties to set
  21458. */
  21459. function quest_get_data_rsp(properties) {
  21460. this.daily = [];
  21461. this.weekly = [];
  21462. this.achievement = [];
  21463. if (properties)
  21464. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  21465. if (properties[keys[i]] != null)
  21466. this[keys[i]] = properties[keys[i]];
  21467. }
  21468. /**
  21469. * quest_get_data_rsp errno.
  21470. * @member {number|Long} errno
  21471. * @memberof game.quest_get_data_rsp
  21472. * @instance
  21473. */
  21474. quest_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21475. /**
  21476. * quest_get_data_rsp dlv.
  21477. * @member {number|Long} dlv
  21478. * @memberof game.quest_get_data_rsp
  21479. * @instance
  21480. */
  21481. quest_get_data_rsp.prototype.dlv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21482. /**
  21483. * quest_get_data_rsp wlv.
  21484. * @member {number|Long} wlv
  21485. * @memberof game.quest_get_data_rsp
  21486. * @instance
  21487. */
  21488. quest_get_data_rsp.prototype.wlv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21489. /**
  21490. * quest_get_data_rsp daward.
  21491. * @member {number|Long} daward
  21492. * @memberof game.quest_get_data_rsp
  21493. * @instance
  21494. */
  21495. quest_get_data_rsp.prototype.daward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21496. /**
  21497. * quest_get_data_rsp waward.
  21498. * @member {number|Long} waward
  21499. * @memberof game.quest_get_data_rsp
  21500. * @instance
  21501. */
  21502. quest_get_data_rsp.prototype.waward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21503. /**
  21504. * quest_get_data_rsp daily.
  21505. * @member {Array.<game.Iquest>} daily
  21506. * @memberof game.quest_get_data_rsp
  21507. * @instance
  21508. */
  21509. quest_get_data_rsp.prototype.daily = $util.emptyArray;
  21510. /**
  21511. * quest_get_data_rsp weekly.
  21512. * @member {Array.<game.Iquest>} weekly
  21513. * @memberof game.quest_get_data_rsp
  21514. * @instance
  21515. */
  21516. quest_get_data_rsp.prototype.weekly = $util.emptyArray;
  21517. /**
  21518. * quest_get_data_rsp achievement.
  21519. * @member {Array.<game.Iquest>} achievement
  21520. * @memberof game.quest_get_data_rsp
  21521. * @instance
  21522. */
  21523. quest_get_data_rsp.prototype.achievement = $util.emptyArray;
  21524. /**
  21525. * quest_get_data_rsp mainQuest.
  21526. * @member {game.Iquest|null|undefined} mainQuest
  21527. * @memberof game.quest_get_data_rsp
  21528. * @instance
  21529. */
  21530. quest_get_data_rsp.prototype.mainQuest = null;
  21531. /**
  21532. * Creates a new quest_get_data_rsp instance using the specified properties.
  21533. * @function create
  21534. * @memberof game.quest_get_data_rsp
  21535. * @static
  21536. * @param {game.Iquest_get_data_rsp=} [properties] Properties to set
  21537. * @returns {game.quest_get_data_rsp} quest_get_data_rsp instance
  21538. */
  21539. quest_get_data_rsp.create = function create(properties) {
  21540. return new quest_get_data_rsp(properties);
  21541. };
  21542. /**
  21543. * Encodes the specified quest_get_data_rsp message. Does not implicitly {@link game.quest_get_data_rsp.verify|verify} messages.
  21544. * @function encode
  21545. * @memberof game.quest_get_data_rsp
  21546. * @static
  21547. * @param {game.Iquest_get_data_rsp} message quest_get_data_rsp message or plain object to encode
  21548. * @param {$protobuf.Writer} [writer] Writer to encode to
  21549. * @returns {$protobuf.Writer} Writer
  21550. */
  21551. quest_get_data_rsp.encode = function encode(message, writer) {
  21552. if (!writer)
  21553. writer = $Writer.create();
  21554. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  21555. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  21556. if (message.dlv != null && Object.hasOwnProperty.call(message, "dlv"))
  21557. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dlv);
  21558. if (message.wlv != null && Object.hasOwnProperty.call(message, "wlv"))
  21559. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.wlv);
  21560. if (message.daward != null && Object.hasOwnProperty.call(message, "daward"))
  21561. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.daward);
  21562. if (message.waward != null && Object.hasOwnProperty.call(message, "waward"))
  21563. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.waward);
  21564. if (message.daily != null && message.daily.length)
  21565. for (let i = 0; i < message.daily.length; ++i)
  21566. $root.game.quest.encode(message.daily[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  21567. if (message.weekly != null && message.weekly.length)
  21568. for (let i = 0; i < message.weekly.length; ++i)
  21569. $root.game.quest.encode(message.weekly[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
  21570. if (message.achievement != null && message.achievement.length)
  21571. for (let i = 0; i < message.achievement.length; ++i)
  21572. $root.game.quest.encode(message.achievement[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
  21573. if (message.mainQuest != null && Object.hasOwnProperty.call(message, "mainQuest"))
  21574. $root.game.quest.encode(message.mainQuest, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
  21575. return writer;
  21576. };
  21577. /**
  21578. * Encodes the specified quest_get_data_rsp message, length delimited. Does not implicitly {@link game.quest_get_data_rsp.verify|verify} messages.
  21579. * @function encodeDelimited
  21580. * @memberof game.quest_get_data_rsp
  21581. * @static
  21582. * @param {game.Iquest_get_data_rsp} message quest_get_data_rsp message or plain object to encode
  21583. * @param {$protobuf.Writer} [writer] Writer to encode to
  21584. * @returns {$protobuf.Writer} Writer
  21585. */
  21586. quest_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  21587. return this.encode(message, writer).ldelim();
  21588. };
  21589. /**
  21590. * Decodes a quest_get_data_rsp message from the specified reader or buffer.
  21591. * @function decode
  21592. * @memberof game.quest_get_data_rsp
  21593. * @static
  21594. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21595. * @param {number} [length] Message length if known beforehand
  21596. * @returns {game.quest_get_data_rsp} quest_get_data_rsp
  21597. * @throws {Error} If the payload is not a reader or valid buffer
  21598. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21599. */
  21600. quest_get_data_rsp.decode = function decode(reader, length) {
  21601. if (!(reader instanceof $Reader))
  21602. reader = $Reader.create(reader);
  21603. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_data_rsp();
  21604. while (reader.pos < end) {
  21605. let tag = reader.uint32();
  21606. switch (tag >>> 3) {
  21607. case 1:
  21608. message.errno = reader.int64();
  21609. break;
  21610. case 2:
  21611. message.dlv = reader.int64();
  21612. break;
  21613. case 3:
  21614. message.wlv = reader.int64();
  21615. break;
  21616. case 4:
  21617. message.daward = reader.int64();
  21618. break;
  21619. case 6:
  21620. message.waward = reader.int64();
  21621. break;
  21622. case 7:
  21623. if (!(message.daily && message.daily.length))
  21624. message.daily = [];
  21625. message.daily.push($root.game.quest.decode(reader, reader.uint32()));
  21626. break;
  21627. case 8:
  21628. if (!(message.weekly && message.weekly.length))
  21629. message.weekly = [];
  21630. message.weekly.push($root.game.quest.decode(reader, reader.uint32()));
  21631. break;
  21632. case 9:
  21633. if (!(message.achievement && message.achievement.length))
  21634. message.achievement = [];
  21635. message.achievement.push($root.game.quest.decode(reader, reader.uint32()));
  21636. break;
  21637. case 10:
  21638. message.mainQuest = $root.game.quest.decode(reader, reader.uint32());
  21639. break;
  21640. default:
  21641. reader.skipType(tag & 7);
  21642. break;
  21643. }
  21644. }
  21645. return message;
  21646. };
  21647. /**
  21648. * Decodes a quest_get_data_rsp message from the specified reader or buffer, length delimited.
  21649. * @function decodeDelimited
  21650. * @memberof game.quest_get_data_rsp
  21651. * @static
  21652. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21653. * @returns {game.quest_get_data_rsp} quest_get_data_rsp
  21654. * @throws {Error} If the payload is not a reader or valid buffer
  21655. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21656. */
  21657. quest_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  21658. if (!(reader instanceof $Reader))
  21659. reader = new $Reader(reader);
  21660. return this.decode(reader, reader.uint32());
  21661. };
  21662. /**
  21663. * Verifies a quest_get_data_rsp message.
  21664. * @function verify
  21665. * @memberof game.quest_get_data_rsp
  21666. * @static
  21667. * @param {Object.<string,*>} message Plain object to verify
  21668. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  21669. */
  21670. quest_get_data_rsp.verify = function verify(message) {
  21671. if (typeof message !== "object" || message === null)
  21672. return "object expected";
  21673. if (message.errno != null && message.hasOwnProperty("errno"))
  21674. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  21675. return "errno: integer|Long expected";
  21676. if (message.dlv != null && message.hasOwnProperty("dlv"))
  21677. if (!$util.isInteger(message.dlv) && !(message.dlv && $util.isInteger(message.dlv.low) && $util.isInteger(message.dlv.high)))
  21678. return "dlv: integer|Long expected";
  21679. if (message.wlv != null && message.hasOwnProperty("wlv"))
  21680. if (!$util.isInteger(message.wlv) && !(message.wlv && $util.isInteger(message.wlv.low) && $util.isInteger(message.wlv.high)))
  21681. return "wlv: integer|Long expected";
  21682. if (message.daward != null && message.hasOwnProperty("daward"))
  21683. if (!$util.isInteger(message.daward) && !(message.daward && $util.isInteger(message.daward.low) && $util.isInteger(message.daward.high)))
  21684. return "daward: integer|Long expected";
  21685. if (message.waward != null && message.hasOwnProperty("waward"))
  21686. if (!$util.isInteger(message.waward) && !(message.waward && $util.isInteger(message.waward.low) && $util.isInteger(message.waward.high)))
  21687. return "waward: integer|Long expected";
  21688. if (message.daily != null && message.hasOwnProperty("daily")) {
  21689. if (!Array.isArray(message.daily))
  21690. return "daily: array expected";
  21691. for (let i = 0; i < message.daily.length; ++i) {
  21692. let error = $root.game.quest.verify(message.daily[i]);
  21693. if (error)
  21694. return "daily." + error;
  21695. }
  21696. }
  21697. if (message.weekly != null && message.hasOwnProperty("weekly")) {
  21698. if (!Array.isArray(message.weekly))
  21699. return "weekly: array expected";
  21700. for (let i = 0; i < message.weekly.length; ++i) {
  21701. let error = $root.game.quest.verify(message.weekly[i]);
  21702. if (error)
  21703. return "weekly." + error;
  21704. }
  21705. }
  21706. if (message.achievement != null && message.hasOwnProperty("achievement")) {
  21707. if (!Array.isArray(message.achievement))
  21708. return "achievement: array expected";
  21709. for (let i = 0; i < message.achievement.length; ++i) {
  21710. let error = $root.game.quest.verify(message.achievement[i]);
  21711. if (error)
  21712. return "achievement." + error;
  21713. }
  21714. }
  21715. if (message.mainQuest != null && message.hasOwnProperty("mainQuest")) {
  21716. let error = $root.game.quest.verify(message.mainQuest);
  21717. if (error)
  21718. return "mainQuest." + error;
  21719. }
  21720. return null;
  21721. };
  21722. /**
  21723. * Creates a quest_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  21724. * @function fromObject
  21725. * @memberof game.quest_get_data_rsp
  21726. * @static
  21727. * @param {Object.<string,*>} object Plain object
  21728. * @returns {game.quest_get_data_rsp} quest_get_data_rsp
  21729. */
  21730. quest_get_data_rsp.fromObject = function fromObject(object) {
  21731. if (object instanceof $root.game.quest_get_data_rsp)
  21732. return object;
  21733. let message = new $root.game.quest_get_data_rsp();
  21734. if (object.errno != null)
  21735. if ($util.Long)
  21736. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  21737. else if (typeof object.errno === "string")
  21738. message.errno = parseInt(object.errno, 10);
  21739. else if (typeof object.errno === "number")
  21740. message.errno = object.errno;
  21741. else if (typeof object.errno === "object")
  21742. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  21743. if (object.dlv != null)
  21744. if ($util.Long)
  21745. (message.dlv = $util.Long.fromValue(object.dlv)).unsigned = false;
  21746. else if (typeof object.dlv === "string")
  21747. message.dlv = parseInt(object.dlv, 10);
  21748. else if (typeof object.dlv === "number")
  21749. message.dlv = object.dlv;
  21750. else if (typeof object.dlv === "object")
  21751. message.dlv = new $util.LongBits(object.dlv.low >>> 0, object.dlv.high >>> 0).toNumber();
  21752. if (object.wlv != null)
  21753. if ($util.Long)
  21754. (message.wlv = $util.Long.fromValue(object.wlv)).unsigned = false;
  21755. else if (typeof object.wlv === "string")
  21756. message.wlv = parseInt(object.wlv, 10);
  21757. else if (typeof object.wlv === "number")
  21758. message.wlv = object.wlv;
  21759. else if (typeof object.wlv === "object")
  21760. message.wlv = new $util.LongBits(object.wlv.low >>> 0, object.wlv.high >>> 0).toNumber();
  21761. if (object.daward != null)
  21762. if ($util.Long)
  21763. (message.daward = $util.Long.fromValue(object.daward)).unsigned = false;
  21764. else if (typeof object.daward === "string")
  21765. message.daward = parseInt(object.daward, 10);
  21766. else if (typeof object.daward === "number")
  21767. message.daward = object.daward;
  21768. else if (typeof object.daward === "object")
  21769. message.daward = new $util.LongBits(object.daward.low >>> 0, object.daward.high >>> 0).toNumber();
  21770. if (object.waward != null)
  21771. if ($util.Long)
  21772. (message.waward = $util.Long.fromValue(object.waward)).unsigned = false;
  21773. else if (typeof object.waward === "string")
  21774. message.waward = parseInt(object.waward, 10);
  21775. else if (typeof object.waward === "number")
  21776. message.waward = object.waward;
  21777. else if (typeof object.waward === "object")
  21778. message.waward = new $util.LongBits(object.waward.low >>> 0, object.waward.high >>> 0).toNumber();
  21779. if (object.daily) {
  21780. if (!Array.isArray(object.daily))
  21781. throw TypeError(".game.quest_get_data_rsp.daily: array expected");
  21782. message.daily = [];
  21783. for (let i = 0; i < object.daily.length; ++i) {
  21784. if (typeof object.daily[i] !== "object")
  21785. throw TypeError(".game.quest_get_data_rsp.daily: object expected");
  21786. message.daily[i] = $root.game.quest.fromObject(object.daily[i]);
  21787. }
  21788. }
  21789. if (object.weekly) {
  21790. if (!Array.isArray(object.weekly))
  21791. throw TypeError(".game.quest_get_data_rsp.weekly: array expected");
  21792. message.weekly = [];
  21793. for (let i = 0; i < object.weekly.length; ++i) {
  21794. if (typeof object.weekly[i] !== "object")
  21795. throw TypeError(".game.quest_get_data_rsp.weekly: object expected");
  21796. message.weekly[i] = $root.game.quest.fromObject(object.weekly[i]);
  21797. }
  21798. }
  21799. if (object.achievement) {
  21800. if (!Array.isArray(object.achievement))
  21801. throw TypeError(".game.quest_get_data_rsp.achievement: array expected");
  21802. message.achievement = [];
  21803. for (let i = 0; i < object.achievement.length; ++i) {
  21804. if (typeof object.achievement[i] !== "object")
  21805. throw TypeError(".game.quest_get_data_rsp.achievement: object expected");
  21806. message.achievement[i] = $root.game.quest.fromObject(object.achievement[i]);
  21807. }
  21808. }
  21809. if (object.mainQuest != null) {
  21810. if (typeof object.mainQuest !== "object")
  21811. throw TypeError(".game.quest_get_data_rsp.mainQuest: object expected");
  21812. message.mainQuest = $root.game.quest.fromObject(object.mainQuest);
  21813. }
  21814. return message;
  21815. };
  21816. /**
  21817. * Creates a plain object from a quest_get_data_rsp message. Also converts values to other types if specified.
  21818. * @function toObject
  21819. * @memberof game.quest_get_data_rsp
  21820. * @static
  21821. * @param {game.quest_get_data_rsp} message quest_get_data_rsp
  21822. * @param {$protobuf.IConversionOptions} [options] Conversion options
  21823. * @returns {Object.<string,*>} Plain object
  21824. */
  21825. quest_get_data_rsp.toObject = function toObject(message, options) {
  21826. if (!options)
  21827. options = {};
  21828. let object = {};
  21829. if (options.arrays || options.defaults) {
  21830. object.daily = [];
  21831. object.weekly = [];
  21832. object.achievement = [];
  21833. }
  21834. if (options.defaults) {
  21835. if ($util.Long) {
  21836. let long = new $util.Long(0, 0, false);
  21837. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21838. } else
  21839. object.errno = options.longs === String ? "0" : 0;
  21840. if ($util.Long) {
  21841. let long = new $util.Long(0, 0, false);
  21842. object.dlv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21843. } else
  21844. object.dlv = options.longs === String ? "0" : 0;
  21845. if ($util.Long) {
  21846. let long = new $util.Long(0, 0, false);
  21847. object.wlv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21848. } else
  21849. object.wlv = options.longs === String ? "0" : 0;
  21850. if ($util.Long) {
  21851. let long = new $util.Long(0, 0, false);
  21852. object.daward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21853. } else
  21854. object.daward = options.longs === String ? "0" : 0;
  21855. if ($util.Long) {
  21856. let long = new $util.Long(0, 0, false);
  21857. object.waward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  21858. } else
  21859. object.waward = options.longs === String ? "0" : 0;
  21860. object.mainQuest = null;
  21861. }
  21862. if (message.errno != null && message.hasOwnProperty("errno"))
  21863. if (typeof message.errno === "number")
  21864. object.errno = options.longs === String ? String(message.errno) : message.errno;
  21865. else
  21866. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  21867. if (message.dlv != null && message.hasOwnProperty("dlv"))
  21868. if (typeof message.dlv === "number")
  21869. object.dlv = options.longs === String ? String(message.dlv) : message.dlv;
  21870. else
  21871. object.dlv = options.longs === String ? $util.Long.prototype.toString.call(message.dlv) : options.longs === Number ? new $util.LongBits(message.dlv.low >>> 0, message.dlv.high >>> 0).toNumber() : message.dlv;
  21872. if (message.wlv != null && message.hasOwnProperty("wlv"))
  21873. if (typeof message.wlv === "number")
  21874. object.wlv = options.longs === String ? String(message.wlv) : message.wlv;
  21875. else
  21876. object.wlv = options.longs === String ? $util.Long.prototype.toString.call(message.wlv) : options.longs === Number ? new $util.LongBits(message.wlv.low >>> 0, message.wlv.high >>> 0).toNumber() : message.wlv;
  21877. if (message.daward != null && message.hasOwnProperty("daward"))
  21878. if (typeof message.daward === "number")
  21879. object.daward = options.longs === String ? String(message.daward) : message.daward;
  21880. else
  21881. object.daward = options.longs === String ? $util.Long.prototype.toString.call(message.daward) : options.longs === Number ? new $util.LongBits(message.daward.low >>> 0, message.daward.high >>> 0).toNumber() : message.daward;
  21882. if (message.waward != null && message.hasOwnProperty("waward"))
  21883. if (typeof message.waward === "number")
  21884. object.waward = options.longs === String ? String(message.waward) : message.waward;
  21885. else
  21886. object.waward = options.longs === String ? $util.Long.prototype.toString.call(message.waward) : options.longs === Number ? new $util.LongBits(message.waward.low >>> 0, message.waward.high >>> 0).toNumber() : message.waward;
  21887. if (message.daily && message.daily.length) {
  21888. object.daily = [];
  21889. for (let j = 0; j < message.daily.length; ++j)
  21890. object.daily[j] = $root.game.quest.toObject(message.daily[j], options);
  21891. }
  21892. if (message.weekly && message.weekly.length) {
  21893. object.weekly = [];
  21894. for (let j = 0; j < message.weekly.length; ++j)
  21895. object.weekly[j] = $root.game.quest.toObject(message.weekly[j], options);
  21896. }
  21897. if (message.achievement && message.achievement.length) {
  21898. object.achievement = [];
  21899. for (let j = 0; j < message.achievement.length; ++j)
  21900. object.achievement[j] = $root.game.quest.toObject(message.achievement[j], options);
  21901. }
  21902. if (message.mainQuest != null && message.hasOwnProperty("mainQuest"))
  21903. object.mainQuest = $root.game.quest.toObject(message.mainQuest, options);
  21904. return object;
  21905. };
  21906. /**
  21907. * Converts this quest_get_data_rsp to JSON.
  21908. * @function toJSON
  21909. * @memberof game.quest_get_data_rsp
  21910. * @instance
  21911. * @returns {Object.<string,*>} JSON object
  21912. */
  21913. quest_get_data_rsp.prototype.toJSON = function toJSON() {
  21914. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  21915. };
  21916. return quest_get_data_rsp;
  21917. })();
  21918. game.quest_get_award = (function() {
  21919. /**
  21920. * Properties of a quest_get_award.
  21921. * @memberof game
  21922. * @interface Iquest_get_award
  21923. * @property {number|Long|null} [id] quest_get_award id
  21924. */
  21925. /**
  21926. * Constructs a new quest_get_award.
  21927. * @memberof game
  21928. * @classdesc Represents a quest_get_award.
  21929. * @implements Iquest_get_award
  21930. * @constructor
  21931. * @param {game.Iquest_get_award=} [properties] Properties to set
  21932. */
  21933. function quest_get_award(properties) {
  21934. if (properties)
  21935. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  21936. if (properties[keys[i]] != null)
  21937. this[keys[i]] = properties[keys[i]];
  21938. }
  21939. /**
  21940. * quest_get_award id.
  21941. * @member {number|Long} id
  21942. * @memberof game.quest_get_award
  21943. * @instance
  21944. */
  21945. quest_get_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  21946. /**
  21947. * Creates a new quest_get_award instance using the specified properties.
  21948. * @function create
  21949. * @memberof game.quest_get_award
  21950. * @static
  21951. * @param {game.Iquest_get_award=} [properties] Properties to set
  21952. * @returns {game.quest_get_award} quest_get_award instance
  21953. */
  21954. quest_get_award.create = function create(properties) {
  21955. return new quest_get_award(properties);
  21956. };
  21957. /**
  21958. * Encodes the specified quest_get_award message. Does not implicitly {@link game.quest_get_award.verify|verify} messages.
  21959. * @function encode
  21960. * @memberof game.quest_get_award
  21961. * @static
  21962. * @param {game.Iquest_get_award} message quest_get_award message or plain object to encode
  21963. * @param {$protobuf.Writer} [writer] Writer to encode to
  21964. * @returns {$protobuf.Writer} Writer
  21965. */
  21966. quest_get_award.encode = function encode(message, writer) {
  21967. if (!writer)
  21968. writer = $Writer.create();
  21969. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  21970. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  21971. return writer;
  21972. };
  21973. /**
  21974. * Encodes the specified quest_get_award message, length delimited. Does not implicitly {@link game.quest_get_award.verify|verify} messages.
  21975. * @function encodeDelimited
  21976. * @memberof game.quest_get_award
  21977. * @static
  21978. * @param {game.Iquest_get_award} message quest_get_award message or plain object to encode
  21979. * @param {$protobuf.Writer} [writer] Writer to encode to
  21980. * @returns {$protobuf.Writer} Writer
  21981. */
  21982. quest_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  21983. return this.encode(message, writer).ldelim();
  21984. };
  21985. /**
  21986. * Decodes a quest_get_award message from the specified reader or buffer.
  21987. * @function decode
  21988. * @memberof game.quest_get_award
  21989. * @static
  21990. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  21991. * @param {number} [length] Message length if known beforehand
  21992. * @returns {game.quest_get_award} quest_get_award
  21993. * @throws {Error} If the payload is not a reader or valid buffer
  21994. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  21995. */
  21996. quest_get_award.decode = function decode(reader, length) {
  21997. if (!(reader instanceof $Reader))
  21998. reader = $Reader.create(reader);
  21999. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_award();
  22000. while (reader.pos < end) {
  22001. let tag = reader.uint32();
  22002. switch (tag >>> 3) {
  22003. case 1:
  22004. message.id = reader.int64();
  22005. break;
  22006. default:
  22007. reader.skipType(tag & 7);
  22008. break;
  22009. }
  22010. }
  22011. return message;
  22012. };
  22013. /**
  22014. * Decodes a quest_get_award message from the specified reader or buffer, length delimited.
  22015. * @function decodeDelimited
  22016. * @memberof game.quest_get_award
  22017. * @static
  22018. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22019. * @returns {game.quest_get_award} quest_get_award
  22020. * @throws {Error} If the payload is not a reader or valid buffer
  22021. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22022. */
  22023. quest_get_award.decodeDelimited = function decodeDelimited(reader) {
  22024. if (!(reader instanceof $Reader))
  22025. reader = new $Reader(reader);
  22026. return this.decode(reader, reader.uint32());
  22027. };
  22028. /**
  22029. * Verifies a quest_get_award message.
  22030. * @function verify
  22031. * @memberof game.quest_get_award
  22032. * @static
  22033. * @param {Object.<string,*>} message Plain object to verify
  22034. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22035. */
  22036. quest_get_award.verify = function verify(message) {
  22037. if (typeof message !== "object" || message === null)
  22038. return "object expected";
  22039. if (message.id != null && message.hasOwnProperty("id"))
  22040. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  22041. return "id: integer|Long expected";
  22042. return null;
  22043. };
  22044. /**
  22045. * Creates a quest_get_award message from a plain object. Also converts values to their respective internal types.
  22046. * @function fromObject
  22047. * @memberof game.quest_get_award
  22048. * @static
  22049. * @param {Object.<string,*>} object Plain object
  22050. * @returns {game.quest_get_award} quest_get_award
  22051. */
  22052. quest_get_award.fromObject = function fromObject(object) {
  22053. if (object instanceof $root.game.quest_get_award)
  22054. return object;
  22055. let message = new $root.game.quest_get_award();
  22056. if (object.id != null)
  22057. if ($util.Long)
  22058. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  22059. else if (typeof object.id === "string")
  22060. message.id = parseInt(object.id, 10);
  22061. else if (typeof object.id === "number")
  22062. message.id = object.id;
  22063. else if (typeof object.id === "object")
  22064. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  22065. return message;
  22066. };
  22067. /**
  22068. * Creates a plain object from a quest_get_award message. Also converts values to other types if specified.
  22069. * @function toObject
  22070. * @memberof game.quest_get_award
  22071. * @static
  22072. * @param {game.quest_get_award} message quest_get_award
  22073. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22074. * @returns {Object.<string,*>} Plain object
  22075. */
  22076. quest_get_award.toObject = function toObject(message, options) {
  22077. if (!options)
  22078. options = {};
  22079. let object = {};
  22080. if (options.defaults)
  22081. if ($util.Long) {
  22082. let long = new $util.Long(0, 0, false);
  22083. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22084. } else
  22085. object.id = options.longs === String ? "0" : 0;
  22086. if (message.id != null && message.hasOwnProperty("id"))
  22087. if (typeof message.id === "number")
  22088. object.id = options.longs === String ? String(message.id) : message.id;
  22089. else
  22090. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  22091. return object;
  22092. };
  22093. /**
  22094. * Converts this quest_get_award to JSON.
  22095. * @function toJSON
  22096. * @memberof game.quest_get_award
  22097. * @instance
  22098. * @returns {Object.<string,*>} JSON object
  22099. */
  22100. quest_get_award.prototype.toJSON = function toJSON() {
  22101. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22102. };
  22103. return quest_get_award;
  22104. })();
  22105. game.quest_get_award_rsp = (function() {
  22106. /**
  22107. * Properties of a quest_get_award_rsp.
  22108. * @memberof game
  22109. * @interface Iquest_get_award_rsp
  22110. * @property {number|Long|null} [errno] quest_get_award_rsp errno
  22111. * @property {number|Long|null} [id] quest_get_award_rsp id
  22112. * @property {game.Iquest|null} [data] quest_get_award_rsp data
  22113. */
  22114. /**
  22115. * Constructs a new quest_get_award_rsp.
  22116. * @memberof game
  22117. * @classdesc Represents a quest_get_award_rsp.
  22118. * @implements Iquest_get_award_rsp
  22119. * @constructor
  22120. * @param {game.Iquest_get_award_rsp=} [properties] Properties to set
  22121. */
  22122. function quest_get_award_rsp(properties) {
  22123. if (properties)
  22124. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22125. if (properties[keys[i]] != null)
  22126. this[keys[i]] = properties[keys[i]];
  22127. }
  22128. /**
  22129. * quest_get_award_rsp errno.
  22130. * @member {number|Long} errno
  22131. * @memberof game.quest_get_award_rsp
  22132. * @instance
  22133. */
  22134. quest_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22135. /**
  22136. * quest_get_award_rsp id.
  22137. * @member {number|Long} id
  22138. * @memberof game.quest_get_award_rsp
  22139. * @instance
  22140. */
  22141. quest_get_award_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22142. /**
  22143. * quest_get_award_rsp data.
  22144. * @member {game.Iquest|null|undefined} data
  22145. * @memberof game.quest_get_award_rsp
  22146. * @instance
  22147. */
  22148. quest_get_award_rsp.prototype.data = null;
  22149. /**
  22150. * Creates a new quest_get_award_rsp instance using the specified properties.
  22151. * @function create
  22152. * @memberof game.quest_get_award_rsp
  22153. * @static
  22154. * @param {game.Iquest_get_award_rsp=} [properties] Properties to set
  22155. * @returns {game.quest_get_award_rsp} quest_get_award_rsp instance
  22156. */
  22157. quest_get_award_rsp.create = function create(properties) {
  22158. return new quest_get_award_rsp(properties);
  22159. };
  22160. /**
  22161. * Encodes the specified quest_get_award_rsp message. Does not implicitly {@link game.quest_get_award_rsp.verify|verify} messages.
  22162. * @function encode
  22163. * @memberof game.quest_get_award_rsp
  22164. * @static
  22165. * @param {game.Iquest_get_award_rsp} message quest_get_award_rsp message or plain object to encode
  22166. * @param {$protobuf.Writer} [writer] Writer to encode to
  22167. * @returns {$protobuf.Writer} Writer
  22168. */
  22169. quest_get_award_rsp.encode = function encode(message, writer) {
  22170. if (!writer)
  22171. writer = $Writer.create();
  22172. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  22173. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  22174. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  22175. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  22176. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  22177. $root.game.quest.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  22178. return writer;
  22179. };
  22180. /**
  22181. * Encodes the specified quest_get_award_rsp message, length delimited. Does not implicitly {@link game.quest_get_award_rsp.verify|verify} messages.
  22182. * @function encodeDelimited
  22183. * @memberof game.quest_get_award_rsp
  22184. * @static
  22185. * @param {game.Iquest_get_award_rsp} message quest_get_award_rsp message or plain object to encode
  22186. * @param {$protobuf.Writer} [writer] Writer to encode to
  22187. * @returns {$protobuf.Writer} Writer
  22188. */
  22189. quest_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  22190. return this.encode(message, writer).ldelim();
  22191. };
  22192. /**
  22193. * Decodes a quest_get_award_rsp message from the specified reader or buffer.
  22194. * @function decode
  22195. * @memberof game.quest_get_award_rsp
  22196. * @static
  22197. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22198. * @param {number} [length] Message length if known beforehand
  22199. * @returns {game.quest_get_award_rsp} quest_get_award_rsp
  22200. * @throws {Error} If the payload is not a reader or valid buffer
  22201. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22202. */
  22203. quest_get_award_rsp.decode = function decode(reader, length) {
  22204. if (!(reader instanceof $Reader))
  22205. reader = $Reader.create(reader);
  22206. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_get_award_rsp();
  22207. while (reader.pos < end) {
  22208. let tag = reader.uint32();
  22209. switch (tag >>> 3) {
  22210. case 1:
  22211. message.errno = reader.int64();
  22212. break;
  22213. case 2:
  22214. message.id = reader.int64();
  22215. break;
  22216. case 3:
  22217. message.data = $root.game.quest.decode(reader, reader.uint32());
  22218. break;
  22219. default:
  22220. reader.skipType(tag & 7);
  22221. break;
  22222. }
  22223. }
  22224. return message;
  22225. };
  22226. /**
  22227. * Decodes a quest_get_award_rsp message from the specified reader or buffer, length delimited.
  22228. * @function decodeDelimited
  22229. * @memberof game.quest_get_award_rsp
  22230. * @static
  22231. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22232. * @returns {game.quest_get_award_rsp} quest_get_award_rsp
  22233. * @throws {Error} If the payload is not a reader or valid buffer
  22234. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22235. */
  22236. quest_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  22237. if (!(reader instanceof $Reader))
  22238. reader = new $Reader(reader);
  22239. return this.decode(reader, reader.uint32());
  22240. };
  22241. /**
  22242. * Verifies a quest_get_award_rsp message.
  22243. * @function verify
  22244. * @memberof game.quest_get_award_rsp
  22245. * @static
  22246. * @param {Object.<string,*>} message Plain object to verify
  22247. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22248. */
  22249. quest_get_award_rsp.verify = function verify(message) {
  22250. if (typeof message !== "object" || message === null)
  22251. return "object expected";
  22252. if (message.errno != null && message.hasOwnProperty("errno"))
  22253. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  22254. return "errno: integer|Long expected";
  22255. if (message.id != null && message.hasOwnProperty("id"))
  22256. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  22257. return "id: integer|Long expected";
  22258. if (message.data != null && message.hasOwnProperty("data")) {
  22259. let error = $root.game.quest.verify(message.data);
  22260. if (error)
  22261. return "data." + error;
  22262. }
  22263. return null;
  22264. };
  22265. /**
  22266. * Creates a quest_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  22267. * @function fromObject
  22268. * @memberof game.quest_get_award_rsp
  22269. * @static
  22270. * @param {Object.<string,*>} object Plain object
  22271. * @returns {game.quest_get_award_rsp} quest_get_award_rsp
  22272. */
  22273. quest_get_award_rsp.fromObject = function fromObject(object) {
  22274. if (object instanceof $root.game.quest_get_award_rsp)
  22275. return object;
  22276. let message = new $root.game.quest_get_award_rsp();
  22277. if (object.errno != null)
  22278. if ($util.Long)
  22279. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  22280. else if (typeof object.errno === "string")
  22281. message.errno = parseInt(object.errno, 10);
  22282. else if (typeof object.errno === "number")
  22283. message.errno = object.errno;
  22284. else if (typeof object.errno === "object")
  22285. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  22286. if (object.id != null)
  22287. if ($util.Long)
  22288. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  22289. else if (typeof object.id === "string")
  22290. message.id = parseInt(object.id, 10);
  22291. else if (typeof object.id === "number")
  22292. message.id = object.id;
  22293. else if (typeof object.id === "object")
  22294. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  22295. if (object.data != null) {
  22296. if (typeof object.data !== "object")
  22297. throw TypeError(".game.quest_get_award_rsp.data: object expected");
  22298. message.data = $root.game.quest.fromObject(object.data);
  22299. }
  22300. return message;
  22301. };
  22302. /**
  22303. * Creates a plain object from a quest_get_award_rsp message. Also converts values to other types if specified.
  22304. * @function toObject
  22305. * @memberof game.quest_get_award_rsp
  22306. * @static
  22307. * @param {game.quest_get_award_rsp} message quest_get_award_rsp
  22308. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22309. * @returns {Object.<string,*>} Plain object
  22310. */
  22311. quest_get_award_rsp.toObject = function toObject(message, options) {
  22312. if (!options)
  22313. options = {};
  22314. let object = {};
  22315. if (options.defaults) {
  22316. if ($util.Long) {
  22317. let long = new $util.Long(0, 0, false);
  22318. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22319. } else
  22320. object.errno = options.longs === String ? "0" : 0;
  22321. if ($util.Long) {
  22322. let long = new $util.Long(0, 0, false);
  22323. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22324. } else
  22325. object.id = options.longs === String ? "0" : 0;
  22326. object.data = null;
  22327. }
  22328. if (message.errno != null && message.hasOwnProperty("errno"))
  22329. if (typeof message.errno === "number")
  22330. object.errno = options.longs === String ? String(message.errno) : message.errno;
  22331. else
  22332. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  22333. if (message.id != null && message.hasOwnProperty("id"))
  22334. if (typeof message.id === "number")
  22335. object.id = options.longs === String ? String(message.id) : message.id;
  22336. else
  22337. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  22338. if (message.data != null && message.hasOwnProperty("data"))
  22339. object.data = $root.game.quest.toObject(message.data, options);
  22340. return object;
  22341. };
  22342. /**
  22343. * Converts this quest_get_award_rsp to JSON.
  22344. * @function toJSON
  22345. * @memberof game.quest_get_award_rsp
  22346. * @instance
  22347. * @returns {Object.<string,*>} JSON object
  22348. */
  22349. quest_get_award_rsp.prototype.toJSON = function toJSON() {
  22350. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22351. };
  22352. return quest_get_award_rsp;
  22353. })();
  22354. game.quest_active_award = (function() {
  22355. /**
  22356. * Properties of a quest_active_award.
  22357. * @memberof game
  22358. * @interface Iquest_active_award
  22359. * @property {number|Long|null} [type] quest_active_award type
  22360. */
  22361. /**
  22362. * Constructs a new quest_active_award.
  22363. * @memberof game
  22364. * @classdesc Represents a quest_active_award.
  22365. * @implements Iquest_active_award
  22366. * @constructor
  22367. * @param {game.Iquest_active_award=} [properties] Properties to set
  22368. */
  22369. function quest_active_award(properties) {
  22370. if (properties)
  22371. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22372. if (properties[keys[i]] != null)
  22373. this[keys[i]] = properties[keys[i]];
  22374. }
  22375. /**
  22376. * quest_active_award type.
  22377. * @member {number|Long} type
  22378. * @memberof game.quest_active_award
  22379. * @instance
  22380. */
  22381. quest_active_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22382. /**
  22383. * Creates a new quest_active_award instance using the specified properties.
  22384. * @function create
  22385. * @memberof game.quest_active_award
  22386. * @static
  22387. * @param {game.Iquest_active_award=} [properties] Properties to set
  22388. * @returns {game.quest_active_award} quest_active_award instance
  22389. */
  22390. quest_active_award.create = function create(properties) {
  22391. return new quest_active_award(properties);
  22392. };
  22393. /**
  22394. * Encodes the specified quest_active_award message. Does not implicitly {@link game.quest_active_award.verify|verify} messages.
  22395. * @function encode
  22396. * @memberof game.quest_active_award
  22397. * @static
  22398. * @param {game.Iquest_active_award} message quest_active_award message or plain object to encode
  22399. * @param {$protobuf.Writer} [writer] Writer to encode to
  22400. * @returns {$protobuf.Writer} Writer
  22401. */
  22402. quest_active_award.encode = function encode(message, writer) {
  22403. if (!writer)
  22404. writer = $Writer.create();
  22405. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  22406. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  22407. return writer;
  22408. };
  22409. /**
  22410. * Encodes the specified quest_active_award message, length delimited. Does not implicitly {@link game.quest_active_award.verify|verify} messages.
  22411. * @function encodeDelimited
  22412. * @memberof game.quest_active_award
  22413. * @static
  22414. * @param {game.Iquest_active_award} message quest_active_award message or plain object to encode
  22415. * @param {$protobuf.Writer} [writer] Writer to encode to
  22416. * @returns {$protobuf.Writer} Writer
  22417. */
  22418. quest_active_award.encodeDelimited = function encodeDelimited(message, writer) {
  22419. return this.encode(message, writer).ldelim();
  22420. };
  22421. /**
  22422. * Decodes a quest_active_award message from the specified reader or buffer.
  22423. * @function decode
  22424. * @memberof game.quest_active_award
  22425. * @static
  22426. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22427. * @param {number} [length] Message length if known beforehand
  22428. * @returns {game.quest_active_award} quest_active_award
  22429. * @throws {Error} If the payload is not a reader or valid buffer
  22430. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22431. */
  22432. quest_active_award.decode = function decode(reader, length) {
  22433. if (!(reader instanceof $Reader))
  22434. reader = $Reader.create(reader);
  22435. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_active_award();
  22436. while (reader.pos < end) {
  22437. let tag = reader.uint32();
  22438. switch (tag >>> 3) {
  22439. case 1:
  22440. message.type = reader.int64();
  22441. break;
  22442. default:
  22443. reader.skipType(tag & 7);
  22444. break;
  22445. }
  22446. }
  22447. return message;
  22448. };
  22449. /**
  22450. * Decodes a quest_active_award message from the specified reader or buffer, length delimited.
  22451. * @function decodeDelimited
  22452. * @memberof game.quest_active_award
  22453. * @static
  22454. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22455. * @returns {game.quest_active_award} quest_active_award
  22456. * @throws {Error} If the payload is not a reader or valid buffer
  22457. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22458. */
  22459. quest_active_award.decodeDelimited = function decodeDelimited(reader) {
  22460. if (!(reader instanceof $Reader))
  22461. reader = new $Reader(reader);
  22462. return this.decode(reader, reader.uint32());
  22463. };
  22464. /**
  22465. * Verifies a quest_active_award message.
  22466. * @function verify
  22467. * @memberof game.quest_active_award
  22468. * @static
  22469. * @param {Object.<string,*>} message Plain object to verify
  22470. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22471. */
  22472. quest_active_award.verify = function verify(message) {
  22473. if (typeof message !== "object" || message === null)
  22474. return "object expected";
  22475. if (message.type != null && message.hasOwnProperty("type"))
  22476. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  22477. return "type: integer|Long expected";
  22478. return null;
  22479. };
  22480. /**
  22481. * Creates a quest_active_award message from a plain object. Also converts values to their respective internal types.
  22482. * @function fromObject
  22483. * @memberof game.quest_active_award
  22484. * @static
  22485. * @param {Object.<string,*>} object Plain object
  22486. * @returns {game.quest_active_award} quest_active_award
  22487. */
  22488. quest_active_award.fromObject = function fromObject(object) {
  22489. if (object instanceof $root.game.quest_active_award)
  22490. return object;
  22491. let message = new $root.game.quest_active_award();
  22492. if (object.type != null)
  22493. if ($util.Long)
  22494. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  22495. else if (typeof object.type === "string")
  22496. message.type = parseInt(object.type, 10);
  22497. else if (typeof object.type === "number")
  22498. message.type = object.type;
  22499. else if (typeof object.type === "object")
  22500. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  22501. return message;
  22502. };
  22503. /**
  22504. * Creates a plain object from a quest_active_award message. Also converts values to other types if specified.
  22505. * @function toObject
  22506. * @memberof game.quest_active_award
  22507. * @static
  22508. * @param {game.quest_active_award} message quest_active_award
  22509. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22510. * @returns {Object.<string,*>} Plain object
  22511. */
  22512. quest_active_award.toObject = function toObject(message, options) {
  22513. if (!options)
  22514. options = {};
  22515. let object = {};
  22516. if (options.defaults)
  22517. if ($util.Long) {
  22518. let long = new $util.Long(0, 0, false);
  22519. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22520. } else
  22521. object.type = options.longs === String ? "0" : 0;
  22522. if (message.type != null && message.hasOwnProperty("type"))
  22523. if (typeof message.type === "number")
  22524. object.type = options.longs === String ? String(message.type) : message.type;
  22525. else
  22526. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  22527. return object;
  22528. };
  22529. /**
  22530. * Converts this quest_active_award to JSON.
  22531. * @function toJSON
  22532. * @memberof game.quest_active_award
  22533. * @instance
  22534. * @returns {Object.<string,*>} JSON object
  22535. */
  22536. quest_active_award.prototype.toJSON = function toJSON() {
  22537. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22538. };
  22539. return quest_active_award;
  22540. })();
  22541. game.quest_active_award_rsp = (function() {
  22542. /**
  22543. * Properties of a quest_active_award_rsp.
  22544. * @memberof game
  22545. * @interface Iquest_active_award_rsp
  22546. * @property {number|Long|null} [errno] quest_active_award_rsp errno
  22547. * @property {number|Long|null} [type] quest_active_award_rsp type
  22548. * @property {number|Long|null} [award] quest_active_award_rsp award
  22549. */
  22550. /**
  22551. * Constructs a new quest_active_award_rsp.
  22552. * @memberof game
  22553. * @classdesc Represents a quest_active_award_rsp.
  22554. * @implements Iquest_active_award_rsp
  22555. * @constructor
  22556. * @param {game.Iquest_active_award_rsp=} [properties] Properties to set
  22557. */
  22558. function quest_active_award_rsp(properties) {
  22559. if (properties)
  22560. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22561. if (properties[keys[i]] != null)
  22562. this[keys[i]] = properties[keys[i]];
  22563. }
  22564. /**
  22565. * quest_active_award_rsp errno.
  22566. * @member {number|Long} errno
  22567. * @memberof game.quest_active_award_rsp
  22568. * @instance
  22569. */
  22570. quest_active_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22571. /**
  22572. * quest_active_award_rsp type.
  22573. * @member {number|Long} type
  22574. * @memberof game.quest_active_award_rsp
  22575. * @instance
  22576. */
  22577. quest_active_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22578. /**
  22579. * quest_active_award_rsp award.
  22580. * @member {number|Long} award
  22581. * @memberof game.quest_active_award_rsp
  22582. * @instance
  22583. */
  22584. quest_active_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  22585. /**
  22586. * Creates a new quest_active_award_rsp instance using the specified properties.
  22587. * @function create
  22588. * @memberof game.quest_active_award_rsp
  22589. * @static
  22590. * @param {game.Iquest_active_award_rsp=} [properties] Properties to set
  22591. * @returns {game.quest_active_award_rsp} quest_active_award_rsp instance
  22592. */
  22593. quest_active_award_rsp.create = function create(properties) {
  22594. return new quest_active_award_rsp(properties);
  22595. };
  22596. /**
  22597. * Encodes the specified quest_active_award_rsp message. Does not implicitly {@link game.quest_active_award_rsp.verify|verify} messages.
  22598. * @function encode
  22599. * @memberof game.quest_active_award_rsp
  22600. * @static
  22601. * @param {game.Iquest_active_award_rsp} message quest_active_award_rsp message or plain object to encode
  22602. * @param {$protobuf.Writer} [writer] Writer to encode to
  22603. * @returns {$protobuf.Writer} Writer
  22604. */
  22605. quest_active_award_rsp.encode = function encode(message, writer) {
  22606. if (!writer)
  22607. writer = $Writer.create();
  22608. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  22609. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  22610. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  22611. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  22612. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  22613. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  22614. return writer;
  22615. };
  22616. /**
  22617. * Encodes the specified quest_active_award_rsp message, length delimited. Does not implicitly {@link game.quest_active_award_rsp.verify|verify} messages.
  22618. * @function encodeDelimited
  22619. * @memberof game.quest_active_award_rsp
  22620. * @static
  22621. * @param {game.Iquest_active_award_rsp} message quest_active_award_rsp message or plain object to encode
  22622. * @param {$protobuf.Writer} [writer] Writer to encode to
  22623. * @returns {$protobuf.Writer} Writer
  22624. */
  22625. quest_active_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  22626. return this.encode(message, writer).ldelim();
  22627. };
  22628. /**
  22629. * Decodes a quest_active_award_rsp message from the specified reader or buffer.
  22630. * @function decode
  22631. * @memberof game.quest_active_award_rsp
  22632. * @static
  22633. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22634. * @param {number} [length] Message length if known beforehand
  22635. * @returns {game.quest_active_award_rsp} quest_active_award_rsp
  22636. * @throws {Error} If the payload is not a reader or valid buffer
  22637. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22638. */
  22639. quest_active_award_rsp.decode = function decode(reader, length) {
  22640. if (!(reader instanceof $Reader))
  22641. reader = $Reader.create(reader);
  22642. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_active_award_rsp();
  22643. while (reader.pos < end) {
  22644. let tag = reader.uint32();
  22645. switch (tag >>> 3) {
  22646. case 1:
  22647. message.errno = reader.int64();
  22648. break;
  22649. case 2:
  22650. message.type = reader.int64();
  22651. break;
  22652. case 3:
  22653. message.award = reader.int64();
  22654. break;
  22655. default:
  22656. reader.skipType(tag & 7);
  22657. break;
  22658. }
  22659. }
  22660. return message;
  22661. };
  22662. /**
  22663. * Decodes a quest_active_award_rsp message from the specified reader or buffer, length delimited.
  22664. * @function decodeDelimited
  22665. * @memberof game.quest_active_award_rsp
  22666. * @static
  22667. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22668. * @returns {game.quest_active_award_rsp} quest_active_award_rsp
  22669. * @throws {Error} If the payload is not a reader or valid buffer
  22670. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22671. */
  22672. quest_active_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  22673. if (!(reader instanceof $Reader))
  22674. reader = new $Reader(reader);
  22675. return this.decode(reader, reader.uint32());
  22676. };
  22677. /**
  22678. * Verifies a quest_active_award_rsp message.
  22679. * @function verify
  22680. * @memberof game.quest_active_award_rsp
  22681. * @static
  22682. * @param {Object.<string,*>} message Plain object to verify
  22683. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22684. */
  22685. quest_active_award_rsp.verify = function verify(message) {
  22686. if (typeof message !== "object" || message === null)
  22687. return "object expected";
  22688. if (message.errno != null && message.hasOwnProperty("errno"))
  22689. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  22690. return "errno: integer|Long expected";
  22691. if (message.type != null && message.hasOwnProperty("type"))
  22692. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  22693. return "type: integer|Long expected";
  22694. if (message.award != null && message.hasOwnProperty("award"))
  22695. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  22696. return "award: integer|Long expected";
  22697. return null;
  22698. };
  22699. /**
  22700. * Creates a quest_active_award_rsp message from a plain object. Also converts values to their respective internal types.
  22701. * @function fromObject
  22702. * @memberof game.quest_active_award_rsp
  22703. * @static
  22704. * @param {Object.<string,*>} object Plain object
  22705. * @returns {game.quest_active_award_rsp} quest_active_award_rsp
  22706. */
  22707. quest_active_award_rsp.fromObject = function fromObject(object) {
  22708. if (object instanceof $root.game.quest_active_award_rsp)
  22709. return object;
  22710. let message = new $root.game.quest_active_award_rsp();
  22711. if (object.errno != null)
  22712. if ($util.Long)
  22713. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  22714. else if (typeof object.errno === "string")
  22715. message.errno = parseInt(object.errno, 10);
  22716. else if (typeof object.errno === "number")
  22717. message.errno = object.errno;
  22718. else if (typeof object.errno === "object")
  22719. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  22720. if (object.type != null)
  22721. if ($util.Long)
  22722. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  22723. else if (typeof object.type === "string")
  22724. message.type = parseInt(object.type, 10);
  22725. else if (typeof object.type === "number")
  22726. message.type = object.type;
  22727. else if (typeof object.type === "object")
  22728. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  22729. if (object.award != null)
  22730. if ($util.Long)
  22731. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  22732. else if (typeof object.award === "string")
  22733. message.award = parseInt(object.award, 10);
  22734. else if (typeof object.award === "number")
  22735. message.award = object.award;
  22736. else if (typeof object.award === "object")
  22737. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  22738. return message;
  22739. };
  22740. /**
  22741. * Creates a plain object from a quest_active_award_rsp message. Also converts values to other types if specified.
  22742. * @function toObject
  22743. * @memberof game.quest_active_award_rsp
  22744. * @static
  22745. * @param {game.quest_active_award_rsp} message quest_active_award_rsp
  22746. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22747. * @returns {Object.<string,*>} Plain object
  22748. */
  22749. quest_active_award_rsp.toObject = function toObject(message, options) {
  22750. if (!options)
  22751. options = {};
  22752. let object = {};
  22753. if (options.defaults) {
  22754. if ($util.Long) {
  22755. let long = new $util.Long(0, 0, false);
  22756. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22757. } else
  22758. object.errno = options.longs === String ? "0" : 0;
  22759. if ($util.Long) {
  22760. let long = new $util.Long(0, 0, false);
  22761. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22762. } else
  22763. object.type = options.longs === String ? "0" : 0;
  22764. if ($util.Long) {
  22765. let long = new $util.Long(0, 0, false);
  22766. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  22767. } else
  22768. object.award = options.longs === String ? "0" : 0;
  22769. }
  22770. if (message.errno != null && message.hasOwnProperty("errno"))
  22771. if (typeof message.errno === "number")
  22772. object.errno = options.longs === String ? String(message.errno) : message.errno;
  22773. else
  22774. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  22775. if (message.type != null && message.hasOwnProperty("type"))
  22776. if (typeof message.type === "number")
  22777. object.type = options.longs === String ? String(message.type) : message.type;
  22778. else
  22779. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  22780. if (message.award != null && message.hasOwnProperty("award"))
  22781. if (typeof message.award === "number")
  22782. object.award = options.longs === String ? String(message.award) : message.award;
  22783. else
  22784. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  22785. return object;
  22786. };
  22787. /**
  22788. * Converts this quest_active_award_rsp to JSON.
  22789. * @function toJSON
  22790. * @memberof game.quest_active_award_rsp
  22791. * @instance
  22792. * @returns {Object.<string,*>} JSON object
  22793. */
  22794. quest_active_award_rsp.prototype.toJSON = function toJSON() {
  22795. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22796. };
  22797. return quest_active_award_rsp;
  22798. })();
  22799. game.quest_cmplate_notify = (function() {
  22800. /**
  22801. * Properties of a quest_cmplate_notify.
  22802. * @memberof game
  22803. * @interface Iquest_cmplate_notify
  22804. * @property {game.Iquest|null} [data] quest_cmplate_notify data
  22805. */
  22806. /**
  22807. * Constructs a new quest_cmplate_notify.
  22808. * @memberof game
  22809. * @classdesc Represents a quest_cmplate_notify.
  22810. * @implements Iquest_cmplate_notify
  22811. * @constructor
  22812. * @param {game.Iquest_cmplate_notify=} [properties] Properties to set
  22813. */
  22814. function quest_cmplate_notify(properties) {
  22815. if (properties)
  22816. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22817. if (properties[keys[i]] != null)
  22818. this[keys[i]] = properties[keys[i]];
  22819. }
  22820. /**
  22821. * quest_cmplate_notify data.
  22822. * @member {game.Iquest|null|undefined} data
  22823. * @memberof game.quest_cmplate_notify
  22824. * @instance
  22825. */
  22826. quest_cmplate_notify.prototype.data = null;
  22827. /**
  22828. * Creates a new quest_cmplate_notify instance using the specified properties.
  22829. * @function create
  22830. * @memberof game.quest_cmplate_notify
  22831. * @static
  22832. * @param {game.Iquest_cmplate_notify=} [properties] Properties to set
  22833. * @returns {game.quest_cmplate_notify} quest_cmplate_notify instance
  22834. */
  22835. quest_cmplate_notify.create = function create(properties) {
  22836. return new quest_cmplate_notify(properties);
  22837. };
  22838. /**
  22839. * Encodes the specified quest_cmplate_notify message. Does not implicitly {@link game.quest_cmplate_notify.verify|verify} messages.
  22840. * @function encode
  22841. * @memberof game.quest_cmplate_notify
  22842. * @static
  22843. * @param {game.Iquest_cmplate_notify} message quest_cmplate_notify message or plain object to encode
  22844. * @param {$protobuf.Writer} [writer] Writer to encode to
  22845. * @returns {$protobuf.Writer} Writer
  22846. */
  22847. quest_cmplate_notify.encode = function encode(message, writer) {
  22848. if (!writer)
  22849. writer = $Writer.create();
  22850. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  22851. $root.game.quest.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  22852. return writer;
  22853. };
  22854. /**
  22855. * Encodes the specified quest_cmplate_notify message, length delimited. Does not implicitly {@link game.quest_cmplate_notify.verify|verify} messages.
  22856. * @function encodeDelimited
  22857. * @memberof game.quest_cmplate_notify
  22858. * @static
  22859. * @param {game.Iquest_cmplate_notify} message quest_cmplate_notify message or plain object to encode
  22860. * @param {$protobuf.Writer} [writer] Writer to encode to
  22861. * @returns {$protobuf.Writer} Writer
  22862. */
  22863. quest_cmplate_notify.encodeDelimited = function encodeDelimited(message, writer) {
  22864. return this.encode(message, writer).ldelim();
  22865. };
  22866. /**
  22867. * Decodes a quest_cmplate_notify message from the specified reader or buffer.
  22868. * @function decode
  22869. * @memberof game.quest_cmplate_notify
  22870. * @static
  22871. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22872. * @param {number} [length] Message length if known beforehand
  22873. * @returns {game.quest_cmplate_notify} quest_cmplate_notify
  22874. * @throws {Error} If the payload is not a reader or valid buffer
  22875. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22876. */
  22877. quest_cmplate_notify.decode = function decode(reader, length) {
  22878. if (!(reader instanceof $Reader))
  22879. reader = $Reader.create(reader);
  22880. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest_cmplate_notify();
  22881. while (reader.pos < end) {
  22882. let tag = reader.uint32();
  22883. switch (tag >>> 3) {
  22884. case 1:
  22885. message.data = $root.game.quest.decode(reader, reader.uint32());
  22886. break;
  22887. default:
  22888. reader.skipType(tag & 7);
  22889. break;
  22890. }
  22891. }
  22892. return message;
  22893. };
  22894. /**
  22895. * Decodes a quest_cmplate_notify message from the specified reader or buffer, length delimited.
  22896. * @function decodeDelimited
  22897. * @memberof game.quest_cmplate_notify
  22898. * @static
  22899. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  22900. * @returns {game.quest_cmplate_notify} quest_cmplate_notify
  22901. * @throws {Error} If the payload is not a reader or valid buffer
  22902. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  22903. */
  22904. quest_cmplate_notify.decodeDelimited = function decodeDelimited(reader) {
  22905. if (!(reader instanceof $Reader))
  22906. reader = new $Reader(reader);
  22907. return this.decode(reader, reader.uint32());
  22908. };
  22909. /**
  22910. * Verifies a quest_cmplate_notify message.
  22911. * @function verify
  22912. * @memberof game.quest_cmplate_notify
  22913. * @static
  22914. * @param {Object.<string,*>} message Plain object to verify
  22915. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  22916. */
  22917. quest_cmplate_notify.verify = function verify(message) {
  22918. if (typeof message !== "object" || message === null)
  22919. return "object expected";
  22920. if (message.data != null && message.hasOwnProperty("data")) {
  22921. let error = $root.game.quest.verify(message.data);
  22922. if (error)
  22923. return "data." + error;
  22924. }
  22925. return null;
  22926. };
  22927. /**
  22928. * Creates a quest_cmplate_notify message from a plain object. Also converts values to their respective internal types.
  22929. * @function fromObject
  22930. * @memberof game.quest_cmplate_notify
  22931. * @static
  22932. * @param {Object.<string,*>} object Plain object
  22933. * @returns {game.quest_cmplate_notify} quest_cmplate_notify
  22934. */
  22935. quest_cmplate_notify.fromObject = function fromObject(object) {
  22936. if (object instanceof $root.game.quest_cmplate_notify)
  22937. return object;
  22938. let message = new $root.game.quest_cmplate_notify();
  22939. if (object.data != null) {
  22940. if (typeof object.data !== "object")
  22941. throw TypeError(".game.quest_cmplate_notify.data: object expected");
  22942. message.data = $root.game.quest.fromObject(object.data);
  22943. }
  22944. return message;
  22945. };
  22946. /**
  22947. * Creates a plain object from a quest_cmplate_notify message. Also converts values to other types if specified.
  22948. * @function toObject
  22949. * @memberof game.quest_cmplate_notify
  22950. * @static
  22951. * @param {game.quest_cmplate_notify} message quest_cmplate_notify
  22952. * @param {$protobuf.IConversionOptions} [options] Conversion options
  22953. * @returns {Object.<string,*>} Plain object
  22954. */
  22955. quest_cmplate_notify.toObject = function toObject(message, options) {
  22956. if (!options)
  22957. options = {};
  22958. let object = {};
  22959. if (options.defaults)
  22960. object.data = null;
  22961. if (message.data != null && message.hasOwnProperty("data"))
  22962. object.data = $root.game.quest.toObject(message.data, options);
  22963. return object;
  22964. };
  22965. /**
  22966. * Converts this quest_cmplate_notify to JSON.
  22967. * @function toJSON
  22968. * @memberof game.quest_cmplate_notify
  22969. * @instance
  22970. * @returns {Object.<string,*>} JSON object
  22971. */
  22972. quest_cmplate_notify.prototype.toJSON = function toJSON() {
  22973. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  22974. };
  22975. return quest_cmplate_notify;
  22976. })();
  22977. game.manual_get_data = (function() {
  22978. /**
  22979. * Properties of a manual_get_data.
  22980. * @memberof game
  22981. * @interface Imanual_get_data
  22982. * @property {number|Long|null} [moduleid] manual_get_data moduleid
  22983. */
  22984. /**
  22985. * Constructs a new manual_get_data.
  22986. * @memberof game
  22987. * @classdesc Represents a manual_get_data.
  22988. * @implements Imanual_get_data
  22989. * @constructor
  22990. * @param {game.Imanual_get_data=} [properties] Properties to set
  22991. */
  22992. function manual_get_data(properties) {
  22993. if (properties)
  22994. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  22995. if (properties[keys[i]] != null)
  22996. this[keys[i]] = properties[keys[i]];
  22997. }
  22998. /**
  22999. * manual_get_data moduleid.
  23000. * @member {number|Long} moduleid
  23001. * @memberof game.manual_get_data
  23002. * @instance
  23003. */
  23004. manual_get_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23005. /**
  23006. * Creates a new manual_get_data instance using the specified properties.
  23007. * @function create
  23008. * @memberof game.manual_get_data
  23009. * @static
  23010. * @param {game.Imanual_get_data=} [properties] Properties to set
  23011. * @returns {game.manual_get_data} manual_get_data instance
  23012. */
  23013. manual_get_data.create = function create(properties) {
  23014. return new manual_get_data(properties);
  23015. };
  23016. /**
  23017. * Encodes the specified manual_get_data message. Does not implicitly {@link game.manual_get_data.verify|verify} messages.
  23018. * @function encode
  23019. * @memberof game.manual_get_data
  23020. * @static
  23021. * @param {game.Imanual_get_data} message manual_get_data message or plain object to encode
  23022. * @param {$protobuf.Writer} [writer] Writer to encode to
  23023. * @returns {$protobuf.Writer} Writer
  23024. */
  23025. manual_get_data.encode = function encode(message, writer) {
  23026. if (!writer)
  23027. writer = $Writer.create();
  23028. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  23029. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  23030. return writer;
  23031. };
  23032. /**
  23033. * Encodes the specified manual_get_data message, length delimited. Does not implicitly {@link game.manual_get_data.verify|verify} messages.
  23034. * @function encodeDelimited
  23035. * @memberof game.manual_get_data
  23036. * @static
  23037. * @param {game.Imanual_get_data} message manual_get_data message or plain object to encode
  23038. * @param {$protobuf.Writer} [writer] Writer to encode to
  23039. * @returns {$protobuf.Writer} Writer
  23040. */
  23041. manual_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  23042. return this.encode(message, writer).ldelim();
  23043. };
  23044. /**
  23045. * Decodes a manual_get_data message from the specified reader or buffer.
  23046. * @function decode
  23047. * @memberof game.manual_get_data
  23048. * @static
  23049. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23050. * @param {number} [length] Message length if known beforehand
  23051. * @returns {game.manual_get_data} manual_get_data
  23052. * @throws {Error} If the payload is not a reader or valid buffer
  23053. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23054. */
  23055. manual_get_data.decode = function decode(reader, length) {
  23056. if (!(reader instanceof $Reader))
  23057. reader = $Reader.create(reader);
  23058. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_data();
  23059. while (reader.pos < end) {
  23060. let tag = reader.uint32();
  23061. switch (tag >>> 3) {
  23062. case 1:
  23063. message.moduleid = reader.int64();
  23064. break;
  23065. default:
  23066. reader.skipType(tag & 7);
  23067. break;
  23068. }
  23069. }
  23070. return message;
  23071. };
  23072. /**
  23073. * Decodes a manual_get_data message from the specified reader or buffer, length delimited.
  23074. * @function decodeDelimited
  23075. * @memberof game.manual_get_data
  23076. * @static
  23077. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23078. * @returns {game.manual_get_data} manual_get_data
  23079. * @throws {Error} If the payload is not a reader or valid buffer
  23080. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23081. */
  23082. manual_get_data.decodeDelimited = function decodeDelimited(reader) {
  23083. if (!(reader instanceof $Reader))
  23084. reader = new $Reader(reader);
  23085. return this.decode(reader, reader.uint32());
  23086. };
  23087. /**
  23088. * Verifies a manual_get_data message.
  23089. * @function verify
  23090. * @memberof game.manual_get_data
  23091. * @static
  23092. * @param {Object.<string,*>} message Plain object to verify
  23093. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23094. */
  23095. manual_get_data.verify = function verify(message) {
  23096. if (typeof message !== "object" || message === null)
  23097. return "object expected";
  23098. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23099. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  23100. return "moduleid: integer|Long expected";
  23101. return null;
  23102. };
  23103. /**
  23104. * Creates a manual_get_data message from a plain object. Also converts values to their respective internal types.
  23105. * @function fromObject
  23106. * @memberof game.manual_get_data
  23107. * @static
  23108. * @param {Object.<string,*>} object Plain object
  23109. * @returns {game.manual_get_data} manual_get_data
  23110. */
  23111. manual_get_data.fromObject = function fromObject(object) {
  23112. if (object instanceof $root.game.manual_get_data)
  23113. return object;
  23114. let message = new $root.game.manual_get_data();
  23115. if (object.moduleid != null)
  23116. if ($util.Long)
  23117. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  23118. else if (typeof object.moduleid === "string")
  23119. message.moduleid = parseInt(object.moduleid, 10);
  23120. else if (typeof object.moduleid === "number")
  23121. message.moduleid = object.moduleid;
  23122. else if (typeof object.moduleid === "object")
  23123. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  23124. return message;
  23125. };
  23126. /**
  23127. * Creates a plain object from a manual_get_data message. Also converts values to other types if specified.
  23128. * @function toObject
  23129. * @memberof game.manual_get_data
  23130. * @static
  23131. * @param {game.manual_get_data} message manual_get_data
  23132. * @param {$protobuf.IConversionOptions} [options] Conversion options
  23133. * @returns {Object.<string,*>} Plain object
  23134. */
  23135. manual_get_data.toObject = function toObject(message, options) {
  23136. if (!options)
  23137. options = {};
  23138. let object = {};
  23139. if (options.defaults)
  23140. if ($util.Long) {
  23141. let long = new $util.Long(0, 0, false);
  23142. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23143. } else
  23144. object.moduleid = options.longs === String ? "0" : 0;
  23145. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23146. if (typeof message.moduleid === "number")
  23147. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  23148. else
  23149. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  23150. return object;
  23151. };
  23152. /**
  23153. * Converts this manual_get_data to JSON.
  23154. * @function toJSON
  23155. * @memberof game.manual_get_data
  23156. * @instance
  23157. * @returns {Object.<string,*>} JSON object
  23158. */
  23159. manual_get_data.prototype.toJSON = function toJSON() {
  23160. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  23161. };
  23162. return manual_get_data;
  23163. })();
  23164. game.manual_get_data_rsp = (function() {
  23165. /**
  23166. * Properties of a manual_get_data_rsp.
  23167. * @memberof game
  23168. * @interface Imanual_get_data_rsp
  23169. * @property {number|Long|null} [errno] manual_get_data_rsp errno
  23170. * @property {boolean|null} [open] manual_get_data_rsp open
  23171. * @property {number|Long|null} [openTime] manual_get_data_rsp openTime
  23172. * @property {number|Long|null} [level] manual_get_data_rsp level
  23173. * @property {number|Long|null} [exp] manual_get_data_rsp exp
  23174. * @property {number|Long|null} [round] manual_get_data_rsp round
  23175. * @property {Array.<game.Imanual>|null} [list] manual_get_data_rsp list
  23176. * @property {number|Long|null} [moduleid] manual_get_data_rsp moduleid
  23177. */
  23178. /**
  23179. * Constructs a new manual_get_data_rsp.
  23180. * @memberof game
  23181. * @classdesc Represents a manual_get_data_rsp.
  23182. * @implements Imanual_get_data_rsp
  23183. * @constructor
  23184. * @param {game.Imanual_get_data_rsp=} [properties] Properties to set
  23185. */
  23186. function manual_get_data_rsp(properties) {
  23187. this.list = [];
  23188. if (properties)
  23189. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  23190. if (properties[keys[i]] != null)
  23191. this[keys[i]] = properties[keys[i]];
  23192. }
  23193. /**
  23194. * manual_get_data_rsp errno.
  23195. * @member {number|Long} errno
  23196. * @memberof game.manual_get_data_rsp
  23197. * @instance
  23198. */
  23199. manual_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23200. /**
  23201. * manual_get_data_rsp open.
  23202. * @member {boolean} open
  23203. * @memberof game.manual_get_data_rsp
  23204. * @instance
  23205. */
  23206. manual_get_data_rsp.prototype.open = false;
  23207. /**
  23208. * manual_get_data_rsp openTime.
  23209. * @member {number|Long} openTime
  23210. * @memberof game.manual_get_data_rsp
  23211. * @instance
  23212. */
  23213. manual_get_data_rsp.prototype.openTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23214. /**
  23215. * manual_get_data_rsp level.
  23216. * @member {number|Long} level
  23217. * @memberof game.manual_get_data_rsp
  23218. * @instance
  23219. */
  23220. manual_get_data_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23221. /**
  23222. * manual_get_data_rsp exp.
  23223. * @member {number|Long} exp
  23224. * @memberof game.manual_get_data_rsp
  23225. * @instance
  23226. */
  23227. manual_get_data_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23228. /**
  23229. * manual_get_data_rsp round.
  23230. * @member {number|Long} round
  23231. * @memberof game.manual_get_data_rsp
  23232. * @instance
  23233. */
  23234. manual_get_data_rsp.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23235. /**
  23236. * manual_get_data_rsp list.
  23237. * @member {Array.<game.Imanual>} list
  23238. * @memberof game.manual_get_data_rsp
  23239. * @instance
  23240. */
  23241. manual_get_data_rsp.prototype.list = $util.emptyArray;
  23242. /**
  23243. * manual_get_data_rsp moduleid.
  23244. * @member {number|Long} moduleid
  23245. * @memberof game.manual_get_data_rsp
  23246. * @instance
  23247. */
  23248. manual_get_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23249. /**
  23250. * Creates a new manual_get_data_rsp instance using the specified properties.
  23251. * @function create
  23252. * @memberof game.manual_get_data_rsp
  23253. * @static
  23254. * @param {game.Imanual_get_data_rsp=} [properties] Properties to set
  23255. * @returns {game.manual_get_data_rsp} manual_get_data_rsp instance
  23256. */
  23257. manual_get_data_rsp.create = function create(properties) {
  23258. return new manual_get_data_rsp(properties);
  23259. };
  23260. /**
  23261. * Encodes the specified manual_get_data_rsp message. Does not implicitly {@link game.manual_get_data_rsp.verify|verify} messages.
  23262. * @function encode
  23263. * @memberof game.manual_get_data_rsp
  23264. * @static
  23265. * @param {game.Imanual_get_data_rsp} message manual_get_data_rsp message or plain object to encode
  23266. * @param {$protobuf.Writer} [writer] Writer to encode to
  23267. * @returns {$protobuf.Writer} Writer
  23268. */
  23269. manual_get_data_rsp.encode = function encode(message, writer) {
  23270. if (!writer)
  23271. writer = $Writer.create();
  23272. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  23273. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  23274. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  23275. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
  23276. if (message.openTime != null && Object.hasOwnProperty.call(message, "openTime"))
  23277. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.openTime);
  23278. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  23279. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  23280. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  23281. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.exp);
  23282. if (message.round != null && Object.hasOwnProperty.call(message, "round"))
  23283. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.round);
  23284. if (message.list != null && message.list.length)
  23285. for (let i = 0; i < message.list.length; ++i)
  23286. $root.game.manual.encode(message.list[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  23287. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  23288. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.moduleid);
  23289. return writer;
  23290. };
  23291. /**
  23292. * Encodes the specified manual_get_data_rsp message, length delimited. Does not implicitly {@link game.manual_get_data_rsp.verify|verify} messages.
  23293. * @function encodeDelimited
  23294. * @memberof game.manual_get_data_rsp
  23295. * @static
  23296. * @param {game.Imanual_get_data_rsp} message manual_get_data_rsp message or plain object to encode
  23297. * @param {$protobuf.Writer} [writer] Writer to encode to
  23298. * @returns {$protobuf.Writer} Writer
  23299. */
  23300. manual_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  23301. return this.encode(message, writer).ldelim();
  23302. };
  23303. /**
  23304. * Decodes a manual_get_data_rsp message from the specified reader or buffer.
  23305. * @function decode
  23306. * @memberof game.manual_get_data_rsp
  23307. * @static
  23308. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23309. * @param {number} [length] Message length if known beforehand
  23310. * @returns {game.manual_get_data_rsp} manual_get_data_rsp
  23311. * @throws {Error} If the payload is not a reader or valid buffer
  23312. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23313. */
  23314. manual_get_data_rsp.decode = function decode(reader, length) {
  23315. if (!(reader instanceof $Reader))
  23316. reader = $Reader.create(reader);
  23317. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_data_rsp();
  23318. while (reader.pos < end) {
  23319. let tag = reader.uint32();
  23320. switch (tag >>> 3) {
  23321. case 1:
  23322. message.errno = reader.int64();
  23323. break;
  23324. case 2:
  23325. message.open = reader.bool();
  23326. break;
  23327. case 3:
  23328. message.openTime = reader.int64();
  23329. break;
  23330. case 4:
  23331. message.level = reader.int64();
  23332. break;
  23333. case 5:
  23334. message.exp = reader.int64();
  23335. break;
  23336. case 6:
  23337. message.round = reader.int64();
  23338. break;
  23339. case 7:
  23340. if (!(message.list && message.list.length))
  23341. message.list = [];
  23342. message.list.push($root.game.manual.decode(reader, reader.uint32()));
  23343. break;
  23344. case 8:
  23345. message.moduleid = reader.int64();
  23346. break;
  23347. default:
  23348. reader.skipType(tag & 7);
  23349. break;
  23350. }
  23351. }
  23352. return message;
  23353. };
  23354. /**
  23355. * Decodes a manual_get_data_rsp message from the specified reader or buffer, length delimited.
  23356. * @function decodeDelimited
  23357. * @memberof game.manual_get_data_rsp
  23358. * @static
  23359. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23360. * @returns {game.manual_get_data_rsp} manual_get_data_rsp
  23361. * @throws {Error} If the payload is not a reader or valid buffer
  23362. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23363. */
  23364. manual_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  23365. if (!(reader instanceof $Reader))
  23366. reader = new $Reader(reader);
  23367. return this.decode(reader, reader.uint32());
  23368. };
  23369. /**
  23370. * Verifies a manual_get_data_rsp message.
  23371. * @function verify
  23372. * @memberof game.manual_get_data_rsp
  23373. * @static
  23374. * @param {Object.<string,*>} message Plain object to verify
  23375. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23376. */
  23377. manual_get_data_rsp.verify = function verify(message) {
  23378. if (typeof message !== "object" || message === null)
  23379. return "object expected";
  23380. if (message.errno != null && message.hasOwnProperty("errno"))
  23381. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  23382. return "errno: integer|Long expected";
  23383. if (message.open != null && message.hasOwnProperty("open"))
  23384. if (typeof message.open !== "boolean")
  23385. return "open: boolean expected";
  23386. if (message.openTime != null && message.hasOwnProperty("openTime"))
  23387. if (!$util.isInteger(message.openTime) && !(message.openTime && $util.isInteger(message.openTime.low) && $util.isInteger(message.openTime.high)))
  23388. return "openTime: integer|Long expected";
  23389. if (message.level != null && message.hasOwnProperty("level"))
  23390. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  23391. return "level: integer|Long expected";
  23392. if (message.exp != null && message.hasOwnProperty("exp"))
  23393. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  23394. return "exp: integer|Long expected";
  23395. if (message.round != null && message.hasOwnProperty("round"))
  23396. if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
  23397. return "round: integer|Long expected";
  23398. if (message.list != null && message.hasOwnProperty("list")) {
  23399. if (!Array.isArray(message.list))
  23400. return "list: array expected";
  23401. for (let i = 0; i < message.list.length; ++i) {
  23402. let error = $root.game.manual.verify(message.list[i]);
  23403. if (error)
  23404. return "list." + error;
  23405. }
  23406. }
  23407. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23408. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  23409. return "moduleid: integer|Long expected";
  23410. return null;
  23411. };
  23412. /**
  23413. * Creates a manual_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  23414. * @function fromObject
  23415. * @memberof game.manual_get_data_rsp
  23416. * @static
  23417. * @param {Object.<string,*>} object Plain object
  23418. * @returns {game.manual_get_data_rsp} manual_get_data_rsp
  23419. */
  23420. manual_get_data_rsp.fromObject = function fromObject(object) {
  23421. if (object instanceof $root.game.manual_get_data_rsp)
  23422. return object;
  23423. let message = new $root.game.manual_get_data_rsp();
  23424. if (object.errno != null)
  23425. if ($util.Long)
  23426. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  23427. else if (typeof object.errno === "string")
  23428. message.errno = parseInt(object.errno, 10);
  23429. else if (typeof object.errno === "number")
  23430. message.errno = object.errno;
  23431. else if (typeof object.errno === "object")
  23432. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  23433. if (object.open != null)
  23434. message.open = Boolean(object.open);
  23435. if (object.openTime != null)
  23436. if ($util.Long)
  23437. (message.openTime = $util.Long.fromValue(object.openTime)).unsigned = false;
  23438. else if (typeof object.openTime === "string")
  23439. message.openTime = parseInt(object.openTime, 10);
  23440. else if (typeof object.openTime === "number")
  23441. message.openTime = object.openTime;
  23442. else if (typeof object.openTime === "object")
  23443. message.openTime = new $util.LongBits(object.openTime.low >>> 0, object.openTime.high >>> 0).toNumber();
  23444. if (object.level != null)
  23445. if ($util.Long)
  23446. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  23447. else if (typeof object.level === "string")
  23448. message.level = parseInt(object.level, 10);
  23449. else if (typeof object.level === "number")
  23450. message.level = object.level;
  23451. else if (typeof object.level === "object")
  23452. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  23453. if (object.exp != null)
  23454. if ($util.Long)
  23455. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  23456. else if (typeof object.exp === "string")
  23457. message.exp = parseInt(object.exp, 10);
  23458. else if (typeof object.exp === "number")
  23459. message.exp = object.exp;
  23460. else if (typeof object.exp === "object")
  23461. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  23462. if (object.round != null)
  23463. if ($util.Long)
  23464. (message.round = $util.Long.fromValue(object.round)).unsigned = false;
  23465. else if (typeof object.round === "string")
  23466. message.round = parseInt(object.round, 10);
  23467. else if (typeof object.round === "number")
  23468. message.round = object.round;
  23469. else if (typeof object.round === "object")
  23470. message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
  23471. if (object.list) {
  23472. if (!Array.isArray(object.list))
  23473. throw TypeError(".game.manual_get_data_rsp.list: array expected");
  23474. message.list = [];
  23475. for (let i = 0; i < object.list.length; ++i) {
  23476. if (typeof object.list[i] !== "object")
  23477. throw TypeError(".game.manual_get_data_rsp.list: object expected");
  23478. message.list[i] = $root.game.manual.fromObject(object.list[i]);
  23479. }
  23480. }
  23481. if (object.moduleid != null)
  23482. if ($util.Long)
  23483. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  23484. else if (typeof object.moduleid === "string")
  23485. message.moduleid = parseInt(object.moduleid, 10);
  23486. else if (typeof object.moduleid === "number")
  23487. message.moduleid = object.moduleid;
  23488. else if (typeof object.moduleid === "object")
  23489. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  23490. return message;
  23491. };
  23492. /**
  23493. * Creates a plain object from a manual_get_data_rsp message. Also converts values to other types if specified.
  23494. * @function toObject
  23495. * @memberof game.manual_get_data_rsp
  23496. * @static
  23497. * @param {game.manual_get_data_rsp} message manual_get_data_rsp
  23498. * @param {$protobuf.IConversionOptions} [options] Conversion options
  23499. * @returns {Object.<string,*>} Plain object
  23500. */
  23501. manual_get_data_rsp.toObject = function toObject(message, options) {
  23502. if (!options)
  23503. options = {};
  23504. let object = {};
  23505. if (options.arrays || options.defaults)
  23506. object.list = [];
  23507. if (options.defaults) {
  23508. if ($util.Long) {
  23509. let long = new $util.Long(0, 0, false);
  23510. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23511. } else
  23512. object.errno = options.longs === String ? "0" : 0;
  23513. object.open = false;
  23514. if ($util.Long) {
  23515. let long = new $util.Long(0, 0, false);
  23516. object.openTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23517. } else
  23518. object.openTime = options.longs === String ? "0" : 0;
  23519. if ($util.Long) {
  23520. let long = new $util.Long(0, 0, false);
  23521. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23522. } else
  23523. object.level = options.longs === String ? "0" : 0;
  23524. if ($util.Long) {
  23525. let long = new $util.Long(0, 0, false);
  23526. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23527. } else
  23528. object.exp = options.longs === String ? "0" : 0;
  23529. if ($util.Long) {
  23530. let long = new $util.Long(0, 0, false);
  23531. object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23532. } else
  23533. object.round = options.longs === String ? "0" : 0;
  23534. if ($util.Long) {
  23535. let long = new $util.Long(0, 0, false);
  23536. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23537. } else
  23538. object.moduleid = options.longs === String ? "0" : 0;
  23539. }
  23540. if (message.errno != null && message.hasOwnProperty("errno"))
  23541. if (typeof message.errno === "number")
  23542. object.errno = options.longs === String ? String(message.errno) : message.errno;
  23543. else
  23544. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  23545. if (message.open != null && message.hasOwnProperty("open"))
  23546. object.open = message.open;
  23547. if (message.openTime != null && message.hasOwnProperty("openTime"))
  23548. if (typeof message.openTime === "number")
  23549. object.openTime = options.longs === String ? String(message.openTime) : message.openTime;
  23550. else
  23551. object.openTime = options.longs === String ? $util.Long.prototype.toString.call(message.openTime) : options.longs === Number ? new $util.LongBits(message.openTime.low >>> 0, message.openTime.high >>> 0).toNumber() : message.openTime;
  23552. if (message.level != null && message.hasOwnProperty("level"))
  23553. if (typeof message.level === "number")
  23554. object.level = options.longs === String ? String(message.level) : message.level;
  23555. else
  23556. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  23557. if (message.exp != null && message.hasOwnProperty("exp"))
  23558. if (typeof message.exp === "number")
  23559. object.exp = options.longs === String ? String(message.exp) : message.exp;
  23560. else
  23561. object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
  23562. if (message.round != null && message.hasOwnProperty("round"))
  23563. if (typeof message.round === "number")
  23564. object.round = options.longs === String ? String(message.round) : message.round;
  23565. else
  23566. object.round = options.longs === String ? $util.Long.prototype.toString.call(message.round) : options.longs === Number ? new $util.LongBits(message.round.low >>> 0, message.round.high >>> 0).toNumber() : message.round;
  23567. if (message.list && message.list.length) {
  23568. object.list = [];
  23569. for (let j = 0; j < message.list.length; ++j)
  23570. object.list[j] = $root.game.manual.toObject(message.list[j], options);
  23571. }
  23572. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23573. if (typeof message.moduleid === "number")
  23574. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  23575. else
  23576. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  23577. return object;
  23578. };
  23579. /**
  23580. * Converts this manual_get_data_rsp to JSON.
  23581. * @function toJSON
  23582. * @memberof game.manual_get_data_rsp
  23583. * @instance
  23584. * @returns {Object.<string,*>} JSON object
  23585. */
  23586. manual_get_data_rsp.prototype.toJSON = function toJSON() {
  23587. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  23588. };
  23589. return manual_get_data_rsp;
  23590. })();
  23591. game.manual_buy_exp = (function() {
  23592. /**
  23593. * Properties of a manual_buy_exp.
  23594. * @memberof game
  23595. * @interface Imanual_buy_exp
  23596. * @property {number|Long|null} [moduleid] manual_buy_exp moduleid
  23597. */
  23598. /**
  23599. * Constructs a new manual_buy_exp.
  23600. * @memberof game
  23601. * @classdesc Represents a manual_buy_exp.
  23602. * @implements Imanual_buy_exp
  23603. * @constructor
  23604. * @param {game.Imanual_buy_exp=} [properties] Properties to set
  23605. */
  23606. function manual_buy_exp(properties) {
  23607. if (properties)
  23608. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  23609. if (properties[keys[i]] != null)
  23610. this[keys[i]] = properties[keys[i]];
  23611. }
  23612. /**
  23613. * manual_buy_exp moduleid.
  23614. * @member {number|Long} moduleid
  23615. * @memberof game.manual_buy_exp
  23616. * @instance
  23617. */
  23618. manual_buy_exp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23619. /**
  23620. * Creates a new manual_buy_exp instance using the specified properties.
  23621. * @function create
  23622. * @memberof game.manual_buy_exp
  23623. * @static
  23624. * @param {game.Imanual_buy_exp=} [properties] Properties to set
  23625. * @returns {game.manual_buy_exp} manual_buy_exp instance
  23626. */
  23627. manual_buy_exp.create = function create(properties) {
  23628. return new manual_buy_exp(properties);
  23629. };
  23630. /**
  23631. * Encodes the specified manual_buy_exp message. Does not implicitly {@link game.manual_buy_exp.verify|verify} messages.
  23632. * @function encode
  23633. * @memberof game.manual_buy_exp
  23634. * @static
  23635. * @param {game.Imanual_buy_exp} message manual_buy_exp message or plain object to encode
  23636. * @param {$protobuf.Writer} [writer] Writer to encode to
  23637. * @returns {$protobuf.Writer} Writer
  23638. */
  23639. manual_buy_exp.encode = function encode(message, writer) {
  23640. if (!writer)
  23641. writer = $Writer.create();
  23642. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  23643. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  23644. return writer;
  23645. };
  23646. /**
  23647. * Encodes the specified manual_buy_exp message, length delimited. Does not implicitly {@link game.manual_buy_exp.verify|verify} messages.
  23648. * @function encodeDelimited
  23649. * @memberof game.manual_buy_exp
  23650. * @static
  23651. * @param {game.Imanual_buy_exp} message manual_buy_exp message or plain object to encode
  23652. * @param {$protobuf.Writer} [writer] Writer to encode to
  23653. * @returns {$protobuf.Writer} Writer
  23654. */
  23655. manual_buy_exp.encodeDelimited = function encodeDelimited(message, writer) {
  23656. return this.encode(message, writer).ldelim();
  23657. };
  23658. /**
  23659. * Decodes a manual_buy_exp message from the specified reader or buffer.
  23660. * @function decode
  23661. * @memberof game.manual_buy_exp
  23662. * @static
  23663. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23664. * @param {number} [length] Message length if known beforehand
  23665. * @returns {game.manual_buy_exp} manual_buy_exp
  23666. * @throws {Error} If the payload is not a reader or valid buffer
  23667. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23668. */
  23669. manual_buy_exp.decode = function decode(reader, length) {
  23670. if (!(reader instanceof $Reader))
  23671. reader = $Reader.create(reader);
  23672. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_exp();
  23673. while (reader.pos < end) {
  23674. let tag = reader.uint32();
  23675. switch (tag >>> 3) {
  23676. case 1:
  23677. message.moduleid = reader.int64();
  23678. break;
  23679. default:
  23680. reader.skipType(tag & 7);
  23681. break;
  23682. }
  23683. }
  23684. return message;
  23685. };
  23686. /**
  23687. * Decodes a manual_buy_exp message from the specified reader or buffer, length delimited.
  23688. * @function decodeDelimited
  23689. * @memberof game.manual_buy_exp
  23690. * @static
  23691. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23692. * @returns {game.manual_buy_exp} manual_buy_exp
  23693. * @throws {Error} If the payload is not a reader or valid buffer
  23694. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23695. */
  23696. manual_buy_exp.decodeDelimited = function decodeDelimited(reader) {
  23697. if (!(reader instanceof $Reader))
  23698. reader = new $Reader(reader);
  23699. return this.decode(reader, reader.uint32());
  23700. };
  23701. /**
  23702. * Verifies a manual_buy_exp message.
  23703. * @function verify
  23704. * @memberof game.manual_buy_exp
  23705. * @static
  23706. * @param {Object.<string,*>} message Plain object to verify
  23707. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23708. */
  23709. manual_buy_exp.verify = function verify(message) {
  23710. if (typeof message !== "object" || message === null)
  23711. return "object expected";
  23712. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23713. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  23714. return "moduleid: integer|Long expected";
  23715. return null;
  23716. };
  23717. /**
  23718. * Creates a manual_buy_exp message from a plain object. Also converts values to their respective internal types.
  23719. * @function fromObject
  23720. * @memberof game.manual_buy_exp
  23721. * @static
  23722. * @param {Object.<string,*>} object Plain object
  23723. * @returns {game.manual_buy_exp} manual_buy_exp
  23724. */
  23725. manual_buy_exp.fromObject = function fromObject(object) {
  23726. if (object instanceof $root.game.manual_buy_exp)
  23727. return object;
  23728. let message = new $root.game.manual_buy_exp();
  23729. if (object.moduleid != null)
  23730. if ($util.Long)
  23731. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  23732. else if (typeof object.moduleid === "string")
  23733. message.moduleid = parseInt(object.moduleid, 10);
  23734. else if (typeof object.moduleid === "number")
  23735. message.moduleid = object.moduleid;
  23736. else if (typeof object.moduleid === "object")
  23737. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  23738. return message;
  23739. };
  23740. /**
  23741. * Creates a plain object from a manual_buy_exp message. Also converts values to other types if specified.
  23742. * @function toObject
  23743. * @memberof game.manual_buy_exp
  23744. * @static
  23745. * @param {game.manual_buy_exp} message manual_buy_exp
  23746. * @param {$protobuf.IConversionOptions} [options] Conversion options
  23747. * @returns {Object.<string,*>} Plain object
  23748. */
  23749. manual_buy_exp.toObject = function toObject(message, options) {
  23750. if (!options)
  23751. options = {};
  23752. let object = {};
  23753. if (options.defaults)
  23754. if ($util.Long) {
  23755. let long = new $util.Long(0, 0, false);
  23756. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  23757. } else
  23758. object.moduleid = options.longs === String ? "0" : 0;
  23759. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23760. if (typeof message.moduleid === "number")
  23761. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  23762. else
  23763. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  23764. return object;
  23765. };
  23766. /**
  23767. * Converts this manual_buy_exp to JSON.
  23768. * @function toJSON
  23769. * @memberof game.manual_buy_exp
  23770. * @instance
  23771. * @returns {Object.<string,*>} JSON object
  23772. */
  23773. manual_buy_exp.prototype.toJSON = function toJSON() {
  23774. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  23775. };
  23776. return manual_buy_exp;
  23777. })();
  23778. game.manual_buy_exp_rsp = (function() {
  23779. /**
  23780. * Properties of a manual_buy_exp_rsp.
  23781. * @memberof game
  23782. * @interface Imanual_buy_exp_rsp
  23783. * @property {number|Long|null} [errno] manual_buy_exp_rsp errno
  23784. * @property {number|Long|null} [level] manual_buy_exp_rsp level
  23785. * @property {number|Long|null} [exp] manual_buy_exp_rsp exp
  23786. * @property {number|Long|null} [moduleid] manual_buy_exp_rsp moduleid
  23787. */
  23788. /**
  23789. * Constructs a new manual_buy_exp_rsp.
  23790. * @memberof game
  23791. * @classdesc Represents a manual_buy_exp_rsp.
  23792. * @implements Imanual_buy_exp_rsp
  23793. * @constructor
  23794. * @param {game.Imanual_buy_exp_rsp=} [properties] Properties to set
  23795. */
  23796. function manual_buy_exp_rsp(properties) {
  23797. if (properties)
  23798. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  23799. if (properties[keys[i]] != null)
  23800. this[keys[i]] = properties[keys[i]];
  23801. }
  23802. /**
  23803. * manual_buy_exp_rsp errno.
  23804. * @member {number|Long} errno
  23805. * @memberof game.manual_buy_exp_rsp
  23806. * @instance
  23807. */
  23808. manual_buy_exp_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23809. /**
  23810. * manual_buy_exp_rsp level.
  23811. * @member {number|Long} level
  23812. * @memberof game.manual_buy_exp_rsp
  23813. * @instance
  23814. */
  23815. manual_buy_exp_rsp.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23816. /**
  23817. * manual_buy_exp_rsp exp.
  23818. * @member {number|Long} exp
  23819. * @memberof game.manual_buy_exp_rsp
  23820. * @instance
  23821. */
  23822. manual_buy_exp_rsp.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23823. /**
  23824. * manual_buy_exp_rsp moduleid.
  23825. * @member {number|Long} moduleid
  23826. * @memberof game.manual_buy_exp_rsp
  23827. * @instance
  23828. */
  23829. manual_buy_exp_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  23830. /**
  23831. * Creates a new manual_buy_exp_rsp instance using the specified properties.
  23832. * @function create
  23833. * @memberof game.manual_buy_exp_rsp
  23834. * @static
  23835. * @param {game.Imanual_buy_exp_rsp=} [properties] Properties to set
  23836. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp instance
  23837. */
  23838. manual_buy_exp_rsp.create = function create(properties) {
  23839. return new manual_buy_exp_rsp(properties);
  23840. };
  23841. /**
  23842. * Encodes the specified manual_buy_exp_rsp message. Does not implicitly {@link game.manual_buy_exp_rsp.verify|verify} messages.
  23843. * @function encode
  23844. * @memberof game.manual_buy_exp_rsp
  23845. * @static
  23846. * @param {game.Imanual_buy_exp_rsp} message manual_buy_exp_rsp message or plain object to encode
  23847. * @param {$protobuf.Writer} [writer] Writer to encode to
  23848. * @returns {$protobuf.Writer} Writer
  23849. */
  23850. manual_buy_exp_rsp.encode = function encode(message, writer) {
  23851. if (!writer)
  23852. writer = $Writer.create();
  23853. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  23854. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  23855. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  23856. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  23857. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  23858. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.exp);
  23859. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  23860. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.moduleid);
  23861. return writer;
  23862. };
  23863. /**
  23864. * Encodes the specified manual_buy_exp_rsp message, length delimited. Does not implicitly {@link game.manual_buy_exp_rsp.verify|verify} messages.
  23865. * @function encodeDelimited
  23866. * @memberof game.manual_buy_exp_rsp
  23867. * @static
  23868. * @param {game.Imanual_buy_exp_rsp} message manual_buy_exp_rsp message or plain object to encode
  23869. * @param {$protobuf.Writer} [writer] Writer to encode to
  23870. * @returns {$protobuf.Writer} Writer
  23871. */
  23872. manual_buy_exp_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  23873. return this.encode(message, writer).ldelim();
  23874. };
  23875. /**
  23876. * Decodes a manual_buy_exp_rsp message from the specified reader or buffer.
  23877. * @function decode
  23878. * @memberof game.manual_buy_exp_rsp
  23879. * @static
  23880. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23881. * @param {number} [length] Message length if known beforehand
  23882. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
  23883. * @throws {Error} If the payload is not a reader or valid buffer
  23884. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23885. */
  23886. manual_buy_exp_rsp.decode = function decode(reader, length) {
  23887. if (!(reader instanceof $Reader))
  23888. reader = $Reader.create(reader);
  23889. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_exp_rsp();
  23890. while (reader.pos < end) {
  23891. let tag = reader.uint32();
  23892. switch (tag >>> 3) {
  23893. case 1:
  23894. message.errno = reader.int64();
  23895. break;
  23896. case 2:
  23897. message.level = reader.int64();
  23898. break;
  23899. case 3:
  23900. message.exp = reader.int64();
  23901. break;
  23902. case 4:
  23903. message.moduleid = reader.int64();
  23904. break;
  23905. default:
  23906. reader.skipType(tag & 7);
  23907. break;
  23908. }
  23909. }
  23910. return message;
  23911. };
  23912. /**
  23913. * Decodes a manual_buy_exp_rsp message from the specified reader or buffer, length delimited.
  23914. * @function decodeDelimited
  23915. * @memberof game.manual_buy_exp_rsp
  23916. * @static
  23917. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  23918. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
  23919. * @throws {Error} If the payload is not a reader or valid buffer
  23920. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  23921. */
  23922. manual_buy_exp_rsp.decodeDelimited = function decodeDelimited(reader) {
  23923. if (!(reader instanceof $Reader))
  23924. reader = new $Reader(reader);
  23925. return this.decode(reader, reader.uint32());
  23926. };
  23927. /**
  23928. * Verifies a manual_buy_exp_rsp message.
  23929. * @function verify
  23930. * @memberof game.manual_buy_exp_rsp
  23931. * @static
  23932. * @param {Object.<string,*>} message Plain object to verify
  23933. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  23934. */
  23935. manual_buy_exp_rsp.verify = function verify(message) {
  23936. if (typeof message !== "object" || message === null)
  23937. return "object expected";
  23938. if (message.errno != null && message.hasOwnProperty("errno"))
  23939. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  23940. return "errno: integer|Long expected";
  23941. if (message.level != null && message.hasOwnProperty("level"))
  23942. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  23943. return "level: integer|Long expected";
  23944. if (message.exp != null && message.hasOwnProperty("exp"))
  23945. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  23946. return "exp: integer|Long expected";
  23947. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  23948. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  23949. return "moduleid: integer|Long expected";
  23950. return null;
  23951. };
  23952. /**
  23953. * Creates a manual_buy_exp_rsp message from a plain object. Also converts values to their respective internal types.
  23954. * @function fromObject
  23955. * @memberof game.manual_buy_exp_rsp
  23956. * @static
  23957. * @param {Object.<string,*>} object Plain object
  23958. * @returns {game.manual_buy_exp_rsp} manual_buy_exp_rsp
  23959. */
  23960. manual_buy_exp_rsp.fromObject = function fromObject(object) {
  23961. if (object instanceof $root.game.manual_buy_exp_rsp)
  23962. return object;
  23963. let message = new $root.game.manual_buy_exp_rsp();
  23964. if (object.errno != null)
  23965. if ($util.Long)
  23966. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  23967. else if (typeof object.errno === "string")
  23968. message.errno = parseInt(object.errno, 10);
  23969. else if (typeof object.errno === "number")
  23970. message.errno = object.errno;
  23971. else if (typeof object.errno === "object")
  23972. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  23973. if (object.level != null)
  23974. if ($util.Long)
  23975. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  23976. else if (typeof object.level === "string")
  23977. message.level = parseInt(object.level, 10);
  23978. else if (typeof object.level === "number")
  23979. message.level = object.level;
  23980. else if (typeof object.level === "object")
  23981. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  23982. if (object.exp != null)
  23983. if ($util.Long)
  23984. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  23985. else if (typeof object.exp === "string")
  23986. message.exp = parseInt(object.exp, 10);
  23987. else if (typeof object.exp === "number")
  23988. message.exp = object.exp;
  23989. else if (typeof object.exp === "object")
  23990. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  23991. if (object.moduleid != null)
  23992. if ($util.Long)
  23993. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  23994. else if (typeof object.moduleid === "string")
  23995. message.moduleid = parseInt(object.moduleid, 10);
  23996. else if (typeof object.moduleid === "number")
  23997. message.moduleid = object.moduleid;
  23998. else if (typeof object.moduleid === "object")
  23999. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24000. return message;
  24001. };
  24002. /**
  24003. * Creates a plain object from a manual_buy_exp_rsp message. Also converts values to other types if specified.
  24004. * @function toObject
  24005. * @memberof game.manual_buy_exp_rsp
  24006. * @static
  24007. * @param {game.manual_buy_exp_rsp} message manual_buy_exp_rsp
  24008. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24009. * @returns {Object.<string,*>} Plain object
  24010. */
  24011. manual_buy_exp_rsp.toObject = function toObject(message, options) {
  24012. if (!options)
  24013. options = {};
  24014. let object = {};
  24015. if (options.defaults) {
  24016. if ($util.Long) {
  24017. let long = new $util.Long(0, 0, false);
  24018. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24019. } else
  24020. object.errno = options.longs === String ? "0" : 0;
  24021. if ($util.Long) {
  24022. let long = new $util.Long(0, 0, false);
  24023. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24024. } else
  24025. object.level = options.longs === String ? "0" : 0;
  24026. if ($util.Long) {
  24027. let long = new $util.Long(0, 0, false);
  24028. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24029. } else
  24030. object.exp = options.longs === String ? "0" : 0;
  24031. if ($util.Long) {
  24032. let long = new $util.Long(0, 0, false);
  24033. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24034. } else
  24035. object.moduleid = options.longs === String ? "0" : 0;
  24036. }
  24037. if (message.errno != null && message.hasOwnProperty("errno"))
  24038. if (typeof message.errno === "number")
  24039. object.errno = options.longs === String ? String(message.errno) : message.errno;
  24040. else
  24041. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  24042. if (message.level != null && message.hasOwnProperty("level"))
  24043. if (typeof message.level === "number")
  24044. object.level = options.longs === String ? String(message.level) : message.level;
  24045. else
  24046. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  24047. if (message.exp != null && message.hasOwnProperty("exp"))
  24048. if (typeof message.exp === "number")
  24049. object.exp = options.longs === String ? String(message.exp) : message.exp;
  24050. else
  24051. object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
  24052. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24053. if (typeof message.moduleid === "number")
  24054. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  24055. else
  24056. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  24057. return object;
  24058. };
  24059. /**
  24060. * Converts this manual_buy_exp_rsp to JSON.
  24061. * @function toJSON
  24062. * @memberof game.manual_buy_exp_rsp
  24063. * @instance
  24064. * @returns {Object.<string,*>} JSON object
  24065. */
  24066. manual_buy_exp_rsp.prototype.toJSON = function toJSON() {
  24067. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  24068. };
  24069. return manual_buy_exp_rsp;
  24070. })();
  24071. game.manual_get_award = (function() {
  24072. /**
  24073. * Properties of a manual_get_award.
  24074. * @memberof game
  24075. * @interface Imanual_get_award
  24076. * @property {number|Long|null} [moduleid] manual_get_award moduleid
  24077. */
  24078. /**
  24079. * Constructs a new manual_get_award.
  24080. * @memberof game
  24081. * @classdesc Represents a manual_get_award.
  24082. * @implements Imanual_get_award
  24083. * @constructor
  24084. * @param {game.Imanual_get_award=} [properties] Properties to set
  24085. */
  24086. function manual_get_award(properties) {
  24087. if (properties)
  24088. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  24089. if (properties[keys[i]] != null)
  24090. this[keys[i]] = properties[keys[i]];
  24091. }
  24092. /**
  24093. * manual_get_award moduleid.
  24094. * @member {number|Long} moduleid
  24095. * @memberof game.manual_get_award
  24096. * @instance
  24097. */
  24098. manual_get_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24099. /**
  24100. * Creates a new manual_get_award instance using the specified properties.
  24101. * @function create
  24102. * @memberof game.manual_get_award
  24103. * @static
  24104. * @param {game.Imanual_get_award=} [properties] Properties to set
  24105. * @returns {game.manual_get_award} manual_get_award instance
  24106. */
  24107. manual_get_award.create = function create(properties) {
  24108. return new manual_get_award(properties);
  24109. };
  24110. /**
  24111. * Encodes the specified manual_get_award message. Does not implicitly {@link game.manual_get_award.verify|verify} messages.
  24112. * @function encode
  24113. * @memberof game.manual_get_award
  24114. * @static
  24115. * @param {game.Imanual_get_award} message manual_get_award message or plain object to encode
  24116. * @param {$protobuf.Writer} [writer] Writer to encode to
  24117. * @returns {$protobuf.Writer} Writer
  24118. */
  24119. manual_get_award.encode = function encode(message, writer) {
  24120. if (!writer)
  24121. writer = $Writer.create();
  24122. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24123. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  24124. return writer;
  24125. };
  24126. /**
  24127. * Encodes the specified manual_get_award message, length delimited. Does not implicitly {@link game.manual_get_award.verify|verify} messages.
  24128. * @function encodeDelimited
  24129. * @memberof game.manual_get_award
  24130. * @static
  24131. * @param {game.Imanual_get_award} message manual_get_award message or plain object to encode
  24132. * @param {$protobuf.Writer} [writer] Writer to encode to
  24133. * @returns {$protobuf.Writer} Writer
  24134. */
  24135. manual_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  24136. return this.encode(message, writer).ldelim();
  24137. };
  24138. /**
  24139. * Decodes a manual_get_award message from the specified reader or buffer.
  24140. * @function decode
  24141. * @memberof game.manual_get_award
  24142. * @static
  24143. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24144. * @param {number} [length] Message length if known beforehand
  24145. * @returns {game.manual_get_award} manual_get_award
  24146. * @throws {Error} If the payload is not a reader or valid buffer
  24147. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24148. */
  24149. manual_get_award.decode = function decode(reader, length) {
  24150. if (!(reader instanceof $Reader))
  24151. reader = $Reader.create(reader);
  24152. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_award();
  24153. while (reader.pos < end) {
  24154. let tag = reader.uint32();
  24155. switch (tag >>> 3) {
  24156. case 1:
  24157. message.moduleid = reader.int64();
  24158. break;
  24159. default:
  24160. reader.skipType(tag & 7);
  24161. break;
  24162. }
  24163. }
  24164. return message;
  24165. };
  24166. /**
  24167. * Decodes a manual_get_award message from the specified reader or buffer, length delimited.
  24168. * @function decodeDelimited
  24169. * @memberof game.manual_get_award
  24170. * @static
  24171. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24172. * @returns {game.manual_get_award} manual_get_award
  24173. * @throws {Error} If the payload is not a reader or valid buffer
  24174. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24175. */
  24176. manual_get_award.decodeDelimited = function decodeDelimited(reader) {
  24177. if (!(reader instanceof $Reader))
  24178. reader = new $Reader(reader);
  24179. return this.decode(reader, reader.uint32());
  24180. };
  24181. /**
  24182. * Verifies a manual_get_award message.
  24183. * @function verify
  24184. * @memberof game.manual_get_award
  24185. * @static
  24186. * @param {Object.<string,*>} message Plain object to verify
  24187. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  24188. */
  24189. manual_get_award.verify = function verify(message) {
  24190. if (typeof message !== "object" || message === null)
  24191. return "object expected";
  24192. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24193. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  24194. return "moduleid: integer|Long expected";
  24195. return null;
  24196. };
  24197. /**
  24198. * Creates a manual_get_award message from a plain object. Also converts values to their respective internal types.
  24199. * @function fromObject
  24200. * @memberof game.manual_get_award
  24201. * @static
  24202. * @param {Object.<string,*>} object Plain object
  24203. * @returns {game.manual_get_award} manual_get_award
  24204. */
  24205. manual_get_award.fromObject = function fromObject(object) {
  24206. if (object instanceof $root.game.manual_get_award)
  24207. return object;
  24208. let message = new $root.game.manual_get_award();
  24209. if (object.moduleid != null)
  24210. if ($util.Long)
  24211. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  24212. else if (typeof object.moduleid === "string")
  24213. message.moduleid = parseInt(object.moduleid, 10);
  24214. else if (typeof object.moduleid === "number")
  24215. message.moduleid = object.moduleid;
  24216. else if (typeof object.moduleid === "object")
  24217. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24218. return message;
  24219. };
  24220. /**
  24221. * Creates a plain object from a manual_get_award message. Also converts values to other types if specified.
  24222. * @function toObject
  24223. * @memberof game.manual_get_award
  24224. * @static
  24225. * @param {game.manual_get_award} message manual_get_award
  24226. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24227. * @returns {Object.<string,*>} Plain object
  24228. */
  24229. manual_get_award.toObject = function toObject(message, options) {
  24230. if (!options)
  24231. options = {};
  24232. let object = {};
  24233. if (options.defaults)
  24234. if ($util.Long) {
  24235. let long = new $util.Long(0, 0, false);
  24236. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24237. } else
  24238. object.moduleid = options.longs === String ? "0" : 0;
  24239. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24240. if (typeof message.moduleid === "number")
  24241. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  24242. else
  24243. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  24244. return object;
  24245. };
  24246. /**
  24247. * Converts this manual_get_award to JSON.
  24248. * @function toJSON
  24249. * @memberof game.manual_get_award
  24250. * @instance
  24251. * @returns {Object.<string,*>} JSON object
  24252. */
  24253. manual_get_award.prototype.toJSON = function toJSON() {
  24254. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  24255. };
  24256. return manual_get_award;
  24257. })();
  24258. game.manual_get_award_rsp = (function() {
  24259. /**
  24260. * Properties of a manual_get_award_rsp.
  24261. * @memberof game
  24262. * @interface Imanual_get_award_rsp
  24263. * @property {number|Long|null} [errno] manual_get_award_rsp errno
  24264. * @property {number|Long|null} [award] manual_get_award_rsp award
  24265. * @property {number|Long|null} [moduleid] manual_get_award_rsp moduleid
  24266. */
  24267. /**
  24268. * Constructs a new manual_get_award_rsp.
  24269. * @memberof game
  24270. * @classdesc Represents a manual_get_award_rsp.
  24271. * @implements Imanual_get_award_rsp
  24272. * @constructor
  24273. * @param {game.Imanual_get_award_rsp=} [properties] Properties to set
  24274. */
  24275. function manual_get_award_rsp(properties) {
  24276. if (properties)
  24277. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  24278. if (properties[keys[i]] != null)
  24279. this[keys[i]] = properties[keys[i]];
  24280. }
  24281. /**
  24282. * manual_get_award_rsp errno.
  24283. * @member {number|Long} errno
  24284. * @memberof game.manual_get_award_rsp
  24285. * @instance
  24286. */
  24287. manual_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24288. /**
  24289. * manual_get_award_rsp award.
  24290. * @member {number|Long} award
  24291. * @memberof game.manual_get_award_rsp
  24292. * @instance
  24293. */
  24294. manual_get_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24295. /**
  24296. * manual_get_award_rsp moduleid.
  24297. * @member {number|Long} moduleid
  24298. * @memberof game.manual_get_award_rsp
  24299. * @instance
  24300. */
  24301. manual_get_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24302. /**
  24303. * Creates a new manual_get_award_rsp instance using the specified properties.
  24304. * @function create
  24305. * @memberof game.manual_get_award_rsp
  24306. * @static
  24307. * @param {game.Imanual_get_award_rsp=} [properties] Properties to set
  24308. * @returns {game.manual_get_award_rsp} manual_get_award_rsp instance
  24309. */
  24310. manual_get_award_rsp.create = function create(properties) {
  24311. return new manual_get_award_rsp(properties);
  24312. };
  24313. /**
  24314. * Encodes the specified manual_get_award_rsp message. Does not implicitly {@link game.manual_get_award_rsp.verify|verify} messages.
  24315. * @function encode
  24316. * @memberof game.manual_get_award_rsp
  24317. * @static
  24318. * @param {game.Imanual_get_award_rsp} message manual_get_award_rsp message or plain object to encode
  24319. * @param {$protobuf.Writer} [writer] Writer to encode to
  24320. * @returns {$protobuf.Writer} Writer
  24321. */
  24322. manual_get_award_rsp.encode = function encode(message, writer) {
  24323. if (!writer)
  24324. writer = $Writer.create();
  24325. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  24326. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  24327. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  24328. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  24329. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24330. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.moduleid);
  24331. return writer;
  24332. };
  24333. /**
  24334. * Encodes the specified manual_get_award_rsp message, length delimited. Does not implicitly {@link game.manual_get_award_rsp.verify|verify} messages.
  24335. * @function encodeDelimited
  24336. * @memberof game.manual_get_award_rsp
  24337. * @static
  24338. * @param {game.Imanual_get_award_rsp} message manual_get_award_rsp message or plain object to encode
  24339. * @param {$protobuf.Writer} [writer] Writer to encode to
  24340. * @returns {$protobuf.Writer} Writer
  24341. */
  24342. manual_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  24343. return this.encode(message, writer).ldelim();
  24344. };
  24345. /**
  24346. * Decodes a manual_get_award_rsp message from the specified reader or buffer.
  24347. * @function decode
  24348. * @memberof game.manual_get_award_rsp
  24349. * @static
  24350. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24351. * @param {number} [length] Message length if known beforehand
  24352. * @returns {game.manual_get_award_rsp} manual_get_award_rsp
  24353. * @throws {Error} If the payload is not a reader or valid buffer
  24354. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24355. */
  24356. manual_get_award_rsp.decode = function decode(reader, length) {
  24357. if (!(reader instanceof $Reader))
  24358. reader = $Reader.create(reader);
  24359. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_get_award_rsp();
  24360. while (reader.pos < end) {
  24361. let tag = reader.uint32();
  24362. switch (tag >>> 3) {
  24363. case 1:
  24364. message.errno = reader.int64();
  24365. break;
  24366. case 2:
  24367. message.award = reader.int64();
  24368. break;
  24369. case 3:
  24370. message.moduleid = reader.int64();
  24371. break;
  24372. default:
  24373. reader.skipType(tag & 7);
  24374. break;
  24375. }
  24376. }
  24377. return message;
  24378. };
  24379. /**
  24380. * Decodes a manual_get_award_rsp message from the specified reader or buffer, length delimited.
  24381. * @function decodeDelimited
  24382. * @memberof game.manual_get_award_rsp
  24383. * @static
  24384. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24385. * @returns {game.manual_get_award_rsp} manual_get_award_rsp
  24386. * @throws {Error} If the payload is not a reader or valid buffer
  24387. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24388. */
  24389. manual_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  24390. if (!(reader instanceof $Reader))
  24391. reader = new $Reader(reader);
  24392. return this.decode(reader, reader.uint32());
  24393. };
  24394. /**
  24395. * Verifies a manual_get_award_rsp message.
  24396. * @function verify
  24397. * @memberof game.manual_get_award_rsp
  24398. * @static
  24399. * @param {Object.<string,*>} message Plain object to verify
  24400. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  24401. */
  24402. manual_get_award_rsp.verify = function verify(message) {
  24403. if (typeof message !== "object" || message === null)
  24404. return "object expected";
  24405. if (message.errno != null && message.hasOwnProperty("errno"))
  24406. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  24407. return "errno: integer|Long expected";
  24408. if (message.award != null && message.hasOwnProperty("award"))
  24409. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  24410. return "award: integer|Long expected";
  24411. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24412. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  24413. return "moduleid: integer|Long expected";
  24414. return null;
  24415. };
  24416. /**
  24417. * Creates a manual_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  24418. * @function fromObject
  24419. * @memberof game.manual_get_award_rsp
  24420. * @static
  24421. * @param {Object.<string,*>} object Plain object
  24422. * @returns {game.manual_get_award_rsp} manual_get_award_rsp
  24423. */
  24424. manual_get_award_rsp.fromObject = function fromObject(object) {
  24425. if (object instanceof $root.game.manual_get_award_rsp)
  24426. return object;
  24427. let message = new $root.game.manual_get_award_rsp();
  24428. if (object.errno != null)
  24429. if ($util.Long)
  24430. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  24431. else if (typeof object.errno === "string")
  24432. message.errno = parseInt(object.errno, 10);
  24433. else if (typeof object.errno === "number")
  24434. message.errno = object.errno;
  24435. else if (typeof object.errno === "object")
  24436. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  24437. if (object.award != null)
  24438. if ($util.Long)
  24439. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  24440. else if (typeof object.award === "string")
  24441. message.award = parseInt(object.award, 10);
  24442. else if (typeof object.award === "number")
  24443. message.award = object.award;
  24444. else if (typeof object.award === "object")
  24445. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  24446. if (object.moduleid != null)
  24447. if ($util.Long)
  24448. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  24449. else if (typeof object.moduleid === "string")
  24450. message.moduleid = parseInt(object.moduleid, 10);
  24451. else if (typeof object.moduleid === "number")
  24452. message.moduleid = object.moduleid;
  24453. else if (typeof object.moduleid === "object")
  24454. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24455. return message;
  24456. };
  24457. /**
  24458. * Creates a plain object from a manual_get_award_rsp message. Also converts values to other types if specified.
  24459. * @function toObject
  24460. * @memberof game.manual_get_award_rsp
  24461. * @static
  24462. * @param {game.manual_get_award_rsp} message manual_get_award_rsp
  24463. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24464. * @returns {Object.<string,*>} Plain object
  24465. */
  24466. manual_get_award_rsp.toObject = function toObject(message, options) {
  24467. if (!options)
  24468. options = {};
  24469. let object = {};
  24470. if (options.defaults) {
  24471. if ($util.Long) {
  24472. let long = new $util.Long(0, 0, false);
  24473. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24474. } else
  24475. object.errno = options.longs === String ? "0" : 0;
  24476. if ($util.Long) {
  24477. let long = new $util.Long(0, 0, false);
  24478. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24479. } else
  24480. object.award = options.longs === String ? "0" : 0;
  24481. if ($util.Long) {
  24482. let long = new $util.Long(0, 0, false);
  24483. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24484. } else
  24485. object.moduleid = options.longs === String ? "0" : 0;
  24486. }
  24487. if (message.errno != null && message.hasOwnProperty("errno"))
  24488. if (typeof message.errno === "number")
  24489. object.errno = options.longs === String ? String(message.errno) : message.errno;
  24490. else
  24491. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  24492. if (message.award != null && message.hasOwnProperty("award"))
  24493. if (typeof message.award === "number")
  24494. object.award = options.longs === String ? String(message.award) : message.award;
  24495. else
  24496. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  24497. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24498. if (typeof message.moduleid === "number")
  24499. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  24500. else
  24501. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  24502. return object;
  24503. };
  24504. /**
  24505. * Converts this manual_get_award_rsp to JSON.
  24506. * @function toJSON
  24507. * @memberof game.manual_get_award_rsp
  24508. * @instance
  24509. * @returns {Object.<string,*>} JSON object
  24510. */
  24511. manual_get_award_rsp.prototype.toJSON = function toJSON() {
  24512. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  24513. };
  24514. return manual_get_award_rsp;
  24515. })();
  24516. game.manual_notify = (function() {
  24517. /**
  24518. * Properties of a manual_notify.
  24519. * @memberof game
  24520. * @interface Imanual_notify
  24521. * @property {boolean|null} [open] manual_notify open
  24522. * @property {number|Long|null} [openTime] manual_notify openTime
  24523. * @property {number|Long|null} [level] manual_notify level
  24524. * @property {number|Long|null} [exp] manual_notify exp
  24525. * @property {number|Long|null} [round] manual_notify round
  24526. * @property {Array.<game.Imanual>|null} [list] manual_notify list
  24527. * @property {number|Long|null} [moduleid] manual_notify moduleid
  24528. */
  24529. /**
  24530. * Constructs a new manual_notify.
  24531. * @memberof game
  24532. * @classdesc Represents a manual_notify.
  24533. * @implements Imanual_notify
  24534. * @constructor
  24535. * @param {game.Imanual_notify=} [properties] Properties to set
  24536. */
  24537. function manual_notify(properties) {
  24538. this.list = [];
  24539. if (properties)
  24540. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  24541. if (properties[keys[i]] != null)
  24542. this[keys[i]] = properties[keys[i]];
  24543. }
  24544. /**
  24545. * manual_notify open.
  24546. * @member {boolean} open
  24547. * @memberof game.manual_notify
  24548. * @instance
  24549. */
  24550. manual_notify.prototype.open = false;
  24551. /**
  24552. * manual_notify openTime.
  24553. * @member {number|Long} openTime
  24554. * @memberof game.manual_notify
  24555. * @instance
  24556. */
  24557. manual_notify.prototype.openTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24558. /**
  24559. * manual_notify level.
  24560. * @member {number|Long} level
  24561. * @memberof game.manual_notify
  24562. * @instance
  24563. */
  24564. manual_notify.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24565. /**
  24566. * manual_notify exp.
  24567. * @member {number|Long} exp
  24568. * @memberof game.manual_notify
  24569. * @instance
  24570. */
  24571. manual_notify.prototype.exp = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24572. /**
  24573. * manual_notify round.
  24574. * @member {number|Long} round
  24575. * @memberof game.manual_notify
  24576. * @instance
  24577. */
  24578. manual_notify.prototype.round = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24579. /**
  24580. * manual_notify list.
  24581. * @member {Array.<game.Imanual>} list
  24582. * @memberof game.manual_notify
  24583. * @instance
  24584. */
  24585. manual_notify.prototype.list = $util.emptyArray;
  24586. /**
  24587. * manual_notify moduleid.
  24588. * @member {number|Long} moduleid
  24589. * @memberof game.manual_notify
  24590. * @instance
  24591. */
  24592. manual_notify.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24593. /**
  24594. * Creates a new manual_notify instance using the specified properties.
  24595. * @function create
  24596. * @memberof game.manual_notify
  24597. * @static
  24598. * @param {game.Imanual_notify=} [properties] Properties to set
  24599. * @returns {game.manual_notify} manual_notify instance
  24600. */
  24601. manual_notify.create = function create(properties) {
  24602. return new manual_notify(properties);
  24603. };
  24604. /**
  24605. * Encodes the specified manual_notify message. Does not implicitly {@link game.manual_notify.verify|verify} messages.
  24606. * @function encode
  24607. * @memberof game.manual_notify
  24608. * @static
  24609. * @param {game.Imanual_notify} message manual_notify message or plain object to encode
  24610. * @param {$protobuf.Writer} [writer] Writer to encode to
  24611. * @returns {$protobuf.Writer} Writer
  24612. */
  24613. manual_notify.encode = function encode(message, writer) {
  24614. if (!writer)
  24615. writer = $Writer.create();
  24616. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  24617. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
  24618. if (message.openTime != null && Object.hasOwnProperty.call(message, "openTime"))
  24619. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.openTime);
  24620. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  24621. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  24622. if (message.exp != null && Object.hasOwnProperty.call(message, "exp"))
  24623. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.exp);
  24624. if (message.round != null && Object.hasOwnProperty.call(message, "round"))
  24625. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.round);
  24626. if (message.list != null && message.list.length)
  24627. for (let i = 0; i < message.list.length; ++i)
  24628. $root.game.manual.encode(message.list[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  24629. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24630. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.moduleid);
  24631. return writer;
  24632. };
  24633. /**
  24634. * Encodes the specified manual_notify message, length delimited. Does not implicitly {@link game.manual_notify.verify|verify} messages.
  24635. * @function encodeDelimited
  24636. * @memberof game.manual_notify
  24637. * @static
  24638. * @param {game.Imanual_notify} message manual_notify message or plain object to encode
  24639. * @param {$protobuf.Writer} [writer] Writer to encode to
  24640. * @returns {$protobuf.Writer} Writer
  24641. */
  24642. manual_notify.encodeDelimited = function encodeDelimited(message, writer) {
  24643. return this.encode(message, writer).ldelim();
  24644. };
  24645. /**
  24646. * Decodes a manual_notify message from the specified reader or buffer.
  24647. * @function decode
  24648. * @memberof game.manual_notify
  24649. * @static
  24650. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24651. * @param {number} [length] Message length if known beforehand
  24652. * @returns {game.manual_notify} manual_notify
  24653. * @throws {Error} If the payload is not a reader or valid buffer
  24654. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24655. */
  24656. manual_notify.decode = function decode(reader, length) {
  24657. if (!(reader instanceof $Reader))
  24658. reader = $Reader.create(reader);
  24659. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_notify();
  24660. while (reader.pos < end) {
  24661. let tag = reader.uint32();
  24662. switch (tag >>> 3) {
  24663. case 2:
  24664. message.open = reader.bool();
  24665. break;
  24666. case 3:
  24667. message.openTime = reader.int64();
  24668. break;
  24669. case 4:
  24670. message.level = reader.int64();
  24671. break;
  24672. case 5:
  24673. message.exp = reader.int64();
  24674. break;
  24675. case 6:
  24676. message.round = reader.int64();
  24677. break;
  24678. case 7:
  24679. if (!(message.list && message.list.length))
  24680. message.list = [];
  24681. message.list.push($root.game.manual.decode(reader, reader.uint32()));
  24682. break;
  24683. case 8:
  24684. message.moduleid = reader.int64();
  24685. break;
  24686. default:
  24687. reader.skipType(tag & 7);
  24688. break;
  24689. }
  24690. }
  24691. return message;
  24692. };
  24693. /**
  24694. * Decodes a manual_notify message from the specified reader or buffer, length delimited.
  24695. * @function decodeDelimited
  24696. * @memberof game.manual_notify
  24697. * @static
  24698. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24699. * @returns {game.manual_notify} manual_notify
  24700. * @throws {Error} If the payload is not a reader or valid buffer
  24701. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24702. */
  24703. manual_notify.decodeDelimited = function decodeDelimited(reader) {
  24704. if (!(reader instanceof $Reader))
  24705. reader = new $Reader(reader);
  24706. return this.decode(reader, reader.uint32());
  24707. };
  24708. /**
  24709. * Verifies a manual_notify message.
  24710. * @function verify
  24711. * @memberof game.manual_notify
  24712. * @static
  24713. * @param {Object.<string,*>} message Plain object to verify
  24714. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  24715. */
  24716. manual_notify.verify = function verify(message) {
  24717. if (typeof message !== "object" || message === null)
  24718. return "object expected";
  24719. if (message.open != null && message.hasOwnProperty("open"))
  24720. if (typeof message.open !== "boolean")
  24721. return "open: boolean expected";
  24722. if (message.openTime != null && message.hasOwnProperty("openTime"))
  24723. if (!$util.isInteger(message.openTime) && !(message.openTime && $util.isInteger(message.openTime.low) && $util.isInteger(message.openTime.high)))
  24724. return "openTime: integer|Long expected";
  24725. if (message.level != null && message.hasOwnProperty("level"))
  24726. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  24727. return "level: integer|Long expected";
  24728. if (message.exp != null && message.hasOwnProperty("exp"))
  24729. if (!$util.isInteger(message.exp) && !(message.exp && $util.isInteger(message.exp.low) && $util.isInteger(message.exp.high)))
  24730. return "exp: integer|Long expected";
  24731. if (message.round != null && message.hasOwnProperty("round"))
  24732. if (!$util.isInteger(message.round) && !(message.round && $util.isInteger(message.round.low) && $util.isInteger(message.round.high)))
  24733. return "round: integer|Long expected";
  24734. if (message.list != null && message.hasOwnProperty("list")) {
  24735. if (!Array.isArray(message.list))
  24736. return "list: array expected";
  24737. for (let i = 0; i < message.list.length; ++i) {
  24738. let error = $root.game.manual.verify(message.list[i]);
  24739. if (error)
  24740. return "list." + error;
  24741. }
  24742. }
  24743. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24744. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  24745. return "moduleid: integer|Long expected";
  24746. return null;
  24747. };
  24748. /**
  24749. * Creates a manual_notify message from a plain object. Also converts values to their respective internal types.
  24750. * @function fromObject
  24751. * @memberof game.manual_notify
  24752. * @static
  24753. * @param {Object.<string,*>} object Plain object
  24754. * @returns {game.manual_notify} manual_notify
  24755. */
  24756. manual_notify.fromObject = function fromObject(object) {
  24757. if (object instanceof $root.game.manual_notify)
  24758. return object;
  24759. let message = new $root.game.manual_notify();
  24760. if (object.open != null)
  24761. message.open = Boolean(object.open);
  24762. if (object.openTime != null)
  24763. if ($util.Long)
  24764. (message.openTime = $util.Long.fromValue(object.openTime)).unsigned = false;
  24765. else if (typeof object.openTime === "string")
  24766. message.openTime = parseInt(object.openTime, 10);
  24767. else if (typeof object.openTime === "number")
  24768. message.openTime = object.openTime;
  24769. else if (typeof object.openTime === "object")
  24770. message.openTime = new $util.LongBits(object.openTime.low >>> 0, object.openTime.high >>> 0).toNumber();
  24771. if (object.level != null)
  24772. if ($util.Long)
  24773. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  24774. else if (typeof object.level === "string")
  24775. message.level = parseInt(object.level, 10);
  24776. else if (typeof object.level === "number")
  24777. message.level = object.level;
  24778. else if (typeof object.level === "object")
  24779. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  24780. if (object.exp != null)
  24781. if ($util.Long)
  24782. (message.exp = $util.Long.fromValue(object.exp)).unsigned = false;
  24783. else if (typeof object.exp === "string")
  24784. message.exp = parseInt(object.exp, 10);
  24785. else if (typeof object.exp === "number")
  24786. message.exp = object.exp;
  24787. else if (typeof object.exp === "object")
  24788. message.exp = new $util.LongBits(object.exp.low >>> 0, object.exp.high >>> 0).toNumber();
  24789. if (object.round != null)
  24790. if ($util.Long)
  24791. (message.round = $util.Long.fromValue(object.round)).unsigned = false;
  24792. else if (typeof object.round === "string")
  24793. message.round = parseInt(object.round, 10);
  24794. else if (typeof object.round === "number")
  24795. message.round = object.round;
  24796. else if (typeof object.round === "object")
  24797. message.round = new $util.LongBits(object.round.low >>> 0, object.round.high >>> 0).toNumber();
  24798. if (object.list) {
  24799. if (!Array.isArray(object.list))
  24800. throw TypeError(".game.manual_notify.list: array expected");
  24801. message.list = [];
  24802. for (let i = 0; i < object.list.length; ++i) {
  24803. if (typeof object.list[i] !== "object")
  24804. throw TypeError(".game.manual_notify.list: object expected");
  24805. message.list[i] = $root.game.manual.fromObject(object.list[i]);
  24806. }
  24807. }
  24808. if (object.moduleid != null)
  24809. if ($util.Long)
  24810. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  24811. else if (typeof object.moduleid === "string")
  24812. message.moduleid = parseInt(object.moduleid, 10);
  24813. else if (typeof object.moduleid === "number")
  24814. message.moduleid = object.moduleid;
  24815. else if (typeof object.moduleid === "object")
  24816. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  24817. return message;
  24818. };
  24819. /**
  24820. * Creates a plain object from a manual_notify message. Also converts values to other types if specified.
  24821. * @function toObject
  24822. * @memberof game.manual_notify
  24823. * @static
  24824. * @param {game.manual_notify} message manual_notify
  24825. * @param {$protobuf.IConversionOptions} [options] Conversion options
  24826. * @returns {Object.<string,*>} Plain object
  24827. */
  24828. manual_notify.toObject = function toObject(message, options) {
  24829. if (!options)
  24830. options = {};
  24831. let object = {};
  24832. if (options.arrays || options.defaults)
  24833. object.list = [];
  24834. if (options.defaults) {
  24835. object.open = false;
  24836. if ($util.Long) {
  24837. let long = new $util.Long(0, 0, false);
  24838. object.openTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24839. } else
  24840. object.openTime = options.longs === String ? "0" : 0;
  24841. if ($util.Long) {
  24842. let long = new $util.Long(0, 0, false);
  24843. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24844. } else
  24845. object.level = options.longs === String ? "0" : 0;
  24846. if ($util.Long) {
  24847. let long = new $util.Long(0, 0, false);
  24848. object.exp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24849. } else
  24850. object.exp = options.longs === String ? "0" : 0;
  24851. if ($util.Long) {
  24852. let long = new $util.Long(0, 0, false);
  24853. object.round = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24854. } else
  24855. object.round = options.longs === String ? "0" : 0;
  24856. if ($util.Long) {
  24857. let long = new $util.Long(0, 0, false);
  24858. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  24859. } else
  24860. object.moduleid = options.longs === String ? "0" : 0;
  24861. }
  24862. if (message.open != null && message.hasOwnProperty("open"))
  24863. object.open = message.open;
  24864. if (message.openTime != null && message.hasOwnProperty("openTime"))
  24865. if (typeof message.openTime === "number")
  24866. object.openTime = options.longs === String ? String(message.openTime) : message.openTime;
  24867. else
  24868. object.openTime = options.longs === String ? $util.Long.prototype.toString.call(message.openTime) : options.longs === Number ? new $util.LongBits(message.openTime.low >>> 0, message.openTime.high >>> 0).toNumber() : message.openTime;
  24869. if (message.level != null && message.hasOwnProperty("level"))
  24870. if (typeof message.level === "number")
  24871. object.level = options.longs === String ? String(message.level) : message.level;
  24872. else
  24873. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  24874. if (message.exp != null && message.hasOwnProperty("exp"))
  24875. if (typeof message.exp === "number")
  24876. object.exp = options.longs === String ? String(message.exp) : message.exp;
  24877. else
  24878. object.exp = options.longs === String ? $util.Long.prototype.toString.call(message.exp) : options.longs === Number ? new $util.LongBits(message.exp.low >>> 0, message.exp.high >>> 0).toNumber() : message.exp;
  24879. if (message.round != null && message.hasOwnProperty("round"))
  24880. if (typeof message.round === "number")
  24881. object.round = options.longs === String ? String(message.round) : message.round;
  24882. else
  24883. object.round = options.longs === String ? $util.Long.prototype.toString.call(message.round) : options.longs === Number ? new $util.LongBits(message.round.low >>> 0, message.round.high >>> 0).toNumber() : message.round;
  24884. if (message.list && message.list.length) {
  24885. object.list = [];
  24886. for (let j = 0; j < message.list.length; ++j)
  24887. object.list[j] = $root.game.manual.toObject(message.list[j], options);
  24888. }
  24889. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  24890. if (typeof message.moduleid === "number")
  24891. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  24892. else
  24893. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  24894. return object;
  24895. };
  24896. /**
  24897. * Converts this manual_notify to JSON.
  24898. * @function toJSON
  24899. * @memberof game.manual_notify
  24900. * @instance
  24901. * @returns {Object.<string,*>} JSON object
  24902. */
  24903. manual_notify.prototype.toJSON = function toJSON() {
  24904. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  24905. };
  24906. return manual_notify;
  24907. })();
  24908. game.manual_buy = (function() {
  24909. /**
  24910. * Properties of a manual_buy.
  24911. * @memberof game
  24912. * @interface Imanual_buy
  24913. * @property {number|Long|null} [giftid] manual_buy giftid
  24914. * @property {number|Long|null} [moduleid] manual_buy moduleid
  24915. */
  24916. /**
  24917. * Constructs a new manual_buy.
  24918. * @memberof game
  24919. * @classdesc Represents a manual_buy.
  24920. * @implements Imanual_buy
  24921. * @constructor
  24922. * @param {game.Imanual_buy=} [properties] Properties to set
  24923. */
  24924. function manual_buy(properties) {
  24925. if (properties)
  24926. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  24927. if (properties[keys[i]] != null)
  24928. this[keys[i]] = properties[keys[i]];
  24929. }
  24930. /**
  24931. * manual_buy giftid.
  24932. * @member {number|Long} giftid
  24933. * @memberof game.manual_buy
  24934. * @instance
  24935. */
  24936. manual_buy.prototype.giftid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24937. /**
  24938. * manual_buy moduleid.
  24939. * @member {number|Long} moduleid
  24940. * @memberof game.manual_buy
  24941. * @instance
  24942. */
  24943. manual_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  24944. /**
  24945. * Creates a new manual_buy instance using the specified properties.
  24946. * @function create
  24947. * @memberof game.manual_buy
  24948. * @static
  24949. * @param {game.Imanual_buy=} [properties] Properties to set
  24950. * @returns {game.manual_buy} manual_buy instance
  24951. */
  24952. manual_buy.create = function create(properties) {
  24953. return new manual_buy(properties);
  24954. };
  24955. /**
  24956. * Encodes the specified manual_buy message. Does not implicitly {@link game.manual_buy.verify|verify} messages.
  24957. * @function encode
  24958. * @memberof game.manual_buy
  24959. * @static
  24960. * @param {game.Imanual_buy} message manual_buy message or plain object to encode
  24961. * @param {$protobuf.Writer} [writer] Writer to encode to
  24962. * @returns {$protobuf.Writer} Writer
  24963. */
  24964. manual_buy.encode = function encode(message, writer) {
  24965. if (!writer)
  24966. writer = $Writer.create();
  24967. if (message.giftid != null && Object.hasOwnProperty.call(message, "giftid"))
  24968. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.giftid);
  24969. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  24970. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  24971. return writer;
  24972. };
  24973. /**
  24974. * Encodes the specified manual_buy message, length delimited. Does not implicitly {@link game.manual_buy.verify|verify} messages.
  24975. * @function encodeDelimited
  24976. * @memberof game.manual_buy
  24977. * @static
  24978. * @param {game.Imanual_buy} message manual_buy message or plain object to encode
  24979. * @param {$protobuf.Writer} [writer] Writer to encode to
  24980. * @returns {$protobuf.Writer} Writer
  24981. */
  24982. manual_buy.encodeDelimited = function encodeDelimited(message, writer) {
  24983. return this.encode(message, writer).ldelim();
  24984. };
  24985. /**
  24986. * Decodes a manual_buy message from the specified reader or buffer.
  24987. * @function decode
  24988. * @memberof game.manual_buy
  24989. * @static
  24990. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  24991. * @param {number} [length] Message length if known beforehand
  24992. * @returns {game.manual_buy} manual_buy
  24993. * @throws {Error} If the payload is not a reader or valid buffer
  24994. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  24995. */
  24996. manual_buy.decode = function decode(reader, length) {
  24997. if (!(reader instanceof $Reader))
  24998. reader = $Reader.create(reader);
  24999. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy();
  25000. while (reader.pos < end) {
  25001. let tag = reader.uint32();
  25002. switch (tag >>> 3) {
  25003. case 1:
  25004. message.giftid = reader.int64();
  25005. break;
  25006. case 2:
  25007. message.moduleid = reader.int64();
  25008. break;
  25009. default:
  25010. reader.skipType(tag & 7);
  25011. break;
  25012. }
  25013. }
  25014. return message;
  25015. };
  25016. /**
  25017. * Decodes a manual_buy message from the specified reader or buffer, length delimited.
  25018. * @function decodeDelimited
  25019. * @memberof game.manual_buy
  25020. * @static
  25021. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25022. * @returns {game.manual_buy} manual_buy
  25023. * @throws {Error} If the payload is not a reader or valid buffer
  25024. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25025. */
  25026. manual_buy.decodeDelimited = function decodeDelimited(reader) {
  25027. if (!(reader instanceof $Reader))
  25028. reader = new $Reader(reader);
  25029. return this.decode(reader, reader.uint32());
  25030. };
  25031. /**
  25032. * Verifies a manual_buy message.
  25033. * @function verify
  25034. * @memberof game.manual_buy
  25035. * @static
  25036. * @param {Object.<string,*>} message Plain object to verify
  25037. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25038. */
  25039. manual_buy.verify = function verify(message) {
  25040. if (typeof message !== "object" || message === null)
  25041. return "object expected";
  25042. if (message.giftid != null && message.hasOwnProperty("giftid"))
  25043. if (!$util.isInteger(message.giftid) && !(message.giftid && $util.isInteger(message.giftid.low) && $util.isInteger(message.giftid.high)))
  25044. return "giftid: integer|Long expected";
  25045. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25046. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  25047. return "moduleid: integer|Long expected";
  25048. return null;
  25049. };
  25050. /**
  25051. * Creates a manual_buy message from a plain object. Also converts values to their respective internal types.
  25052. * @function fromObject
  25053. * @memberof game.manual_buy
  25054. * @static
  25055. * @param {Object.<string,*>} object Plain object
  25056. * @returns {game.manual_buy} manual_buy
  25057. */
  25058. manual_buy.fromObject = function fromObject(object) {
  25059. if (object instanceof $root.game.manual_buy)
  25060. return object;
  25061. let message = new $root.game.manual_buy();
  25062. if (object.giftid != null)
  25063. if ($util.Long)
  25064. (message.giftid = $util.Long.fromValue(object.giftid)).unsigned = false;
  25065. else if (typeof object.giftid === "string")
  25066. message.giftid = parseInt(object.giftid, 10);
  25067. else if (typeof object.giftid === "number")
  25068. message.giftid = object.giftid;
  25069. else if (typeof object.giftid === "object")
  25070. message.giftid = new $util.LongBits(object.giftid.low >>> 0, object.giftid.high >>> 0).toNumber();
  25071. if (object.moduleid != null)
  25072. if ($util.Long)
  25073. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  25074. else if (typeof object.moduleid === "string")
  25075. message.moduleid = parseInt(object.moduleid, 10);
  25076. else if (typeof object.moduleid === "number")
  25077. message.moduleid = object.moduleid;
  25078. else if (typeof object.moduleid === "object")
  25079. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  25080. return message;
  25081. };
  25082. /**
  25083. * Creates a plain object from a manual_buy message. Also converts values to other types if specified.
  25084. * @function toObject
  25085. * @memberof game.manual_buy
  25086. * @static
  25087. * @param {game.manual_buy} message manual_buy
  25088. * @param {$protobuf.IConversionOptions} [options] Conversion options
  25089. * @returns {Object.<string,*>} Plain object
  25090. */
  25091. manual_buy.toObject = function toObject(message, options) {
  25092. if (!options)
  25093. options = {};
  25094. let object = {};
  25095. if (options.defaults) {
  25096. if ($util.Long) {
  25097. let long = new $util.Long(0, 0, false);
  25098. object.giftid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25099. } else
  25100. object.giftid = options.longs === String ? "0" : 0;
  25101. if ($util.Long) {
  25102. let long = new $util.Long(0, 0, false);
  25103. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25104. } else
  25105. object.moduleid = options.longs === String ? "0" : 0;
  25106. }
  25107. if (message.giftid != null && message.hasOwnProperty("giftid"))
  25108. if (typeof message.giftid === "number")
  25109. object.giftid = options.longs === String ? String(message.giftid) : message.giftid;
  25110. else
  25111. object.giftid = options.longs === String ? $util.Long.prototype.toString.call(message.giftid) : options.longs === Number ? new $util.LongBits(message.giftid.low >>> 0, message.giftid.high >>> 0).toNumber() : message.giftid;
  25112. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25113. if (typeof message.moduleid === "number")
  25114. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  25115. else
  25116. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  25117. return object;
  25118. };
  25119. /**
  25120. * Converts this manual_buy to JSON.
  25121. * @function toJSON
  25122. * @memberof game.manual_buy
  25123. * @instance
  25124. * @returns {Object.<string,*>} JSON object
  25125. */
  25126. manual_buy.prototype.toJSON = function toJSON() {
  25127. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  25128. };
  25129. return manual_buy;
  25130. })();
  25131. game.manual_buy_rsp = (function() {
  25132. /**
  25133. * Properties of a manual_buy_rsp.
  25134. * @memberof game
  25135. * @interface Imanual_buy_rsp
  25136. * @property {number|Long|null} [errno] manual_buy_rsp errno
  25137. * @property {number|Long|null} [moduleid] manual_buy_rsp moduleid
  25138. */
  25139. /**
  25140. * Constructs a new manual_buy_rsp.
  25141. * @memberof game
  25142. * @classdesc Represents a manual_buy_rsp.
  25143. * @implements Imanual_buy_rsp
  25144. * @constructor
  25145. * @param {game.Imanual_buy_rsp=} [properties] Properties to set
  25146. */
  25147. function manual_buy_rsp(properties) {
  25148. if (properties)
  25149. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  25150. if (properties[keys[i]] != null)
  25151. this[keys[i]] = properties[keys[i]];
  25152. }
  25153. /**
  25154. * manual_buy_rsp errno.
  25155. * @member {number|Long} errno
  25156. * @memberof game.manual_buy_rsp
  25157. * @instance
  25158. */
  25159. manual_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25160. /**
  25161. * manual_buy_rsp moduleid.
  25162. * @member {number|Long} moduleid
  25163. * @memberof game.manual_buy_rsp
  25164. * @instance
  25165. */
  25166. manual_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25167. /**
  25168. * Creates a new manual_buy_rsp instance using the specified properties.
  25169. * @function create
  25170. * @memberof game.manual_buy_rsp
  25171. * @static
  25172. * @param {game.Imanual_buy_rsp=} [properties] Properties to set
  25173. * @returns {game.manual_buy_rsp} manual_buy_rsp instance
  25174. */
  25175. manual_buy_rsp.create = function create(properties) {
  25176. return new manual_buy_rsp(properties);
  25177. };
  25178. /**
  25179. * Encodes the specified manual_buy_rsp message. Does not implicitly {@link game.manual_buy_rsp.verify|verify} messages.
  25180. * @function encode
  25181. * @memberof game.manual_buy_rsp
  25182. * @static
  25183. * @param {game.Imanual_buy_rsp} message manual_buy_rsp message or plain object to encode
  25184. * @param {$protobuf.Writer} [writer] Writer to encode to
  25185. * @returns {$protobuf.Writer} Writer
  25186. */
  25187. manual_buy_rsp.encode = function encode(message, writer) {
  25188. if (!writer)
  25189. writer = $Writer.create();
  25190. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  25191. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  25192. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  25193. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  25194. return writer;
  25195. };
  25196. /**
  25197. * Encodes the specified manual_buy_rsp message, length delimited. Does not implicitly {@link game.manual_buy_rsp.verify|verify} messages.
  25198. * @function encodeDelimited
  25199. * @memberof game.manual_buy_rsp
  25200. * @static
  25201. * @param {game.Imanual_buy_rsp} message manual_buy_rsp message or plain object to encode
  25202. * @param {$protobuf.Writer} [writer] Writer to encode to
  25203. * @returns {$protobuf.Writer} Writer
  25204. */
  25205. manual_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  25206. return this.encode(message, writer).ldelim();
  25207. };
  25208. /**
  25209. * Decodes a manual_buy_rsp message from the specified reader or buffer.
  25210. * @function decode
  25211. * @memberof game.manual_buy_rsp
  25212. * @static
  25213. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25214. * @param {number} [length] Message length if known beforehand
  25215. * @returns {game.manual_buy_rsp} manual_buy_rsp
  25216. * @throws {Error} If the payload is not a reader or valid buffer
  25217. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25218. */
  25219. manual_buy_rsp.decode = function decode(reader, length) {
  25220. if (!(reader instanceof $Reader))
  25221. reader = $Reader.create(reader);
  25222. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual_buy_rsp();
  25223. while (reader.pos < end) {
  25224. let tag = reader.uint32();
  25225. switch (tag >>> 3) {
  25226. case 1:
  25227. message.errno = reader.int64();
  25228. break;
  25229. case 2:
  25230. message.moduleid = reader.int64();
  25231. break;
  25232. default:
  25233. reader.skipType(tag & 7);
  25234. break;
  25235. }
  25236. }
  25237. return message;
  25238. };
  25239. /**
  25240. * Decodes a manual_buy_rsp message from the specified reader or buffer, length delimited.
  25241. * @function decodeDelimited
  25242. * @memberof game.manual_buy_rsp
  25243. * @static
  25244. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25245. * @returns {game.manual_buy_rsp} manual_buy_rsp
  25246. * @throws {Error} If the payload is not a reader or valid buffer
  25247. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25248. */
  25249. manual_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  25250. if (!(reader instanceof $Reader))
  25251. reader = new $Reader(reader);
  25252. return this.decode(reader, reader.uint32());
  25253. };
  25254. /**
  25255. * Verifies a manual_buy_rsp message.
  25256. * @function verify
  25257. * @memberof game.manual_buy_rsp
  25258. * @static
  25259. * @param {Object.<string,*>} message Plain object to verify
  25260. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25261. */
  25262. manual_buy_rsp.verify = function verify(message) {
  25263. if (typeof message !== "object" || message === null)
  25264. return "object expected";
  25265. if (message.errno != null && message.hasOwnProperty("errno"))
  25266. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  25267. return "errno: integer|Long expected";
  25268. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25269. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  25270. return "moduleid: integer|Long expected";
  25271. return null;
  25272. };
  25273. /**
  25274. * Creates a manual_buy_rsp message from a plain object. Also converts values to their respective internal types.
  25275. * @function fromObject
  25276. * @memberof game.manual_buy_rsp
  25277. * @static
  25278. * @param {Object.<string,*>} object Plain object
  25279. * @returns {game.manual_buy_rsp} manual_buy_rsp
  25280. */
  25281. manual_buy_rsp.fromObject = function fromObject(object) {
  25282. if (object instanceof $root.game.manual_buy_rsp)
  25283. return object;
  25284. let message = new $root.game.manual_buy_rsp();
  25285. if (object.errno != null)
  25286. if ($util.Long)
  25287. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  25288. else if (typeof object.errno === "string")
  25289. message.errno = parseInt(object.errno, 10);
  25290. else if (typeof object.errno === "number")
  25291. message.errno = object.errno;
  25292. else if (typeof object.errno === "object")
  25293. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  25294. if (object.moduleid != null)
  25295. if ($util.Long)
  25296. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  25297. else if (typeof object.moduleid === "string")
  25298. message.moduleid = parseInt(object.moduleid, 10);
  25299. else if (typeof object.moduleid === "number")
  25300. message.moduleid = object.moduleid;
  25301. else if (typeof object.moduleid === "object")
  25302. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  25303. return message;
  25304. };
  25305. /**
  25306. * Creates a plain object from a manual_buy_rsp message. Also converts values to other types if specified.
  25307. * @function toObject
  25308. * @memberof game.manual_buy_rsp
  25309. * @static
  25310. * @param {game.manual_buy_rsp} message manual_buy_rsp
  25311. * @param {$protobuf.IConversionOptions} [options] Conversion options
  25312. * @returns {Object.<string,*>} Plain object
  25313. */
  25314. manual_buy_rsp.toObject = function toObject(message, options) {
  25315. if (!options)
  25316. options = {};
  25317. let object = {};
  25318. if (options.defaults) {
  25319. if ($util.Long) {
  25320. let long = new $util.Long(0, 0, false);
  25321. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25322. } else
  25323. object.errno = options.longs === String ? "0" : 0;
  25324. if ($util.Long) {
  25325. let long = new $util.Long(0, 0, false);
  25326. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25327. } else
  25328. object.moduleid = options.longs === String ? "0" : 0;
  25329. }
  25330. if (message.errno != null && message.hasOwnProperty("errno"))
  25331. if (typeof message.errno === "number")
  25332. object.errno = options.longs === String ? String(message.errno) : message.errno;
  25333. else
  25334. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  25335. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  25336. if (typeof message.moduleid === "number")
  25337. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  25338. else
  25339. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  25340. return object;
  25341. };
  25342. /**
  25343. * Converts this manual_buy_rsp to JSON.
  25344. * @function toJSON
  25345. * @memberof game.manual_buy_rsp
  25346. * @instance
  25347. * @returns {Object.<string,*>} JSON object
  25348. */
  25349. manual_buy_rsp.prototype.toJSON = function toJSON() {
  25350. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  25351. };
  25352. return manual_buy_rsp;
  25353. })();
  25354. game.draw = (function() {
  25355. /**
  25356. * Properties of a draw.
  25357. * @memberof game
  25358. * @interface Idraw
  25359. * @property {number|Long|null} [drawType] draw drawType
  25360. * @property {number|Long|null} [payType] draw payType
  25361. * @property {number|Long|null} [num] draw num
  25362. */
  25363. /**
  25364. * Constructs a new draw.
  25365. * @memberof game
  25366. * @classdesc Represents a draw.
  25367. * @implements Idraw
  25368. * @constructor
  25369. * @param {game.Idraw=} [properties] Properties to set
  25370. */
  25371. function draw(properties) {
  25372. if (properties)
  25373. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  25374. if (properties[keys[i]] != null)
  25375. this[keys[i]] = properties[keys[i]];
  25376. }
  25377. /**
  25378. * draw drawType.
  25379. * @member {number|Long} drawType
  25380. * @memberof game.draw
  25381. * @instance
  25382. */
  25383. draw.prototype.drawType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25384. /**
  25385. * draw payType.
  25386. * @member {number|Long} payType
  25387. * @memberof game.draw
  25388. * @instance
  25389. */
  25390. draw.prototype.payType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25391. /**
  25392. * draw num.
  25393. * @member {number|Long} num
  25394. * @memberof game.draw
  25395. * @instance
  25396. */
  25397. draw.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25398. /**
  25399. * Creates a new draw instance using the specified properties.
  25400. * @function create
  25401. * @memberof game.draw
  25402. * @static
  25403. * @param {game.Idraw=} [properties] Properties to set
  25404. * @returns {game.draw} draw instance
  25405. */
  25406. draw.create = function create(properties) {
  25407. return new draw(properties);
  25408. };
  25409. /**
  25410. * Encodes the specified draw message. Does not implicitly {@link game.draw.verify|verify} messages.
  25411. * @function encode
  25412. * @memberof game.draw
  25413. * @static
  25414. * @param {game.Idraw} message draw message or plain object to encode
  25415. * @param {$protobuf.Writer} [writer] Writer to encode to
  25416. * @returns {$protobuf.Writer} Writer
  25417. */
  25418. draw.encode = function encode(message, writer) {
  25419. if (!writer)
  25420. writer = $Writer.create();
  25421. if (message.drawType != null && Object.hasOwnProperty.call(message, "drawType"))
  25422. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.drawType);
  25423. if (message.payType != null && Object.hasOwnProperty.call(message, "payType"))
  25424. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.payType);
  25425. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  25426. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  25427. return writer;
  25428. };
  25429. /**
  25430. * Encodes the specified draw message, length delimited. Does not implicitly {@link game.draw.verify|verify} messages.
  25431. * @function encodeDelimited
  25432. * @memberof game.draw
  25433. * @static
  25434. * @param {game.Idraw} message draw message or plain object to encode
  25435. * @param {$protobuf.Writer} [writer] Writer to encode to
  25436. * @returns {$protobuf.Writer} Writer
  25437. */
  25438. draw.encodeDelimited = function encodeDelimited(message, writer) {
  25439. return this.encode(message, writer).ldelim();
  25440. };
  25441. /**
  25442. * Decodes a draw message from the specified reader or buffer.
  25443. * @function decode
  25444. * @memberof game.draw
  25445. * @static
  25446. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25447. * @param {number} [length] Message length if known beforehand
  25448. * @returns {game.draw} draw
  25449. * @throws {Error} If the payload is not a reader or valid buffer
  25450. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25451. */
  25452. draw.decode = function decode(reader, length) {
  25453. if (!(reader instanceof $Reader))
  25454. reader = $Reader.create(reader);
  25455. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw();
  25456. while (reader.pos < end) {
  25457. let tag = reader.uint32();
  25458. switch (tag >>> 3) {
  25459. case 1:
  25460. message.drawType = reader.int64();
  25461. break;
  25462. case 2:
  25463. message.payType = reader.int64();
  25464. break;
  25465. case 3:
  25466. message.num = reader.int64();
  25467. break;
  25468. default:
  25469. reader.skipType(tag & 7);
  25470. break;
  25471. }
  25472. }
  25473. return message;
  25474. };
  25475. /**
  25476. * Decodes a draw message from the specified reader or buffer, length delimited.
  25477. * @function decodeDelimited
  25478. * @memberof game.draw
  25479. * @static
  25480. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25481. * @returns {game.draw} draw
  25482. * @throws {Error} If the payload is not a reader or valid buffer
  25483. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25484. */
  25485. draw.decodeDelimited = function decodeDelimited(reader) {
  25486. if (!(reader instanceof $Reader))
  25487. reader = new $Reader(reader);
  25488. return this.decode(reader, reader.uint32());
  25489. };
  25490. /**
  25491. * Verifies a draw message.
  25492. * @function verify
  25493. * @memberof game.draw
  25494. * @static
  25495. * @param {Object.<string,*>} message Plain object to verify
  25496. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25497. */
  25498. draw.verify = function verify(message) {
  25499. if (typeof message !== "object" || message === null)
  25500. return "object expected";
  25501. if (message.drawType != null && message.hasOwnProperty("drawType"))
  25502. if (!$util.isInteger(message.drawType) && !(message.drawType && $util.isInteger(message.drawType.low) && $util.isInteger(message.drawType.high)))
  25503. return "drawType: integer|Long expected";
  25504. if (message.payType != null && message.hasOwnProperty("payType"))
  25505. if (!$util.isInteger(message.payType) && !(message.payType && $util.isInteger(message.payType.low) && $util.isInteger(message.payType.high)))
  25506. return "payType: integer|Long expected";
  25507. if (message.num != null && message.hasOwnProperty("num"))
  25508. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  25509. return "num: integer|Long expected";
  25510. return null;
  25511. };
  25512. /**
  25513. * Creates a draw message from a plain object. Also converts values to their respective internal types.
  25514. * @function fromObject
  25515. * @memberof game.draw
  25516. * @static
  25517. * @param {Object.<string,*>} object Plain object
  25518. * @returns {game.draw} draw
  25519. */
  25520. draw.fromObject = function fromObject(object) {
  25521. if (object instanceof $root.game.draw)
  25522. return object;
  25523. let message = new $root.game.draw();
  25524. if (object.drawType != null)
  25525. if ($util.Long)
  25526. (message.drawType = $util.Long.fromValue(object.drawType)).unsigned = false;
  25527. else if (typeof object.drawType === "string")
  25528. message.drawType = parseInt(object.drawType, 10);
  25529. else if (typeof object.drawType === "number")
  25530. message.drawType = object.drawType;
  25531. else if (typeof object.drawType === "object")
  25532. message.drawType = new $util.LongBits(object.drawType.low >>> 0, object.drawType.high >>> 0).toNumber();
  25533. if (object.payType != null)
  25534. if ($util.Long)
  25535. (message.payType = $util.Long.fromValue(object.payType)).unsigned = false;
  25536. else if (typeof object.payType === "string")
  25537. message.payType = parseInt(object.payType, 10);
  25538. else if (typeof object.payType === "number")
  25539. message.payType = object.payType;
  25540. else if (typeof object.payType === "object")
  25541. message.payType = new $util.LongBits(object.payType.low >>> 0, object.payType.high >>> 0).toNumber();
  25542. if (object.num != null)
  25543. if ($util.Long)
  25544. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  25545. else if (typeof object.num === "string")
  25546. message.num = parseInt(object.num, 10);
  25547. else if (typeof object.num === "number")
  25548. message.num = object.num;
  25549. else if (typeof object.num === "object")
  25550. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  25551. return message;
  25552. };
  25553. /**
  25554. * Creates a plain object from a draw message. Also converts values to other types if specified.
  25555. * @function toObject
  25556. * @memberof game.draw
  25557. * @static
  25558. * @param {game.draw} message draw
  25559. * @param {$protobuf.IConversionOptions} [options] Conversion options
  25560. * @returns {Object.<string,*>} Plain object
  25561. */
  25562. draw.toObject = function toObject(message, options) {
  25563. if (!options)
  25564. options = {};
  25565. let object = {};
  25566. if (options.defaults) {
  25567. if ($util.Long) {
  25568. let long = new $util.Long(0, 0, false);
  25569. object.drawType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25570. } else
  25571. object.drawType = options.longs === String ? "0" : 0;
  25572. if ($util.Long) {
  25573. let long = new $util.Long(0, 0, false);
  25574. object.payType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25575. } else
  25576. object.payType = options.longs === String ? "0" : 0;
  25577. if ($util.Long) {
  25578. let long = new $util.Long(0, 0, false);
  25579. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25580. } else
  25581. object.num = options.longs === String ? "0" : 0;
  25582. }
  25583. if (message.drawType != null && message.hasOwnProperty("drawType"))
  25584. if (typeof message.drawType === "number")
  25585. object.drawType = options.longs === String ? String(message.drawType) : message.drawType;
  25586. else
  25587. object.drawType = options.longs === String ? $util.Long.prototype.toString.call(message.drawType) : options.longs === Number ? new $util.LongBits(message.drawType.low >>> 0, message.drawType.high >>> 0).toNumber() : message.drawType;
  25588. if (message.payType != null && message.hasOwnProperty("payType"))
  25589. if (typeof message.payType === "number")
  25590. object.payType = options.longs === String ? String(message.payType) : message.payType;
  25591. else
  25592. object.payType = options.longs === String ? $util.Long.prototype.toString.call(message.payType) : options.longs === Number ? new $util.LongBits(message.payType.low >>> 0, message.payType.high >>> 0).toNumber() : message.payType;
  25593. if (message.num != null && message.hasOwnProperty("num"))
  25594. if (typeof message.num === "number")
  25595. object.num = options.longs === String ? String(message.num) : message.num;
  25596. else
  25597. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  25598. return object;
  25599. };
  25600. /**
  25601. * Converts this draw to JSON.
  25602. * @function toJSON
  25603. * @memberof game.draw
  25604. * @instance
  25605. * @returns {Object.<string,*>} JSON object
  25606. */
  25607. draw.prototype.toJSON = function toJSON() {
  25608. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  25609. };
  25610. return draw;
  25611. })();
  25612. game.draw_rsp = (function() {
  25613. /**
  25614. * Properties of a draw_rsp.
  25615. * @memberof game
  25616. * @interface Idraw_rsp
  25617. * @property {number|Long|null} [errno] draw_rsp errno
  25618. * @property {number|Long|null} [drawType] draw_rsp drawType
  25619. * @property {number|Long|null} [daily] draw_rsp daily
  25620. * @property {number|Long|null} [free] draw_rsp free
  25621. * @property {Array.<number|Long>|null} [list] draw_rsp list
  25622. * @property {Array.<game.Idraw_award_info>|null} [awardList] draw_rsp awardList
  25623. */
  25624. /**
  25625. * Constructs a new draw_rsp.
  25626. * @memberof game
  25627. * @classdesc Represents a draw_rsp.
  25628. * @implements Idraw_rsp
  25629. * @constructor
  25630. * @param {game.Idraw_rsp=} [properties] Properties to set
  25631. */
  25632. function draw_rsp(properties) {
  25633. this.list = [];
  25634. this.awardList = [];
  25635. if (properties)
  25636. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  25637. if (properties[keys[i]] != null)
  25638. this[keys[i]] = properties[keys[i]];
  25639. }
  25640. /**
  25641. * draw_rsp errno.
  25642. * @member {number|Long} errno
  25643. * @memberof game.draw_rsp
  25644. * @instance
  25645. */
  25646. draw_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25647. /**
  25648. * draw_rsp drawType.
  25649. * @member {number|Long} drawType
  25650. * @memberof game.draw_rsp
  25651. * @instance
  25652. */
  25653. draw_rsp.prototype.drawType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25654. /**
  25655. * draw_rsp daily.
  25656. * @member {number|Long} daily
  25657. * @memberof game.draw_rsp
  25658. * @instance
  25659. */
  25660. draw_rsp.prototype.daily = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25661. /**
  25662. * draw_rsp free.
  25663. * @member {number|Long} free
  25664. * @memberof game.draw_rsp
  25665. * @instance
  25666. */
  25667. draw_rsp.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  25668. /**
  25669. * draw_rsp list.
  25670. * @member {Array.<number|Long>} list
  25671. * @memberof game.draw_rsp
  25672. * @instance
  25673. */
  25674. draw_rsp.prototype.list = $util.emptyArray;
  25675. /**
  25676. * draw_rsp awardList.
  25677. * @member {Array.<game.Idraw_award_info>} awardList
  25678. * @memberof game.draw_rsp
  25679. * @instance
  25680. */
  25681. draw_rsp.prototype.awardList = $util.emptyArray;
  25682. /**
  25683. * Creates a new draw_rsp instance using the specified properties.
  25684. * @function create
  25685. * @memberof game.draw_rsp
  25686. * @static
  25687. * @param {game.Idraw_rsp=} [properties] Properties to set
  25688. * @returns {game.draw_rsp} draw_rsp instance
  25689. */
  25690. draw_rsp.create = function create(properties) {
  25691. return new draw_rsp(properties);
  25692. };
  25693. /**
  25694. * Encodes the specified draw_rsp message. Does not implicitly {@link game.draw_rsp.verify|verify} messages.
  25695. * @function encode
  25696. * @memberof game.draw_rsp
  25697. * @static
  25698. * @param {game.Idraw_rsp} message draw_rsp message or plain object to encode
  25699. * @param {$protobuf.Writer} [writer] Writer to encode to
  25700. * @returns {$protobuf.Writer} Writer
  25701. */
  25702. draw_rsp.encode = function encode(message, writer) {
  25703. if (!writer)
  25704. writer = $Writer.create();
  25705. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  25706. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  25707. if (message.drawType != null && Object.hasOwnProperty.call(message, "drawType"))
  25708. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.drawType);
  25709. if (message.daily != null && Object.hasOwnProperty.call(message, "daily"))
  25710. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.daily);
  25711. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  25712. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.free);
  25713. if (message.list != null && message.list.length) {
  25714. writer.uint32(/* id 5, wireType 2 =*/42).fork();
  25715. for (let i = 0; i < message.list.length; ++i)
  25716. writer.int64(message.list[i]);
  25717. writer.ldelim();
  25718. }
  25719. if (message.awardList != null && message.awardList.length)
  25720. for (let i = 0; i < message.awardList.length; ++i)
  25721. $root.game.draw_award_info.encode(message.awardList[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
  25722. return writer;
  25723. };
  25724. /**
  25725. * Encodes the specified draw_rsp message, length delimited. Does not implicitly {@link game.draw_rsp.verify|verify} messages.
  25726. * @function encodeDelimited
  25727. * @memberof game.draw_rsp
  25728. * @static
  25729. * @param {game.Idraw_rsp} message draw_rsp message or plain object to encode
  25730. * @param {$protobuf.Writer} [writer] Writer to encode to
  25731. * @returns {$protobuf.Writer} Writer
  25732. */
  25733. draw_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  25734. return this.encode(message, writer).ldelim();
  25735. };
  25736. /**
  25737. * Decodes a draw_rsp message from the specified reader or buffer.
  25738. * @function decode
  25739. * @memberof game.draw_rsp
  25740. * @static
  25741. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25742. * @param {number} [length] Message length if known beforehand
  25743. * @returns {game.draw_rsp} draw_rsp
  25744. * @throws {Error} If the payload is not a reader or valid buffer
  25745. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25746. */
  25747. draw_rsp.decode = function decode(reader, length) {
  25748. if (!(reader instanceof $Reader))
  25749. reader = $Reader.create(reader);
  25750. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_rsp();
  25751. while (reader.pos < end) {
  25752. let tag = reader.uint32();
  25753. switch (tag >>> 3) {
  25754. case 1:
  25755. message.errno = reader.int64();
  25756. break;
  25757. case 2:
  25758. message.drawType = reader.int64();
  25759. break;
  25760. case 3:
  25761. message.daily = reader.int64();
  25762. break;
  25763. case 4:
  25764. message.free = reader.int64();
  25765. break;
  25766. case 5:
  25767. if (!(message.list && message.list.length))
  25768. message.list = [];
  25769. if ((tag & 7) === 2) {
  25770. let end2 = reader.uint32() + reader.pos;
  25771. while (reader.pos < end2)
  25772. message.list.push(reader.int64());
  25773. } else
  25774. message.list.push(reader.int64());
  25775. break;
  25776. case 6:
  25777. if (!(message.awardList && message.awardList.length))
  25778. message.awardList = [];
  25779. message.awardList.push($root.game.draw_award_info.decode(reader, reader.uint32()));
  25780. break;
  25781. default:
  25782. reader.skipType(tag & 7);
  25783. break;
  25784. }
  25785. }
  25786. return message;
  25787. };
  25788. /**
  25789. * Decodes a draw_rsp message from the specified reader or buffer, length delimited.
  25790. * @function decodeDelimited
  25791. * @memberof game.draw_rsp
  25792. * @static
  25793. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  25794. * @returns {game.draw_rsp} draw_rsp
  25795. * @throws {Error} If the payload is not a reader or valid buffer
  25796. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  25797. */
  25798. draw_rsp.decodeDelimited = function decodeDelimited(reader) {
  25799. if (!(reader instanceof $Reader))
  25800. reader = new $Reader(reader);
  25801. return this.decode(reader, reader.uint32());
  25802. };
  25803. /**
  25804. * Verifies a draw_rsp message.
  25805. * @function verify
  25806. * @memberof game.draw_rsp
  25807. * @static
  25808. * @param {Object.<string,*>} message Plain object to verify
  25809. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  25810. */
  25811. draw_rsp.verify = function verify(message) {
  25812. if (typeof message !== "object" || message === null)
  25813. return "object expected";
  25814. if (message.errno != null && message.hasOwnProperty("errno"))
  25815. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  25816. return "errno: integer|Long expected";
  25817. if (message.drawType != null && message.hasOwnProperty("drawType"))
  25818. if (!$util.isInteger(message.drawType) && !(message.drawType && $util.isInteger(message.drawType.low) && $util.isInteger(message.drawType.high)))
  25819. return "drawType: integer|Long expected";
  25820. if (message.daily != null && message.hasOwnProperty("daily"))
  25821. if (!$util.isInteger(message.daily) && !(message.daily && $util.isInteger(message.daily.low) && $util.isInteger(message.daily.high)))
  25822. return "daily: integer|Long expected";
  25823. if (message.free != null && message.hasOwnProperty("free"))
  25824. if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
  25825. return "free: integer|Long expected";
  25826. if (message.list != null && message.hasOwnProperty("list")) {
  25827. if (!Array.isArray(message.list))
  25828. return "list: array expected";
  25829. for (let i = 0; i < message.list.length; ++i)
  25830. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  25831. return "list: integer|Long[] expected";
  25832. }
  25833. if (message.awardList != null && message.hasOwnProperty("awardList")) {
  25834. if (!Array.isArray(message.awardList))
  25835. return "awardList: array expected";
  25836. for (let i = 0; i < message.awardList.length; ++i) {
  25837. let error = $root.game.draw_award_info.verify(message.awardList[i]);
  25838. if (error)
  25839. return "awardList." + error;
  25840. }
  25841. }
  25842. return null;
  25843. };
  25844. /**
  25845. * Creates a draw_rsp message from a plain object. Also converts values to their respective internal types.
  25846. * @function fromObject
  25847. * @memberof game.draw_rsp
  25848. * @static
  25849. * @param {Object.<string,*>} object Plain object
  25850. * @returns {game.draw_rsp} draw_rsp
  25851. */
  25852. draw_rsp.fromObject = function fromObject(object) {
  25853. if (object instanceof $root.game.draw_rsp)
  25854. return object;
  25855. let message = new $root.game.draw_rsp();
  25856. if (object.errno != null)
  25857. if ($util.Long)
  25858. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  25859. else if (typeof object.errno === "string")
  25860. message.errno = parseInt(object.errno, 10);
  25861. else if (typeof object.errno === "number")
  25862. message.errno = object.errno;
  25863. else if (typeof object.errno === "object")
  25864. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  25865. if (object.drawType != null)
  25866. if ($util.Long)
  25867. (message.drawType = $util.Long.fromValue(object.drawType)).unsigned = false;
  25868. else if (typeof object.drawType === "string")
  25869. message.drawType = parseInt(object.drawType, 10);
  25870. else if (typeof object.drawType === "number")
  25871. message.drawType = object.drawType;
  25872. else if (typeof object.drawType === "object")
  25873. message.drawType = new $util.LongBits(object.drawType.low >>> 0, object.drawType.high >>> 0).toNumber();
  25874. if (object.daily != null)
  25875. if ($util.Long)
  25876. (message.daily = $util.Long.fromValue(object.daily)).unsigned = false;
  25877. else if (typeof object.daily === "string")
  25878. message.daily = parseInt(object.daily, 10);
  25879. else if (typeof object.daily === "number")
  25880. message.daily = object.daily;
  25881. else if (typeof object.daily === "object")
  25882. message.daily = new $util.LongBits(object.daily.low >>> 0, object.daily.high >>> 0).toNumber();
  25883. if (object.free != null)
  25884. if ($util.Long)
  25885. (message.free = $util.Long.fromValue(object.free)).unsigned = false;
  25886. else if (typeof object.free === "string")
  25887. message.free = parseInt(object.free, 10);
  25888. else if (typeof object.free === "number")
  25889. message.free = object.free;
  25890. else if (typeof object.free === "object")
  25891. message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
  25892. if (object.list) {
  25893. if (!Array.isArray(object.list))
  25894. throw TypeError(".game.draw_rsp.list: array expected");
  25895. message.list = [];
  25896. for (let i = 0; i < object.list.length; ++i)
  25897. if ($util.Long)
  25898. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  25899. else if (typeof object.list[i] === "string")
  25900. message.list[i] = parseInt(object.list[i], 10);
  25901. else if (typeof object.list[i] === "number")
  25902. message.list[i] = object.list[i];
  25903. else if (typeof object.list[i] === "object")
  25904. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  25905. }
  25906. if (object.awardList) {
  25907. if (!Array.isArray(object.awardList))
  25908. throw TypeError(".game.draw_rsp.awardList: array expected");
  25909. message.awardList = [];
  25910. for (let i = 0; i < object.awardList.length; ++i) {
  25911. if (typeof object.awardList[i] !== "object")
  25912. throw TypeError(".game.draw_rsp.awardList: object expected");
  25913. message.awardList[i] = $root.game.draw_award_info.fromObject(object.awardList[i]);
  25914. }
  25915. }
  25916. return message;
  25917. };
  25918. /**
  25919. * Creates a plain object from a draw_rsp message. Also converts values to other types if specified.
  25920. * @function toObject
  25921. * @memberof game.draw_rsp
  25922. * @static
  25923. * @param {game.draw_rsp} message draw_rsp
  25924. * @param {$protobuf.IConversionOptions} [options] Conversion options
  25925. * @returns {Object.<string,*>} Plain object
  25926. */
  25927. draw_rsp.toObject = function toObject(message, options) {
  25928. if (!options)
  25929. options = {};
  25930. let object = {};
  25931. if (options.arrays || options.defaults) {
  25932. object.list = [];
  25933. object.awardList = [];
  25934. }
  25935. if (options.defaults) {
  25936. if ($util.Long) {
  25937. let long = new $util.Long(0, 0, false);
  25938. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25939. } else
  25940. object.errno = options.longs === String ? "0" : 0;
  25941. if ($util.Long) {
  25942. let long = new $util.Long(0, 0, false);
  25943. object.drawType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25944. } else
  25945. object.drawType = options.longs === String ? "0" : 0;
  25946. if ($util.Long) {
  25947. let long = new $util.Long(0, 0, false);
  25948. object.daily = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25949. } else
  25950. object.daily = options.longs === String ? "0" : 0;
  25951. if ($util.Long) {
  25952. let long = new $util.Long(0, 0, false);
  25953. object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  25954. } else
  25955. object.free = options.longs === String ? "0" : 0;
  25956. }
  25957. if (message.errno != null && message.hasOwnProperty("errno"))
  25958. if (typeof message.errno === "number")
  25959. object.errno = options.longs === String ? String(message.errno) : message.errno;
  25960. else
  25961. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  25962. if (message.drawType != null && message.hasOwnProperty("drawType"))
  25963. if (typeof message.drawType === "number")
  25964. object.drawType = options.longs === String ? String(message.drawType) : message.drawType;
  25965. else
  25966. object.drawType = options.longs === String ? $util.Long.prototype.toString.call(message.drawType) : options.longs === Number ? new $util.LongBits(message.drawType.low >>> 0, message.drawType.high >>> 0).toNumber() : message.drawType;
  25967. if (message.daily != null && message.hasOwnProperty("daily"))
  25968. if (typeof message.daily === "number")
  25969. object.daily = options.longs === String ? String(message.daily) : message.daily;
  25970. else
  25971. object.daily = options.longs === String ? $util.Long.prototype.toString.call(message.daily) : options.longs === Number ? new $util.LongBits(message.daily.low >>> 0, message.daily.high >>> 0).toNumber() : message.daily;
  25972. if (message.free != null && message.hasOwnProperty("free"))
  25973. if (typeof message.free === "number")
  25974. object.free = options.longs === String ? String(message.free) : message.free;
  25975. else
  25976. object.free = options.longs === String ? $util.Long.prototype.toString.call(message.free) : options.longs === Number ? new $util.LongBits(message.free.low >>> 0, message.free.high >>> 0).toNumber() : message.free;
  25977. if (message.list && message.list.length) {
  25978. object.list = [];
  25979. for (let j = 0; j < message.list.length; ++j)
  25980. if (typeof message.list[j] === "number")
  25981. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  25982. else
  25983. object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
  25984. }
  25985. if (message.awardList && message.awardList.length) {
  25986. object.awardList = [];
  25987. for (let j = 0; j < message.awardList.length; ++j)
  25988. object.awardList[j] = $root.game.draw_award_info.toObject(message.awardList[j], options);
  25989. }
  25990. return object;
  25991. };
  25992. /**
  25993. * Converts this draw_rsp to JSON.
  25994. * @function toJSON
  25995. * @memberof game.draw_rsp
  25996. * @instance
  25997. * @returns {Object.<string,*>} JSON object
  25998. */
  25999. draw_rsp.prototype.toJSON = function toJSON() {
  26000. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26001. };
  26002. return draw_rsp;
  26003. })();
  26004. game.draw_get_data = (function() {
  26005. /**
  26006. * Properties of a draw_get_data.
  26007. * @memberof game
  26008. * @interface Idraw_get_data
  26009. */
  26010. /**
  26011. * Constructs a new draw_get_data.
  26012. * @memberof game
  26013. * @classdesc Represents a draw_get_data.
  26014. * @implements Idraw_get_data
  26015. * @constructor
  26016. * @param {game.Idraw_get_data=} [properties] Properties to set
  26017. */
  26018. function draw_get_data(properties) {
  26019. if (properties)
  26020. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26021. if (properties[keys[i]] != null)
  26022. this[keys[i]] = properties[keys[i]];
  26023. }
  26024. /**
  26025. * Creates a new draw_get_data instance using the specified properties.
  26026. * @function create
  26027. * @memberof game.draw_get_data
  26028. * @static
  26029. * @param {game.Idraw_get_data=} [properties] Properties to set
  26030. * @returns {game.draw_get_data} draw_get_data instance
  26031. */
  26032. draw_get_data.create = function create(properties) {
  26033. return new draw_get_data(properties);
  26034. };
  26035. /**
  26036. * Encodes the specified draw_get_data message. Does not implicitly {@link game.draw_get_data.verify|verify} messages.
  26037. * @function encode
  26038. * @memberof game.draw_get_data
  26039. * @static
  26040. * @param {game.Idraw_get_data} message draw_get_data message or plain object to encode
  26041. * @param {$protobuf.Writer} [writer] Writer to encode to
  26042. * @returns {$protobuf.Writer} Writer
  26043. */
  26044. draw_get_data.encode = function encode(message, writer) {
  26045. if (!writer)
  26046. writer = $Writer.create();
  26047. return writer;
  26048. };
  26049. /**
  26050. * Encodes the specified draw_get_data message, length delimited. Does not implicitly {@link game.draw_get_data.verify|verify} messages.
  26051. * @function encodeDelimited
  26052. * @memberof game.draw_get_data
  26053. * @static
  26054. * @param {game.Idraw_get_data} message draw_get_data message or plain object to encode
  26055. * @param {$protobuf.Writer} [writer] Writer to encode to
  26056. * @returns {$protobuf.Writer} Writer
  26057. */
  26058. draw_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  26059. return this.encode(message, writer).ldelim();
  26060. };
  26061. /**
  26062. * Decodes a draw_get_data message from the specified reader or buffer.
  26063. * @function decode
  26064. * @memberof game.draw_get_data
  26065. * @static
  26066. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26067. * @param {number} [length] Message length if known beforehand
  26068. * @returns {game.draw_get_data} draw_get_data
  26069. * @throws {Error} If the payload is not a reader or valid buffer
  26070. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26071. */
  26072. draw_get_data.decode = function decode(reader, length) {
  26073. if (!(reader instanceof $Reader))
  26074. reader = $Reader.create(reader);
  26075. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_get_data();
  26076. while (reader.pos < end) {
  26077. let tag = reader.uint32();
  26078. switch (tag >>> 3) {
  26079. default:
  26080. reader.skipType(tag & 7);
  26081. break;
  26082. }
  26083. }
  26084. return message;
  26085. };
  26086. /**
  26087. * Decodes a draw_get_data message from the specified reader or buffer, length delimited.
  26088. * @function decodeDelimited
  26089. * @memberof game.draw_get_data
  26090. * @static
  26091. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26092. * @returns {game.draw_get_data} draw_get_data
  26093. * @throws {Error} If the payload is not a reader or valid buffer
  26094. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26095. */
  26096. draw_get_data.decodeDelimited = function decodeDelimited(reader) {
  26097. if (!(reader instanceof $Reader))
  26098. reader = new $Reader(reader);
  26099. return this.decode(reader, reader.uint32());
  26100. };
  26101. /**
  26102. * Verifies a draw_get_data message.
  26103. * @function verify
  26104. * @memberof game.draw_get_data
  26105. * @static
  26106. * @param {Object.<string,*>} message Plain object to verify
  26107. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26108. */
  26109. draw_get_data.verify = function verify(message) {
  26110. if (typeof message !== "object" || message === null)
  26111. return "object expected";
  26112. return null;
  26113. };
  26114. /**
  26115. * Creates a draw_get_data message from a plain object. Also converts values to their respective internal types.
  26116. * @function fromObject
  26117. * @memberof game.draw_get_data
  26118. * @static
  26119. * @param {Object.<string,*>} object Plain object
  26120. * @returns {game.draw_get_data} draw_get_data
  26121. */
  26122. draw_get_data.fromObject = function fromObject(object) {
  26123. if (object instanceof $root.game.draw_get_data)
  26124. return object;
  26125. return new $root.game.draw_get_data();
  26126. };
  26127. /**
  26128. * Creates a plain object from a draw_get_data message. Also converts values to other types if specified.
  26129. * @function toObject
  26130. * @memberof game.draw_get_data
  26131. * @static
  26132. * @param {game.draw_get_data} message draw_get_data
  26133. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26134. * @returns {Object.<string,*>} Plain object
  26135. */
  26136. draw_get_data.toObject = function toObject() {
  26137. return {};
  26138. };
  26139. /**
  26140. * Converts this draw_get_data to JSON.
  26141. * @function toJSON
  26142. * @memberof game.draw_get_data
  26143. * @instance
  26144. * @returns {Object.<string,*>} JSON object
  26145. */
  26146. draw_get_data.prototype.toJSON = function toJSON() {
  26147. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26148. };
  26149. return draw_get_data;
  26150. })();
  26151. game.draw_get_data_rsp = (function() {
  26152. /**
  26153. * Properties of a draw_get_data_rsp.
  26154. * @memberof game
  26155. * @interface Idraw_get_data_rsp
  26156. * @property {number|Long|null} [errno] draw_get_data_rsp errno
  26157. * @property {game.Idraw_info|null} [hero] draw_get_data_rsp hero
  26158. * @property {game.Idraw_info|null} [hero2] draw_get_data_rsp hero2
  26159. * @property {game.Idraw_info|null} [equip] draw_get_data_rsp equip
  26160. */
  26161. /**
  26162. * Constructs a new draw_get_data_rsp.
  26163. * @memberof game
  26164. * @classdesc Represents a draw_get_data_rsp.
  26165. * @implements Idraw_get_data_rsp
  26166. * @constructor
  26167. * @param {game.Idraw_get_data_rsp=} [properties] Properties to set
  26168. */
  26169. function draw_get_data_rsp(properties) {
  26170. if (properties)
  26171. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26172. if (properties[keys[i]] != null)
  26173. this[keys[i]] = properties[keys[i]];
  26174. }
  26175. /**
  26176. * draw_get_data_rsp errno.
  26177. * @member {number|Long} errno
  26178. * @memberof game.draw_get_data_rsp
  26179. * @instance
  26180. */
  26181. draw_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26182. /**
  26183. * draw_get_data_rsp hero.
  26184. * @member {game.Idraw_info|null|undefined} hero
  26185. * @memberof game.draw_get_data_rsp
  26186. * @instance
  26187. */
  26188. draw_get_data_rsp.prototype.hero = null;
  26189. /**
  26190. * draw_get_data_rsp hero2.
  26191. * @member {game.Idraw_info|null|undefined} hero2
  26192. * @memberof game.draw_get_data_rsp
  26193. * @instance
  26194. */
  26195. draw_get_data_rsp.prototype.hero2 = null;
  26196. /**
  26197. * draw_get_data_rsp equip.
  26198. * @member {game.Idraw_info|null|undefined} equip
  26199. * @memberof game.draw_get_data_rsp
  26200. * @instance
  26201. */
  26202. draw_get_data_rsp.prototype.equip = null;
  26203. /**
  26204. * Creates a new draw_get_data_rsp instance using the specified properties.
  26205. * @function create
  26206. * @memberof game.draw_get_data_rsp
  26207. * @static
  26208. * @param {game.Idraw_get_data_rsp=} [properties] Properties to set
  26209. * @returns {game.draw_get_data_rsp} draw_get_data_rsp instance
  26210. */
  26211. draw_get_data_rsp.create = function create(properties) {
  26212. return new draw_get_data_rsp(properties);
  26213. };
  26214. /**
  26215. * Encodes the specified draw_get_data_rsp message. Does not implicitly {@link game.draw_get_data_rsp.verify|verify} messages.
  26216. * @function encode
  26217. * @memberof game.draw_get_data_rsp
  26218. * @static
  26219. * @param {game.Idraw_get_data_rsp} message draw_get_data_rsp message or plain object to encode
  26220. * @param {$protobuf.Writer} [writer] Writer to encode to
  26221. * @returns {$protobuf.Writer} Writer
  26222. */
  26223. draw_get_data_rsp.encode = function encode(message, writer) {
  26224. if (!writer)
  26225. writer = $Writer.create();
  26226. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  26227. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  26228. if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
  26229. $root.game.draw_info.encode(message.hero, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  26230. if (message.hero2 != null && Object.hasOwnProperty.call(message, "hero2"))
  26231. $root.game.draw_info.encode(message.hero2, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  26232. if (message.equip != null && Object.hasOwnProperty.call(message, "equip"))
  26233. $root.game.draw_info.encode(message.equip, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  26234. return writer;
  26235. };
  26236. /**
  26237. * Encodes the specified draw_get_data_rsp message, length delimited. Does not implicitly {@link game.draw_get_data_rsp.verify|verify} messages.
  26238. * @function encodeDelimited
  26239. * @memberof game.draw_get_data_rsp
  26240. * @static
  26241. * @param {game.Idraw_get_data_rsp} message draw_get_data_rsp message or plain object to encode
  26242. * @param {$protobuf.Writer} [writer] Writer to encode to
  26243. * @returns {$protobuf.Writer} Writer
  26244. */
  26245. draw_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  26246. return this.encode(message, writer).ldelim();
  26247. };
  26248. /**
  26249. * Decodes a draw_get_data_rsp message from the specified reader or buffer.
  26250. * @function decode
  26251. * @memberof game.draw_get_data_rsp
  26252. * @static
  26253. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26254. * @param {number} [length] Message length if known beforehand
  26255. * @returns {game.draw_get_data_rsp} draw_get_data_rsp
  26256. * @throws {Error} If the payload is not a reader or valid buffer
  26257. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26258. */
  26259. draw_get_data_rsp.decode = function decode(reader, length) {
  26260. if (!(reader instanceof $Reader))
  26261. reader = $Reader.create(reader);
  26262. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_get_data_rsp();
  26263. while (reader.pos < end) {
  26264. let tag = reader.uint32();
  26265. switch (tag >>> 3) {
  26266. case 1:
  26267. message.errno = reader.int64();
  26268. break;
  26269. case 2:
  26270. message.hero = $root.game.draw_info.decode(reader, reader.uint32());
  26271. break;
  26272. case 3:
  26273. message.hero2 = $root.game.draw_info.decode(reader, reader.uint32());
  26274. break;
  26275. case 4:
  26276. message.equip = $root.game.draw_info.decode(reader, reader.uint32());
  26277. break;
  26278. default:
  26279. reader.skipType(tag & 7);
  26280. break;
  26281. }
  26282. }
  26283. return message;
  26284. };
  26285. /**
  26286. * Decodes a draw_get_data_rsp message from the specified reader or buffer, length delimited.
  26287. * @function decodeDelimited
  26288. * @memberof game.draw_get_data_rsp
  26289. * @static
  26290. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26291. * @returns {game.draw_get_data_rsp} draw_get_data_rsp
  26292. * @throws {Error} If the payload is not a reader or valid buffer
  26293. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26294. */
  26295. draw_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  26296. if (!(reader instanceof $Reader))
  26297. reader = new $Reader(reader);
  26298. return this.decode(reader, reader.uint32());
  26299. };
  26300. /**
  26301. * Verifies a draw_get_data_rsp message.
  26302. * @function verify
  26303. * @memberof game.draw_get_data_rsp
  26304. * @static
  26305. * @param {Object.<string,*>} message Plain object to verify
  26306. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26307. */
  26308. draw_get_data_rsp.verify = function verify(message) {
  26309. if (typeof message !== "object" || message === null)
  26310. return "object expected";
  26311. if (message.errno != null && message.hasOwnProperty("errno"))
  26312. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  26313. return "errno: integer|Long expected";
  26314. if (message.hero != null && message.hasOwnProperty("hero")) {
  26315. let error = $root.game.draw_info.verify(message.hero);
  26316. if (error)
  26317. return "hero." + error;
  26318. }
  26319. if (message.hero2 != null && message.hasOwnProperty("hero2")) {
  26320. let error = $root.game.draw_info.verify(message.hero2);
  26321. if (error)
  26322. return "hero2." + error;
  26323. }
  26324. if (message.equip != null && message.hasOwnProperty("equip")) {
  26325. let error = $root.game.draw_info.verify(message.equip);
  26326. if (error)
  26327. return "equip." + error;
  26328. }
  26329. return null;
  26330. };
  26331. /**
  26332. * Creates a draw_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  26333. * @function fromObject
  26334. * @memberof game.draw_get_data_rsp
  26335. * @static
  26336. * @param {Object.<string,*>} object Plain object
  26337. * @returns {game.draw_get_data_rsp} draw_get_data_rsp
  26338. */
  26339. draw_get_data_rsp.fromObject = function fromObject(object) {
  26340. if (object instanceof $root.game.draw_get_data_rsp)
  26341. return object;
  26342. let message = new $root.game.draw_get_data_rsp();
  26343. if (object.errno != null)
  26344. if ($util.Long)
  26345. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  26346. else if (typeof object.errno === "string")
  26347. message.errno = parseInt(object.errno, 10);
  26348. else if (typeof object.errno === "number")
  26349. message.errno = object.errno;
  26350. else if (typeof object.errno === "object")
  26351. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  26352. if (object.hero != null) {
  26353. if (typeof object.hero !== "object")
  26354. throw TypeError(".game.draw_get_data_rsp.hero: object expected");
  26355. message.hero = $root.game.draw_info.fromObject(object.hero);
  26356. }
  26357. if (object.hero2 != null) {
  26358. if (typeof object.hero2 !== "object")
  26359. throw TypeError(".game.draw_get_data_rsp.hero2: object expected");
  26360. message.hero2 = $root.game.draw_info.fromObject(object.hero2);
  26361. }
  26362. if (object.equip != null) {
  26363. if (typeof object.equip !== "object")
  26364. throw TypeError(".game.draw_get_data_rsp.equip: object expected");
  26365. message.equip = $root.game.draw_info.fromObject(object.equip);
  26366. }
  26367. return message;
  26368. };
  26369. /**
  26370. * Creates a plain object from a draw_get_data_rsp message. Also converts values to other types if specified.
  26371. * @function toObject
  26372. * @memberof game.draw_get_data_rsp
  26373. * @static
  26374. * @param {game.draw_get_data_rsp} message draw_get_data_rsp
  26375. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26376. * @returns {Object.<string,*>} Plain object
  26377. */
  26378. draw_get_data_rsp.toObject = function toObject(message, options) {
  26379. if (!options)
  26380. options = {};
  26381. let object = {};
  26382. if (options.defaults) {
  26383. if ($util.Long) {
  26384. let long = new $util.Long(0, 0, false);
  26385. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26386. } else
  26387. object.errno = options.longs === String ? "0" : 0;
  26388. object.hero = null;
  26389. object.hero2 = null;
  26390. object.equip = null;
  26391. }
  26392. if (message.errno != null && message.hasOwnProperty("errno"))
  26393. if (typeof message.errno === "number")
  26394. object.errno = options.longs === String ? String(message.errno) : message.errno;
  26395. else
  26396. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  26397. if (message.hero != null && message.hasOwnProperty("hero"))
  26398. object.hero = $root.game.draw_info.toObject(message.hero, options);
  26399. if (message.hero2 != null && message.hasOwnProperty("hero2"))
  26400. object.hero2 = $root.game.draw_info.toObject(message.hero2, options);
  26401. if (message.equip != null && message.hasOwnProperty("equip"))
  26402. object.equip = $root.game.draw_info.toObject(message.equip, options);
  26403. return object;
  26404. };
  26405. /**
  26406. * Converts this draw_get_data_rsp to JSON.
  26407. * @function toJSON
  26408. * @memberof game.draw_get_data_rsp
  26409. * @instance
  26410. * @returns {Object.<string,*>} JSON object
  26411. */
  26412. draw_get_data_rsp.prototype.toJSON = function toJSON() {
  26413. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26414. };
  26415. return draw_get_data_rsp;
  26416. })();
  26417. game.shop_data = (function() {
  26418. /**
  26419. * Properties of a shop_data.
  26420. * @memberof game
  26421. * @interface Ishop_data
  26422. */
  26423. /**
  26424. * Constructs a new shop_data.
  26425. * @memberof game
  26426. * @classdesc Represents a shop_data.
  26427. * @implements Ishop_data
  26428. * @constructor
  26429. * @param {game.Ishop_data=} [properties] Properties to set
  26430. */
  26431. function shop_data(properties) {
  26432. if (properties)
  26433. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26434. if (properties[keys[i]] != null)
  26435. this[keys[i]] = properties[keys[i]];
  26436. }
  26437. /**
  26438. * Creates a new shop_data instance using the specified properties.
  26439. * @function create
  26440. * @memberof game.shop_data
  26441. * @static
  26442. * @param {game.Ishop_data=} [properties] Properties to set
  26443. * @returns {game.shop_data} shop_data instance
  26444. */
  26445. shop_data.create = function create(properties) {
  26446. return new shop_data(properties);
  26447. };
  26448. /**
  26449. * Encodes the specified shop_data message. Does not implicitly {@link game.shop_data.verify|verify} messages.
  26450. * @function encode
  26451. * @memberof game.shop_data
  26452. * @static
  26453. * @param {game.Ishop_data} message shop_data message or plain object to encode
  26454. * @param {$protobuf.Writer} [writer] Writer to encode to
  26455. * @returns {$protobuf.Writer} Writer
  26456. */
  26457. shop_data.encode = function encode(message, writer) {
  26458. if (!writer)
  26459. writer = $Writer.create();
  26460. return writer;
  26461. };
  26462. /**
  26463. * Encodes the specified shop_data message, length delimited. Does not implicitly {@link game.shop_data.verify|verify} messages.
  26464. * @function encodeDelimited
  26465. * @memberof game.shop_data
  26466. * @static
  26467. * @param {game.Ishop_data} message shop_data message or plain object to encode
  26468. * @param {$protobuf.Writer} [writer] Writer to encode to
  26469. * @returns {$protobuf.Writer} Writer
  26470. */
  26471. shop_data.encodeDelimited = function encodeDelimited(message, writer) {
  26472. return this.encode(message, writer).ldelim();
  26473. };
  26474. /**
  26475. * Decodes a shop_data message from the specified reader or buffer.
  26476. * @function decode
  26477. * @memberof game.shop_data
  26478. * @static
  26479. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26480. * @param {number} [length] Message length if known beforehand
  26481. * @returns {game.shop_data} shop_data
  26482. * @throws {Error} If the payload is not a reader or valid buffer
  26483. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26484. */
  26485. shop_data.decode = function decode(reader, length) {
  26486. if (!(reader instanceof $Reader))
  26487. reader = $Reader.create(reader);
  26488. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_data();
  26489. while (reader.pos < end) {
  26490. let tag = reader.uint32();
  26491. switch (tag >>> 3) {
  26492. default:
  26493. reader.skipType(tag & 7);
  26494. break;
  26495. }
  26496. }
  26497. return message;
  26498. };
  26499. /**
  26500. * Decodes a shop_data message from the specified reader or buffer, length delimited.
  26501. * @function decodeDelimited
  26502. * @memberof game.shop_data
  26503. * @static
  26504. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26505. * @returns {game.shop_data} shop_data
  26506. * @throws {Error} If the payload is not a reader or valid buffer
  26507. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26508. */
  26509. shop_data.decodeDelimited = function decodeDelimited(reader) {
  26510. if (!(reader instanceof $Reader))
  26511. reader = new $Reader(reader);
  26512. return this.decode(reader, reader.uint32());
  26513. };
  26514. /**
  26515. * Verifies a shop_data message.
  26516. * @function verify
  26517. * @memberof game.shop_data
  26518. * @static
  26519. * @param {Object.<string,*>} message Plain object to verify
  26520. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26521. */
  26522. shop_data.verify = function verify(message) {
  26523. if (typeof message !== "object" || message === null)
  26524. return "object expected";
  26525. return null;
  26526. };
  26527. /**
  26528. * Creates a shop_data message from a plain object. Also converts values to their respective internal types.
  26529. * @function fromObject
  26530. * @memberof game.shop_data
  26531. * @static
  26532. * @param {Object.<string,*>} object Plain object
  26533. * @returns {game.shop_data} shop_data
  26534. */
  26535. shop_data.fromObject = function fromObject(object) {
  26536. if (object instanceof $root.game.shop_data)
  26537. return object;
  26538. return new $root.game.shop_data();
  26539. };
  26540. /**
  26541. * Creates a plain object from a shop_data message. Also converts values to other types if specified.
  26542. * @function toObject
  26543. * @memberof game.shop_data
  26544. * @static
  26545. * @param {game.shop_data} message shop_data
  26546. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26547. * @returns {Object.<string,*>} Plain object
  26548. */
  26549. shop_data.toObject = function toObject() {
  26550. return {};
  26551. };
  26552. /**
  26553. * Converts this shop_data to JSON.
  26554. * @function toJSON
  26555. * @memberof game.shop_data
  26556. * @instance
  26557. * @returns {Object.<string,*>} JSON object
  26558. */
  26559. shop_data.prototype.toJSON = function toJSON() {
  26560. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26561. };
  26562. return shop_data;
  26563. })();
  26564. game.shop_data_rsp = (function() {
  26565. /**
  26566. * Properties of a shop_data_rsp.
  26567. * @memberof game
  26568. * @interface Ishop_data_rsp
  26569. * @property {number|Long|null} [errno] shop_data_rsp errno
  26570. * @property {Array.<game.Ishop_info>|null} [list] shop_data_rsp list
  26571. */
  26572. /**
  26573. * Constructs a new shop_data_rsp.
  26574. * @memberof game
  26575. * @classdesc Represents a shop_data_rsp.
  26576. * @implements Ishop_data_rsp
  26577. * @constructor
  26578. * @param {game.Ishop_data_rsp=} [properties] Properties to set
  26579. */
  26580. function shop_data_rsp(properties) {
  26581. this.list = [];
  26582. if (properties)
  26583. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26584. if (properties[keys[i]] != null)
  26585. this[keys[i]] = properties[keys[i]];
  26586. }
  26587. /**
  26588. * shop_data_rsp errno.
  26589. * @member {number|Long} errno
  26590. * @memberof game.shop_data_rsp
  26591. * @instance
  26592. */
  26593. shop_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26594. /**
  26595. * shop_data_rsp list.
  26596. * @member {Array.<game.Ishop_info>} list
  26597. * @memberof game.shop_data_rsp
  26598. * @instance
  26599. */
  26600. shop_data_rsp.prototype.list = $util.emptyArray;
  26601. /**
  26602. * Creates a new shop_data_rsp instance using the specified properties.
  26603. * @function create
  26604. * @memberof game.shop_data_rsp
  26605. * @static
  26606. * @param {game.Ishop_data_rsp=} [properties] Properties to set
  26607. * @returns {game.shop_data_rsp} shop_data_rsp instance
  26608. */
  26609. shop_data_rsp.create = function create(properties) {
  26610. return new shop_data_rsp(properties);
  26611. };
  26612. /**
  26613. * Encodes the specified shop_data_rsp message. Does not implicitly {@link game.shop_data_rsp.verify|verify} messages.
  26614. * @function encode
  26615. * @memberof game.shop_data_rsp
  26616. * @static
  26617. * @param {game.Ishop_data_rsp} message shop_data_rsp message or plain object to encode
  26618. * @param {$protobuf.Writer} [writer] Writer to encode to
  26619. * @returns {$protobuf.Writer} Writer
  26620. */
  26621. shop_data_rsp.encode = function encode(message, writer) {
  26622. if (!writer)
  26623. writer = $Writer.create();
  26624. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  26625. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  26626. if (message.list != null && message.list.length)
  26627. for (let i = 0; i < message.list.length; ++i)
  26628. $root.game.shop_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  26629. return writer;
  26630. };
  26631. /**
  26632. * Encodes the specified shop_data_rsp message, length delimited. Does not implicitly {@link game.shop_data_rsp.verify|verify} messages.
  26633. * @function encodeDelimited
  26634. * @memberof game.shop_data_rsp
  26635. * @static
  26636. * @param {game.Ishop_data_rsp} message shop_data_rsp message or plain object to encode
  26637. * @param {$protobuf.Writer} [writer] Writer to encode to
  26638. * @returns {$protobuf.Writer} Writer
  26639. */
  26640. shop_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  26641. return this.encode(message, writer).ldelim();
  26642. };
  26643. /**
  26644. * Decodes a shop_data_rsp message from the specified reader or buffer.
  26645. * @function decode
  26646. * @memberof game.shop_data_rsp
  26647. * @static
  26648. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26649. * @param {number} [length] Message length if known beforehand
  26650. * @returns {game.shop_data_rsp} shop_data_rsp
  26651. * @throws {Error} If the payload is not a reader or valid buffer
  26652. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26653. */
  26654. shop_data_rsp.decode = function decode(reader, length) {
  26655. if (!(reader instanceof $Reader))
  26656. reader = $Reader.create(reader);
  26657. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_data_rsp();
  26658. while (reader.pos < end) {
  26659. let tag = reader.uint32();
  26660. switch (tag >>> 3) {
  26661. case 1:
  26662. message.errno = reader.int64();
  26663. break;
  26664. case 2:
  26665. if (!(message.list && message.list.length))
  26666. message.list = [];
  26667. message.list.push($root.game.shop_info.decode(reader, reader.uint32()));
  26668. break;
  26669. default:
  26670. reader.skipType(tag & 7);
  26671. break;
  26672. }
  26673. }
  26674. return message;
  26675. };
  26676. /**
  26677. * Decodes a shop_data_rsp message from the specified reader or buffer, length delimited.
  26678. * @function decodeDelimited
  26679. * @memberof game.shop_data_rsp
  26680. * @static
  26681. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26682. * @returns {game.shop_data_rsp} shop_data_rsp
  26683. * @throws {Error} If the payload is not a reader or valid buffer
  26684. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26685. */
  26686. shop_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  26687. if (!(reader instanceof $Reader))
  26688. reader = new $Reader(reader);
  26689. return this.decode(reader, reader.uint32());
  26690. };
  26691. /**
  26692. * Verifies a shop_data_rsp message.
  26693. * @function verify
  26694. * @memberof game.shop_data_rsp
  26695. * @static
  26696. * @param {Object.<string,*>} message Plain object to verify
  26697. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26698. */
  26699. shop_data_rsp.verify = function verify(message) {
  26700. if (typeof message !== "object" || message === null)
  26701. return "object expected";
  26702. if (message.errno != null && message.hasOwnProperty("errno"))
  26703. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  26704. return "errno: integer|Long expected";
  26705. if (message.list != null && message.hasOwnProperty("list")) {
  26706. if (!Array.isArray(message.list))
  26707. return "list: array expected";
  26708. for (let i = 0; i < message.list.length; ++i) {
  26709. let error = $root.game.shop_info.verify(message.list[i]);
  26710. if (error)
  26711. return "list." + error;
  26712. }
  26713. }
  26714. return null;
  26715. };
  26716. /**
  26717. * Creates a shop_data_rsp message from a plain object. Also converts values to their respective internal types.
  26718. * @function fromObject
  26719. * @memberof game.shop_data_rsp
  26720. * @static
  26721. * @param {Object.<string,*>} object Plain object
  26722. * @returns {game.shop_data_rsp} shop_data_rsp
  26723. */
  26724. shop_data_rsp.fromObject = function fromObject(object) {
  26725. if (object instanceof $root.game.shop_data_rsp)
  26726. return object;
  26727. let message = new $root.game.shop_data_rsp();
  26728. if (object.errno != null)
  26729. if ($util.Long)
  26730. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  26731. else if (typeof object.errno === "string")
  26732. message.errno = parseInt(object.errno, 10);
  26733. else if (typeof object.errno === "number")
  26734. message.errno = object.errno;
  26735. else if (typeof object.errno === "object")
  26736. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  26737. if (object.list) {
  26738. if (!Array.isArray(object.list))
  26739. throw TypeError(".game.shop_data_rsp.list: array expected");
  26740. message.list = [];
  26741. for (let i = 0; i < object.list.length; ++i) {
  26742. if (typeof object.list[i] !== "object")
  26743. throw TypeError(".game.shop_data_rsp.list: object expected");
  26744. message.list[i] = $root.game.shop_info.fromObject(object.list[i]);
  26745. }
  26746. }
  26747. return message;
  26748. };
  26749. /**
  26750. * Creates a plain object from a shop_data_rsp message. Also converts values to other types if specified.
  26751. * @function toObject
  26752. * @memberof game.shop_data_rsp
  26753. * @static
  26754. * @param {game.shop_data_rsp} message shop_data_rsp
  26755. * @param {$protobuf.IConversionOptions} [options] Conversion options
  26756. * @returns {Object.<string,*>} Plain object
  26757. */
  26758. shop_data_rsp.toObject = function toObject(message, options) {
  26759. if (!options)
  26760. options = {};
  26761. let object = {};
  26762. if (options.arrays || options.defaults)
  26763. object.list = [];
  26764. if (options.defaults)
  26765. if ($util.Long) {
  26766. let long = new $util.Long(0, 0, false);
  26767. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  26768. } else
  26769. object.errno = options.longs === String ? "0" : 0;
  26770. if (message.errno != null && message.hasOwnProperty("errno"))
  26771. if (typeof message.errno === "number")
  26772. object.errno = options.longs === String ? String(message.errno) : message.errno;
  26773. else
  26774. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  26775. if (message.list && message.list.length) {
  26776. object.list = [];
  26777. for (let j = 0; j < message.list.length; ++j)
  26778. object.list[j] = $root.game.shop_info.toObject(message.list[j], options);
  26779. }
  26780. return object;
  26781. };
  26782. /**
  26783. * Converts this shop_data_rsp to JSON.
  26784. * @function toJSON
  26785. * @memberof game.shop_data_rsp
  26786. * @instance
  26787. * @returns {Object.<string,*>} JSON object
  26788. */
  26789. shop_data_rsp.prototype.toJSON = function toJSON() {
  26790. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  26791. };
  26792. return shop_data_rsp;
  26793. })();
  26794. game.shop_buy = (function() {
  26795. /**
  26796. * Properties of a shop_buy.
  26797. * @memberof game
  26798. * @interface Ishop_buy
  26799. * @property {number|Long|null} [type] shop_buy type
  26800. * @property {number|Long|null} [id] shop_buy id
  26801. * @property {number|Long|null} [num] shop_buy num
  26802. */
  26803. /**
  26804. * Constructs a new shop_buy.
  26805. * @memberof game
  26806. * @classdesc Represents a shop_buy.
  26807. * @implements Ishop_buy
  26808. * @constructor
  26809. * @param {game.Ishop_buy=} [properties] Properties to set
  26810. */
  26811. function shop_buy(properties) {
  26812. if (properties)
  26813. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  26814. if (properties[keys[i]] != null)
  26815. this[keys[i]] = properties[keys[i]];
  26816. }
  26817. /**
  26818. * shop_buy type.
  26819. * @member {number|Long} type
  26820. * @memberof game.shop_buy
  26821. * @instance
  26822. */
  26823. shop_buy.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26824. /**
  26825. * shop_buy id.
  26826. * @member {number|Long} id
  26827. * @memberof game.shop_buy
  26828. * @instance
  26829. */
  26830. shop_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26831. /**
  26832. * shop_buy num.
  26833. * @member {number|Long} num
  26834. * @memberof game.shop_buy
  26835. * @instance
  26836. */
  26837. shop_buy.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  26838. /**
  26839. * Creates a new shop_buy instance using the specified properties.
  26840. * @function create
  26841. * @memberof game.shop_buy
  26842. * @static
  26843. * @param {game.Ishop_buy=} [properties] Properties to set
  26844. * @returns {game.shop_buy} shop_buy instance
  26845. */
  26846. shop_buy.create = function create(properties) {
  26847. return new shop_buy(properties);
  26848. };
  26849. /**
  26850. * Encodes the specified shop_buy message. Does not implicitly {@link game.shop_buy.verify|verify} messages.
  26851. * @function encode
  26852. * @memberof game.shop_buy
  26853. * @static
  26854. * @param {game.Ishop_buy} message shop_buy message or plain object to encode
  26855. * @param {$protobuf.Writer} [writer] Writer to encode to
  26856. * @returns {$protobuf.Writer} Writer
  26857. */
  26858. shop_buy.encode = function encode(message, writer) {
  26859. if (!writer)
  26860. writer = $Writer.create();
  26861. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  26862. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  26863. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  26864. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  26865. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  26866. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  26867. return writer;
  26868. };
  26869. /**
  26870. * Encodes the specified shop_buy message, length delimited. Does not implicitly {@link game.shop_buy.verify|verify} messages.
  26871. * @function encodeDelimited
  26872. * @memberof game.shop_buy
  26873. * @static
  26874. * @param {game.Ishop_buy} message shop_buy message or plain object to encode
  26875. * @param {$protobuf.Writer} [writer] Writer to encode to
  26876. * @returns {$protobuf.Writer} Writer
  26877. */
  26878. shop_buy.encodeDelimited = function encodeDelimited(message, writer) {
  26879. return this.encode(message, writer).ldelim();
  26880. };
  26881. /**
  26882. * Decodes a shop_buy message from the specified reader or buffer.
  26883. * @function decode
  26884. * @memberof game.shop_buy
  26885. * @static
  26886. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26887. * @param {number} [length] Message length if known beforehand
  26888. * @returns {game.shop_buy} shop_buy
  26889. * @throws {Error} If the payload is not a reader or valid buffer
  26890. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26891. */
  26892. shop_buy.decode = function decode(reader, length) {
  26893. if (!(reader instanceof $Reader))
  26894. reader = $Reader.create(reader);
  26895. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_buy();
  26896. while (reader.pos < end) {
  26897. let tag = reader.uint32();
  26898. switch (tag >>> 3) {
  26899. case 1:
  26900. message.type = reader.int64();
  26901. break;
  26902. case 2:
  26903. message.id = reader.int64();
  26904. break;
  26905. case 3:
  26906. message.num = reader.int64();
  26907. break;
  26908. default:
  26909. reader.skipType(tag & 7);
  26910. break;
  26911. }
  26912. }
  26913. return message;
  26914. };
  26915. /**
  26916. * Decodes a shop_buy message from the specified reader or buffer, length delimited.
  26917. * @function decodeDelimited
  26918. * @memberof game.shop_buy
  26919. * @static
  26920. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  26921. * @returns {game.shop_buy} shop_buy
  26922. * @throws {Error} If the payload is not a reader or valid buffer
  26923. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  26924. */
  26925. shop_buy.decodeDelimited = function decodeDelimited(reader) {
  26926. if (!(reader instanceof $Reader))
  26927. reader = new $Reader(reader);
  26928. return this.decode(reader, reader.uint32());
  26929. };
  26930. /**
  26931. * Verifies a shop_buy message.
  26932. * @function verify
  26933. * @memberof game.shop_buy
  26934. * @static
  26935. * @param {Object.<string,*>} message Plain object to verify
  26936. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  26937. */
  26938. shop_buy.verify = function verify(message) {
  26939. if (typeof message !== "object" || message === null)
  26940. return "object expected";
  26941. if (message.type != null && message.hasOwnProperty("type"))
  26942. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  26943. return "type: integer|Long expected";
  26944. if (message.id != null && message.hasOwnProperty("id"))
  26945. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  26946. return "id: integer|Long expected";
  26947. if (message.num != null && message.hasOwnProperty("num"))
  26948. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  26949. return "num: integer|Long expected";
  26950. return null;
  26951. };
  26952. /**
  26953. * Creates a shop_buy message from a plain object. Also converts values to their respective internal types.
  26954. * @function fromObject
  26955. * @memberof game.shop_buy
  26956. * @static
  26957. * @param {Object.<string,*>} object Plain object
  26958. * @returns {game.shop_buy} shop_buy
  26959. */
  26960. shop_buy.fromObject = function fromObject(object) {
  26961. if (object instanceof $root.game.shop_buy)
  26962. return object;
  26963. let message = new $root.game.shop_buy();
  26964. if (object.type != null)
  26965. if ($util.Long)
  26966. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  26967. else if (typeof object.type === "string")
  26968. message.type = parseInt(object.type, 10);
  26969. else if (typeof object.type === "number")
  26970. message.type = object.type;
  26971. else if (typeof object.type === "object")
  26972. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  26973. if (object.id != null)
  26974. if ($util.Long)
  26975. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  26976. else if (typeof object.id === "string")
  26977. message.id = parseInt(object.id, 10);
  26978. else if (typeof object.id === "number")
  26979. message.id = object.id;
  26980. else if (typeof object.id === "object")
  26981. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  26982. if (object.num != null)
  26983. if ($util.Long)
  26984. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  26985. else if (typeof object.num === "string")
  26986. message.num = parseInt(object.num, 10);
  26987. else if (typeof object.num === "number")
  26988. message.num = object.num;
  26989. else if (typeof object.num === "object")
  26990. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  26991. return message;
  26992. };
  26993. /**
  26994. * Creates a plain object from a shop_buy message. Also converts values to other types if specified.
  26995. * @function toObject
  26996. * @memberof game.shop_buy
  26997. * @static
  26998. * @param {game.shop_buy} message shop_buy
  26999. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27000. * @returns {Object.<string,*>} Plain object
  27001. */
  27002. shop_buy.toObject = function toObject(message, options) {
  27003. if (!options)
  27004. options = {};
  27005. let object = {};
  27006. if (options.defaults) {
  27007. if ($util.Long) {
  27008. let long = new $util.Long(0, 0, false);
  27009. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27010. } else
  27011. object.type = options.longs === String ? "0" : 0;
  27012. if ($util.Long) {
  27013. let long = new $util.Long(0, 0, false);
  27014. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27015. } else
  27016. object.id = options.longs === String ? "0" : 0;
  27017. if ($util.Long) {
  27018. let long = new $util.Long(0, 0, false);
  27019. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27020. } else
  27021. object.num = options.longs === String ? "0" : 0;
  27022. }
  27023. if (message.type != null && message.hasOwnProperty("type"))
  27024. if (typeof message.type === "number")
  27025. object.type = options.longs === String ? String(message.type) : message.type;
  27026. else
  27027. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  27028. if (message.id != null && message.hasOwnProperty("id"))
  27029. if (typeof message.id === "number")
  27030. object.id = options.longs === String ? String(message.id) : message.id;
  27031. else
  27032. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  27033. if (message.num != null && message.hasOwnProperty("num"))
  27034. if (typeof message.num === "number")
  27035. object.num = options.longs === String ? String(message.num) : message.num;
  27036. else
  27037. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  27038. return object;
  27039. };
  27040. /**
  27041. * Converts this shop_buy to JSON.
  27042. * @function toJSON
  27043. * @memberof game.shop_buy
  27044. * @instance
  27045. * @returns {Object.<string,*>} JSON object
  27046. */
  27047. shop_buy.prototype.toJSON = function toJSON() {
  27048. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27049. };
  27050. return shop_buy;
  27051. })();
  27052. game.shop_buy_rsp = (function() {
  27053. /**
  27054. * Properties of a shop_buy_rsp.
  27055. * @memberof game
  27056. * @interface Ishop_buy_rsp
  27057. * @property {number|Long|null} [errno] shop_buy_rsp errno
  27058. */
  27059. /**
  27060. * Constructs a new shop_buy_rsp.
  27061. * @memberof game
  27062. * @classdesc Represents a shop_buy_rsp.
  27063. * @implements Ishop_buy_rsp
  27064. * @constructor
  27065. * @param {game.Ishop_buy_rsp=} [properties] Properties to set
  27066. */
  27067. function shop_buy_rsp(properties) {
  27068. if (properties)
  27069. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27070. if (properties[keys[i]] != null)
  27071. this[keys[i]] = properties[keys[i]];
  27072. }
  27073. /**
  27074. * shop_buy_rsp errno.
  27075. * @member {number|Long} errno
  27076. * @memberof game.shop_buy_rsp
  27077. * @instance
  27078. */
  27079. shop_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27080. /**
  27081. * Creates a new shop_buy_rsp instance using the specified properties.
  27082. * @function create
  27083. * @memberof game.shop_buy_rsp
  27084. * @static
  27085. * @param {game.Ishop_buy_rsp=} [properties] Properties to set
  27086. * @returns {game.shop_buy_rsp} shop_buy_rsp instance
  27087. */
  27088. shop_buy_rsp.create = function create(properties) {
  27089. return new shop_buy_rsp(properties);
  27090. };
  27091. /**
  27092. * Encodes the specified shop_buy_rsp message. Does not implicitly {@link game.shop_buy_rsp.verify|verify} messages.
  27093. * @function encode
  27094. * @memberof game.shop_buy_rsp
  27095. * @static
  27096. * @param {game.Ishop_buy_rsp} message shop_buy_rsp message or plain object to encode
  27097. * @param {$protobuf.Writer} [writer] Writer to encode to
  27098. * @returns {$protobuf.Writer} Writer
  27099. */
  27100. shop_buy_rsp.encode = function encode(message, writer) {
  27101. if (!writer)
  27102. writer = $Writer.create();
  27103. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  27104. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  27105. return writer;
  27106. };
  27107. /**
  27108. * Encodes the specified shop_buy_rsp message, length delimited. Does not implicitly {@link game.shop_buy_rsp.verify|verify} messages.
  27109. * @function encodeDelimited
  27110. * @memberof game.shop_buy_rsp
  27111. * @static
  27112. * @param {game.Ishop_buy_rsp} message shop_buy_rsp message or plain object to encode
  27113. * @param {$protobuf.Writer} [writer] Writer to encode to
  27114. * @returns {$protobuf.Writer} Writer
  27115. */
  27116. shop_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  27117. return this.encode(message, writer).ldelim();
  27118. };
  27119. /**
  27120. * Decodes a shop_buy_rsp message from the specified reader or buffer.
  27121. * @function decode
  27122. * @memberof game.shop_buy_rsp
  27123. * @static
  27124. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27125. * @param {number} [length] Message length if known beforehand
  27126. * @returns {game.shop_buy_rsp} shop_buy_rsp
  27127. * @throws {Error} If the payload is not a reader or valid buffer
  27128. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27129. */
  27130. shop_buy_rsp.decode = function decode(reader, length) {
  27131. if (!(reader instanceof $Reader))
  27132. reader = $Reader.create(reader);
  27133. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_buy_rsp();
  27134. while (reader.pos < end) {
  27135. let tag = reader.uint32();
  27136. switch (tag >>> 3) {
  27137. case 1:
  27138. message.errno = reader.int64();
  27139. break;
  27140. default:
  27141. reader.skipType(tag & 7);
  27142. break;
  27143. }
  27144. }
  27145. return message;
  27146. };
  27147. /**
  27148. * Decodes a shop_buy_rsp message from the specified reader or buffer, length delimited.
  27149. * @function decodeDelimited
  27150. * @memberof game.shop_buy_rsp
  27151. * @static
  27152. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27153. * @returns {game.shop_buy_rsp} shop_buy_rsp
  27154. * @throws {Error} If the payload is not a reader or valid buffer
  27155. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27156. */
  27157. shop_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  27158. if (!(reader instanceof $Reader))
  27159. reader = new $Reader(reader);
  27160. return this.decode(reader, reader.uint32());
  27161. };
  27162. /**
  27163. * Verifies a shop_buy_rsp message.
  27164. * @function verify
  27165. * @memberof game.shop_buy_rsp
  27166. * @static
  27167. * @param {Object.<string,*>} message Plain object to verify
  27168. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27169. */
  27170. shop_buy_rsp.verify = function verify(message) {
  27171. if (typeof message !== "object" || message === null)
  27172. return "object expected";
  27173. if (message.errno != null && message.hasOwnProperty("errno"))
  27174. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  27175. return "errno: integer|Long expected";
  27176. return null;
  27177. };
  27178. /**
  27179. * Creates a shop_buy_rsp message from a plain object. Also converts values to their respective internal types.
  27180. * @function fromObject
  27181. * @memberof game.shop_buy_rsp
  27182. * @static
  27183. * @param {Object.<string,*>} object Plain object
  27184. * @returns {game.shop_buy_rsp} shop_buy_rsp
  27185. */
  27186. shop_buy_rsp.fromObject = function fromObject(object) {
  27187. if (object instanceof $root.game.shop_buy_rsp)
  27188. return object;
  27189. let message = new $root.game.shop_buy_rsp();
  27190. if (object.errno != null)
  27191. if ($util.Long)
  27192. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  27193. else if (typeof object.errno === "string")
  27194. message.errno = parseInt(object.errno, 10);
  27195. else if (typeof object.errno === "number")
  27196. message.errno = object.errno;
  27197. else if (typeof object.errno === "object")
  27198. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  27199. return message;
  27200. };
  27201. /**
  27202. * Creates a plain object from a shop_buy_rsp message. Also converts values to other types if specified.
  27203. * @function toObject
  27204. * @memberof game.shop_buy_rsp
  27205. * @static
  27206. * @param {game.shop_buy_rsp} message shop_buy_rsp
  27207. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27208. * @returns {Object.<string,*>} Plain object
  27209. */
  27210. shop_buy_rsp.toObject = function toObject(message, options) {
  27211. if (!options)
  27212. options = {};
  27213. let object = {};
  27214. if (options.defaults)
  27215. if ($util.Long) {
  27216. let long = new $util.Long(0, 0, false);
  27217. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27218. } else
  27219. object.errno = options.longs === String ? "0" : 0;
  27220. if (message.errno != null && message.hasOwnProperty("errno"))
  27221. if (typeof message.errno === "number")
  27222. object.errno = options.longs === String ? String(message.errno) : message.errno;
  27223. else
  27224. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  27225. return object;
  27226. };
  27227. /**
  27228. * Converts this shop_buy_rsp to JSON.
  27229. * @function toJSON
  27230. * @memberof game.shop_buy_rsp
  27231. * @instance
  27232. * @returns {Object.<string,*>} JSON object
  27233. */
  27234. shop_buy_rsp.prototype.toJSON = function toJSON() {
  27235. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27236. };
  27237. return shop_buy_rsp;
  27238. })();
  27239. game.shop_notify = (function() {
  27240. /**
  27241. * Properties of a shop_notify.
  27242. * @memberof game
  27243. * @interface Ishop_notify
  27244. * @property {number|Long|null} [type] shop_notify type
  27245. * @property {number|Long|null} [id] shop_notify id
  27246. * @property {number|Long|null} [num] shop_notify num
  27247. */
  27248. /**
  27249. * Constructs a new shop_notify.
  27250. * @memberof game
  27251. * @classdesc Represents a shop_notify.
  27252. * @implements Ishop_notify
  27253. * @constructor
  27254. * @param {game.Ishop_notify=} [properties] Properties to set
  27255. */
  27256. function shop_notify(properties) {
  27257. if (properties)
  27258. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27259. if (properties[keys[i]] != null)
  27260. this[keys[i]] = properties[keys[i]];
  27261. }
  27262. /**
  27263. * shop_notify type.
  27264. * @member {number|Long} type
  27265. * @memberof game.shop_notify
  27266. * @instance
  27267. */
  27268. shop_notify.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27269. /**
  27270. * shop_notify id.
  27271. * @member {number|Long} id
  27272. * @memberof game.shop_notify
  27273. * @instance
  27274. */
  27275. shop_notify.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27276. /**
  27277. * shop_notify num.
  27278. * @member {number|Long} num
  27279. * @memberof game.shop_notify
  27280. * @instance
  27281. */
  27282. shop_notify.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27283. /**
  27284. * Creates a new shop_notify instance using the specified properties.
  27285. * @function create
  27286. * @memberof game.shop_notify
  27287. * @static
  27288. * @param {game.Ishop_notify=} [properties] Properties to set
  27289. * @returns {game.shop_notify} shop_notify instance
  27290. */
  27291. shop_notify.create = function create(properties) {
  27292. return new shop_notify(properties);
  27293. };
  27294. /**
  27295. * Encodes the specified shop_notify message. Does not implicitly {@link game.shop_notify.verify|verify} messages.
  27296. * @function encode
  27297. * @memberof game.shop_notify
  27298. * @static
  27299. * @param {game.Ishop_notify} message shop_notify message or plain object to encode
  27300. * @param {$protobuf.Writer} [writer] Writer to encode to
  27301. * @returns {$protobuf.Writer} Writer
  27302. */
  27303. shop_notify.encode = function encode(message, writer) {
  27304. if (!writer)
  27305. writer = $Writer.create();
  27306. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  27307. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  27308. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  27309. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.id);
  27310. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  27311. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num);
  27312. return writer;
  27313. };
  27314. /**
  27315. * Encodes the specified shop_notify message, length delimited. Does not implicitly {@link game.shop_notify.verify|verify} messages.
  27316. * @function encodeDelimited
  27317. * @memberof game.shop_notify
  27318. * @static
  27319. * @param {game.Ishop_notify} message shop_notify message or plain object to encode
  27320. * @param {$protobuf.Writer} [writer] Writer to encode to
  27321. * @returns {$protobuf.Writer} Writer
  27322. */
  27323. shop_notify.encodeDelimited = function encodeDelimited(message, writer) {
  27324. return this.encode(message, writer).ldelim();
  27325. };
  27326. /**
  27327. * Decodes a shop_notify message from the specified reader or buffer.
  27328. * @function decode
  27329. * @memberof game.shop_notify
  27330. * @static
  27331. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27332. * @param {number} [length] Message length if known beforehand
  27333. * @returns {game.shop_notify} shop_notify
  27334. * @throws {Error} If the payload is not a reader or valid buffer
  27335. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27336. */
  27337. shop_notify.decode = function decode(reader, length) {
  27338. if (!(reader instanceof $Reader))
  27339. reader = $Reader.create(reader);
  27340. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_notify();
  27341. while (reader.pos < end) {
  27342. let tag = reader.uint32();
  27343. switch (tag >>> 3) {
  27344. case 2:
  27345. message.type = reader.int64();
  27346. break;
  27347. case 3:
  27348. message.id = reader.int64();
  27349. break;
  27350. case 4:
  27351. message.num = reader.int64();
  27352. break;
  27353. default:
  27354. reader.skipType(tag & 7);
  27355. break;
  27356. }
  27357. }
  27358. return message;
  27359. };
  27360. /**
  27361. * Decodes a shop_notify message from the specified reader or buffer, length delimited.
  27362. * @function decodeDelimited
  27363. * @memberof game.shop_notify
  27364. * @static
  27365. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27366. * @returns {game.shop_notify} shop_notify
  27367. * @throws {Error} If the payload is not a reader or valid buffer
  27368. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27369. */
  27370. shop_notify.decodeDelimited = function decodeDelimited(reader) {
  27371. if (!(reader instanceof $Reader))
  27372. reader = new $Reader(reader);
  27373. return this.decode(reader, reader.uint32());
  27374. };
  27375. /**
  27376. * Verifies a shop_notify message.
  27377. * @function verify
  27378. * @memberof game.shop_notify
  27379. * @static
  27380. * @param {Object.<string,*>} message Plain object to verify
  27381. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27382. */
  27383. shop_notify.verify = function verify(message) {
  27384. if (typeof message !== "object" || message === null)
  27385. return "object expected";
  27386. if (message.type != null && message.hasOwnProperty("type"))
  27387. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  27388. return "type: integer|Long expected";
  27389. if (message.id != null && message.hasOwnProperty("id"))
  27390. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  27391. return "id: integer|Long expected";
  27392. if (message.num != null && message.hasOwnProperty("num"))
  27393. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  27394. return "num: integer|Long expected";
  27395. return null;
  27396. };
  27397. /**
  27398. * Creates a shop_notify message from a plain object. Also converts values to their respective internal types.
  27399. * @function fromObject
  27400. * @memberof game.shop_notify
  27401. * @static
  27402. * @param {Object.<string,*>} object Plain object
  27403. * @returns {game.shop_notify} shop_notify
  27404. */
  27405. shop_notify.fromObject = function fromObject(object) {
  27406. if (object instanceof $root.game.shop_notify)
  27407. return object;
  27408. let message = new $root.game.shop_notify();
  27409. if (object.type != null)
  27410. if ($util.Long)
  27411. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  27412. else if (typeof object.type === "string")
  27413. message.type = parseInt(object.type, 10);
  27414. else if (typeof object.type === "number")
  27415. message.type = object.type;
  27416. else if (typeof object.type === "object")
  27417. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  27418. if (object.id != null)
  27419. if ($util.Long)
  27420. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  27421. else if (typeof object.id === "string")
  27422. message.id = parseInt(object.id, 10);
  27423. else if (typeof object.id === "number")
  27424. message.id = object.id;
  27425. else if (typeof object.id === "object")
  27426. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  27427. if (object.num != null)
  27428. if ($util.Long)
  27429. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  27430. else if (typeof object.num === "string")
  27431. message.num = parseInt(object.num, 10);
  27432. else if (typeof object.num === "number")
  27433. message.num = object.num;
  27434. else if (typeof object.num === "object")
  27435. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  27436. return message;
  27437. };
  27438. /**
  27439. * Creates a plain object from a shop_notify message. Also converts values to other types if specified.
  27440. * @function toObject
  27441. * @memberof game.shop_notify
  27442. * @static
  27443. * @param {game.shop_notify} message shop_notify
  27444. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27445. * @returns {Object.<string,*>} Plain object
  27446. */
  27447. shop_notify.toObject = function toObject(message, options) {
  27448. if (!options)
  27449. options = {};
  27450. let object = {};
  27451. if (options.defaults) {
  27452. if ($util.Long) {
  27453. let long = new $util.Long(0, 0, false);
  27454. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27455. } else
  27456. object.type = options.longs === String ? "0" : 0;
  27457. if ($util.Long) {
  27458. let long = new $util.Long(0, 0, false);
  27459. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27460. } else
  27461. object.id = options.longs === String ? "0" : 0;
  27462. if ($util.Long) {
  27463. let long = new $util.Long(0, 0, false);
  27464. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27465. } else
  27466. object.num = options.longs === String ? "0" : 0;
  27467. }
  27468. if (message.type != null && message.hasOwnProperty("type"))
  27469. if (typeof message.type === "number")
  27470. object.type = options.longs === String ? String(message.type) : message.type;
  27471. else
  27472. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  27473. if (message.id != null && message.hasOwnProperty("id"))
  27474. if (typeof message.id === "number")
  27475. object.id = options.longs === String ? String(message.id) : message.id;
  27476. else
  27477. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  27478. if (message.num != null && message.hasOwnProperty("num"))
  27479. if (typeof message.num === "number")
  27480. object.num = options.longs === String ? String(message.num) : message.num;
  27481. else
  27482. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  27483. return object;
  27484. };
  27485. /**
  27486. * Converts this shop_notify to JSON.
  27487. * @function toJSON
  27488. * @memberof game.shop_notify
  27489. * @instance
  27490. * @returns {Object.<string,*>} JSON object
  27491. */
  27492. shop_notify.prototype.toJSON = function toJSON() {
  27493. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27494. };
  27495. return shop_notify;
  27496. })();
  27497. game.ranking_data = (function() {
  27498. /**
  27499. * Properties of a ranking_data.
  27500. * @memberof game
  27501. * @interface Iranking_data
  27502. * @property {number|Long|null} [type] ranking_data type
  27503. */
  27504. /**
  27505. * Constructs a new ranking_data.
  27506. * @memberof game
  27507. * @classdesc Represents a ranking_data.
  27508. * @implements Iranking_data
  27509. * @constructor
  27510. * @param {game.Iranking_data=} [properties] Properties to set
  27511. */
  27512. function ranking_data(properties) {
  27513. if (properties)
  27514. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27515. if (properties[keys[i]] != null)
  27516. this[keys[i]] = properties[keys[i]];
  27517. }
  27518. /**
  27519. * ranking_data type.
  27520. * @member {number|Long} type
  27521. * @memberof game.ranking_data
  27522. * @instance
  27523. */
  27524. ranking_data.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27525. /**
  27526. * Creates a new ranking_data instance using the specified properties.
  27527. * @function create
  27528. * @memberof game.ranking_data
  27529. * @static
  27530. * @param {game.Iranking_data=} [properties] Properties to set
  27531. * @returns {game.ranking_data} ranking_data instance
  27532. */
  27533. ranking_data.create = function create(properties) {
  27534. return new ranking_data(properties);
  27535. };
  27536. /**
  27537. * Encodes the specified ranking_data message. Does not implicitly {@link game.ranking_data.verify|verify} messages.
  27538. * @function encode
  27539. * @memberof game.ranking_data
  27540. * @static
  27541. * @param {game.Iranking_data} message ranking_data message or plain object to encode
  27542. * @param {$protobuf.Writer} [writer] Writer to encode to
  27543. * @returns {$protobuf.Writer} Writer
  27544. */
  27545. ranking_data.encode = function encode(message, writer) {
  27546. if (!writer)
  27547. writer = $Writer.create();
  27548. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  27549. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  27550. return writer;
  27551. };
  27552. /**
  27553. * Encodes the specified ranking_data message, length delimited. Does not implicitly {@link game.ranking_data.verify|verify} messages.
  27554. * @function encodeDelimited
  27555. * @memberof game.ranking_data
  27556. * @static
  27557. * @param {game.Iranking_data} message ranking_data message or plain object to encode
  27558. * @param {$protobuf.Writer} [writer] Writer to encode to
  27559. * @returns {$protobuf.Writer} Writer
  27560. */
  27561. ranking_data.encodeDelimited = function encodeDelimited(message, writer) {
  27562. return this.encode(message, writer).ldelim();
  27563. };
  27564. /**
  27565. * Decodes a ranking_data message from the specified reader or buffer.
  27566. * @function decode
  27567. * @memberof game.ranking_data
  27568. * @static
  27569. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27570. * @param {number} [length] Message length if known beforehand
  27571. * @returns {game.ranking_data} ranking_data
  27572. * @throws {Error} If the payload is not a reader or valid buffer
  27573. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27574. */
  27575. ranking_data.decode = function decode(reader, length) {
  27576. if (!(reader instanceof $Reader))
  27577. reader = $Reader.create(reader);
  27578. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_data();
  27579. while (reader.pos < end) {
  27580. let tag = reader.uint32();
  27581. switch (tag >>> 3) {
  27582. case 1:
  27583. message.type = reader.int64();
  27584. break;
  27585. default:
  27586. reader.skipType(tag & 7);
  27587. break;
  27588. }
  27589. }
  27590. return message;
  27591. };
  27592. /**
  27593. * Decodes a ranking_data message from the specified reader or buffer, length delimited.
  27594. * @function decodeDelimited
  27595. * @memberof game.ranking_data
  27596. * @static
  27597. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27598. * @returns {game.ranking_data} ranking_data
  27599. * @throws {Error} If the payload is not a reader or valid buffer
  27600. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27601. */
  27602. ranking_data.decodeDelimited = function decodeDelimited(reader) {
  27603. if (!(reader instanceof $Reader))
  27604. reader = new $Reader(reader);
  27605. return this.decode(reader, reader.uint32());
  27606. };
  27607. /**
  27608. * Verifies a ranking_data message.
  27609. * @function verify
  27610. * @memberof game.ranking_data
  27611. * @static
  27612. * @param {Object.<string,*>} message Plain object to verify
  27613. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27614. */
  27615. ranking_data.verify = function verify(message) {
  27616. if (typeof message !== "object" || message === null)
  27617. return "object expected";
  27618. if (message.type != null && message.hasOwnProperty("type"))
  27619. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  27620. return "type: integer|Long expected";
  27621. return null;
  27622. };
  27623. /**
  27624. * Creates a ranking_data message from a plain object. Also converts values to their respective internal types.
  27625. * @function fromObject
  27626. * @memberof game.ranking_data
  27627. * @static
  27628. * @param {Object.<string,*>} object Plain object
  27629. * @returns {game.ranking_data} ranking_data
  27630. */
  27631. ranking_data.fromObject = function fromObject(object) {
  27632. if (object instanceof $root.game.ranking_data)
  27633. return object;
  27634. let message = new $root.game.ranking_data();
  27635. if (object.type != null)
  27636. if ($util.Long)
  27637. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  27638. else if (typeof object.type === "string")
  27639. message.type = parseInt(object.type, 10);
  27640. else if (typeof object.type === "number")
  27641. message.type = object.type;
  27642. else if (typeof object.type === "object")
  27643. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  27644. return message;
  27645. };
  27646. /**
  27647. * Creates a plain object from a ranking_data message. Also converts values to other types if specified.
  27648. * @function toObject
  27649. * @memberof game.ranking_data
  27650. * @static
  27651. * @param {game.ranking_data} message ranking_data
  27652. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27653. * @returns {Object.<string,*>} Plain object
  27654. */
  27655. ranking_data.toObject = function toObject(message, options) {
  27656. if (!options)
  27657. options = {};
  27658. let object = {};
  27659. if (options.defaults)
  27660. if ($util.Long) {
  27661. let long = new $util.Long(0, 0, false);
  27662. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27663. } else
  27664. object.type = options.longs === String ? "0" : 0;
  27665. if (message.type != null && message.hasOwnProperty("type"))
  27666. if (typeof message.type === "number")
  27667. object.type = options.longs === String ? String(message.type) : message.type;
  27668. else
  27669. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  27670. return object;
  27671. };
  27672. /**
  27673. * Converts this ranking_data to JSON.
  27674. * @function toJSON
  27675. * @memberof game.ranking_data
  27676. * @instance
  27677. * @returns {Object.<string,*>} JSON object
  27678. */
  27679. ranking_data.prototype.toJSON = function toJSON() {
  27680. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27681. };
  27682. return ranking_data;
  27683. })();
  27684. game.ranking_data_rsp = (function() {
  27685. /**
  27686. * Properties of a ranking_data_rsp.
  27687. * @memberof game
  27688. * @interface Iranking_data_rsp
  27689. * @property {number|Long|null} [errno] ranking_data_rsp errno
  27690. * @property {number|Long|null} [type] ranking_data_rsp type
  27691. * @property {Array.<game.Iranking_info>|null} [list] ranking_data_rsp list
  27692. * @property {game.Iranking_info|null} [myslef] ranking_data_rsp myslef
  27693. */
  27694. /**
  27695. * Constructs a new ranking_data_rsp.
  27696. * @memberof game
  27697. * @classdesc Represents a ranking_data_rsp.
  27698. * @implements Iranking_data_rsp
  27699. * @constructor
  27700. * @param {game.Iranking_data_rsp=} [properties] Properties to set
  27701. */
  27702. function ranking_data_rsp(properties) {
  27703. this.list = [];
  27704. if (properties)
  27705. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27706. if (properties[keys[i]] != null)
  27707. this[keys[i]] = properties[keys[i]];
  27708. }
  27709. /**
  27710. * ranking_data_rsp errno.
  27711. * @member {number|Long} errno
  27712. * @memberof game.ranking_data_rsp
  27713. * @instance
  27714. */
  27715. ranking_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27716. /**
  27717. * ranking_data_rsp type.
  27718. * @member {number|Long} type
  27719. * @memberof game.ranking_data_rsp
  27720. * @instance
  27721. */
  27722. ranking_data_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  27723. /**
  27724. * ranking_data_rsp list.
  27725. * @member {Array.<game.Iranking_info>} list
  27726. * @memberof game.ranking_data_rsp
  27727. * @instance
  27728. */
  27729. ranking_data_rsp.prototype.list = $util.emptyArray;
  27730. /**
  27731. * ranking_data_rsp myslef.
  27732. * @member {game.Iranking_info|null|undefined} myslef
  27733. * @memberof game.ranking_data_rsp
  27734. * @instance
  27735. */
  27736. ranking_data_rsp.prototype.myslef = null;
  27737. /**
  27738. * Creates a new ranking_data_rsp instance using the specified properties.
  27739. * @function create
  27740. * @memberof game.ranking_data_rsp
  27741. * @static
  27742. * @param {game.Iranking_data_rsp=} [properties] Properties to set
  27743. * @returns {game.ranking_data_rsp} ranking_data_rsp instance
  27744. */
  27745. ranking_data_rsp.create = function create(properties) {
  27746. return new ranking_data_rsp(properties);
  27747. };
  27748. /**
  27749. * Encodes the specified ranking_data_rsp message. Does not implicitly {@link game.ranking_data_rsp.verify|verify} messages.
  27750. * @function encode
  27751. * @memberof game.ranking_data_rsp
  27752. * @static
  27753. * @param {game.Iranking_data_rsp} message ranking_data_rsp message or plain object to encode
  27754. * @param {$protobuf.Writer} [writer] Writer to encode to
  27755. * @returns {$protobuf.Writer} Writer
  27756. */
  27757. ranking_data_rsp.encode = function encode(message, writer) {
  27758. if (!writer)
  27759. writer = $Writer.create();
  27760. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  27761. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  27762. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  27763. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  27764. if (message.list != null && message.list.length)
  27765. for (let i = 0; i < message.list.length; ++i)
  27766. $root.game.ranking_info.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  27767. if (message.myslef != null && Object.hasOwnProperty.call(message, "myslef"))
  27768. $root.game.ranking_info.encode(message.myslef, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  27769. return writer;
  27770. };
  27771. /**
  27772. * Encodes the specified ranking_data_rsp message, length delimited. Does not implicitly {@link game.ranking_data_rsp.verify|verify} messages.
  27773. * @function encodeDelimited
  27774. * @memberof game.ranking_data_rsp
  27775. * @static
  27776. * @param {game.Iranking_data_rsp} message ranking_data_rsp message or plain object to encode
  27777. * @param {$protobuf.Writer} [writer] Writer to encode to
  27778. * @returns {$protobuf.Writer} Writer
  27779. */
  27780. ranking_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  27781. return this.encode(message, writer).ldelim();
  27782. };
  27783. /**
  27784. * Decodes a ranking_data_rsp message from the specified reader or buffer.
  27785. * @function decode
  27786. * @memberof game.ranking_data_rsp
  27787. * @static
  27788. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27789. * @param {number} [length] Message length if known beforehand
  27790. * @returns {game.ranking_data_rsp} ranking_data_rsp
  27791. * @throws {Error} If the payload is not a reader or valid buffer
  27792. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27793. */
  27794. ranking_data_rsp.decode = function decode(reader, length) {
  27795. if (!(reader instanceof $Reader))
  27796. reader = $Reader.create(reader);
  27797. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_data_rsp();
  27798. while (reader.pos < end) {
  27799. let tag = reader.uint32();
  27800. switch (tag >>> 3) {
  27801. case 1:
  27802. message.errno = reader.int64();
  27803. break;
  27804. case 2:
  27805. message.type = reader.int64();
  27806. break;
  27807. case 3:
  27808. if (!(message.list && message.list.length))
  27809. message.list = [];
  27810. message.list.push($root.game.ranking_info.decode(reader, reader.uint32()));
  27811. break;
  27812. case 4:
  27813. message.myslef = $root.game.ranking_info.decode(reader, reader.uint32());
  27814. break;
  27815. default:
  27816. reader.skipType(tag & 7);
  27817. break;
  27818. }
  27819. }
  27820. return message;
  27821. };
  27822. /**
  27823. * Decodes a ranking_data_rsp message from the specified reader or buffer, length delimited.
  27824. * @function decodeDelimited
  27825. * @memberof game.ranking_data_rsp
  27826. * @static
  27827. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  27828. * @returns {game.ranking_data_rsp} ranking_data_rsp
  27829. * @throws {Error} If the payload is not a reader or valid buffer
  27830. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  27831. */
  27832. ranking_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  27833. if (!(reader instanceof $Reader))
  27834. reader = new $Reader(reader);
  27835. return this.decode(reader, reader.uint32());
  27836. };
  27837. /**
  27838. * Verifies a ranking_data_rsp message.
  27839. * @function verify
  27840. * @memberof game.ranking_data_rsp
  27841. * @static
  27842. * @param {Object.<string,*>} message Plain object to verify
  27843. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  27844. */
  27845. ranking_data_rsp.verify = function verify(message) {
  27846. if (typeof message !== "object" || message === null)
  27847. return "object expected";
  27848. if (message.errno != null && message.hasOwnProperty("errno"))
  27849. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  27850. return "errno: integer|Long expected";
  27851. if (message.type != null && message.hasOwnProperty("type"))
  27852. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  27853. return "type: integer|Long expected";
  27854. if (message.list != null && message.hasOwnProperty("list")) {
  27855. if (!Array.isArray(message.list))
  27856. return "list: array expected";
  27857. for (let i = 0; i < message.list.length; ++i) {
  27858. let error = $root.game.ranking_info.verify(message.list[i]);
  27859. if (error)
  27860. return "list." + error;
  27861. }
  27862. }
  27863. if (message.myslef != null && message.hasOwnProperty("myslef")) {
  27864. let error = $root.game.ranking_info.verify(message.myslef);
  27865. if (error)
  27866. return "myslef." + error;
  27867. }
  27868. return null;
  27869. };
  27870. /**
  27871. * Creates a ranking_data_rsp message from a plain object. Also converts values to their respective internal types.
  27872. * @function fromObject
  27873. * @memberof game.ranking_data_rsp
  27874. * @static
  27875. * @param {Object.<string,*>} object Plain object
  27876. * @returns {game.ranking_data_rsp} ranking_data_rsp
  27877. */
  27878. ranking_data_rsp.fromObject = function fromObject(object) {
  27879. if (object instanceof $root.game.ranking_data_rsp)
  27880. return object;
  27881. let message = new $root.game.ranking_data_rsp();
  27882. if (object.errno != null)
  27883. if ($util.Long)
  27884. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  27885. else if (typeof object.errno === "string")
  27886. message.errno = parseInt(object.errno, 10);
  27887. else if (typeof object.errno === "number")
  27888. message.errno = object.errno;
  27889. else if (typeof object.errno === "object")
  27890. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  27891. if (object.type != null)
  27892. if ($util.Long)
  27893. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  27894. else if (typeof object.type === "string")
  27895. message.type = parseInt(object.type, 10);
  27896. else if (typeof object.type === "number")
  27897. message.type = object.type;
  27898. else if (typeof object.type === "object")
  27899. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  27900. if (object.list) {
  27901. if (!Array.isArray(object.list))
  27902. throw TypeError(".game.ranking_data_rsp.list: array expected");
  27903. message.list = [];
  27904. for (let i = 0; i < object.list.length; ++i) {
  27905. if (typeof object.list[i] !== "object")
  27906. throw TypeError(".game.ranking_data_rsp.list: object expected");
  27907. message.list[i] = $root.game.ranking_info.fromObject(object.list[i]);
  27908. }
  27909. }
  27910. if (object.myslef != null) {
  27911. if (typeof object.myslef !== "object")
  27912. throw TypeError(".game.ranking_data_rsp.myslef: object expected");
  27913. message.myslef = $root.game.ranking_info.fromObject(object.myslef);
  27914. }
  27915. return message;
  27916. };
  27917. /**
  27918. * Creates a plain object from a ranking_data_rsp message. Also converts values to other types if specified.
  27919. * @function toObject
  27920. * @memberof game.ranking_data_rsp
  27921. * @static
  27922. * @param {game.ranking_data_rsp} message ranking_data_rsp
  27923. * @param {$protobuf.IConversionOptions} [options] Conversion options
  27924. * @returns {Object.<string,*>} Plain object
  27925. */
  27926. ranking_data_rsp.toObject = function toObject(message, options) {
  27927. if (!options)
  27928. options = {};
  27929. let object = {};
  27930. if (options.arrays || options.defaults)
  27931. object.list = [];
  27932. if (options.defaults) {
  27933. if ($util.Long) {
  27934. let long = new $util.Long(0, 0, false);
  27935. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27936. } else
  27937. object.errno = options.longs === String ? "0" : 0;
  27938. if ($util.Long) {
  27939. let long = new $util.Long(0, 0, false);
  27940. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  27941. } else
  27942. object.type = options.longs === String ? "0" : 0;
  27943. object.myslef = null;
  27944. }
  27945. if (message.errno != null && message.hasOwnProperty("errno"))
  27946. if (typeof message.errno === "number")
  27947. object.errno = options.longs === String ? String(message.errno) : message.errno;
  27948. else
  27949. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  27950. if (message.type != null && message.hasOwnProperty("type"))
  27951. if (typeof message.type === "number")
  27952. object.type = options.longs === String ? String(message.type) : message.type;
  27953. else
  27954. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  27955. if (message.list && message.list.length) {
  27956. object.list = [];
  27957. for (let j = 0; j < message.list.length; ++j)
  27958. object.list[j] = $root.game.ranking_info.toObject(message.list[j], options);
  27959. }
  27960. if (message.myslef != null && message.hasOwnProperty("myslef"))
  27961. object.myslef = $root.game.ranking_info.toObject(message.myslef, options);
  27962. return object;
  27963. };
  27964. /**
  27965. * Converts this ranking_data_rsp to JSON.
  27966. * @function toJSON
  27967. * @memberof game.ranking_data_rsp
  27968. * @instance
  27969. * @returns {Object.<string,*>} JSON object
  27970. */
  27971. ranking_data_rsp.prototype.toJSON = function toJSON() {
  27972. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  27973. };
  27974. return ranking_data_rsp;
  27975. })();
  27976. game.grocery_data = (function() {
  27977. /**
  27978. * Properties of a grocery_data.
  27979. * @memberof game
  27980. * @interface Igrocery_data
  27981. * @property {number|Long|null} [type] grocery_data type
  27982. */
  27983. /**
  27984. * Constructs a new grocery_data.
  27985. * @memberof game
  27986. * @classdesc Represents a grocery_data.
  27987. * @implements Igrocery_data
  27988. * @constructor
  27989. * @param {game.Igrocery_data=} [properties] Properties to set
  27990. */
  27991. function grocery_data(properties) {
  27992. if (properties)
  27993. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  27994. if (properties[keys[i]] != null)
  27995. this[keys[i]] = properties[keys[i]];
  27996. }
  27997. /**
  27998. * grocery_data type.
  27999. * @member {number|Long} type
  28000. * @memberof game.grocery_data
  28001. * @instance
  28002. */
  28003. grocery_data.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28004. /**
  28005. * Creates a new grocery_data instance using the specified properties.
  28006. * @function create
  28007. * @memberof game.grocery_data
  28008. * @static
  28009. * @param {game.Igrocery_data=} [properties] Properties to set
  28010. * @returns {game.grocery_data} grocery_data instance
  28011. */
  28012. grocery_data.create = function create(properties) {
  28013. return new grocery_data(properties);
  28014. };
  28015. /**
  28016. * Encodes the specified grocery_data message. Does not implicitly {@link game.grocery_data.verify|verify} messages.
  28017. * @function encode
  28018. * @memberof game.grocery_data
  28019. * @static
  28020. * @param {game.Igrocery_data} message grocery_data message or plain object to encode
  28021. * @param {$protobuf.Writer} [writer] Writer to encode to
  28022. * @returns {$protobuf.Writer} Writer
  28023. */
  28024. grocery_data.encode = function encode(message, writer) {
  28025. if (!writer)
  28026. writer = $Writer.create();
  28027. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  28028. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  28029. return writer;
  28030. };
  28031. /**
  28032. * Encodes the specified grocery_data message, length delimited. Does not implicitly {@link game.grocery_data.verify|verify} messages.
  28033. * @function encodeDelimited
  28034. * @memberof game.grocery_data
  28035. * @static
  28036. * @param {game.Igrocery_data} message grocery_data message or plain object to encode
  28037. * @param {$protobuf.Writer} [writer] Writer to encode to
  28038. * @returns {$protobuf.Writer} Writer
  28039. */
  28040. grocery_data.encodeDelimited = function encodeDelimited(message, writer) {
  28041. return this.encode(message, writer).ldelim();
  28042. };
  28043. /**
  28044. * Decodes a grocery_data message from the specified reader or buffer.
  28045. * @function decode
  28046. * @memberof game.grocery_data
  28047. * @static
  28048. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28049. * @param {number} [length] Message length if known beforehand
  28050. * @returns {game.grocery_data} grocery_data
  28051. * @throws {Error} If the payload is not a reader or valid buffer
  28052. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28053. */
  28054. grocery_data.decode = function decode(reader, length) {
  28055. if (!(reader instanceof $Reader))
  28056. reader = $Reader.create(reader);
  28057. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_data();
  28058. while (reader.pos < end) {
  28059. let tag = reader.uint32();
  28060. switch (tag >>> 3) {
  28061. case 1:
  28062. message.type = reader.int64();
  28063. break;
  28064. default:
  28065. reader.skipType(tag & 7);
  28066. break;
  28067. }
  28068. }
  28069. return message;
  28070. };
  28071. /**
  28072. * Decodes a grocery_data message from the specified reader or buffer, length delimited.
  28073. * @function decodeDelimited
  28074. * @memberof game.grocery_data
  28075. * @static
  28076. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28077. * @returns {game.grocery_data} grocery_data
  28078. * @throws {Error} If the payload is not a reader or valid buffer
  28079. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28080. */
  28081. grocery_data.decodeDelimited = function decodeDelimited(reader) {
  28082. if (!(reader instanceof $Reader))
  28083. reader = new $Reader(reader);
  28084. return this.decode(reader, reader.uint32());
  28085. };
  28086. /**
  28087. * Verifies a grocery_data message.
  28088. * @function verify
  28089. * @memberof game.grocery_data
  28090. * @static
  28091. * @param {Object.<string,*>} message Plain object to verify
  28092. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28093. */
  28094. grocery_data.verify = function verify(message) {
  28095. if (typeof message !== "object" || message === null)
  28096. return "object expected";
  28097. if (message.type != null && message.hasOwnProperty("type"))
  28098. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  28099. return "type: integer|Long expected";
  28100. return null;
  28101. };
  28102. /**
  28103. * Creates a grocery_data message from a plain object. Also converts values to their respective internal types.
  28104. * @function fromObject
  28105. * @memberof game.grocery_data
  28106. * @static
  28107. * @param {Object.<string,*>} object Plain object
  28108. * @returns {game.grocery_data} grocery_data
  28109. */
  28110. grocery_data.fromObject = function fromObject(object) {
  28111. if (object instanceof $root.game.grocery_data)
  28112. return object;
  28113. let message = new $root.game.grocery_data();
  28114. if (object.type != null)
  28115. if ($util.Long)
  28116. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  28117. else if (typeof object.type === "string")
  28118. message.type = parseInt(object.type, 10);
  28119. else if (typeof object.type === "number")
  28120. message.type = object.type;
  28121. else if (typeof object.type === "object")
  28122. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  28123. return message;
  28124. };
  28125. /**
  28126. * Creates a plain object from a grocery_data message. Also converts values to other types if specified.
  28127. * @function toObject
  28128. * @memberof game.grocery_data
  28129. * @static
  28130. * @param {game.grocery_data} message grocery_data
  28131. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28132. * @returns {Object.<string,*>} Plain object
  28133. */
  28134. grocery_data.toObject = function toObject(message, options) {
  28135. if (!options)
  28136. options = {};
  28137. let object = {};
  28138. if (options.defaults)
  28139. if ($util.Long) {
  28140. let long = new $util.Long(0, 0, false);
  28141. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28142. } else
  28143. object.type = options.longs === String ? "0" : 0;
  28144. if (message.type != null && message.hasOwnProperty("type"))
  28145. if (typeof message.type === "number")
  28146. object.type = options.longs === String ? String(message.type) : message.type;
  28147. else
  28148. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  28149. return object;
  28150. };
  28151. /**
  28152. * Converts this grocery_data to JSON.
  28153. * @function toJSON
  28154. * @memberof game.grocery_data
  28155. * @instance
  28156. * @returns {Object.<string,*>} JSON object
  28157. */
  28158. grocery_data.prototype.toJSON = function toJSON() {
  28159. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28160. };
  28161. return grocery_data;
  28162. })();
  28163. game.grocery_data_rsp = (function() {
  28164. /**
  28165. * Properties of a grocery_data_rsp.
  28166. * @memberof game
  28167. * @interface Igrocery_data_rsp
  28168. * @property {number|Long|null} [errno] grocery_data_rsp errno
  28169. * @property {game.Igrocery_info|null} [data] grocery_data_rsp data
  28170. */
  28171. /**
  28172. * Constructs a new grocery_data_rsp.
  28173. * @memberof game
  28174. * @classdesc Represents a grocery_data_rsp.
  28175. * @implements Igrocery_data_rsp
  28176. * @constructor
  28177. * @param {game.Igrocery_data_rsp=} [properties] Properties to set
  28178. */
  28179. function grocery_data_rsp(properties) {
  28180. if (properties)
  28181. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28182. if (properties[keys[i]] != null)
  28183. this[keys[i]] = properties[keys[i]];
  28184. }
  28185. /**
  28186. * grocery_data_rsp errno.
  28187. * @member {number|Long} errno
  28188. * @memberof game.grocery_data_rsp
  28189. * @instance
  28190. */
  28191. grocery_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28192. /**
  28193. * grocery_data_rsp data.
  28194. * @member {game.Igrocery_info|null|undefined} data
  28195. * @memberof game.grocery_data_rsp
  28196. * @instance
  28197. */
  28198. grocery_data_rsp.prototype.data = null;
  28199. /**
  28200. * Creates a new grocery_data_rsp instance using the specified properties.
  28201. * @function create
  28202. * @memberof game.grocery_data_rsp
  28203. * @static
  28204. * @param {game.Igrocery_data_rsp=} [properties] Properties to set
  28205. * @returns {game.grocery_data_rsp} grocery_data_rsp instance
  28206. */
  28207. grocery_data_rsp.create = function create(properties) {
  28208. return new grocery_data_rsp(properties);
  28209. };
  28210. /**
  28211. * Encodes the specified grocery_data_rsp message. Does not implicitly {@link game.grocery_data_rsp.verify|verify} messages.
  28212. * @function encode
  28213. * @memberof game.grocery_data_rsp
  28214. * @static
  28215. * @param {game.Igrocery_data_rsp} message grocery_data_rsp message or plain object to encode
  28216. * @param {$protobuf.Writer} [writer] Writer to encode to
  28217. * @returns {$protobuf.Writer} Writer
  28218. */
  28219. grocery_data_rsp.encode = function encode(message, writer) {
  28220. if (!writer)
  28221. writer = $Writer.create();
  28222. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  28223. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  28224. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  28225. $root.game.grocery_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  28226. return writer;
  28227. };
  28228. /**
  28229. * Encodes the specified grocery_data_rsp message, length delimited. Does not implicitly {@link game.grocery_data_rsp.verify|verify} messages.
  28230. * @function encodeDelimited
  28231. * @memberof game.grocery_data_rsp
  28232. * @static
  28233. * @param {game.Igrocery_data_rsp} message grocery_data_rsp message or plain object to encode
  28234. * @param {$protobuf.Writer} [writer] Writer to encode to
  28235. * @returns {$protobuf.Writer} Writer
  28236. */
  28237. grocery_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  28238. return this.encode(message, writer).ldelim();
  28239. };
  28240. /**
  28241. * Decodes a grocery_data_rsp message from the specified reader or buffer.
  28242. * @function decode
  28243. * @memberof game.grocery_data_rsp
  28244. * @static
  28245. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28246. * @param {number} [length] Message length if known beforehand
  28247. * @returns {game.grocery_data_rsp} grocery_data_rsp
  28248. * @throws {Error} If the payload is not a reader or valid buffer
  28249. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28250. */
  28251. grocery_data_rsp.decode = function decode(reader, length) {
  28252. if (!(reader instanceof $Reader))
  28253. reader = $Reader.create(reader);
  28254. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_data_rsp();
  28255. while (reader.pos < end) {
  28256. let tag = reader.uint32();
  28257. switch (tag >>> 3) {
  28258. case 1:
  28259. message.errno = reader.int64();
  28260. break;
  28261. case 2:
  28262. message.data = $root.game.grocery_info.decode(reader, reader.uint32());
  28263. break;
  28264. default:
  28265. reader.skipType(tag & 7);
  28266. break;
  28267. }
  28268. }
  28269. return message;
  28270. };
  28271. /**
  28272. * Decodes a grocery_data_rsp message from the specified reader or buffer, length delimited.
  28273. * @function decodeDelimited
  28274. * @memberof game.grocery_data_rsp
  28275. * @static
  28276. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28277. * @returns {game.grocery_data_rsp} grocery_data_rsp
  28278. * @throws {Error} If the payload is not a reader or valid buffer
  28279. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28280. */
  28281. grocery_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  28282. if (!(reader instanceof $Reader))
  28283. reader = new $Reader(reader);
  28284. return this.decode(reader, reader.uint32());
  28285. };
  28286. /**
  28287. * Verifies a grocery_data_rsp message.
  28288. * @function verify
  28289. * @memberof game.grocery_data_rsp
  28290. * @static
  28291. * @param {Object.<string,*>} message Plain object to verify
  28292. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28293. */
  28294. grocery_data_rsp.verify = function verify(message) {
  28295. if (typeof message !== "object" || message === null)
  28296. return "object expected";
  28297. if (message.errno != null && message.hasOwnProperty("errno"))
  28298. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  28299. return "errno: integer|Long expected";
  28300. if (message.data != null && message.hasOwnProperty("data")) {
  28301. let error = $root.game.grocery_info.verify(message.data);
  28302. if (error)
  28303. return "data." + error;
  28304. }
  28305. return null;
  28306. };
  28307. /**
  28308. * Creates a grocery_data_rsp message from a plain object. Also converts values to their respective internal types.
  28309. * @function fromObject
  28310. * @memberof game.grocery_data_rsp
  28311. * @static
  28312. * @param {Object.<string,*>} object Plain object
  28313. * @returns {game.grocery_data_rsp} grocery_data_rsp
  28314. */
  28315. grocery_data_rsp.fromObject = function fromObject(object) {
  28316. if (object instanceof $root.game.grocery_data_rsp)
  28317. return object;
  28318. let message = new $root.game.grocery_data_rsp();
  28319. if (object.errno != null)
  28320. if ($util.Long)
  28321. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  28322. else if (typeof object.errno === "string")
  28323. message.errno = parseInt(object.errno, 10);
  28324. else if (typeof object.errno === "number")
  28325. message.errno = object.errno;
  28326. else if (typeof object.errno === "object")
  28327. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  28328. if (object.data != null) {
  28329. if (typeof object.data !== "object")
  28330. throw TypeError(".game.grocery_data_rsp.data: object expected");
  28331. message.data = $root.game.grocery_info.fromObject(object.data);
  28332. }
  28333. return message;
  28334. };
  28335. /**
  28336. * Creates a plain object from a grocery_data_rsp message. Also converts values to other types if specified.
  28337. * @function toObject
  28338. * @memberof game.grocery_data_rsp
  28339. * @static
  28340. * @param {game.grocery_data_rsp} message grocery_data_rsp
  28341. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28342. * @returns {Object.<string,*>} Plain object
  28343. */
  28344. grocery_data_rsp.toObject = function toObject(message, options) {
  28345. if (!options)
  28346. options = {};
  28347. let object = {};
  28348. if (options.defaults) {
  28349. if ($util.Long) {
  28350. let long = new $util.Long(0, 0, false);
  28351. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28352. } else
  28353. object.errno = options.longs === String ? "0" : 0;
  28354. object.data = null;
  28355. }
  28356. if (message.errno != null && message.hasOwnProperty("errno"))
  28357. if (typeof message.errno === "number")
  28358. object.errno = options.longs === String ? String(message.errno) : message.errno;
  28359. else
  28360. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  28361. if (message.data != null && message.hasOwnProperty("data"))
  28362. object.data = $root.game.grocery_info.toObject(message.data, options);
  28363. return object;
  28364. };
  28365. /**
  28366. * Converts this grocery_data_rsp to JSON.
  28367. * @function toJSON
  28368. * @memberof game.grocery_data_rsp
  28369. * @instance
  28370. * @returns {Object.<string,*>} JSON object
  28371. */
  28372. grocery_data_rsp.prototype.toJSON = function toJSON() {
  28373. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28374. };
  28375. return grocery_data_rsp;
  28376. })();
  28377. game.grocery_buy = (function() {
  28378. /**
  28379. * Properties of a grocery_buy.
  28380. * @memberof game
  28381. * @interface Igrocery_buy
  28382. * @property {number|Long|null} [type] grocery_buy type
  28383. * @property {boolean|null} [free] grocery_buy free
  28384. */
  28385. /**
  28386. * Constructs a new grocery_buy.
  28387. * @memberof game
  28388. * @classdesc Represents a grocery_buy.
  28389. * @implements Igrocery_buy
  28390. * @constructor
  28391. * @param {game.Igrocery_buy=} [properties] Properties to set
  28392. */
  28393. function grocery_buy(properties) {
  28394. if (properties)
  28395. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28396. if (properties[keys[i]] != null)
  28397. this[keys[i]] = properties[keys[i]];
  28398. }
  28399. /**
  28400. * grocery_buy type.
  28401. * @member {number|Long} type
  28402. * @memberof game.grocery_buy
  28403. * @instance
  28404. */
  28405. grocery_buy.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28406. /**
  28407. * grocery_buy free.
  28408. * @member {boolean} free
  28409. * @memberof game.grocery_buy
  28410. * @instance
  28411. */
  28412. grocery_buy.prototype.free = false;
  28413. /**
  28414. * Creates a new grocery_buy instance using the specified properties.
  28415. * @function create
  28416. * @memberof game.grocery_buy
  28417. * @static
  28418. * @param {game.Igrocery_buy=} [properties] Properties to set
  28419. * @returns {game.grocery_buy} grocery_buy instance
  28420. */
  28421. grocery_buy.create = function create(properties) {
  28422. return new grocery_buy(properties);
  28423. };
  28424. /**
  28425. * Encodes the specified grocery_buy message. Does not implicitly {@link game.grocery_buy.verify|verify} messages.
  28426. * @function encode
  28427. * @memberof game.grocery_buy
  28428. * @static
  28429. * @param {game.Igrocery_buy} message grocery_buy message or plain object to encode
  28430. * @param {$protobuf.Writer} [writer] Writer to encode to
  28431. * @returns {$protobuf.Writer} Writer
  28432. */
  28433. grocery_buy.encode = function encode(message, writer) {
  28434. if (!writer)
  28435. writer = $Writer.create();
  28436. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  28437. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  28438. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  28439. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.free);
  28440. return writer;
  28441. };
  28442. /**
  28443. * Encodes the specified grocery_buy message, length delimited. Does not implicitly {@link game.grocery_buy.verify|verify} messages.
  28444. * @function encodeDelimited
  28445. * @memberof game.grocery_buy
  28446. * @static
  28447. * @param {game.Igrocery_buy} message grocery_buy message or plain object to encode
  28448. * @param {$protobuf.Writer} [writer] Writer to encode to
  28449. * @returns {$protobuf.Writer} Writer
  28450. */
  28451. grocery_buy.encodeDelimited = function encodeDelimited(message, writer) {
  28452. return this.encode(message, writer).ldelim();
  28453. };
  28454. /**
  28455. * Decodes a grocery_buy message from the specified reader or buffer.
  28456. * @function decode
  28457. * @memberof game.grocery_buy
  28458. * @static
  28459. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28460. * @param {number} [length] Message length if known beforehand
  28461. * @returns {game.grocery_buy} grocery_buy
  28462. * @throws {Error} If the payload is not a reader or valid buffer
  28463. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28464. */
  28465. grocery_buy.decode = function decode(reader, length) {
  28466. if (!(reader instanceof $Reader))
  28467. reader = $Reader.create(reader);
  28468. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_buy();
  28469. while (reader.pos < end) {
  28470. let tag = reader.uint32();
  28471. switch (tag >>> 3) {
  28472. case 1:
  28473. message.type = reader.int64();
  28474. break;
  28475. case 2:
  28476. message.free = reader.bool();
  28477. break;
  28478. default:
  28479. reader.skipType(tag & 7);
  28480. break;
  28481. }
  28482. }
  28483. return message;
  28484. };
  28485. /**
  28486. * Decodes a grocery_buy message from the specified reader or buffer, length delimited.
  28487. * @function decodeDelimited
  28488. * @memberof game.grocery_buy
  28489. * @static
  28490. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28491. * @returns {game.grocery_buy} grocery_buy
  28492. * @throws {Error} If the payload is not a reader or valid buffer
  28493. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28494. */
  28495. grocery_buy.decodeDelimited = function decodeDelimited(reader) {
  28496. if (!(reader instanceof $Reader))
  28497. reader = new $Reader(reader);
  28498. return this.decode(reader, reader.uint32());
  28499. };
  28500. /**
  28501. * Verifies a grocery_buy message.
  28502. * @function verify
  28503. * @memberof game.grocery_buy
  28504. * @static
  28505. * @param {Object.<string,*>} message Plain object to verify
  28506. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28507. */
  28508. grocery_buy.verify = function verify(message) {
  28509. if (typeof message !== "object" || message === null)
  28510. return "object expected";
  28511. if (message.type != null && message.hasOwnProperty("type"))
  28512. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  28513. return "type: integer|Long expected";
  28514. if (message.free != null && message.hasOwnProperty("free"))
  28515. if (typeof message.free !== "boolean")
  28516. return "free: boolean expected";
  28517. return null;
  28518. };
  28519. /**
  28520. * Creates a grocery_buy message from a plain object. Also converts values to their respective internal types.
  28521. * @function fromObject
  28522. * @memberof game.grocery_buy
  28523. * @static
  28524. * @param {Object.<string,*>} object Plain object
  28525. * @returns {game.grocery_buy} grocery_buy
  28526. */
  28527. grocery_buy.fromObject = function fromObject(object) {
  28528. if (object instanceof $root.game.grocery_buy)
  28529. return object;
  28530. let message = new $root.game.grocery_buy();
  28531. if (object.type != null)
  28532. if ($util.Long)
  28533. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  28534. else if (typeof object.type === "string")
  28535. message.type = parseInt(object.type, 10);
  28536. else if (typeof object.type === "number")
  28537. message.type = object.type;
  28538. else if (typeof object.type === "object")
  28539. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  28540. if (object.free != null)
  28541. message.free = Boolean(object.free);
  28542. return message;
  28543. };
  28544. /**
  28545. * Creates a plain object from a grocery_buy message. Also converts values to other types if specified.
  28546. * @function toObject
  28547. * @memberof game.grocery_buy
  28548. * @static
  28549. * @param {game.grocery_buy} message grocery_buy
  28550. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28551. * @returns {Object.<string,*>} Plain object
  28552. */
  28553. grocery_buy.toObject = function toObject(message, options) {
  28554. if (!options)
  28555. options = {};
  28556. let object = {};
  28557. if (options.defaults) {
  28558. if ($util.Long) {
  28559. let long = new $util.Long(0, 0, false);
  28560. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28561. } else
  28562. object.type = options.longs === String ? "0" : 0;
  28563. object.free = false;
  28564. }
  28565. if (message.type != null && message.hasOwnProperty("type"))
  28566. if (typeof message.type === "number")
  28567. object.type = options.longs === String ? String(message.type) : message.type;
  28568. else
  28569. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  28570. if (message.free != null && message.hasOwnProperty("free"))
  28571. object.free = message.free;
  28572. return object;
  28573. };
  28574. /**
  28575. * Converts this grocery_buy to JSON.
  28576. * @function toJSON
  28577. * @memberof game.grocery_buy
  28578. * @instance
  28579. * @returns {Object.<string,*>} JSON object
  28580. */
  28581. grocery_buy.prototype.toJSON = function toJSON() {
  28582. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28583. };
  28584. return grocery_buy;
  28585. })();
  28586. game.grocery_buy_rsp = (function() {
  28587. /**
  28588. * Properties of a grocery_buy_rsp.
  28589. * @memberof game
  28590. * @interface Igrocery_buy_rsp
  28591. * @property {number|Long|null} [errno] grocery_buy_rsp errno
  28592. * @property {game.Igrocery_info|null} [data] grocery_buy_rsp data
  28593. */
  28594. /**
  28595. * Constructs a new grocery_buy_rsp.
  28596. * @memberof game
  28597. * @classdesc Represents a grocery_buy_rsp.
  28598. * @implements Igrocery_buy_rsp
  28599. * @constructor
  28600. * @param {game.Igrocery_buy_rsp=} [properties] Properties to set
  28601. */
  28602. function grocery_buy_rsp(properties) {
  28603. if (properties)
  28604. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28605. if (properties[keys[i]] != null)
  28606. this[keys[i]] = properties[keys[i]];
  28607. }
  28608. /**
  28609. * grocery_buy_rsp errno.
  28610. * @member {number|Long} errno
  28611. * @memberof game.grocery_buy_rsp
  28612. * @instance
  28613. */
  28614. grocery_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28615. /**
  28616. * grocery_buy_rsp data.
  28617. * @member {game.Igrocery_info|null|undefined} data
  28618. * @memberof game.grocery_buy_rsp
  28619. * @instance
  28620. */
  28621. grocery_buy_rsp.prototype.data = null;
  28622. /**
  28623. * Creates a new grocery_buy_rsp instance using the specified properties.
  28624. * @function create
  28625. * @memberof game.grocery_buy_rsp
  28626. * @static
  28627. * @param {game.Igrocery_buy_rsp=} [properties] Properties to set
  28628. * @returns {game.grocery_buy_rsp} grocery_buy_rsp instance
  28629. */
  28630. grocery_buy_rsp.create = function create(properties) {
  28631. return new grocery_buy_rsp(properties);
  28632. };
  28633. /**
  28634. * Encodes the specified grocery_buy_rsp message. Does not implicitly {@link game.grocery_buy_rsp.verify|verify} messages.
  28635. * @function encode
  28636. * @memberof game.grocery_buy_rsp
  28637. * @static
  28638. * @param {game.Igrocery_buy_rsp} message grocery_buy_rsp message or plain object to encode
  28639. * @param {$protobuf.Writer} [writer] Writer to encode to
  28640. * @returns {$protobuf.Writer} Writer
  28641. */
  28642. grocery_buy_rsp.encode = function encode(message, writer) {
  28643. if (!writer)
  28644. writer = $Writer.create();
  28645. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  28646. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  28647. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  28648. $root.game.grocery_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  28649. return writer;
  28650. };
  28651. /**
  28652. * Encodes the specified grocery_buy_rsp message, length delimited. Does not implicitly {@link game.grocery_buy_rsp.verify|verify} messages.
  28653. * @function encodeDelimited
  28654. * @memberof game.grocery_buy_rsp
  28655. * @static
  28656. * @param {game.Igrocery_buy_rsp} message grocery_buy_rsp message or plain object to encode
  28657. * @param {$protobuf.Writer} [writer] Writer to encode to
  28658. * @returns {$protobuf.Writer} Writer
  28659. */
  28660. grocery_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  28661. return this.encode(message, writer).ldelim();
  28662. };
  28663. /**
  28664. * Decodes a grocery_buy_rsp message from the specified reader or buffer.
  28665. * @function decode
  28666. * @memberof game.grocery_buy_rsp
  28667. * @static
  28668. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28669. * @param {number} [length] Message length if known beforehand
  28670. * @returns {game.grocery_buy_rsp} grocery_buy_rsp
  28671. * @throws {Error} If the payload is not a reader or valid buffer
  28672. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28673. */
  28674. grocery_buy_rsp.decode = function decode(reader, length) {
  28675. if (!(reader instanceof $Reader))
  28676. reader = $Reader.create(reader);
  28677. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_buy_rsp();
  28678. while (reader.pos < end) {
  28679. let tag = reader.uint32();
  28680. switch (tag >>> 3) {
  28681. case 1:
  28682. message.errno = reader.int64();
  28683. break;
  28684. case 2:
  28685. message.data = $root.game.grocery_info.decode(reader, reader.uint32());
  28686. break;
  28687. default:
  28688. reader.skipType(tag & 7);
  28689. break;
  28690. }
  28691. }
  28692. return message;
  28693. };
  28694. /**
  28695. * Decodes a grocery_buy_rsp message from the specified reader or buffer, length delimited.
  28696. * @function decodeDelimited
  28697. * @memberof game.grocery_buy_rsp
  28698. * @static
  28699. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28700. * @returns {game.grocery_buy_rsp} grocery_buy_rsp
  28701. * @throws {Error} If the payload is not a reader or valid buffer
  28702. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28703. */
  28704. grocery_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  28705. if (!(reader instanceof $Reader))
  28706. reader = new $Reader(reader);
  28707. return this.decode(reader, reader.uint32());
  28708. };
  28709. /**
  28710. * Verifies a grocery_buy_rsp message.
  28711. * @function verify
  28712. * @memberof game.grocery_buy_rsp
  28713. * @static
  28714. * @param {Object.<string,*>} message Plain object to verify
  28715. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28716. */
  28717. grocery_buy_rsp.verify = function verify(message) {
  28718. if (typeof message !== "object" || message === null)
  28719. return "object expected";
  28720. if (message.errno != null && message.hasOwnProperty("errno"))
  28721. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  28722. return "errno: integer|Long expected";
  28723. if (message.data != null && message.hasOwnProperty("data")) {
  28724. let error = $root.game.grocery_info.verify(message.data);
  28725. if (error)
  28726. return "data." + error;
  28727. }
  28728. return null;
  28729. };
  28730. /**
  28731. * Creates a grocery_buy_rsp message from a plain object. Also converts values to their respective internal types.
  28732. * @function fromObject
  28733. * @memberof game.grocery_buy_rsp
  28734. * @static
  28735. * @param {Object.<string,*>} object Plain object
  28736. * @returns {game.grocery_buy_rsp} grocery_buy_rsp
  28737. */
  28738. grocery_buy_rsp.fromObject = function fromObject(object) {
  28739. if (object instanceof $root.game.grocery_buy_rsp)
  28740. return object;
  28741. let message = new $root.game.grocery_buy_rsp();
  28742. if (object.errno != null)
  28743. if ($util.Long)
  28744. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  28745. else if (typeof object.errno === "string")
  28746. message.errno = parseInt(object.errno, 10);
  28747. else if (typeof object.errno === "number")
  28748. message.errno = object.errno;
  28749. else if (typeof object.errno === "object")
  28750. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  28751. if (object.data != null) {
  28752. if (typeof object.data !== "object")
  28753. throw TypeError(".game.grocery_buy_rsp.data: object expected");
  28754. message.data = $root.game.grocery_info.fromObject(object.data);
  28755. }
  28756. return message;
  28757. };
  28758. /**
  28759. * Creates a plain object from a grocery_buy_rsp message. Also converts values to other types if specified.
  28760. * @function toObject
  28761. * @memberof game.grocery_buy_rsp
  28762. * @static
  28763. * @param {game.grocery_buy_rsp} message grocery_buy_rsp
  28764. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28765. * @returns {Object.<string,*>} Plain object
  28766. */
  28767. grocery_buy_rsp.toObject = function toObject(message, options) {
  28768. if (!options)
  28769. options = {};
  28770. let object = {};
  28771. if (options.defaults) {
  28772. if ($util.Long) {
  28773. let long = new $util.Long(0, 0, false);
  28774. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  28775. } else
  28776. object.errno = options.longs === String ? "0" : 0;
  28777. object.data = null;
  28778. }
  28779. if (message.errno != null && message.hasOwnProperty("errno"))
  28780. if (typeof message.errno === "number")
  28781. object.errno = options.longs === String ? String(message.errno) : message.errno;
  28782. else
  28783. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  28784. if (message.data != null && message.hasOwnProperty("data"))
  28785. object.data = $root.game.grocery_info.toObject(message.data, options);
  28786. return object;
  28787. };
  28788. /**
  28789. * Converts this grocery_buy_rsp to JSON.
  28790. * @function toJSON
  28791. * @memberof game.grocery_buy_rsp
  28792. * @instance
  28793. * @returns {Object.<string,*>} JSON object
  28794. */
  28795. grocery_buy_rsp.prototype.toJSON = function toJSON() {
  28796. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28797. };
  28798. return grocery_buy_rsp;
  28799. })();
  28800. game.altar_data = (function() {
  28801. /**
  28802. * Properties of an altar_data.
  28803. * @memberof game
  28804. * @interface Ialtar_data
  28805. */
  28806. /**
  28807. * Constructs a new altar_data.
  28808. * @memberof game
  28809. * @classdesc Represents an altar_data.
  28810. * @implements Ialtar_data
  28811. * @constructor
  28812. * @param {game.Ialtar_data=} [properties] Properties to set
  28813. */
  28814. function altar_data(properties) {
  28815. if (properties)
  28816. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28817. if (properties[keys[i]] != null)
  28818. this[keys[i]] = properties[keys[i]];
  28819. }
  28820. /**
  28821. * Creates a new altar_data instance using the specified properties.
  28822. * @function create
  28823. * @memberof game.altar_data
  28824. * @static
  28825. * @param {game.Ialtar_data=} [properties] Properties to set
  28826. * @returns {game.altar_data} altar_data instance
  28827. */
  28828. altar_data.create = function create(properties) {
  28829. return new altar_data(properties);
  28830. };
  28831. /**
  28832. * Encodes the specified altar_data message. Does not implicitly {@link game.altar_data.verify|verify} messages.
  28833. * @function encode
  28834. * @memberof game.altar_data
  28835. * @static
  28836. * @param {game.Ialtar_data} message altar_data message or plain object to encode
  28837. * @param {$protobuf.Writer} [writer] Writer to encode to
  28838. * @returns {$protobuf.Writer} Writer
  28839. */
  28840. altar_data.encode = function encode(message, writer) {
  28841. if (!writer)
  28842. writer = $Writer.create();
  28843. return writer;
  28844. };
  28845. /**
  28846. * Encodes the specified altar_data message, length delimited. Does not implicitly {@link game.altar_data.verify|verify} messages.
  28847. * @function encodeDelimited
  28848. * @memberof game.altar_data
  28849. * @static
  28850. * @param {game.Ialtar_data} message altar_data message or plain object to encode
  28851. * @param {$protobuf.Writer} [writer] Writer to encode to
  28852. * @returns {$protobuf.Writer} Writer
  28853. */
  28854. altar_data.encodeDelimited = function encodeDelimited(message, writer) {
  28855. return this.encode(message, writer).ldelim();
  28856. };
  28857. /**
  28858. * Decodes an altar_data message from the specified reader or buffer.
  28859. * @function decode
  28860. * @memberof game.altar_data
  28861. * @static
  28862. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28863. * @param {number} [length] Message length if known beforehand
  28864. * @returns {game.altar_data} altar_data
  28865. * @throws {Error} If the payload is not a reader or valid buffer
  28866. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28867. */
  28868. altar_data.decode = function decode(reader, length) {
  28869. if (!(reader instanceof $Reader))
  28870. reader = $Reader.create(reader);
  28871. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_data();
  28872. while (reader.pos < end) {
  28873. let tag = reader.uint32();
  28874. switch (tag >>> 3) {
  28875. default:
  28876. reader.skipType(tag & 7);
  28877. break;
  28878. }
  28879. }
  28880. return message;
  28881. };
  28882. /**
  28883. * Decodes an altar_data message from the specified reader or buffer, length delimited.
  28884. * @function decodeDelimited
  28885. * @memberof game.altar_data
  28886. * @static
  28887. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  28888. * @returns {game.altar_data} altar_data
  28889. * @throws {Error} If the payload is not a reader or valid buffer
  28890. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  28891. */
  28892. altar_data.decodeDelimited = function decodeDelimited(reader) {
  28893. if (!(reader instanceof $Reader))
  28894. reader = new $Reader(reader);
  28895. return this.decode(reader, reader.uint32());
  28896. };
  28897. /**
  28898. * Verifies an altar_data message.
  28899. * @function verify
  28900. * @memberof game.altar_data
  28901. * @static
  28902. * @param {Object.<string,*>} message Plain object to verify
  28903. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  28904. */
  28905. altar_data.verify = function verify(message) {
  28906. if (typeof message !== "object" || message === null)
  28907. return "object expected";
  28908. return null;
  28909. };
  28910. /**
  28911. * Creates an altar_data message from a plain object. Also converts values to their respective internal types.
  28912. * @function fromObject
  28913. * @memberof game.altar_data
  28914. * @static
  28915. * @param {Object.<string,*>} object Plain object
  28916. * @returns {game.altar_data} altar_data
  28917. */
  28918. altar_data.fromObject = function fromObject(object) {
  28919. if (object instanceof $root.game.altar_data)
  28920. return object;
  28921. return new $root.game.altar_data();
  28922. };
  28923. /**
  28924. * Creates a plain object from an altar_data message. Also converts values to other types if specified.
  28925. * @function toObject
  28926. * @memberof game.altar_data
  28927. * @static
  28928. * @param {game.altar_data} message altar_data
  28929. * @param {$protobuf.IConversionOptions} [options] Conversion options
  28930. * @returns {Object.<string,*>} Plain object
  28931. */
  28932. altar_data.toObject = function toObject() {
  28933. return {};
  28934. };
  28935. /**
  28936. * Converts this altar_data to JSON.
  28937. * @function toJSON
  28938. * @memberof game.altar_data
  28939. * @instance
  28940. * @returns {Object.<string,*>} JSON object
  28941. */
  28942. altar_data.prototype.toJSON = function toJSON() {
  28943. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  28944. };
  28945. return altar_data;
  28946. })();
  28947. game.altar_data_rsp = (function() {
  28948. /**
  28949. * Properties of an altar_data_rsp.
  28950. * @memberof game
  28951. * @interface Ialtar_data_rsp
  28952. * @property {number|Long|null} [errno] altar_data_rsp errno
  28953. * @property {Array.<string>|null} [baseList] altar_data_rsp baseList
  28954. * @property {Array.<game.Ialtar_info>|null} [list] altar_data_rsp list
  28955. * @property {number|Long|null} [buyNum] altar_data_rsp buyNum
  28956. * @property {number|Long|null} [equipFree] altar_data_rsp equipFree
  28957. * @property {number|Long|null} [heroFree] altar_data_rsp heroFree
  28958. */
  28959. /**
  28960. * Constructs a new altar_data_rsp.
  28961. * @memberof game
  28962. * @classdesc Represents an altar_data_rsp.
  28963. * @implements Ialtar_data_rsp
  28964. * @constructor
  28965. * @param {game.Ialtar_data_rsp=} [properties] Properties to set
  28966. */
  28967. function altar_data_rsp(properties) {
  28968. this.baseList = [];
  28969. this.list = [];
  28970. if (properties)
  28971. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  28972. if (properties[keys[i]] != null)
  28973. this[keys[i]] = properties[keys[i]];
  28974. }
  28975. /**
  28976. * altar_data_rsp errno.
  28977. * @member {number|Long} errno
  28978. * @memberof game.altar_data_rsp
  28979. * @instance
  28980. */
  28981. altar_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  28982. /**
  28983. * altar_data_rsp baseList.
  28984. * @member {Array.<string>} baseList
  28985. * @memberof game.altar_data_rsp
  28986. * @instance
  28987. */
  28988. altar_data_rsp.prototype.baseList = $util.emptyArray;
  28989. /**
  28990. * altar_data_rsp list.
  28991. * @member {Array.<game.Ialtar_info>} list
  28992. * @memberof game.altar_data_rsp
  28993. * @instance
  28994. */
  28995. altar_data_rsp.prototype.list = $util.emptyArray;
  28996. /**
  28997. * altar_data_rsp buyNum.
  28998. * @member {number|Long} buyNum
  28999. * @memberof game.altar_data_rsp
  29000. * @instance
  29001. */
  29002. altar_data_rsp.prototype.buyNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29003. /**
  29004. * altar_data_rsp equipFree.
  29005. * @member {number|Long} equipFree
  29006. * @memberof game.altar_data_rsp
  29007. * @instance
  29008. */
  29009. altar_data_rsp.prototype.equipFree = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29010. /**
  29011. * altar_data_rsp heroFree.
  29012. * @member {number|Long} heroFree
  29013. * @memberof game.altar_data_rsp
  29014. * @instance
  29015. */
  29016. altar_data_rsp.prototype.heroFree = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29017. /**
  29018. * Creates a new altar_data_rsp instance using the specified properties.
  29019. * @function create
  29020. * @memberof game.altar_data_rsp
  29021. * @static
  29022. * @param {game.Ialtar_data_rsp=} [properties] Properties to set
  29023. * @returns {game.altar_data_rsp} altar_data_rsp instance
  29024. */
  29025. altar_data_rsp.create = function create(properties) {
  29026. return new altar_data_rsp(properties);
  29027. };
  29028. /**
  29029. * Encodes the specified altar_data_rsp message. Does not implicitly {@link game.altar_data_rsp.verify|verify} messages.
  29030. * @function encode
  29031. * @memberof game.altar_data_rsp
  29032. * @static
  29033. * @param {game.Ialtar_data_rsp} message altar_data_rsp message or plain object to encode
  29034. * @param {$protobuf.Writer} [writer] Writer to encode to
  29035. * @returns {$protobuf.Writer} Writer
  29036. */
  29037. altar_data_rsp.encode = function encode(message, writer) {
  29038. if (!writer)
  29039. writer = $Writer.create();
  29040. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  29041. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  29042. if (message.baseList != null && message.baseList.length)
  29043. for (let i = 0; i < message.baseList.length; ++i)
  29044. writer.uint32(/* id 2, wireType 2 =*/18).string(message.baseList[i]);
  29045. if (message.list != null && message.list.length)
  29046. for (let i = 0; i < message.list.length; ++i)
  29047. $root.game.altar_info.encode(message.list[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  29048. if (message.buyNum != null && Object.hasOwnProperty.call(message, "buyNum"))
  29049. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.buyNum);
  29050. if (message.equipFree != null && Object.hasOwnProperty.call(message, "equipFree"))
  29051. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.equipFree);
  29052. if (message.heroFree != null && Object.hasOwnProperty.call(message, "heroFree"))
  29053. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.heroFree);
  29054. return writer;
  29055. };
  29056. /**
  29057. * Encodes the specified altar_data_rsp message, length delimited. Does not implicitly {@link game.altar_data_rsp.verify|verify} messages.
  29058. * @function encodeDelimited
  29059. * @memberof game.altar_data_rsp
  29060. * @static
  29061. * @param {game.Ialtar_data_rsp} message altar_data_rsp message or plain object to encode
  29062. * @param {$protobuf.Writer} [writer] Writer to encode to
  29063. * @returns {$protobuf.Writer} Writer
  29064. */
  29065. altar_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  29066. return this.encode(message, writer).ldelim();
  29067. };
  29068. /**
  29069. * Decodes an altar_data_rsp message from the specified reader or buffer.
  29070. * @function decode
  29071. * @memberof game.altar_data_rsp
  29072. * @static
  29073. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29074. * @param {number} [length] Message length if known beforehand
  29075. * @returns {game.altar_data_rsp} altar_data_rsp
  29076. * @throws {Error} If the payload is not a reader or valid buffer
  29077. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29078. */
  29079. altar_data_rsp.decode = function decode(reader, length) {
  29080. if (!(reader instanceof $Reader))
  29081. reader = $Reader.create(reader);
  29082. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_data_rsp();
  29083. while (reader.pos < end) {
  29084. let tag = reader.uint32();
  29085. switch (tag >>> 3) {
  29086. case 1:
  29087. message.errno = reader.int64();
  29088. break;
  29089. case 2:
  29090. if (!(message.baseList && message.baseList.length))
  29091. message.baseList = [];
  29092. message.baseList.push(reader.string());
  29093. break;
  29094. case 3:
  29095. if (!(message.list && message.list.length))
  29096. message.list = [];
  29097. message.list.push($root.game.altar_info.decode(reader, reader.uint32()));
  29098. break;
  29099. case 4:
  29100. message.buyNum = reader.int64();
  29101. break;
  29102. case 5:
  29103. message.equipFree = reader.int64();
  29104. break;
  29105. case 6:
  29106. message.heroFree = reader.int64();
  29107. break;
  29108. default:
  29109. reader.skipType(tag & 7);
  29110. break;
  29111. }
  29112. }
  29113. return message;
  29114. };
  29115. /**
  29116. * Decodes an altar_data_rsp message from the specified reader or buffer, length delimited.
  29117. * @function decodeDelimited
  29118. * @memberof game.altar_data_rsp
  29119. * @static
  29120. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29121. * @returns {game.altar_data_rsp} altar_data_rsp
  29122. * @throws {Error} If the payload is not a reader or valid buffer
  29123. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29124. */
  29125. altar_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  29126. if (!(reader instanceof $Reader))
  29127. reader = new $Reader(reader);
  29128. return this.decode(reader, reader.uint32());
  29129. };
  29130. /**
  29131. * Verifies an altar_data_rsp message.
  29132. * @function verify
  29133. * @memberof game.altar_data_rsp
  29134. * @static
  29135. * @param {Object.<string,*>} message Plain object to verify
  29136. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29137. */
  29138. altar_data_rsp.verify = function verify(message) {
  29139. if (typeof message !== "object" || message === null)
  29140. return "object expected";
  29141. if (message.errno != null && message.hasOwnProperty("errno"))
  29142. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  29143. return "errno: integer|Long expected";
  29144. if (message.baseList != null && message.hasOwnProperty("baseList")) {
  29145. if (!Array.isArray(message.baseList))
  29146. return "baseList: array expected";
  29147. for (let i = 0; i < message.baseList.length; ++i)
  29148. if (!$util.isString(message.baseList[i]))
  29149. return "baseList: string[] expected";
  29150. }
  29151. if (message.list != null && message.hasOwnProperty("list")) {
  29152. if (!Array.isArray(message.list))
  29153. return "list: array expected";
  29154. for (let i = 0; i < message.list.length; ++i) {
  29155. let error = $root.game.altar_info.verify(message.list[i]);
  29156. if (error)
  29157. return "list." + error;
  29158. }
  29159. }
  29160. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  29161. if (!$util.isInteger(message.buyNum) && !(message.buyNum && $util.isInteger(message.buyNum.low) && $util.isInteger(message.buyNum.high)))
  29162. return "buyNum: integer|Long expected";
  29163. if (message.equipFree != null && message.hasOwnProperty("equipFree"))
  29164. if (!$util.isInteger(message.equipFree) && !(message.equipFree && $util.isInteger(message.equipFree.low) && $util.isInteger(message.equipFree.high)))
  29165. return "equipFree: integer|Long expected";
  29166. if (message.heroFree != null && message.hasOwnProperty("heroFree"))
  29167. if (!$util.isInteger(message.heroFree) && !(message.heroFree && $util.isInteger(message.heroFree.low) && $util.isInteger(message.heroFree.high)))
  29168. return "heroFree: integer|Long expected";
  29169. return null;
  29170. };
  29171. /**
  29172. * Creates an altar_data_rsp message from a plain object. Also converts values to their respective internal types.
  29173. * @function fromObject
  29174. * @memberof game.altar_data_rsp
  29175. * @static
  29176. * @param {Object.<string,*>} object Plain object
  29177. * @returns {game.altar_data_rsp} altar_data_rsp
  29178. */
  29179. altar_data_rsp.fromObject = function fromObject(object) {
  29180. if (object instanceof $root.game.altar_data_rsp)
  29181. return object;
  29182. let message = new $root.game.altar_data_rsp();
  29183. if (object.errno != null)
  29184. if ($util.Long)
  29185. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  29186. else if (typeof object.errno === "string")
  29187. message.errno = parseInt(object.errno, 10);
  29188. else if (typeof object.errno === "number")
  29189. message.errno = object.errno;
  29190. else if (typeof object.errno === "object")
  29191. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  29192. if (object.baseList) {
  29193. if (!Array.isArray(object.baseList))
  29194. throw TypeError(".game.altar_data_rsp.baseList: array expected");
  29195. message.baseList = [];
  29196. for (let i = 0; i < object.baseList.length; ++i)
  29197. message.baseList[i] = String(object.baseList[i]);
  29198. }
  29199. if (object.list) {
  29200. if (!Array.isArray(object.list))
  29201. throw TypeError(".game.altar_data_rsp.list: array expected");
  29202. message.list = [];
  29203. for (let i = 0; i < object.list.length; ++i) {
  29204. if (typeof object.list[i] !== "object")
  29205. throw TypeError(".game.altar_data_rsp.list: object expected");
  29206. message.list[i] = $root.game.altar_info.fromObject(object.list[i]);
  29207. }
  29208. }
  29209. if (object.buyNum != null)
  29210. if ($util.Long)
  29211. (message.buyNum = $util.Long.fromValue(object.buyNum)).unsigned = false;
  29212. else if (typeof object.buyNum === "string")
  29213. message.buyNum = parseInt(object.buyNum, 10);
  29214. else if (typeof object.buyNum === "number")
  29215. message.buyNum = object.buyNum;
  29216. else if (typeof object.buyNum === "object")
  29217. message.buyNum = new $util.LongBits(object.buyNum.low >>> 0, object.buyNum.high >>> 0).toNumber();
  29218. if (object.equipFree != null)
  29219. if ($util.Long)
  29220. (message.equipFree = $util.Long.fromValue(object.equipFree)).unsigned = false;
  29221. else if (typeof object.equipFree === "string")
  29222. message.equipFree = parseInt(object.equipFree, 10);
  29223. else if (typeof object.equipFree === "number")
  29224. message.equipFree = object.equipFree;
  29225. else if (typeof object.equipFree === "object")
  29226. message.equipFree = new $util.LongBits(object.equipFree.low >>> 0, object.equipFree.high >>> 0).toNumber();
  29227. if (object.heroFree != null)
  29228. if ($util.Long)
  29229. (message.heroFree = $util.Long.fromValue(object.heroFree)).unsigned = false;
  29230. else if (typeof object.heroFree === "string")
  29231. message.heroFree = parseInt(object.heroFree, 10);
  29232. else if (typeof object.heroFree === "number")
  29233. message.heroFree = object.heroFree;
  29234. else if (typeof object.heroFree === "object")
  29235. message.heroFree = new $util.LongBits(object.heroFree.low >>> 0, object.heroFree.high >>> 0).toNumber();
  29236. return message;
  29237. };
  29238. /**
  29239. * Creates a plain object from an altar_data_rsp message. Also converts values to other types if specified.
  29240. * @function toObject
  29241. * @memberof game.altar_data_rsp
  29242. * @static
  29243. * @param {game.altar_data_rsp} message altar_data_rsp
  29244. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29245. * @returns {Object.<string,*>} Plain object
  29246. */
  29247. altar_data_rsp.toObject = function toObject(message, options) {
  29248. if (!options)
  29249. options = {};
  29250. let object = {};
  29251. if (options.arrays || options.defaults) {
  29252. object.baseList = [];
  29253. object.list = [];
  29254. }
  29255. if (options.defaults) {
  29256. if ($util.Long) {
  29257. let long = new $util.Long(0, 0, false);
  29258. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29259. } else
  29260. object.errno = options.longs === String ? "0" : 0;
  29261. if ($util.Long) {
  29262. let long = new $util.Long(0, 0, false);
  29263. object.buyNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29264. } else
  29265. object.buyNum = options.longs === String ? "0" : 0;
  29266. if ($util.Long) {
  29267. let long = new $util.Long(0, 0, false);
  29268. object.equipFree = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29269. } else
  29270. object.equipFree = options.longs === String ? "0" : 0;
  29271. if ($util.Long) {
  29272. let long = new $util.Long(0, 0, false);
  29273. object.heroFree = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29274. } else
  29275. object.heroFree = options.longs === String ? "0" : 0;
  29276. }
  29277. if (message.errno != null && message.hasOwnProperty("errno"))
  29278. if (typeof message.errno === "number")
  29279. object.errno = options.longs === String ? String(message.errno) : message.errno;
  29280. else
  29281. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  29282. if (message.baseList && message.baseList.length) {
  29283. object.baseList = [];
  29284. for (let j = 0; j < message.baseList.length; ++j)
  29285. object.baseList[j] = message.baseList[j];
  29286. }
  29287. if (message.list && message.list.length) {
  29288. object.list = [];
  29289. for (let j = 0; j < message.list.length; ++j)
  29290. object.list[j] = $root.game.altar_info.toObject(message.list[j], options);
  29291. }
  29292. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  29293. if (typeof message.buyNum === "number")
  29294. object.buyNum = options.longs === String ? String(message.buyNum) : message.buyNum;
  29295. else
  29296. object.buyNum = options.longs === String ? $util.Long.prototype.toString.call(message.buyNum) : options.longs === Number ? new $util.LongBits(message.buyNum.low >>> 0, message.buyNum.high >>> 0).toNumber() : message.buyNum;
  29297. if (message.equipFree != null && message.hasOwnProperty("equipFree"))
  29298. if (typeof message.equipFree === "number")
  29299. object.equipFree = options.longs === String ? String(message.equipFree) : message.equipFree;
  29300. else
  29301. object.equipFree = options.longs === String ? $util.Long.prototype.toString.call(message.equipFree) : options.longs === Number ? new $util.LongBits(message.equipFree.low >>> 0, message.equipFree.high >>> 0).toNumber() : message.equipFree;
  29302. if (message.heroFree != null && message.hasOwnProperty("heroFree"))
  29303. if (typeof message.heroFree === "number")
  29304. object.heroFree = options.longs === String ? String(message.heroFree) : message.heroFree;
  29305. else
  29306. object.heroFree = options.longs === String ? $util.Long.prototype.toString.call(message.heroFree) : options.longs === Number ? new $util.LongBits(message.heroFree.low >>> 0, message.heroFree.high >>> 0).toNumber() : message.heroFree;
  29307. return object;
  29308. };
  29309. /**
  29310. * Converts this altar_data_rsp to JSON.
  29311. * @function toJSON
  29312. * @memberof game.altar_data_rsp
  29313. * @instance
  29314. * @returns {Object.<string,*>} JSON object
  29315. */
  29316. altar_data_rsp.prototype.toJSON = function toJSON() {
  29317. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29318. };
  29319. return altar_data_rsp;
  29320. })();
  29321. game.altar_battle = (function() {
  29322. /**
  29323. * Properties of an altar_battle.
  29324. * @memberof game
  29325. * @interface Ialtar_battle
  29326. * @property {number|Long|null} [pos] altar_battle pos
  29327. * @property {string|null} [sid] altar_battle sid
  29328. */
  29329. /**
  29330. * Constructs a new altar_battle.
  29331. * @memberof game
  29332. * @classdesc Represents an altar_battle.
  29333. * @implements Ialtar_battle
  29334. * @constructor
  29335. * @param {game.Ialtar_battle=} [properties] Properties to set
  29336. */
  29337. function altar_battle(properties) {
  29338. if (properties)
  29339. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  29340. if (properties[keys[i]] != null)
  29341. this[keys[i]] = properties[keys[i]];
  29342. }
  29343. /**
  29344. * altar_battle pos.
  29345. * @member {number|Long} pos
  29346. * @memberof game.altar_battle
  29347. * @instance
  29348. */
  29349. altar_battle.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29350. /**
  29351. * altar_battle sid.
  29352. * @member {string} sid
  29353. * @memberof game.altar_battle
  29354. * @instance
  29355. */
  29356. altar_battle.prototype.sid = "";
  29357. /**
  29358. * Creates a new altar_battle instance using the specified properties.
  29359. * @function create
  29360. * @memberof game.altar_battle
  29361. * @static
  29362. * @param {game.Ialtar_battle=} [properties] Properties to set
  29363. * @returns {game.altar_battle} altar_battle instance
  29364. */
  29365. altar_battle.create = function create(properties) {
  29366. return new altar_battle(properties);
  29367. };
  29368. /**
  29369. * Encodes the specified altar_battle message. Does not implicitly {@link game.altar_battle.verify|verify} messages.
  29370. * @function encode
  29371. * @memberof game.altar_battle
  29372. * @static
  29373. * @param {game.Ialtar_battle} message altar_battle message or plain object to encode
  29374. * @param {$protobuf.Writer} [writer] Writer to encode to
  29375. * @returns {$protobuf.Writer} Writer
  29376. */
  29377. altar_battle.encode = function encode(message, writer) {
  29378. if (!writer)
  29379. writer = $Writer.create();
  29380. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  29381. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  29382. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  29383. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  29384. return writer;
  29385. };
  29386. /**
  29387. * Encodes the specified altar_battle message, length delimited. Does not implicitly {@link game.altar_battle.verify|verify} messages.
  29388. * @function encodeDelimited
  29389. * @memberof game.altar_battle
  29390. * @static
  29391. * @param {game.Ialtar_battle} message altar_battle message or plain object to encode
  29392. * @param {$protobuf.Writer} [writer] Writer to encode to
  29393. * @returns {$protobuf.Writer} Writer
  29394. */
  29395. altar_battle.encodeDelimited = function encodeDelimited(message, writer) {
  29396. return this.encode(message, writer).ldelim();
  29397. };
  29398. /**
  29399. * Decodes an altar_battle message from the specified reader or buffer.
  29400. * @function decode
  29401. * @memberof game.altar_battle
  29402. * @static
  29403. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29404. * @param {number} [length] Message length if known beforehand
  29405. * @returns {game.altar_battle} altar_battle
  29406. * @throws {Error} If the payload is not a reader or valid buffer
  29407. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29408. */
  29409. altar_battle.decode = function decode(reader, length) {
  29410. if (!(reader instanceof $Reader))
  29411. reader = $Reader.create(reader);
  29412. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_battle();
  29413. while (reader.pos < end) {
  29414. let tag = reader.uint32();
  29415. switch (tag >>> 3) {
  29416. case 1:
  29417. message.pos = reader.int64();
  29418. break;
  29419. case 2:
  29420. message.sid = reader.string();
  29421. break;
  29422. default:
  29423. reader.skipType(tag & 7);
  29424. break;
  29425. }
  29426. }
  29427. return message;
  29428. };
  29429. /**
  29430. * Decodes an altar_battle message from the specified reader or buffer, length delimited.
  29431. * @function decodeDelimited
  29432. * @memberof game.altar_battle
  29433. * @static
  29434. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29435. * @returns {game.altar_battle} altar_battle
  29436. * @throws {Error} If the payload is not a reader or valid buffer
  29437. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29438. */
  29439. altar_battle.decodeDelimited = function decodeDelimited(reader) {
  29440. if (!(reader instanceof $Reader))
  29441. reader = new $Reader(reader);
  29442. return this.decode(reader, reader.uint32());
  29443. };
  29444. /**
  29445. * Verifies an altar_battle message.
  29446. * @function verify
  29447. * @memberof game.altar_battle
  29448. * @static
  29449. * @param {Object.<string,*>} message Plain object to verify
  29450. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29451. */
  29452. altar_battle.verify = function verify(message) {
  29453. if (typeof message !== "object" || message === null)
  29454. return "object expected";
  29455. if (message.pos != null && message.hasOwnProperty("pos"))
  29456. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  29457. return "pos: integer|Long expected";
  29458. if (message.sid != null && message.hasOwnProperty("sid"))
  29459. if (!$util.isString(message.sid))
  29460. return "sid: string expected";
  29461. return null;
  29462. };
  29463. /**
  29464. * Creates an altar_battle message from a plain object. Also converts values to their respective internal types.
  29465. * @function fromObject
  29466. * @memberof game.altar_battle
  29467. * @static
  29468. * @param {Object.<string,*>} object Plain object
  29469. * @returns {game.altar_battle} altar_battle
  29470. */
  29471. altar_battle.fromObject = function fromObject(object) {
  29472. if (object instanceof $root.game.altar_battle)
  29473. return object;
  29474. let message = new $root.game.altar_battle();
  29475. if (object.pos != null)
  29476. if ($util.Long)
  29477. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  29478. else if (typeof object.pos === "string")
  29479. message.pos = parseInt(object.pos, 10);
  29480. else if (typeof object.pos === "number")
  29481. message.pos = object.pos;
  29482. else if (typeof object.pos === "object")
  29483. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  29484. if (object.sid != null)
  29485. message.sid = String(object.sid);
  29486. return message;
  29487. };
  29488. /**
  29489. * Creates a plain object from an altar_battle message. Also converts values to other types if specified.
  29490. * @function toObject
  29491. * @memberof game.altar_battle
  29492. * @static
  29493. * @param {game.altar_battle} message altar_battle
  29494. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29495. * @returns {Object.<string,*>} Plain object
  29496. */
  29497. altar_battle.toObject = function toObject(message, options) {
  29498. if (!options)
  29499. options = {};
  29500. let object = {};
  29501. if (options.defaults) {
  29502. if ($util.Long) {
  29503. let long = new $util.Long(0, 0, false);
  29504. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29505. } else
  29506. object.pos = options.longs === String ? "0" : 0;
  29507. object.sid = "";
  29508. }
  29509. if (message.pos != null && message.hasOwnProperty("pos"))
  29510. if (typeof message.pos === "number")
  29511. object.pos = options.longs === String ? String(message.pos) : message.pos;
  29512. else
  29513. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  29514. if (message.sid != null && message.hasOwnProperty("sid"))
  29515. object.sid = message.sid;
  29516. return object;
  29517. };
  29518. /**
  29519. * Converts this altar_battle to JSON.
  29520. * @function toJSON
  29521. * @memberof game.altar_battle
  29522. * @instance
  29523. * @returns {Object.<string,*>} JSON object
  29524. */
  29525. altar_battle.prototype.toJSON = function toJSON() {
  29526. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29527. };
  29528. return altar_battle;
  29529. })();
  29530. game.altar_battle_rsp = (function() {
  29531. /**
  29532. * Properties of an altar_battle_rsp.
  29533. * @memberof game
  29534. * @interface Ialtar_battle_rsp
  29535. * @property {number|Long|null} [errno] altar_battle_rsp errno
  29536. * @property {number|Long|null} [pos] altar_battle_rsp pos
  29537. * @property {game.Ialtar_info|null} [data] altar_battle_rsp data
  29538. */
  29539. /**
  29540. * Constructs a new altar_battle_rsp.
  29541. * @memberof game
  29542. * @classdesc Represents an altar_battle_rsp.
  29543. * @implements Ialtar_battle_rsp
  29544. * @constructor
  29545. * @param {game.Ialtar_battle_rsp=} [properties] Properties to set
  29546. */
  29547. function altar_battle_rsp(properties) {
  29548. if (properties)
  29549. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  29550. if (properties[keys[i]] != null)
  29551. this[keys[i]] = properties[keys[i]];
  29552. }
  29553. /**
  29554. * altar_battle_rsp errno.
  29555. * @member {number|Long} errno
  29556. * @memberof game.altar_battle_rsp
  29557. * @instance
  29558. */
  29559. altar_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29560. /**
  29561. * altar_battle_rsp pos.
  29562. * @member {number|Long} pos
  29563. * @memberof game.altar_battle_rsp
  29564. * @instance
  29565. */
  29566. altar_battle_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29567. /**
  29568. * altar_battle_rsp data.
  29569. * @member {game.Ialtar_info|null|undefined} data
  29570. * @memberof game.altar_battle_rsp
  29571. * @instance
  29572. */
  29573. altar_battle_rsp.prototype.data = null;
  29574. /**
  29575. * Creates a new altar_battle_rsp instance using the specified properties.
  29576. * @function create
  29577. * @memberof game.altar_battle_rsp
  29578. * @static
  29579. * @param {game.Ialtar_battle_rsp=} [properties] Properties to set
  29580. * @returns {game.altar_battle_rsp} altar_battle_rsp instance
  29581. */
  29582. altar_battle_rsp.create = function create(properties) {
  29583. return new altar_battle_rsp(properties);
  29584. };
  29585. /**
  29586. * Encodes the specified altar_battle_rsp message. Does not implicitly {@link game.altar_battle_rsp.verify|verify} messages.
  29587. * @function encode
  29588. * @memberof game.altar_battle_rsp
  29589. * @static
  29590. * @param {game.Ialtar_battle_rsp} message altar_battle_rsp message or plain object to encode
  29591. * @param {$protobuf.Writer} [writer] Writer to encode to
  29592. * @returns {$protobuf.Writer} Writer
  29593. */
  29594. altar_battle_rsp.encode = function encode(message, writer) {
  29595. if (!writer)
  29596. writer = $Writer.create();
  29597. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  29598. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  29599. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  29600. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  29601. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  29602. $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  29603. return writer;
  29604. };
  29605. /**
  29606. * Encodes the specified altar_battle_rsp message, length delimited. Does not implicitly {@link game.altar_battle_rsp.verify|verify} messages.
  29607. * @function encodeDelimited
  29608. * @memberof game.altar_battle_rsp
  29609. * @static
  29610. * @param {game.Ialtar_battle_rsp} message altar_battle_rsp message or plain object to encode
  29611. * @param {$protobuf.Writer} [writer] Writer to encode to
  29612. * @returns {$protobuf.Writer} Writer
  29613. */
  29614. altar_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  29615. return this.encode(message, writer).ldelim();
  29616. };
  29617. /**
  29618. * Decodes an altar_battle_rsp message from the specified reader or buffer.
  29619. * @function decode
  29620. * @memberof game.altar_battle_rsp
  29621. * @static
  29622. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29623. * @param {number} [length] Message length if known beforehand
  29624. * @returns {game.altar_battle_rsp} altar_battle_rsp
  29625. * @throws {Error} If the payload is not a reader or valid buffer
  29626. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29627. */
  29628. altar_battle_rsp.decode = function decode(reader, length) {
  29629. if (!(reader instanceof $Reader))
  29630. reader = $Reader.create(reader);
  29631. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_battle_rsp();
  29632. while (reader.pos < end) {
  29633. let tag = reader.uint32();
  29634. switch (tag >>> 3) {
  29635. case 1:
  29636. message.errno = reader.int64();
  29637. break;
  29638. case 2:
  29639. message.pos = reader.int64();
  29640. break;
  29641. case 3:
  29642. message.data = $root.game.altar_info.decode(reader, reader.uint32());
  29643. break;
  29644. default:
  29645. reader.skipType(tag & 7);
  29646. break;
  29647. }
  29648. }
  29649. return message;
  29650. };
  29651. /**
  29652. * Decodes an altar_battle_rsp message from the specified reader or buffer, length delimited.
  29653. * @function decodeDelimited
  29654. * @memberof game.altar_battle_rsp
  29655. * @static
  29656. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29657. * @returns {game.altar_battle_rsp} altar_battle_rsp
  29658. * @throws {Error} If the payload is not a reader or valid buffer
  29659. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29660. */
  29661. altar_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  29662. if (!(reader instanceof $Reader))
  29663. reader = new $Reader(reader);
  29664. return this.decode(reader, reader.uint32());
  29665. };
  29666. /**
  29667. * Verifies an altar_battle_rsp message.
  29668. * @function verify
  29669. * @memberof game.altar_battle_rsp
  29670. * @static
  29671. * @param {Object.<string,*>} message Plain object to verify
  29672. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29673. */
  29674. altar_battle_rsp.verify = function verify(message) {
  29675. if (typeof message !== "object" || message === null)
  29676. return "object expected";
  29677. if (message.errno != null && message.hasOwnProperty("errno"))
  29678. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  29679. return "errno: integer|Long expected";
  29680. if (message.pos != null && message.hasOwnProperty("pos"))
  29681. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  29682. return "pos: integer|Long expected";
  29683. if (message.data != null && message.hasOwnProperty("data")) {
  29684. let error = $root.game.altar_info.verify(message.data);
  29685. if (error)
  29686. return "data." + error;
  29687. }
  29688. return null;
  29689. };
  29690. /**
  29691. * Creates an altar_battle_rsp message from a plain object. Also converts values to their respective internal types.
  29692. * @function fromObject
  29693. * @memberof game.altar_battle_rsp
  29694. * @static
  29695. * @param {Object.<string,*>} object Plain object
  29696. * @returns {game.altar_battle_rsp} altar_battle_rsp
  29697. */
  29698. altar_battle_rsp.fromObject = function fromObject(object) {
  29699. if (object instanceof $root.game.altar_battle_rsp)
  29700. return object;
  29701. let message = new $root.game.altar_battle_rsp();
  29702. if (object.errno != null)
  29703. if ($util.Long)
  29704. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  29705. else if (typeof object.errno === "string")
  29706. message.errno = parseInt(object.errno, 10);
  29707. else if (typeof object.errno === "number")
  29708. message.errno = object.errno;
  29709. else if (typeof object.errno === "object")
  29710. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  29711. if (object.pos != null)
  29712. if ($util.Long)
  29713. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  29714. else if (typeof object.pos === "string")
  29715. message.pos = parseInt(object.pos, 10);
  29716. else if (typeof object.pos === "number")
  29717. message.pos = object.pos;
  29718. else if (typeof object.pos === "object")
  29719. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  29720. if (object.data != null) {
  29721. if (typeof object.data !== "object")
  29722. throw TypeError(".game.altar_battle_rsp.data: object expected");
  29723. message.data = $root.game.altar_info.fromObject(object.data);
  29724. }
  29725. return message;
  29726. };
  29727. /**
  29728. * Creates a plain object from an altar_battle_rsp message. Also converts values to other types if specified.
  29729. * @function toObject
  29730. * @memberof game.altar_battle_rsp
  29731. * @static
  29732. * @param {game.altar_battle_rsp} message altar_battle_rsp
  29733. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29734. * @returns {Object.<string,*>} Plain object
  29735. */
  29736. altar_battle_rsp.toObject = function toObject(message, options) {
  29737. if (!options)
  29738. options = {};
  29739. let object = {};
  29740. if (options.defaults) {
  29741. if ($util.Long) {
  29742. let long = new $util.Long(0, 0, false);
  29743. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29744. } else
  29745. object.errno = options.longs === String ? "0" : 0;
  29746. if ($util.Long) {
  29747. let long = new $util.Long(0, 0, false);
  29748. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29749. } else
  29750. object.pos = options.longs === String ? "0" : 0;
  29751. object.data = null;
  29752. }
  29753. if (message.errno != null && message.hasOwnProperty("errno"))
  29754. if (typeof message.errno === "number")
  29755. object.errno = options.longs === String ? String(message.errno) : message.errno;
  29756. else
  29757. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  29758. if (message.pos != null && message.hasOwnProperty("pos"))
  29759. if (typeof message.pos === "number")
  29760. object.pos = options.longs === String ? String(message.pos) : message.pos;
  29761. else
  29762. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  29763. if (message.data != null && message.hasOwnProperty("data"))
  29764. object.data = $root.game.altar_info.toObject(message.data, options);
  29765. return object;
  29766. };
  29767. /**
  29768. * Converts this altar_battle_rsp to JSON.
  29769. * @function toJSON
  29770. * @memberof game.altar_battle_rsp
  29771. * @instance
  29772. * @returns {Object.<string,*>} JSON object
  29773. */
  29774. altar_battle_rsp.prototype.toJSON = function toJSON() {
  29775. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29776. };
  29777. return altar_battle_rsp;
  29778. })();
  29779. game.altar_exchange = (function() {
  29780. /**
  29781. * Properties of an altar_exchange.
  29782. * @memberof game
  29783. * @interface Ialtar_exchange
  29784. * @property {number|Long|null} [type] altar_exchange type
  29785. * @property {string|null} [sid] altar_exchange sid
  29786. */
  29787. /**
  29788. * Constructs a new altar_exchange.
  29789. * @memberof game
  29790. * @classdesc Represents an altar_exchange.
  29791. * @implements Ialtar_exchange
  29792. * @constructor
  29793. * @param {game.Ialtar_exchange=} [properties] Properties to set
  29794. */
  29795. function altar_exchange(properties) {
  29796. if (properties)
  29797. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  29798. if (properties[keys[i]] != null)
  29799. this[keys[i]] = properties[keys[i]];
  29800. }
  29801. /**
  29802. * altar_exchange type.
  29803. * @member {number|Long} type
  29804. * @memberof game.altar_exchange
  29805. * @instance
  29806. */
  29807. altar_exchange.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  29808. /**
  29809. * altar_exchange sid.
  29810. * @member {string} sid
  29811. * @memberof game.altar_exchange
  29812. * @instance
  29813. */
  29814. altar_exchange.prototype.sid = "";
  29815. /**
  29816. * Creates a new altar_exchange instance using the specified properties.
  29817. * @function create
  29818. * @memberof game.altar_exchange
  29819. * @static
  29820. * @param {game.Ialtar_exchange=} [properties] Properties to set
  29821. * @returns {game.altar_exchange} altar_exchange instance
  29822. */
  29823. altar_exchange.create = function create(properties) {
  29824. return new altar_exchange(properties);
  29825. };
  29826. /**
  29827. * Encodes the specified altar_exchange message. Does not implicitly {@link game.altar_exchange.verify|verify} messages.
  29828. * @function encode
  29829. * @memberof game.altar_exchange
  29830. * @static
  29831. * @param {game.Ialtar_exchange} message altar_exchange message or plain object to encode
  29832. * @param {$protobuf.Writer} [writer] Writer to encode to
  29833. * @returns {$protobuf.Writer} Writer
  29834. */
  29835. altar_exchange.encode = function encode(message, writer) {
  29836. if (!writer)
  29837. writer = $Writer.create();
  29838. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  29839. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  29840. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  29841. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  29842. return writer;
  29843. };
  29844. /**
  29845. * Encodes the specified altar_exchange message, length delimited. Does not implicitly {@link game.altar_exchange.verify|verify} messages.
  29846. * @function encodeDelimited
  29847. * @memberof game.altar_exchange
  29848. * @static
  29849. * @param {game.Ialtar_exchange} message altar_exchange message or plain object to encode
  29850. * @param {$protobuf.Writer} [writer] Writer to encode to
  29851. * @returns {$protobuf.Writer} Writer
  29852. */
  29853. altar_exchange.encodeDelimited = function encodeDelimited(message, writer) {
  29854. return this.encode(message, writer).ldelim();
  29855. };
  29856. /**
  29857. * Decodes an altar_exchange message from the specified reader or buffer.
  29858. * @function decode
  29859. * @memberof game.altar_exchange
  29860. * @static
  29861. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29862. * @param {number} [length] Message length if known beforehand
  29863. * @returns {game.altar_exchange} altar_exchange
  29864. * @throws {Error} If the payload is not a reader or valid buffer
  29865. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29866. */
  29867. altar_exchange.decode = function decode(reader, length) {
  29868. if (!(reader instanceof $Reader))
  29869. reader = $Reader.create(reader);
  29870. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange();
  29871. while (reader.pos < end) {
  29872. let tag = reader.uint32();
  29873. switch (tag >>> 3) {
  29874. case 1:
  29875. message.type = reader.int64();
  29876. break;
  29877. case 2:
  29878. message.sid = reader.string();
  29879. break;
  29880. default:
  29881. reader.skipType(tag & 7);
  29882. break;
  29883. }
  29884. }
  29885. return message;
  29886. };
  29887. /**
  29888. * Decodes an altar_exchange message from the specified reader or buffer, length delimited.
  29889. * @function decodeDelimited
  29890. * @memberof game.altar_exchange
  29891. * @static
  29892. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  29893. * @returns {game.altar_exchange} altar_exchange
  29894. * @throws {Error} If the payload is not a reader or valid buffer
  29895. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  29896. */
  29897. altar_exchange.decodeDelimited = function decodeDelimited(reader) {
  29898. if (!(reader instanceof $Reader))
  29899. reader = new $Reader(reader);
  29900. return this.decode(reader, reader.uint32());
  29901. };
  29902. /**
  29903. * Verifies an altar_exchange message.
  29904. * @function verify
  29905. * @memberof game.altar_exchange
  29906. * @static
  29907. * @param {Object.<string,*>} message Plain object to verify
  29908. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  29909. */
  29910. altar_exchange.verify = function verify(message) {
  29911. if (typeof message !== "object" || message === null)
  29912. return "object expected";
  29913. if (message.type != null && message.hasOwnProperty("type"))
  29914. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  29915. return "type: integer|Long expected";
  29916. if (message.sid != null && message.hasOwnProperty("sid"))
  29917. if (!$util.isString(message.sid))
  29918. return "sid: string expected";
  29919. return null;
  29920. };
  29921. /**
  29922. * Creates an altar_exchange message from a plain object. Also converts values to their respective internal types.
  29923. * @function fromObject
  29924. * @memberof game.altar_exchange
  29925. * @static
  29926. * @param {Object.<string,*>} object Plain object
  29927. * @returns {game.altar_exchange} altar_exchange
  29928. */
  29929. altar_exchange.fromObject = function fromObject(object) {
  29930. if (object instanceof $root.game.altar_exchange)
  29931. return object;
  29932. let message = new $root.game.altar_exchange();
  29933. if (object.type != null)
  29934. if ($util.Long)
  29935. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  29936. else if (typeof object.type === "string")
  29937. message.type = parseInt(object.type, 10);
  29938. else if (typeof object.type === "number")
  29939. message.type = object.type;
  29940. else if (typeof object.type === "object")
  29941. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  29942. if (object.sid != null)
  29943. message.sid = String(object.sid);
  29944. return message;
  29945. };
  29946. /**
  29947. * Creates a plain object from an altar_exchange message. Also converts values to other types if specified.
  29948. * @function toObject
  29949. * @memberof game.altar_exchange
  29950. * @static
  29951. * @param {game.altar_exchange} message altar_exchange
  29952. * @param {$protobuf.IConversionOptions} [options] Conversion options
  29953. * @returns {Object.<string,*>} Plain object
  29954. */
  29955. altar_exchange.toObject = function toObject(message, options) {
  29956. if (!options)
  29957. options = {};
  29958. let object = {};
  29959. if (options.defaults) {
  29960. if ($util.Long) {
  29961. let long = new $util.Long(0, 0, false);
  29962. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  29963. } else
  29964. object.type = options.longs === String ? "0" : 0;
  29965. object.sid = "";
  29966. }
  29967. if (message.type != null && message.hasOwnProperty("type"))
  29968. if (typeof message.type === "number")
  29969. object.type = options.longs === String ? String(message.type) : message.type;
  29970. else
  29971. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  29972. if (message.sid != null && message.hasOwnProperty("sid"))
  29973. object.sid = message.sid;
  29974. return object;
  29975. };
  29976. /**
  29977. * Converts this altar_exchange to JSON.
  29978. * @function toJSON
  29979. * @memberof game.altar_exchange
  29980. * @instance
  29981. * @returns {Object.<string,*>} JSON object
  29982. */
  29983. altar_exchange.prototype.toJSON = function toJSON() {
  29984. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  29985. };
  29986. return altar_exchange;
  29987. })();
  29988. game.altar_exchange_rsp = (function() {
  29989. /**
  29990. * Properties of an altar_exchange_rsp.
  29991. * @memberof game
  29992. * @interface Ialtar_exchange_rsp
  29993. * @property {number|Long|null} [errno] altar_exchange_rsp errno
  29994. * @property {number|Long|null} [type] altar_exchange_rsp type
  29995. * @property {string|null} [sid] altar_exchange_rsp sid
  29996. * @property {number|Long|null} [id] altar_exchange_rsp id
  29997. */
  29998. /**
  29999. * Constructs a new altar_exchange_rsp.
  30000. * @memberof game
  30001. * @classdesc Represents an altar_exchange_rsp.
  30002. * @implements Ialtar_exchange_rsp
  30003. * @constructor
  30004. * @param {game.Ialtar_exchange_rsp=} [properties] Properties to set
  30005. */
  30006. function altar_exchange_rsp(properties) {
  30007. if (properties)
  30008. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30009. if (properties[keys[i]] != null)
  30010. this[keys[i]] = properties[keys[i]];
  30011. }
  30012. /**
  30013. * altar_exchange_rsp errno.
  30014. * @member {number|Long} errno
  30015. * @memberof game.altar_exchange_rsp
  30016. * @instance
  30017. */
  30018. altar_exchange_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30019. /**
  30020. * altar_exchange_rsp type.
  30021. * @member {number|Long} type
  30022. * @memberof game.altar_exchange_rsp
  30023. * @instance
  30024. */
  30025. altar_exchange_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30026. /**
  30027. * altar_exchange_rsp sid.
  30028. * @member {string} sid
  30029. * @memberof game.altar_exchange_rsp
  30030. * @instance
  30031. */
  30032. altar_exchange_rsp.prototype.sid = "";
  30033. /**
  30034. * altar_exchange_rsp id.
  30035. * @member {number|Long} id
  30036. * @memberof game.altar_exchange_rsp
  30037. * @instance
  30038. */
  30039. altar_exchange_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30040. /**
  30041. * Creates a new altar_exchange_rsp instance using the specified properties.
  30042. * @function create
  30043. * @memberof game.altar_exchange_rsp
  30044. * @static
  30045. * @param {game.Ialtar_exchange_rsp=} [properties] Properties to set
  30046. * @returns {game.altar_exchange_rsp} altar_exchange_rsp instance
  30047. */
  30048. altar_exchange_rsp.create = function create(properties) {
  30049. return new altar_exchange_rsp(properties);
  30050. };
  30051. /**
  30052. * Encodes the specified altar_exchange_rsp message. Does not implicitly {@link game.altar_exchange_rsp.verify|verify} messages.
  30053. * @function encode
  30054. * @memberof game.altar_exchange_rsp
  30055. * @static
  30056. * @param {game.Ialtar_exchange_rsp} message altar_exchange_rsp message or plain object to encode
  30057. * @param {$protobuf.Writer} [writer] Writer to encode to
  30058. * @returns {$protobuf.Writer} Writer
  30059. */
  30060. altar_exchange_rsp.encode = function encode(message, writer) {
  30061. if (!writer)
  30062. writer = $Writer.create();
  30063. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  30064. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  30065. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  30066. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  30067. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  30068. writer.uint32(/* id 3, wireType 2 =*/26).string(message.sid);
  30069. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  30070. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.id);
  30071. return writer;
  30072. };
  30073. /**
  30074. * Encodes the specified altar_exchange_rsp message, length delimited. Does not implicitly {@link game.altar_exchange_rsp.verify|verify} messages.
  30075. * @function encodeDelimited
  30076. * @memberof game.altar_exchange_rsp
  30077. * @static
  30078. * @param {game.Ialtar_exchange_rsp} message altar_exchange_rsp message or plain object to encode
  30079. * @param {$protobuf.Writer} [writer] Writer to encode to
  30080. * @returns {$protobuf.Writer} Writer
  30081. */
  30082. altar_exchange_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  30083. return this.encode(message, writer).ldelim();
  30084. };
  30085. /**
  30086. * Decodes an altar_exchange_rsp message from the specified reader or buffer.
  30087. * @function decode
  30088. * @memberof game.altar_exchange_rsp
  30089. * @static
  30090. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30091. * @param {number} [length] Message length if known beforehand
  30092. * @returns {game.altar_exchange_rsp} altar_exchange_rsp
  30093. * @throws {Error} If the payload is not a reader or valid buffer
  30094. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30095. */
  30096. altar_exchange_rsp.decode = function decode(reader, length) {
  30097. if (!(reader instanceof $Reader))
  30098. reader = $Reader.create(reader);
  30099. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_rsp();
  30100. while (reader.pos < end) {
  30101. let tag = reader.uint32();
  30102. switch (tag >>> 3) {
  30103. case 1:
  30104. message.errno = reader.int64();
  30105. break;
  30106. case 2:
  30107. message.type = reader.int64();
  30108. break;
  30109. case 3:
  30110. message.sid = reader.string();
  30111. break;
  30112. case 4:
  30113. message.id = reader.int64();
  30114. break;
  30115. default:
  30116. reader.skipType(tag & 7);
  30117. break;
  30118. }
  30119. }
  30120. return message;
  30121. };
  30122. /**
  30123. * Decodes an altar_exchange_rsp message from the specified reader or buffer, length delimited.
  30124. * @function decodeDelimited
  30125. * @memberof game.altar_exchange_rsp
  30126. * @static
  30127. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30128. * @returns {game.altar_exchange_rsp} altar_exchange_rsp
  30129. * @throws {Error} If the payload is not a reader or valid buffer
  30130. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30131. */
  30132. altar_exchange_rsp.decodeDelimited = function decodeDelimited(reader) {
  30133. if (!(reader instanceof $Reader))
  30134. reader = new $Reader(reader);
  30135. return this.decode(reader, reader.uint32());
  30136. };
  30137. /**
  30138. * Verifies an altar_exchange_rsp message.
  30139. * @function verify
  30140. * @memberof game.altar_exchange_rsp
  30141. * @static
  30142. * @param {Object.<string,*>} message Plain object to verify
  30143. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30144. */
  30145. altar_exchange_rsp.verify = function verify(message) {
  30146. if (typeof message !== "object" || message === null)
  30147. return "object expected";
  30148. if (message.errno != null && message.hasOwnProperty("errno"))
  30149. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  30150. return "errno: integer|Long expected";
  30151. if (message.type != null && message.hasOwnProperty("type"))
  30152. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  30153. return "type: integer|Long expected";
  30154. if (message.sid != null && message.hasOwnProperty("sid"))
  30155. if (!$util.isString(message.sid))
  30156. return "sid: string expected";
  30157. if (message.id != null && message.hasOwnProperty("id"))
  30158. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  30159. return "id: integer|Long expected";
  30160. return null;
  30161. };
  30162. /**
  30163. * Creates an altar_exchange_rsp message from a plain object. Also converts values to their respective internal types.
  30164. * @function fromObject
  30165. * @memberof game.altar_exchange_rsp
  30166. * @static
  30167. * @param {Object.<string,*>} object Plain object
  30168. * @returns {game.altar_exchange_rsp} altar_exchange_rsp
  30169. */
  30170. altar_exchange_rsp.fromObject = function fromObject(object) {
  30171. if (object instanceof $root.game.altar_exchange_rsp)
  30172. return object;
  30173. let message = new $root.game.altar_exchange_rsp();
  30174. if (object.errno != null)
  30175. if ($util.Long)
  30176. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  30177. else if (typeof object.errno === "string")
  30178. message.errno = parseInt(object.errno, 10);
  30179. else if (typeof object.errno === "number")
  30180. message.errno = object.errno;
  30181. else if (typeof object.errno === "object")
  30182. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  30183. if (object.type != null)
  30184. if ($util.Long)
  30185. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  30186. else if (typeof object.type === "string")
  30187. message.type = parseInt(object.type, 10);
  30188. else if (typeof object.type === "number")
  30189. message.type = object.type;
  30190. else if (typeof object.type === "object")
  30191. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  30192. if (object.sid != null)
  30193. message.sid = String(object.sid);
  30194. if (object.id != null)
  30195. if ($util.Long)
  30196. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  30197. else if (typeof object.id === "string")
  30198. message.id = parseInt(object.id, 10);
  30199. else if (typeof object.id === "number")
  30200. message.id = object.id;
  30201. else if (typeof object.id === "object")
  30202. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  30203. return message;
  30204. };
  30205. /**
  30206. * Creates a plain object from an altar_exchange_rsp message. Also converts values to other types if specified.
  30207. * @function toObject
  30208. * @memberof game.altar_exchange_rsp
  30209. * @static
  30210. * @param {game.altar_exchange_rsp} message altar_exchange_rsp
  30211. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30212. * @returns {Object.<string,*>} Plain object
  30213. */
  30214. altar_exchange_rsp.toObject = function toObject(message, options) {
  30215. if (!options)
  30216. options = {};
  30217. let object = {};
  30218. if (options.defaults) {
  30219. if ($util.Long) {
  30220. let long = new $util.Long(0, 0, false);
  30221. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30222. } else
  30223. object.errno = options.longs === String ? "0" : 0;
  30224. if ($util.Long) {
  30225. let long = new $util.Long(0, 0, false);
  30226. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30227. } else
  30228. object.type = options.longs === String ? "0" : 0;
  30229. object.sid = "";
  30230. if ($util.Long) {
  30231. let long = new $util.Long(0, 0, false);
  30232. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30233. } else
  30234. object.id = options.longs === String ? "0" : 0;
  30235. }
  30236. if (message.errno != null && message.hasOwnProperty("errno"))
  30237. if (typeof message.errno === "number")
  30238. object.errno = options.longs === String ? String(message.errno) : message.errno;
  30239. else
  30240. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  30241. if (message.type != null && message.hasOwnProperty("type"))
  30242. if (typeof message.type === "number")
  30243. object.type = options.longs === String ? String(message.type) : message.type;
  30244. else
  30245. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  30246. if (message.sid != null && message.hasOwnProperty("sid"))
  30247. object.sid = message.sid;
  30248. if (message.id != null && message.hasOwnProperty("id"))
  30249. if (typeof message.id === "number")
  30250. object.id = options.longs === String ? String(message.id) : message.id;
  30251. else
  30252. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  30253. return object;
  30254. };
  30255. /**
  30256. * Converts this altar_exchange_rsp to JSON.
  30257. * @function toJSON
  30258. * @memberof game.altar_exchange_rsp
  30259. * @instance
  30260. * @returns {Object.<string,*>} JSON object
  30261. */
  30262. altar_exchange_rsp.prototype.toJSON = function toJSON() {
  30263. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30264. };
  30265. return altar_exchange_rsp;
  30266. })();
  30267. game.altar_exchange_confirm = (function() {
  30268. /**
  30269. * Properties of an altar_exchange_confirm.
  30270. * @memberof game
  30271. * @interface Ialtar_exchange_confirm
  30272. * @property {number|Long|null} [type] altar_exchange_confirm type
  30273. * @property {string|null} [sid] altar_exchange_confirm sid
  30274. * @property {boolean|null} [change] altar_exchange_confirm change
  30275. */
  30276. /**
  30277. * Constructs a new altar_exchange_confirm.
  30278. * @memberof game
  30279. * @classdesc Represents an altar_exchange_confirm.
  30280. * @implements Ialtar_exchange_confirm
  30281. * @constructor
  30282. * @param {game.Ialtar_exchange_confirm=} [properties] Properties to set
  30283. */
  30284. function altar_exchange_confirm(properties) {
  30285. if (properties)
  30286. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30287. if (properties[keys[i]] != null)
  30288. this[keys[i]] = properties[keys[i]];
  30289. }
  30290. /**
  30291. * altar_exchange_confirm type.
  30292. * @member {number|Long} type
  30293. * @memberof game.altar_exchange_confirm
  30294. * @instance
  30295. */
  30296. altar_exchange_confirm.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30297. /**
  30298. * altar_exchange_confirm sid.
  30299. * @member {string} sid
  30300. * @memberof game.altar_exchange_confirm
  30301. * @instance
  30302. */
  30303. altar_exchange_confirm.prototype.sid = "";
  30304. /**
  30305. * altar_exchange_confirm change.
  30306. * @member {boolean} change
  30307. * @memberof game.altar_exchange_confirm
  30308. * @instance
  30309. */
  30310. altar_exchange_confirm.prototype.change = false;
  30311. /**
  30312. * Creates a new altar_exchange_confirm instance using the specified properties.
  30313. * @function create
  30314. * @memberof game.altar_exchange_confirm
  30315. * @static
  30316. * @param {game.Ialtar_exchange_confirm=} [properties] Properties to set
  30317. * @returns {game.altar_exchange_confirm} altar_exchange_confirm instance
  30318. */
  30319. altar_exchange_confirm.create = function create(properties) {
  30320. return new altar_exchange_confirm(properties);
  30321. };
  30322. /**
  30323. * Encodes the specified altar_exchange_confirm message. Does not implicitly {@link game.altar_exchange_confirm.verify|verify} messages.
  30324. * @function encode
  30325. * @memberof game.altar_exchange_confirm
  30326. * @static
  30327. * @param {game.Ialtar_exchange_confirm} message altar_exchange_confirm message or plain object to encode
  30328. * @param {$protobuf.Writer} [writer] Writer to encode to
  30329. * @returns {$protobuf.Writer} Writer
  30330. */
  30331. altar_exchange_confirm.encode = function encode(message, writer) {
  30332. if (!writer)
  30333. writer = $Writer.create();
  30334. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  30335. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  30336. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  30337. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  30338. if (message.change != null && Object.hasOwnProperty.call(message, "change"))
  30339. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.change);
  30340. return writer;
  30341. };
  30342. /**
  30343. * Encodes the specified altar_exchange_confirm message, length delimited. Does not implicitly {@link game.altar_exchange_confirm.verify|verify} messages.
  30344. * @function encodeDelimited
  30345. * @memberof game.altar_exchange_confirm
  30346. * @static
  30347. * @param {game.Ialtar_exchange_confirm} message altar_exchange_confirm message or plain object to encode
  30348. * @param {$protobuf.Writer} [writer] Writer to encode to
  30349. * @returns {$protobuf.Writer} Writer
  30350. */
  30351. altar_exchange_confirm.encodeDelimited = function encodeDelimited(message, writer) {
  30352. return this.encode(message, writer).ldelim();
  30353. };
  30354. /**
  30355. * Decodes an altar_exchange_confirm message from the specified reader or buffer.
  30356. * @function decode
  30357. * @memberof game.altar_exchange_confirm
  30358. * @static
  30359. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30360. * @param {number} [length] Message length if known beforehand
  30361. * @returns {game.altar_exchange_confirm} altar_exchange_confirm
  30362. * @throws {Error} If the payload is not a reader or valid buffer
  30363. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30364. */
  30365. altar_exchange_confirm.decode = function decode(reader, length) {
  30366. if (!(reader instanceof $Reader))
  30367. reader = $Reader.create(reader);
  30368. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_confirm();
  30369. while (reader.pos < end) {
  30370. let tag = reader.uint32();
  30371. switch (tag >>> 3) {
  30372. case 1:
  30373. message.type = reader.int64();
  30374. break;
  30375. case 2:
  30376. message.sid = reader.string();
  30377. break;
  30378. case 3:
  30379. message.change = reader.bool();
  30380. break;
  30381. default:
  30382. reader.skipType(tag & 7);
  30383. break;
  30384. }
  30385. }
  30386. return message;
  30387. };
  30388. /**
  30389. * Decodes an altar_exchange_confirm message from the specified reader or buffer, length delimited.
  30390. * @function decodeDelimited
  30391. * @memberof game.altar_exchange_confirm
  30392. * @static
  30393. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30394. * @returns {game.altar_exchange_confirm} altar_exchange_confirm
  30395. * @throws {Error} If the payload is not a reader or valid buffer
  30396. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30397. */
  30398. altar_exchange_confirm.decodeDelimited = function decodeDelimited(reader) {
  30399. if (!(reader instanceof $Reader))
  30400. reader = new $Reader(reader);
  30401. return this.decode(reader, reader.uint32());
  30402. };
  30403. /**
  30404. * Verifies an altar_exchange_confirm message.
  30405. * @function verify
  30406. * @memberof game.altar_exchange_confirm
  30407. * @static
  30408. * @param {Object.<string,*>} message Plain object to verify
  30409. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30410. */
  30411. altar_exchange_confirm.verify = function verify(message) {
  30412. if (typeof message !== "object" || message === null)
  30413. return "object expected";
  30414. if (message.type != null && message.hasOwnProperty("type"))
  30415. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  30416. return "type: integer|Long expected";
  30417. if (message.sid != null && message.hasOwnProperty("sid"))
  30418. if (!$util.isString(message.sid))
  30419. return "sid: string expected";
  30420. if (message.change != null && message.hasOwnProperty("change"))
  30421. if (typeof message.change !== "boolean")
  30422. return "change: boolean expected";
  30423. return null;
  30424. };
  30425. /**
  30426. * Creates an altar_exchange_confirm message from a plain object. Also converts values to their respective internal types.
  30427. * @function fromObject
  30428. * @memberof game.altar_exchange_confirm
  30429. * @static
  30430. * @param {Object.<string,*>} object Plain object
  30431. * @returns {game.altar_exchange_confirm} altar_exchange_confirm
  30432. */
  30433. altar_exchange_confirm.fromObject = function fromObject(object) {
  30434. if (object instanceof $root.game.altar_exchange_confirm)
  30435. return object;
  30436. let message = new $root.game.altar_exchange_confirm();
  30437. if (object.type != null)
  30438. if ($util.Long)
  30439. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  30440. else if (typeof object.type === "string")
  30441. message.type = parseInt(object.type, 10);
  30442. else if (typeof object.type === "number")
  30443. message.type = object.type;
  30444. else if (typeof object.type === "object")
  30445. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  30446. if (object.sid != null)
  30447. message.sid = String(object.sid);
  30448. if (object.change != null)
  30449. message.change = Boolean(object.change);
  30450. return message;
  30451. };
  30452. /**
  30453. * Creates a plain object from an altar_exchange_confirm message. Also converts values to other types if specified.
  30454. * @function toObject
  30455. * @memberof game.altar_exchange_confirm
  30456. * @static
  30457. * @param {game.altar_exchange_confirm} message altar_exchange_confirm
  30458. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30459. * @returns {Object.<string,*>} Plain object
  30460. */
  30461. altar_exchange_confirm.toObject = function toObject(message, options) {
  30462. if (!options)
  30463. options = {};
  30464. let object = {};
  30465. if (options.defaults) {
  30466. if ($util.Long) {
  30467. let long = new $util.Long(0, 0, false);
  30468. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30469. } else
  30470. object.type = options.longs === String ? "0" : 0;
  30471. object.sid = "";
  30472. object.change = false;
  30473. }
  30474. if (message.type != null && message.hasOwnProperty("type"))
  30475. if (typeof message.type === "number")
  30476. object.type = options.longs === String ? String(message.type) : message.type;
  30477. else
  30478. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  30479. if (message.sid != null && message.hasOwnProperty("sid"))
  30480. object.sid = message.sid;
  30481. if (message.change != null && message.hasOwnProperty("change"))
  30482. object.change = message.change;
  30483. return object;
  30484. };
  30485. /**
  30486. * Converts this altar_exchange_confirm to JSON.
  30487. * @function toJSON
  30488. * @memberof game.altar_exchange_confirm
  30489. * @instance
  30490. * @returns {Object.<string,*>} JSON object
  30491. */
  30492. altar_exchange_confirm.prototype.toJSON = function toJSON() {
  30493. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30494. };
  30495. return altar_exchange_confirm;
  30496. })();
  30497. game.altar_exchange_confirm_rsp = (function() {
  30498. /**
  30499. * Properties of an altar_exchange_confirm_rsp.
  30500. * @memberof game
  30501. * @interface Ialtar_exchange_confirm_rsp
  30502. * @property {number|Long|null} [errno] altar_exchange_confirm_rsp errno
  30503. */
  30504. /**
  30505. * Constructs a new altar_exchange_confirm_rsp.
  30506. * @memberof game
  30507. * @classdesc Represents an altar_exchange_confirm_rsp.
  30508. * @implements Ialtar_exchange_confirm_rsp
  30509. * @constructor
  30510. * @param {game.Ialtar_exchange_confirm_rsp=} [properties] Properties to set
  30511. */
  30512. function altar_exchange_confirm_rsp(properties) {
  30513. if (properties)
  30514. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30515. if (properties[keys[i]] != null)
  30516. this[keys[i]] = properties[keys[i]];
  30517. }
  30518. /**
  30519. * altar_exchange_confirm_rsp errno.
  30520. * @member {number|Long} errno
  30521. * @memberof game.altar_exchange_confirm_rsp
  30522. * @instance
  30523. */
  30524. altar_exchange_confirm_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30525. /**
  30526. * Creates a new altar_exchange_confirm_rsp instance using the specified properties.
  30527. * @function create
  30528. * @memberof game.altar_exchange_confirm_rsp
  30529. * @static
  30530. * @param {game.Ialtar_exchange_confirm_rsp=} [properties] Properties to set
  30531. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp instance
  30532. */
  30533. altar_exchange_confirm_rsp.create = function create(properties) {
  30534. return new altar_exchange_confirm_rsp(properties);
  30535. };
  30536. /**
  30537. * Encodes the specified altar_exchange_confirm_rsp message. Does not implicitly {@link game.altar_exchange_confirm_rsp.verify|verify} messages.
  30538. * @function encode
  30539. * @memberof game.altar_exchange_confirm_rsp
  30540. * @static
  30541. * @param {game.Ialtar_exchange_confirm_rsp} message altar_exchange_confirm_rsp message or plain object to encode
  30542. * @param {$protobuf.Writer} [writer] Writer to encode to
  30543. * @returns {$protobuf.Writer} Writer
  30544. */
  30545. altar_exchange_confirm_rsp.encode = function encode(message, writer) {
  30546. if (!writer)
  30547. writer = $Writer.create();
  30548. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  30549. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  30550. return writer;
  30551. };
  30552. /**
  30553. * Encodes the specified altar_exchange_confirm_rsp message, length delimited. Does not implicitly {@link game.altar_exchange_confirm_rsp.verify|verify} messages.
  30554. * @function encodeDelimited
  30555. * @memberof game.altar_exchange_confirm_rsp
  30556. * @static
  30557. * @param {game.Ialtar_exchange_confirm_rsp} message altar_exchange_confirm_rsp message or plain object to encode
  30558. * @param {$protobuf.Writer} [writer] Writer to encode to
  30559. * @returns {$protobuf.Writer} Writer
  30560. */
  30561. altar_exchange_confirm_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  30562. return this.encode(message, writer).ldelim();
  30563. };
  30564. /**
  30565. * Decodes an altar_exchange_confirm_rsp message from the specified reader or buffer.
  30566. * @function decode
  30567. * @memberof game.altar_exchange_confirm_rsp
  30568. * @static
  30569. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30570. * @param {number} [length] Message length if known beforehand
  30571. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
  30572. * @throws {Error} If the payload is not a reader or valid buffer
  30573. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30574. */
  30575. altar_exchange_confirm_rsp.decode = function decode(reader, length) {
  30576. if (!(reader instanceof $Reader))
  30577. reader = $Reader.create(reader);
  30578. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_exchange_confirm_rsp();
  30579. while (reader.pos < end) {
  30580. let tag = reader.uint32();
  30581. switch (tag >>> 3) {
  30582. case 1:
  30583. message.errno = reader.int64();
  30584. break;
  30585. default:
  30586. reader.skipType(tag & 7);
  30587. break;
  30588. }
  30589. }
  30590. return message;
  30591. };
  30592. /**
  30593. * Decodes an altar_exchange_confirm_rsp message from the specified reader or buffer, length delimited.
  30594. * @function decodeDelimited
  30595. * @memberof game.altar_exchange_confirm_rsp
  30596. * @static
  30597. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30598. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
  30599. * @throws {Error} If the payload is not a reader or valid buffer
  30600. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30601. */
  30602. altar_exchange_confirm_rsp.decodeDelimited = function decodeDelimited(reader) {
  30603. if (!(reader instanceof $Reader))
  30604. reader = new $Reader(reader);
  30605. return this.decode(reader, reader.uint32());
  30606. };
  30607. /**
  30608. * Verifies an altar_exchange_confirm_rsp message.
  30609. * @function verify
  30610. * @memberof game.altar_exchange_confirm_rsp
  30611. * @static
  30612. * @param {Object.<string,*>} message Plain object to verify
  30613. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30614. */
  30615. altar_exchange_confirm_rsp.verify = function verify(message) {
  30616. if (typeof message !== "object" || message === null)
  30617. return "object expected";
  30618. if (message.errno != null && message.hasOwnProperty("errno"))
  30619. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  30620. return "errno: integer|Long expected";
  30621. return null;
  30622. };
  30623. /**
  30624. * Creates an altar_exchange_confirm_rsp message from a plain object. Also converts values to their respective internal types.
  30625. * @function fromObject
  30626. * @memberof game.altar_exchange_confirm_rsp
  30627. * @static
  30628. * @param {Object.<string,*>} object Plain object
  30629. * @returns {game.altar_exchange_confirm_rsp} altar_exchange_confirm_rsp
  30630. */
  30631. altar_exchange_confirm_rsp.fromObject = function fromObject(object) {
  30632. if (object instanceof $root.game.altar_exchange_confirm_rsp)
  30633. return object;
  30634. let message = new $root.game.altar_exchange_confirm_rsp();
  30635. if (object.errno != null)
  30636. if ($util.Long)
  30637. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  30638. else if (typeof object.errno === "string")
  30639. message.errno = parseInt(object.errno, 10);
  30640. else if (typeof object.errno === "number")
  30641. message.errno = object.errno;
  30642. else if (typeof object.errno === "object")
  30643. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  30644. return message;
  30645. };
  30646. /**
  30647. * Creates a plain object from an altar_exchange_confirm_rsp message. Also converts values to other types if specified.
  30648. * @function toObject
  30649. * @memberof game.altar_exchange_confirm_rsp
  30650. * @static
  30651. * @param {game.altar_exchange_confirm_rsp} message altar_exchange_confirm_rsp
  30652. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30653. * @returns {Object.<string,*>} Plain object
  30654. */
  30655. altar_exchange_confirm_rsp.toObject = function toObject(message, options) {
  30656. if (!options)
  30657. options = {};
  30658. let object = {};
  30659. if (options.defaults)
  30660. if ($util.Long) {
  30661. let long = new $util.Long(0, 0, false);
  30662. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  30663. } else
  30664. object.errno = options.longs === String ? "0" : 0;
  30665. if (message.errno != null && message.hasOwnProperty("errno"))
  30666. if (typeof message.errno === "number")
  30667. object.errno = options.longs === String ? String(message.errno) : message.errno;
  30668. else
  30669. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  30670. return object;
  30671. };
  30672. /**
  30673. * Converts this altar_exchange_confirm_rsp to JSON.
  30674. * @function toJSON
  30675. * @memberof game.altar_exchange_confirm_rsp
  30676. * @instance
  30677. * @returns {Object.<string,*>} JSON object
  30678. */
  30679. altar_exchange_confirm_rsp.prototype.toJSON = function toJSON() {
  30680. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30681. };
  30682. return altar_exchange_confirm_rsp;
  30683. })();
  30684. game.altar_buy_battle_space = (function() {
  30685. /**
  30686. * Properties of an altar_buy_battle_space.
  30687. * @memberof game
  30688. * @interface Ialtar_buy_battle_space
  30689. */
  30690. /**
  30691. * Constructs a new altar_buy_battle_space.
  30692. * @memberof game
  30693. * @classdesc Represents an altar_buy_battle_space.
  30694. * @implements Ialtar_buy_battle_space
  30695. * @constructor
  30696. * @param {game.Ialtar_buy_battle_space=} [properties] Properties to set
  30697. */
  30698. function altar_buy_battle_space(properties) {
  30699. if (properties)
  30700. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30701. if (properties[keys[i]] != null)
  30702. this[keys[i]] = properties[keys[i]];
  30703. }
  30704. /**
  30705. * Creates a new altar_buy_battle_space instance using the specified properties.
  30706. * @function create
  30707. * @memberof game.altar_buy_battle_space
  30708. * @static
  30709. * @param {game.Ialtar_buy_battle_space=} [properties] Properties to set
  30710. * @returns {game.altar_buy_battle_space} altar_buy_battle_space instance
  30711. */
  30712. altar_buy_battle_space.create = function create(properties) {
  30713. return new altar_buy_battle_space(properties);
  30714. };
  30715. /**
  30716. * Encodes the specified altar_buy_battle_space message. Does not implicitly {@link game.altar_buy_battle_space.verify|verify} messages.
  30717. * @function encode
  30718. * @memberof game.altar_buy_battle_space
  30719. * @static
  30720. * @param {game.Ialtar_buy_battle_space} message altar_buy_battle_space message or plain object to encode
  30721. * @param {$protobuf.Writer} [writer] Writer to encode to
  30722. * @returns {$protobuf.Writer} Writer
  30723. */
  30724. altar_buy_battle_space.encode = function encode(message, writer) {
  30725. if (!writer)
  30726. writer = $Writer.create();
  30727. return writer;
  30728. };
  30729. /**
  30730. * Encodes the specified altar_buy_battle_space message, length delimited. Does not implicitly {@link game.altar_buy_battle_space.verify|verify} messages.
  30731. * @function encodeDelimited
  30732. * @memberof game.altar_buy_battle_space
  30733. * @static
  30734. * @param {game.Ialtar_buy_battle_space} message altar_buy_battle_space message or plain object to encode
  30735. * @param {$protobuf.Writer} [writer] Writer to encode to
  30736. * @returns {$protobuf.Writer} Writer
  30737. */
  30738. altar_buy_battle_space.encodeDelimited = function encodeDelimited(message, writer) {
  30739. return this.encode(message, writer).ldelim();
  30740. };
  30741. /**
  30742. * Decodes an altar_buy_battle_space message from the specified reader or buffer.
  30743. * @function decode
  30744. * @memberof game.altar_buy_battle_space
  30745. * @static
  30746. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30747. * @param {number} [length] Message length if known beforehand
  30748. * @returns {game.altar_buy_battle_space} altar_buy_battle_space
  30749. * @throws {Error} If the payload is not a reader or valid buffer
  30750. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30751. */
  30752. altar_buy_battle_space.decode = function decode(reader, length) {
  30753. if (!(reader instanceof $Reader))
  30754. reader = $Reader.create(reader);
  30755. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_buy_battle_space();
  30756. while (reader.pos < end) {
  30757. let tag = reader.uint32();
  30758. switch (tag >>> 3) {
  30759. default:
  30760. reader.skipType(tag & 7);
  30761. break;
  30762. }
  30763. }
  30764. return message;
  30765. };
  30766. /**
  30767. * Decodes an altar_buy_battle_space message from the specified reader or buffer, length delimited.
  30768. * @function decodeDelimited
  30769. * @memberof game.altar_buy_battle_space
  30770. * @static
  30771. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30772. * @returns {game.altar_buy_battle_space} altar_buy_battle_space
  30773. * @throws {Error} If the payload is not a reader or valid buffer
  30774. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30775. */
  30776. altar_buy_battle_space.decodeDelimited = function decodeDelimited(reader) {
  30777. if (!(reader instanceof $Reader))
  30778. reader = new $Reader(reader);
  30779. return this.decode(reader, reader.uint32());
  30780. };
  30781. /**
  30782. * Verifies an altar_buy_battle_space message.
  30783. * @function verify
  30784. * @memberof game.altar_buy_battle_space
  30785. * @static
  30786. * @param {Object.<string,*>} message Plain object to verify
  30787. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30788. */
  30789. altar_buy_battle_space.verify = function verify(message) {
  30790. if (typeof message !== "object" || message === null)
  30791. return "object expected";
  30792. return null;
  30793. };
  30794. /**
  30795. * Creates an altar_buy_battle_space message from a plain object. Also converts values to their respective internal types.
  30796. * @function fromObject
  30797. * @memberof game.altar_buy_battle_space
  30798. * @static
  30799. * @param {Object.<string,*>} object Plain object
  30800. * @returns {game.altar_buy_battle_space} altar_buy_battle_space
  30801. */
  30802. altar_buy_battle_space.fromObject = function fromObject(object) {
  30803. if (object instanceof $root.game.altar_buy_battle_space)
  30804. return object;
  30805. return new $root.game.altar_buy_battle_space();
  30806. };
  30807. /**
  30808. * Creates a plain object from an altar_buy_battle_space message. Also converts values to other types if specified.
  30809. * @function toObject
  30810. * @memberof game.altar_buy_battle_space
  30811. * @static
  30812. * @param {game.altar_buy_battle_space} message altar_buy_battle_space
  30813. * @param {$protobuf.IConversionOptions} [options] Conversion options
  30814. * @returns {Object.<string,*>} Plain object
  30815. */
  30816. altar_buy_battle_space.toObject = function toObject() {
  30817. return {};
  30818. };
  30819. /**
  30820. * Converts this altar_buy_battle_space to JSON.
  30821. * @function toJSON
  30822. * @memberof game.altar_buy_battle_space
  30823. * @instance
  30824. * @returns {Object.<string,*>} JSON object
  30825. */
  30826. altar_buy_battle_space.prototype.toJSON = function toJSON() {
  30827. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  30828. };
  30829. return altar_buy_battle_space;
  30830. })();
  30831. game.altar_buy_battle_space_rsp = (function() {
  30832. /**
  30833. * Properties of an altar_buy_battle_space_rsp.
  30834. * @memberof game
  30835. * @interface Ialtar_buy_battle_space_rsp
  30836. * @property {number|Long|null} [errno] altar_buy_battle_space_rsp errno
  30837. * @property {number|Long|null} [pos] altar_buy_battle_space_rsp pos
  30838. * @property {game.Ialtar_info|null} [data] altar_buy_battle_space_rsp data
  30839. */
  30840. /**
  30841. * Constructs a new altar_buy_battle_space_rsp.
  30842. * @memberof game
  30843. * @classdesc Represents an altar_buy_battle_space_rsp.
  30844. * @implements Ialtar_buy_battle_space_rsp
  30845. * @constructor
  30846. * @param {game.Ialtar_buy_battle_space_rsp=} [properties] Properties to set
  30847. */
  30848. function altar_buy_battle_space_rsp(properties) {
  30849. if (properties)
  30850. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  30851. if (properties[keys[i]] != null)
  30852. this[keys[i]] = properties[keys[i]];
  30853. }
  30854. /**
  30855. * altar_buy_battle_space_rsp errno.
  30856. * @member {number|Long} errno
  30857. * @memberof game.altar_buy_battle_space_rsp
  30858. * @instance
  30859. */
  30860. altar_buy_battle_space_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30861. /**
  30862. * altar_buy_battle_space_rsp pos.
  30863. * @member {number|Long} pos
  30864. * @memberof game.altar_buy_battle_space_rsp
  30865. * @instance
  30866. */
  30867. altar_buy_battle_space_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  30868. /**
  30869. * altar_buy_battle_space_rsp data.
  30870. * @member {game.Ialtar_info|null|undefined} data
  30871. * @memberof game.altar_buy_battle_space_rsp
  30872. * @instance
  30873. */
  30874. altar_buy_battle_space_rsp.prototype.data = null;
  30875. /**
  30876. * Creates a new altar_buy_battle_space_rsp instance using the specified properties.
  30877. * @function create
  30878. * @memberof game.altar_buy_battle_space_rsp
  30879. * @static
  30880. * @param {game.Ialtar_buy_battle_space_rsp=} [properties] Properties to set
  30881. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp instance
  30882. */
  30883. altar_buy_battle_space_rsp.create = function create(properties) {
  30884. return new altar_buy_battle_space_rsp(properties);
  30885. };
  30886. /**
  30887. * Encodes the specified altar_buy_battle_space_rsp message. Does not implicitly {@link game.altar_buy_battle_space_rsp.verify|verify} messages.
  30888. * @function encode
  30889. * @memberof game.altar_buy_battle_space_rsp
  30890. * @static
  30891. * @param {game.Ialtar_buy_battle_space_rsp} message altar_buy_battle_space_rsp message or plain object to encode
  30892. * @param {$protobuf.Writer} [writer] Writer to encode to
  30893. * @returns {$protobuf.Writer} Writer
  30894. */
  30895. altar_buy_battle_space_rsp.encode = function encode(message, writer) {
  30896. if (!writer)
  30897. writer = $Writer.create();
  30898. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  30899. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  30900. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  30901. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  30902. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  30903. $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  30904. return writer;
  30905. };
  30906. /**
  30907. * Encodes the specified altar_buy_battle_space_rsp message, length delimited. Does not implicitly {@link game.altar_buy_battle_space_rsp.verify|verify} messages.
  30908. * @function encodeDelimited
  30909. * @memberof game.altar_buy_battle_space_rsp
  30910. * @static
  30911. * @param {game.Ialtar_buy_battle_space_rsp} message altar_buy_battle_space_rsp message or plain object to encode
  30912. * @param {$protobuf.Writer} [writer] Writer to encode to
  30913. * @returns {$protobuf.Writer} Writer
  30914. */
  30915. altar_buy_battle_space_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  30916. return this.encode(message, writer).ldelim();
  30917. };
  30918. /**
  30919. * Decodes an altar_buy_battle_space_rsp message from the specified reader or buffer.
  30920. * @function decode
  30921. * @memberof game.altar_buy_battle_space_rsp
  30922. * @static
  30923. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30924. * @param {number} [length] Message length if known beforehand
  30925. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
  30926. * @throws {Error} If the payload is not a reader or valid buffer
  30927. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30928. */
  30929. altar_buy_battle_space_rsp.decode = function decode(reader, length) {
  30930. if (!(reader instanceof $Reader))
  30931. reader = $Reader.create(reader);
  30932. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_buy_battle_space_rsp();
  30933. while (reader.pos < end) {
  30934. let tag = reader.uint32();
  30935. switch (tag >>> 3) {
  30936. case 1:
  30937. message.errno = reader.int64();
  30938. break;
  30939. case 2:
  30940. message.pos = reader.int64();
  30941. break;
  30942. case 3:
  30943. message.data = $root.game.altar_info.decode(reader, reader.uint32());
  30944. break;
  30945. default:
  30946. reader.skipType(tag & 7);
  30947. break;
  30948. }
  30949. }
  30950. return message;
  30951. };
  30952. /**
  30953. * Decodes an altar_buy_battle_space_rsp message from the specified reader or buffer, length delimited.
  30954. * @function decodeDelimited
  30955. * @memberof game.altar_buy_battle_space_rsp
  30956. * @static
  30957. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  30958. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
  30959. * @throws {Error} If the payload is not a reader or valid buffer
  30960. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  30961. */
  30962. altar_buy_battle_space_rsp.decodeDelimited = function decodeDelimited(reader) {
  30963. if (!(reader instanceof $Reader))
  30964. reader = new $Reader(reader);
  30965. return this.decode(reader, reader.uint32());
  30966. };
  30967. /**
  30968. * Verifies an altar_buy_battle_space_rsp message.
  30969. * @function verify
  30970. * @memberof game.altar_buy_battle_space_rsp
  30971. * @static
  30972. * @param {Object.<string,*>} message Plain object to verify
  30973. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  30974. */
  30975. altar_buy_battle_space_rsp.verify = function verify(message) {
  30976. if (typeof message !== "object" || message === null)
  30977. return "object expected";
  30978. if (message.errno != null && message.hasOwnProperty("errno"))
  30979. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  30980. return "errno: integer|Long expected";
  30981. if (message.pos != null && message.hasOwnProperty("pos"))
  30982. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  30983. return "pos: integer|Long expected";
  30984. if (message.data != null && message.hasOwnProperty("data")) {
  30985. let error = $root.game.altar_info.verify(message.data);
  30986. if (error)
  30987. return "data." + error;
  30988. }
  30989. return null;
  30990. };
  30991. /**
  30992. * Creates an altar_buy_battle_space_rsp message from a plain object. Also converts values to their respective internal types.
  30993. * @function fromObject
  30994. * @memberof game.altar_buy_battle_space_rsp
  30995. * @static
  30996. * @param {Object.<string,*>} object Plain object
  30997. * @returns {game.altar_buy_battle_space_rsp} altar_buy_battle_space_rsp
  30998. */
  30999. altar_buy_battle_space_rsp.fromObject = function fromObject(object) {
  31000. if (object instanceof $root.game.altar_buy_battle_space_rsp)
  31001. return object;
  31002. let message = new $root.game.altar_buy_battle_space_rsp();
  31003. if (object.errno != null)
  31004. if ($util.Long)
  31005. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  31006. else if (typeof object.errno === "string")
  31007. message.errno = parseInt(object.errno, 10);
  31008. else if (typeof object.errno === "number")
  31009. message.errno = object.errno;
  31010. else if (typeof object.errno === "object")
  31011. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  31012. if (object.pos != null)
  31013. if ($util.Long)
  31014. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  31015. else if (typeof object.pos === "string")
  31016. message.pos = parseInt(object.pos, 10);
  31017. else if (typeof object.pos === "number")
  31018. message.pos = object.pos;
  31019. else if (typeof object.pos === "object")
  31020. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  31021. if (object.data != null) {
  31022. if (typeof object.data !== "object")
  31023. throw TypeError(".game.altar_buy_battle_space_rsp.data: object expected");
  31024. message.data = $root.game.altar_info.fromObject(object.data);
  31025. }
  31026. return message;
  31027. };
  31028. /**
  31029. * Creates a plain object from an altar_buy_battle_space_rsp message. Also converts values to other types if specified.
  31030. * @function toObject
  31031. * @memberof game.altar_buy_battle_space_rsp
  31032. * @static
  31033. * @param {game.altar_buy_battle_space_rsp} message altar_buy_battle_space_rsp
  31034. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31035. * @returns {Object.<string,*>} Plain object
  31036. */
  31037. altar_buy_battle_space_rsp.toObject = function toObject(message, options) {
  31038. if (!options)
  31039. options = {};
  31040. let object = {};
  31041. if (options.defaults) {
  31042. if ($util.Long) {
  31043. let long = new $util.Long(0, 0, false);
  31044. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31045. } else
  31046. object.errno = options.longs === String ? "0" : 0;
  31047. if ($util.Long) {
  31048. let long = new $util.Long(0, 0, false);
  31049. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31050. } else
  31051. object.pos = options.longs === String ? "0" : 0;
  31052. object.data = null;
  31053. }
  31054. if (message.errno != null && message.hasOwnProperty("errno"))
  31055. if (typeof message.errno === "number")
  31056. object.errno = options.longs === String ? String(message.errno) : message.errno;
  31057. else
  31058. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  31059. if (message.pos != null && message.hasOwnProperty("pos"))
  31060. if (typeof message.pos === "number")
  31061. object.pos = options.longs === String ? String(message.pos) : message.pos;
  31062. else
  31063. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  31064. if (message.data != null && message.hasOwnProperty("data"))
  31065. object.data = $root.game.altar_info.toObject(message.data, options);
  31066. return object;
  31067. };
  31068. /**
  31069. * Converts this altar_buy_battle_space_rsp to JSON.
  31070. * @function toJSON
  31071. * @memberof game.altar_buy_battle_space_rsp
  31072. * @instance
  31073. * @returns {Object.<string,*>} JSON object
  31074. */
  31075. altar_buy_battle_space_rsp.prototype.toJSON = function toJSON() {
  31076. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31077. };
  31078. return altar_buy_battle_space_rsp;
  31079. })();
  31080. game.altar_reset_cd = (function() {
  31081. /**
  31082. * Properties of an altar_reset_cd.
  31083. * @memberof game
  31084. * @interface Ialtar_reset_cd
  31085. * @property {number|Long|null} [pos] altar_reset_cd pos
  31086. */
  31087. /**
  31088. * Constructs a new altar_reset_cd.
  31089. * @memberof game
  31090. * @classdesc Represents an altar_reset_cd.
  31091. * @implements Ialtar_reset_cd
  31092. * @constructor
  31093. * @param {game.Ialtar_reset_cd=} [properties] Properties to set
  31094. */
  31095. function altar_reset_cd(properties) {
  31096. if (properties)
  31097. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31098. if (properties[keys[i]] != null)
  31099. this[keys[i]] = properties[keys[i]];
  31100. }
  31101. /**
  31102. * altar_reset_cd pos.
  31103. * @member {number|Long} pos
  31104. * @memberof game.altar_reset_cd
  31105. * @instance
  31106. */
  31107. altar_reset_cd.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31108. /**
  31109. * Creates a new altar_reset_cd instance using the specified properties.
  31110. * @function create
  31111. * @memberof game.altar_reset_cd
  31112. * @static
  31113. * @param {game.Ialtar_reset_cd=} [properties] Properties to set
  31114. * @returns {game.altar_reset_cd} altar_reset_cd instance
  31115. */
  31116. altar_reset_cd.create = function create(properties) {
  31117. return new altar_reset_cd(properties);
  31118. };
  31119. /**
  31120. * Encodes the specified altar_reset_cd message. Does not implicitly {@link game.altar_reset_cd.verify|verify} messages.
  31121. * @function encode
  31122. * @memberof game.altar_reset_cd
  31123. * @static
  31124. * @param {game.Ialtar_reset_cd} message altar_reset_cd message or plain object to encode
  31125. * @param {$protobuf.Writer} [writer] Writer to encode to
  31126. * @returns {$protobuf.Writer} Writer
  31127. */
  31128. altar_reset_cd.encode = function encode(message, writer) {
  31129. if (!writer)
  31130. writer = $Writer.create();
  31131. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  31132. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  31133. return writer;
  31134. };
  31135. /**
  31136. * Encodes the specified altar_reset_cd message, length delimited. Does not implicitly {@link game.altar_reset_cd.verify|verify} messages.
  31137. * @function encodeDelimited
  31138. * @memberof game.altar_reset_cd
  31139. * @static
  31140. * @param {game.Ialtar_reset_cd} message altar_reset_cd message or plain object to encode
  31141. * @param {$protobuf.Writer} [writer] Writer to encode to
  31142. * @returns {$protobuf.Writer} Writer
  31143. */
  31144. altar_reset_cd.encodeDelimited = function encodeDelimited(message, writer) {
  31145. return this.encode(message, writer).ldelim();
  31146. };
  31147. /**
  31148. * Decodes an altar_reset_cd message from the specified reader or buffer.
  31149. * @function decode
  31150. * @memberof game.altar_reset_cd
  31151. * @static
  31152. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31153. * @param {number} [length] Message length if known beforehand
  31154. * @returns {game.altar_reset_cd} altar_reset_cd
  31155. * @throws {Error} If the payload is not a reader or valid buffer
  31156. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31157. */
  31158. altar_reset_cd.decode = function decode(reader, length) {
  31159. if (!(reader instanceof $Reader))
  31160. reader = $Reader.create(reader);
  31161. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_reset_cd();
  31162. while (reader.pos < end) {
  31163. let tag = reader.uint32();
  31164. switch (tag >>> 3) {
  31165. case 1:
  31166. message.pos = reader.int64();
  31167. break;
  31168. default:
  31169. reader.skipType(tag & 7);
  31170. break;
  31171. }
  31172. }
  31173. return message;
  31174. };
  31175. /**
  31176. * Decodes an altar_reset_cd message from the specified reader or buffer, length delimited.
  31177. * @function decodeDelimited
  31178. * @memberof game.altar_reset_cd
  31179. * @static
  31180. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31181. * @returns {game.altar_reset_cd} altar_reset_cd
  31182. * @throws {Error} If the payload is not a reader or valid buffer
  31183. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31184. */
  31185. altar_reset_cd.decodeDelimited = function decodeDelimited(reader) {
  31186. if (!(reader instanceof $Reader))
  31187. reader = new $Reader(reader);
  31188. return this.decode(reader, reader.uint32());
  31189. };
  31190. /**
  31191. * Verifies an altar_reset_cd message.
  31192. * @function verify
  31193. * @memberof game.altar_reset_cd
  31194. * @static
  31195. * @param {Object.<string,*>} message Plain object to verify
  31196. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31197. */
  31198. altar_reset_cd.verify = function verify(message) {
  31199. if (typeof message !== "object" || message === null)
  31200. return "object expected";
  31201. if (message.pos != null && message.hasOwnProperty("pos"))
  31202. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  31203. return "pos: integer|Long expected";
  31204. return null;
  31205. };
  31206. /**
  31207. * Creates an altar_reset_cd message from a plain object. Also converts values to their respective internal types.
  31208. * @function fromObject
  31209. * @memberof game.altar_reset_cd
  31210. * @static
  31211. * @param {Object.<string,*>} object Plain object
  31212. * @returns {game.altar_reset_cd} altar_reset_cd
  31213. */
  31214. altar_reset_cd.fromObject = function fromObject(object) {
  31215. if (object instanceof $root.game.altar_reset_cd)
  31216. return object;
  31217. let message = new $root.game.altar_reset_cd();
  31218. if (object.pos != null)
  31219. if ($util.Long)
  31220. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  31221. else if (typeof object.pos === "string")
  31222. message.pos = parseInt(object.pos, 10);
  31223. else if (typeof object.pos === "number")
  31224. message.pos = object.pos;
  31225. else if (typeof object.pos === "object")
  31226. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  31227. return message;
  31228. };
  31229. /**
  31230. * Creates a plain object from an altar_reset_cd message. Also converts values to other types if specified.
  31231. * @function toObject
  31232. * @memberof game.altar_reset_cd
  31233. * @static
  31234. * @param {game.altar_reset_cd} message altar_reset_cd
  31235. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31236. * @returns {Object.<string,*>} Plain object
  31237. */
  31238. altar_reset_cd.toObject = function toObject(message, options) {
  31239. if (!options)
  31240. options = {};
  31241. let object = {};
  31242. if (options.defaults)
  31243. if ($util.Long) {
  31244. let long = new $util.Long(0, 0, false);
  31245. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31246. } else
  31247. object.pos = options.longs === String ? "0" : 0;
  31248. if (message.pos != null && message.hasOwnProperty("pos"))
  31249. if (typeof message.pos === "number")
  31250. object.pos = options.longs === String ? String(message.pos) : message.pos;
  31251. else
  31252. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  31253. return object;
  31254. };
  31255. /**
  31256. * Converts this altar_reset_cd to JSON.
  31257. * @function toJSON
  31258. * @memberof game.altar_reset_cd
  31259. * @instance
  31260. * @returns {Object.<string,*>} JSON object
  31261. */
  31262. altar_reset_cd.prototype.toJSON = function toJSON() {
  31263. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31264. };
  31265. return altar_reset_cd;
  31266. })();
  31267. game.altar_reset_cd_rsp = (function() {
  31268. /**
  31269. * Properties of an altar_reset_cd_rsp.
  31270. * @memberof game
  31271. * @interface Ialtar_reset_cd_rsp
  31272. * @property {number|Long|null} [errno] altar_reset_cd_rsp errno
  31273. * @property {number|Long|null} [pos] altar_reset_cd_rsp pos
  31274. * @property {game.Ialtar_info|null} [data] altar_reset_cd_rsp data
  31275. */
  31276. /**
  31277. * Constructs a new altar_reset_cd_rsp.
  31278. * @memberof game
  31279. * @classdesc Represents an altar_reset_cd_rsp.
  31280. * @implements Ialtar_reset_cd_rsp
  31281. * @constructor
  31282. * @param {game.Ialtar_reset_cd_rsp=} [properties] Properties to set
  31283. */
  31284. function altar_reset_cd_rsp(properties) {
  31285. if (properties)
  31286. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31287. if (properties[keys[i]] != null)
  31288. this[keys[i]] = properties[keys[i]];
  31289. }
  31290. /**
  31291. * altar_reset_cd_rsp errno.
  31292. * @member {number|Long} errno
  31293. * @memberof game.altar_reset_cd_rsp
  31294. * @instance
  31295. */
  31296. altar_reset_cd_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31297. /**
  31298. * altar_reset_cd_rsp pos.
  31299. * @member {number|Long} pos
  31300. * @memberof game.altar_reset_cd_rsp
  31301. * @instance
  31302. */
  31303. altar_reset_cd_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31304. /**
  31305. * altar_reset_cd_rsp data.
  31306. * @member {game.Ialtar_info|null|undefined} data
  31307. * @memberof game.altar_reset_cd_rsp
  31308. * @instance
  31309. */
  31310. altar_reset_cd_rsp.prototype.data = null;
  31311. /**
  31312. * Creates a new altar_reset_cd_rsp instance using the specified properties.
  31313. * @function create
  31314. * @memberof game.altar_reset_cd_rsp
  31315. * @static
  31316. * @param {game.Ialtar_reset_cd_rsp=} [properties] Properties to set
  31317. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp instance
  31318. */
  31319. altar_reset_cd_rsp.create = function create(properties) {
  31320. return new altar_reset_cd_rsp(properties);
  31321. };
  31322. /**
  31323. * Encodes the specified altar_reset_cd_rsp message. Does not implicitly {@link game.altar_reset_cd_rsp.verify|verify} messages.
  31324. * @function encode
  31325. * @memberof game.altar_reset_cd_rsp
  31326. * @static
  31327. * @param {game.Ialtar_reset_cd_rsp} message altar_reset_cd_rsp message or plain object to encode
  31328. * @param {$protobuf.Writer} [writer] Writer to encode to
  31329. * @returns {$protobuf.Writer} Writer
  31330. */
  31331. altar_reset_cd_rsp.encode = function encode(message, writer) {
  31332. if (!writer)
  31333. writer = $Writer.create();
  31334. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  31335. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  31336. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  31337. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  31338. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  31339. $root.game.altar_info.encode(message.data, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  31340. return writer;
  31341. };
  31342. /**
  31343. * Encodes the specified altar_reset_cd_rsp message, length delimited. Does not implicitly {@link game.altar_reset_cd_rsp.verify|verify} messages.
  31344. * @function encodeDelimited
  31345. * @memberof game.altar_reset_cd_rsp
  31346. * @static
  31347. * @param {game.Ialtar_reset_cd_rsp} message altar_reset_cd_rsp message or plain object to encode
  31348. * @param {$protobuf.Writer} [writer] Writer to encode to
  31349. * @returns {$protobuf.Writer} Writer
  31350. */
  31351. altar_reset_cd_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  31352. return this.encode(message, writer).ldelim();
  31353. };
  31354. /**
  31355. * Decodes an altar_reset_cd_rsp message from the specified reader or buffer.
  31356. * @function decode
  31357. * @memberof game.altar_reset_cd_rsp
  31358. * @static
  31359. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31360. * @param {number} [length] Message length if known beforehand
  31361. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
  31362. * @throws {Error} If the payload is not a reader or valid buffer
  31363. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31364. */
  31365. altar_reset_cd_rsp.decode = function decode(reader, length) {
  31366. if (!(reader instanceof $Reader))
  31367. reader = $Reader.create(reader);
  31368. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_reset_cd_rsp();
  31369. while (reader.pos < end) {
  31370. let tag = reader.uint32();
  31371. switch (tag >>> 3) {
  31372. case 1:
  31373. message.errno = reader.int64();
  31374. break;
  31375. case 2:
  31376. message.pos = reader.int64();
  31377. break;
  31378. case 3:
  31379. message.data = $root.game.altar_info.decode(reader, reader.uint32());
  31380. break;
  31381. default:
  31382. reader.skipType(tag & 7);
  31383. break;
  31384. }
  31385. }
  31386. return message;
  31387. };
  31388. /**
  31389. * Decodes an altar_reset_cd_rsp message from the specified reader or buffer, length delimited.
  31390. * @function decodeDelimited
  31391. * @memberof game.altar_reset_cd_rsp
  31392. * @static
  31393. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31394. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
  31395. * @throws {Error} If the payload is not a reader or valid buffer
  31396. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31397. */
  31398. altar_reset_cd_rsp.decodeDelimited = function decodeDelimited(reader) {
  31399. if (!(reader instanceof $Reader))
  31400. reader = new $Reader(reader);
  31401. return this.decode(reader, reader.uint32());
  31402. };
  31403. /**
  31404. * Verifies an altar_reset_cd_rsp message.
  31405. * @function verify
  31406. * @memberof game.altar_reset_cd_rsp
  31407. * @static
  31408. * @param {Object.<string,*>} message Plain object to verify
  31409. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31410. */
  31411. altar_reset_cd_rsp.verify = function verify(message) {
  31412. if (typeof message !== "object" || message === null)
  31413. return "object expected";
  31414. if (message.errno != null && message.hasOwnProperty("errno"))
  31415. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  31416. return "errno: integer|Long expected";
  31417. if (message.pos != null && message.hasOwnProperty("pos"))
  31418. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  31419. return "pos: integer|Long expected";
  31420. if (message.data != null && message.hasOwnProperty("data")) {
  31421. let error = $root.game.altar_info.verify(message.data);
  31422. if (error)
  31423. return "data." + error;
  31424. }
  31425. return null;
  31426. };
  31427. /**
  31428. * Creates an altar_reset_cd_rsp message from a plain object. Also converts values to their respective internal types.
  31429. * @function fromObject
  31430. * @memberof game.altar_reset_cd_rsp
  31431. * @static
  31432. * @param {Object.<string,*>} object Plain object
  31433. * @returns {game.altar_reset_cd_rsp} altar_reset_cd_rsp
  31434. */
  31435. altar_reset_cd_rsp.fromObject = function fromObject(object) {
  31436. if (object instanceof $root.game.altar_reset_cd_rsp)
  31437. return object;
  31438. let message = new $root.game.altar_reset_cd_rsp();
  31439. if (object.errno != null)
  31440. if ($util.Long)
  31441. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  31442. else if (typeof object.errno === "string")
  31443. message.errno = parseInt(object.errno, 10);
  31444. else if (typeof object.errno === "number")
  31445. message.errno = object.errno;
  31446. else if (typeof object.errno === "object")
  31447. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  31448. if (object.pos != null)
  31449. if ($util.Long)
  31450. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  31451. else if (typeof object.pos === "string")
  31452. message.pos = parseInt(object.pos, 10);
  31453. else if (typeof object.pos === "number")
  31454. message.pos = object.pos;
  31455. else if (typeof object.pos === "object")
  31456. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  31457. if (object.data != null) {
  31458. if (typeof object.data !== "object")
  31459. throw TypeError(".game.altar_reset_cd_rsp.data: object expected");
  31460. message.data = $root.game.altar_info.fromObject(object.data);
  31461. }
  31462. return message;
  31463. };
  31464. /**
  31465. * Creates a plain object from an altar_reset_cd_rsp message. Also converts values to other types if specified.
  31466. * @function toObject
  31467. * @memberof game.altar_reset_cd_rsp
  31468. * @static
  31469. * @param {game.altar_reset_cd_rsp} message altar_reset_cd_rsp
  31470. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31471. * @returns {Object.<string,*>} Plain object
  31472. */
  31473. altar_reset_cd_rsp.toObject = function toObject(message, options) {
  31474. if (!options)
  31475. options = {};
  31476. let object = {};
  31477. if (options.defaults) {
  31478. if ($util.Long) {
  31479. let long = new $util.Long(0, 0, false);
  31480. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31481. } else
  31482. object.errno = options.longs === String ? "0" : 0;
  31483. if ($util.Long) {
  31484. let long = new $util.Long(0, 0, false);
  31485. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31486. } else
  31487. object.pos = options.longs === String ? "0" : 0;
  31488. object.data = null;
  31489. }
  31490. if (message.errno != null && message.hasOwnProperty("errno"))
  31491. if (typeof message.errno === "number")
  31492. object.errno = options.longs === String ? String(message.errno) : message.errno;
  31493. else
  31494. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  31495. if (message.pos != null && message.hasOwnProperty("pos"))
  31496. if (typeof message.pos === "number")
  31497. object.pos = options.longs === String ? String(message.pos) : message.pos;
  31498. else
  31499. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  31500. if (message.data != null && message.hasOwnProperty("data"))
  31501. object.data = $root.game.altar_info.toObject(message.data, options);
  31502. return object;
  31503. };
  31504. /**
  31505. * Converts this altar_reset_cd_rsp to JSON.
  31506. * @function toJSON
  31507. * @memberof game.altar_reset_cd_rsp
  31508. * @instance
  31509. * @returns {Object.<string,*>} JSON object
  31510. */
  31511. altar_reset_cd_rsp.prototype.toJSON = function toJSON() {
  31512. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31513. };
  31514. return altar_reset_cd_rsp;
  31515. })();
  31516. game.relic_data = (function() {
  31517. /**
  31518. * Properties of a relic_data.
  31519. * @memberof game
  31520. * @interface Irelic_data
  31521. */
  31522. /**
  31523. * Constructs a new relic_data.
  31524. * @memberof game
  31525. * @classdesc Represents a relic_data.
  31526. * @implements Irelic_data
  31527. * @constructor
  31528. * @param {game.Irelic_data=} [properties] Properties to set
  31529. */
  31530. function relic_data(properties) {
  31531. if (properties)
  31532. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31533. if (properties[keys[i]] != null)
  31534. this[keys[i]] = properties[keys[i]];
  31535. }
  31536. /**
  31537. * Creates a new relic_data instance using the specified properties.
  31538. * @function create
  31539. * @memberof game.relic_data
  31540. * @static
  31541. * @param {game.Irelic_data=} [properties] Properties to set
  31542. * @returns {game.relic_data} relic_data instance
  31543. */
  31544. relic_data.create = function create(properties) {
  31545. return new relic_data(properties);
  31546. };
  31547. /**
  31548. * Encodes the specified relic_data message. Does not implicitly {@link game.relic_data.verify|verify} messages.
  31549. * @function encode
  31550. * @memberof game.relic_data
  31551. * @static
  31552. * @param {game.Irelic_data} message relic_data message or plain object to encode
  31553. * @param {$protobuf.Writer} [writer] Writer to encode to
  31554. * @returns {$protobuf.Writer} Writer
  31555. */
  31556. relic_data.encode = function encode(message, writer) {
  31557. if (!writer)
  31558. writer = $Writer.create();
  31559. return writer;
  31560. };
  31561. /**
  31562. * Encodes the specified relic_data message, length delimited. Does not implicitly {@link game.relic_data.verify|verify} messages.
  31563. * @function encodeDelimited
  31564. * @memberof game.relic_data
  31565. * @static
  31566. * @param {game.Irelic_data} message relic_data message or plain object to encode
  31567. * @param {$protobuf.Writer} [writer] Writer to encode to
  31568. * @returns {$protobuf.Writer} Writer
  31569. */
  31570. relic_data.encodeDelimited = function encodeDelimited(message, writer) {
  31571. return this.encode(message, writer).ldelim();
  31572. };
  31573. /**
  31574. * Decodes a relic_data message from the specified reader or buffer.
  31575. * @function decode
  31576. * @memberof game.relic_data
  31577. * @static
  31578. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31579. * @param {number} [length] Message length if known beforehand
  31580. * @returns {game.relic_data} relic_data
  31581. * @throws {Error} If the payload is not a reader or valid buffer
  31582. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31583. */
  31584. relic_data.decode = function decode(reader, length) {
  31585. if (!(reader instanceof $Reader))
  31586. reader = $Reader.create(reader);
  31587. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data();
  31588. while (reader.pos < end) {
  31589. let tag = reader.uint32();
  31590. switch (tag >>> 3) {
  31591. default:
  31592. reader.skipType(tag & 7);
  31593. break;
  31594. }
  31595. }
  31596. return message;
  31597. };
  31598. /**
  31599. * Decodes a relic_data message from the specified reader or buffer, length delimited.
  31600. * @function decodeDelimited
  31601. * @memberof game.relic_data
  31602. * @static
  31603. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31604. * @returns {game.relic_data} relic_data
  31605. * @throws {Error} If the payload is not a reader or valid buffer
  31606. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31607. */
  31608. relic_data.decodeDelimited = function decodeDelimited(reader) {
  31609. if (!(reader instanceof $Reader))
  31610. reader = new $Reader(reader);
  31611. return this.decode(reader, reader.uint32());
  31612. };
  31613. /**
  31614. * Verifies a relic_data message.
  31615. * @function verify
  31616. * @memberof game.relic_data
  31617. * @static
  31618. * @param {Object.<string,*>} message Plain object to verify
  31619. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31620. */
  31621. relic_data.verify = function verify(message) {
  31622. if (typeof message !== "object" || message === null)
  31623. return "object expected";
  31624. return null;
  31625. };
  31626. /**
  31627. * Creates a relic_data message from a plain object. Also converts values to their respective internal types.
  31628. * @function fromObject
  31629. * @memberof game.relic_data
  31630. * @static
  31631. * @param {Object.<string,*>} object Plain object
  31632. * @returns {game.relic_data} relic_data
  31633. */
  31634. relic_data.fromObject = function fromObject(object) {
  31635. if (object instanceof $root.game.relic_data)
  31636. return object;
  31637. return new $root.game.relic_data();
  31638. };
  31639. /**
  31640. * Creates a plain object from a relic_data message. Also converts values to other types if specified.
  31641. * @function toObject
  31642. * @memberof game.relic_data
  31643. * @static
  31644. * @param {game.relic_data} message relic_data
  31645. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31646. * @returns {Object.<string,*>} Plain object
  31647. */
  31648. relic_data.toObject = function toObject() {
  31649. return {};
  31650. };
  31651. /**
  31652. * Converts this relic_data to JSON.
  31653. * @function toJSON
  31654. * @memberof game.relic_data
  31655. * @instance
  31656. * @returns {Object.<string,*>} JSON object
  31657. */
  31658. relic_data.prototype.toJSON = function toJSON() {
  31659. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31660. };
  31661. return relic_data;
  31662. })();
  31663. game.relic_data_rsp = (function() {
  31664. /**
  31665. * Properties of a relic_data_rsp.
  31666. * @memberof game
  31667. * @interface Irelic_data_rsp
  31668. * @property {number|Long|null} [errno] relic_data_rsp errno
  31669. */
  31670. /**
  31671. * Constructs a new relic_data_rsp.
  31672. * @memberof game
  31673. * @classdesc Represents a relic_data_rsp.
  31674. * @implements Irelic_data_rsp
  31675. * @constructor
  31676. * @param {game.Irelic_data_rsp=} [properties] Properties to set
  31677. */
  31678. function relic_data_rsp(properties) {
  31679. if (properties)
  31680. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31681. if (properties[keys[i]] != null)
  31682. this[keys[i]] = properties[keys[i]];
  31683. }
  31684. /**
  31685. * relic_data_rsp errno.
  31686. * @member {number|Long} errno
  31687. * @memberof game.relic_data_rsp
  31688. * @instance
  31689. */
  31690. relic_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31691. /**
  31692. * Creates a new relic_data_rsp instance using the specified properties.
  31693. * @function create
  31694. * @memberof game.relic_data_rsp
  31695. * @static
  31696. * @param {game.Irelic_data_rsp=} [properties] Properties to set
  31697. * @returns {game.relic_data_rsp} relic_data_rsp instance
  31698. */
  31699. relic_data_rsp.create = function create(properties) {
  31700. return new relic_data_rsp(properties);
  31701. };
  31702. /**
  31703. * Encodes the specified relic_data_rsp message. Does not implicitly {@link game.relic_data_rsp.verify|verify} messages.
  31704. * @function encode
  31705. * @memberof game.relic_data_rsp
  31706. * @static
  31707. * @param {game.Irelic_data_rsp} message relic_data_rsp message or plain object to encode
  31708. * @param {$protobuf.Writer} [writer] Writer to encode to
  31709. * @returns {$protobuf.Writer} Writer
  31710. */
  31711. relic_data_rsp.encode = function encode(message, writer) {
  31712. if (!writer)
  31713. writer = $Writer.create();
  31714. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  31715. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  31716. return writer;
  31717. };
  31718. /**
  31719. * Encodes the specified relic_data_rsp message, length delimited. Does not implicitly {@link game.relic_data_rsp.verify|verify} messages.
  31720. * @function encodeDelimited
  31721. * @memberof game.relic_data_rsp
  31722. * @static
  31723. * @param {game.Irelic_data_rsp} message relic_data_rsp message or plain object to encode
  31724. * @param {$protobuf.Writer} [writer] Writer to encode to
  31725. * @returns {$protobuf.Writer} Writer
  31726. */
  31727. relic_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  31728. return this.encode(message, writer).ldelim();
  31729. };
  31730. /**
  31731. * Decodes a relic_data_rsp message from the specified reader or buffer.
  31732. * @function decode
  31733. * @memberof game.relic_data_rsp
  31734. * @static
  31735. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31736. * @param {number} [length] Message length if known beforehand
  31737. * @returns {game.relic_data_rsp} relic_data_rsp
  31738. * @throws {Error} If the payload is not a reader or valid buffer
  31739. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31740. */
  31741. relic_data_rsp.decode = function decode(reader, length) {
  31742. if (!(reader instanceof $Reader))
  31743. reader = $Reader.create(reader);
  31744. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data_rsp();
  31745. while (reader.pos < end) {
  31746. let tag = reader.uint32();
  31747. switch (tag >>> 3) {
  31748. case 1:
  31749. message.errno = reader.int64();
  31750. break;
  31751. default:
  31752. reader.skipType(tag & 7);
  31753. break;
  31754. }
  31755. }
  31756. return message;
  31757. };
  31758. /**
  31759. * Decodes a relic_data_rsp message from the specified reader or buffer, length delimited.
  31760. * @function decodeDelimited
  31761. * @memberof game.relic_data_rsp
  31762. * @static
  31763. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31764. * @returns {game.relic_data_rsp} relic_data_rsp
  31765. * @throws {Error} If the payload is not a reader or valid buffer
  31766. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31767. */
  31768. relic_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  31769. if (!(reader instanceof $Reader))
  31770. reader = new $Reader(reader);
  31771. return this.decode(reader, reader.uint32());
  31772. };
  31773. /**
  31774. * Verifies a relic_data_rsp message.
  31775. * @function verify
  31776. * @memberof game.relic_data_rsp
  31777. * @static
  31778. * @param {Object.<string,*>} message Plain object to verify
  31779. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31780. */
  31781. relic_data_rsp.verify = function verify(message) {
  31782. if (typeof message !== "object" || message === null)
  31783. return "object expected";
  31784. if (message.errno != null && message.hasOwnProperty("errno"))
  31785. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  31786. return "errno: integer|Long expected";
  31787. return null;
  31788. };
  31789. /**
  31790. * Creates a relic_data_rsp message from a plain object. Also converts values to their respective internal types.
  31791. * @function fromObject
  31792. * @memberof game.relic_data_rsp
  31793. * @static
  31794. * @param {Object.<string,*>} object Plain object
  31795. * @returns {game.relic_data_rsp} relic_data_rsp
  31796. */
  31797. relic_data_rsp.fromObject = function fromObject(object) {
  31798. if (object instanceof $root.game.relic_data_rsp)
  31799. return object;
  31800. let message = new $root.game.relic_data_rsp();
  31801. if (object.errno != null)
  31802. if ($util.Long)
  31803. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  31804. else if (typeof object.errno === "string")
  31805. message.errno = parseInt(object.errno, 10);
  31806. else if (typeof object.errno === "number")
  31807. message.errno = object.errno;
  31808. else if (typeof object.errno === "object")
  31809. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  31810. return message;
  31811. };
  31812. /**
  31813. * Creates a plain object from a relic_data_rsp message. Also converts values to other types if specified.
  31814. * @function toObject
  31815. * @memberof game.relic_data_rsp
  31816. * @static
  31817. * @param {game.relic_data_rsp} message relic_data_rsp
  31818. * @param {$protobuf.IConversionOptions} [options] Conversion options
  31819. * @returns {Object.<string,*>} Plain object
  31820. */
  31821. relic_data_rsp.toObject = function toObject(message, options) {
  31822. if (!options)
  31823. options = {};
  31824. let object = {};
  31825. if (options.defaults)
  31826. if ($util.Long) {
  31827. let long = new $util.Long(0, 0, false);
  31828. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  31829. } else
  31830. object.errno = options.longs === String ? "0" : 0;
  31831. if (message.errno != null && message.hasOwnProperty("errno"))
  31832. if (typeof message.errno === "number")
  31833. object.errno = options.longs === String ? String(message.errno) : message.errno;
  31834. else
  31835. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  31836. return object;
  31837. };
  31838. /**
  31839. * Converts this relic_data_rsp to JSON.
  31840. * @function toJSON
  31841. * @memberof game.relic_data_rsp
  31842. * @instance
  31843. * @returns {Object.<string,*>} JSON object
  31844. */
  31845. relic_data_rsp.prototype.toJSON = function toJSON() {
  31846. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  31847. };
  31848. return relic_data_rsp;
  31849. })();
  31850. game.relic_next_pos = (function() {
  31851. /**
  31852. * Properties of a relic_next_pos.
  31853. * @memberof game
  31854. * @interface Irelic_next_pos
  31855. * @property {number|Long|null} [pos] relic_next_pos pos
  31856. */
  31857. /**
  31858. * Constructs a new relic_next_pos.
  31859. * @memberof game
  31860. * @classdesc Represents a relic_next_pos.
  31861. * @implements Irelic_next_pos
  31862. * @constructor
  31863. * @param {game.Irelic_next_pos=} [properties] Properties to set
  31864. */
  31865. function relic_next_pos(properties) {
  31866. if (properties)
  31867. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  31868. if (properties[keys[i]] != null)
  31869. this[keys[i]] = properties[keys[i]];
  31870. }
  31871. /**
  31872. * relic_next_pos pos.
  31873. * @member {number|Long} pos
  31874. * @memberof game.relic_next_pos
  31875. * @instance
  31876. */
  31877. relic_next_pos.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  31878. /**
  31879. * Creates a new relic_next_pos instance using the specified properties.
  31880. * @function create
  31881. * @memberof game.relic_next_pos
  31882. * @static
  31883. * @param {game.Irelic_next_pos=} [properties] Properties to set
  31884. * @returns {game.relic_next_pos} relic_next_pos instance
  31885. */
  31886. relic_next_pos.create = function create(properties) {
  31887. return new relic_next_pos(properties);
  31888. };
  31889. /**
  31890. * Encodes the specified relic_next_pos message. Does not implicitly {@link game.relic_next_pos.verify|verify} messages.
  31891. * @function encode
  31892. * @memberof game.relic_next_pos
  31893. * @static
  31894. * @param {game.Irelic_next_pos} message relic_next_pos message or plain object to encode
  31895. * @param {$protobuf.Writer} [writer] Writer to encode to
  31896. * @returns {$protobuf.Writer} Writer
  31897. */
  31898. relic_next_pos.encode = function encode(message, writer) {
  31899. if (!writer)
  31900. writer = $Writer.create();
  31901. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  31902. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  31903. return writer;
  31904. };
  31905. /**
  31906. * Encodes the specified relic_next_pos message, length delimited. Does not implicitly {@link game.relic_next_pos.verify|verify} messages.
  31907. * @function encodeDelimited
  31908. * @memberof game.relic_next_pos
  31909. * @static
  31910. * @param {game.Irelic_next_pos} message relic_next_pos message or plain object to encode
  31911. * @param {$protobuf.Writer} [writer] Writer to encode to
  31912. * @returns {$protobuf.Writer} Writer
  31913. */
  31914. relic_next_pos.encodeDelimited = function encodeDelimited(message, writer) {
  31915. return this.encode(message, writer).ldelim();
  31916. };
  31917. /**
  31918. * Decodes a relic_next_pos message from the specified reader or buffer.
  31919. * @function decode
  31920. * @memberof game.relic_next_pos
  31921. * @static
  31922. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31923. * @param {number} [length] Message length if known beforehand
  31924. * @returns {game.relic_next_pos} relic_next_pos
  31925. * @throws {Error} If the payload is not a reader or valid buffer
  31926. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31927. */
  31928. relic_next_pos.decode = function decode(reader, length) {
  31929. if (!(reader instanceof $Reader))
  31930. reader = $Reader.create(reader);
  31931. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_pos();
  31932. while (reader.pos < end) {
  31933. let tag = reader.uint32();
  31934. switch (tag >>> 3) {
  31935. case 1:
  31936. message.pos = reader.int64();
  31937. break;
  31938. default:
  31939. reader.skipType(tag & 7);
  31940. break;
  31941. }
  31942. }
  31943. return message;
  31944. };
  31945. /**
  31946. * Decodes a relic_next_pos message from the specified reader or buffer, length delimited.
  31947. * @function decodeDelimited
  31948. * @memberof game.relic_next_pos
  31949. * @static
  31950. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  31951. * @returns {game.relic_next_pos} relic_next_pos
  31952. * @throws {Error} If the payload is not a reader or valid buffer
  31953. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  31954. */
  31955. relic_next_pos.decodeDelimited = function decodeDelimited(reader) {
  31956. if (!(reader instanceof $Reader))
  31957. reader = new $Reader(reader);
  31958. return this.decode(reader, reader.uint32());
  31959. };
  31960. /**
  31961. * Verifies a relic_next_pos message.
  31962. * @function verify
  31963. * @memberof game.relic_next_pos
  31964. * @static
  31965. * @param {Object.<string,*>} message Plain object to verify
  31966. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  31967. */
  31968. relic_next_pos.verify = function verify(message) {
  31969. if (typeof message !== "object" || message === null)
  31970. return "object expected";
  31971. if (message.pos != null && message.hasOwnProperty("pos"))
  31972. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  31973. return "pos: integer|Long expected";
  31974. return null;
  31975. };
  31976. /**
  31977. * Creates a relic_next_pos message from a plain object. Also converts values to their respective internal types.
  31978. * @function fromObject
  31979. * @memberof game.relic_next_pos
  31980. * @static
  31981. * @param {Object.<string,*>} object Plain object
  31982. * @returns {game.relic_next_pos} relic_next_pos
  31983. */
  31984. relic_next_pos.fromObject = function fromObject(object) {
  31985. if (object instanceof $root.game.relic_next_pos)
  31986. return object;
  31987. let message = new $root.game.relic_next_pos();
  31988. if (object.pos != null)
  31989. if ($util.Long)
  31990. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  31991. else if (typeof object.pos === "string")
  31992. message.pos = parseInt(object.pos, 10);
  31993. else if (typeof object.pos === "number")
  31994. message.pos = object.pos;
  31995. else if (typeof object.pos === "object")
  31996. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  31997. return message;
  31998. };
  31999. /**
  32000. * Creates a plain object from a relic_next_pos message. Also converts values to other types if specified.
  32001. * @function toObject
  32002. * @memberof game.relic_next_pos
  32003. * @static
  32004. * @param {game.relic_next_pos} message relic_next_pos
  32005. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32006. * @returns {Object.<string,*>} Plain object
  32007. */
  32008. relic_next_pos.toObject = function toObject(message, options) {
  32009. if (!options)
  32010. options = {};
  32011. let object = {};
  32012. if (options.defaults)
  32013. if ($util.Long) {
  32014. let long = new $util.Long(0, 0, false);
  32015. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  32016. } else
  32017. object.pos = options.longs === String ? "0" : 0;
  32018. if (message.pos != null && message.hasOwnProperty("pos"))
  32019. if (typeof message.pos === "number")
  32020. object.pos = options.longs === String ? String(message.pos) : message.pos;
  32021. else
  32022. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  32023. return object;
  32024. };
  32025. /**
  32026. * Converts this relic_next_pos to JSON.
  32027. * @function toJSON
  32028. * @memberof game.relic_next_pos
  32029. * @instance
  32030. * @returns {Object.<string,*>} JSON object
  32031. */
  32032. relic_next_pos.prototype.toJSON = function toJSON() {
  32033. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32034. };
  32035. return relic_next_pos;
  32036. })();
  32037. game.relic_next_pos_rsp = (function() {
  32038. /**
  32039. * Properties of a relic_next_pos_rsp.
  32040. * @memberof game
  32041. * @interface Irelic_next_pos_rsp
  32042. * @property {number|Long|null} [errno] relic_next_pos_rsp errno
  32043. */
  32044. /**
  32045. * Constructs a new relic_next_pos_rsp.
  32046. * @memberof game
  32047. * @classdesc Represents a relic_next_pos_rsp.
  32048. * @implements Irelic_next_pos_rsp
  32049. * @constructor
  32050. * @param {game.Irelic_next_pos_rsp=} [properties] Properties to set
  32051. */
  32052. function relic_next_pos_rsp(properties) {
  32053. if (properties)
  32054. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32055. if (properties[keys[i]] != null)
  32056. this[keys[i]] = properties[keys[i]];
  32057. }
  32058. /**
  32059. * relic_next_pos_rsp errno.
  32060. * @member {number|Long} errno
  32061. * @memberof game.relic_next_pos_rsp
  32062. * @instance
  32063. */
  32064. relic_next_pos_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32065. /**
  32066. * Creates a new relic_next_pos_rsp instance using the specified properties.
  32067. * @function create
  32068. * @memberof game.relic_next_pos_rsp
  32069. * @static
  32070. * @param {game.Irelic_next_pos_rsp=} [properties] Properties to set
  32071. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp instance
  32072. */
  32073. relic_next_pos_rsp.create = function create(properties) {
  32074. return new relic_next_pos_rsp(properties);
  32075. };
  32076. /**
  32077. * Encodes the specified relic_next_pos_rsp message. Does not implicitly {@link game.relic_next_pos_rsp.verify|verify} messages.
  32078. * @function encode
  32079. * @memberof game.relic_next_pos_rsp
  32080. * @static
  32081. * @param {game.Irelic_next_pos_rsp} message relic_next_pos_rsp message or plain object to encode
  32082. * @param {$protobuf.Writer} [writer] Writer to encode to
  32083. * @returns {$protobuf.Writer} Writer
  32084. */
  32085. relic_next_pos_rsp.encode = function encode(message, writer) {
  32086. if (!writer)
  32087. writer = $Writer.create();
  32088. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  32089. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  32090. return writer;
  32091. };
  32092. /**
  32093. * Encodes the specified relic_next_pos_rsp message, length delimited. Does not implicitly {@link game.relic_next_pos_rsp.verify|verify} messages.
  32094. * @function encodeDelimited
  32095. * @memberof game.relic_next_pos_rsp
  32096. * @static
  32097. * @param {game.Irelic_next_pos_rsp} message relic_next_pos_rsp message or plain object to encode
  32098. * @param {$protobuf.Writer} [writer] Writer to encode to
  32099. * @returns {$protobuf.Writer} Writer
  32100. */
  32101. relic_next_pos_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  32102. return this.encode(message, writer).ldelim();
  32103. };
  32104. /**
  32105. * Decodes a relic_next_pos_rsp message from the specified reader or buffer.
  32106. * @function decode
  32107. * @memberof game.relic_next_pos_rsp
  32108. * @static
  32109. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32110. * @param {number} [length] Message length if known beforehand
  32111. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
  32112. * @throws {Error} If the payload is not a reader or valid buffer
  32113. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32114. */
  32115. relic_next_pos_rsp.decode = function decode(reader, length) {
  32116. if (!(reader instanceof $Reader))
  32117. reader = $Reader.create(reader);
  32118. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_pos_rsp();
  32119. while (reader.pos < end) {
  32120. let tag = reader.uint32();
  32121. switch (tag >>> 3) {
  32122. case 1:
  32123. message.errno = reader.int64();
  32124. break;
  32125. default:
  32126. reader.skipType(tag & 7);
  32127. break;
  32128. }
  32129. }
  32130. return message;
  32131. };
  32132. /**
  32133. * Decodes a relic_next_pos_rsp message from the specified reader or buffer, length delimited.
  32134. * @function decodeDelimited
  32135. * @memberof game.relic_next_pos_rsp
  32136. * @static
  32137. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32138. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
  32139. * @throws {Error} If the payload is not a reader or valid buffer
  32140. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32141. */
  32142. relic_next_pos_rsp.decodeDelimited = function decodeDelimited(reader) {
  32143. if (!(reader instanceof $Reader))
  32144. reader = new $Reader(reader);
  32145. return this.decode(reader, reader.uint32());
  32146. };
  32147. /**
  32148. * Verifies a relic_next_pos_rsp message.
  32149. * @function verify
  32150. * @memberof game.relic_next_pos_rsp
  32151. * @static
  32152. * @param {Object.<string,*>} message Plain object to verify
  32153. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32154. */
  32155. relic_next_pos_rsp.verify = function verify(message) {
  32156. if (typeof message !== "object" || message === null)
  32157. return "object expected";
  32158. if (message.errno != null && message.hasOwnProperty("errno"))
  32159. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  32160. return "errno: integer|Long expected";
  32161. return null;
  32162. };
  32163. /**
  32164. * Creates a relic_next_pos_rsp message from a plain object. Also converts values to their respective internal types.
  32165. * @function fromObject
  32166. * @memberof game.relic_next_pos_rsp
  32167. * @static
  32168. * @param {Object.<string,*>} object Plain object
  32169. * @returns {game.relic_next_pos_rsp} relic_next_pos_rsp
  32170. */
  32171. relic_next_pos_rsp.fromObject = function fromObject(object) {
  32172. if (object instanceof $root.game.relic_next_pos_rsp)
  32173. return object;
  32174. let message = new $root.game.relic_next_pos_rsp();
  32175. if (object.errno != null)
  32176. if ($util.Long)
  32177. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  32178. else if (typeof object.errno === "string")
  32179. message.errno = parseInt(object.errno, 10);
  32180. else if (typeof object.errno === "number")
  32181. message.errno = object.errno;
  32182. else if (typeof object.errno === "object")
  32183. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  32184. return message;
  32185. };
  32186. /**
  32187. * Creates a plain object from a relic_next_pos_rsp message. Also converts values to other types if specified.
  32188. * @function toObject
  32189. * @memberof game.relic_next_pos_rsp
  32190. * @static
  32191. * @param {game.relic_next_pos_rsp} message relic_next_pos_rsp
  32192. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32193. * @returns {Object.<string,*>} Plain object
  32194. */
  32195. relic_next_pos_rsp.toObject = function toObject(message, options) {
  32196. if (!options)
  32197. options = {};
  32198. let object = {};
  32199. if (options.defaults)
  32200. if ($util.Long) {
  32201. let long = new $util.Long(0, 0, false);
  32202. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  32203. } else
  32204. object.errno = options.longs === String ? "0" : 0;
  32205. if (message.errno != null && message.hasOwnProperty("errno"))
  32206. if (typeof message.errno === "number")
  32207. object.errno = options.longs === String ? String(message.errno) : message.errno;
  32208. else
  32209. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  32210. return object;
  32211. };
  32212. /**
  32213. * Converts this relic_next_pos_rsp to JSON.
  32214. * @function toJSON
  32215. * @memberof game.relic_next_pos_rsp
  32216. * @instance
  32217. * @returns {Object.<string,*>} JSON object
  32218. */
  32219. relic_next_pos_rsp.prototype.toJSON = function toJSON() {
  32220. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32221. };
  32222. return relic_next_pos_rsp;
  32223. })();
  32224. game.relic_next_layer = (function() {
  32225. /**
  32226. * Properties of a relic_next_layer.
  32227. * @memberof game
  32228. * @interface Irelic_next_layer
  32229. */
  32230. /**
  32231. * Constructs a new relic_next_layer.
  32232. * @memberof game
  32233. * @classdesc Represents a relic_next_layer.
  32234. * @implements Irelic_next_layer
  32235. * @constructor
  32236. * @param {game.Irelic_next_layer=} [properties] Properties to set
  32237. */
  32238. function relic_next_layer(properties) {
  32239. if (properties)
  32240. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32241. if (properties[keys[i]] != null)
  32242. this[keys[i]] = properties[keys[i]];
  32243. }
  32244. /**
  32245. * Creates a new relic_next_layer instance using the specified properties.
  32246. * @function create
  32247. * @memberof game.relic_next_layer
  32248. * @static
  32249. * @param {game.Irelic_next_layer=} [properties] Properties to set
  32250. * @returns {game.relic_next_layer} relic_next_layer instance
  32251. */
  32252. relic_next_layer.create = function create(properties) {
  32253. return new relic_next_layer(properties);
  32254. };
  32255. /**
  32256. * Encodes the specified relic_next_layer message. Does not implicitly {@link game.relic_next_layer.verify|verify} messages.
  32257. * @function encode
  32258. * @memberof game.relic_next_layer
  32259. * @static
  32260. * @param {game.Irelic_next_layer} message relic_next_layer message or plain object to encode
  32261. * @param {$protobuf.Writer} [writer] Writer to encode to
  32262. * @returns {$protobuf.Writer} Writer
  32263. */
  32264. relic_next_layer.encode = function encode(message, writer) {
  32265. if (!writer)
  32266. writer = $Writer.create();
  32267. return writer;
  32268. };
  32269. /**
  32270. * Encodes the specified relic_next_layer message, length delimited. Does not implicitly {@link game.relic_next_layer.verify|verify} messages.
  32271. * @function encodeDelimited
  32272. * @memberof game.relic_next_layer
  32273. * @static
  32274. * @param {game.Irelic_next_layer} message relic_next_layer message or plain object to encode
  32275. * @param {$protobuf.Writer} [writer] Writer to encode to
  32276. * @returns {$protobuf.Writer} Writer
  32277. */
  32278. relic_next_layer.encodeDelimited = function encodeDelimited(message, writer) {
  32279. return this.encode(message, writer).ldelim();
  32280. };
  32281. /**
  32282. * Decodes a relic_next_layer message from the specified reader or buffer.
  32283. * @function decode
  32284. * @memberof game.relic_next_layer
  32285. * @static
  32286. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32287. * @param {number} [length] Message length if known beforehand
  32288. * @returns {game.relic_next_layer} relic_next_layer
  32289. * @throws {Error} If the payload is not a reader or valid buffer
  32290. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32291. */
  32292. relic_next_layer.decode = function decode(reader, length) {
  32293. if (!(reader instanceof $Reader))
  32294. reader = $Reader.create(reader);
  32295. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_layer();
  32296. while (reader.pos < end) {
  32297. let tag = reader.uint32();
  32298. switch (tag >>> 3) {
  32299. default:
  32300. reader.skipType(tag & 7);
  32301. break;
  32302. }
  32303. }
  32304. return message;
  32305. };
  32306. /**
  32307. * Decodes a relic_next_layer message from the specified reader or buffer, length delimited.
  32308. * @function decodeDelimited
  32309. * @memberof game.relic_next_layer
  32310. * @static
  32311. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32312. * @returns {game.relic_next_layer} relic_next_layer
  32313. * @throws {Error} If the payload is not a reader or valid buffer
  32314. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32315. */
  32316. relic_next_layer.decodeDelimited = function decodeDelimited(reader) {
  32317. if (!(reader instanceof $Reader))
  32318. reader = new $Reader(reader);
  32319. return this.decode(reader, reader.uint32());
  32320. };
  32321. /**
  32322. * Verifies a relic_next_layer message.
  32323. * @function verify
  32324. * @memberof game.relic_next_layer
  32325. * @static
  32326. * @param {Object.<string,*>} message Plain object to verify
  32327. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32328. */
  32329. relic_next_layer.verify = function verify(message) {
  32330. if (typeof message !== "object" || message === null)
  32331. return "object expected";
  32332. return null;
  32333. };
  32334. /**
  32335. * Creates a relic_next_layer message from a plain object. Also converts values to their respective internal types.
  32336. * @function fromObject
  32337. * @memberof game.relic_next_layer
  32338. * @static
  32339. * @param {Object.<string,*>} object Plain object
  32340. * @returns {game.relic_next_layer} relic_next_layer
  32341. */
  32342. relic_next_layer.fromObject = function fromObject(object) {
  32343. if (object instanceof $root.game.relic_next_layer)
  32344. return object;
  32345. return new $root.game.relic_next_layer();
  32346. };
  32347. /**
  32348. * Creates a plain object from a relic_next_layer message. Also converts values to other types if specified.
  32349. * @function toObject
  32350. * @memberof game.relic_next_layer
  32351. * @static
  32352. * @param {game.relic_next_layer} message relic_next_layer
  32353. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32354. * @returns {Object.<string,*>} Plain object
  32355. */
  32356. relic_next_layer.toObject = function toObject() {
  32357. return {};
  32358. };
  32359. /**
  32360. * Converts this relic_next_layer to JSON.
  32361. * @function toJSON
  32362. * @memberof game.relic_next_layer
  32363. * @instance
  32364. * @returns {Object.<string,*>} JSON object
  32365. */
  32366. relic_next_layer.prototype.toJSON = function toJSON() {
  32367. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32368. };
  32369. return relic_next_layer;
  32370. })();
  32371. game.relic_next_layer_rsp = (function() {
  32372. /**
  32373. * Properties of a relic_next_layer_rsp.
  32374. * @memberof game
  32375. * @interface Irelic_next_layer_rsp
  32376. * @property {number|Long|null} [errno] relic_next_layer_rsp errno
  32377. */
  32378. /**
  32379. * Constructs a new relic_next_layer_rsp.
  32380. * @memberof game
  32381. * @classdesc Represents a relic_next_layer_rsp.
  32382. * @implements Irelic_next_layer_rsp
  32383. * @constructor
  32384. * @param {game.Irelic_next_layer_rsp=} [properties] Properties to set
  32385. */
  32386. function relic_next_layer_rsp(properties) {
  32387. if (properties)
  32388. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32389. if (properties[keys[i]] != null)
  32390. this[keys[i]] = properties[keys[i]];
  32391. }
  32392. /**
  32393. * relic_next_layer_rsp errno.
  32394. * @member {number|Long} errno
  32395. * @memberof game.relic_next_layer_rsp
  32396. * @instance
  32397. */
  32398. relic_next_layer_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32399. /**
  32400. * Creates a new relic_next_layer_rsp instance using the specified properties.
  32401. * @function create
  32402. * @memberof game.relic_next_layer_rsp
  32403. * @static
  32404. * @param {game.Irelic_next_layer_rsp=} [properties] Properties to set
  32405. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp instance
  32406. */
  32407. relic_next_layer_rsp.create = function create(properties) {
  32408. return new relic_next_layer_rsp(properties);
  32409. };
  32410. /**
  32411. * Encodes the specified relic_next_layer_rsp message. Does not implicitly {@link game.relic_next_layer_rsp.verify|verify} messages.
  32412. * @function encode
  32413. * @memberof game.relic_next_layer_rsp
  32414. * @static
  32415. * @param {game.Irelic_next_layer_rsp} message relic_next_layer_rsp message or plain object to encode
  32416. * @param {$protobuf.Writer} [writer] Writer to encode to
  32417. * @returns {$protobuf.Writer} Writer
  32418. */
  32419. relic_next_layer_rsp.encode = function encode(message, writer) {
  32420. if (!writer)
  32421. writer = $Writer.create();
  32422. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  32423. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  32424. return writer;
  32425. };
  32426. /**
  32427. * Encodes the specified relic_next_layer_rsp message, length delimited. Does not implicitly {@link game.relic_next_layer_rsp.verify|verify} messages.
  32428. * @function encodeDelimited
  32429. * @memberof game.relic_next_layer_rsp
  32430. * @static
  32431. * @param {game.Irelic_next_layer_rsp} message relic_next_layer_rsp message or plain object to encode
  32432. * @param {$protobuf.Writer} [writer] Writer to encode to
  32433. * @returns {$protobuf.Writer} Writer
  32434. */
  32435. relic_next_layer_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  32436. return this.encode(message, writer).ldelim();
  32437. };
  32438. /**
  32439. * Decodes a relic_next_layer_rsp message from the specified reader or buffer.
  32440. * @function decode
  32441. * @memberof game.relic_next_layer_rsp
  32442. * @static
  32443. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32444. * @param {number} [length] Message length if known beforehand
  32445. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
  32446. * @throws {Error} If the payload is not a reader or valid buffer
  32447. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32448. */
  32449. relic_next_layer_rsp.decode = function decode(reader, length) {
  32450. if (!(reader instanceof $Reader))
  32451. reader = $Reader.create(reader);
  32452. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_next_layer_rsp();
  32453. while (reader.pos < end) {
  32454. let tag = reader.uint32();
  32455. switch (tag >>> 3) {
  32456. case 1:
  32457. message.errno = reader.int64();
  32458. break;
  32459. default:
  32460. reader.skipType(tag & 7);
  32461. break;
  32462. }
  32463. }
  32464. return message;
  32465. };
  32466. /**
  32467. * Decodes a relic_next_layer_rsp message from the specified reader or buffer, length delimited.
  32468. * @function decodeDelimited
  32469. * @memberof game.relic_next_layer_rsp
  32470. * @static
  32471. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32472. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
  32473. * @throws {Error} If the payload is not a reader or valid buffer
  32474. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32475. */
  32476. relic_next_layer_rsp.decodeDelimited = function decodeDelimited(reader) {
  32477. if (!(reader instanceof $Reader))
  32478. reader = new $Reader(reader);
  32479. return this.decode(reader, reader.uint32());
  32480. };
  32481. /**
  32482. * Verifies a relic_next_layer_rsp message.
  32483. * @function verify
  32484. * @memberof game.relic_next_layer_rsp
  32485. * @static
  32486. * @param {Object.<string,*>} message Plain object to verify
  32487. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32488. */
  32489. relic_next_layer_rsp.verify = function verify(message) {
  32490. if (typeof message !== "object" || message === null)
  32491. return "object expected";
  32492. if (message.errno != null && message.hasOwnProperty("errno"))
  32493. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  32494. return "errno: integer|Long expected";
  32495. return null;
  32496. };
  32497. /**
  32498. * Creates a relic_next_layer_rsp message from a plain object. Also converts values to their respective internal types.
  32499. * @function fromObject
  32500. * @memberof game.relic_next_layer_rsp
  32501. * @static
  32502. * @param {Object.<string,*>} object Plain object
  32503. * @returns {game.relic_next_layer_rsp} relic_next_layer_rsp
  32504. */
  32505. relic_next_layer_rsp.fromObject = function fromObject(object) {
  32506. if (object instanceof $root.game.relic_next_layer_rsp)
  32507. return object;
  32508. let message = new $root.game.relic_next_layer_rsp();
  32509. if (object.errno != null)
  32510. if ($util.Long)
  32511. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  32512. else if (typeof object.errno === "string")
  32513. message.errno = parseInt(object.errno, 10);
  32514. else if (typeof object.errno === "number")
  32515. message.errno = object.errno;
  32516. else if (typeof object.errno === "object")
  32517. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  32518. return message;
  32519. };
  32520. /**
  32521. * Creates a plain object from a relic_next_layer_rsp message. Also converts values to other types if specified.
  32522. * @function toObject
  32523. * @memberof game.relic_next_layer_rsp
  32524. * @static
  32525. * @param {game.relic_next_layer_rsp} message relic_next_layer_rsp
  32526. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32527. * @returns {Object.<string,*>} Plain object
  32528. */
  32529. relic_next_layer_rsp.toObject = function toObject(message, options) {
  32530. if (!options)
  32531. options = {};
  32532. let object = {};
  32533. if (options.defaults)
  32534. if ($util.Long) {
  32535. let long = new $util.Long(0, 0, false);
  32536. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  32537. } else
  32538. object.errno = options.longs === String ? "0" : 0;
  32539. if (message.errno != null && message.hasOwnProperty("errno"))
  32540. if (typeof message.errno === "number")
  32541. object.errno = options.longs === String ? String(message.errno) : message.errno;
  32542. else
  32543. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  32544. return object;
  32545. };
  32546. /**
  32547. * Converts this relic_next_layer_rsp to JSON.
  32548. * @function toJSON
  32549. * @memberof game.relic_next_layer_rsp
  32550. * @instance
  32551. * @returns {Object.<string,*>} JSON object
  32552. */
  32553. relic_next_layer_rsp.prototype.toJSON = function toJSON() {
  32554. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32555. };
  32556. return relic_next_layer_rsp;
  32557. })();
  32558. game.relic_select_buff = (function() {
  32559. /**
  32560. * Properties of a relic_select_buff.
  32561. * @memberof game
  32562. * @interface Irelic_select_buff
  32563. */
  32564. /**
  32565. * Constructs a new relic_select_buff.
  32566. * @memberof game
  32567. * @classdesc Represents a relic_select_buff.
  32568. * @implements Irelic_select_buff
  32569. * @constructor
  32570. * @param {game.Irelic_select_buff=} [properties] Properties to set
  32571. */
  32572. function relic_select_buff(properties) {
  32573. if (properties)
  32574. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32575. if (properties[keys[i]] != null)
  32576. this[keys[i]] = properties[keys[i]];
  32577. }
  32578. /**
  32579. * Creates a new relic_select_buff instance using the specified properties.
  32580. * @function create
  32581. * @memberof game.relic_select_buff
  32582. * @static
  32583. * @param {game.Irelic_select_buff=} [properties] Properties to set
  32584. * @returns {game.relic_select_buff} relic_select_buff instance
  32585. */
  32586. relic_select_buff.create = function create(properties) {
  32587. return new relic_select_buff(properties);
  32588. };
  32589. /**
  32590. * Encodes the specified relic_select_buff message. Does not implicitly {@link game.relic_select_buff.verify|verify} messages.
  32591. * @function encode
  32592. * @memberof game.relic_select_buff
  32593. * @static
  32594. * @param {game.Irelic_select_buff} message relic_select_buff message or plain object to encode
  32595. * @param {$protobuf.Writer} [writer] Writer to encode to
  32596. * @returns {$protobuf.Writer} Writer
  32597. */
  32598. relic_select_buff.encode = function encode(message, writer) {
  32599. if (!writer)
  32600. writer = $Writer.create();
  32601. return writer;
  32602. };
  32603. /**
  32604. * Encodes the specified relic_select_buff message, length delimited. Does not implicitly {@link game.relic_select_buff.verify|verify} messages.
  32605. * @function encodeDelimited
  32606. * @memberof game.relic_select_buff
  32607. * @static
  32608. * @param {game.Irelic_select_buff} message relic_select_buff message or plain object to encode
  32609. * @param {$protobuf.Writer} [writer] Writer to encode to
  32610. * @returns {$protobuf.Writer} Writer
  32611. */
  32612. relic_select_buff.encodeDelimited = function encodeDelimited(message, writer) {
  32613. return this.encode(message, writer).ldelim();
  32614. };
  32615. /**
  32616. * Decodes a relic_select_buff message from the specified reader or buffer.
  32617. * @function decode
  32618. * @memberof game.relic_select_buff
  32619. * @static
  32620. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32621. * @param {number} [length] Message length if known beforehand
  32622. * @returns {game.relic_select_buff} relic_select_buff
  32623. * @throws {Error} If the payload is not a reader or valid buffer
  32624. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32625. */
  32626. relic_select_buff.decode = function decode(reader, length) {
  32627. if (!(reader instanceof $Reader))
  32628. reader = $Reader.create(reader);
  32629. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_select_buff();
  32630. while (reader.pos < end) {
  32631. let tag = reader.uint32();
  32632. switch (tag >>> 3) {
  32633. default:
  32634. reader.skipType(tag & 7);
  32635. break;
  32636. }
  32637. }
  32638. return message;
  32639. };
  32640. /**
  32641. * Decodes a relic_select_buff message from the specified reader or buffer, length delimited.
  32642. * @function decodeDelimited
  32643. * @memberof game.relic_select_buff
  32644. * @static
  32645. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32646. * @returns {game.relic_select_buff} relic_select_buff
  32647. * @throws {Error} If the payload is not a reader or valid buffer
  32648. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32649. */
  32650. relic_select_buff.decodeDelimited = function decodeDelimited(reader) {
  32651. if (!(reader instanceof $Reader))
  32652. reader = new $Reader(reader);
  32653. return this.decode(reader, reader.uint32());
  32654. };
  32655. /**
  32656. * Verifies a relic_select_buff message.
  32657. * @function verify
  32658. * @memberof game.relic_select_buff
  32659. * @static
  32660. * @param {Object.<string,*>} message Plain object to verify
  32661. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32662. */
  32663. relic_select_buff.verify = function verify(message) {
  32664. if (typeof message !== "object" || message === null)
  32665. return "object expected";
  32666. return null;
  32667. };
  32668. /**
  32669. * Creates a relic_select_buff message from a plain object. Also converts values to their respective internal types.
  32670. * @function fromObject
  32671. * @memberof game.relic_select_buff
  32672. * @static
  32673. * @param {Object.<string,*>} object Plain object
  32674. * @returns {game.relic_select_buff} relic_select_buff
  32675. */
  32676. relic_select_buff.fromObject = function fromObject(object) {
  32677. if (object instanceof $root.game.relic_select_buff)
  32678. return object;
  32679. return new $root.game.relic_select_buff();
  32680. };
  32681. /**
  32682. * Creates a plain object from a relic_select_buff message. Also converts values to other types if specified.
  32683. * @function toObject
  32684. * @memberof game.relic_select_buff
  32685. * @static
  32686. * @param {game.relic_select_buff} message relic_select_buff
  32687. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32688. * @returns {Object.<string,*>} Plain object
  32689. */
  32690. relic_select_buff.toObject = function toObject() {
  32691. return {};
  32692. };
  32693. /**
  32694. * Converts this relic_select_buff to JSON.
  32695. * @function toJSON
  32696. * @memberof game.relic_select_buff
  32697. * @instance
  32698. * @returns {Object.<string,*>} JSON object
  32699. */
  32700. relic_select_buff.prototype.toJSON = function toJSON() {
  32701. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32702. };
  32703. return relic_select_buff;
  32704. })();
  32705. game.relic_select_buff_rsp = (function() {
  32706. /**
  32707. * Properties of a relic_select_buff_rsp.
  32708. * @memberof game
  32709. * @interface Irelic_select_buff_rsp
  32710. * @property {number|Long|null} [errno] relic_select_buff_rsp errno
  32711. */
  32712. /**
  32713. * Constructs a new relic_select_buff_rsp.
  32714. * @memberof game
  32715. * @classdesc Represents a relic_select_buff_rsp.
  32716. * @implements Irelic_select_buff_rsp
  32717. * @constructor
  32718. * @param {game.Irelic_select_buff_rsp=} [properties] Properties to set
  32719. */
  32720. function relic_select_buff_rsp(properties) {
  32721. if (properties)
  32722. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32723. if (properties[keys[i]] != null)
  32724. this[keys[i]] = properties[keys[i]];
  32725. }
  32726. /**
  32727. * relic_select_buff_rsp errno.
  32728. * @member {number|Long} errno
  32729. * @memberof game.relic_select_buff_rsp
  32730. * @instance
  32731. */
  32732. relic_select_buff_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32733. /**
  32734. * Creates a new relic_select_buff_rsp instance using the specified properties.
  32735. * @function create
  32736. * @memberof game.relic_select_buff_rsp
  32737. * @static
  32738. * @param {game.Irelic_select_buff_rsp=} [properties] Properties to set
  32739. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp instance
  32740. */
  32741. relic_select_buff_rsp.create = function create(properties) {
  32742. return new relic_select_buff_rsp(properties);
  32743. };
  32744. /**
  32745. * Encodes the specified relic_select_buff_rsp message. Does not implicitly {@link game.relic_select_buff_rsp.verify|verify} messages.
  32746. * @function encode
  32747. * @memberof game.relic_select_buff_rsp
  32748. * @static
  32749. * @param {game.Irelic_select_buff_rsp} message relic_select_buff_rsp message or plain object to encode
  32750. * @param {$protobuf.Writer} [writer] Writer to encode to
  32751. * @returns {$protobuf.Writer} Writer
  32752. */
  32753. relic_select_buff_rsp.encode = function encode(message, writer) {
  32754. if (!writer)
  32755. writer = $Writer.create();
  32756. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  32757. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  32758. return writer;
  32759. };
  32760. /**
  32761. * Encodes the specified relic_select_buff_rsp message, length delimited. Does not implicitly {@link game.relic_select_buff_rsp.verify|verify} messages.
  32762. * @function encodeDelimited
  32763. * @memberof game.relic_select_buff_rsp
  32764. * @static
  32765. * @param {game.Irelic_select_buff_rsp} message relic_select_buff_rsp message or plain object to encode
  32766. * @param {$protobuf.Writer} [writer] Writer to encode to
  32767. * @returns {$protobuf.Writer} Writer
  32768. */
  32769. relic_select_buff_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  32770. return this.encode(message, writer).ldelim();
  32771. };
  32772. /**
  32773. * Decodes a relic_select_buff_rsp message from the specified reader or buffer.
  32774. * @function decode
  32775. * @memberof game.relic_select_buff_rsp
  32776. * @static
  32777. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32778. * @param {number} [length] Message length if known beforehand
  32779. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
  32780. * @throws {Error} If the payload is not a reader or valid buffer
  32781. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32782. */
  32783. relic_select_buff_rsp.decode = function decode(reader, length) {
  32784. if (!(reader instanceof $Reader))
  32785. reader = $Reader.create(reader);
  32786. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_select_buff_rsp();
  32787. while (reader.pos < end) {
  32788. let tag = reader.uint32();
  32789. switch (tag >>> 3) {
  32790. case 1:
  32791. message.errno = reader.int64();
  32792. break;
  32793. default:
  32794. reader.skipType(tag & 7);
  32795. break;
  32796. }
  32797. }
  32798. return message;
  32799. };
  32800. /**
  32801. * Decodes a relic_select_buff_rsp message from the specified reader or buffer, length delimited.
  32802. * @function decodeDelimited
  32803. * @memberof game.relic_select_buff_rsp
  32804. * @static
  32805. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32806. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
  32807. * @throws {Error} If the payload is not a reader or valid buffer
  32808. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32809. */
  32810. relic_select_buff_rsp.decodeDelimited = function decodeDelimited(reader) {
  32811. if (!(reader instanceof $Reader))
  32812. reader = new $Reader(reader);
  32813. return this.decode(reader, reader.uint32());
  32814. };
  32815. /**
  32816. * Verifies a relic_select_buff_rsp message.
  32817. * @function verify
  32818. * @memberof game.relic_select_buff_rsp
  32819. * @static
  32820. * @param {Object.<string,*>} message Plain object to verify
  32821. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  32822. */
  32823. relic_select_buff_rsp.verify = function verify(message) {
  32824. if (typeof message !== "object" || message === null)
  32825. return "object expected";
  32826. if (message.errno != null && message.hasOwnProperty("errno"))
  32827. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  32828. return "errno: integer|Long expected";
  32829. return null;
  32830. };
  32831. /**
  32832. * Creates a relic_select_buff_rsp message from a plain object. Also converts values to their respective internal types.
  32833. * @function fromObject
  32834. * @memberof game.relic_select_buff_rsp
  32835. * @static
  32836. * @param {Object.<string,*>} object Plain object
  32837. * @returns {game.relic_select_buff_rsp} relic_select_buff_rsp
  32838. */
  32839. relic_select_buff_rsp.fromObject = function fromObject(object) {
  32840. if (object instanceof $root.game.relic_select_buff_rsp)
  32841. return object;
  32842. let message = new $root.game.relic_select_buff_rsp();
  32843. if (object.errno != null)
  32844. if ($util.Long)
  32845. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  32846. else if (typeof object.errno === "string")
  32847. message.errno = parseInt(object.errno, 10);
  32848. else if (typeof object.errno === "number")
  32849. message.errno = object.errno;
  32850. else if (typeof object.errno === "object")
  32851. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  32852. return message;
  32853. };
  32854. /**
  32855. * Creates a plain object from a relic_select_buff_rsp message. Also converts values to other types if specified.
  32856. * @function toObject
  32857. * @memberof game.relic_select_buff_rsp
  32858. * @static
  32859. * @param {game.relic_select_buff_rsp} message relic_select_buff_rsp
  32860. * @param {$protobuf.IConversionOptions} [options] Conversion options
  32861. * @returns {Object.<string,*>} Plain object
  32862. */
  32863. relic_select_buff_rsp.toObject = function toObject(message, options) {
  32864. if (!options)
  32865. options = {};
  32866. let object = {};
  32867. if (options.defaults)
  32868. if ($util.Long) {
  32869. let long = new $util.Long(0, 0, false);
  32870. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  32871. } else
  32872. object.errno = options.longs === String ? "0" : 0;
  32873. if (message.errno != null && message.hasOwnProperty("errno"))
  32874. if (typeof message.errno === "number")
  32875. object.errno = options.longs === String ? String(message.errno) : message.errno;
  32876. else
  32877. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  32878. return object;
  32879. };
  32880. /**
  32881. * Converts this relic_select_buff_rsp to JSON.
  32882. * @function toJSON
  32883. * @memberof game.relic_select_buff_rsp
  32884. * @instance
  32885. * @returns {Object.<string,*>} JSON object
  32886. */
  32887. relic_select_buff_rsp.prototype.toJSON = function toJSON() {
  32888. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  32889. };
  32890. return relic_select_buff_rsp;
  32891. })();
  32892. game.relic_reset = (function() {
  32893. /**
  32894. * Properties of a relic_reset.
  32895. * @memberof game
  32896. * @interface Irelic_reset
  32897. * @property {number|Long|null} [difficulty] relic_reset difficulty
  32898. */
  32899. /**
  32900. * Constructs a new relic_reset.
  32901. * @memberof game
  32902. * @classdesc Represents a relic_reset.
  32903. * @implements Irelic_reset
  32904. * @constructor
  32905. * @param {game.Irelic_reset=} [properties] Properties to set
  32906. */
  32907. function relic_reset(properties) {
  32908. if (properties)
  32909. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  32910. if (properties[keys[i]] != null)
  32911. this[keys[i]] = properties[keys[i]];
  32912. }
  32913. /**
  32914. * relic_reset difficulty.
  32915. * @member {number|Long} difficulty
  32916. * @memberof game.relic_reset
  32917. * @instance
  32918. */
  32919. relic_reset.prototype.difficulty = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  32920. /**
  32921. * Creates a new relic_reset instance using the specified properties.
  32922. * @function create
  32923. * @memberof game.relic_reset
  32924. * @static
  32925. * @param {game.Irelic_reset=} [properties] Properties to set
  32926. * @returns {game.relic_reset} relic_reset instance
  32927. */
  32928. relic_reset.create = function create(properties) {
  32929. return new relic_reset(properties);
  32930. };
  32931. /**
  32932. * Encodes the specified relic_reset message. Does not implicitly {@link game.relic_reset.verify|verify} messages.
  32933. * @function encode
  32934. * @memberof game.relic_reset
  32935. * @static
  32936. * @param {game.Irelic_reset} message relic_reset message or plain object to encode
  32937. * @param {$protobuf.Writer} [writer] Writer to encode to
  32938. * @returns {$protobuf.Writer} Writer
  32939. */
  32940. relic_reset.encode = function encode(message, writer) {
  32941. if (!writer)
  32942. writer = $Writer.create();
  32943. if (message.difficulty != null && Object.hasOwnProperty.call(message, "difficulty"))
  32944. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.difficulty);
  32945. return writer;
  32946. };
  32947. /**
  32948. * Encodes the specified relic_reset message, length delimited. Does not implicitly {@link game.relic_reset.verify|verify} messages.
  32949. * @function encodeDelimited
  32950. * @memberof game.relic_reset
  32951. * @static
  32952. * @param {game.Irelic_reset} message relic_reset message or plain object to encode
  32953. * @param {$protobuf.Writer} [writer] Writer to encode to
  32954. * @returns {$protobuf.Writer} Writer
  32955. */
  32956. relic_reset.encodeDelimited = function encodeDelimited(message, writer) {
  32957. return this.encode(message, writer).ldelim();
  32958. };
  32959. /**
  32960. * Decodes a relic_reset message from the specified reader or buffer.
  32961. * @function decode
  32962. * @memberof game.relic_reset
  32963. * @static
  32964. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32965. * @param {number} [length] Message length if known beforehand
  32966. * @returns {game.relic_reset} relic_reset
  32967. * @throws {Error} If the payload is not a reader or valid buffer
  32968. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32969. */
  32970. relic_reset.decode = function decode(reader, length) {
  32971. if (!(reader instanceof $Reader))
  32972. reader = $Reader.create(reader);
  32973. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_reset();
  32974. while (reader.pos < end) {
  32975. let tag = reader.uint32();
  32976. switch (tag >>> 3) {
  32977. case 1:
  32978. message.difficulty = reader.int64();
  32979. break;
  32980. default:
  32981. reader.skipType(tag & 7);
  32982. break;
  32983. }
  32984. }
  32985. return message;
  32986. };
  32987. /**
  32988. * Decodes a relic_reset message from the specified reader or buffer, length delimited.
  32989. * @function decodeDelimited
  32990. * @memberof game.relic_reset
  32991. * @static
  32992. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  32993. * @returns {game.relic_reset} relic_reset
  32994. * @throws {Error} If the payload is not a reader or valid buffer
  32995. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  32996. */
  32997. relic_reset.decodeDelimited = function decodeDelimited(reader) {
  32998. if (!(reader instanceof $Reader))
  32999. reader = new $Reader(reader);
  33000. return this.decode(reader, reader.uint32());
  33001. };
  33002. /**
  33003. * Verifies a relic_reset message.
  33004. * @function verify
  33005. * @memberof game.relic_reset
  33006. * @static
  33007. * @param {Object.<string,*>} message Plain object to verify
  33008. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33009. */
  33010. relic_reset.verify = function verify(message) {
  33011. if (typeof message !== "object" || message === null)
  33012. return "object expected";
  33013. if (message.difficulty != null && message.hasOwnProperty("difficulty"))
  33014. if (!$util.isInteger(message.difficulty) && !(message.difficulty && $util.isInteger(message.difficulty.low) && $util.isInteger(message.difficulty.high)))
  33015. return "difficulty: integer|Long expected";
  33016. return null;
  33017. };
  33018. /**
  33019. * Creates a relic_reset message from a plain object. Also converts values to their respective internal types.
  33020. * @function fromObject
  33021. * @memberof game.relic_reset
  33022. * @static
  33023. * @param {Object.<string,*>} object Plain object
  33024. * @returns {game.relic_reset} relic_reset
  33025. */
  33026. relic_reset.fromObject = function fromObject(object) {
  33027. if (object instanceof $root.game.relic_reset)
  33028. return object;
  33029. let message = new $root.game.relic_reset();
  33030. if (object.difficulty != null)
  33031. if ($util.Long)
  33032. (message.difficulty = $util.Long.fromValue(object.difficulty)).unsigned = false;
  33033. else if (typeof object.difficulty === "string")
  33034. message.difficulty = parseInt(object.difficulty, 10);
  33035. else if (typeof object.difficulty === "number")
  33036. message.difficulty = object.difficulty;
  33037. else if (typeof object.difficulty === "object")
  33038. message.difficulty = new $util.LongBits(object.difficulty.low >>> 0, object.difficulty.high >>> 0).toNumber();
  33039. return message;
  33040. };
  33041. /**
  33042. * Creates a plain object from a relic_reset message. Also converts values to other types if specified.
  33043. * @function toObject
  33044. * @memberof game.relic_reset
  33045. * @static
  33046. * @param {game.relic_reset} message relic_reset
  33047. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33048. * @returns {Object.<string,*>} Plain object
  33049. */
  33050. relic_reset.toObject = function toObject(message, options) {
  33051. if (!options)
  33052. options = {};
  33053. let object = {};
  33054. if (options.defaults)
  33055. if ($util.Long) {
  33056. let long = new $util.Long(0, 0, false);
  33057. object.difficulty = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33058. } else
  33059. object.difficulty = options.longs === String ? "0" : 0;
  33060. if (message.difficulty != null && message.hasOwnProperty("difficulty"))
  33061. if (typeof message.difficulty === "number")
  33062. object.difficulty = options.longs === String ? String(message.difficulty) : message.difficulty;
  33063. else
  33064. object.difficulty = options.longs === String ? $util.Long.prototype.toString.call(message.difficulty) : options.longs === Number ? new $util.LongBits(message.difficulty.low >>> 0, message.difficulty.high >>> 0).toNumber() : message.difficulty;
  33065. return object;
  33066. };
  33067. /**
  33068. * Converts this relic_reset to JSON.
  33069. * @function toJSON
  33070. * @memberof game.relic_reset
  33071. * @instance
  33072. * @returns {Object.<string,*>} JSON object
  33073. */
  33074. relic_reset.prototype.toJSON = function toJSON() {
  33075. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33076. };
  33077. return relic_reset;
  33078. })();
  33079. game.relic_reset_rsp = (function() {
  33080. /**
  33081. * Properties of a relic_reset_rsp.
  33082. * @memberof game
  33083. * @interface Irelic_reset_rsp
  33084. * @property {number|Long|null} [errno] relic_reset_rsp errno
  33085. */
  33086. /**
  33087. * Constructs a new relic_reset_rsp.
  33088. * @memberof game
  33089. * @classdesc Represents a relic_reset_rsp.
  33090. * @implements Irelic_reset_rsp
  33091. * @constructor
  33092. * @param {game.Irelic_reset_rsp=} [properties] Properties to set
  33093. */
  33094. function relic_reset_rsp(properties) {
  33095. if (properties)
  33096. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33097. if (properties[keys[i]] != null)
  33098. this[keys[i]] = properties[keys[i]];
  33099. }
  33100. /**
  33101. * relic_reset_rsp errno.
  33102. * @member {number|Long} errno
  33103. * @memberof game.relic_reset_rsp
  33104. * @instance
  33105. */
  33106. relic_reset_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33107. /**
  33108. * Creates a new relic_reset_rsp instance using the specified properties.
  33109. * @function create
  33110. * @memberof game.relic_reset_rsp
  33111. * @static
  33112. * @param {game.Irelic_reset_rsp=} [properties] Properties to set
  33113. * @returns {game.relic_reset_rsp} relic_reset_rsp instance
  33114. */
  33115. relic_reset_rsp.create = function create(properties) {
  33116. return new relic_reset_rsp(properties);
  33117. };
  33118. /**
  33119. * Encodes the specified relic_reset_rsp message. Does not implicitly {@link game.relic_reset_rsp.verify|verify} messages.
  33120. * @function encode
  33121. * @memberof game.relic_reset_rsp
  33122. * @static
  33123. * @param {game.Irelic_reset_rsp} message relic_reset_rsp message or plain object to encode
  33124. * @param {$protobuf.Writer} [writer] Writer to encode to
  33125. * @returns {$protobuf.Writer} Writer
  33126. */
  33127. relic_reset_rsp.encode = function encode(message, writer) {
  33128. if (!writer)
  33129. writer = $Writer.create();
  33130. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  33131. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  33132. return writer;
  33133. };
  33134. /**
  33135. * Encodes the specified relic_reset_rsp message, length delimited. Does not implicitly {@link game.relic_reset_rsp.verify|verify} messages.
  33136. * @function encodeDelimited
  33137. * @memberof game.relic_reset_rsp
  33138. * @static
  33139. * @param {game.Irelic_reset_rsp} message relic_reset_rsp message or plain object to encode
  33140. * @param {$protobuf.Writer} [writer] Writer to encode to
  33141. * @returns {$protobuf.Writer} Writer
  33142. */
  33143. relic_reset_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  33144. return this.encode(message, writer).ldelim();
  33145. };
  33146. /**
  33147. * Decodes a relic_reset_rsp message from the specified reader or buffer.
  33148. * @function decode
  33149. * @memberof game.relic_reset_rsp
  33150. * @static
  33151. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33152. * @param {number} [length] Message length if known beforehand
  33153. * @returns {game.relic_reset_rsp} relic_reset_rsp
  33154. * @throws {Error} If the payload is not a reader or valid buffer
  33155. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33156. */
  33157. relic_reset_rsp.decode = function decode(reader, length) {
  33158. if (!(reader instanceof $Reader))
  33159. reader = $Reader.create(reader);
  33160. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_reset_rsp();
  33161. while (reader.pos < end) {
  33162. let tag = reader.uint32();
  33163. switch (tag >>> 3) {
  33164. case 1:
  33165. message.errno = reader.int64();
  33166. break;
  33167. default:
  33168. reader.skipType(tag & 7);
  33169. break;
  33170. }
  33171. }
  33172. return message;
  33173. };
  33174. /**
  33175. * Decodes a relic_reset_rsp message from the specified reader or buffer, length delimited.
  33176. * @function decodeDelimited
  33177. * @memberof game.relic_reset_rsp
  33178. * @static
  33179. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33180. * @returns {game.relic_reset_rsp} relic_reset_rsp
  33181. * @throws {Error} If the payload is not a reader or valid buffer
  33182. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33183. */
  33184. relic_reset_rsp.decodeDelimited = function decodeDelimited(reader) {
  33185. if (!(reader instanceof $Reader))
  33186. reader = new $Reader(reader);
  33187. return this.decode(reader, reader.uint32());
  33188. };
  33189. /**
  33190. * Verifies a relic_reset_rsp message.
  33191. * @function verify
  33192. * @memberof game.relic_reset_rsp
  33193. * @static
  33194. * @param {Object.<string,*>} message Plain object to verify
  33195. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33196. */
  33197. relic_reset_rsp.verify = function verify(message) {
  33198. if (typeof message !== "object" || message === null)
  33199. return "object expected";
  33200. if (message.errno != null && message.hasOwnProperty("errno"))
  33201. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  33202. return "errno: integer|Long expected";
  33203. return null;
  33204. };
  33205. /**
  33206. * Creates a relic_reset_rsp message from a plain object. Also converts values to their respective internal types.
  33207. * @function fromObject
  33208. * @memberof game.relic_reset_rsp
  33209. * @static
  33210. * @param {Object.<string,*>} object Plain object
  33211. * @returns {game.relic_reset_rsp} relic_reset_rsp
  33212. */
  33213. relic_reset_rsp.fromObject = function fromObject(object) {
  33214. if (object instanceof $root.game.relic_reset_rsp)
  33215. return object;
  33216. let message = new $root.game.relic_reset_rsp();
  33217. if (object.errno != null)
  33218. if ($util.Long)
  33219. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  33220. else if (typeof object.errno === "string")
  33221. message.errno = parseInt(object.errno, 10);
  33222. else if (typeof object.errno === "number")
  33223. message.errno = object.errno;
  33224. else if (typeof object.errno === "object")
  33225. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  33226. return message;
  33227. };
  33228. /**
  33229. * Creates a plain object from a relic_reset_rsp message. Also converts values to other types if specified.
  33230. * @function toObject
  33231. * @memberof game.relic_reset_rsp
  33232. * @static
  33233. * @param {game.relic_reset_rsp} message relic_reset_rsp
  33234. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33235. * @returns {Object.<string,*>} Plain object
  33236. */
  33237. relic_reset_rsp.toObject = function toObject(message, options) {
  33238. if (!options)
  33239. options = {};
  33240. let object = {};
  33241. if (options.defaults)
  33242. if ($util.Long) {
  33243. let long = new $util.Long(0, 0, false);
  33244. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33245. } else
  33246. object.errno = options.longs === String ? "0" : 0;
  33247. if (message.errno != null && message.hasOwnProperty("errno"))
  33248. if (typeof message.errno === "number")
  33249. object.errno = options.longs === String ? String(message.errno) : message.errno;
  33250. else
  33251. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  33252. return object;
  33253. };
  33254. /**
  33255. * Converts this relic_reset_rsp to JSON.
  33256. * @function toJSON
  33257. * @memberof game.relic_reset_rsp
  33258. * @instance
  33259. * @returns {Object.<string,*>} JSON object
  33260. */
  33261. relic_reset_rsp.prototype.toJSON = function toJSON() {
  33262. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33263. };
  33264. return relic_reset_rsp;
  33265. })();
  33266. game.relic_event_select = (function() {
  33267. /**
  33268. * Properties of a relic_event_select.
  33269. * @memberof game
  33270. * @interface Irelic_event_select
  33271. * @property {number|Long|null} [type] relic_event_select type
  33272. * @property {boolean|null} [win] relic_event_select win
  33273. * @property {number|Long|null} [cost] relic_event_select cost
  33274. * @property {number|Long|null} [select] relic_event_select select
  33275. */
  33276. /**
  33277. * Constructs a new relic_event_select.
  33278. * @memberof game
  33279. * @classdesc Represents a relic_event_select.
  33280. * @implements Irelic_event_select
  33281. * @constructor
  33282. * @param {game.Irelic_event_select=} [properties] Properties to set
  33283. */
  33284. function relic_event_select(properties) {
  33285. if (properties)
  33286. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33287. if (properties[keys[i]] != null)
  33288. this[keys[i]] = properties[keys[i]];
  33289. }
  33290. /**
  33291. * relic_event_select type.
  33292. * @member {number|Long} type
  33293. * @memberof game.relic_event_select
  33294. * @instance
  33295. */
  33296. relic_event_select.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33297. /**
  33298. * relic_event_select win.
  33299. * @member {boolean} win
  33300. * @memberof game.relic_event_select
  33301. * @instance
  33302. */
  33303. relic_event_select.prototype.win = false;
  33304. /**
  33305. * relic_event_select cost.
  33306. * @member {number|Long} cost
  33307. * @memberof game.relic_event_select
  33308. * @instance
  33309. */
  33310. relic_event_select.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33311. /**
  33312. * relic_event_select select.
  33313. * @member {number|Long} select
  33314. * @memberof game.relic_event_select
  33315. * @instance
  33316. */
  33317. relic_event_select.prototype.select = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33318. /**
  33319. * Creates a new relic_event_select instance using the specified properties.
  33320. * @function create
  33321. * @memberof game.relic_event_select
  33322. * @static
  33323. * @param {game.Irelic_event_select=} [properties] Properties to set
  33324. * @returns {game.relic_event_select} relic_event_select instance
  33325. */
  33326. relic_event_select.create = function create(properties) {
  33327. return new relic_event_select(properties);
  33328. };
  33329. /**
  33330. * Encodes the specified relic_event_select message. Does not implicitly {@link game.relic_event_select.verify|verify} messages.
  33331. * @function encode
  33332. * @memberof game.relic_event_select
  33333. * @static
  33334. * @param {game.Irelic_event_select} message relic_event_select message or plain object to encode
  33335. * @param {$protobuf.Writer} [writer] Writer to encode to
  33336. * @returns {$protobuf.Writer} Writer
  33337. */
  33338. relic_event_select.encode = function encode(message, writer) {
  33339. if (!writer)
  33340. writer = $Writer.create();
  33341. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  33342. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  33343. if (message.win != null && Object.hasOwnProperty.call(message, "win"))
  33344. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.win);
  33345. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  33346. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.cost);
  33347. if (message.select != null && Object.hasOwnProperty.call(message, "select"))
  33348. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.select);
  33349. return writer;
  33350. };
  33351. /**
  33352. * Encodes the specified relic_event_select message, length delimited. Does not implicitly {@link game.relic_event_select.verify|verify} messages.
  33353. * @function encodeDelimited
  33354. * @memberof game.relic_event_select
  33355. * @static
  33356. * @param {game.Irelic_event_select} message relic_event_select message or plain object to encode
  33357. * @param {$protobuf.Writer} [writer] Writer to encode to
  33358. * @returns {$protobuf.Writer} Writer
  33359. */
  33360. relic_event_select.encodeDelimited = function encodeDelimited(message, writer) {
  33361. return this.encode(message, writer).ldelim();
  33362. };
  33363. /**
  33364. * Decodes a relic_event_select message from the specified reader or buffer.
  33365. * @function decode
  33366. * @memberof game.relic_event_select
  33367. * @static
  33368. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33369. * @param {number} [length] Message length if known beforehand
  33370. * @returns {game.relic_event_select} relic_event_select
  33371. * @throws {Error} If the payload is not a reader or valid buffer
  33372. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33373. */
  33374. relic_event_select.decode = function decode(reader, length) {
  33375. if (!(reader instanceof $Reader))
  33376. reader = $Reader.create(reader);
  33377. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_select();
  33378. while (reader.pos < end) {
  33379. let tag = reader.uint32();
  33380. switch (tag >>> 3) {
  33381. case 1:
  33382. message.type = reader.int64();
  33383. break;
  33384. case 2:
  33385. message.win = reader.bool();
  33386. break;
  33387. case 3:
  33388. message.cost = reader.int64();
  33389. break;
  33390. case 4:
  33391. message.select = reader.int64();
  33392. break;
  33393. default:
  33394. reader.skipType(tag & 7);
  33395. break;
  33396. }
  33397. }
  33398. return message;
  33399. };
  33400. /**
  33401. * Decodes a relic_event_select message from the specified reader or buffer, length delimited.
  33402. * @function decodeDelimited
  33403. * @memberof game.relic_event_select
  33404. * @static
  33405. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33406. * @returns {game.relic_event_select} relic_event_select
  33407. * @throws {Error} If the payload is not a reader or valid buffer
  33408. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33409. */
  33410. relic_event_select.decodeDelimited = function decodeDelimited(reader) {
  33411. if (!(reader instanceof $Reader))
  33412. reader = new $Reader(reader);
  33413. return this.decode(reader, reader.uint32());
  33414. };
  33415. /**
  33416. * Verifies a relic_event_select message.
  33417. * @function verify
  33418. * @memberof game.relic_event_select
  33419. * @static
  33420. * @param {Object.<string,*>} message Plain object to verify
  33421. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33422. */
  33423. relic_event_select.verify = function verify(message) {
  33424. if (typeof message !== "object" || message === null)
  33425. return "object expected";
  33426. if (message.type != null && message.hasOwnProperty("type"))
  33427. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  33428. return "type: integer|Long expected";
  33429. if (message.win != null && message.hasOwnProperty("win"))
  33430. if (typeof message.win !== "boolean")
  33431. return "win: boolean expected";
  33432. if (message.cost != null && message.hasOwnProperty("cost"))
  33433. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  33434. return "cost: integer|Long expected";
  33435. if (message.select != null && message.hasOwnProperty("select"))
  33436. if (!$util.isInteger(message.select) && !(message.select && $util.isInteger(message.select.low) && $util.isInteger(message.select.high)))
  33437. return "select: integer|Long expected";
  33438. return null;
  33439. };
  33440. /**
  33441. * Creates a relic_event_select message from a plain object. Also converts values to their respective internal types.
  33442. * @function fromObject
  33443. * @memberof game.relic_event_select
  33444. * @static
  33445. * @param {Object.<string,*>} object Plain object
  33446. * @returns {game.relic_event_select} relic_event_select
  33447. */
  33448. relic_event_select.fromObject = function fromObject(object) {
  33449. if (object instanceof $root.game.relic_event_select)
  33450. return object;
  33451. let message = new $root.game.relic_event_select();
  33452. if (object.type != null)
  33453. if ($util.Long)
  33454. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  33455. else if (typeof object.type === "string")
  33456. message.type = parseInt(object.type, 10);
  33457. else if (typeof object.type === "number")
  33458. message.type = object.type;
  33459. else if (typeof object.type === "object")
  33460. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  33461. if (object.win != null)
  33462. message.win = Boolean(object.win);
  33463. if (object.cost != null)
  33464. if ($util.Long)
  33465. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  33466. else if (typeof object.cost === "string")
  33467. message.cost = parseInt(object.cost, 10);
  33468. else if (typeof object.cost === "number")
  33469. message.cost = object.cost;
  33470. else if (typeof object.cost === "object")
  33471. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  33472. if (object.select != null)
  33473. if ($util.Long)
  33474. (message.select = $util.Long.fromValue(object.select)).unsigned = false;
  33475. else if (typeof object.select === "string")
  33476. message.select = parseInt(object.select, 10);
  33477. else if (typeof object.select === "number")
  33478. message.select = object.select;
  33479. else if (typeof object.select === "object")
  33480. message.select = new $util.LongBits(object.select.low >>> 0, object.select.high >>> 0).toNumber();
  33481. return message;
  33482. };
  33483. /**
  33484. * Creates a plain object from a relic_event_select message. Also converts values to other types if specified.
  33485. * @function toObject
  33486. * @memberof game.relic_event_select
  33487. * @static
  33488. * @param {game.relic_event_select} message relic_event_select
  33489. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33490. * @returns {Object.<string,*>} Plain object
  33491. */
  33492. relic_event_select.toObject = function toObject(message, options) {
  33493. if (!options)
  33494. options = {};
  33495. let object = {};
  33496. if (options.defaults) {
  33497. if ($util.Long) {
  33498. let long = new $util.Long(0, 0, false);
  33499. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33500. } else
  33501. object.type = options.longs === String ? "0" : 0;
  33502. object.win = false;
  33503. if ($util.Long) {
  33504. let long = new $util.Long(0, 0, false);
  33505. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33506. } else
  33507. object.cost = options.longs === String ? "0" : 0;
  33508. if ($util.Long) {
  33509. let long = new $util.Long(0, 0, false);
  33510. object.select = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33511. } else
  33512. object.select = options.longs === String ? "0" : 0;
  33513. }
  33514. if (message.type != null && message.hasOwnProperty("type"))
  33515. if (typeof message.type === "number")
  33516. object.type = options.longs === String ? String(message.type) : message.type;
  33517. else
  33518. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  33519. if (message.win != null && message.hasOwnProperty("win"))
  33520. object.win = message.win;
  33521. if (message.cost != null && message.hasOwnProperty("cost"))
  33522. if (typeof message.cost === "number")
  33523. object.cost = options.longs === String ? String(message.cost) : message.cost;
  33524. else
  33525. object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
  33526. if (message.select != null && message.hasOwnProperty("select"))
  33527. if (typeof message.select === "number")
  33528. object.select = options.longs === String ? String(message.select) : message.select;
  33529. else
  33530. object.select = options.longs === String ? $util.Long.prototype.toString.call(message.select) : options.longs === Number ? new $util.LongBits(message.select.low >>> 0, message.select.high >>> 0).toNumber() : message.select;
  33531. return object;
  33532. };
  33533. /**
  33534. * Converts this relic_event_select to JSON.
  33535. * @function toJSON
  33536. * @memberof game.relic_event_select
  33537. * @instance
  33538. * @returns {Object.<string,*>} JSON object
  33539. */
  33540. relic_event_select.prototype.toJSON = function toJSON() {
  33541. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33542. };
  33543. return relic_event_select;
  33544. })();
  33545. game.relic_event_select_rsp = (function() {
  33546. /**
  33547. * Properties of a relic_event_select_rsp.
  33548. * @memberof game
  33549. * @interface Irelic_event_select_rsp
  33550. * @property {number|Long|null} [errno] relic_event_select_rsp errno
  33551. */
  33552. /**
  33553. * Constructs a new relic_event_select_rsp.
  33554. * @memberof game
  33555. * @classdesc Represents a relic_event_select_rsp.
  33556. * @implements Irelic_event_select_rsp
  33557. * @constructor
  33558. * @param {game.Irelic_event_select_rsp=} [properties] Properties to set
  33559. */
  33560. function relic_event_select_rsp(properties) {
  33561. if (properties)
  33562. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33563. if (properties[keys[i]] != null)
  33564. this[keys[i]] = properties[keys[i]];
  33565. }
  33566. /**
  33567. * relic_event_select_rsp errno.
  33568. * @member {number|Long} errno
  33569. * @memberof game.relic_event_select_rsp
  33570. * @instance
  33571. */
  33572. relic_event_select_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33573. /**
  33574. * Creates a new relic_event_select_rsp instance using the specified properties.
  33575. * @function create
  33576. * @memberof game.relic_event_select_rsp
  33577. * @static
  33578. * @param {game.Irelic_event_select_rsp=} [properties] Properties to set
  33579. * @returns {game.relic_event_select_rsp} relic_event_select_rsp instance
  33580. */
  33581. relic_event_select_rsp.create = function create(properties) {
  33582. return new relic_event_select_rsp(properties);
  33583. };
  33584. /**
  33585. * Encodes the specified relic_event_select_rsp message. Does not implicitly {@link game.relic_event_select_rsp.verify|verify} messages.
  33586. * @function encode
  33587. * @memberof game.relic_event_select_rsp
  33588. * @static
  33589. * @param {game.Irelic_event_select_rsp} message relic_event_select_rsp message or plain object to encode
  33590. * @param {$protobuf.Writer} [writer] Writer to encode to
  33591. * @returns {$protobuf.Writer} Writer
  33592. */
  33593. relic_event_select_rsp.encode = function encode(message, writer) {
  33594. if (!writer)
  33595. writer = $Writer.create();
  33596. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  33597. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  33598. return writer;
  33599. };
  33600. /**
  33601. * Encodes the specified relic_event_select_rsp message, length delimited. Does not implicitly {@link game.relic_event_select_rsp.verify|verify} messages.
  33602. * @function encodeDelimited
  33603. * @memberof game.relic_event_select_rsp
  33604. * @static
  33605. * @param {game.Irelic_event_select_rsp} message relic_event_select_rsp message or plain object to encode
  33606. * @param {$protobuf.Writer} [writer] Writer to encode to
  33607. * @returns {$protobuf.Writer} Writer
  33608. */
  33609. relic_event_select_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  33610. return this.encode(message, writer).ldelim();
  33611. };
  33612. /**
  33613. * Decodes a relic_event_select_rsp message from the specified reader or buffer.
  33614. * @function decode
  33615. * @memberof game.relic_event_select_rsp
  33616. * @static
  33617. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33618. * @param {number} [length] Message length if known beforehand
  33619. * @returns {game.relic_event_select_rsp} relic_event_select_rsp
  33620. * @throws {Error} If the payload is not a reader or valid buffer
  33621. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33622. */
  33623. relic_event_select_rsp.decode = function decode(reader, length) {
  33624. if (!(reader instanceof $Reader))
  33625. reader = $Reader.create(reader);
  33626. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_select_rsp();
  33627. while (reader.pos < end) {
  33628. let tag = reader.uint32();
  33629. switch (tag >>> 3) {
  33630. case 1:
  33631. message.errno = reader.int64();
  33632. break;
  33633. default:
  33634. reader.skipType(tag & 7);
  33635. break;
  33636. }
  33637. }
  33638. return message;
  33639. };
  33640. /**
  33641. * Decodes a relic_event_select_rsp message from the specified reader or buffer, length delimited.
  33642. * @function decodeDelimited
  33643. * @memberof game.relic_event_select_rsp
  33644. * @static
  33645. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33646. * @returns {game.relic_event_select_rsp} relic_event_select_rsp
  33647. * @throws {Error} If the payload is not a reader or valid buffer
  33648. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33649. */
  33650. relic_event_select_rsp.decodeDelimited = function decodeDelimited(reader) {
  33651. if (!(reader instanceof $Reader))
  33652. reader = new $Reader(reader);
  33653. return this.decode(reader, reader.uint32());
  33654. };
  33655. /**
  33656. * Verifies a relic_event_select_rsp message.
  33657. * @function verify
  33658. * @memberof game.relic_event_select_rsp
  33659. * @static
  33660. * @param {Object.<string,*>} message Plain object to verify
  33661. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  33662. */
  33663. relic_event_select_rsp.verify = function verify(message) {
  33664. if (typeof message !== "object" || message === null)
  33665. return "object expected";
  33666. if (message.errno != null && message.hasOwnProperty("errno"))
  33667. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  33668. return "errno: integer|Long expected";
  33669. return null;
  33670. };
  33671. /**
  33672. * Creates a relic_event_select_rsp message from a plain object. Also converts values to their respective internal types.
  33673. * @function fromObject
  33674. * @memberof game.relic_event_select_rsp
  33675. * @static
  33676. * @param {Object.<string,*>} object Plain object
  33677. * @returns {game.relic_event_select_rsp} relic_event_select_rsp
  33678. */
  33679. relic_event_select_rsp.fromObject = function fromObject(object) {
  33680. if (object instanceof $root.game.relic_event_select_rsp)
  33681. return object;
  33682. let message = new $root.game.relic_event_select_rsp();
  33683. if (object.errno != null)
  33684. if ($util.Long)
  33685. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  33686. else if (typeof object.errno === "string")
  33687. message.errno = parseInt(object.errno, 10);
  33688. else if (typeof object.errno === "number")
  33689. message.errno = object.errno;
  33690. else if (typeof object.errno === "object")
  33691. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  33692. return message;
  33693. };
  33694. /**
  33695. * Creates a plain object from a relic_event_select_rsp message. Also converts values to other types if specified.
  33696. * @function toObject
  33697. * @memberof game.relic_event_select_rsp
  33698. * @static
  33699. * @param {game.relic_event_select_rsp} message relic_event_select_rsp
  33700. * @param {$protobuf.IConversionOptions} [options] Conversion options
  33701. * @returns {Object.<string,*>} Plain object
  33702. */
  33703. relic_event_select_rsp.toObject = function toObject(message, options) {
  33704. if (!options)
  33705. options = {};
  33706. let object = {};
  33707. if (options.defaults)
  33708. if ($util.Long) {
  33709. let long = new $util.Long(0, 0, false);
  33710. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  33711. } else
  33712. object.errno = options.longs === String ? "0" : 0;
  33713. if (message.errno != null && message.hasOwnProperty("errno"))
  33714. if (typeof message.errno === "number")
  33715. object.errno = options.longs === String ? String(message.errno) : message.errno;
  33716. else
  33717. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  33718. return object;
  33719. };
  33720. /**
  33721. * Converts this relic_event_select_rsp to JSON.
  33722. * @function toJSON
  33723. * @memberof game.relic_event_select_rsp
  33724. * @instance
  33725. * @returns {Object.<string,*>} JSON object
  33726. */
  33727. relic_event_select_rsp.prototype.toJSON = function toJSON() {
  33728. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  33729. };
  33730. return relic_event_select_rsp;
  33731. })();
  33732. game.relic_data_nty = (function() {
  33733. /**
  33734. * Properties of a relic_data_nty.
  33735. * @memberof game
  33736. * @interface Irelic_data_nty
  33737. * @property {number|Long|null} [maxDiff] relic_data_nty maxDiff
  33738. * @property {number|Long|null} [curDiff] relic_data_nty curDiff
  33739. * @property {Array.<number|Long>|null} [buffList] relic_data_nty buffList
  33740. * @property {number|Long|null} [layer] relic_data_nty layer
  33741. * @property {number|Long|null} [pos] relic_data_nty pos
  33742. * @property {number|Long|null} [cost] relic_data_nty cost
  33743. * @property {number|Long|null} [state] relic_data_nty state
  33744. * @property {number|Long|null} [resetTime] relic_data_nty resetTime
  33745. * @property {Array.<number|Long>|null} [posList] relic_data_nty posList
  33746. * @property {Array.<number|Long>|null} [battleInfo] relic_data_nty battleInfo
  33747. */
  33748. /**
  33749. * Constructs a new relic_data_nty.
  33750. * @memberof game
  33751. * @classdesc Represents a relic_data_nty.
  33752. * @implements Irelic_data_nty
  33753. * @constructor
  33754. * @param {game.Irelic_data_nty=} [properties] Properties to set
  33755. */
  33756. function relic_data_nty(properties) {
  33757. this.buffList = [];
  33758. this.posList = [];
  33759. this.battleInfo = [];
  33760. if (properties)
  33761. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  33762. if (properties[keys[i]] != null)
  33763. this[keys[i]] = properties[keys[i]];
  33764. }
  33765. /**
  33766. * relic_data_nty maxDiff.
  33767. * @member {number|Long} maxDiff
  33768. * @memberof game.relic_data_nty
  33769. * @instance
  33770. */
  33771. relic_data_nty.prototype.maxDiff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33772. /**
  33773. * relic_data_nty curDiff.
  33774. * @member {number|Long} curDiff
  33775. * @memberof game.relic_data_nty
  33776. * @instance
  33777. */
  33778. relic_data_nty.prototype.curDiff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33779. /**
  33780. * relic_data_nty buffList.
  33781. * @member {Array.<number|Long>} buffList
  33782. * @memberof game.relic_data_nty
  33783. * @instance
  33784. */
  33785. relic_data_nty.prototype.buffList = $util.emptyArray;
  33786. /**
  33787. * relic_data_nty layer.
  33788. * @member {number|Long} layer
  33789. * @memberof game.relic_data_nty
  33790. * @instance
  33791. */
  33792. relic_data_nty.prototype.layer = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33793. /**
  33794. * relic_data_nty pos.
  33795. * @member {number|Long} pos
  33796. * @memberof game.relic_data_nty
  33797. * @instance
  33798. */
  33799. relic_data_nty.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33800. /**
  33801. * relic_data_nty cost.
  33802. * @member {number|Long} cost
  33803. * @memberof game.relic_data_nty
  33804. * @instance
  33805. */
  33806. relic_data_nty.prototype.cost = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33807. /**
  33808. * relic_data_nty state.
  33809. * @member {number|Long} state
  33810. * @memberof game.relic_data_nty
  33811. * @instance
  33812. */
  33813. relic_data_nty.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33814. /**
  33815. * relic_data_nty resetTime.
  33816. * @member {number|Long} resetTime
  33817. * @memberof game.relic_data_nty
  33818. * @instance
  33819. */
  33820. relic_data_nty.prototype.resetTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  33821. /**
  33822. * relic_data_nty posList.
  33823. * @member {Array.<number|Long>} posList
  33824. * @memberof game.relic_data_nty
  33825. * @instance
  33826. */
  33827. relic_data_nty.prototype.posList = $util.emptyArray;
  33828. /**
  33829. * relic_data_nty battleInfo.
  33830. * @member {Array.<number|Long>} battleInfo
  33831. * @memberof game.relic_data_nty
  33832. * @instance
  33833. */
  33834. relic_data_nty.prototype.battleInfo = $util.emptyArray;
  33835. /**
  33836. * Creates a new relic_data_nty instance using the specified properties.
  33837. * @function create
  33838. * @memberof game.relic_data_nty
  33839. * @static
  33840. * @param {game.Irelic_data_nty=} [properties] Properties to set
  33841. * @returns {game.relic_data_nty} relic_data_nty instance
  33842. */
  33843. relic_data_nty.create = function create(properties) {
  33844. return new relic_data_nty(properties);
  33845. };
  33846. /**
  33847. * Encodes the specified relic_data_nty message. Does not implicitly {@link game.relic_data_nty.verify|verify} messages.
  33848. * @function encode
  33849. * @memberof game.relic_data_nty
  33850. * @static
  33851. * @param {game.Irelic_data_nty} message relic_data_nty message or plain object to encode
  33852. * @param {$protobuf.Writer} [writer] Writer to encode to
  33853. * @returns {$protobuf.Writer} Writer
  33854. */
  33855. relic_data_nty.encode = function encode(message, writer) {
  33856. if (!writer)
  33857. writer = $Writer.create();
  33858. if (message.maxDiff != null && Object.hasOwnProperty.call(message, "maxDiff"))
  33859. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxDiff);
  33860. if (message.curDiff != null && Object.hasOwnProperty.call(message, "curDiff"))
  33861. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.curDiff);
  33862. if (message.buffList != null && message.buffList.length) {
  33863. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  33864. for (let i = 0; i < message.buffList.length; ++i)
  33865. writer.int64(message.buffList[i]);
  33866. writer.ldelim();
  33867. }
  33868. if (message.layer != null && Object.hasOwnProperty.call(message, "layer"))
  33869. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.layer);
  33870. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  33871. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.pos);
  33872. if (message.cost != null && Object.hasOwnProperty.call(message, "cost"))
  33873. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.cost);
  33874. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  33875. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.state);
  33876. if (message.resetTime != null && Object.hasOwnProperty.call(message, "resetTime"))
  33877. writer.uint32(/* id 9, wireType 0 =*/72).int64(message.resetTime);
  33878. if (message.posList != null && message.posList.length) {
  33879. writer.uint32(/* id 10, wireType 2 =*/82).fork();
  33880. for (let i = 0; i < message.posList.length; ++i)
  33881. writer.int64(message.posList[i]);
  33882. writer.ldelim();
  33883. }
  33884. if (message.battleInfo != null && message.battleInfo.length) {
  33885. writer.uint32(/* id 11, wireType 2 =*/90).fork();
  33886. for (let i = 0; i < message.battleInfo.length; ++i)
  33887. writer.int64(message.battleInfo[i]);
  33888. writer.ldelim();
  33889. }
  33890. return writer;
  33891. };
  33892. /**
  33893. * Encodes the specified relic_data_nty message, length delimited. Does not implicitly {@link game.relic_data_nty.verify|verify} messages.
  33894. * @function encodeDelimited
  33895. * @memberof game.relic_data_nty
  33896. * @static
  33897. * @param {game.Irelic_data_nty} message relic_data_nty message or plain object to encode
  33898. * @param {$protobuf.Writer} [writer] Writer to encode to
  33899. * @returns {$protobuf.Writer} Writer
  33900. */
  33901. relic_data_nty.encodeDelimited = function encodeDelimited(message, writer) {
  33902. return this.encode(message, writer).ldelim();
  33903. };
  33904. /**
  33905. * Decodes a relic_data_nty message from the specified reader or buffer.
  33906. * @function decode
  33907. * @memberof game.relic_data_nty
  33908. * @static
  33909. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33910. * @param {number} [length] Message length if known beforehand
  33911. * @returns {game.relic_data_nty} relic_data_nty
  33912. * @throws {Error} If the payload is not a reader or valid buffer
  33913. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33914. */
  33915. relic_data_nty.decode = function decode(reader, length) {
  33916. if (!(reader instanceof $Reader))
  33917. reader = $Reader.create(reader);
  33918. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_data_nty();
  33919. while (reader.pos < end) {
  33920. let tag = reader.uint32();
  33921. switch (tag >>> 3) {
  33922. case 2:
  33923. message.maxDiff = reader.int64();
  33924. break;
  33925. case 3:
  33926. message.curDiff = reader.int64();
  33927. break;
  33928. case 4:
  33929. if (!(message.buffList && message.buffList.length))
  33930. message.buffList = [];
  33931. if ((tag & 7) === 2) {
  33932. let end2 = reader.uint32() + reader.pos;
  33933. while (reader.pos < end2)
  33934. message.buffList.push(reader.int64());
  33935. } else
  33936. message.buffList.push(reader.int64());
  33937. break;
  33938. case 5:
  33939. message.layer = reader.int64();
  33940. break;
  33941. case 6:
  33942. message.pos = reader.int64();
  33943. break;
  33944. case 7:
  33945. message.cost = reader.int64();
  33946. break;
  33947. case 8:
  33948. message.state = reader.int64();
  33949. break;
  33950. case 9:
  33951. message.resetTime = reader.int64();
  33952. break;
  33953. case 10:
  33954. if (!(message.posList && message.posList.length))
  33955. message.posList = [];
  33956. if ((tag & 7) === 2) {
  33957. let end2 = reader.uint32() + reader.pos;
  33958. while (reader.pos < end2)
  33959. message.posList.push(reader.int64());
  33960. } else
  33961. message.posList.push(reader.int64());
  33962. break;
  33963. case 11:
  33964. if (!(message.battleInfo && message.battleInfo.length))
  33965. message.battleInfo = [];
  33966. if ((tag & 7) === 2) {
  33967. let end2 = reader.uint32() + reader.pos;
  33968. while (reader.pos < end2)
  33969. message.battleInfo.push(reader.int64());
  33970. } else
  33971. message.battleInfo.push(reader.int64());
  33972. break;
  33973. default:
  33974. reader.skipType(tag & 7);
  33975. break;
  33976. }
  33977. }
  33978. return message;
  33979. };
  33980. /**
  33981. * Decodes a relic_data_nty message from the specified reader or buffer, length delimited.
  33982. * @function decodeDelimited
  33983. * @memberof game.relic_data_nty
  33984. * @static
  33985. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  33986. * @returns {game.relic_data_nty} relic_data_nty
  33987. * @throws {Error} If the payload is not a reader or valid buffer
  33988. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  33989. */
  33990. relic_data_nty.decodeDelimited = function decodeDelimited(reader) {
  33991. if (!(reader instanceof $Reader))
  33992. reader = new $Reader(reader);
  33993. return this.decode(reader, reader.uint32());
  33994. };
  33995. /**
  33996. * Verifies a relic_data_nty message.
  33997. * @function verify
  33998. * @memberof game.relic_data_nty
  33999. * @static
  34000. * @param {Object.<string,*>} message Plain object to verify
  34001. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  34002. */
  34003. relic_data_nty.verify = function verify(message) {
  34004. if (typeof message !== "object" || message === null)
  34005. return "object expected";
  34006. if (message.maxDiff != null && message.hasOwnProperty("maxDiff"))
  34007. if (!$util.isInteger(message.maxDiff) && !(message.maxDiff && $util.isInteger(message.maxDiff.low) && $util.isInteger(message.maxDiff.high)))
  34008. return "maxDiff: integer|Long expected";
  34009. if (message.curDiff != null && message.hasOwnProperty("curDiff"))
  34010. if (!$util.isInteger(message.curDiff) && !(message.curDiff && $util.isInteger(message.curDiff.low) && $util.isInteger(message.curDiff.high)))
  34011. return "curDiff: integer|Long expected";
  34012. if (message.buffList != null && message.hasOwnProperty("buffList")) {
  34013. if (!Array.isArray(message.buffList))
  34014. return "buffList: array expected";
  34015. for (let i = 0; i < message.buffList.length; ++i)
  34016. if (!$util.isInteger(message.buffList[i]) && !(message.buffList[i] && $util.isInteger(message.buffList[i].low) && $util.isInteger(message.buffList[i].high)))
  34017. return "buffList: integer|Long[] expected";
  34018. }
  34019. if (message.layer != null && message.hasOwnProperty("layer"))
  34020. if (!$util.isInteger(message.layer) && !(message.layer && $util.isInteger(message.layer.low) && $util.isInteger(message.layer.high)))
  34021. return "layer: integer|Long expected";
  34022. if (message.pos != null && message.hasOwnProperty("pos"))
  34023. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  34024. return "pos: integer|Long expected";
  34025. if (message.cost != null && message.hasOwnProperty("cost"))
  34026. if (!$util.isInteger(message.cost) && !(message.cost && $util.isInteger(message.cost.low) && $util.isInteger(message.cost.high)))
  34027. return "cost: integer|Long expected";
  34028. if (message.state != null && message.hasOwnProperty("state"))
  34029. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  34030. return "state: integer|Long expected";
  34031. if (message.resetTime != null && message.hasOwnProperty("resetTime"))
  34032. if (!$util.isInteger(message.resetTime) && !(message.resetTime && $util.isInteger(message.resetTime.low) && $util.isInteger(message.resetTime.high)))
  34033. return "resetTime: integer|Long expected";
  34034. if (message.posList != null && message.hasOwnProperty("posList")) {
  34035. if (!Array.isArray(message.posList))
  34036. return "posList: array expected";
  34037. for (let i = 0; i < message.posList.length; ++i)
  34038. if (!$util.isInteger(message.posList[i]) && !(message.posList[i] && $util.isInteger(message.posList[i].low) && $util.isInteger(message.posList[i].high)))
  34039. return "posList: integer|Long[] expected";
  34040. }
  34041. if (message.battleInfo != null && message.hasOwnProperty("battleInfo")) {
  34042. if (!Array.isArray(message.battleInfo))
  34043. return "battleInfo: array expected";
  34044. for (let i = 0; i < message.battleInfo.length; ++i)
  34045. if (!$util.isInteger(message.battleInfo[i]) && !(message.battleInfo[i] && $util.isInteger(message.battleInfo[i].low) && $util.isInteger(message.battleInfo[i].high)))
  34046. return "battleInfo: integer|Long[] expected";
  34047. }
  34048. return null;
  34049. };
  34050. /**
  34051. * Creates a relic_data_nty message from a plain object. Also converts values to their respective internal types.
  34052. * @function fromObject
  34053. * @memberof game.relic_data_nty
  34054. * @static
  34055. * @param {Object.<string,*>} object Plain object
  34056. * @returns {game.relic_data_nty} relic_data_nty
  34057. */
  34058. relic_data_nty.fromObject = function fromObject(object) {
  34059. if (object instanceof $root.game.relic_data_nty)
  34060. return object;
  34061. let message = new $root.game.relic_data_nty();
  34062. if (object.maxDiff != null)
  34063. if ($util.Long)
  34064. (message.maxDiff = $util.Long.fromValue(object.maxDiff)).unsigned = false;
  34065. else if (typeof object.maxDiff === "string")
  34066. message.maxDiff = parseInt(object.maxDiff, 10);
  34067. else if (typeof object.maxDiff === "number")
  34068. message.maxDiff = object.maxDiff;
  34069. else if (typeof object.maxDiff === "object")
  34070. message.maxDiff = new $util.LongBits(object.maxDiff.low >>> 0, object.maxDiff.high >>> 0).toNumber();
  34071. if (object.curDiff != null)
  34072. if ($util.Long)
  34073. (message.curDiff = $util.Long.fromValue(object.curDiff)).unsigned = false;
  34074. else if (typeof object.curDiff === "string")
  34075. message.curDiff = parseInt(object.curDiff, 10);
  34076. else if (typeof object.curDiff === "number")
  34077. message.curDiff = object.curDiff;
  34078. else if (typeof object.curDiff === "object")
  34079. message.curDiff = new $util.LongBits(object.curDiff.low >>> 0, object.curDiff.high >>> 0).toNumber();
  34080. if (object.buffList) {
  34081. if (!Array.isArray(object.buffList))
  34082. throw TypeError(".game.relic_data_nty.buffList: array expected");
  34083. message.buffList = [];
  34084. for (let i = 0; i < object.buffList.length; ++i)
  34085. if ($util.Long)
  34086. (message.buffList[i] = $util.Long.fromValue(object.buffList[i])).unsigned = false;
  34087. else if (typeof object.buffList[i] === "string")
  34088. message.buffList[i] = parseInt(object.buffList[i], 10);
  34089. else if (typeof object.buffList[i] === "number")
  34090. message.buffList[i] = object.buffList[i];
  34091. else if (typeof object.buffList[i] === "object")
  34092. message.buffList[i] = new $util.LongBits(object.buffList[i].low >>> 0, object.buffList[i].high >>> 0).toNumber();
  34093. }
  34094. if (object.layer != null)
  34095. if ($util.Long)
  34096. (message.layer = $util.Long.fromValue(object.layer)).unsigned = false;
  34097. else if (typeof object.layer === "string")
  34098. message.layer = parseInt(object.layer, 10);
  34099. else if (typeof object.layer === "number")
  34100. message.layer = object.layer;
  34101. else if (typeof object.layer === "object")
  34102. message.layer = new $util.LongBits(object.layer.low >>> 0, object.layer.high >>> 0).toNumber();
  34103. if (object.pos != null)
  34104. if ($util.Long)
  34105. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  34106. else if (typeof object.pos === "string")
  34107. message.pos = parseInt(object.pos, 10);
  34108. else if (typeof object.pos === "number")
  34109. message.pos = object.pos;
  34110. else if (typeof object.pos === "object")
  34111. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  34112. if (object.cost != null)
  34113. if ($util.Long)
  34114. (message.cost = $util.Long.fromValue(object.cost)).unsigned = false;
  34115. else if (typeof object.cost === "string")
  34116. message.cost = parseInt(object.cost, 10);
  34117. else if (typeof object.cost === "number")
  34118. message.cost = object.cost;
  34119. else if (typeof object.cost === "object")
  34120. message.cost = new $util.LongBits(object.cost.low >>> 0, object.cost.high >>> 0).toNumber();
  34121. if (object.state != null)
  34122. if ($util.Long)
  34123. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  34124. else if (typeof object.state === "string")
  34125. message.state = parseInt(object.state, 10);
  34126. else if (typeof object.state === "number")
  34127. message.state = object.state;
  34128. else if (typeof object.state === "object")
  34129. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  34130. if (object.resetTime != null)
  34131. if ($util.Long)
  34132. (message.resetTime = $util.Long.fromValue(object.resetTime)).unsigned = false;
  34133. else if (typeof object.resetTime === "string")
  34134. message.resetTime = parseInt(object.resetTime, 10);
  34135. else if (typeof object.resetTime === "number")
  34136. message.resetTime = object.resetTime;
  34137. else if (typeof object.resetTime === "object")
  34138. message.resetTime = new $util.LongBits(object.resetTime.low >>> 0, object.resetTime.high >>> 0).toNumber();
  34139. if (object.posList) {
  34140. if (!Array.isArray(object.posList))
  34141. throw TypeError(".game.relic_data_nty.posList: array expected");
  34142. message.posList = [];
  34143. for (let i = 0; i < object.posList.length; ++i)
  34144. if ($util.Long)
  34145. (message.posList[i] = $util.Long.fromValue(object.posList[i])).unsigned = false;
  34146. else if (typeof object.posList[i] === "string")
  34147. message.posList[i] = parseInt(object.posList[i], 10);
  34148. else if (typeof object.posList[i] === "number")
  34149. message.posList[i] = object.posList[i];
  34150. else if (typeof object.posList[i] === "object")
  34151. message.posList[i] = new $util.LongBits(object.posList[i].low >>> 0, object.posList[i].high >>> 0).toNumber();
  34152. }
  34153. if (object.battleInfo) {
  34154. if (!Array.isArray(object.battleInfo))
  34155. throw TypeError(".game.relic_data_nty.battleInfo: array expected");
  34156. message.battleInfo = [];
  34157. for (let i = 0; i < object.battleInfo.length; ++i)
  34158. if ($util.Long)
  34159. (message.battleInfo[i] = $util.Long.fromValue(object.battleInfo[i])).unsigned = false;
  34160. else if (typeof object.battleInfo[i] === "string")
  34161. message.battleInfo[i] = parseInt(object.battleInfo[i], 10);
  34162. else if (typeof object.battleInfo[i] === "number")
  34163. message.battleInfo[i] = object.battleInfo[i];
  34164. else if (typeof object.battleInfo[i] === "object")
  34165. message.battleInfo[i] = new $util.LongBits(object.battleInfo[i].low >>> 0, object.battleInfo[i].high >>> 0).toNumber();
  34166. }
  34167. return message;
  34168. };
  34169. /**
  34170. * Creates a plain object from a relic_data_nty message. Also converts values to other types if specified.
  34171. * @function toObject
  34172. * @memberof game.relic_data_nty
  34173. * @static
  34174. * @param {game.relic_data_nty} message relic_data_nty
  34175. * @param {$protobuf.IConversionOptions} [options] Conversion options
  34176. * @returns {Object.<string,*>} Plain object
  34177. */
  34178. relic_data_nty.toObject = function toObject(message, options) {
  34179. if (!options)
  34180. options = {};
  34181. let object = {};
  34182. if (options.arrays || options.defaults) {
  34183. object.buffList = [];
  34184. object.posList = [];
  34185. object.battleInfo = [];
  34186. }
  34187. if (options.defaults) {
  34188. if ($util.Long) {
  34189. let long = new $util.Long(0, 0, false);
  34190. object.maxDiff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34191. } else
  34192. object.maxDiff = options.longs === String ? "0" : 0;
  34193. if ($util.Long) {
  34194. let long = new $util.Long(0, 0, false);
  34195. object.curDiff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34196. } else
  34197. object.curDiff = options.longs === String ? "0" : 0;
  34198. if ($util.Long) {
  34199. let long = new $util.Long(0, 0, false);
  34200. object.layer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34201. } else
  34202. object.layer = options.longs === String ? "0" : 0;
  34203. if ($util.Long) {
  34204. let long = new $util.Long(0, 0, false);
  34205. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34206. } else
  34207. object.pos = options.longs === String ? "0" : 0;
  34208. if ($util.Long) {
  34209. let long = new $util.Long(0, 0, false);
  34210. object.cost = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34211. } else
  34212. object.cost = options.longs === String ? "0" : 0;
  34213. if ($util.Long) {
  34214. let long = new $util.Long(0, 0, false);
  34215. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34216. } else
  34217. object.state = options.longs === String ? "0" : 0;
  34218. if ($util.Long) {
  34219. let long = new $util.Long(0, 0, false);
  34220. object.resetTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34221. } else
  34222. object.resetTime = options.longs === String ? "0" : 0;
  34223. }
  34224. if (message.maxDiff != null && message.hasOwnProperty("maxDiff"))
  34225. if (typeof message.maxDiff === "number")
  34226. object.maxDiff = options.longs === String ? String(message.maxDiff) : message.maxDiff;
  34227. else
  34228. object.maxDiff = options.longs === String ? $util.Long.prototype.toString.call(message.maxDiff) : options.longs === Number ? new $util.LongBits(message.maxDiff.low >>> 0, message.maxDiff.high >>> 0).toNumber() : message.maxDiff;
  34229. if (message.curDiff != null && message.hasOwnProperty("curDiff"))
  34230. if (typeof message.curDiff === "number")
  34231. object.curDiff = options.longs === String ? String(message.curDiff) : message.curDiff;
  34232. else
  34233. object.curDiff = options.longs === String ? $util.Long.prototype.toString.call(message.curDiff) : options.longs === Number ? new $util.LongBits(message.curDiff.low >>> 0, message.curDiff.high >>> 0).toNumber() : message.curDiff;
  34234. if (message.buffList && message.buffList.length) {
  34235. object.buffList = [];
  34236. for (let j = 0; j < message.buffList.length; ++j)
  34237. if (typeof message.buffList[j] === "number")
  34238. object.buffList[j] = options.longs === String ? String(message.buffList[j]) : message.buffList[j];
  34239. else
  34240. object.buffList[j] = options.longs === String ? $util.Long.prototype.toString.call(message.buffList[j]) : options.longs === Number ? new $util.LongBits(message.buffList[j].low >>> 0, message.buffList[j].high >>> 0).toNumber() : message.buffList[j];
  34241. }
  34242. if (message.layer != null && message.hasOwnProperty("layer"))
  34243. if (typeof message.layer === "number")
  34244. object.layer = options.longs === String ? String(message.layer) : message.layer;
  34245. else
  34246. object.layer = options.longs === String ? $util.Long.prototype.toString.call(message.layer) : options.longs === Number ? new $util.LongBits(message.layer.low >>> 0, message.layer.high >>> 0).toNumber() : message.layer;
  34247. if (message.pos != null && message.hasOwnProperty("pos"))
  34248. if (typeof message.pos === "number")
  34249. object.pos = options.longs === String ? String(message.pos) : message.pos;
  34250. else
  34251. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  34252. if (message.cost != null && message.hasOwnProperty("cost"))
  34253. if (typeof message.cost === "number")
  34254. object.cost = options.longs === String ? String(message.cost) : message.cost;
  34255. else
  34256. object.cost = options.longs === String ? $util.Long.prototype.toString.call(message.cost) : options.longs === Number ? new $util.LongBits(message.cost.low >>> 0, message.cost.high >>> 0).toNumber() : message.cost;
  34257. if (message.state != null && message.hasOwnProperty("state"))
  34258. if (typeof message.state === "number")
  34259. object.state = options.longs === String ? String(message.state) : message.state;
  34260. else
  34261. object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
  34262. if (message.resetTime != null && message.hasOwnProperty("resetTime"))
  34263. if (typeof message.resetTime === "number")
  34264. object.resetTime = options.longs === String ? String(message.resetTime) : message.resetTime;
  34265. else
  34266. object.resetTime = options.longs === String ? $util.Long.prototype.toString.call(message.resetTime) : options.longs === Number ? new $util.LongBits(message.resetTime.low >>> 0, message.resetTime.high >>> 0).toNumber() : message.resetTime;
  34267. if (message.posList && message.posList.length) {
  34268. object.posList = [];
  34269. for (let j = 0; j < message.posList.length; ++j)
  34270. if (typeof message.posList[j] === "number")
  34271. object.posList[j] = options.longs === String ? String(message.posList[j]) : message.posList[j];
  34272. else
  34273. object.posList[j] = options.longs === String ? $util.Long.prototype.toString.call(message.posList[j]) : options.longs === Number ? new $util.LongBits(message.posList[j].low >>> 0, message.posList[j].high >>> 0).toNumber() : message.posList[j];
  34274. }
  34275. if (message.battleInfo && message.battleInfo.length) {
  34276. object.battleInfo = [];
  34277. for (let j = 0; j < message.battleInfo.length; ++j)
  34278. if (typeof message.battleInfo[j] === "number")
  34279. object.battleInfo[j] = options.longs === String ? String(message.battleInfo[j]) : message.battleInfo[j];
  34280. else
  34281. object.battleInfo[j] = options.longs === String ? $util.Long.prototype.toString.call(message.battleInfo[j]) : options.longs === Number ? new $util.LongBits(message.battleInfo[j].low >>> 0, message.battleInfo[j].high >>> 0).toNumber() : message.battleInfo[j];
  34282. }
  34283. return object;
  34284. };
  34285. /**
  34286. * Converts this relic_data_nty to JSON.
  34287. * @function toJSON
  34288. * @memberof game.relic_data_nty
  34289. * @instance
  34290. * @returns {Object.<string,*>} JSON object
  34291. */
  34292. relic_data_nty.prototype.toJSON = function toJSON() {
  34293. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  34294. };
  34295. return relic_data_nty;
  34296. })();
  34297. game.relic_event_nty = (function() {
  34298. /**
  34299. * Properties of a relic_event_nty.
  34300. * @memberof game
  34301. * @interface Irelic_event_nty
  34302. * @property {number|Long|null} [type] relic_event_nty type
  34303. * @property {number|Long|null} [battleId] relic_event_nty battleId
  34304. * @property {number|Long|null} [battleType] relic_event_nty battleType
  34305. * @property {Array.<number|Long>|null} [selectBuff] relic_event_nty selectBuff
  34306. */
  34307. /**
  34308. * Constructs a new relic_event_nty.
  34309. * @memberof game
  34310. * @classdesc Represents a relic_event_nty.
  34311. * @implements Irelic_event_nty
  34312. * @constructor
  34313. * @param {game.Irelic_event_nty=} [properties] Properties to set
  34314. */
  34315. function relic_event_nty(properties) {
  34316. this.selectBuff = [];
  34317. if (properties)
  34318. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  34319. if (properties[keys[i]] != null)
  34320. this[keys[i]] = properties[keys[i]];
  34321. }
  34322. /**
  34323. * relic_event_nty type.
  34324. * @member {number|Long} type
  34325. * @memberof game.relic_event_nty
  34326. * @instance
  34327. */
  34328. relic_event_nty.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  34329. /**
  34330. * relic_event_nty battleId.
  34331. * @member {number|Long} battleId
  34332. * @memberof game.relic_event_nty
  34333. * @instance
  34334. */
  34335. relic_event_nty.prototype.battleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  34336. /**
  34337. * relic_event_nty battleType.
  34338. * @member {number|Long} battleType
  34339. * @memberof game.relic_event_nty
  34340. * @instance
  34341. */
  34342. relic_event_nty.prototype.battleType = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  34343. /**
  34344. * relic_event_nty selectBuff.
  34345. * @member {Array.<number|Long>} selectBuff
  34346. * @memberof game.relic_event_nty
  34347. * @instance
  34348. */
  34349. relic_event_nty.prototype.selectBuff = $util.emptyArray;
  34350. /**
  34351. * Creates a new relic_event_nty instance using the specified properties.
  34352. * @function create
  34353. * @memberof game.relic_event_nty
  34354. * @static
  34355. * @param {game.Irelic_event_nty=} [properties] Properties to set
  34356. * @returns {game.relic_event_nty} relic_event_nty instance
  34357. */
  34358. relic_event_nty.create = function create(properties) {
  34359. return new relic_event_nty(properties);
  34360. };
  34361. /**
  34362. * Encodes the specified relic_event_nty message. Does not implicitly {@link game.relic_event_nty.verify|verify} messages.
  34363. * @function encode
  34364. * @memberof game.relic_event_nty
  34365. * @static
  34366. * @param {game.Irelic_event_nty} message relic_event_nty message or plain object to encode
  34367. * @param {$protobuf.Writer} [writer] Writer to encode to
  34368. * @returns {$protobuf.Writer} Writer
  34369. */
  34370. relic_event_nty.encode = function encode(message, writer) {
  34371. if (!writer)
  34372. writer = $Writer.create();
  34373. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  34374. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  34375. if (message.battleId != null && Object.hasOwnProperty.call(message, "battleId"))
  34376. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.battleId);
  34377. if (message.battleType != null && Object.hasOwnProperty.call(message, "battleType"))
  34378. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.battleType);
  34379. if (message.selectBuff != null && message.selectBuff.length) {
  34380. writer.uint32(/* id 6, wireType 2 =*/50).fork();
  34381. for (let i = 0; i < message.selectBuff.length; ++i)
  34382. writer.int64(message.selectBuff[i]);
  34383. writer.ldelim();
  34384. }
  34385. return writer;
  34386. };
  34387. /**
  34388. * Encodes the specified relic_event_nty message, length delimited. Does not implicitly {@link game.relic_event_nty.verify|verify} messages.
  34389. * @function encodeDelimited
  34390. * @memberof game.relic_event_nty
  34391. * @static
  34392. * @param {game.Irelic_event_nty} message relic_event_nty message or plain object to encode
  34393. * @param {$protobuf.Writer} [writer] Writer to encode to
  34394. * @returns {$protobuf.Writer} Writer
  34395. */
  34396. relic_event_nty.encodeDelimited = function encodeDelimited(message, writer) {
  34397. return this.encode(message, writer).ldelim();
  34398. };
  34399. /**
  34400. * Decodes a relic_event_nty message from the specified reader or buffer.
  34401. * @function decode
  34402. * @memberof game.relic_event_nty
  34403. * @static
  34404. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34405. * @param {number} [length] Message length if known beforehand
  34406. * @returns {game.relic_event_nty} relic_event_nty
  34407. * @throws {Error} If the payload is not a reader or valid buffer
  34408. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34409. */
  34410. relic_event_nty.decode = function decode(reader, length) {
  34411. if (!(reader instanceof $Reader))
  34412. reader = $Reader.create(reader);
  34413. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.relic_event_nty();
  34414. while (reader.pos < end) {
  34415. let tag = reader.uint32();
  34416. switch (tag >>> 3) {
  34417. case 1:
  34418. message.type = reader.int64();
  34419. break;
  34420. case 4:
  34421. message.battleId = reader.int64();
  34422. break;
  34423. case 5:
  34424. message.battleType = reader.int64();
  34425. break;
  34426. case 6:
  34427. if (!(message.selectBuff && message.selectBuff.length))
  34428. message.selectBuff = [];
  34429. if ((tag & 7) === 2) {
  34430. let end2 = reader.uint32() + reader.pos;
  34431. while (reader.pos < end2)
  34432. message.selectBuff.push(reader.int64());
  34433. } else
  34434. message.selectBuff.push(reader.int64());
  34435. break;
  34436. default:
  34437. reader.skipType(tag & 7);
  34438. break;
  34439. }
  34440. }
  34441. return message;
  34442. };
  34443. /**
  34444. * Decodes a relic_event_nty message from the specified reader or buffer, length delimited.
  34445. * @function decodeDelimited
  34446. * @memberof game.relic_event_nty
  34447. * @static
  34448. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34449. * @returns {game.relic_event_nty} relic_event_nty
  34450. * @throws {Error} If the payload is not a reader or valid buffer
  34451. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34452. */
  34453. relic_event_nty.decodeDelimited = function decodeDelimited(reader) {
  34454. if (!(reader instanceof $Reader))
  34455. reader = new $Reader(reader);
  34456. return this.decode(reader, reader.uint32());
  34457. };
  34458. /**
  34459. * Verifies a relic_event_nty message.
  34460. * @function verify
  34461. * @memberof game.relic_event_nty
  34462. * @static
  34463. * @param {Object.<string,*>} message Plain object to verify
  34464. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  34465. */
  34466. relic_event_nty.verify = function verify(message) {
  34467. if (typeof message !== "object" || message === null)
  34468. return "object expected";
  34469. if (message.type != null && message.hasOwnProperty("type"))
  34470. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  34471. return "type: integer|Long expected";
  34472. if (message.battleId != null && message.hasOwnProperty("battleId"))
  34473. if (!$util.isInteger(message.battleId) && !(message.battleId && $util.isInteger(message.battleId.low) && $util.isInteger(message.battleId.high)))
  34474. return "battleId: integer|Long expected";
  34475. if (message.battleType != null && message.hasOwnProperty("battleType"))
  34476. if (!$util.isInteger(message.battleType) && !(message.battleType && $util.isInteger(message.battleType.low) && $util.isInteger(message.battleType.high)))
  34477. return "battleType: integer|Long expected";
  34478. if (message.selectBuff != null && message.hasOwnProperty("selectBuff")) {
  34479. if (!Array.isArray(message.selectBuff))
  34480. return "selectBuff: array expected";
  34481. for (let i = 0; i < message.selectBuff.length; ++i)
  34482. if (!$util.isInteger(message.selectBuff[i]) && !(message.selectBuff[i] && $util.isInteger(message.selectBuff[i].low) && $util.isInteger(message.selectBuff[i].high)))
  34483. return "selectBuff: integer|Long[] expected";
  34484. }
  34485. return null;
  34486. };
  34487. /**
  34488. * Creates a relic_event_nty message from a plain object. Also converts values to their respective internal types.
  34489. * @function fromObject
  34490. * @memberof game.relic_event_nty
  34491. * @static
  34492. * @param {Object.<string,*>} object Plain object
  34493. * @returns {game.relic_event_nty} relic_event_nty
  34494. */
  34495. relic_event_nty.fromObject = function fromObject(object) {
  34496. if (object instanceof $root.game.relic_event_nty)
  34497. return object;
  34498. let message = new $root.game.relic_event_nty();
  34499. if (object.type != null)
  34500. if ($util.Long)
  34501. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  34502. else if (typeof object.type === "string")
  34503. message.type = parseInt(object.type, 10);
  34504. else if (typeof object.type === "number")
  34505. message.type = object.type;
  34506. else if (typeof object.type === "object")
  34507. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  34508. if (object.battleId != null)
  34509. if ($util.Long)
  34510. (message.battleId = $util.Long.fromValue(object.battleId)).unsigned = false;
  34511. else if (typeof object.battleId === "string")
  34512. message.battleId = parseInt(object.battleId, 10);
  34513. else if (typeof object.battleId === "number")
  34514. message.battleId = object.battleId;
  34515. else if (typeof object.battleId === "object")
  34516. message.battleId = new $util.LongBits(object.battleId.low >>> 0, object.battleId.high >>> 0).toNumber();
  34517. if (object.battleType != null)
  34518. if ($util.Long)
  34519. (message.battleType = $util.Long.fromValue(object.battleType)).unsigned = false;
  34520. else if (typeof object.battleType === "string")
  34521. message.battleType = parseInt(object.battleType, 10);
  34522. else if (typeof object.battleType === "number")
  34523. message.battleType = object.battleType;
  34524. else if (typeof object.battleType === "object")
  34525. message.battleType = new $util.LongBits(object.battleType.low >>> 0, object.battleType.high >>> 0).toNumber();
  34526. if (object.selectBuff) {
  34527. if (!Array.isArray(object.selectBuff))
  34528. throw TypeError(".game.relic_event_nty.selectBuff: array expected");
  34529. message.selectBuff = [];
  34530. for (let i = 0; i < object.selectBuff.length; ++i)
  34531. if ($util.Long)
  34532. (message.selectBuff[i] = $util.Long.fromValue(object.selectBuff[i])).unsigned = false;
  34533. else if (typeof object.selectBuff[i] === "string")
  34534. message.selectBuff[i] = parseInt(object.selectBuff[i], 10);
  34535. else if (typeof object.selectBuff[i] === "number")
  34536. message.selectBuff[i] = object.selectBuff[i];
  34537. else if (typeof object.selectBuff[i] === "object")
  34538. message.selectBuff[i] = new $util.LongBits(object.selectBuff[i].low >>> 0, object.selectBuff[i].high >>> 0).toNumber();
  34539. }
  34540. return message;
  34541. };
  34542. /**
  34543. * Creates a plain object from a relic_event_nty message. Also converts values to other types if specified.
  34544. * @function toObject
  34545. * @memberof game.relic_event_nty
  34546. * @static
  34547. * @param {game.relic_event_nty} message relic_event_nty
  34548. * @param {$protobuf.IConversionOptions} [options] Conversion options
  34549. * @returns {Object.<string,*>} Plain object
  34550. */
  34551. relic_event_nty.toObject = function toObject(message, options) {
  34552. if (!options)
  34553. options = {};
  34554. let object = {};
  34555. if (options.arrays || options.defaults)
  34556. object.selectBuff = [];
  34557. if (options.defaults) {
  34558. if ($util.Long) {
  34559. let long = new $util.Long(0, 0, false);
  34560. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34561. } else
  34562. object.type = options.longs === String ? "0" : 0;
  34563. if ($util.Long) {
  34564. let long = new $util.Long(0, 0, false);
  34565. object.battleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34566. } else
  34567. object.battleId = options.longs === String ? "0" : 0;
  34568. if ($util.Long) {
  34569. let long = new $util.Long(0, 0, false);
  34570. object.battleType = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  34571. } else
  34572. object.battleType = options.longs === String ? "0" : 0;
  34573. }
  34574. if (message.type != null && message.hasOwnProperty("type"))
  34575. if (typeof message.type === "number")
  34576. object.type = options.longs === String ? String(message.type) : message.type;
  34577. else
  34578. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  34579. if (message.battleId != null && message.hasOwnProperty("battleId"))
  34580. if (typeof message.battleId === "number")
  34581. object.battleId = options.longs === String ? String(message.battleId) : message.battleId;
  34582. else
  34583. object.battleId = options.longs === String ? $util.Long.prototype.toString.call(message.battleId) : options.longs === Number ? new $util.LongBits(message.battleId.low >>> 0, message.battleId.high >>> 0).toNumber() : message.battleId;
  34584. if (message.battleType != null && message.hasOwnProperty("battleType"))
  34585. if (typeof message.battleType === "number")
  34586. object.battleType = options.longs === String ? String(message.battleType) : message.battleType;
  34587. else
  34588. object.battleType = options.longs === String ? $util.Long.prototype.toString.call(message.battleType) : options.longs === Number ? new $util.LongBits(message.battleType.low >>> 0, message.battleType.high >>> 0).toNumber() : message.battleType;
  34589. if (message.selectBuff && message.selectBuff.length) {
  34590. object.selectBuff = [];
  34591. for (let j = 0; j < message.selectBuff.length; ++j)
  34592. if (typeof message.selectBuff[j] === "number")
  34593. object.selectBuff[j] = options.longs === String ? String(message.selectBuff[j]) : message.selectBuff[j];
  34594. else
  34595. object.selectBuff[j] = options.longs === String ? $util.Long.prototype.toString.call(message.selectBuff[j]) : options.longs === Number ? new $util.LongBits(message.selectBuff[j].low >>> 0, message.selectBuff[j].high >>> 0).toNumber() : message.selectBuff[j];
  34596. }
  34597. return object;
  34598. };
  34599. /**
  34600. * Converts this relic_event_nty to JSON.
  34601. * @function toJSON
  34602. * @memberof game.relic_event_nty
  34603. * @instance
  34604. * @returns {Object.<string,*>} JSON object
  34605. */
  34606. relic_event_nty.prototype.toJSON = function toJSON() {
  34607. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  34608. };
  34609. return relic_event_nty;
  34610. })();
  34611. game.activity_time_list_nty = (function() {
  34612. /**
  34613. * Properties of an activity_time_list_nty.
  34614. * @memberof game
  34615. * @interface Iactivity_time_list_nty
  34616. * @property {Array.<game.Iactivity_time_info>|null} [list] activity_time_list_nty list
  34617. */
  34618. /**
  34619. * Constructs a new activity_time_list_nty.
  34620. * @memberof game
  34621. * @classdesc Represents an activity_time_list_nty.
  34622. * @implements Iactivity_time_list_nty
  34623. * @constructor
  34624. * @param {game.Iactivity_time_list_nty=} [properties] Properties to set
  34625. */
  34626. function activity_time_list_nty(properties) {
  34627. this.list = [];
  34628. if (properties)
  34629. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  34630. if (properties[keys[i]] != null)
  34631. this[keys[i]] = properties[keys[i]];
  34632. }
  34633. /**
  34634. * activity_time_list_nty list.
  34635. * @member {Array.<game.Iactivity_time_info>} list
  34636. * @memberof game.activity_time_list_nty
  34637. * @instance
  34638. */
  34639. activity_time_list_nty.prototype.list = $util.emptyArray;
  34640. /**
  34641. * Creates a new activity_time_list_nty instance using the specified properties.
  34642. * @function create
  34643. * @memberof game.activity_time_list_nty
  34644. * @static
  34645. * @param {game.Iactivity_time_list_nty=} [properties] Properties to set
  34646. * @returns {game.activity_time_list_nty} activity_time_list_nty instance
  34647. */
  34648. activity_time_list_nty.create = function create(properties) {
  34649. return new activity_time_list_nty(properties);
  34650. };
  34651. /**
  34652. * Encodes the specified activity_time_list_nty message. Does not implicitly {@link game.activity_time_list_nty.verify|verify} messages.
  34653. * @function encode
  34654. * @memberof game.activity_time_list_nty
  34655. * @static
  34656. * @param {game.Iactivity_time_list_nty} message activity_time_list_nty message or plain object to encode
  34657. * @param {$protobuf.Writer} [writer] Writer to encode to
  34658. * @returns {$protobuf.Writer} Writer
  34659. */
  34660. activity_time_list_nty.encode = function encode(message, writer) {
  34661. if (!writer)
  34662. writer = $Writer.create();
  34663. if (message.list != null && message.list.length)
  34664. for (let i = 0; i < message.list.length; ++i)
  34665. $root.game.activity_time_info.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  34666. return writer;
  34667. };
  34668. /**
  34669. * Encodes the specified activity_time_list_nty message, length delimited. Does not implicitly {@link game.activity_time_list_nty.verify|verify} messages.
  34670. * @function encodeDelimited
  34671. * @memberof game.activity_time_list_nty
  34672. * @static
  34673. * @param {game.Iactivity_time_list_nty} message activity_time_list_nty message or plain object to encode
  34674. * @param {$protobuf.Writer} [writer] Writer to encode to
  34675. * @returns {$protobuf.Writer} Writer
  34676. */
  34677. activity_time_list_nty.encodeDelimited = function encodeDelimited(message, writer) {
  34678. return this.encode(message, writer).ldelim();
  34679. };
  34680. /**
  34681. * Decodes an activity_time_list_nty message from the specified reader or buffer.
  34682. * @function decode
  34683. * @memberof game.activity_time_list_nty
  34684. * @static
  34685. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34686. * @param {number} [length] Message length if known beforehand
  34687. * @returns {game.activity_time_list_nty} activity_time_list_nty
  34688. * @throws {Error} If the payload is not a reader or valid buffer
  34689. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34690. */
  34691. activity_time_list_nty.decode = function decode(reader, length) {
  34692. if (!(reader instanceof $Reader))
  34693. reader = $Reader.create(reader);
  34694. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_time_list_nty();
  34695. while (reader.pos < end) {
  34696. let tag = reader.uint32();
  34697. switch (tag >>> 3) {
  34698. case 1:
  34699. if (!(message.list && message.list.length))
  34700. message.list = [];
  34701. message.list.push($root.game.activity_time_info.decode(reader, reader.uint32()));
  34702. break;
  34703. default:
  34704. reader.skipType(tag & 7);
  34705. break;
  34706. }
  34707. }
  34708. return message;
  34709. };
  34710. /**
  34711. * Decodes an activity_time_list_nty message from the specified reader or buffer, length delimited.
  34712. * @function decodeDelimited
  34713. * @memberof game.activity_time_list_nty
  34714. * @static
  34715. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34716. * @returns {game.activity_time_list_nty} activity_time_list_nty
  34717. * @throws {Error} If the payload is not a reader or valid buffer
  34718. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34719. */
  34720. activity_time_list_nty.decodeDelimited = function decodeDelimited(reader) {
  34721. if (!(reader instanceof $Reader))
  34722. reader = new $Reader(reader);
  34723. return this.decode(reader, reader.uint32());
  34724. };
  34725. /**
  34726. * Verifies an activity_time_list_nty message.
  34727. * @function verify
  34728. * @memberof game.activity_time_list_nty
  34729. * @static
  34730. * @param {Object.<string,*>} message Plain object to verify
  34731. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  34732. */
  34733. activity_time_list_nty.verify = function verify(message) {
  34734. if (typeof message !== "object" || message === null)
  34735. return "object expected";
  34736. if (message.list != null && message.hasOwnProperty("list")) {
  34737. if (!Array.isArray(message.list))
  34738. return "list: array expected";
  34739. for (let i = 0; i < message.list.length; ++i) {
  34740. let error = $root.game.activity_time_info.verify(message.list[i]);
  34741. if (error)
  34742. return "list." + error;
  34743. }
  34744. }
  34745. return null;
  34746. };
  34747. /**
  34748. * Creates an activity_time_list_nty message from a plain object. Also converts values to their respective internal types.
  34749. * @function fromObject
  34750. * @memberof game.activity_time_list_nty
  34751. * @static
  34752. * @param {Object.<string,*>} object Plain object
  34753. * @returns {game.activity_time_list_nty} activity_time_list_nty
  34754. */
  34755. activity_time_list_nty.fromObject = function fromObject(object) {
  34756. if (object instanceof $root.game.activity_time_list_nty)
  34757. return object;
  34758. let message = new $root.game.activity_time_list_nty();
  34759. if (object.list) {
  34760. if (!Array.isArray(object.list))
  34761. throw TypeError(".game.activity_time_list_nty.list: array expected");
  34762. message.list = [];
  34763. for (let i = 0; i < object.list.length; ++i) {
  34764. if (typeof object.list[i] !== "object")
  34765. throw TypeError(".game.activity_time_list_nty.list: object expected");
  34766. message.list[i] = $root.game.activity_time_info.fromObject(object.list[i]);
  34767. }
  34768. }
  34769. return message;
  34770. };
  34771. /**
  34772. * Creates a plain object from an activity_time_list_nty message. Also converts values to other types if specified.
  34773. * @function toObject
  34774. * @memberof game.activity_time_list_nty
  34775. * @static
  34776. * @param {game.activity_time_list_nty} message activity_time_list_nty
  34777. * @param {$protobuf.IConversionOptions} [options] Conversion options
  34778. * @returns {Object.<string,*>} Plain object
  34779. */
  34780. activity_time_list_nty.toObject = function toObject(message, options) {
  34781. if (!options)
  34782. options = {};
  34783. let object = {};
  34784. if (options.arrays || options.defaults)
  34785. object.list = [];
  34786. if (message.list && message.list.length) {
  34787. object.list = [];
  34788. for (let j = 0; j < message.list.length; ++j)
  34789. object.list[j] = $root.game.activity_time_info.toObject(message.list[j], options);
  34790. }
  34791. return object;
  34792. };
  34793. /**
  34794. * Converts this activity_time_list_nty to JSON.
  34795. * @function toJSON
  34796. * @memberof game.activity_time_list_nty
  34797. * @instance
  34798. * @returns {Object.<string,*>} JSON object
  34799. */
  34800. activity_time_list_nty.prototype.toJSON = function toJSON() {
  34801. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  34802. };
  34803. return activity_time_list_nty;
  34804. })();
  34805. game.activity_get_conf_list = (function() {
  34806. /**
  34807. * Properties of an activity_get_conf_list.
  34808. * @memberof game
  34809. * @interface Iactivity_get_conf_list
  34810. * @property {Array.<string>|null} [list] activity_get_conf_list list
  34811. */
  34812. /**
  34813. * Constructs a new activity_get_conf_list.
  34814. * @memberof game
  34815. * @classdesc Represents an activity_get_conf_list.
  34816. * @implements Iactivity_get_conf_list
  34817. * @constructor
  34818. * @param {game.Iactivity_get_conf_list=} [properties] Properties to set
  34819. */
  34820. function activity_get_conf_list(properties) {
  34821. this.list = [];
  34822. if (properties)
  34823. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  34824. if (properties[keys[i]] != null)
  34825. this[keys[i]] = properties[keys[i]];
  34826. }
  34827. /**
  34828. * activity_get_conf_list list.
  34829. * @member {Array.<string>} list
  34830. * @memberof game.activity_get_conf_list
  34831. * @instance
  34832. */
  34833. activity_get_conf_list.prototype.list = $util.emptyArray;
  34834. /**
  34835. * Creates a new activity_get_conf_list instance using the specified properties.
  34836. * @function create
  34837. * @memberof game.activity_get_conf_list
  34838. * @static
  34839. * @param {game.Iactivity_get_conf_list=} [properties] Properties to set
  34840. * @returns {game.activity_get_conf_list} activity_get_conf_list instance
  34841. */
  34842. activity_get_conf_list.create = function create(properties) {
  34843. return new activity_get_conf_list(properties);
  34844. };
  34845. /**
  34846. * Encodes the specified activity_get_conf_list message. Does not implicitly {@link game.activity_get_conf_list.verify|verify} messages.
  34847. * @function encode
  34848. * @memberof game.activity_get_conf_list
  34849. * @static
  34850. * @param {game.Iactivity_get_conf_list} message activity_get_conf_list message or plain object to encode
  34851. * @param {$protobuf.Writer} [writer] Writer to encode to
  34852. * @returns {$protobuf.Writer} Writer
  34853. */
  34854. activity_get_conf_list.encode = function encode(message, writer) {
  34855. if (!writer)
  34856. writer = $Writer.create();
  34857. if (message.list != null && message.list.length)
  34858. for (let i = 0; i < message.list.length; ++i)
  34859. writer.uint32(/* id 1, wireType 2 =*/10).string(message.list[i]);
  34860. return writer;
  34861. };
  34862. /**
  34863. * Encodes the specified activity_get_conf_list message, length delimited. Does not implicitly {@link game.activity_get_conf_list.verify|verify} messages.
  34864. * @function encodeDelimited
  34865. * @memberof game.activity_get_conf_list
  34866. * @static
  34867. * @param {game.Iactivity_get_conf_list} message activity_get_conf_list message or plain object to encode
  34868. * @param {$protobuf.Writer} [writer] Writer to encode to
  34869. * @returns {$protobuf.Writer} Writer
  34870. */
  34871. activity_get_conf_list.encodeDelimited = function encodeDelimited(message, writer) {
  34872. return this.encode(message, writer).ldelim();
  34873. };
  34874. /**
  34875. * Decodes an activity_get_conf_list message from the specified reader or buffer.
  34876. * @function decode
  34877. * @memberof game.activity_get_conf_list
  34878. * @static
  34879. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34880. * @param {number} [length] Message length if known beforehand
  34881. * @returns {game.activity_get_conf_list} activity_get_conf_list
  34882. * @throws {Error} If the payload is not a reader or valid buffer
  34883. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34884. */
  34885. activity_get_conf_list.decode = function decode(reader, length) {
  34886. if (!(reader instanceof $Reader))
  34887. reader = $Reader.create(reader);
  34888. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_list();
  34889. while (reader.pos < end) {
  34890. let tag = reader.uint32();
  34891. switch (tag >>> 3) {
  34892. case 1:
  34893. if (!(message.list && message.list.length))
  34894. message.list = [];
  34895. message.list.push(reader.string());
  34896. break;
  34897. default:
  34898. reader.skipType(tag & 7);
  34899. break;
  34900. }
  34901. }
  34902. return message;
  34903. };
  34904. /**
  34905. * Decodes an activity_get_conf_list message from the specified reader or buffer, length delimited.
  34906. * @function decodeDelimited
  34907. * @memberof game.activity_get_conf_list
  34908. * @static
  34909. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  34910. * @returns {game.activity_get_conf_list} activity_get_conf_list
  34911. * @throws {Error} If the payload is not a reader or valid buffer
  34912. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  34913. */
  34914. activity_get_conf_list.decodeDelimited = function decodeDelimited(reader) {
  34915. if (!(reader instanceof $Reader))
  34916. reader = new $Reader(reader);
  34917. return this.decode(reader, reader.uint32());
  34918. };
  34919. /**
  34920. * Verifies an activity_get_conf_list message.
  34921. * @function verify
  34922. * @memberof game.activity_get_conf_list
  34923. * @static
  34924. * @param {Object.<string,*>} message Plain object to verify
  34925. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  34926. */
  34927. activity_get_conf_list.verify = function verify(message) {
  34928. if (typeof message !== "object" || message === null)
  34929. return "object expected";
  34930. if (message.list != null && message.hasOwnProperty("list")) {
  34931. if (!Array.isArray(message.list))
  34932. return "list: array expected";
  34933. for (let i = 0; i < message.list.length; ++i)
  34934. if (!$util.isString(message.list[i]))
  34935. return "list: string[] expected";
  34936. }
  34937. return null;
  34938. };
  34939. /**
  34940. * Creates an activity_get_conf_list message from a plain object. Also converts values to their respective internal types.
  34941. * @function fromObject
  34942. * @memberof game.activity_get_conf_list
  34943. * @static
  34944. * @param {Object.<string,*>} object Plain object
  34945. * @returns {game.activity_get_conf_list} activity_get_conf_list
  34946. */
  34947. activity_get_conf_list.fromObject = function fromObject(object) {
  34948. if (object instanceof $root.game.activity_get_conf_list)
  34949. return object;
  34950. let message = new $root.game.activity_get_conf_list();
  34951. if (object.list) {
  34952. if (!Array.isArray(object.list))
  34953. throw TypeError(".game.activity_get_conf_list.list: array expected");
  34954. message.list = [];
  34955. for (let i = 0; i < object.list.length; ++i)
  34956. message.list[i] = String(object.list[i]);
  34957. }
  34958. return message;
  34959. };
  34960. /**
  34961. * Creates a plain object from an activity_get_conf_list message. Also converts values to other types if specified.
  34962. * @function toObject
  34963. * @memberof game.activity_get_conf_list
  34964. * @static
  34965. * @param {game.activity_get_conf_list} message activity_get_conf_list
  34966. * @param {$protobuf.IConversionOptions} [options] Conversion options
  34967. * @returns {Object.<string,*>} Plain object
  34968. */
  34969. activity_get_conf_list.toObject = function toObject(message, options) {
  34970. if (!options)
  34971. options = {};
  34972. let object = {};
  34973. if (options.arrays || options.defaults)
  34974. object.list = [];
  34975. if (message.list && message.list.length) {
  34976. object.list = [];
  34977. for (let j = 0; j < message.list.length; ++j)
  34978. object.list[j] = message.list[j];
  34979. }
  34980. return object;
  34981. };
  34982. /**
  34983. * Converts this activity_get_conf_list to JSON.
  34984. * @function toJSON
  34985. * @memberof game.activity_get_conf_list
  34986. * @instance
  34987. * @returns {Object.<string,*>} JSON object
  34988. */
  34989. activity_get_conf_list.prototype.toJSON = function toJSON() {
  34990. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  34991. };
  34992. return activity_get_conf_list;
  34993. })();
  34994. game.activity_get_conf_list_rsp = (function() {
  34995. /**
  34996. * Properties of an activity_get_conf_list_rsp.
  34997. * @memberof game
  34998. * @interface Iactivity_get_conf_list_rsp
  34999. * @property {number|Long|null} [errno] activity_get_conf_list_rsp errno
  35000. * @property {Array.<game.Iactivity_conf_info>|null} [list] activity_get_conf_list_rsp list
  35001. */
  35002. /**
  35003. * Constructs a new activity_get_conf_list_rsp.
  35004. * @memberof game
  35005. * @classdesc Represents an activity_get_conf_list_rsp.
  35006. * @implements Iactivity_get_conf_list_rsp
  35007. * @constructor
  35008. * @param {game.Iactivity_get_conf_list_rsp=} [properties] Properties to set
  35009. */
  35010. function activity_get_conf_list_rsp(properties) {
  35011. this.list = [];
  35012. if (properties)
  35013. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35014. if (properties[keys[i]] != null)
  35015. this[keys[i]] = properties[keys[i]];
  35016. }
  35017. /**
  35018. * activity_get_conf_list_rsp errno.
  35019. * @member {number|Long} errno
  35020. * @memberof game.activity_get_conf_list_rsp
  35021. * @instance
  35022. */
  35023. activity_get_conf_list_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  35024. /**
  35025. * activity_get_conf_list_rsp list.
  35026. * @member {Array.<game.Iactivity_conf_info>} list
  35027. * @memberof game.activity_get_conf_list_rsp
  35028. * @instance
  35029. */
  35030. activity_get_conf_list_rsp.prototype.list = $util.emptyArray;
  35031. /**
  35032. * Creates a new activity_get_conf_list_rsp instance using the specified properties.
  35033. * @function create
  35034. * @memberof game.activity_get_conf_list_rsp
  35035. * @static
  35036. * @param {game.Iactivity_get_conf_list_rsp=} [properties] Properties to set
  35037. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp instance
  35038. */
  35039. activity_get_conf_list_rsp.create = function create(properties) {
  35040. return new activity_get_conf_list_rsp(properties);
  35041. };
  35042. /**
  35043. * Encodes the specified activity_get_conf_list_rsp message. Does not implicitly {@link game.activity_get_conf_list_rsp.verify|verify} messages.
  35044. * @function encode
  35045. * @memberof game.activity_get_conf_list_rsp
  35046. * @static
  35047. * @param {game.Iactivity_get_conf_list_rsp} message activity_get_conf_list_rsp message or plain object to encode
  35048. * @param {$protobuf.Writer} [writer] Writer to encode to
  35049. * @returns {$protobuf.Writer} Writer
  35050. */
  35051. activity_get_conf_list_rsp.encode = function encode(message, writer) {
  35052. if (!writer)
  35053. writer = $Writer.create();
  35054. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  35055. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  35056. if (message.list != null && message.list.length)
  35057. for (let i = 0; i < message.list.length; ++i)
  35058. $root.game.activity_conf_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  35059. return writer;
  35060. };
  35061. /**
  35062. * Encodes the specified activity_get_conf_list_rsp message, length delimited. Does not implicitly {@link game.activity_get_conf_list_rsp.verify|verify} messages.
  35063. * @function encodeDelimited
  35064. * @memberof game.activity_get_conf_list_rsp
  35065. * @static
  35066. * @param {game.Iactivity_get_conf_list_rsp} message activity_get_conf_list_rsp message or plain object to encode
  35067. * @param {$protobuf.Writer} [writer] Writer to encode to
  35068. * @returns {$protobuf.Writer} Writer
  35069. */
  35070. activity_get_conf_list_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  35071. return this.encode(message, writer).ldelim();
  35072. };
  35073. /**
  35074. * Decodes an activity_get_conf_list_rsp message from the specified reader or buffer.
  35075. * @function decode
  35076. * @memberof game.activity_get_conf_list_rsp
  35077. * @static
  35078. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35079. * @param {number} [length] Message length if known beforehand
  35080. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
  35081. * @throws {Error} If the payload is not a reader or valid buffer
  35082. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35083. */
  35084. activity_get_conf_list_rsp.decode = function decode(reader, length) {
  35085. if (!(reader instanceof $Reader))
  35086. reader = $Reader.create(reader);
  35087. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_list_rsp();
  35088. while (reader.pos < end) {
  35089. let tag = reader.uint32();
  35090. switch (tag >>> 3) {
  35091. case 1:
  35092. message.errno = reader.int64();
  35093. break;
  35094. case 2:
  35095. if (!(message.list && message.list.length))
  35096. message.list = [];
  35097. message.list.push($root.game.activity_conf_info.decode(reader, reader.uint32()));
  35098. break;
  35099. default:
  35100. reader.skipType(tag & 7);
  35101. break;
  35102. }
  35103. }
  35104. return message;
  35105. };
  35106. /**
  35107. * Decodes an activity_get_conf_list_rsp message from the specified reader or buffer, length delimited.
  35108. * @function decodeDelimited
  35109. * @memberof game.activity_get_conf_list_rsp
  35110. * @static
  35111. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35112. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
  35113. * @throws {Error} If the payload is not a reader or valid buffer
  35114. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35115. */
  35116. activity_get_conf_list_rsp.decodeDelimited = function decodeDelimited(reader) {
  35117. if (!(reader instanceof $Reader))
  35118. reader = new $Reader(reader);
  35119. return this.decode(reader, reader.uint32());
  35120. };
  35121. /**
  35122. * Verifies an activity_get_conf_list_rsp message.
  35123. * @function verify
  35124. * @memberof game.activity_get_conf_list_rsp
  35125. * @static
  35126. * @param {Object.<string,*>} message Plain object to verify
  35127. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35128. */
  35129. activity_get_conf_list_rsp.verify = function verify(message) {
  35130. if (typeof message !== "object" || message === null)
  35131. return "object expected";
  35132. if (message.errno != null && message.hasOwnProperty("errno"))
  35133. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  35134. return "errno: integer|Long expected";
  35135. if (message.list != null && message.hasOwnProperty("list")) {
  35136. if (!Array.isArray(message.list))
  35137. return "list: array expected";
  35138. for (let i = 0; i < message.list.length; ++i) {
  35139. let error = $root.game.activity_conf_info.verify(message.list[i]);
  35140. if (error)
  35141. return "list." + error;
  35142. }
  35143. }
  35144. return null;
  35145. };
  35146. /**
  35147. * Creates an activity_get_conf_list_rsp message from a plain object. Also converts values to their respective internal types.
  35148. * @function fromObject
  35149. * @memberof game.activity_get_conf_list_rsp
  35150. * @static
  35151. * @param {Object.<string,*>} object Plain object
  35152. * @returns {game.activity_get_conf_list_rsp} activity_get_conf_list_rsp
  35153. */
  35154. activity_get_conf_list_rsp.fromObject = function fromObject(object) {
  35155. if (object instanceof $root.game.activity_get_conf_list_rsp)
  35156. return object;
  35157. let message = new $root.game.activity_get_conf_list_rsp();
  35158. if (object.errno != null)
  35159. if ($util.Long)
  35160. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  35161. else if (typeof object.errno === "string")
  35162. message.errno = parseInt(object.errno, 10);
  35163. else if (typeof object.errno === "number")
  35164. message.errno = object.errno;
  35165. else if (typeof object.errno === "object")
  35166. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  35167. if (object.list) {
  35168. if (!Array.isArray(object.list))
  35169. throw TypeError(".game.activity_get_conf_list_rsp.list: array expected");
  35170. message.list = [];
  35171. for (let i = 0; i < object.list.length; ++i) {
  35172. if (typeof object.list[i] !== "object")
  35173. throw TypeError(".game.activity_get_conf_list_rsp.list: object expected");
  35174. message.list[i] = $root.game.activity_conf_info.fromObject(object.list[i]);
  35175. }
  35176. }
  35177. return message;
  35178. };
  35179. /**
  35180. * Creates a plain object from an activity_get_conf_list_rsp message. Also converts values to other types if specified.
  35181. * @function toObject
  35182. * @memberof game.activity_get_conf_list_rsp
  35183. * @static
  35184. * @param {game.activity_get_conf_list_rsp} message activity_get_conf_list_rsp
  35185. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35186. * @returns {Object.<string,*>} Plain object
  35187. */
  35188. activity_get_conf_list_rsp.toObject = function toObject(message, options) {
  35189. if (!options)
  35190. options = {};
  35191. let object = {};
  35192. if (options.arrays || options.defaults)
  35193. object.list = [];
  35194. if (options.defaults)
  35195. if ($util.Long) {
  35196. let long = new $util.Long(0, 0, false);
  35197. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  35198. } else
  35199. object.errno = options.longs === String ? "0" : 0;
  35200. if (message.errno != null && message.hasOwnProperty("errno"))
  35201. if (typeof message.errno === "number")
  35202. object.errno = options.longs === String ? String(message.errno) : message.errno;
  35203. else
  35204. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  35205. if (message.list && message.list.length) {
  35206. object.list = [];
  35207. for (let j = 0; j < message.list.length; ++j)
  35208. object.list[j] = $root.game.activity_conf_info.toObject(message.list[j], options);
  35209. }
  35210. return object;
  35211. };
  35212. /**
  35213. * Converts this activity_get_conf_list_rsp to JSON.
  35214. * @function toJSON
  35215. * @memberof game.activity_get_conf_list_rsp
  35216. * @instance
  35217. * @returns {Object.<string,*>} JSON object
  35218. */
  35219. activity_get_conf_list_rsp.prototype.toJSON = function toJSON() {
  35220. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35221. };
  35222. return activity_get_conf_list_rsp;
  35223. })();
  35224. game.activity_get_conf_nty = (function() {
  35225. /**
  35226. * Properties of an activity_get_conf_nty.
  35227. * @memberof game
  35228. * @interface Iactivity_get_conf_nty
  35229. * @property {Array.<number|Long>|null} [list] activity_get_conf_nty list
  35230. */
  35231. /**
  35232. * Constructs a new activity_get_conf_nty.
  35233. * @memberof game
  35234. * @classdesc Represents an activity_get_conf_nty.
  35235. * @implements Iactivity_get_conf_nty
  35236. * @constructor
  35237. * @param {game.Iactivity_get_conf_nty=} [properties] Properties to set
  35238. */
  35239. function activity_get_conf_nty(properties) {
  35240. this.list = [];
  35241. if (properties)
  35242. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35243. if (properties[keys[i]] != null)
  35244. this[keys[i]] = properties[keys[i]];
  35245. }
  35246. /**
  35247. * activity_get_conf_nty list.
  35248. * @member {Array.<number|Long>} list
  35249. * @memberof game.activity_get_conf_nty
  35250. * @instance
  35251. */
  35252. activity_get_conf_nty.prototype.list = $util.emptyArray;
  35253. /**
  35254. * Creates a new activity_get_conf_nty instance using the specified properties.
  35255. * @function create
  35256. * @memberof game.activity_get_conf_nty
  35257. * @static
  35258. * @param {game.Iactivity_get_conf_nty=} [properties] Properties to set
  35259. * @returns {game.activity_get_conf_nty} activity_get_conf_nty instance
  35260. */
  35261. activity_get_conf_nty.create = function create(properties) {
  35262. return new activity_get_conf_nty(properties);
  35263. };
  35264. /**
  35265. * Encodes the specified activity_get_conf_nty message. Does not implicitly {@link game.activity_get_conf_nty.verify|verify} messages.
  35266. * @function encode
  35267. * @memberof game.activity_get_conf_nty
  35268. * @static
  35269. * @param {game.Iactivity_get_conf_nty} message activity_get_conf_nty message or plain object to encode
  35270. * @param {$protobuf.Writer} [writer] Writer to encode to
  35271. * @returns {$protobuf.Writer} Writer
  35272. */
  35273. activity_get_conf_nty.encode = function encode(message, writer) {
  35274. if (!writer)
  35275. writer = $Writer.create();
  35276. if (message.list != null && message.list.length) {
  35277. writer.uint32(/* id 1, wireType 2 =*/10).fork();
  35278. for (let i = 0; i < message.list.length; ++i)
  35279. writer.int64(message.list[i]);
  35280. writer.ldelim();
  35281. }
  35282. return writer;
  35283. };
  35284. /**
  35285. * Encodes the specified activity_get_conf_nty message, length delimited. Does not implicitly {@link game.activity_get_conf_nty.verify|verify} messages.
  35286. * @function encodeDelimited
  35287. * @memberof game.activity_get_conf_nty
  35288. * @static
  35289. * @param {game.Iactivity_get_conf_nty} message activity_get_conf_nty message or plain object to encode
  35290. * @param {$protobuf.Writer} [writer] Writer to encode to
  35291. * @returns {$protobuf.Writer} Writer
  35292. */
  35293. activity_get_conf_nty.encodeDelimited = function encodeDelimited(message, writer) {
  35294. return this.encode(message, writer).ldelim();
  35295. };
  35296. /**
  35297. * Decodes an activity_get_conf_nty message from the specified reader or buffer.
  35298. * @function decode
  35299. * @memberof game.activity_get_conf_nty
  35300. * @static
  35301. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35302. * @param {number} [length] Message length if known beforehand
  35303. * @returns {game.activity_get_conf_nty} activity_get_conf_nty
  35304. * @throws {Error} If the payload is not a reader or valid buffer
  35305. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35306. */
  35307. activity_get_conf_nty.decode = function decode(reader, length) {
  35308. if (!(reader instanceof $Reader))
  35309. reader = $Reader.create(reader);
  35310. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_get_conf_nty();
  35311. while (reader.pos < end) {
  35312. let tag = reader.uint32();
  35313. switch (tag >>> 3) {
  35314. case 1:
  35315. if (!(message.list && message.list.length))
  35316. message.list = [];
  35317. if ((tag & 7) === 2) {
  35318. let end2 = reader.uint32() + reader.pos;
  35319. while (reader.pos < end2)
  35320. message.list.push(reader.int64());
  35321. } else
  35322. message.list.push(reader.int64());
  35323. break;
  35324. default:
  35325. reader.skipType(tag & 7);
  35326. break;
  35327. }
  35328. }
  35329. return message;
  35330. };
  35331. /**
  35332. * Decodes an activity_get_conf_nty message from the specified reader or buffer, length delimited.
  35333. * @function decodeDelimited
  35334. * @memberof game.activity_get_conf_nty
  35335. * @static
  35336. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35337. * @returns {game.activity_get_conf_nty} activity_get_conf_nty
  35338. * @throws {Error} If the payload is not a reader or valid buffer
  35339. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35340. */
  35341. activity_get_conf_nty.decodeDelimited = function decodeDelimited(reader) {
  35342. if (!(reader instanceof $Reader))
  35343. reader = new $Reader(reader);
  35344. return this.decode(reader, reader.uint32());
  35345. };
  35346. /**
  35347. * Verifies an activity_get_conf_nty message.
  35348. * @function verify
  35349. * @memberof game.activity_get_conf_nty
  35350. * @static
  35351. * @param {Object.<string,*>} message Plain object to verify
  35352. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35353. */
  35354. activity_get_conf_nty.verify = function verify(message) {
  35355. if (typeof message !== "object" || message === null)
  35356. return "object expected";
  35357. if (message.list != null && message.hasOwnProperty("list")) {
  35358. if (!Array.isArray(message.list))
  35359. return "list: array expected";
  35360. for (let i = 0; i < message.list.length; ++i)
  35361. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  35362. return "list: integer|Long[] expected";
  35363. }
  35364. return null;
  35365. };
  35366. /**
  35367. * Creates an activity_get_conf_nty message from a plain object. Also converts values to their respective internal types.
  35368. * @function fromObject
  35369. * @memberof game.activity_get_conf_nty
  35370. * @static
  35371. * @param {Object.<string,*>} object Plain object
  35372. * @returns {game.activity_get_conf_nty} activity_get_conf_nty
  35373. */
  35374. activity_get_conf_nty.fromObject = function fromObject(object) {
  35375. if (object instanceof $root.game.activity_get_conf_nty)
  35376. return object;
  35377. let message = new $root.game.activity_get_conf_nty();
  35378. if (object.list) {
  35379. if (!Array.isArray(object.list))
  35380. throw TypeError(".game.activity_get_conf_nty.list: array expected");
  35381. message.list = [];
  35382. for (let i = 0; i < object.list.length; ++i)
  35383. if ($util.Long)
  35384. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  35385. else if (typeof object.list[i] === "string")
  35386. message.list[i] = parseInt(object.list[i], 10);
  35387. else if (typeof object.list[i] === "number")
  35388. message.list[i] = object.list[i];
  35389. else if (typeof object.list[i] === "object")
  35390. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  35391. }
  35392. return message;
  35393. };
  35394. /**
  35395. * Creates a plain object from an activity_get_conf_nty message. Also converts values to other types if specified.
  35396. * @function toObject
  35397. * @memberof game.activity_get_conf_nty
  35398. * @static
  35399. * @param {game.activity_get_conf_nty} message activity_get_conf_nty
  35400. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35401. * @returns {Object.<string,*>} Plain object
  35402. */
  35403. activity_get_conf_nty.toObject = function toObject(message, options) {
  35404. if (!options)
  35405. options = {};
  35406. let object = {};
  35407. if (options.arrays || options.defaults)
  35408. object.list = [];
  35409. if (message.list && message.list.length) {
  35410. object.list = [];
  35411. for (let j = 0; j < message.list.length; ++j)
  35412. if (typeof message.list[j] === "number")
  35413. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  35414. else
  35415. object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
  35416. }
  35417. return object;
  35418. };
  35419. /**
  35420. * Converts this activity_get_conf_nty to JSON.
  35421. * @function toJSON
  35422. * @memberof game.activity_get_conf_nty
  35423. * @instance
  35424. * @returns {Object.<string,*>} JSON object
  35425. */
  35426. activity_get_conf_nty.prototype.toJSON = function toJSON() {
  35427. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35428. };
  35429. return activity_get_conf_nty;
  35430. })();
  35431. game.privilege_card_data = (function() {
  35432. /**
  35433. * Properties of a privilege_card_data.
  35434. * @memberof game
  35435. * @interface Iprivilege_card_data
  35436. */
  35437. /**
  35438. * Constructs a new privilege_card_data.
  35439. * @memberof game
  35440. * @classdesc Represents a privilege_card_data.
  35441. * @implements Iprivilege_card_data
  35442. * @constructor
  35443. * @param {game.Iprivilege_card_data=} [properties] Properties to set
  35444. */
  35445. function privilege_card_data(properties) {
  35446. if (properties)
  35447. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35448. if (properties[keys[i]] != null)
  35449. this[keys[i]] = properties[keys[i]];
  35450. }
  35451. /**
  35452. * Creates a new privilege_card_data instance using the specified properties.
  35453. * @function create
  35454. * @memberof game.privilege_card_data
  35455. * @static
  35456. * @param {game.Iprivilege_card_data=} [properties] Properties to set
  35457. * @returns {game.privilege_card_data} privilege_card_data instance
  35458. */
  35459. privilege_card_data.create = function create(properties) {
  35460. return new privilege_card_data(properties);
  35461. };
  35462. /**
  35463. * Encodes the specified privilege_card_data message. Does not implicitly {@link game.privilege_card_data.verify|verify} messages.
  35464. * @function encode
  35465. * @memberof game.privilege_card_data
  35466. * @static
  35467. * @param {game.Iprivilege_card_data} message privilege_card_data message or plain object to encode
  35468. * @param {$protobuf.Writer} [writer] Writer to encode to
  35469. * @returns {$protobuf.Writer} Writer
  35470. */
  35471. privilege_card_data.encode = function encode(message, writer) {
  35472. if (!writer)
  35473. writer = $Writer.create();
  35474. return writer;
  35475. };
  35476. /**
  35477. * Encodes the specified privilege_card_data message, length delimited. Does not implicitly {@link game.privilege_card_data.verify|verify} messages.
  35478. * @function encodeDelimited
  35479. * @memberof game.privilege_card_data
  35480. * @static
  35481. * @param {game.Iprivilege_card_data} message privilege_card_data message or plain object to encode
  35482. * @param {$protobuf.Writer} [writer] Writer to encode to
  35483. * @returns {$protobuf.Writer} Writer
  35484. */
  35485. privilege_card_data.encodeDelimited = function encodeDelimited(message, writer) {
  35486. return this.encode(message, writer).ldelim();
  35487. };
  35488. /**
  35489. * Decodes a privilege_card_data message from the specified reader or buffer.
  35490. * @function decode
  35491. * @memberof game.privilege_card_data
  35492. * @static
  35493. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35494. * @param {number} [length] Message length if known beforehand
  35495. * @returns {game.privilege_card_data} privilege_card_data
  35496. * @throws {Error} If the payload is not a reader or valid buffer
  35497. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35498. */
  35499. privilege_card_data.decode = function decode(reader, length) {
  35500. if (!(reader instanceof $Reader))
  35501. reader = $Reader.create(reader);
  35502. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_data();
  35503. while (reader.pos < end) {
  35504. let tag = reader.uint32();
  35505. switch (tag >>> 3) {
  35506. default:
  35507. reader.skipType(tag & 7);
  35508. break;
  35509. }
  35510. }
  35511. return message;
  35512. };
  35513. /**
  35514. * Decodes a privilege_card_data message from the specified reader or buffer, length delimited.
  35515. * @function decodeDelimited
  35516. * @memberof game.privilege_card_data
  35517. * @static
  35518. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35519. * @returns {game.privilege_card_data} privilege_card_data
  35520. * @throws {Error} If the payload is not a reader or valid buffer
  35521. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35522. */
  35523. privilege_card_data.decodeDelimited = function decodeDelimited(reader) {
  35524. if (!(reader instanceof $Reader))
  35525. reader = new $Reader(reader);
  35526. return this.decode(reader, reader.uint32());
  35527. };
  35528. /**
  35529. * Verifies a privilege_card_data message.
  35530. * @function verify
  35531. * @memberof game.privilege_card_data
  35532. * @static
  35533. * @param {Object.<string,*>} message Plain object to verify
  35534. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35535. */
  35536. privilege_card_data.verify = function verify(message) {
  35537. if (typeof message !== "object" || message === null)
  35538. return "object expected";
  35539. return null;
  35540. };
  35541. /**
  35542. * Creates a privilege_card_data message from a plain object. Also converts values to their respective internal types.
  35543. * @function fromObject
  35544. * @memberof game.privilege_card_data
  35545. * @static
  35546. * @param {Object.<string,*>} object Plain object
  35547. * @returns {game.privilege_card_data} privilege_card_data
  35548. */
  35549. privilege_card_data.fromObject = function fromObject(object) {
  35550. if (object instanceof $root.game.privilege_card_data)
  35551. return object;
  35552. return new $root.game.privilege_card_data();
  35553. };
  35554. /**
  35555. * Creates a plain object from a privilege_card_data message. Also converts values to other types if specified.
  35556. * @function toObject
  35557. * @memberof game.privilege_card_data
  35558. * @static
  35559. * @param {game.privilege_card_data} message privilege_card_data
  35560. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35561. * @returns {Object.<string,*>} Plain object
  35562. */
  35563. privilege_card_data.toObject = function toObject() {
  35564. return {};
  35565. };
  35566. /**
  35567. * Converts this privilege_card_data to JSON.
  35568. * @function toJSON
  35569. * @memberof game.privilege_card_data
  35570. * @instance
  35571. * @returns {Object.<string,*>} JSON object
  35572. */
  35573. privilege_card_data.prototype.toJSON = function toJSON() {
  35574. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35575. };
  35576. return privilege_card_data;
  35577. })();
  35578. game.privilege_card_data_rsp = (function() {
  35579. /**
  35580. * Properties of a privilege_card_data_rsp.
  35581. * @memberof game
  35582. * @interface Iprivilege_card_data_rsp
  35583. * @property {number|Long|null} [errno] privilege_card_data_rsp errno
  35584. * @property {Array.<game.Iprivilege_card_info>|null} [list] privilege_card_data_rsp list
  35585. */
  35586. /**
  35587. * Constructs a new privilege_card_data_rsp.
  35588. * @memberof game
  35589. * @classdesc Represents a privilege_card_data_rsp.
  35590. * @implements Iprivilege_card_data_rsp
  35591. * @constructor
  35592. * @param {game.Iprivilege_card_data_rsp=} [properties] Properties to set
  35593. */
  35594. function privilege_card_data_rsp(properties) {
  35595. this.list = [];
  35596. if (properties)
  35597. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35598. if (properties[keys[i]] != null)
  35599. this[keys[i]] = properties[keys[i]];
  35600. }
  35601. /**
  35602. * privilege_card_data_rsp errno.
  35603. * @member {number|Long} errno
  35604. * @memberof game.privilege_card_data_rsp
  35605. * @instance
  35606. */
  35607. privilege_card_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  35608. /**
  35609. * privilege_card_data_rsp list.
  35610. * @member {Array.<game.Iprivilege_card_info>} list
  35611. * @memberof game.privilege_card_data_rsp
  35612. * @instance
  35613. */
  35614. privilege_card_data_rsp.prototype.list = $util.emptyArray;
  35615. /**
  35616. * Creates a new privilege_card_data_rsp instance using the specified properties.
  35617. * @function create
  35618. * @memberof game.privilege_card_data_rsp
  35619. * @static
  35620. * @param {game.Iprivilege_card_data_rsp=} [properties] Properties to set
  35621. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp instance
  35622. */
  35623. privilege_card_data_rsp.create = function create(properties) {
  35624. return new privilege_card_data_rsp(properties);
  35625. };
  35626. /**
  35627. * Encodes the specified privilege_card_data_rsp message. Does not implicitly {@link game.privilege_card_data_rsp.verify|verify} messages.
  35628. * @function encode
  35629. * @memberof game.privilege_card_data_rsp
  35630. * @static
  35631. * @param {game.Iprivilege_card_data_rsp} message privilege_card_data_rsp message or plain object to encode
  35632. * @param {$protobuf.Writer} [writer] Writer to encode to
  35633. * @returns {$protobuf.Writer} Writer
  35634. */
  35635. privilege_card_data_rsp.encode = function encode(message, writer) {
  35636. if (!writer)
  35637. writer = $Writer.create();
  35638. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  35639. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  35640. if (message.list != null && message.list.length)
  35641. for (let i = 0; i < message.list.length; ++i)
  35642. $root.game.privilege_card_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  35643. return writer;
  35644. };
  35645. /**
  35646. * Encodes the specified privilege_card_data_rsp message, length delimited. Does not implicitly {@link game.privilege_card_data_rsp.verify|verify} messages.
  35647. * @function encodeDelimited
  35648. * @memberof game.privilege_card_data_rsp
  35649. * @static
  35650. * @param {game.Iprivilege_card_data_rsp} message privilege_card_data_rsp message or plain object to encode
  35651. * @param {$protobuf.Writer} [writer] Writer to encode to
  35652. * @returns {$protobuf.Writer} Writer
  35653. */
  35654. privilege_card_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  35655. return this.encode(message, writer).ldelim();
  35656. };
  35657. /**
  35658. * Decodes a privilege_card_data_rsp message from the specified reader or buffer.
  35659. * @function decode
  35660. * @memberof game.privilege_card_data_rsp
  35661. * @static
  35662. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35663. * @param {number} [length] Message length if known beforehand
  35664. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
  35665. * @throws {Error} If the payload is not a reader or valid buffer
  35666. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35667. */
  35668. privilege_card_data_rsp.decode = function decode(reader, length) {
  35669. if (!(reader instanceof $Reader))
  35670. reader = $Reader.create(reader);
  35671. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_data_rsp();
  35672. while (reader.pos < end) {
  35673. let tag = reader.uint32();
  35674. switch (tag >>> 3) {
  35675. case 1:
  35676. message.errno = reader.int64();
  35677. break;
  35678. case 2:
  35679. if (!(message.list && message.list.length))
  35680. message.list = [];
  35681. message.list.push($root.game.privilege_card_info.decode(reader, reader.uint32()));
  35682. break;
  35683. default:
  35684. reader.skipType(tag & 7);
  35685. break;
  35686. }
  35687. }
  35688. return message;
  35689. };
  35690. /**
  35691. * Decodes a privilege_card_data_rsp message from the specified reader or buffer, length delimited.
  35692. * @function decodeDelimited
  35693. * @memberof game.privilege_card_data_rsp
  35694. * @static
  35695. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35696. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
  35697. * @throws {Error} If the payload is not a reader or valid buffer
  35698. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35699. */
  35700. privilege_card_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  35701. if (!(reader instanceof $Reader))
  35702. reader = new $Reader(reader);
  35703. return this.decode(reader, reader.uint32());
  35704. };
  35705. /**
  35706. * Verifies a privilege_card_data_rsp message.
  35707. * @function verify
  35708. * @memberof game.privilege_card_data_rsp
  35709. * @static
  35710. * @param {Object.<string,*>} message Plain object to verify
  35711. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35712. */
  35713. privilege_card_data_rsp.verify = function verify(message) {
  35714. if (typeof message !== "object" || message === null)
  35715. return "object expected";
  35716. if (message.errno != null && message.hasOwnProperty("errno"))
  35717. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  35718. return "errno: integer|Long expected";
  35719. if (message.list != null && message.hasOwnProperty("list")) {
  35720. if (!Array.isArray(message.list))
  35721. return "list: array expected";
  35722. for (let i = 0; i < message.list.length; ++i) {
  35723. let error = $root.game.privilege_card_info.verify(message.list[i]);
  35724. if (error)
  35725. return "list." + error;
  35726. }
  35727. }
  35728. return null;
  35729. };
  35730. /**
  35731. * Creates a privilege_card_data_rsp message from a plain object. Also converts values to their respective internal types.
  35732. * @function fromObject
  35733. * @memberof game.privilege_card_data_rsp
  35734. * @static
  35735. * @param {Object.<string,*>} object Plain object
  35736. * @returns {game.privilege_card_data_rsp} privilege_card_data_rsp
  35737. */
  35738. privilege_card_data_rsp.fromObject = function fromObject(object) {
  35739. if (object instanceof $root.game.privilege_card_data_rsp)
  35740. return object;
  35741. let message = new $root.game.privilege_card_data_rsp();
  35742. if (object.errno != null)
  35743. if ($util.Long)
  35744. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  35745. else if (typeof object.errno === "string")
  35746. message.errno = parseInt(object.errno, 10);
  35747. else if (typeof object.errno === "number")
  35748. message.errno = object.errno;
  35749. else if (typeof object.errno === "object")
  35750. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  35751. if (object.list) {
  35752. if (!Array.isArray(object.list))
  35753. throw TypeError(".game.privilege_card_data_rsp.list: array expected");
  35754. message.list = [];
  35755. for (let i = 0; i < object.list.length; ++i) {
  35756. if (typeof object.list[i] !== "object")
  35757. throw TypeError(".game.privilege_card_data_rsp.list: object expected");
  35758. message.list[i] = $root.game.privilege_card_info.fromObject(object.list[i]);
  35759. }
  35760. }
  35761. return message;
  35762. };
  35763. /**
  35764. * Creates a plain object from a privilege_card_data_rsp message. Also converts values to other types if specified.
  35765. * @function toObject
  35766. * @memberof game.privilege_card_data_rsp
  35767. * @static
  35768. * @param {game.privilege_card_data_rsp} message privilege_card_data_rsp
  35769. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35770. * @returns {Object.<string,*>} Plain object
  35771. */
  35772. privilege_card_data_rsp.toObject = function toObject(message, options) {
  35773. if (!options)
  35774. options = {};
  35775. let object = {};
  35776. if (options.arrays || options.defaults)
  35777. object.list = [];
  35778. if (options.defaults)
  35779. if ($util.Long) {
  35780. let long = new $util.Long(0, 0, false);
  35781. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  35782. } else
  35783. object.errno = options.longs === String ? "0" : 0;
  35784. if (message.errno != null && message.hasOwnProperty("errno"))
  35785. if (typeof message.errno === "number")
  35786. object.errno = options.longs === String ? String(message.errno) : message.errno;
  35787. else
  35788. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  35789. if (message.list && message.list.length) {
  35790. object.list = [];
  35791. for (let j = 0; j < message.list.length; ++j)
  35792. object.list[j] = $root.game.privilege_card_info.toObject(message.list[j], options);
  35793. }
  35794. return object;
  35795. };
  35796. /**
  35797. * Converts this privilege_card_data_rsp to JSON.
  35798. * @function toJSON
  35799. * @memberof game.privilege_card_data_rsp
  35800. * @instance
  35801. * @returns {Object.<string,*>} JSON object
  35802. */
  35803. privilege_card_data_rsp.prototype.toJSON = function toJSON() {
  35804. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35805. };
  35806. return privilege_card_data_rsp;
  35807. })();
  35808. game.privilege_card_buy = (function() {
  35809. /**
  35810. * Properties of a privilege_card_buy.
  35811. * @memberof game
  35812. * @interface Iprivilege_card_buy
  35813. * @property {number|Long|null} [moduleid] privilege_card_buy moduleid
  35814. */
  35815. /**
  35816. * Constructs a new privilege_card_buy.
  35817. * @memberof game
  35818. * @classdesc Represents a privilege_card_buy.
  35819. * @implements Iprivilege_card_buy
  35820. * @constructor
  35821. * @param {game.Iprivilege_card_buy=} [properties] Properties to set
  35822. */
  35823. function privilege_card_buy(properties) {
  35824. if (properties)
  35825. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  35826. if (properties[keys[i]] != null)
  35827. this[keys[i]] = properties[keys[i]];
  35828. }
  35829. /**
  35830. * privilege_card_buy moduleid.
  35831. * @member {number|Long} moduleid
  35832. * @memberof game.privilege_card_buy
  35833. * @instance
  35834. */
  35835. privilege_card_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  35836. /**
  35837. * Creates a new privilege_card_buy instance using the specified properties.
  35838. * @function create
  35839. * @memberof game.privilege_card_buy
  35840. * @static
  35841. * @param {game.Iprivilege_card_buy=} [properties] Properties to set
  35842. * @returns {game.privilege_card_buy} privilege_card_buy instance
  35843. */
  35844. privilege_card_buy.create = function create(properties) {
  35845. return new privilege_card_buy(properties);
  35846. };
  35847. /**
  35848. * Encodes the specified privilege_card_buy message. Does not implicitly {@link game.privilege_card_buy.verify|verify} messages.
  35849. * @function encode
  35850. * @memberof game.privilege_card_buy
  35851. * @static
  35852. * @param {game.Iprivilege_card_buy} message privilege_card_buy message or plain object to encode
  35853. * @param {$protobuf.Writer} [writer] Writer to encode to
  35854. * @returns {$protobuf.Writer} Writer
  35855. */
  35856. privilege_card_buy.encode = function encode(message, writer) {
  35857. if (!writer)
  35858. writer = $Writer.create();
  35859. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  35860. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  35861. return writer;
  35862. };
  35863. /**
  35864. * Encodes the specified privilege_card_buy message, length delimited. Does not implicitly {@link game.privilege_card_buy.verify|verify} messages.
  35865. * @function encodeDelimited
  35866. * @memberof game.privilege_card_buy
  35867. * @static
  35868. * @param {game.Iprivilege_card_buy} message privilege_card_buy message or plain object to encode
  35869. * @param {$protobuf.Writer} [writer] Writer to encode to
  35870. * @returns {$protobuf.Writer} Writer
  35871. */
  35872. privilege_card_buy.encodeDelimited = function encodeDelimited(message, writer) {
  35873. return this.encode(message, writer).ldelim();
  35874. };
  35875. /**
  35876. * Decodes a privilege_card_buy message from the specified reader or buffer.
  35877. * @function decode
  35878. * @memberof game.privilege_card_buy
  35879. * @static
  35880. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35881. * @param {number} [length] Message length if known beforehand
  35882. * @returns {game.privilege_card_buy} privilege_card_buy
  35883. * @throws {Error} If the payload is not a reader or valid buffer
  35884. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35885. */
  35886. privilege_card_buy.decode = function decode(reader, length) {
  35887. if (!(reader instanceof $Reader))
  35888. reader = $Reader.create(reader);
  35889. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_buy();
  35890. while (reader.pos < end) {
  35891. let tag = reader.uint32();
  35892. switch (tag >>> 3) {
  35893. case 1:
  35894. message.moduleid = reader.int64();
  35895. break;
  35896. default:
  35897. reader.skipType(tag & 7);
  35898. break;
  35899. }
  35900. }
  35901. return message;
  35902. };
  35903. /**
  35904. * Decodes a privilege_card_buy message from the specified reader or buffer, length delimited.
  35905. * @function decodeDelimited
  35906. * @memberof game.privilege_card_buy
  35907. * @static
  35908. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  35909. * @returns {game.privilege_card_buy} privilege_card_buy
  35910. * @throws {Error} If the payload is not a reader or valid buffer
  35911. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  35912. */
  35913. privilege_card_buy.decodeDelimited = function decodeDelimited(reader) {
  35914. if (!(reader instanceof $Reader))
  35915. reader = new $Reader(reader);
  35916. return this.decode(reader, reader.uint32());
  35917. };
  35918. /**
  35919. * Verifies a privilege_card_buy message.
  35920. * @function verify
  35921. * @memberof game.privilege_card_buy
  35922. * @static
  35923. * @param {Object.<string,*>} message Plain object to verify
  35924. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  35925. */
  35926. privilege_card_buy.verify = function verify(message) {
  35927. if (typeof message !== "object" || message === null)
  35928. return "object expected";
  35929. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  35930. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  35931. return "moduleid: integer|Long expected";
  35932. return null;
  35933. };
  35934. /**
  35935. * Creates a privilege_card_buy message from a plain object. Also converts values to their respective internal types.
  35936. * @function fromObject
  35937. * @memberof game.privilege_card_buy
  35938. * @static
  35939. * @param {Object.<string,*>} object Plain object
  35940. * @returns {game.privilege_card_buy} privilege_card_buy
  35941. */
  35942. privilege_card_buy.fromObject = function fromObject(object) {
  35943. if (object instanceof $root.game.privilege_card_buy)
  35944. return object;
  35945. let message = new $root.game.privilege_card_buy();
  35946. if (object.moduleid != null)
  35947. if ($util.Long)
  35948. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  35949. else if (typeof object.moduleid === "string")
  35950. message.moduleid = parseInt(object.moduleid, 10);
  35951. else if (typeof object.moduleid === "number")
  35952. message.moduleid = object.moduleid;
  35953. else if (typeof object.moduleid === "object")
  35954. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  35955. return message;
  35956. };
  35957. /**
  35958. * Creates a plain object from a privilege_card_buy message. Also converts values to other types if specified.
  35959. * @function toObject
  35960. * @memberof game.privilege_card_buy
  35961. * @static
  35962. * @param {game.privilege_card_buy} message privilege_card_buy
  35963. * @param {$protobuf.IConversionOptions} [options] Conversion options
  35964. * @returns {Object.<string,*>} Plain object
  35965. */
  35966. privilege_card_buy.toObject = function toObject(message, options) {
  35967. if (!options)
  35968. options = {};
  35969. let object = {};
  35970. if (options.defaults)
  35971. if ($util.Long) {
  35972. let long = new $util.Long(0, 0, false);
  35973. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  35974. } else
  35975. object.moduleid = options.longs === String ? "0" : 0;
  35976. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  35977. if (typeof message.moduleid === "number")
  35978. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  35979. else
  35980. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  35981. return object;
  35982. };
  35983. /**
  35984. * Converts this privilege_card_buy to JSON.
  35985. * @function toJSON
  35986. * @memberof game.privilege_card_buy
  35987. * @instance
  35988. * @returns {Object.<string,*>} JSON object
  35989. */
  35990. privilege_card_buy.prototype.toJSON = function toJSON() {
  35991. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  35992. };
  35993. return privilege_card_buy;
  35994. })();
  35995. game.privilege_card_buy_rsp = (function() {
  35996. /**
  35997. * Properties of a privilege_card_buy_rsp.
  35998. * @memberof game
  35999. * @interface Iprivilege_card_buy_rsp
  36000. * @property {number|Long|null} [errno] privilege_card_buy_rsp errno
  36001. */
  36002. /**
  36003. * Constructs a new privilege_card_buy_rsp.
  36004. * @memberof game
  36005. * @classdesc Represents a privilege_card_buy_rsp.
  36006. * @implements Iprivilege_card_buy_rsp
  36007. * @constructor
  36008. * @param {game.Iprivilege_card_buy_rsp=} [properties] Properties to set
  36009. */
  36010. function privilege_card_buy_rsp(properties) {
  36011. if (properties)
  36012. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36013. if (properties[keys[i]] != null)
  36014. this[keys[i]] = properties[keys[i]];
  36015. }
  36016. /**
  36017. * privilege_card_buy_rsp errno.
  36018. * @member {number|Long} errno
  36019. * @memberof game.privilege_card_buy_rsp
  36020. * @instance
  36021. */
  36022. privilege_card_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36023. /**
  36024. * Creates a new privilege_card_buy_rsp instance using the specified properties.
  36025. * @function create
  36026. * @memberof game.privilege_card_buy_rsp
  36027. * @static
  36028. * @param {game.Iprivilege_card_buy_rsp=} [properties] Properties to set
  36029. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp instance
  36030. */
  36031. privilege_card_buy_rsp.create = function create(properties) {
  36032. return new privilege_card_buy_rsp(properties);
  36033. };
  36034. /**
  36035. * Encodes the specified privilege_card_buy_rsp message. Does not implicitly {@link game.privilege_card_buy_rsp.verify|verify} messages.
  36036. * @function encode
  36037. * @memberof game.privilege_card_buy_rsp
  36038. * @static
  36039. * @param {game.Iprivilege_card_buy_rsp} message privilege_card_buy_rsp message or plain object to encode
  36040. * @param {$protobuf.Writer} [writer] Writer to encode to
  36041. * @returns {$protobuf.Writer} Writer
  36042. */
  36043. privilege_card_buy_rsp.encode = function encode(message, writer) {
  36044. if (!writer)
  36045. writer = $Writer.create();
  36046. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  36047. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  36048. return writer;
  36049. };
  36050. /**
  36051. * Encodes the specified privilege_card_buy_rsp message, length delimited. Does not implicitly {@link game.privilege_card_buy_rsp.verify|verify} messages.
  36052. * @function encodeDelimited
  36053. * @memberof game.privilege_card_buy_rsp
  36054. * @static
  36055. * @param {game.Iprivilege_card_buy_rsp} message privilege_card_buy_rsp message or plain object to encode
  36056. * @param {$protobuf.Writer} [writer] Writer to encode to
  36057. * @returns {$protobuf.Writer} Writer
  36058. */
  36059. privilege_card_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  36060. return this.encode(message, writer).ldelim();
  36061. };
  36062. /**
  36063. * Decodes a privilege_card_buy_rsp message from the specified reader or buffer.
  36064. * @function decode
  36065. * @memberof game.privilege_card_buy_rsp
  36066. * @static
  36067. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36068. * @param {number} [length] Message length if known beforehand
  36069. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
  36070. * @throws {Error} If the payload is not a reader or valid buffer
  36071. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36072. */
  36073. privilege_card_buy_rsp.decode = function decode(reader, length) {
  36074. if (!(reader instanceof $Reader))
  36075. reader = $Reader.create(reader);
  36076. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_buy_rsp();
  36077. while (reader.pos < end) {
  36078. let tag = reader.uint32();
  36079. switch (tag >>> 3) {
  36080. case 1:
  36081. message.errno = reader.int64();
  36082. break;
  36083. default:
  36084. reader.skipType(tag & 7);
  36085. break;
  36086. }
  36087. }
  36088. return message;
  36089. };
  36090. /**
  36091. * Decodes a privilege_card_buy_rsp message from the specified reader or buffer, length delimited.
  36092. * @function decodeDelimited
  36093. * @memberof game.privilege_card_buy_rsp
  36094. * @static
  36095. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36096. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
  36097. * @throws {Error} If the payload is not a reader or valid buffer
  36098. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36099. */
  36100. privilege_card_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  36101. if (!(reader instanceof $Reader))
  36102. reader = new $Reader(reader);
  36103. return this.decode(reader, reader.uint32());
  36104. };
  36105. /**
  36106. * Verifies a privilege_card_buy_rsp message.
  36107. * @function verify
  36108. * @memberof game.privilege_card_buy_rsp
  36109. * @static
  36110. * @param {Object.<string,*>} message Plain object to verify
  36111. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36112. */
  36113. privilege_card_buy_rsp.verify = function verify(message) {
  36114. if (typeof message !== "object" || message === null)
  36115. return "object expected";
  36116. if (message.errno != null && message.hasOwnProperty("errno"))
  36117. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  36118. return "errno: integer|Long expected";
  36119. return null;
  36120. };
  36121. /**
  36122. * Creates a privilege_card_buy_rsp message from a plain object. Also converts values to their respective internal types.
  36123. * @function fromObject
  36124. * @memberof game.privilege_card_buy_rsp
  36125. * @static
  36126. * @param {Object.<string,*>} object Plain object
  36127. * @returns {game.privilege_card_buy_rsp} privilege_card_buy_rsp
  36128. */
  36129. privilege_card_buy_rsp.fromObject = function fromObject(object) {
  36130. if (object instanceof $root.game.privilege_card_buy_rsp)
  36131. return object;
  36132. let message = new $root.game.privilege_card_buy_rsp();
  36133. if (object.errno != null)
  36134. if ($util.Long)
  36135. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  36136. else if (typeof object.errno === "string")
  36137. message.errno = parseInt(object.errno, 10);
  36138. else if (typeof object.errno === "number")
  36139. message.errno = object.errno;
  36140. else if (typeof object.errno === "object")
  36141. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  36142. return message;
  36143. };
  36144. /**
  36145. * Creates a plain object from a privilege_card_buy_rsp message. Also converts values to other types if specified.
  36146. * @function toObject
  36147. * @memberof game.privilege_card_buy_rsp
  36148. * @static
  36149. * @param {game.privilege_card_buy_rsp} message privilege_card_buy_rsp
  36150. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36151. * @returns {Object.<string,*>} Plain object
  36152. */
  36153. privilege_card_buy_rsp.toObject = function toObject(message, options) {
  36154. if (!options)
  36155. options = {};
  36156. let object = {};
  36157. if (options.defaults)
  36158. if ($util.Long) {
  36159. let long = new $util.Long(0, 0, false);
  36160. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36161. } else
  36162. object.errno = options.longs === String ? "0" : 0;
  36163. if (message.errno != null && message.hasOwnProperty("errno"))
  36164. if (typeof message.errno === "number")
  36165. object.errno = options.longs === String ? String(message.errno) : message.errno;
  36166. else
  36167. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  36168. return object;
  36169. };
  36170. /**
  36171. * Converts this privilege_card_buy_rsp to JSON.
  36172. * @function toJSON
  36173. * @memberof game.privilege_card_buy_rsp
  36174. * @instance
  36175. * @returns {Object.<string,*>} JSON object
  36176. */
  36177. privilege_card_buy_rsp.prototype.toJSON = function toJSON() {
  36178. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36179. };
  36180. return privilege_card_buy_rsp;
  36181. })();
  36182. game.privilege_card_unlock_nty = (function() {
  36183. /**
  36184. * Properties of a privilege_card_unlock_nty.
  36185. * @memberof game
  36186. * @interface Iprivilege_card_unlock_nty
  36187. * @property {game.Iprivilege_card_info|null} [data] privilege_card_unlock_nty data
  36188. */
  36189. /**
  36190. * Constructs a new privilege_card_unlock_nty.
  36191. * @memberof game
  36192. * @classdesc Represents a privilege_card_unlock_nty.
  36193. * @implements Iprivilege_card_unlock_nty
  36194. * @constructor
  36195. * @param {game.Iprivilege_card_unlock_nty=} [properties] Properties to set
  36196. */
  36197. function privilege_card_unlock_nty(properties) {
  36198. if (properties)
  36199. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36200. if (properties[keys[i]] != null)
  36201. this[keys[i]] = properties[keys[i]];
  36202. }
  36203. /**
  36204. * privilege_card_unlock_nty data.
  36205. * @member {game.Iprivilege_card_info|null|undefined} data
  36206. * @memberof game.privilege_card_unlock_nty
  36207. * @instance
  36208. */
  36209. privilege_card_unlock_nty.prototype.data = null;
  36210. /**
  36211. * Creates a new privilege_card_unlock_nty instance using the specified properties.
  36212. * @function create
  36213. * @memberof game.privilege_card_unlock_nty
  36214. * @static
  36215. * @param {game.Iprivilege_card_unlock_nty=} [properties] Properties to set
  36216. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty instance
  36217. */
  36218. privilege_card_unlock_nty.create = function create(properties) {
  36219. return new privilege_card_unlock_nty(properties);
  36220. };
  36221. /**
  36222. * Encodes the specified privilege_card_unlock_nty message. Does not implicitly {@link game.privilege_card_unlock_nty.verify|verify} messages.
  36223. * @function encode
  36224. * @memberof game.privilege_card_unlock_nty
  36225. * @static
  36226. * @param {game.Iprivilege_card_unlock_nty} message privilege_card_unlock_nty message or plain object to encode
  36227. * @param {$protobuf.Writer} [writer] Writer to encode to
  36228. * @returns {$protobuf.Writer} Writer
  36229. */
  36230. privilege_card_unlock_nty.encode = function encode(message, writer) {
  36231. if (!writer)
  36232. writer = $Writer.create();
  36233. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  36234. $root.game.privilege_card_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  36235. return writer;
  36236. };
  36237. /**
  36238. * Encodes the specified privilege_card_unlock_nty message, length delimited. Does not implicitly {@link game.privilege_card_unlock_nty.verify|verify} messages.
  36239. * @function encodeDelimited
  36240. * @memberof game.privilege_card_unlock_nty
  36241. * @static
  36242. * @param {game.Iprivilege_card_unlock_nty} message privilege_card_unlock_nty message or plain object to encode
  36243. * @param {$protobuf.Writer} [writer] Writer to encode to
  36244. * @returns {$protobuf.Writer} Writer
  36245. */
  36246. privilege_card_unlock_nty.encodeDelimited = function encodeDelimited(message, writer) {
  36247. return this.encode(message, writer).ldelim();
  36248. };
  36249. /**
  36250. * Decodes a privilege_card_unlock_nty message from the specified reader or buffer.
  36251. * @function decode
  36252. * @memberof game.privilege_card_unlock_nty
  36253. * @static
  36254. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36255. * @param {number} [length] Message length if known beforehand
  36256. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
  36257. * @throws {Error} If the payload is not a reader or valid buffer
  36258. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36259. */
  36260. privilege_card_unlock_nty.decode = function decode(reader, length) {
  36261. if (!(reader instanceof $Reader))
  36262. reader = $Reader.create(reader);
  36263. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_unlock_nty();
  36264. while (reader.pos < end) {
  36265. let tag = reader.uint32();
  36266. switch (tag >>> 3) {
  36267. case 1:
  36268. message.data = $root.game.privilege_card_info.decode(reader, reader.uint32());
  36269. break;
  36270. default:
  36271. reader.skipType(tag & 7);
  36272. break;
  36273. }
  36274. }
  36275. return message;
  36276. };
  36277. /**
  36278. * Decodes a privilege_card_unlock_nty message from the specified reader or buffer, length delimited.
  36279. * @function decodeDelimited
  36280. * @memberof game.privilege_card_unlock_nty
  36281. * @static
  36282. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36283. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
  36284. * @throws {Error} If the payload is not a reader or valid buffer
  36285. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36286. */
  36287. privilege_card_unlock_nty.decodeDelimited = function decodeDelimited(reader) {
  36288. if (!(reader instanceof $Reader))
  36289. reader = new $Reader(reader);
  36290. return this.decode(reader, reader.uint32());
  36291. };
  36292. /**
  36293. * Verifies a privilege_card_unlock_nty message.
  36294. * @function verify
  36295. * @memberof game.privilege_card_unlock_nty
  36296. * @static
  36297. * @param {Object.<string,*>} message Plain object to verify
  36298. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36299. */
  36300. privilege_card_unlock_nty.verify = function verify(message) {
  36301. if (typeof message !== "object" || message === null)
  36302. return "object expected";
  36303. if (message.data != null && message.hasOwnProperty("data")) {
  36304. let error = $root.game.privilege_card_info.verify(message.data);
  36305. if (error)
  36306. return "data." + error;
  36307. }
  36308. return null;
  36309. };
  36310. /**
  36311. * Creates a privilege_card_unlock_nty message from a plain object. Also converts values to their respective internal types.
  36312. * @function fromObject
  36313. * @memberof game.privilege_card_unlock_nty
  36314. * @static
  36315. * @param {Object.<string,*>} object Plain object
  36316. * @returns {game.privilege_card_unlock_nty} privilege_card_unlock_nty
  36317. */
  36318. privilege_card_unlock_nty.fromObject = function fromObject(object) {
  36319. if (object instanceof $root.game.privilege_card_unlock_nty)
  36320. return object;
  36321. let message = new $root.game.privilege_card_unlock_nty();
  36322. if (object.data != null) {
  36323. if (typeof object.data !== "object")
  36324. throw TypeError(".game.privilege_card_unlock_nty.data: object expected");
  36325. message.data = $root.game.privilege_card_info.fromObject(object.data);
  36326. }
  36327. return message;
  36328. };
  36329. /**
  36330. * Creates a plain object from a privilege_card_unlock_nty message. Also converts values to other types if specified.
  36331. * @function toObject
  36332. * @memberof game.privilege_card_unlock_nty
  36333. * @static
  36334. * @param {game.privilege_card_unlock_nty} message privilege_card_unlock_nty
  36335. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36336. * @returns {Object.<string,*>} Plain object
  36337. */
  36338. privilege_card_unlock_nty.toObject = function toObject(message, options) {
  36339. if (!options)
  36340. options = {};
  36341. let object = {};
  36342. if (options.defaults)
  36343. object.data = null;
  36344. if (message.data != null && message.hasOwnProperty("data"))
  36345. object.data = $root.game.privilege_card_info.toObject(message.data, options);
  36346. return object;
  36347. };
  36348. /**
  36349. * Converts this privilege_card_unlock_nty to JSON.
  36350. * @function toJSON
  36351. * @memberof game.privilege_card_unlock_nty
  36352. * @instance
  36353. * @returns {Object.<string,*>} JSON object
  36354. */
  36355. privilege_card_unlock_nty.prototype.toJSON = function toJSON() {
  36356. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36357. };
  36358. return privilege_card_unlock_nty;
  36359. })();
  36360. game.privilege_card_award = (function() {
  36361. /**
  36362. * Properties of a privilege_card_award.
  36363. * @memberof game
  36364. * @interface Iprivilege_card_award
  36365. * @property {number|Long|null} [moduleid] privilege_card_award moduleid
  36366. */
  36367. /**
  36368. * Constructs a new privilege_card_award.
  36369. * @memberof game
  36370. * @classdesc Represents a privilege_card_award.
  36371. * @implements Iprivilege_card_award
  36372. * @constructor
  36373. * @param {game.Iprivilege_card_award=} [properties] Properties to set
  36374. */
  36375. function privilege_card_award(properties) {
  36376. if (properties)
  36377. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36378. if (properties[keys[i]] != null)
  36379. this[keys[i]] = properties[keys[i]];
  36380. }
  36381. /**
  36382. * privilege_card_award moduleid.
  36383. * @member {number|Long} moduleid
  36384. * @memberof game.privilege_card_award
  36385. * @instance
  36386. */
  36387. privilege_card_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36388. /**
  36389. * Creates a new privilege_card_award instance using the specified properties.
  36390. * @function create
  36391. * @memberof game.privilege_card_award
  36392. * @static
  36393. * @param {game.Iprivilege_card_award=} [properties] Properties to set
  36394. * @returns {game.privilege_card_award} privilege_card_award instance
  36395. */
  36396. privilege_card_award.create = function create(properties) {
  36397. return new privilege_card_award(properties);
  36398. };
  36399. /**
  36400. * Encodes the specified privilege_card_award message. Does not implicitly {@link game.privilege_card_award.verify|verify} messages.
  36401. * @function encode
  36402. * @memberof game.privilege_card_award
  36403. * @static
  36404. * @param {game.Iprivilege_card_award} message privilege_card_award message or plain object to encode
  36405. * @param {$protobuf.Writer} [writer] Writer to encode to
  36406. * @returns {$protobuf.Writer} Writer
  36407. */
  36408. privilege_card_award.encode = function encode(message, writer) {
  36409. if (!writer)
  36410. writer = $Writer.create();
  36411. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  36412. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  36413. return writer;
  36414. };
  36415. /**
  36416. * Encodes the specified privilege_card_award message, length delimited. Does not implicitly {@link game.privilege_card_award.verify|verify} messages.
  36417. * @function encodeDelimited
  36418. * @memberof game.privilege_card_award
  36419. * @static
  36420. * @param {game.Iprivilege_card_award} message privilege_card_award message or plain object to encode
  36421. * @param {$protobuf.Writer} [writer] Writer to encode to
  36422. * @returns {$protobuf.Writer} Writer
  36423. */
  36424. privilege_card_award.encodeDelimited = function encodeDelimited(message, writer) {
  36425. return this.encode(message, writer).ldelim();
  36426. };
  36427. /**
  36428. * Decodes a privilege_card_award message from the specified reader or buffer.
  36429. * @function decode
  36430. * @memberof game.privilege_card_award
  36431. * @static
  36432. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36433. * @param {number} [length] Message length if known beforehand
  36434. * @returns {game.privilege_card_award} privilege_card_award
  36435. * @throws {Error} If the payload is not a reader or valid buffer
  36436. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36437. */
  36438. privilege_card_award.decode = function decode(reader, length) {
  36439. if (!(reader instanceof $Reader))
  36440. reader = $Reader.create(reader);
  36441. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_award();
  36442. while (reader.pos < end) {
  36443. let tag = reader.uint32();
  36444. switch (tag >>> 3) {
  36445. case 1:
  36446. message.moduleid = reader.int64();
  36447. break;
  36448. default:
  36449. reader.skipType(tag & 7);
  36450. break;
  36451. }
  36452. }
  36453. return message;
  36454. };
  36455. /**
  36456. * Decodes a privilege_card_award message from the specified reader or buffer, length delimited.
  36457. * @function decodeDelimited
  36458. * @memberof game.privilege_card_award
  36459. * @static
  36460. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36461. * @returns {game.privilege_card_award} privilege_card_award
  36462. * @throws {Error} If the payload is not a reader or valid buffer
  36463. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36464. */
  36465. privilege_card_award.decodeDelimited = function decodeDelimited(reader) {
  36466. if (!(reader instanceof $Reader))
  36467. reader = new $Reader(reader);
  36468. return this.decode(reader, reader.uint32());
  36469. };
  36470. /**
  36471. * Verifies a privilege_card_award message.
  36472. * @function verify
  36473. * @memberof game.privilege_card_award
  36474. * @static
  36475. * @param {Object.<string,*>} message Plain object to verify
  36476. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36477. */
  36478. privilege_card_award.verify = function verify(message) {
  36479. if (typeof message !== "object" || message === null)
  36480. return "object expected";
  36481. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36482. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  36483. return "moduleid: integer|Long expected";
  36484. return null;
  36485. };
  36486. /**
  36487. * Creates a privilege_card_award message from a plain object. Also converts values to their respective internal types.
  36488. * @function fromObject
  36489. * @memberof game.privilege_card_award
  36490. * @static
  36491. * @param {Object.<string,*>} object Plain object
  36492. * @returns {game.privilege_card_award} privilege_card_award
  36493. */
  36494. privilege_card_award.fromObject = function fromObject(object) {
  36495. if (object instanceof $root.game.privilege_card_award)
  36496. return object;
  36497. let message = new $root.game.privilege_card_award();
  36498. if (object.moduleid != null)
  36499. if ($util.Long)
  36500. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  36501. else if (typeof object.moduleid === "string")
  36502. message.moduleid = parseInt(object.moduleid, 10);
  36503. else if (typeof object.moduleid === "number")
  36504. message.moduleid = object.moduleid;
  36505. else if (typeof object.moduleid === "object")
  36506. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  36507. return message;
  36508. };
  36509. /**
  36510. * Creates a plain object from a privilege_card_award message. Also converts values to other types if specified.
  36511. * @function toObject
  36512. * @memberof game.privilege_card_award
  36513. * @static
  36514. * @param {game.privilege_card_award} message privilege_card_award
  36515. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36516. * @returns {Object.<string,*>} Plain object
  36517. */
  36518. privilege_card_award.toObject = function toObject(message, options) {
  36519. if (!options)
  36520. options = {};
  36521. let object = {};
  36522. if (options.defaults)
  36523. if ($util.Long) {
  36524. let long = new $util.Long(0, 0, false);
  36525. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36526. } else
  36527. object.moduleid = options.longs === String ? "0" : 0;
  36528. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36529. if (typeof message.moduleid === "number")
  36530. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  36531. else
  36532. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  36533. return object;
  36534. };
  36535. /**
  36536. * Converts this privilege_card_award to JSON.
  36537. * @function toJSON
  36538. * @memberof game.privilege_card_award
  36539. * @instance
  36540. * @returns {Object.<string,*>} JSON object
  36541. */
  36542. privilege_card_award.prototype.toJSON = function toJSON() {
  36543. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36544. };
  36545. return privilege_card_award;
  36546. })();
  36547. game.privilege_card_award_rsp = (function() {
  36548. /**
  36549. * Properties of a privilege_card_award_rsp.
  36550. * @memberof game
  36551. * @interface Iprivilege_card_award_rsp
  36552. * @property {number|Long|null} [errno] privilege_card_award_rsp errno
  36553. * @property {number|Long|null} [moduleid] privilege_card_award_rsp moduleid
  36554. * @property {boolean|null} [award] privilege_card_award_rsp award
  36555. */
  36556. /**
  36557. * Constructs a new privilege_card_award_rsp.
  36558. * @memberof game
  36559. * @classdesc Represents a privilege_card_award_rsp.
  36560. * @implements Iprivilege_card_award_rsp
  36561. * @constructor
  36562. * @param {game.Iprivilege_card_award_rsp=} [properties] Properties to set
  36563. */
  36564. function privilege_card_award_rsp(properties) {
  36565. if (properties)
  36566. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36567. if (properties[keys[i]] != null)
  36568. this[keys[i]] = properties[keys[i]];
  36569. }
  36570. /**
  36571. * privilege_card_award_rsp errno.
  36572. * @member {number|Long} errno
  36573. * @memberof game.privilege_card_award_rsp
  36574. * @instance
  36575. */
  36576. privilege_card_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36577. /**
  36578. * privilege_card_award_rsp moduleid.
  36579. * @member {number|Long} moduleid
  36580. * @memberof game.privilege_card_award_rsp
  36581. * @instance
  36582. */
  36583. privilege_card_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36584. /**
  36585. * privilege_card_award_rsp award.
  36586. * @member {boolean} award
  36587. * @memberof game.privilege_card_award_rsp
  36588. * @instance
  36589. */
  36590. privilege_card_award_rsp.prototype.award = false;
  36591. /**
  36592. * Creates a new privilege_card_award_rsp instance using the specified properties.
  36593. * @function create
  36594. * @memberof game.privilege_card_award_rsp
  36595. * @static
  36596. * @param {game.Iprivilege_card_award_rsp=} [properties] Properties to set
  36597. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp instance
  36598. */
  36599. privilege_card_award_rsp.create = function create(properties) {
  36600. return new privilege_card_award_rsp(properties);
  36601. };
  36602. /**
  36603. * Encodes the specified privilege_card_award_rsp message. Does not implicitly {@link game.privilege_card_award_rsp.verify|verify} messages.
  36604. * @function encode
  36605. * @memberof game.privilege_card_award_rsp
  36606. * @static
  36607. * @param {game.Iprivilege_card_award_rsp} message privilege_card_award_rsp message or plain object to encode
  36608. * @param {$protobuf.Writer} [writer] Writer to encode to
  36609. * @returns {$protobuf.Writer} Writer
  36610. */
  36611. privilege_card_award_rsp.encode = function encode(message, writer) {
  36612. if (!writer)
  36613. writer = $Writer.create();
  36614. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  36615. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  36616. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  36617. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  36618. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  36619. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.award);
  36620. return writer;
  36621. };
  36622. /**
  36623. * Encodes the specified privilege_card_award_rsp message, length delimited. Does not implicitly {@link game.privilege_card_award_rsp.verify|verify} messages.
  36624. * @function encodeDelimited
  36625. * @memberof game.privilege_card_award_rsp
  36626. * @static
  36627. * @param {game.Iprivilege_card_award_rsp} message privilege_card_award_rsp message or plain object to encode
  36628. * @param {$protobuf.Writer} [writer] Writer to encode to
  36629. * @returns {$protobuf.Writer} Writer
  36630. */
  36631. privilege_card_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  36632. return this.encode(message, writer).ldelim();
  36633. };
  36634. /**
  36635. * Decodes a privilege_card_award_rsp message from the specified reader or buffer.
  36636. * @function decode
  36637. * @memberof game.privilege_card_award_rsp
  36638. * @static
  36639. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36640. * @param {number} [length] Message length if known beforehand
  36641. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
  36642. * @throws {Error} If the payload is not a reader or valid buffer
  36643. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36644. */
  36645. privilege_card_award_rsp.decode = function decode(reader, length) {
  36646. if (!(reader instanceof $Reader))
  36647. reader = $Reader.create(reader);
  36648. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_award_rsp();
  36649. while (reader.pos < end) {
  36650. let tag = reader.uint32();
  36651. switch (tag >>> 3) {
  36652. case 1:
  36653. message.errno = reader.int64();
  36654. break;
  36655. case 2:
  36656. message.moduleid = reader.int64();
  36657. break;
  36658. case 3:
  36659. message.award = reader.bool();
  36660. break;
  36661. default:
  36662. reader.skipType(tag & 7);
  36663. break;
  36664. }
  36665. }
  36666. return message;
  36667. };
  36668. /**
  36669. * Decodes a privilege_card_award_rsp message from the specified reader or buffer, length delimited.
  36670. * @function decodeDelimited
  36671. * @memberof game.privilege_card_award_rsp
  36672. * @static
  36673. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36674. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
  36675. * @throws {Error} If the payload is not a reader or valid buffer
  36676. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36677. */
  36678. privilege_card_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  36679. if (!(reader instanceof $Reader))
  36680. reader = new $Reader(reader);
  36681. return this.decode(reader, reader.uint32());
  36682. };
  36683. /**
  36684. * Verifies a privilege_card_award_rsp message.
  36685. * @function verify
  36686. * @memberof game.privilege_card_award_rsp
  36687. * @static
  36688. * @param {Object.<string,*>} message Plain object to verify
  36689. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36690. */
  36691. privilege_card_award_rsp.verify = function verify(message) {
  36692. if (typeof message !== "object" || message === null)
  36693. return "object expected";
  36694. if (message.errno != null && message.hasOwnProperty("errno"))
  36695. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  36696. return "errno: integer|Long expected";
  36697. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36698. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  36699. return "moduleid: integer|Long expected";
  36700. if (message.award != null && message.hasOwnProperty("award"))
  36701. if (typeof message.award !== "boolean")
  36702. return "award: boolean expected";
  36703. return null;
  36704. };
  36705. /**
  36706. * Creates a privilege_card_award_rsp message from a plain object. Also converts values to their respective internal types.
  36707. * @function fromObject
  36708. * @memberof game.privilege_card_award_rsp
  36709. * @static
  36710. * @param {Object.<string,*>} object Plain object
  36711. * @returns {game.privilege_card_award_rsp} privilege_card_award_rsp
  36712. */
  36713. privilege_card_award_rsp.fromObject = function fromObject(object) {
  36714. if (object instanceof $root.game.privilege_card_award_rsp)
  36715. return object;
  36716. let message = new $root.game.privilege_card_award_rsp();
  36717. if (object.errno != null)
  36718. if ($util.Long)
  36719. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  36720. else if (typeof object.errno === "string")
  36721. message.errno = parseInt(object.errno, 10);
  36722. else if (typeof object.errno === "number")
  36723. message.errno = object.errno;
  36724. else if (typeof object.errno === "object")
  36725. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  36726. if (object.moduleid != null)
  36727. if ($util.Long)
  36728. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  36729. else if (typeof object.moduleid === "string")
  36730. message.moduleid = parseInt(object.moduleid, 10);
  36731. else if (typeof object.moduleid === "number")
  36732. message.moduleid = object.moduleid;
  36733. else if (typeof object.moduleid === "object")
  36734. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  36735. if (object.award != null)
  36736. message.award = Boolean(object.award);
  36737. return message;
  36738. };
  36739. /**
  36740. * Creates a plain object from a privilege_card_award_rsp message. Also converts values to other types if specified.
  36741. * @function toObject
  36742. * @memberof game.privilege_card_award_rsp
  36743. * @static
  36744. * @param {game.privilege_card_award_rsp} message privilege_card_award_rsp
  36745. * @param {$protobuf.IConversionOptions} [options] Conversion options
  36746. * @returns {Object.<string,*>} Plain object
  36747. */
  36748. privilege_card_award_rsp.toObject = function toObject(message, options) {
  36749. if (!options)
  36750. options = {};
  36751. let object = {};
  36752. if (options.defaults) {
  36753. if ($util.Long) {
  36754. let long = new $util.Long(0, 0, false);
  36755. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36756. } else
  36757. object.errno = options.longs === String ? "0" : 0;
  36758. if ($util.Long) {
  36759. let long = new $util.Long(0, 0, false);
  36760. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  36761. } else
  36762. object.moduleid = options.longs === String ? "0" : 0;
  36763. object.award = false;
  36764. }
  36765. if (message.errno != null && message.hasOwnProperty("errno"))
  36766. if (typeof message.errno === "number")
  36767. object.errno = options.longs === String ? String(message.errno) : message.errno;
  36768. else
  36769. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  36770. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  36771. if (typeof message.moduleid === "number")
  36772. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  36773. else
  36774. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  36775. if (message.award != null && message.hasOwnProperty("award"))
  36776. object.award = message.award;
  36777. return object;
  36778. };
  36779. /**
  36780. * Converts this privilege_card_award_rsp to JSON.
  36781. * @function toJSON
  36782. * @memberof game.privilege_card_award_rsp
  36783. * @instance
  36784. * @returns {Object.<string,*>} JSON object
  36785. */
  36786. privilege_card_award_rsp.prototype.toJSON = function toJSON() {
  36787. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  36788. };
  36789. return privilege_card_award_rsp;
  36790. })();
  36791. game.box_get_award = (function() {
  36792. /**
  36793. * Properties of a box_get_award.
  36794. * @memberof game
  36795. * @interface Ibox_get_award
  36796. * @property {number|Long|null} [id] box_get_award id
  36797. * @property {number|Long|null} [select] box_get_award select
  36798. * @property {number|Long|null} [type] box_get_award type
  36799. * @property {number|Long|null} [num] box_get_award num
  36800. */
  36801. /**
  36802. * Constructs a new box_get_award.
  36803. * @memberof game
  36804. * @classdesc Represents a box_get_award.
  36805. * @implements Ibox_get_award
  36806. * @constructor
  36807. * @param {game.Ibox_get_award=} [properties] Properties to set
  36808. */
  36809. function box_get_award(properties) {
  36810. if (properties)
  36811. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  36812. if (properties[keys[i]] != null)
  36813. this[keys[i]] = properties[keys[i]];
  36814. }
  36815. /**
  36816. * box_get_award id.
  36817. * @member {number|Long} id
  36818. * @memberof game.box_get_award
  36819. * @instance
  36820. */
  36821. box_get_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36822. /**
  36823. * box_get_award select.
  36824. * @member {number|Long} select
  36825. * @memberof game.box_get_award
  36826. * @instance
  36827. */
  36828. box_get_award.prototype.select = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36829. /**
  36830. * box_get_award type.
  36831. * @member {number|Long} type
  36832. * @memberof game.box_get_award
  36833. * @instance
  36834. */
  36835. box_get_award.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36836. /**
  36837. * box_get_award num.
  36838. * @member {number|Long} num
  36839. * @memberof game.box_get_award
  36840. * @instance
  36841. */
  36842. box_get_award.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  36843. /**
  36844. * Creates a new box_get_award instance using the specified properties.
  36845. * @function create
  36846. * @memberof game.box_get_award
  36847. * @static
  36848. * @param {game.Ibox_get_award=} [properties] Properties to set
  36849. * @returns {game.box_get_award} box_get_award instance
  36850. */
  36851. box_get_award.create = function create(properties) {
  36852. return new box_get_award(properties);
  36853. };
  36854. /**
  36855. * Encodes the specified box_get_award message. Does not implicitly {@link game.box_get_award.verify|verify} messages.
  36856. * @function encode
  36857. * @memberof game.box_get_award
  36858. * @static
  36859. * @param {game.Ibox_get_award} message box_get_award message or plain object to encode
  36860. * @param {$protobuf.Writer} [writer] Writer to encode to
  36861. * @returns {$protobuf.Writer} Writer
  36862. */
  36863. box_get_award.encode = function encode(message, writer) {
  36864. if (!writer)
  36865. writer = $Writer.create();
  36866. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  36867. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  36868. if (message.select != null && Object.hasOwnProperty.call(message, "select"))
  36869. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.select);
  36870. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  36871. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.type);
  36872. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  36873. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.num);
  36874. return writer;
  36875. };
  36876. /**
  36877. * Encodes the specified box_get_award message, length delimited. Does not implicitly {@link game.box_get_award.verify|verify} messages.
  36878. * @function encodeDelimited
  36879. * @memberof game.box_get_award
  36880. * @static
  36881. * @param {game.Ibox_get_award} message box_get_award message or plain object to encode
  36882. * @param {$protobuf.Writer} [writer] Writer to encode to
  36883. * @returns {$protobuf.Writer} Writer
  36884. */
  36885. box_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  36886. return this.encode(message, writer).ldelim();
  36887. };
  36888. /**
  36889. * Decodes a box_get_award message from the specified reader or buffer.
  36890. * @function decode
  36891. * @memberof game.box_get_award
  36892. * @static
  36893. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36894. * @param {number} [length] Message length if known beforehand
  36895. * @returns {game.box_get_award} box_get_award
  36896. * @throws {Error} If the payload is not a reader or valid buffer
  36897. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36898. */
  36899. box_get_award.decode = function decode(reader, length) {
  36900. if (!(reader instanceof $Reader))
  36901. reader = $Reader.create(reader);
  36902. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.box_get_award();
  36903. while (reader.pos < end) {
  36904. let tag = reader.uint32();
  36905. switch (tag >>> 3) {
  36906. case 1:
  36907. message.id = reader.int64();
  36908. break;
  36909. case 2:
  36910. message.select = reader.int64();
  36911. break;
  36912. case 3:
  36913. message.type = reader.int64();
  36914. break;
  36915. case 4:
  36916. message.num = reader.int64();
  36917. break;
  36918. default:
  36919. reader.skipType(tag & 7);
  36920. break;
  36921. }
  36922. }
  36923. return message;
  36924. };
  36925. /**
  36926. * Decodes a box_get_award message from the specified reader or buffer, length delimited.
  36927. * @function decodeDelimited
  36928. * @memberof game.box_get_award
  36929. * @static
  36930. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  36931. * @returns {game.box_get_award} box_get_award
  36932. * @throws {Error} If the payload is not a reader or valid buffer
  36933. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  36934. */
  36935. box_get_award.decodeDelimited = function decodeDelimited(reader) {
  36936. if (!(reader instanceof $Reader))
  36937. reader = new $Reader(reader);
  36938. return this.decode(reader, reader.uint32());
  36939. };
  36940. /**
  36941. * Verifies a box_get_award message.
  36942. * @function verify
  36943. * @memberof game.box_get_award
  36944. * @static
  36945. * @param {Object.<string,*>} message Plain object to verify
  36946. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  36947. */
  36948. box_get_award.verify = function verify(message) {
  36949. if (typeof message !== "object" || message === null)
  36950. return "object expected";
  36951. if (message.id != null && message.hasOwnProperty("id"))
  36952. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  36953. return "id: integer|Long expected";
  36954. if (message.select != null && message.hasOwnProperty("select"))
  36955. if (!$util.isInteger(message.select) && !(message.select && $util.isInteger(message.select.low) && $util.isInteger(message.select.high)))
  36956. return "select: integer|Long expected";
  36957. if (message.type != null && message.hasOwnProperty("type"))
  36958. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  36959. return "type: integer|Long expected";
  36960. if (message.num != null && message.hasOwnProperty("num"))
  36961. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  36962. return "num: integer|Long expected";
  36963. return null;
  36964. };
  36965. /**
  36966. * Creates a box_get_award message from a plain object. Also converts values to their respective internal types.
  36967. * @function fromObject
  36968. * @memberof game.box_get_award
  36969. * @static
  36970. * @param {Object.<string,*>} object Plain object
  36971. * @returns {game.box_get_award} box_get_award
  36972. */
  36973. box_get_award.fromObject = function fromObject(object) {
  36974. if (object instanceof $root.game.box_get_award)
  36975. return object;
  36976. let message = new $root.game.box_get_award();
  36977. if (object.id != null)
  36978. if ($util.Long)
  36979. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  36980. else if (typeof object.id === "string")
  36981. message.id = parseInt(object.id, 10);
  36982. else if (typeof object.id === "number")
  36983. message.id = object.id;
  36984. else if (typeof object.id === "object")
  36985. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  36986. if (object.select != null)
  36987. if ($util.Long)
  36988. (message.select = $util.Long.fromValue(object.select)).unsigned = false;
  36989. else if (typeof object.select === "string")
  36990. message.select = parseInt(object.select, 10);
  36991. else if (typeof object.select === "number")
  36992. message.select = object.select;
  36993. else if (typeof object.select === "object")
  36994. message.select = new $util.LongBits(object.select.low >>> 0, object.select.high >>> 0).toNumber();
  36995. if (object.type != null)
  36996. if ($util.Long)
  36997. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  36998. else if (typeof object.type === "string")
  36999. message.type = parseInt(object.type, 10);
  37000. else if (typeof object.type === "number")
  37001. message.type = object.type;
  37002. else if (typeof object.type === "object")
  37003. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  37004. if (object.num != null)
  37005. if ($util.Long)
  37006. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  37007. else if (typeof object.num === "string")
  37008. message.num = parseInt(object.num, 10);
  37009. else if (typeof object.num === "number")
  37010. message.num = object.num;
  37011. else if (typeof object.num === "object")
  37012. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  37013. return message;
  37014. };
  37015. /**
  37016. * Creates a plain object from a box_get_award message. Also converts values to other types if specified.
  37017. * @function toObject
  37018. * @memberof game.box_get_award
  37019. * @static
  37020. * @param {game.box_get_award} message box_get_award
  37021. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37022. * @returns {Object.<string,*>} Plain object
  37023. */
  37024. box_get_award.toObject = function toObject(message, options) {
  37025. if (!options)
  37026. options = {};
  37027. let object = {};
  37028. if (options.defaults) {
  37029. if ($util.Long) {
  37030. let long = new $util.Long(0, 0, false);
  37031. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37032. } else
  37033. object.id = options.longs === String ? "0" : 0;
  37034. if ($util.Long) {
  37035. let long = new $util.Long(0, 0, false);
  37036. object.select = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37037. } else
  37038. object.select = options.longs === String ? "0" : 0;
  37039. if ($util.Long) {
  37040. let long = new $util.Long(0, 0, false);
  37041. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37042. } else
  37043. object.type = options.longs === String ? "0" : 0;
  37044. if ($util.Long) {
  37045. let long = new $util.Long(0, 0, false);
  37046. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37047. } else
  37048. object.num = options.longs === String ? "0" : 0;
  37049. }
  37050. if (message.id != null && message.hasOwnProperty("id"))
  37051. if (typeof message.id === "number")
  37052. object.id = options.longs === String ? String(message.id) : message.id;
  37053. else
  37054. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  37055. if (message.select != null && message.hasOwnProperty("select"))
  37056. if (typeof message.select === "number")
  37057. object.select = options.longs === String ? String(message.select) : message.select;
  37058. else
  37059. object.select = options.longs === String ? $util.Long.prototype.toString.call(message.select) : options.longs === Number ? new $util.LongBits(message.select.low >>> 0, message.select.high >>> 0).toNumber() : message.select;
  37060. if (message.type != null && message.hasOwnProperty("type"))
  37061. if (typeof message.type === "number")
  37062. object.type = options.longs === String ? String(message.type) : message.type;
  37063. else
  37064. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  37065. if (message.num != null && message.hasOwnProperty("num"))
  37066. if (typeof message.num === "number")
  37067. object.num = options.longs === String ? String(message.num) : message.num;
  37068. else
  37069. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  37070. return object;
  37071. };
  37072. /**
  37073. * Converts this box_get_award to JSON.
  37074. * @function toJSON
  37075. * @memberof game.box_get_award
  37076. * @instance
  37077. * @returns {Object.<string,*>} JSON object
  37078. */
  37079. box_get_award.prototype.toJSON = function toJSON() {
  37080. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37081. };
  37082. return box_get_award;
  37083. })();
  37084. game.box_get_award_rsp = (function() {
  37085. /**
  37086. * Properties of a box_get_award_rsp.
  37087. * @memberof game
  37088. * @interface Ibox_get_award_rsp
  37089. * @property {number|Long|null} [errno] box_get_award_rsp errno
  37090. * @property {number|Long|null} [type] box_get_award_rsp type
  37091. */
  37092. /**
  37093. * Constructs a new box_get_award_rsp.
  37094. * @memberof game
  37095. * @classdesc Represents a box_get_award_rsp.
  37096. * @implements Ibox_get_award_rsp
  37097. * @constructor
  37098. * @param {game.Ibox_get_award_rsp=} [properties] Properties to set
  37099. */
  37100. function box_get_award_rsp(properties) {
  37101. if (properties)
  37102. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37103. if (properties[keys[i]] != null)
  37104. this[keys[i]] = properties[keys[i]];
  37105. }
  37106. /**
  37107. * box_get_award_rsp errno.
  37108. * @member {number|Long} errno
  37109. * @memberof game.box_get_award_rsp
  37110. * @instance
  37111. */
  37112. box_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37113. /**
  37114. * box_get_award_rsp type.
  37115. * @member {number|Long} type
  37116. * @memberof game.box_get_award_rsp
  37117. * @instance
  37118. */
  37119. box_get_award_rsp.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37120. /**
  37121. * Creates a new box_get_award_rsp instance using the specified properties.
  37122. * @function create
  37123. * @memberof game.box_get_award_rsp
  37124. * @static
  37125. * @param {game.Ibox_get_award_rsp=} [properties] Properties to set
  37126. * @returns {game.box_get_award_rsp} box_get_award_rsp instance
  37127. */
  37128. box_get_award_rsp.create = function create(properties) {
  37129. return new box_get_award_rsp(properties);
  37130. };
  37131. /**
  37132. * Encodes the specified box_get_award_rsp message. Does not implicitly {@link game.box_get_award_rsp.verify|verify} messages.
  37133. * @function encode
  37134. * @memberof game.box_get_award_rsp
  37135. * @static
  37136. * @param {game.Ibox_get_award_rsp} message box_get_award_rsp message or plain object to encode
  37137. * @param {$protobuf.Writer} [writer] Writer to encode to
  37138. * @returns {$protobuf.Writer} Writer
  37139. */
  37140. box_get_award_rsp.encode = function encode(message, writer) {
  37141. if (!writer)
  37142. writer = $Writer.create();
  37143. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  37144. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  37145. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  37146. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.type);
  37147. return writer;
  37148. };
  37149. /**
  37150. * Encodes the specified box_get_award_rsp message, length delimited. Does not implicitly {@link game.box_get_award_rsp.verify|verify} messages.
  37151. * @function encodeDelimited
  37152. * @memberof game.box_get_award_rsp
  37153. * @static
  37154. * @param {game.Ibox_get_award_rsp} message box_get_award_rsp message or plain object to encode
  37155. * @param {$protobuf.Writer} [writer] Writer to encode to
  37156. * @returns {$protobuf.Writer} Writer
  37157. */
  37158. box_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  37159. return this.encode(message, writer).ldelim();
  37160. };
  37161. /**
  37162. * Decodes a box_get_award_rsp message from the specified reader or buffer.
  37163. * @function decode
  37164. * @memberof game.box_get_award_rsp
  37165. * @static
  37166. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37167. * @param {number} [length] Message length if known beforehand
  37168. * @returns {game.box_get_award_rsp} box_get_award_rsp
  37169. * @throws {Error} If the payload is not a reader or valid buffer
  37170. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37171. */
  37172. box_get_award_rsp.decode = function decode(reader, length) {
  37173. if (!(reader instanceof $Reader))
  37174. reader = $Reader.create(reader);
  37175. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.box_get_award_rsp();
  37176. while (reader.pos < end) {
  37177. let tag = reader.uint32();
  37178. switch (tag >>> 3) {
  37179. case 1:
  37180. message.errno = reader.int64();
  37181. break;
  37182. case 2:
  37183. message.type = reader.int64();
  37184. break;
  37185. default:
  37186. reader.skipType(tag & 7);
  37187. break;
  37188. }
  37189. }
  37190. return message;
  37191. };
  37192. /**
  37193. * Decodes a box_get_award_rsp message from the specified reader or buffer, length delimited.
  37194. * @function decodeDelimited
  37195. * @memberof game.box_get_award_rsp
  37196. * @static
  37197. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37198. * @returns {game.box_get_award_rsp} box_get_award_rsp
  37199. * @throws {Error} If the payload is not a reader or valid buffer
  37200. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37201. */
  37202. box_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  37203. if (!(reader instanceof $Reader))
  37204. reader = new $Reader(reader);
  37205. return this.decode(reader, reader.uint32());
  37206. };
  37207. /**
  37208. * Verifies a box_get_award_rsp message.
  37209. * @function verify
  37210. * @memberof game.box_get_award_rsp
  37211. * @static
  37212. * @param {Object.<string,*>} message Plain object to verify
  37213. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37214. */
  37215. box_get_award_rsp.verify = function verify(message) {
  37216. if (typeof message !== "object" || message === null)
  37217. return "object expected";
  37218. if (message.errno != null && message.hasOwnProperty("errno"))
  37219. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  37220. return "errno: integer|Long expected";
  37221. if (message.type != null && message.hasOwnProperty("type"))
  37222. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  37223. return "type: integer|Long expected";
  37224. return null;
  37225. };
  37226. /**
  37227. * Creates a box_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  37228. * @function fromObject
  37229. * @memberof game.box_get_award_rsp
  37230. * @static
  37231. * @param {Object.<string,*>} object Plain object
  37232. * @returns {game.box_get_award_rsp} box_get_award_rsp
  37233. */
  37234. box_get_award_rsp.fromObject = function fromObject(object) {
  37235. if (object instanceof $root.game.box_get_award_rsp)
  37236. return object;
  37237. let message = new $root.game.box_get_award_rsp();
  37238. if (object.errno != null)
  37239. if ($util.Long)
  37240. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  37241. else if (typeof object.errno === "string")
  37242. message.errno = parseInt(object.errno, 10);
  37243. else if (typeof object.errno === "number")
  37244. message.errno = object.errno;
  37245. else if (typeof object.errno === "object")
  37246. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  37247. if (object.type != null)
  37248. if ($util.Long)
  37249. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  37250. else if (typeof object.type === "string")
  37251. message.type = parseInt(object.type, 10);
  37252. else if (typeof object.type === "number")
  37253. message.type = object.type;
  37254. else if (typeof object.type === "object")
  37255. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  37256. return message;
  37257. };
  37258. /**
  37259. * Creates a plain object from a box_get_award_rsp message. Also converts values to other types if specified.
  37260. * @function toObject
  37261. * @memberof game.box_get_award_rsp
  37262. * @static
  37263. * @param {game.box_get_award_rsp} message box_get_award_rsp
  37264. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37265. * @returns {Object.<string,*>} Plain object
  37266. */
  37267. box_get_award_rsp.toObject = function toObject(message, options) {
  37268. if (!options)
  37269. options = {};
  37270. let object = {};
  37271. if (options.defaults) {
  37272. if ($util.Long) {
  37273. let long = new $util.Long(0, 0, false);
  37274. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37275. } else
  37276. object.errno = options.longs === String ? "0" : 0;
  37277. if ($util.Long) {
  37278. let long = new $util.Long(0, 0, false);
  37279. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37280. } else
  37281. object.type = options.longs === String ? "0" : 0;
  37282. }
  37283. if (message.errno != null && message.hasOwnProperty("errno"))
  37284. if (typeof message.errno === "number")
  37285. object.errno = options.longs === String ? String(message.errno) : message.errno;
  37286. else
  37287. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  37288. if (message.type != null && message.hasOwnProperty("type"))
  37289. if (typeof message.type === "number")
  37290. object.type = options.longs === String ? String(message.type) : message.type;
  37291. else
  37292. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  37293. return object;
  37294. };
  37295. /**
  37296. * Converts this box_get_award_rsp to JSON.
  37297. * @function toJSON
  37298. * @memberof game.box_get_award_rsp
  37299. * @instance
  37300. * @returns {Object.<string,*>} JSON object
  37301. */
  37302. box_get_award_rsp.prototype.toJSON = function toJSON() {
  37303. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37304. };
  37305. return box_get_award_rsp;
  37306. })();
  37307. game.first_recharge_data = (function() {
  37308. /**
  37309. * Properties of a first_recharge_data.
  37310. * @memberof game
  37311. * @interface Ifirst_recharge_data
  37312. * @property {number|Long|null} [moduleid] first_recharge_data moduleid
  37313. */
  37314. /**
  37315. * Constructs a new first_recharge_data.
  37316. * @memberof game
  37317. * @classdesc Represents a first_recharge_data.
  37318. * @implements Ifirst_recharge_data
  37319. * @constructor
  37320. * @param {game.Ifirst_recharge_data=} [properties] Properties to set
  37321. */
  37322. function first_recharge_data(properties) {
  37323. if (properties)
  37324. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37325. if (properties[keys[i]] != null)
  37326. this[keys[i]] = properties[keys[i]];
  37327. }
  37328. /**
  37329. * first_recharge_data moduleid.
  37330. * @member {number|Long} moduleid
  37331. * @memberof game.first_recharge_data
  37332. * @instance
  37333. */
  37334. first_recharge_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37335. /**
  37336. * Creates a new first_recharge_data instance using the specified properties.
  37337. * @function create
  37338. * @memberof game.first_recharge_data
  37339. * @static
  37340. * @param {game.Ifirst_recharge_data=} [properties] Properties to set
  37341. * @returns {game.first_recharge_data} first_recharge_data instance
  37342. */
  37343. first_recharge_data.create = function create(properties) {
  37344. return new first_recharge_data(properties);
  37345. };
  37346. /**
  37347. * Encodes the specified first_recharge_data message. Does not implicitly {@link game.first_recharge_data.verify|verify} messages.
  37348. * @function encode
  37349. * @memberof game.first_recharge_data
  37350. * @static
  37351. * @param {game.Ifirst_recharge_data} message first_recharge_data message or plain object to encode
  37352. * @param {$protobuf.Writer} [writer] Writer to encode to
  37353. * @returns {$protobuf.Writer} Writer
  37354. */
  37355. first_recharge_data.encode = function encode(message, writer) {
  37356. if (!writer)
  37357. writer = $Writer.create();
  37358. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  37359. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  37360. return writer;
  37361. };
  37362. /**
  37363. * Encodes the specified first_recharge_data message, length delimited. Does not implicitly {@link game.first_recharge_data.verify|verify} messages.
  37364. * @function encodeDelimited
  37365. * @memberof game.first_recharge_data
  37366. * @static
  37367. * @param {game.Ifirst_recharge_data} message first_recharge_data message or plain object to encode
  37368. * @param {$protobuf.Writer} [writer] Writer to encode to
  37369. * @returns {$protobuf.Writer} Writer
  37370. */
  37371. first_recharge_data.encodeDelimited = function encodeDelimited(message, writer) {
  37372. return this.encode(message, writer).ldelim();
  37373. };
  37374. /**
  37375. * Decodes a first_recharge_data message from the specified reader or buffer.
  37376. * @function decode
  37377. * @memberof game.first_recharge_data
  37378. * @static
  37379. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37380. * @param {number} [length] Message length if known beforehand
  37381. * @returns {game.first_recharge_data} first_recharge_data
  37382. * @throws {Error} If the payload is not a reader or valid buffer
  37383. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37384. */
  37385. first_recharge_data.decode = function decode(reader, length) {
  37386. if (!(reader instanceof $Reader))
  37387. reader = $Reader.create(reader);
  37388. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_data();
  37389. while (reader.pos < end) {
  37390. let tag = reader.uint32();
  37391. switch (tag >>> 3) {
  37392. case 1:
  37393. message.moduleid = reader.int64();
  37394. break;
  37395. default:
  37396. reader.skipType(tag & 7);
  37397. break;
  37398. }
  37399. }
  37400. return message;
  37401. };
  37402. /**
  37403. * Decodes a first_recharge_data message from the specified reader or buffer, length delimited.
  37404. * @function decodeDelimited
  37405. * @memberof game.first_recharge_data
  37406. * @static
  37407. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37408. * @returns {game.first_recharge_data} first_recharge_data
  37409. * @throws {Error} If the payload is not a reader or valid buffer
  37410. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37411. */
  37412. first_recharge_data.decodeDelimited = function decodeDelimited(reader) {
  37413. if (!(reader instanceof $Reader))
  37414. reader = new $Reader(reader);
  37415. return this.decode(reader, reader.uint32());
  37416. };
  37417. /**
  37418. * Verifies a first_recharge_data message.
  37419. * @function verify
  37420. * @memberof game.first_recharge_data
  37421. * @static
  37422. * @param {Object.<string,*>} message Plain object to verify
  37423. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37424. */
  37425. first_recharge_data.verify = function verify(message) {
  37426. if (typeof message !== "object" || message === null)
  37427. return "object expected";
  37428. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37429. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  37430. return "moduleid: integer|Long expected";
  37431. return null;
  37432. };
  37433. /**
  37434. * Creates a first_recharge_data message from a plain object. Also converts values to their respective internal types.
  37435. * @function fromObject
  37436. * @memberof game.first_recharge_data
  37437. * @static
  37438. * @param {Object.<string,*>} object Plain object
  37439. * @returns {game.first_recharge_data} first_recharge_data
  37440. */
  37441. first_recharge_data.fromObject = function fromObject(object) {
  37442. if (object instanceof $root.game.first_recharge_data)
  37443. return object;
  37444. let message = new $root.game.first_recharge_data();
  37445. if (object.moduleid != null)
  37446. if ($util.Long)
  37447. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  37448. else if (typeof object.moduleid === "string")
  37449. message.moduleid = parseInt(object.moduleid, 10);
  37450. else if (typeof object.moduleid === "number")
  37451. message.moduleid = object.moduleid;
  37452. else if (typeof object.moduleid === "object")
  37453. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  37454. return message;
  37455. };
  37456. /**
  37457. * Creates a plain object from a first_recharge_data message. Also converts values to other types if specified.
  37458. * @function toObject
  37459. * @memberof game.first_recharge_data
  37460. * @static
  37461. * @param {game.first_recharge_data} message first_recharge_data
  37462. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37463. * @returns {Object.<string,*>} Plain object
  37464. */
  37465. first_recharge_data.toObject = function toObject(message, options) {
  37466. if (!options)
  37467. options = {};
  37468. let object = {};
  37469. if (options.defaults)
  37470. if ($util.Long) {
  37471. let long = new $util.Long(0, 0, false);
  37472. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37473. } else
  37474. object.moduleid = options.longs === String ? "0" : 0;
  37475. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37476. if (typeof message.moduleid === "number")
  37477. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  37478. else
  37479. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  37480. return object;
  37481. };
  37482. /**
  37483. * Converts this first_recharge_data to JSON.
  37484. * @function toJSON
  37485. * @memberof game.first_recharge_data
  37486. * @instance
  37487. * @returns {Object.<string,*>} JSON object
  37488. */
  37489. first_recharge_data.prototype.toJSON = function toJSON() {
  37490. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37491. };
  37492. return first_recharge_data;
  37493. })();
  37494. game.first_recharge_data_rsp = (function() {
  37495. /**
  37496. * Properties of a first_recharge_data_rsp.
  37497. * @memberof game
  37498. * @interface Ifirst_recharge_data_rsp
  37499. * @property {number|Long|null} [errno] first_recharge_data_rsp errno
  37500. * @property {number|Long|null} [moduleid] first_recharge_data_rsp moduleid
  37501. * @property {boolean|null} [state] first_recharge_data_rsp state
  37502. * @property {number|Long|null} [day] first_recharge_data_rsp day
  37503. * @property {number|Long|null} [award] first_recharge_data_rsp award
  37504. */
  37505. /**
  37506. * Constructs a new first_recharge_data_rsp.
  37507. * @memberof game
  37508. * @classdesc Represents a first_recharge_data_rsp.
  37509. * @implements Ifirst_recharge_data_rsp
  37510. * @constructor
  37511. * @param {game.Ifirst_recharge_data_rsp=} [properties] Properties to set
  37512. */
  37513. function first_recharge_data_rsp(properties) {
  37514. if (properties)
  37515. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37516. if (properties[keys[i]] != null)
  37517. this[keys[i]] = properties[keys[i]];
  37518. }
  37519. /**
  37520. * first_recharge_data_rsp errno.
  37521. * @member {number|Long} errno
  37522. * @memberof game.first_recharge_data_rsp
  37523. * @instance
  37524. */
  37525. first_recharge_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37526. /**
  37527. * first_recharge_data_rsp moduleid.
  37528. * @member {number|Long} moduleid
  37529. * @memberof game.first_recharge_data_rsp
  37530. * @instance
  37531. */
  37532. first_recharge_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37533. /**
  37534. * first_recharge_data_rsp state.
  37535. * @member {boolean} state
  37536. * @memberof game.first_recharge_data_rsp
  37537. * @instance
  37538. */
  37539. first_recharge_data_rsp.prototype.state = false;
  37540. /**
  37541. * first_recharge_data_rsp day.
  37542. * @member {number|Long} day
  37543. * @memberof game.first_recharge_data_rsp
  37544. * @instance
  37545. */
  37546. first_recharge_data_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37547. /**
  37548. * first_recharge_data_rsp award.
  37549. * @member {number|Long} award
  37550. * @memberof game.first_recharge_data_rsp
  37551. * @instance
  37552. */
  37553. first_recharge_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37554. /**
  37555. * Creates a new first_recharge_data_rsp instance using the specified properties.
  37556. * @function create
  37557. * @memberof game.first_recharge_data_rsp
  37558. * @static
  37559. * @param {game.Ifirst_recharge_data_rsp=} [properties] Properties to set
  37560. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp instance
  37561. */
  37562. first_recharge_data_rsp.create = function create(properties) {
  37563. return new first_recharge_data_rsp(properties);
  37564. };
  37565. /**
  37566. * Encodes the specified first_recharge_data_rsp message. Does not implicitly {@link game.first_recharge_data_rsp.verify|verify} messages.
  37567. * @function encode
  37568. * @memberof game.first_recharge_data_rsp
  37569. * @static
  37570. * @param {game.Ifirst_recharge_data_rsp} message first_recharge_data_rsp message or plain object to encode
  37571. * @param {$protobuf.Writer} [writer] Writer to encode to
  37572. * @returns {$protobuf.Writer} Writer
  37573. */
  37574. first_recharge_data_rsp.encode = function encode(message, writer) {
  37575. if (!writer)
  37576. writer = $Writer.create();
  37577. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  37578. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  37579. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  37580. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  37581. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  37582. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  37583. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  37584. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
  37585. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  37586. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.award);
  37587. return writer;
  37588. };
  37589. /**
  37590. * Encodes the specified first_recharge_data_rsp message, length delimited. Does not implicitly {@link game.first_recharge_data_rsp.verify|verify} messages.
  37591. * @function encodeDelimited
  37592. * @memberof game.first_recharge_data_rsp
  37593. * @static
  37594. * @param {game.Ifirst_recharge_data_rsp} message first_recharge_data_rsp message or plain object to encode
  37595. * @param {$protobuf.Writer} [writer] Writer to encode to
  37596. * @returns {$protobuf.Writer} Writer
  37597. */
  37598. first_recharge_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  37599. return this.encode(message, writer).ldelim();
  37600. };
  37601. /**
  37602. * Decodes a first_recharge_data_rsp message from the specified reader or buffer.
  37603. * @function decode
  37604. * @memberof game.first_recharge_data_rsp
  37605. * @static
  37606. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37607. * @param {number} [length] Message length if known beforehand
  37608. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
  37609. * @throws {Error} If the payload is not a reader or valid buffer
  37610. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37611. */
  37612. first_recharge_data_rsp.decode = function decode(reader, length) {
  37613. if (!(reader instanceof $Reader))
  37614. reader = $Reader.create(reader);
  37615. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_data_rsp();
  37616. while (reader.pos < end) {
  37617. let tag = reader.uint32();
  37618. switch (tag >>> 3) {
  37619. case 1:
  37620. message.errno = reader.int64();
  37621. break;
  37622. case 2:
  37623. message.moduleid = reader.int64();
  37624. break;
  37625. case 3:
  37626. message.state = reader.bool();
  37627. break;
  37628. case 4:
  37629. message.day = reader.int64();
  37630. break;
  37631. case 5:
  37632. message.award = reader.int64();
  37633. break;
  37634. default:
  37635. reader.skipType(tag & 7);
  37636. break;
  37637. }
  37638. }
  37639. return message;
  37640. };
  37641. /**
  37642. * Decodes a first_recharge_data_rsp message from the specified reader or buffer, length delimited.
  37643. * @function decodeDelimited
  37644. * @memberof game.first_recharge_data_rsp
  37645. * @static
  37646. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37647. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
  37648. * @throws {Error} If the payload is not a reader or valid buffer
  37649. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37650. */
  37651. first_recharge_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  37652. if (!(reader instanceof $Reader))
  37653. reader = new $Reader(reader);
  37654. return this.decode(reader, reader.uint32());
  37655. };
  37656. /**
  37657. * Verifies a first_recharge_data_rsp message.
  37658. * @function verify
  37659. * @memberof game.first_recharge_data_rsp
  37660. * @static
  37661. * @param {Object.<string,*>} message Plain object to verify
  37662. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37663. */
  37664. first_recharge_data_rsp.verify = function verify(message) {
  37665. if (typeof message !== "object" || message === null)
  37666. return "object expected";
  37667. if (message.errno != null && message.hasOwnProperty("errno"))
  37668. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  37669. return "errno: integer|Long expected";
  37670. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37671. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  37672. return "moduleid: integer|Long expected";
  37673. if (message.state != null && message.hasOwnProperty("state"))
  37674. if (typeof message.state !== "boolean")
  37675. return "state: boolean expected";
  37676. if (message.day != null && message.hasOwnProperty("day"))
  37677. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  37678. return "day: integer|Long expected";
  37679. if (message.award != null && message.hasOwnProperty("award"))
  37680. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  37681. return "award: integer|Long expected";
  37682. return null;
  37683. };
  37684. /**
  37685. * Creates a first_recharge_data_rsp message from a plain object. Also converts values to their respective internal types.
  37686. * @function fromObject
  37687. * @memberof game.first_recharge_data_rsp
  37688. * @static
  37689. * @param {Object.<string,*>} object Plain object
  37690. * @returns {game.first_recharge_data_rsp} first_recharge_data_rsp
  37691. */
  37692. first_recharge_data_rsp.fromObject = function fromObject(object) {
  37693. if (object instanceof $root.game.first_recharge_data_rsp)
  37694. return object;
  37695. let message = new $root.game.first_recharge_data_rsp();
  37696. if (object.errno != null)
  37697. if ($util.Long)
  37698. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  37699. else if (typeof object.errno === "string")
  37700. message.errno = parseInt(object.errno, 10);
  37701. else if (typeof object.errno === "number")
  37702. message.errno = object.errno;
  37703. else if (typeof object.errno === "object")
  37704. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  37705. if (object.moduleid != null)
  37706. if ($util.Long)
  37707. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  37708. else if (typeof object.moduleid === "string")
  37709. message.moduleid = parseInt(object.moduleid, 10);
  37710. else if (typeof object.moduleid === "number")
  37711. message.moduleid = object.moduleid;
  37712. else if (typeof object.moduleid === "object")
  37713. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  37714. if (object.state != null)
  37715. message.state = Boolean(object.state);
  37716. if (object.day != null)
  37717. if ($util.Long)
  37718. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  37719. else if (typeof object.day === "string")
  37720. message.day = parseInt(object.day, 10);
  37721. else if (typeof object.day === "number")
  37722. message.day = object.day;
  37723. else if (typeof object.day === "object")
  37724. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  37725. if (object.award != null)
  37726. if ($util.Long)
  37727. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  37728. else if (typeof object.award === "string")
  37729. message.award = parseInt(object.award, 10);
  37730. else if (typeof object.award === "number")
  37731. message.award = object.award;
  37732. else if (typeof object.award === "object")
  37733. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  37734. return message;
  37735. };
  37736. /**
  37737. * Creates a plain object from a first_recharge_data_rsp message. Also converts values to other types if specified.
  37738. * @function toObject
  37739. * @memberof game.first_recharge_data_rsp
  37740. * @static
  37741. * @param {game.first_recharge_data_rsp} message first_recharge_data_rsp
  37742. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37743. * @returns {Object.<string,*>} Plain object
  37744. */
  37745. first_recharge_data_rsp.toObject = function toObject(message, options) {
  37746. if (!options)
  37747. options = {};
  37748. let object = {};
  37749. if (options.defaults) {
  37750. if ($util.Long) {
  37751. let long = new $util.Long(0, 0, false);
  37752. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37753. } else
  37754. object.errno = options.longs === String ? "0" : 0;
  37755. if ($util.Long) {
  37756. let long = new $util.Long(0, 0, false);
  37757. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37758. } else
  37759. object.moduleid = options.longs === String ? "0" : 0;
  37760. object.state = false;
  37761. if ($util.Long) {
  37762. let long = new $util.Long(0, 0, false);
  37763. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37764. } else
  37765. object.day = options.longs === String ? "0" : 0;
  37766. if ($util.Long) {
  37767. let long = new $util.Long(0, 0, false);
  37768. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37769. } else
  37770. object.award = options.longs === String ? "0" : 0;
  37771. }
  37772. if (message.errno != null && message.hasOwnProperty("errno"))
  37773. if (typeof message.errno === "number")
  37774. object.errno = options.longs === String ? String(message.errno) : message.errno;
  37775. else
  37776. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  37777. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37778. if (typeof message.moduleid === "number")
  37779. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  37780. else
  37781. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  37782. if (message.state != null && message.hasOwnProperty("state"))
  37783. object.state = message.state;
  37784. if (message.day != null && message.hasOwnProperty("day"))
  37785. if (typeof message.day === "number")
  37786. object.day = options.longs === String ? String(message.day) : message.day;
  37787. else
  37788. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  37789. if (message.award != null && message.hasOwnProperty("award"))
  37790. if (typeof message.award === "number")
  37791. object.award = options.longs === String ? String(message.award) : message.award;
  37792. else
  37793. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  37794. return object;
  37795. };
  37796. /**
  37797. * Converts this first_recharge_data_rsp to JSON.
  37798. * @function toJSON
  37799. * @memberof game.first_recharge_data_rsp
  37800. * @instance
  37801. * @returns {Object.<string,*>} JSON object
  37802. */
  37803. first_recharge_data_rsp.prototype.toJSON = function toJSON() {
  37804. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37805. };
  37806. return first_recharge_data_rsp;
  37807. })();
  37808. game.first_recharge_buy = (function() {
  37809. /**
  37810. * Properties of a first_recharge_buy.
  37811. * @memberof game
  37812. * @interface Ifirst_recharge_buy
  37813. * @property {number|Long|null} [moduleid] first_recharge_buy moduleid
  37814. */
  37815. /**
  37816. * Constructs a new first_recharge_buy.
  37817. * @memberof game
  37818. * @classdesc Represents a first_recharge_buy.
  37819. * @implements Ifirst_recharge_buy
  37820. * @constructor
  37821. * @param {game.Ifirst_recharge_buy=} [properties] Properties to set
  37822. */
  37823. function first_recharge_buy(properties) {
  37824. if (properties)
  37825. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  37826. if (properties[keys[i]] != null)
  37827. this[keys[i]] = properties[keys[i]];
  37828. }
  37829. /**
  37830. * first_recharge_buy moduleid.
  37831. * @member {number|Long} moduleid
  37832. * @memberof game.first_recharge_buy
  37833. * @instance
  37834. */
  37835. first_recharge_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  37836. /**
  37837. * Creates a new first_recharge_buy instance using the specified properties.
  37838. * @function create
  37839. * @memberof game.first_recharge_buy
  37840. * @static
  37841. * @param {game.Ifirst_recharge_buy=} [properties] Properties to set
  37842. * @returns {game.first_recharge_buy} first_recharge_buy instance
  37843. */
  37844. first_recharge_buy.create = function create(properties) {
  37845. return new first_recharge_buy(properties);
  37846. };
  37847. /**
  37848. * Encodes the specified first_recharge_buy message. Does not implicitly {@link game.first_recharge_buy.verify|verify} messages.
  37849. * @function encode
  37850. * @memberof game.first_recharge_buy
  37851. * @static
  37852. * @param {game.Ifirst_recharge_buy} message first_recharge_buy message or plain object to encode
  37853. * @param {$protobuf.Writer} [writer] Writer to encode to
  37854. * @returns {$protobuf.Writer} Writer
  37855. */
  37856. first_recharge_buy.encode = function encode(message, writer) {
  37857. if (!writer)
  37858. writer = $Writer.create();
  37859. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  37860. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  37861. return writer;
  37862. };
  37863. /**
  37864. * Encodes the specified first_recharge_buy message, length delimited. Does not implicitly {@link game.first_recharge_buy.verify|verify} messages.
  37865. * @function encodeDelimited
  37866. * @memberof game.first_recharge_buy
  37867. * @static
  37868. * @param {game.Ifirst_recharge_buy} message first_recharge_buy message or plain object to encode
  37869. * @param {$protobuf.Writer} [writer] Writer to encode to
  37870. * @returns {$protobuf.Writer} Writer
  37871. */
  37872. first_recharge_buy.encodeDelimited = function encodeDelimited(message, writer) {
  37873. return this.encode(message, writer).ldelim();
  37874. };
  37875. /**
  37876. * Decodes a first_recharge_buy message from the specified reader or buffer.
  37877. * @function decode
  37878. * @memberof game.first_recharge_buy
  37879. * @static
  37880. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37881. * @param {number} [length] Message length if known beforehand
  37882. * @returns {game.first_recharge_buy} first_recharge_buy
  37883. * @throws {Error} If the payload is not a reader or valid buffer
  37884. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37885. */
  37886. first_recharge_buy.decode = function decode(reader, length) {
  37887. if (!(reader instanceof $Reader))
  37888. reader = $Reader.create(reader);
  37889. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_buy();
  37890. while (reader.pos < end) {
  37891. let tag = reader.uint32();
  37892. switch (tag >>> 3) {
  37893. case 1:
  37894. message.moduleid = reader.int64();
  37895. break;
  37896. default:
  37897. reader.skipType(tag & 7);
  37898. break;
  37899. }
  37900. }
  37901. return message;
  37902. };
  37903. /**
  37904. * Decodes a first_recharge_buy message from the specified reader or buffer, length delimited.
  37905. * @function decodeDelimited
  37906. * @memberof game.first_recharge_buy
  37907. * @static
  37908. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  37909. * @returns {game.first_recharge_buy} first_recharge_buy
  37910. * @throws {Error} If the payload is not a reader or valid buffer
  37911. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  37912. */
  37913. first_recharge_buy.decodeDelimited = function decodeDelimited(reader) {
  37914. if (!(reader instanceof $Reader))
  37915. reader = new $Reader(reader);
  37916. return this.decode(reader, reader.uint32());
  37917. };
  37918. /**
  37919. * Verifies a first_recharge_buy message.
  37920. * @function verify
  37921. * @memberof game.first_recharge_buy
  37922. * @static
  37923. * @param {Object.<string,*>} message Plain object to verify
  37924. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  37925. */
  37926. first_recharge_buy.verify = function verify(message) {
  37927. if (typeof message !== "object" || message === null)
  37928. return "object expected";
  37929. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37930. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  37931. return "moduleid: integer|Long expected";
  37932. return null;
  37933. };
  37934. /**
  37935. * Creates a first_recharge_buy message from a plain object. Also converts values to their respective internal types.
  37936. * @function fromObject
  37937. * @memberof game.first_recharge_buy
  37938. * @static
  37939. * @param {Object.<string,*>} object Plain object
  37940. * @returns {game.first_recharge_buy} first_recharge_buy
  37941. */
  37942. first_recharge_buy.fromObject = function fromObject(object) {
  37943. if (object instanceof $root.game.first_recharge_buy)
  37944. return object;
  37945. let message = new $root.game.first_recharge_buy();
  37946. if (object.moduleid != null)
  37947. if ($util.Long)
  37948. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  37949. else if (typeof object.moduleid === "string")
  37950. message.moduleid = parseInt(object.moduleid, 10);
  37951. else if (typeof object.moduleid === "number")
  37952. message.moduleid = object.moduleid;
  37953. else if (typeof object.moduleid === "object")
  37954. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  37955. return message;
  37956. };
  37957. /**
  37958. * Creates a plain object from a first_recharge_buy message. Also converts values to other types if specified.
  37959. * @function toObject
  37960. * @memberof game.first_recharge_buy
  37961. * @static
  37962. * @param {game.first_recharge_buy} message first_recharge_buy
  37963. * @param {$protobuf.IConversionOptions} [options] Conversion options
  37964. * @returns {Object.<string,*>} Plain object
  37965. */
  37966. first_recharge_buy.toObject = function toObject(message, options) {
  37967. if (!options)
  37968. options = {};
  37969. let object = {};
  37970. if (options.defaults)
  37971. if ($util.Long) {
  37972. let long = new $util.Long(0, 0, false);
  37973. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  37974. } else
  37975. object.moduleid = options.longs === String ? "0" : 0;
  37976. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  37977. if (typeof message.moduleid === "number")
  37978. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  37979. else
  37980. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  37981. return object;
  37982. };
  37983. /**
  37984. * Converts this first_recharge_buy to JSON.
  37985. * @function toJSON
  37986. * @memberof game.first_recharge_buy
  37987. * @instance
  37988. * @returns {Object.<string,*>} JSON object
  37989. */
  37990. first_recharge_buy.prototype.toJSON = function toJSON() {
  37991. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  37992. };
  37993. return first_recharge_buy;
  37994. })();
  37995. game.first_recharge_buy_rsp = (function() {
  37996. /**
  37997. * Properties of a first_recharge_buy_rsp.
  37998. * @memberof game
  37999. * @interface Ifirst_recharge_buy_rsp
  38000. * @property {number|Long|null} [errno] first_recharge_buy_rsp errno
  38001. * @property {number|Long|null} [moduleid] first_recharge_buy_rsp moduleid
  38002. */
  38003. /**
  38004. * Constructs a new first_recharge_buy_rsp.
  38005. * @memberof game
  38006. * @classdesc Represents a first_recharge_buy_rsp.
  38007. * @implements Ifirst_recharge_buy_rsp
  38008. * @constructor
  38009. * @param {game.Ifirst_recharge_buy_rsp=} [properties] Properties to set
  38010. */
  38011. function first_recharge_buy_rsp(properties) {
  38012. if (properties)
  38013. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38014. if (properties[keys[i]] != null)
  38015. this[keys[i]] = properties[keys[i]];
  38016. }
  38017. /**
  38018. * first_recharge_buy_rsp errno.
  38019. * @member {number|Long} errno
  38020. * @memberof game.first_recharge_buy_rsp
  38021. * @instance
  38022. */
  38023. first_recharge_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38024. /**
  38025. * first_recharge_buy_rsp moduleid.
  38026. * @member {number|Long} moduleid
  38027. * @memberof game.first_recharge_buy_rsp
  38028. * @instance
  38029. */
  38030. first_recharge_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38031. /**
  38032. * Creates a new first_recharge_buy_rsp instance using the specified properties.
  38033. * @function create
  38034. * @memberof game.first_recharge_buy_rsp
  38035. * @static
  38036. * @param {game.Ifirst_recharge_buy_rsp=} [properties] Properties to set
  38037. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp instance
  38038. */
  38039. first_recharge_buy_rsp.create = function create(properties) {
  38040. return new first_recharge_buy_rsp(properties);
  38041. };
  38042. /**
  38043. * Encodes the specified first_recharge_buy_rsp message. Does not implicitly {@link game.first_recharge_buy_rsp.verify|verify} messages.
  38044. * @function encode
  38045. * @memberof game.first_recharge_buy_rsp
  38046. * @static
  38047. * @param {game.Ifirst_recharge_buy_rsp} message first_recharge_buy_rsp message or plain object to encode
  38048. * @param {$protobuf.Writer} [writer] Writer to encode to
  38049. * @returns {$protobuf.Writer} Writer
  38050. */
  38051. first_recharge_buy_rsp.encode = function encode(message, writer) {
  38052. if (!writer)
  38053. writer = $Writer.create();
  38054. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  38055. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  38056. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38057. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  38058. return writer;
  38059. };
  38060. /**
  38061. * Encodes the specified first_recharge_buy_rsp message, length delimited. Does not implicitly {@link game.first_recharge_buy_rsp.verify|verify} messages.
  38062. * @function encodeDelimited
  38063. * @memberof game.first_recharge_buy_rsp
  38064. * @static
  38065. * @param {game.Ifirst_recharge_buy_rsp} message first_recharge_buy_rsp message or plain object to encode
  38066. * @param {$protobuf.Writer} [writer] Writer to encode to
  38067. * @returns {$protobuf.Writer} Writer
  38068. */
  38069. first_recharge_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  38070. return this.encode(message, writer).ldelim();
  38071. };
  38072. /**
  38073. * Decodes a first_recharge_buy_rsp message from the specified reader or buffer.
  38074. * @function decode
  38075. * @memberof game.first_recharge_buy_rsp
  38076. * @static
  38077. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38078. * @param {number} [length] Message length if known beforehand
  38079. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
  38080. * @throws {Error} If the payload is not a reader or valid buffer
  38081. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38082. */
  38083. first_recharge_buy_rsp.decode = function decode(reader, length) {
  38084. if (!(reader instanceof $Reader))
  38085. reader = $Reader.create(reader);
  38086. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_buy_rsp();
  38087. while (reader.pos < end) {
  38088. let tag = reader.uint32();
  38089. switch (tag >>> 3) {
  38090. case 1:
  38091. message.errno = reader.int64();
  38092. break;
  38093. case 2:
  38094. message.moduleid = reader.int64();
  38095. break;
  38096. default:
  38097. reader.skipType(tag & 7);
  38098. break;
  38099. }
  38100. }
  38101. return message;
  38102. };
  38103. /**
  38104. * Decodes a first_recharge_buy_rsp message from the specified reader or buffer, length delimited.
  38105. * @function decodeDelimited
  38106. * @memberof game.first_recharge_buy_rsp
  38107. * @static
  38108. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38109. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
  38110. * @throws {Error} If the payload is not a reader or valid buffer
  38111. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38112. */
  38113. first_recharge_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  38114. if (!(reader instanceof $Reader))
  38115. reader = new $Reader(reader);
  38116. return this.decode(reader, reader.uint32());
  38117. };
  38118. /**
  38119. * Verifies a first_recharge_buy_rsp message.
  38120. * @function verify
  38121. * @memberof game.first_recharge_buy_rsp
  38122. * @static
  38123. * @param {Object.<string,*>} message Plain object to verify
  38124. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38125. */
  38126. first_recharge_buy_rsp.verify = function verify(message) {
  38127. if (typeof message !== "object" || message === null)
  38128. return "object expected";
  38129. if (message.errno != null && message.hasOwnProperty("errno"))
  38130. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  38131. return "errno: integer|Long expected";
  38132. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38133. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38134. return "moduleid: integer|Long expected";
  38135. return null;
  38136. };
  38137. /**
  38138. * Creates a first_recharge_buy_rsp message from a plain object. Also converts values to their respective internal types.
  38139. * @function fromObject
  38140. * @memberof game.first_recharge_buy_rsp
  38141. * @static
  38142. * @param {Object.<string,*>} object Plain object
  38143. * @returns {game.first_recharge_buy_rsp} first_recharge_buy_rsp
  38144. */
  38145. first_recharge_buy_rsp.fromObject = function fromObject(object) {
  38146. if (object instanceof $root.game.first_recharge_buy_rsp)
  38147. return object;
  38148. let message = new $root.game.first_recharge_buy_rsp();
  38149. if (object.errno != null)
  38150. if ($util.Long)
  38151. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  38152. else if (typeof object.errno === "string")
  38153. message.errno = parseInt(object.errno, 10);
  38154. else if (typeof object.errno === "number")
  38155. message.errno = object.errno;
  38156. else if (typeof object.errno === "object")
  38157. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  38158. if (object.moduleid != null)
  38159. if ($util.Long)
  38160. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38161. else if (typeof object.moduleid === "string")
  38162. message.moduleid = parseInt(object.moduleid, 10);
  38163. else if (typeof object.moduleid === "number")
  38164. message.moduleid = object.moduleid;
  38165. else if (typeof object.moduleid === "object")
  38166. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38167. return message;
  38168. };
  38169. /**
  38170. * Creates a plain object from a first_recharge_buy_rsp message. Also converts values to other types if specified.
  38171. * @function toObject
  38172. * @memberof game.first_recharge_buy_rsp
  38173. * @static
  38174. * @param {game.first_recharge_buy_rsp} message first_recharge_buy_rsp
  38175. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38176. * @returns {Object.<string,*>} Plain object
  38177. */
  38178. first_recharge_buy_rsp.toObject = function toObject(message, options) {
  38179. if (!options)
  38180. options = {};
  38181. let object = {};
  38182. if (options.defaults) {
  38183. if ($util.Long) {
  38184. let long = new $util.Long(0, 0, false);
  38185. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38186. } else
  38187. object.errno = options.longs === String ? "0" : 0;
  38188. if ($util.Long) {
  38189. let long = new $util.Long(0, 0, false);
  38190. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38191. } else
  38192. object.moduleid = options.longs === String ? "0" : 0;
  38193. }
  38194. if (message.errno != null && message.hasOwnProperty("errno"))
  38195. if (typeof message.errno === "number")
  38196. object.errno = options.longs === String ? String(message.errno) : message.errno;
  38197. else
  38198. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  38199. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38200. if (typeof message.moduleid === "number")
  38201. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38202. else
  38203. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  38204. return object;
  38205. };
  38206. /**
  38207. * Converts this first_recharge_buy_rsp to JSON.
  38208. * @function toJSON
  38209. * @memberof game.first_recharge_buy_rsp
  38210. * @instance
  38211. * @returns {Object.<string,*>} JSON object
  38212. */
  38213. first_recharge_buy_rsp.prototype.toJSON = function toJSON() {
  38214. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38215. };
  38216. return first_recharge_buy_rsp;
  38217. })();
  38218. game.first_recharge_award = (function() {
  38219. /**
  38220. * Properties of a first_recharge_award.
  38221. * @memberof game
  38222. * @interface Ifirst_recharge_award
  38223. * @property {number|Long|null} [moduleid] first_recharge_award moduleid
  38224. * @property {number|Long|null} [day] first_recharge_award day
  38225. */
  38226. /**
  38227. * Constructs a new first_recharge_award.
  38228. * @memberof game
  38229. * @classdesc Represents a first_recharge_award.
  38230. * @implements Ifirst_recharge_award
  38231. * @constructor
  38232. * @param {game.Ifirst_recharge_award=} [properties] Properties to set
  38233. */
  38234. function first_recharge_award(properties) {
  38235. if (properties)
  38236. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38237. if (properties[keys[i]] != null)
  38238. this[keys[i]] = properties[keys[i]];
  38239. }
  38240. /**
  38241. * first_recharge_award moduleid.
  38242. * @member {number|Long} moduleid
  38243. * @memberof game.first_recharge_award
  38244. * @instance
  38245. */
  38246. first_recharge_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38247. /**
  38248. * first_recharge_award day.
  38249. * @member {number|Long} day
  38250. * @memberof game.first_recharge_award
  38251. * @instance
  38252. */
  38253. first_recharge_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38254. /**
  38255. * Creates a new first_recharge_award instance using the specified properties.
  38256. * @function create
  38257. * @memberof game.first_recharge_award
  38258. * @static
  38259. * @param {game.Ifirst_recharge_award=} [properties] Properties to set
  38260. * @returns {game.first_recharge_award} first_recharge_award instance
  38261. */
  38262. first_recharge_award.create = function create(properties) {
  38263. return new first_recharge_award(properties);
  38264. };
  38265. /**
  38266. * Encodes the specified first_recharge_award message. Does not implicitly {@link game.first_recharge_award.verify|verify} messages.
  38267. * @function encode
  38268. * @memberof game.first_recharge_award
  38269. * @static
  38270. * @param {game.Ifirst_recharge_award} message first_recharge_award message or plain object to encode
  38271. * @param {$protobuf.Writer} [writer] Writer to encode to
  38272. * @returns {$protobuf.Writer} Writer
  38273. */
  38274. first_recharge_award.encode = function encode(message, writer) {
  38275. if (!writer)
  38276. writer = $Writer.create();
  38277. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38278. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  38279. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  38280. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  38281. return writer;
  38282. };
  38283. /**
  38284. * Encodes the specified first_recharge_award message, length delimited. Does not implicitly {@link game.first_recharge_award.verify|verify} messages.
  38285. * @function encodeDelimited
  38286. * @memberof game.first_recharge_award
  38287. * @static
  38288. * @param {game.Ifirst_recharge_award} message first_recharge_award message or plain object to encode
  38289. * @param {$protobuf.Writer} [writer] Writer to encode to
  38290. * @returns {$protobuf.Writer} Writer
  38291. */
  38292. first_recharge_award.encodeDelimited = function encodeDelimited(message, writer) {
  38293. return this.encode(message, writer).ldelim();
  38294. };
  38295. /**
  38296. * Decodes a first_recharge_award message from the specified reader or buffer.
  38297. * @function decode
  38298. * @memberof game.first_recharge_award
  38299. * @static
  38300. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38301. * @param {number} [length] Message length if known beforehand
  38302. * @returns {game.first_recharge_award} first_recharge_award
  38303. * @throws {Error} If the payload is not a reader or valid buffer
  38304. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38305. */
  38306. first_recharge_award.decode = function decode(reader, length) {
  38307. if (!(reader instanceof $Reader))
  38308. reader = $Reader.create(reader);
  38309. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_award();
  38310. while (reader.pos < end) {
  38311. let tag = reader.uint32();
  38312. switch (tag >>> 3) {
  38313. case 1:
  38314. message.moduleid = reader.int64();
  38315. break;
  38316. case 2:
  38317. message.day = reader.int64();
  38318. break;
  38319. default:
  38320. reader.skipType(tag & 7);
  38321. break;
  38322. }
  38323. }
  38324. return message;
  38325. };
  38326. /**
  38327. * Decodes a first_recharge_award message from the specified reader or buffer, length delimited.
  38328. * @function decodeDelimited
  38329. * @memberof game.first_recharge_award
  38330. * @static
  38331. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38332. * @returns {game.first_recharge_award} first_recharge_award
  38333. * @throws {Error} If the payload is not a reader or valid buffer
  38334. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38335. */
  38336. first_recharge_award.decodeDelimited = function decodeDelimited(reader) {
  38337. if (!(reader instanceof $Reader))
  38338. reader = new $Reader(reader);
  38339. return this.decode(reader, reader.uint32());
  38340. };
  38341. /**
  38342. * Verifies a first_recharge_award message.
  38343. * @function verify
  38344. * @memberof game.first_recharge_award
  38345. * @static
  38346. * @param {Object.<string,*>} message Plain object to verify
  38347. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38348. */
  38349. first_recharge_award.verify = function verify(message) {
  38350. if (typeof message !== "object" || message === null)
  38351. return "object expected";
  38352. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38353. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38354. return "moduleid: integer|Long expected";
  38355. if (message.day != null && message.hasOwnProperty("day"))
  38356. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  38357. return "day: integer|Long expected";
  38358. return null;
  38359. };
  38360. /**
  38361. * Creates a first_recharge_award message from a plain object. Also converts values to their respective internal types.
  38362. * @function fromObject
  38363. * @memberof game.first_recharge_award
  38364. * @static
  38365. * @param {Object.<string,*>} object Plain object
  38366. * @returns {game.first_recharge_award} first_recharge_award
  38367. */
  38368. first_recharge_award.fromObject = function fromObject(object) {
  38369. if (object instanceof $root.game.first_recharge_award)
  38370. return object;
  38371. let message = new $root.game.first_recharge_award();
  38372. if (object.moduleid != null)
  38373. if ($util.Long)
  38374. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38375. else if (typeof object.moduleid === "string")
  38376. message.moduleid = parseInt(object.moduleid, 10);
  38377. else if (typeof object.moduleid === "number")
  38378. message.moduleid = object.moduleid;
  38379. else if (typeof object.moduleid === "object")
  38380. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38381. if (object.day != null)
  38382. if ($util.Long)
  38383. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  38384. else if (typeof object.day === "string")
  38385. message.day = parseInt(object.day, 10);
  38386. else if (typeof object.day === "number")
  38387. message.day = object.day;
  38388. else if (typeof object.day === "object")
  38389. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  38390. return message;
  38391. };
  38392. /**
  38393. * Creates a plain object from a first_recharge_award message. Also converts values to other types if specified.
  38394. * @function toObject
  38395. * @memberof game.first_recharge_award
  38396. * @static
  38397. * @param {game.first_recharge_award} message first_recharge_award
  38398. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38399. * @returns {Object.<string,*>} Plain object
  38400. */
  38401. first_recharge_award.toObject = function toObject(message, options) {
  38402. if (!options)
  38403. options = {};
  38404. let object = {};
  38405. if (options.defaults) {
  38406. if ($util.Long) {
  38407. let long = new $util.Long(0, 0, false);
  38408. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38409. } else
  38410. object.moduleid = options.longs === String ? "0" : 0;
  38411. if ($util.Long) {
  38412. let long = new $util.Long(0, 0, false);
  38413. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38414. } else
  38415. object.day = options.longs === String ? "0" : 0;
  38416. }
  38417. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38418. if (typeof message.moduleid === "number")
  38419. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38420. else
  38421. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  38422. if (message.day != null && message.hasOwnProperty("day"))
  38423. if (typeof message.day === "number")
  38424. object.day = options.longs === String ? String(message.day) : message.day;
  38425. else
  38426. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  38427. return object;
  38428. };
  38429. /**
  38430. * Converts this first_recharge_award to JSON.
  38431. * @function toJSON
  38432. * @memberof game.first_recharge_award
  38433. * @instance
  38434. * @returns {Object.<string,*>} JSON object
  38435. */
  38436. first_recharge_award.prototype.toJSON = function toJSON() {
  38437. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38438. };
  38439. return first_recharge_award;
  38440. })();
  38441. game.first_recharge_award_rsp = (function() {
  38442. /**
  38443. * Properties of a first_recharge_award_rsp.
  38444. * @memberof game
  38445. * @interface Ifirst_recharge_award_rsp
  38446. * @property {number|Long|null} [errno] first_recharge_award_rsp errno
  38447. * @property {number|Long|null} [moduleid] first_recharge_award_rsp moduleid
  38448. * @property {number|Long|null} [award] first_recharge_award_rsp award
  38449. */
  38450. /**
  38451. * Constructs a new first_recharge_award_rsp.
  38452. * @memberof game
  38453. * @classdesc Represents a first_recharge_award_rsp.
  38454. * @implements Ifirst_recharge_award_rsp
  38455. * @constructor
  38456. * @param {game.Ifirst_recharge_award_rsp=} [properties] Properties to set
  38457. */
  38458. function first_recharge_award_rsp(properties) {
  38459. if (properties)
  38460. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38461. if (properties[keys[i]] != null)
  38462. this[keys[i]] = properties[keys[i]];
  38463. }
  38464. /**
  38465. * first_recharge_award_rsp errno.
  38466. * @member {number|Long} errno
  38467. * @memberof game.first_recharge_award_rsp
  38468. * @instance
  38469. */
  38470. first_recharge_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38471. /**
  38472. * first_recharge_award_rsp moduleid.
  38473. * @member {number|Long} moduleid
  38474. * @memberof game.first_recharge_award_rsp
  38475. * @instance
  38476. */
  38477. first_recharge_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38478. /**
  38479. * first_recharge_award_rsp award.
  38480. * @member {number|Long} award
  38481. * @memberof game.first_recharge_award_rsp
  38482. * @instance
  38483. */
  38484. first_recharge_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38485. /**
  38486. * Creates a new first_recharge_award_rsp instance using the specified properties.
  38487. * @function create
  38488. * @memberof game.first_recharge_award_rsp
  38489. * @static
  38490. * @param {game.Ifirst_recharge_award_rsp=} [properties] Properties to set
  38491. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp instance
  38492. */
  38493. first_recharge_award_rsp.create = function create(properties) {
  38494. return new first_recharge_award_rsp(properties);
  38495. };
  38496. /**
  38497. * Encodes the specified first_recharge_award_rsp message. Does not implicitly {@link game.first_recharge_award_rsp.verify|verify} messages.
  38498. * @function encode
  38499. * @memberof game.first_recharge_award_rsp
  38500. * @static
  38501. * @param {game.Ifirst_recharge_award_rsp} message first_recharge_award_rsp message or plain object to encode
  38502. * @param {$protobuf.Writer} [writer] Writer to encode to
  38503. * @returns {$protobuf.Writer} Writer
  38504. */
  38505. first_recharge_award_rsp.encode = function encode(message, writer) {
  38506. if (!writer)
  38507. writer = $Writer.create();
  38508. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  38509. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  38510. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38511. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  38512. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  38513. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  38514. return writer;
  38515. };
  38516. /**
  38517. * Encodes the specified first_recharge_award_rsp message, length delimited. Does not implicitly {@link game.first_recharge_award_rsp.verify|verify} messages.
  38518. * @function encodeDelimited
  38519. * @memberof game.first_recharge_award_rsp
  38520. * @static
  38521. * @param {game.Ifirst_recharge_award_rsp} message first_recharge_award_rsp message or plain object to encode
  38522. * @param {$protobuf.Writer} [writer] Writer to encode to
  38523. * @returns {$protobuf.Writer} Writer
  38524. */
  38525. first_recharge_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  38526. return this.encode(message, writer).ldelim();
  38527. };
  38528. /**
  38529. * Decodes a first_recharge_award_rsp message from the specified reader or buffer.
  38530. * @function decode
  38531. * @memberof game.first_recharge_award_rsp
  38532. * @static
  38533. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38534. * @param {number} [length] Message length if known beforehand
  38535. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
  38536. * @throws {Error} If the payload is not a reader or valid buffer
  38537. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38538. */
  38539. first_recharge_award_rsp.decode = function decode(reader, length) {
  38540. if (!(reader instanceof $Reader))
  38541. reader = $Reader.create(reader);
  38542. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_award_rsp();
  38543. while (reader.pos < end) {
  38544. let tag = reader.uint32();
  38545. switch (tag >>> 3) {
  38546. case 1:
  38547. message.errno = reader.int64();
  38548. break;
  38549. case 2:
  38550. message.moduleid = reader.int64();
  38551. break;
  38552. case 3:
  38553. message.award = reader.int64();
  38554. break;
  38555. default:
  38556. reader.skipType(tag & 7);
  38557. break;
  38558. }
  38559. }
  38560. return message;
  38561. };
  38562. /**
  38563. * Decodes a first_recharge_award_rsp message from the specified reader or buffer, length delimited.
  38564. * @function decodeDelimited
  38565. * @memberof game.first_recharge_award_rsp
  38566. * @static
  38567. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38568. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
  38569. * @throws {Error} If the payload is not a reader or valid buffer
  38570. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38571. */
  38572. first_recharge_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  38573. if (!(reader instanceof $Reader))
  38574. reader = new $Reader(reader);
  38575. return this.decode(reader, reader.uint32());
  38576. };
  38577. /**
  38578. * Verifies a first_recharge_award_rsp message.
  38579. * @function verify
  38580. * @memberof game.first_recharge_award_rsp
  38581. * @static
  38582. * @param {Object.<string,*>} message Plain object to verify
  38583. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38584. */
  38585. first_recharge_award_rsp.verify = function verify(message) {
  38586. if (typeof message !== "object" || message === null)
  38587. return "object expected";
  38588. if (message.errno != null && message.hasOwnProperty("errno"))
  38589. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  38590. return "errno: integer|Long expected";
  38591. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38592. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38593. return "moduleid: integer|Long expected";
  38594. if (message.award != null && message.hasOwnProperty("award"))
  38595. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  38596. return "award: integer|Long expected";
  38597. return null;
  38598. };
  38599. /**
  38600. * Creates a first_recharge_award_rsp message from a plain object. Also converts values to their respective internal types.
  38601. * @function fromObject
  38602. * @memberof game.first_recharge_award_rsp
  38603. * @static
  38604. * @param {Object.<string,*>} object Plain object
  38605. * @returns {game.first_recharge_award_rsp} first_recharge_award_rsp
  38606. */
  38607. first_recharge_award_rsp.fromObject = function fromObject(object) {
  38608. if (object instanceof $root.game.first_recharge_award_rsp)
  38609. return object;
  38610. let message = new $root.game.first_recharge_award_rsp();
  38611. if (object.errno != null)
  38612. if ($util.Long)
  38613. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  38614. else if (typeof object.errno === "string")
  38615. message.errno = parseInt(object.errno, 10);
  38616. else if (typeof object.errno === "number")
  38617. message.errno = object.errno;
  38618. else if (typeof object.errno === "object")
  38619. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  38620. if (object.moduleid != null)
  38621. if ($util.Long)
  38622. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38623. else if (typeof object.moduleid === "string")
  38624. message.moduleid = parseInt(object.moduleid, 10);
  38625. else if (typeof object.moduleid === "number")
  38626. message.moduleid = object.moduleid;
  38627. else if (typeof object.moduleid === "object")
  38628. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38629. if (object.award != null)
  38630. if ($util.Long)
  38631. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  38632. else if (typeof object.award === "string")
  38633. message.award = parseInt(object.award, 10);
  38634. else if (typeof object.award === "number")
  38635. message.award = object.award;
  38636. else if (typeof object.award === "object")
  38637. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  38638. return message;
  38639. };
  38640. /**
  38641. * Creates a plain object from a first_recharge_award_rsp message. Also converts values to other types if specified.
  38642. * @function toObject
  38643. * @memberof game.first_recharge_award_rsp
  38644. * @static
  38645. * @param {game.first_recharge_award_rsp} message first_recharge_award_rsp
  38646. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38647. * @returns {Object.<string,*>} Plain object
  38648. */
  38649. first_recharge_award_rsp.toObject = function toObject(message, options) {
  38650. if (!options)
  38651. options = {};
  38652. let object = {};
  38653. if (options.defaults) {
  38654. if ($util.Long) {
  38655. let long = new $util.Long(0, 0, false);
  38656. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38657. } else
  38658. object.errno = options.longs === String ? "0" : 0;
  38659. if ($util.Long) {
  38660. let long = new $util.Long(0, 0, false);
  38661. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38662. } else
  38663. object.moduleid = options.longs === String ? "0" : 0;
  38664. if ($util.Long) {
  38665. let long = new $util.Long(0, 0, false);
  38666. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38667. } else
  38668. object.award = options.longs === String ? "0" : 0;
  38669. }
  38670. if (message.errno != null && message.hasOwnProperty("errno"))
  38671. if (typeof message.errno === "number")
  38672. object.errno = options.longs === String ? String(message.errno) : message.errno;
  38673. else
  38674. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  38675. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38676. if (typeof message.moduleid === "number")
  38677. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38678. else
  38679. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  38680. if (message.award != null && message.hasOwnProperty("award"))
  38681. if (typeof message.award === "number")
  38682. object.award = options.longs === String ? String(message.award) : message.award;
  38683. else
  38684. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  38685. return object;
  38686. };
  38687. /**
  38688. * Converts this first_recharge_award_rsp to JSON.
  38689. * @function toJSON
  38690. * @memberof game.first_recharge_award_rsp
  38691. * @instance
  38692. * @returns {Object.<string,*>} JSON object
  38693. */
  38694. first_recharge_award_rsp.prototype.toJSON = function toJSON() {
  38695. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38696. };
  38697. return first_recharge_award_rsp;
  38698. })();
  38699. game.first_recharge_nty = (function() {
  38700. /**
  38701. * Properties of a first_recharge_nty.
  38702. * @memberof game
  38703. * @interface Ifirst_recharge_nty
  38704. * @property {number|Long|null} [moduleid] first_recharge_nty moduleid
  38705. * @property {boolean|null} [state] first_recharge_nty state
  38706. * @property {number|Long|null} [day] first_recharge_nty day
  38707. * @property {number|Long|null} [award] first_recharge_nty award
  38708. */
  38709. /**
  38710. * Constructs a new first_recharge_nty.
  38711. * @memberof game
  38712. * @classdesc Represents a first_recharge_nty.
  38713. * @implements Ifirst_recharge_nty
  38714. * @constructor
  38715. * @param {game.Ifirst_recharge_nty=} [properties] Properties to set
  38716. */
  38717. function first_recharge_nty(properties) {
  38718. if (properties)
  38719. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38720. if (properties[keys[i]] != null)
  38721. this[keys[i]] = properties[keys[i]];
  38722. }
  38723. /**
  38724. * first_recharge_nty moduleid.
  38725. * @member {number|Long} moduleid
  38726. * @memberof game.first_recharge_nty
  38727. * @instance
  38728. */
  38729. first_recharge_nty.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38730. /**
  38731. * first_recharge_nty state.
  38732. * @member {boolean} state
  38733. * @memberof game.first_recharge_nty
  38734. * @instance
  38735. */
  38736. first_recharge_nty.prototype.state = false;
  38737. /**
  38738. * first_recharge_nty day.
  38739. * @member {number|Long} day
  38740. * @memberof game.first_recharge_nty
  38741. * @instance
  38742. */
  38743. first_recharge_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38744. /**
  38745. * first_recharge_nty award.
  38746. * @member {number|Long} award
  38747. * @memberof game.first_recharge_nty
  38748. * @instance
  38749. */
  38750. first_recharge_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  38751. /**
  38752. * Creates a new first_recharge_nty instance using the specified properties.
  38753. * @function create
  38754. * @memberof game.first_recharge_nty
  38755. * @static
  38756. * @param {game.Ifirst_recharge_nty=} [properties] Properties to set
  38757. * @returns {game.first_recharge_nty} first_recharge_nty instance
  38758. */
  38759. first_recharge_nty.create = function create(properties) {
  38760. return new first_recharge_nty(properties);
  38761. };
  38762. /**
  38763. * Encodes the specified first_recharge_nty message. Does not implicitly {@link game.first_recharge_nty.verify|verify} messages.
  38764. * @function encode
  38765. * @memberof game.first_recharge_nty
  38766. * @static
  38767. * @param {game.Ifirst_recharge_nty} message first_recharge_nty message or plain object to encode
  38768. * @param {$protobuf.Writer} [writer] Writer to encode to
  38769. * @returns {$protobuf.Writer} Writer
  38770. */
  38771. first_recharge_nty.encode = function encode(message, writer) {
  38772. if (!writer)
  38773. writer = $Writer.create();
  38774. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  38775. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  38776. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  38777. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  38778. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  38779. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
  38780. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  38781. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.award);
  38782. return writer;
  38783. };
  38784. /**
  38785. * Encodes the specified first_recharge_nty message, length delimited. Does not implicitly {@link game.first_recharge_nty.verify|verify} messages.
  38786. * @function encodeDelimited
  38787. * @memberof game.first_recharge_nty
  38788. * @static
  38789. * @param {game.Ifirst_recharge_nty} message first_recharge_nty message or plain object to encode
  38790. * @param {$protobuf.Writer} [writer] Writer to encode to
  38791. * @returns {$protobuf.Writer} Writer
  38792. */
  38793. first_recharge_nty.encodeDelimited = function encodeDelimited(message, writer) {
  38794. return this.encode(message, writer).ldelim();
  38795. };
  38796. /**
  38797. * Decodes a first_recharge_nty message from the specified reader or buffer.
  38798. * @function decode
  38799. * @memberof game.first_recharge_nty
  38800. * @static
  38801. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38802. * @param {number} [length] Message length if known beforehand
  38803. * @returns {game.first_recharge_nty} first_recharge_nty
  38804. * @throws {Error} If the payload is not a reader or valid buffer
  38805. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38806. */
  38807. first_recharge_nty.decode = function decode(reader, length) {
  38808. if (!(reader instanceof $Reader))
  38809. reader = $Reader.create(reader);
  38810. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.first_recharge_nty();
  38811. while (reader.pos < end) {
  38812. let tag = reader.uint32();
  38813. switch (tag >>> 3) {
  38814. case 2:
  38815. message.moduleid = reader.int64();
  38816. break;
  38817. case 3:
  38818. message.state = reader.bool();
  38819. break;
  38820. case 4:
  38821. message.day = reader.int64();
  38822. break;
  38823. case 5:
  38824. message.award = reader.int64();
  38825. break;
  38826. default:
  38827. reader.skipType(tag & 7);
  38828. break;
  38829. }
  38830. }
  38831. return message;
  38832. };
  38833. /**
  38834. * Decodes a first_recharge_nty message from the specified reader or buffer, length delimited.
  38835. * @function decodeDelimited
  38836. * @memberof game.first_recharge_nty
  38837. * @static
  38838. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  38839. * @returns {game.first_recharge_nty} first_recharge_nty
  38840. * @throws {Error} If the payload is not a reader or valid buffer
  38841. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  38842. */
  38843. first_recharge_nty.decodeDelimited = function decodeDelimited(reader) {
  38844. if (!(reader instanceof $Reader))
  38845. reader = new $Reader(reader);
  38846. return this.decode(reader, reader.uint32());
  38847. };
  38848. /**
  38849. * Verifies a first_recharge_nty message.
  38850. * @function verify
  38851. * @memberof game.first_recharge_nty
  38852. * @static
  38853. * @param {Object.<string,*>} message Plain object to verify
  38854. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  38855. */
  38856. first_recharge_nty.verify = function verify(message) {
  38857. if (typeof message !== "object" || message === null)
  38858. return "object expected";
  38859. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38860. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  38861. return "moduleid: integer|Long expected";
  38862. if (message.state != null && message.hasOwnProperty("state"))
  38863. if (typeof message.state !== "boolean")
  38864. return "state: boolean expected";
  38865. if (message.day != null && message.hasOwnProperty("day"))
  38866. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  38867. return "day: integer|Long expected";
  38868. if (message.award != null && message.hasOwnProperty("award"))
  38869. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  38870. return "award: integer|Long expected";
  38871. return null;
  38872. };
  38873. /**
  38874. * Creates a first_recharge_nty message from a plain object. Also converts values to their respective internal types.
  38875. * @function fromObject
  38876. * @memberof game.first_recharge_nty
  38877. * @static
  38878. * @param {Object.<string,*>} object Plain object
  38879. * @returns {game.first_recharge_nty} first_recharge_nty
  38880. */
  38881. first_recharge_nty.fromObject = function fromObject(object) {
  38882. if (object instanceof $root.game.first_recharge_nty)
  38883. return object;
  38884. let message = new $root.game.first_recharge_nty();
  38885. if (object.moduleid != null)
  38886. if ($util.Long)
  38887. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  38888. else if (typeof object.moduleid === "string")
  38889. message.moduleid = parseInt(object.moduleid, 10);
  38890. else if (typeof object.moduleid === "number")
  38891. message.moduleid = object.moduleid;
  38892. else if (typeof object.moduleid === "object")
  38893. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  38894. if (object.state != null)
  38895. message.state = Boolean(object.state);
  38896. if (object.day != null)
  38897. if ($util.Long)
  38898. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  38899. else if (typeof object.day === "string")
  38900. message.day = parseInt(object.day, 10);
  38901. else if (typeof object.day === "number")
  38902. message.day = object.day;
  38903. else if (typeof object.day === "object")
  38904. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  38905. if (object.award != null)
  38906. if ($util.Long)
  38907. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  38908. else if (typeof object.award === "string")
  38909. message.award = parseInt(object.award, 10);
  38910. else if (typeof object.award === "number")
  38911. message.award = object.award;
  38912. else if (typeof object.award === "object")
  38913. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  38914. return message;
  38915. };
  38916. /**
  38917. * Creates a plain object from a first_recharge_nty message. Also converts values to other types if specified.
  38918. * @function toObject
  38919. * @memberof game.first_recharge_nty
  38920. * @static
  38921. * @param {game.first_recharge_nty} message first_recharge_nty
  38922. * @param {$protobuf.IConversionOptions} [options] Conversion options
  38923. * @returns {Object.<string,*>} Plain object
  38924. */
  38925. first_recharge_nty.toObject = function toObject(message, options) {
  38926. if (!options)
  38927. options = {};
  38928. let object = {};
  38929. if (options.defaults) {
  38930. if ($util.Long) {
  38931. let long = new $util.Long(0, 0, false);
  38932. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38933. } else
  38934. object.moduleid = options.longs === String ? "0" : 0;
  38935. object.state = false;
  38936. if ($util.Long) {
  38937. let long = new $util.Long(0, 0, false);
  38938. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38939. } else
  38940. object.day = options.longs === String ? "0" : 0;
  38941. if ($util.Long) {
  38942. let long = new $util.Long(0, 0, false);
  38943. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  38944. } else
  38945. object.award = options.longs === String ? "0" : 0;
  38946. }
  38947. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  38948. if (typeof message.moduleid === "number")
  38949. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  38950. else
  38951. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  38952. if (message.state != null && message.hasOwnProperty("state"))
  38953. object.state = message.state;
  38954. if (message.day != null && message.hasOwnProperty("day"))
  38955. if (typeof message.day === "number")
  38956. object.day = options.longs === String ? String(message.day) : message.day;
  38957. else
  38958. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  38959. if (message.award != null && message.hasOwnProperty("award"))
  38960. if (typeof message.award === "number")
  38961. object.award = options.longs === String ? String(message.award) : message.award;
  38962. else
  38963. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  38964. return object;
  38965. };
  38966. /**
  38967. * Converts this first_recharge_nty to JSON.
  38968. * @function toJSON
  38969. * @memberof game.first_recharge_nty
  38970. * @instance
  38971. * @returns {Object.<string,*>} JSON object
  38972. */
  38973. first_recharge_nty.prototype.toJSON = function toJSON() {
  38974. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  38975. };
  38976. return first_recharge_nty;
  38977. })();
  38978. game.daily_dungeons_data = (function() {
  38979. /**
  38980. * Properties of a daily_dungeons_data.
  38981. * @memberof game
  38982. * @interface Idaily_dungeons_data
  38983. */
  38984. /**
  38985. * Constructs a new daily_dungeons_data.
  38986. * @memberof game
  38987. * @classdesc Represents a daily_dungeons_data.
  38988. * @implements Idaily_dungeons_data
  38989. * @constructor
  38990. * @param {game.Idaily_dungeons_data=} [properties] Properties to set
  38991. */
  38992. function daily_dungeons_data(properties) {
  38993. if (properties)
  38994. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  38995. if (properties[keys[i]] != null)
  38996. this[keys[i]] = properties[keys[i]];
  38997. }
  38998. /**
  38999. * Creates a new daily_dungeons_data instance using the specified properties.
  39000. * @function create
  39001. * @memberof game.daily_dungeons_data
  39002. * @static
  39003. * @param {game.Idaily_dungeons_data=} [properties] Properties to set
  39004. * @returns {game.daily_dungeons_data} daily_dungeons_data instance
  39005. */
  39006. daily_dungeons_data.create = function create(properties) {
  39007. return new daily_dungeons_data(properties);
  39008. };
  39009. /**
  39010. * Encodes the specified daily_dungeons_data message. Does not implicitly {@link game.daily_dungeons_data.verify|verify} messages.
  39011. * @function encode
  39012. * @memberof game.daily_dungeons_data
  39013. * @static
  39014. * @param {game.Idaily_dungeons_data} message daily_dungeons_data message or plain object to encode
  39015. * @param {$protobuf.Writer} [writer] Writer to encode to
  39016. * @returns {$protobuf.Writer} Writer
  39017. */
  39018. daily_dungeons_data.encode = function encode(message, writer) {
  39019. if (!writer)
  39020. writer = $Writer.create();
  39021. return writer;
  39022. };
  39023. /**
  39024. * Encodes the specified daily_dungeons_data message, length delimited. Does not implicitly {@link game.daily_dungeons_data.verify|verify} messages.
  39025. * @function encodeDelimited
  39026. * @memberof game.daily_dungeons_data
  39027. * @static
  39028. * @param {game.Idaily_dungeons_data} message daily_dungeons_data message or plain object to encode
  39029. * @param {$protobuf.Writer} [writer] Writer to encode to
  39030. * @returns {$protobuf.Writer} Writer
  39031. */
  39032. daily_dungeons_data.encodeDelimited = function encodeDelimited(message, writer) {
  39033. return this.encode(message, writer).ldelim();
  39034. };
  39035. /**
  39036. * Decodes a daily_dungeons_data message from the specified reader or buffer.
  39037. * @function decode
  39038. * @memberof game.daily_dungeons_data
  39039. * @static
  39040. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39041. * @param {number} [length] Message length if known beforehand
  39042. * @returns {game.daily_dungeons_data} daily_dungeons_data
  39043. * @throws {Error} If the payload is not a reader or valid buffer
  39044. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39045. */
  39046. daily_dungeons_data.decode = function decode(reader, length) {
  39047. if (!(reader instanceof $Reader))
  39048. reader = $Reader.create(reader);
  39049. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_data();
  39050. while (reader.pos < end) {
  39051. let tag = reader.uint32();
  39052. switch (tag >>> 3) {
  39053. default:
  39054. reader.skipType(tag & 7);
  39055. break;
  39056. }
  39057. }
  39058. return message;
  39059. };
  39060. /**
  39061. * Decodes a daily_dungeons_data message from the specified reader or buffer, length delimited.
  39062. * @function decodeDelimited
  39063. * @memberof game.daily_dungeons_data
  39064. * @static
  39065. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39066. * @returns {game.daily_dungeons_data} daily_dungeons_data
  39067. * @throws {Error} If the payload is not a reader or valid buffer
  39068. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39069. */
  39070. daily_dungeons_data.decodeDelimited = function decodeDelimited(reader) {
  39071. if (!(reader instanceof $Reader))
  39072. reader = new $Reader(reader);
  39073. return this.decode(reader, reader.uint32());
  39074. };
  39075. /**
  39076. * Verifies a daily_dungeons_data message.
  39077. * @function verify
  39078. * @memberof game.daily_dungeons_data
  39079. * @static
  39080. * @param {Object.<string,*>} message Plain object to verify
  39081. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39082. */
  39083. daily_dungeons_data.verify = function verify(message) {
  39084. if (typeof message !== "object" || message === null)
  39085. return "object expected";
  39086. return null;
  39087. };
  39088. /**
  39089. * Creates a daily_dungeons_data message from a plain object. Also converts values to their respective internal types.
  39090. * @function fromObject
  39091. * @memberof game.daily_dungeons_data
  39092. * @static
  39093. * @param {Object.<string,*>} object Plain object
  39094. * @returns {game.daily_dungeons_data} daily_dungeons_data
  39095. */
  39096. daily_dungeons_data.fromObject = function fromObject(object) {
  39097. if (object instanceof $root.game.daily_dungeons_data)
  39098. return object;
  39099. return new $root.game.daily_dungeons_data();
  39100. };
  39101. /**
  39102. * Creates a plain object from a daily_dungeons_data message. Also converts values to other types if specified.
  39103. * @function toObject
  39104. * @memberof game.daily_dungeons_data
  39105. * @static
  39106. * @param {game.daily_dungeons_data} message daily_dungeons_data
  39107. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39108. * @returns {Object.<string,*>} Plain object
  39109. */
  39110. daily_dungeons_data.toObject = function toObject() {
  39111. return {};
  39112. };
  39113. /**
  39114. * Converts this daily_dungeons_data to JSON.
  39115. * @function toJSON
  39116. * @memberof game.daily_dungeons_data
  39117. * @instance
  39118. * @returns {Object.<string,*>} JSON object
  39119. */
  39120. daily_dungeons_data.prototype.toJSON = function toJSON() {
  39121. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39122. };
  39123. return daily_dungeons_data;
  39124. })();
  39125. game.daily_dungeons_data_rsp = (function() {
  39126. /**
  39127. * Properties of a daily_dungeons_data_rsp.
  39128. * @memberof game
  39129. * @interface Idaily_dungeons_data_rsp
  39130. * @property {number|Long|null} [errno] daily_dungeons_data_rsp errno
  39131. * @property {Array.<game.Idaily_dungeons_info>|null} [list] daily_dungeons_data_rsp list
  39132. */
  39133. /**
  39134. * Constructs a new daily_dungeons_data_rsp.
  39135. * @memberof game
  39136. * @classdesc Represents a daily_dungeons_data_rsp.
  39137. * @implements Idaily_dungeons_data_rsp
  39138. * @constructor
  39139. * @param {game.Idaily_dungeons_data_rsp=} [properties] Properties to set
  39140. */
  39141. function daily_dungeons_data_rsp(properties) {
  39142. this.list = [];
  39143. if (properties)
  39144. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39145. if (properties[keys[i]] != null)
  39146. this[keys[i]] = properties[keys[i]];
  39147. }
  39148. /**
  39149. * daily_dungeons_data_rsp errno.
  39150. * @member {number|Long} errno
  39151. * @memberof game.daily_dungeons_data_rsp
  39152. * @instance
  39153. */
  39154. daily_dungeons_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39155. /**
  39156. * daily_dungeons_data_rsp list.
  39157. * @member {Array.<game.Idaily_dungeons_info>} list
  39158. * @memberof game.daily_dungeons_data_rsp
  39159. * @instance
  39160. */
  39161. daily_dungeons_data_rsp.prototype.list = $util.emptyArray;
  39162. /**
  39163. * Creates a new daily_dungeons_data_rsp instance using the specified properties.
  39164. * @function create
  39165. * @memberof game.daily_dungeons_data_rsp
  39166. * @static
  39167. * @param {game.Idaily_dungeons_data_rsp=} [properties] Properties to set
  39168. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp instance
  39169. */
  39170. daily_dungeons_data_rsp.create = function create(properties) {
  39171. return new daily_dungeons_data_rsp(properties);
  39172. };
  39173. /**
  39174. * Encodes the specified daily_dungeons_data_rsp message. Does not implicitly {@link game.daily_dungeons_data_rsp.verify|verify} messages.
  39175. * @function encode
  39176. * @memberof game.daily_dungeons_data_rsp
  39177. * @static
  39178. * @param {game.Idaily_dungeons_data_rsp} message daily_dungeons_data_rsp message or plain object to encode
  39179. * @param {$protobuf.Writer} [writer] Writer to encode to
  39180. * @returns {$protobuf.Writer} Writer
  39181. */
  39182. daily_dungeons_data_rsp.encode = function encode(message, writer) {
  39183. if (!writer)
  39184. writer = $Writer.create();
  39185. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  39186. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  39187. if (message.list != null && message.list.length)
  39188. for (let i = 0; i < message.list.length; ++i)
  39189. $root.game.daily_dungeons_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  39190. return writer;
  39191. };
  39192. /**
  39193. * Encodes the specified daily_dungeons_data_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_data_rsp.verify|verify} messages.
  39194. * @function encodeDelimited
  39195. * @memberof game.daily_dungeons_data_rsp
  39196. * @static
  39197. * @param {game.Idaily_dungeons_data_rsp} message daily_dungeons_data_rsp message or plain object to encode
  39198. * @param {$protobuf.Writer} [writer] Writer to encode to
  39199. * @returns {$protobuf.Writer} Writer
  39200. */
  39201. daily_dungeons_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  39202. return this.encode(message, writer).ldelim();
  39203. };
  39204. /**
  39205. * Decodes a daily_dungeons_data_rsp message from the specified reader or buffer.
  39206. * @function decode
  39207. * @memberof game.daily_dungeons_data_rsp
  39208. * @static
  39209. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39210. * @param {number} [length] Message length if known beforehand
  39211. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
  39212. * @throws {Error} If the payload is not a reader or valid buffer
  39213. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39214. */
  39215. daily_dungeons_data_rsp.decode = function decode(reader, length) {
  39216. if (!(reader instanceof $Reader))
  39217. reader = $Reader.create(reader);
  39218. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_data_rsp();
  39219. while (reader.pos < end) {
  39220. let tag = reader.uint32();
  39221. switch (tag >>> 3) {
  39222. case 1:
  39223. message.errno = reader.int64();
  39224. break;
  39225. case 2:
  39226. if (!(message.list && message.list.length))
  39227. message.list = [];
  39228. message.list.push($root.game.daily_dungeons_info.decode(reader, reader.uint32()));
  39229. break;
  39230. default:
  39231. reader.skipType(tag & 7);
  39232. break;
  39233. }
  39234. }
  39235. return message;
  39236. };
  39237. /**
  39238. * Decodes a daily_dungeons_data_rsp message from the specified reader or buffer, length delimited.
  39239. * @function decodeDelimited
  39240. * @memberof game.daily_dungeons_data_rsp
  39241. * @static
  39242. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39243. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
  39244. * @throws {Error} If the payload is not a reader or valid buffer
  39245. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39246. */
  39247. daily_dungeons_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  39248. if (!(reader instanceof $Reader))
  39249. reader = new $Reader(reader);
  39250. return this.decode(reader, reader.uint32());
  39251. };
  39252. /**
  39253. * Verifies a daily_dungeons_data_rsp message.
  39254. * @function verify
  39255. * @memberof game.daily_dungeons_data_rsp
  39256. * @static
  39257. * @param {Object.<string,*>} message Plain object to verify
  39258. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39259. */
  39260. daily_dungeons_data_rsp.verify = function verify(message) {
  39261. if (typeof message !== "object" || message === null)
  39262. return "object expected";
  39263. if (message.errno != null && message.hasOwnProperty("errno"))
  39264. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  39265. return "errno: integer|Long expected";
  39266. if (message.list != null && message.hasOwnProperty("list")) {
  39267. if (!Array.isArray(message.list))
  39268. return "list: array expected";
  39269. for (let i = 0; i < message.list.length; ++i) {
  39270. let error = $root.game.daily_dungeons_info.verify(message.list[i]);
  39271. if (error)
  39272. return "list." + error;
  39273. }
  39274. }
  39275. return null;
  39276. };
  39277. /**
  39278. * Creates a daily_dungeons_data_rsp message from a plain object. Also converts values to their respective internal types.
  39279. * @function fromObject
  39280. * @memberof game.daily_dungeons_data_rsp
  39281. * @static
  39282. * @param {Object.<string,*>} object Plain object
  39283. * @returns {game.daily_dungeons_data_rsp} daily_dungeons_data_rsp
  39284. */
  39285. daily_dungeons_data_rsp.fromObject = function fromObject(object) {
  39286. if (object instanceof $root.game.daily_dungeons_data_rsp)
  39287. return object;
  39288. let message = new $root.game.daily_dungeons_data_rsp();
  39289. if (object.errno != null)
  39290. if ($util.Long)
  39291. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  39292. else if (typeof object.errno === "string")
  39293. message.errno = parseInt(object.errno, 10);
  39294. else if (typeof object.errno === "number")
  39295. message.errno = object.errno;
  39296. else if (typeof object.errno === "object")
  39297. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  39298. if (object.list) {
  39299. if (!Array.isArray(object.list))
  39300. throw TypeError(".game.daily_dungeons_data_rsp.list: array expected");
  39301. message.list = [];
  39302. for (let i = 0; i < object.list.length; ++i) {
  39303. if (typeof object.list[i] !== "object")
  39304. throw TypeError(".game.daily_dungeons_data_rsp.list: object expected");
  39305. message.list[i] = $root.game.daily_dungeons_info.fromObject(object.list[i]);
  39306. }
  39307. }
  39308. return message;
  39309. };
  39310. /**
  39311. * Creates a plain object from a daily_dungeons_data_rsp message. Also converts values to other types if specified.
  39312. * @function toObject
  39313. * @memberof game.daily_dungeons_data_rsp
  39314. * @static
  39315. * @param {game.daily_dungeons_data_rsp} message daily_dungeons_data_rsp
  39316. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39317. * @returns {Object.<string,*>} Plain object
  39318. */
  39319. daily_dungeons_data_rsp.toObject = function toObject(message, options) {
  39320. if (!options)
  39321. options = {};
  39322. let object = {};
  39323. if (options.arrays || options.defaults)
  39324. object.list = [];
  39325. if (options.defaults)
  39326. if ($util.Long) {
  39327. let long = new $util.Long(0, 0, false);
  39328. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39329. } else
  39330. object.errno = options.longs === String ? "0" : 0;
  39331. if (message.errno != null && message.hasOwnProperty("errno"))
  39332. if (typeof message.errno === "number")
  39333. object.errno = options.longs === String ? String(message.errno) : message.errno;
  39334. else
  39335. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  39336. if (message.list && message.list.length) {
  39337. object.list = [];
  39338. for (let j = 0; j < message.list.length; ++j)
  39339. object.list[j] = $root.game.daily_dungeons_info.toObject(message.list[j], options);
  39340. }
  39341. return object;
  39342. };
  39343. /**
  39344. * Converts this daily_dungeons_data_rsp to JSON.
  39345. * @function toJSON
  39346. * @memberof game.daily_dungeons_data_rsp
  39347. * @instance
  39348. * @returns {Object.<string,*>} JSON object
  39349. */
  39350. daily_dungeons_data_rsp.prototype.toJSON = function toJSON() {
  39351. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39352. };
  39353. return daily_dungeons_data_rsp;
  39354. })();
  39355. game.daily_dungeons_start = (function() {
  39356. /**
  39357. * Properties of a daily_dungeons_start.
  39358. * @memberof game
  39359. * @interface Idaily_dungeons_start
  39360. * @property {number|Long|null} [type] daily_dungeons_start type
  39361. * @property {number|Long|null} [diff] daily_dungeons_start diff
  39362. */
  39363. /**
  39364. * Constructs a new daily_dungeons_start.
  39365. * @memberof game
  39366. * @classdesc Represents a daily_dungeons_start.
  39367. * @implements Idaily_dungeons_start
  39368. * @constructor
  39369. * @param {game.Idaily_dungeons_start=} [properties] Properties to set
  39370. */
  39371. function daily_dungeons_start(properties) {
  39372. if (properties)
  39373. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39374. if (properties[keys[i]] != null)
  39375. this[keys[i]] = properties[keys[i]];
  39376. }
  39377. /**
  39378. * daily_dungeons_start type.
  39379. * @member {number|Long} type
  39380. * @memberof game.daily_dungeons_start
  39381. * @instance
  39382. */
  39383. daily_dungeons_start.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39384. /**
  39385. * daily_dungeons_start diff.
  39386. * @member {number|Long} diff
  39387. * @memberof game.daily_dungeons_start
  39388. * @instance
  39389. */
  39390. daily_dungeons_start.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39391. /**
  39392. * Creates a new daily_dungeons_start instance using the specified properties.
  39393. * @function create
  39394. * @memberof game.daily_dungeons_start
  39395. * @static
  39396. * @param {game.Idaily_dungeons_start=} [properties] Properties to set
  39397. * @returns {game.daily_dungeons_start} daily_dungeons_start instance
  39398. */
  39399. daily_dungeons_start.create = function create(properties) {
  39400. return new daily_dungeons_start(properties);
  39401. };
  39402. /**
  39403. * Encodes the specified daily_dungeons_start message. Does not implicitly {@link game.daily_dungeons_start.verify|verify} messages.
  39404. * @function encode
  39405. * @memberof game.daily_dungeons_start
  39406. * @static
  39407. * @param {game.Idaily_dungeons_start} message daily_dungeons_start message or plain object to encode
  39408. * @param {$protobuf.Writer} [writer] Writer to encode to
  39409. * @returns {$protobuf.Writer} Writer
  39410. */
  39411. daily_dungeons_start.encode = function encode(message, writer) {
  39412. if (!writer)
  39413. writer = $Writer.create();
  39414. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  39415. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  39416. if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
  39417. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
  39418. return writer;
  39419. };
  39420. /**
  39421. * Encodes the specified daily_dungeons_start message, length delimited. Does not implicitly {@link game.daily_dungeons_start.verify|verify} messages.
  39422. * @function encodeDelimited
  39423. * @memberof game.daily_dungeons_start
  39424. * @static
  39425. * @param {game.Idaily_dungeons_start} message daily_dungeons_start message or plain object to encode
  39426. * @param {$protobuf.Writer} [writer] Writer to encode to
  39427. * @returns {$protobuf.Writer} Writer
  39428. */
  39429. daily_dungeons_start.encodeDelimited = function encodeDelimited(message, writer) {
  39430. return this.encode(message, writer).ldelim();
  39431. };
  39432. /**
  39433. * Decodes a daily_dungeons_start message from the specified reader or buffer.
  39434. * @function decode
  39435. * @memberof game.daily_dungeons_start
  39436. * @static
  39437. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39438. * @param {number} [length] Message length if known beforehand
  39439. * @returns {game.daily_dungeons_start} daily_dungeons_start
  39440. * @throws {Error} If the payload is not a reader or valid buffer
  39441. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39442. */
  39443. daily_dungeons_start.decode = function decode(reader, length) {
  39444. if (!(reader instanceof $Reader))
  39445. reader = $Reader.create(reader);
  39446. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_start();
  39447. while (reader.pos < end) {
  39448. let tag = reader.uint32();
  39449. switch (tag >>> 3) {
  39450. case 1:
  39451. message.type = reader.int64();
  39452. break;
  39453. case 2:
  39454. message.diff = reader.int64();
  39455. break;
  39456. default:
  39457. reader.skipType(tag & 7);
  39458. break;
  39459. }
  39460. }
  39461. return message;
  39462. };
  39463. /**
  39464. * Decodes a daily_dungeons_start message from the specified reader or buffer, length delimited.
  39465. * @function decodeDelimited
  39466. * @memberof game.daily_dungeons_start
  39467. * @static
  39468. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39469. * @returns {game.daily_dungeons_start} daily_dungeons_start
  39470. * @throws {Error} If the payload is not a reader or valid buffer
  39471. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39472. */
  39473. daily_dungeons_start.decodeDelimited = function decodeDelimited(reader) {
  39474. if (!(reader instanceof $Reader))
  39475. reader = new $Reader(reader);
  39476. return this.decode(reader, reader.uint32());
  39477. };
  39478. /**
  39479. * Verifies a daily_dungeons_start message.
  39480. * @function verify
  39481. * @memberof game.daily_dungeons_start
  39482. * @static
  39483. * @param {Object.<string,*>} message Plain object to verify
  39484. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39485. */
  39486. daily_dungeons_start.verify = function verify(message) {
  39487. if (typeof message !== "object" || message === null)
  39488. return "object expected";
  39489. if (message.type != null && message.hasOwnProperty("type"))
  39490. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  39491. return "type: integer|Long expected";
  39492. if (message.diff != null && message.hasOwnProperty("diff"))
  39493. if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
  39494. return "diff: integer|Long expected";
  39495. return null;
  39496. };
  39497. /**
  39498. * Creates a daily_dungeons_start message from a plain object. Also converts values to their respective internal types.
  39499. * @function fromObject
  39500. * @memberof game.daily_dungeons_start
  39501. * @static
  39502. * @param {Object.<string,*>} object Plain object
  39503. * @returns {game.daily_dungeons_start} daily_dungeons_start
  39504. */
  39505. daily_dungeons_start.fromObject = function fromObject(object) {
  39506. if (object instanceof $root.game.daily_dungeons_start)
  39507. return object;
  39508. let message = new $root.game.daily_dungeons_start();
  39509. if (object.type != null)
  39510. if ($util.Long)
  39511. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  39512. else if (typeof object.type === "string")
  39513. message.type = parseInt(object.type, 10);
  39514. else if (typeof object.type === "number")
  39515. message.type = object.type;
  39516. else if (typeof object.type === "object")
  39517. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  39518. if (object.diff != null)
  39519. if ($util.Long)
  39520. (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
  39521. else if (typeof object.diff === "string")
  39522. message.diff = parseInt(object.diff, 10);
  39523. else if (typeof object.diff === "number")
  39524. message.diff = object.diff;
  39525. else if (typeof object.diff === "object")
  39526. message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
  39527. return message;
  39528. };
  39529. /**
  39530. * Creates a plain object from a daily_dungeons_start message. Also converts values to other types if specified.
  39531. * @function toObject
  39532. * @memberof game.daily_dungeons_start
  39533. * @static
  39534. * @param {game.daily_dungeons_start} message daily_dungeons_start
  39535. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39536. * @returns {Object.<string,*>} Plain object
  39537. */
  39538. daily_dungeons_start.toObject = function toObject(message, options) {
  39539. if (!options)
  39540. options = {};
  39541. let object = {};
  39542. if (options.defaults) {
  39543. if ($util.Long) {
  39544. let long = new $util.Long(0, 0, false);
  39545. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39546. } else
  39547. object.type = options.longs === String ? "0" : 0;
  39548. if ($util.Long) {
  39549. let long = new $util.Long(0, 0, false);
  39550. object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39551. } else
  39552. object.diff = options.longs === String ? "0" : 0;
  39553. }
  39554. if (message.type != null && message.hasOwnProperty("type"))
  39555. if (typeof message.type === "number")
  39556. object.type = options.longs === String ? String(message.type) : message.type;
  39557. else
  39558. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  39559. if (message.diff != null && message.hasOwnProperty("diff"))
  39560. if (typeof message.diff === "number")
  39561. object.diff = options.longs === String ? String(message.diff) : message.diff;
  39562. else
  39563. object.diff = options.longs === String ? $util.Long.prototype.toString.call(message.diff) : options.longs === Number ? new $util.LongBits(message.diff.low >>> 0, message.diff.high >>> 0).toNumber() : message.diff;
  39564. return object;
  39565. };
  39566. /**
  39567. * Converts this daily_dungeons_start to JSON.
  39568. * @function toJSON
  39569. * @memberof game.daily_dungeons_start
  39570. * @instance
  39571. * @returns {Object.<string,*>} JSON object
  39572. */
  39573. daily_dungeons_start.prototype.toJSON = function toJSON() {
  39574. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39575. };
  39576. return daily_dungeons_start;
  39577. })();
  39578. game.daily_dungeons_start_rsp = (function() {
  39579. /**
  39580. * Properties of a daily_dungeons_start_rsp.
  39581. * @memberof game
  39582. * @interface Idaily_dungeons_start_rsp
  39583. * @property {number|Long|null} [errno] daily_dungeons_start_rsp errno
  39584. * @property {Array.<game.Iid_num>|null} [awardList] daily_dungeons_start_rsp awardList
  39585. */
  39586. /**
  39587. * Constructs a new daily_dungeons_start_rsp.
  39588. * @memberof game
  39589. * @classdesc Represents a daily_dungeons_start_rsp.
  39590. * @implements Idaily_dungeons_start_rsp
  39591. * @constructor
  39592. * @param {game.Idaily_dungeons_start_rsp=} [properties] Properties to set
  39593. */
  39594. function daily_dungeons_start_rsp(properties) {
  39595. this.awardList = [];
  39596. if (properties)
  39597. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39598. if (properties[keys[i]] != null)
  39599. this[keys[i]] = properties[keys[i]];
  39600. }
  39601. /**
  39602. * daily_dungeons_start_rsp errno.
  39603. * @member {number|Long} errno
  39604. * @memberof game.daily_dungeons_start_rsp
  39605. * @instance
  39606. */
  39607. daily_dungeons_start_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39608. /**
  39609. * daily_dungeons_start_rsp awardList.
  39610. * @member {Array.<game.Iid_num>} awardList
  39611. * @memberof game.daily_dungeons_start_rsp
  39612. * @instance
  39613. */
  39614. daily_dungeons_start_rsp.prototype.awardList = $util.emptyArray;
  39615. /**
  39616. * Creates a new daily_dungeons_start_rsp instance using the specified properties.
  39617. * @function create
  39618. * @memberof game.daily_dungeons_start_rsp
  39619. * @static
  39620. * @param {game.Idaily_dungeons_start_rsp=} [properties] Properties to set
  39621. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp instance
  39622. */
  39623. daily_dungeons_start_rsp.create = function create(properties) {
  39624. return new daily_dungeons_start_rsp(properties);
  39625. };
  39626. /**
  39627. * Encodes the specified daily_dungeons_start_rsp message. Does not implicitly {@link game.daily_dungeons_start_rsp.verify|verify} messages.
  39628. * @function encode
  39629. * @memberof game.daily_dungeons_start_rsp
  39630. * @static
  39631. * @param {game.Idaily_dungeons_start_rsp} message daily_dungeons_start_rsp message or plain object to encode
  39632. * @param {$protobuf.Writer} [writer] Writer to encode to
  39633. * @returns {$protobuf.Writer} Writer
  39634. */
  39635. daily_dungeons_start_rsp.encode = function encode(message, writer) {
  39636. if (!writer)
  39637. writer = $Writer.create();
  39638. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  39639. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  39640. if (message.awardList != null && message.awardList.length)
  39641. for (let i = 0; i < message.awardList.length; ++i)
  39642. $root.game.id_num.encode(message.awardList[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  39643. return writer;
  39644. };
  39645. /**
  39646. * Encodes the specified daily_dungeons_start_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_start_rsp.verify|verify} messages.
  39647. * @function encodeDelimited
  39648. * @memberof game.daily_dungeons_start_rsp
  39649. * @static
  39650. * @param {game.Idaily_dungeons_start_rsp} message daily_dungeons_start_rsp message or plain object to encode
  39651. * @param {$protobuf.Writer} [writer] Writer to encode to
  39652. * @returns {$protobuf.Writer} Writer
  39653. */
  39654. daily_dungeons_start_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  39655. return this.encode(message, writer).ldelim();
  39656. };
  39657. /**
  39658. * Decodes a daily_dungeons_start_rsp message from the specified reader or buffer.
  39659. * @function decode
  39660. * @memberof game.daily_dungeons_start_rsp
  39661. * @static
  39662. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39663. * @param {number} [length] Message length if known beforehand
  39664. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
  39665. * @throws {Error} If the payload is not a reader or valid buffer
  39666. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39667. */
  39668. daily_dungeons_start_rsp.decode = function decode(reader, length) {
  39669. if (!(reader instanceof $Reader))
  39670. reader = $Reader.create(reader);
  39671. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_start_rsp();
  39672. while (reader.pos < end) {
  39673. let tag = reader.uint32();
  39674. switch (tag >>> 3) {
  39675. case 1:
  39676. message.errno = reader.int64();
  39677. break;
  39678. case 2:
  39679. if (!(message.awardList && message.awardList.length))
  39680. message.awardList = [];
  39681. message.awardList.push($root.game.id_num.decode(reader, reader.uint32()));
  39682. break;
  39683. default:
  39684. reader.skipType(tag & 7);
  39685. break;
  39686. }
  39687. }
  39688. return message;
  39689. };
  39690. /**
  39691. * Decodes a daily_dungeons_start_rsp message from the specified reader or buffer, length delimited.
  39692. * @function decodeDelimited
  39693. * @memberof game.daily_dungeons_start_rsp
  39694. * @static
  39695. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39696. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
  39697. * @throws {Error} If the payload is not a reader or valid buffer
  39698. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39699. */
  39700. daily_dungeons_start_rsp.decodeDelimited = function decodeDelimited(reader) {
  39701. if (!(reader instanceof $Reader))
  39702. reader = new $Reader(reader);
  39703. return this.decode(reader, reader.uint32());
  39704. };
  39705. /**
  39706. * Verifies a daily_dungeons_start_rsp message.
  39707. * @function verify
  39708. * @memberof game.daily_dungeons_start_rsp
  39709. * @static
  39710. * @param {Object.<string,*>} message Plain object to verify
  39711. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39712. */
  39713. daily_dungeons_start_rsp.verify = function verify(message) {
  39714. if (typeof message !== "object" || message === null)
  39715. return "object expected";
  39716. if (message.errno != null && message.hasOwnProperty("errno"))
  39717. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  39718. return "errno: integer|Long expected";
  39719. if (message.awardList != null && message.hasOwnProperty("awardList")) {
  39720. if (!Array.isArray(message.awardList))
  39721. return "awardList: array expected";
  39722. for (let i = 0; i < message.awardList.length; ++i) {
  39723. let error = $root.game.id_num.verify(message.awardList[i]);
  39724. if (error)
  39725. return "awardList." + error;
  39726. }
  39727. }
  39728. return null;
  39729. };
  39730. /**
  39731. * Creates a daily_dungeons_start_rsp message from a plain object. Also converts values to their respective internal types.
  39732. * @function fromObject
  39733. * @memberof game.daily_dungeons_start_rsp
  39734. * @static
  39735. * @param {Object.<string,*>} object Plain object
  39736. * @returns {game.daily_dungeons_start_rsp} daily_dungeons_start_rsp
  39737. */
  39738. daily_dungeons_start_rsp.fromObject = function fromObject(object) {
  39739. if (object instanceof $root.game.daily_dungeons_start_rsp)
  39740. return object;
  39741. let message = new $root.game.daily_dungeons_start_rsp();
  39742. if (object.errno != null)
  39743. if ($util.Long)
  39744. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  39745. else if (typeof object.errno === "string")
  39746. message.errno = parseInt(object.errno, 10);
  39747. else if (typeof object.errno === "number")
  39748. message.errno = object.errno;
  39749. else if (typeof object.errno === "object")
  39750. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  39751. if (object.awardList) {
  39752. if (!Array.isArray(object.awardList))
  39753. throw TypeError(".game.daily_dungeons_start_rsp.awardList: array expected");
  39754. message.awardList = [];
  39755. for (let i = 0; i < object.awardList.length; ++i) {
  39756. if (typeof object.awardList[i] !== "object")
  39757. throw TypeError(".game.daily_dungeons_start_rsp.awardList: object expected");
  39758. message.awardList[i] = $root.game.id_num.fromObject(object.awardList[i]);
  39759. }
  39760. }
  39761. return message;
  39762. };
  39763. /**
  39764. * Creates a plain object from a daily_dungeons_start_rsp message. Also converts values to other types if specified.
  39765. * @function toObject
  39766. * @memberof game.daily_dungeons_start_rsp
  39767. * @static
  39768. * @param {game.daily_dungeons_start_rsp} message daily_dungeons_start_rsp
  39769. * @param {$protobuf.IConversionOptions} [options] Conversion options
  39770. * @returns {Object.<string,*>} Plain object
  39771. */
  39772. daily_dungeons_start_rsp.toObject = function toObject(message, options) {
  39773. if (!options)
  39774. options = {};
  39775. let object = {};
  39776. if (options.arrays || options.defaults)
  39777. object.awardList = [];
  39778. if (options.defaults)
  39779. if ($util.Long) {
  39780. let long = new $util.Long(0, 0, false);
  39781. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  39782. } else
  39783. object.errno = options.longs === String ? "0" : 0;
  39784. if (message.errno != null && message.hasOwnProperty("errno"))
  39785. if (typeof message.errno === "number")
  39786. object.errno = options.longs === String ? String(message.errno) : message.errno;
  39787. else
  39788. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  39789. if (message.awardList && message.awardList.length) {
  39790. object.awardList = [];
  39791. for (let j = 0; j < message.awardList.length; ++j)
  39792. object.awardList[j] = $root.game.id_num.toObject(message.awardList[j], options);
  39793. }
  39794. return object;
  39795. };
  39796. /**
  39797. * Converts this daily_dungeons_start_rsp to JSON.
  39798. * @function toJSON
  39799. * @memberof game.daily_dungeons_start_rsp
  39800. * @instance
  39801. * @returns {Object.<string,*>} JSON object
  39802. */
  39803. daily_dungeons_start_rsp.prototype.toJSON = function toJSON() {
  39804. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  39805. };
  39806. return daily_dungeons_start_rsp;
  39807. })();
  39808. game.daily_dungeons_end = (function() {
  39809. /**
  39810. * Properties of a daily_dungeons_end.
  39811. * @memberof game
  39812. * @interface Idaily_dungeons_end
  39813. * @property {boolean|null} [win] daily_dungeons_end win
  39814. * @property {number|Long|null} [monsterNum] daily_dungeons_end monsterNum
  39815. * @property {number|Long|null} [bossNum] daily_dungeons_end bossNum
  39816. * @property {number|Long|null} [eliteNum] daily_dungeons_end eliteNum
  39817. */
  39818. /**
  39819. * Constructs a new daily_dungeons_end.
  39820. * @memberof game
  39821. * @classdesc Represents a daily_dungeons_end.
  39822. * @implements Idaily_dungeons_end
  39823. * @constructor
  39824. * @param {game.Idaily_dungeons_end=} [properties] Properties to set
  39825. */
  39826. function daily_dungeons_end(properties) {
  39827. if (properties)
  39828. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  39829. if (properties[keys[i]] != null)
  39830. this[keys[i]] = properties[keys[i]];
  39831. }
  39832. /**
  39833. * daily_dungeons_end win.
  39834. * @member {boolean} win
  39835. * @memberof game.daily_dungeons_end
  39836. * @instance
  39837. */
  39838. daily_dungeons_end.prototype.win = false;
  39839. /**
  39840. * daily_dungeons_end monsterNum.
  39841. * @member {number|Long} monsterNum
  39842. * @memberof game.daily_dungeons_end
  39843. * @instance
  39844. */
  39845. daily_dungeons_end.prototype.monsterNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39846. /**
  39847. * daily_dungeons_end bossNum.
  39848. * @member {number|Long} bossNum
  39849. * @memberof game.daily_dungeons_end
  39850. * @instance
  39851. */
  39852. daily_dungeons_end.prototype.bossNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39853. /**
  39854. * daily_dungeons_end eliteNum.
  39855. * @member {number|Long} eliteNum
  39856. * @memberof game.daily_dungeons_end
  39857. * @instance
  39858. */
  39859. daily_dungeons_end.prototype.eliteNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  39860. /**
  39861. * Creates a new daily_dungeons_end instance using the specified properties.
  39862. * @function create
  39863. * @memberof game.daily_dungeons_end
  39864. * @static
  39865. * @param {game.Idaily_dungeons_end=} [properties] Properties to set
  39866. * @returns {game.daily_dungeons_end} daily_dungeons_end instance
  39867. */
  39868. daily_dungeons_end.create = function create(properties) {
  39869. return new daily_dungeons_end(properties);
  39870. };
  39871. /**
  39872. * Encodes the specified daily_dungeons_end message. Does not implicitly {@link game.daily_dungeons_end.verify|verify} messages.
  39873. * @function encode
  39874. * @memberof game.daily_dungeons_end
  39875. * @static
  39876. * @param {game.Idaily_dungeons_end} message daily_dungeons_end message or plain object to encode
  39877. * @param {$protobuf.Writer} [writer] Writer to encode to
  39878. * @returns {$protobuf.Writer} Writer
  39879. */
  39880. daily_dungeons_end.encode = function encode(message, writer) {
  39881. if (!writer)
  39882. writer = $Writer.create();
  39883. if (message.win != null && Object.hasOwnProperty.call(message, "win"))
  39884. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.win);
  39885. if (message.monsterNum != null && Object.hasOwnProperty.call(message, "monsterNum"))
  39886. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.monsterNum);
  39887. if (message.bossNum != null && Object.hasOwnProperty.call(message, "bossNum"))
  39888. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bossNum);
  39889. if (message.eliteNum != null && Object.hasOwnProperty.call(message, "eliteNum"))
  39890. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.eliteNum);
  39891. return writer;
  39892. };
  39893. /**
  39894. * Encodes the specified daily_dungeons_end message, length delimited. Does not implicitly {@link game.daily_dungeons_end.verify|verify} messages.
  39895. * @function encodeDelimited
  39896. * @memberof game.daily_dungeons_end
  39897. * @static
  39898. * @param {game.Idaily_dungeons_end} message daily_dungeons_end message or plain object to encode
  39899. * @param {$protobuf.Writer} [writer] Writer to encode to
  39900. * @returns {$protobuf.Writer} Writer
  39901. */
  39902. daily_dungeons_end.encodeDelimited = function encodeDelimited(message, writer) {
  39903. return this.encode(message, writer).ldelim();
  39904. };
  39905. /**
  39906. * Decodes a daily_dungeons_end message from the specified reader or buffer.
  39907. * @function decode
  39908. * @memberof game.daily_dungeons_end
  39909. * @static
  39910. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39911. * @param {number} [length] Message length if known beforehand
  39912. * @returns {game.daily_dungeons_end} daily_dungeons_end
  39913. * @throws {Error} If the payload is not a reader or valid buffer
  39914. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39915. */
  39916. daily_dungeons_end.decode = function decode(reader, length) {
  39917. if (!(reader instanceof $Reader))
  39918. reader = $Reader.create(reader);
  39919. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_end();
  39920. while (reader.pos < end) {
  39921. let tag = reader.uint32();
  39922. switch (tag >>> 3) {
  39923. case 1:
  39924. message.win = reader.bool();
  39925. break;
  39926. case 2:
  39927. message.monsterNum = reader.int64();
  39928. break;
  39929. case 3:
  39930. message.bossNum = reader.int64();
  39931. break;
  39932. case 4:
  39933. message.eliteNum = reader.int64();
  39934. break;
  39935. default:
  39936. reader.skipType(tag & 7);
  39937. break;
  39938. }
  39939. }
  39940. return message;
  39941. };
  39942. /**
  39943. * Decodes a daily_dungeons_end message from the specified reader or buffer, length delimited.
  39944. * @function decodeDelimited
  39945. * @memberof game.daily_dungeons_end
  39946. * @static
  39947. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  39948. * @returns {game.daily_dungeons_end} daily_dungeons_end
  39949. * @throws {Error} If the payload is not a reader or valid buffer
  39950. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  39951. */
  39952. daily_dungeons_end.decodeDelimited = function decodeDelimited(reader) {
  39953. if (!(reader instanceof $Reader))
  39954. reader = new $Reader(reader);
  39955. return this.decode(reader, reader.uint32());
  39956. };
  39957. /**
  39958. * Verifies a daily_dungeons_end message.
  39959. * @function verify
  39960. * @memberof game.daily_dungeons_end
  39961. * @static
  39962. * @param {Object.<string,*>} message Plain object to verify
  39963. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  39964. */
  39965. daily_dungeons_end.verify = function verify(message) {
  39966. if (typeof message !== "object" || message === null)
  39967. return "object expected";
  39968. if (message.win != null && message.hasOwnProperty("win"))
  39969. if (typeof message.win !== "boolean")
  39970. return "win: boolean expected";
  39971. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  39972. if (!$util.isInteger(message.monsterNum) && !(message.monsterNum && $util.isInteger(message.monsterNum.low) && $util.isInteger(message.monsterNum.high)))
  39973. return "monsterNum: integer|Long expected";
  39974. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  39975. if (!$util.isInteger(message.bossNum) && !(message.bossNum && $util.isInteger(message.bossNum.low) && $util.isInteger(message.bossNum.high)))
  39976. return "bossNum: integer|Long expected";
  39977. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  39978. if (!$util.isInteger(message.eliteNum) && !(message.eliteNum && $util.isInteger(message.eliteNum.low) && $util.isInteger(message.eliteNum.high)))
  39979. return "eliteNum: integer|Long expected";
  39980. return null;
  39981. };
  39982. /**
  39983. * Creates a daily_dungeons_end message from a plain object. Also converts values to their respective internal types.
  39984. * @function fromObject
  39985. * @memberof game.daily_dungeons_end
  39986. * @static
  39987. * @param {Object.<string,*>} object Plain object
  39988. * @returns {game.daily_dungeons_end} daily_dungeons_end
  39989. */
  39990. daily_dungeons_end.fromObject = function fromObject(object) {
  39991. if (object instanceof $root.game.daily_dungeons_end)
  39992. return object;
  39993. let message = new $root.game.daily_dungeons_end();
  39994. if (object.win != null)
  39995. message.win = Boolean(object.win);
  39996. if (object.monsterNum != null)
  39997. if ($util.Long)
  39998. (message.monsterNum = $util.Long.fromValue(object.monsterNum)).unsigned = false;
  39999. else if (typeof object.monsterNum === "string")
  40000. message.monsterNum = parseInt(object.monsterNum, 10);
  40001. else if (typeof object.monsterNum === "number")
  40002. message.monsterNum = object.monsterNum;
  40003. else if (typeof object.monsterNum === "object")
  40004. message.monsterNum = new $util.LongBits(object.monsterNum.low >>> 0, object.monsterNum.high >>> 0).toNumber();
  40005. if (object.bossNum != null)
  40006. if ($util.Long)
  40007. (message.bossNum = $util.Long.fromValue(object.bossNum)).unsigned = false;
  40008. else if (typeof object.bossNum === "string")
  40009. message.bossNum = parseInt(object.bossNum, 10);
  40010. else if (typeof object.bossNum === "number")
  40011. message.bossNum = object.bossNum;
  40012. else if (typeof object.bossNum === "object")
  40013. message.bossNum = new $util.LongBits(object.bossNum.low >>> 0, object.bossNum.high >>> 0).toNumber();
  40014. if (object.eliteNum != null)
  40015. if ($util.Long)
  40016. (message.eliteNum = $util.Long.fromValue(object.eliteNum)).unsigned = false;
  40017. else if (typeof object.eliteNum === "string")
  40018. message.eliteNum = parseInt(object.eliteNum, 10);
  40019. else if (typeof object.eliteNum === "number")
  40020. message.eliteNum = object.eliteNum;
  40021. else if (typeof object.eliteNum === "object")
  40022. message.eliteNum = new $util.LongBits(object.eliteNum.low >>> 0, object.eliteNum.high >>> 0).toNumber();
  40023. return message;
  40024. };
  40025. /**
  40026. * Creates a plain object from a daily_dungeons_end message. Also converts values to other types if specified.
  40027. * @function toObject
  40028. * @memberof game.daily_dungeons_end
  40029. * @static
  40030. * @param {game.daily_dungeons_end} message daily_dungeons_end
  40031. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40032. * @returns {Object.<string,*>} Plain object
  40033. */
  40034. daily_dungeons_end.toObject = function toObject(message, options) {
  40035. if (!options)
  40036. options = {};
  40037. let object = {};
  40038. if (options.defaults) {
  40039. object.win = false;
  40040. if ($util.Long) {
  40041. let long = new $util.Long(0, 0, false);
  40042. object.monsterNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40043. } else
  40044. object.monsterNum = options.longs === String ? "0" : 0;
  40045. if ($util.Long) {
  40046. let long = new $util.Long(0, 0, false);
  40047. object.bossNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40048. } else
  40049. object.bossNum = options.longs === String ? "0" : 0;
  40050. if ($util.Long) {
  40051. let long = new $util.Long(0, 0, false);
  40052. object.eliteNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40053. } else
  40054. object.eliteNum = options.longs === String ? "0" : 0;
  40055. }
  40056. if (message.win != null && message.hasOwnProperty("win"))
  40057. object.win = message.win;
  40058. if (message.monsterNum != null && message.hasOwnProperty("monsterNum"))
  40059. if (typeof message.monsterNum === "number")
  40060. object.monsterNum = options.longs === String ? String(message.monsterNum) : message.monsterNum;
  40061. else
  40062. object.monsterNum = options.longs === String ? $util.Long.prototype.toString.call(message.monsterNum) : options.longs === Number ? new $util.LongBits(message.monsterNum.low >>> 0, message.monsterNum.high >>> 0).toNumber() : message.monsterNum;
  40063. if (message.bossNum != null && message.hasOwnProperty("bossNum"))
  40064. if (typeof message.bossNum === "number")
  40065. object.bossNum = options.longs === String ? String(message.bossNum) : message.bossNum;
  40066. else
  40067. object.bossNum = options.longs === String ? $util.Long.prototype.toString.call(message.bossNum) : options.longs === Number ? new $util.LongBits(message.bossNum.low >>> 0, message.bossNum.high >>> 0).toNumber() : message.bossNum;
  40068. if (message.eliteNum != null && message.hasOwnProperty("eliteNum"))
  40069. if (typeof message.eliteNum === "number")
  40070. object.eliteNum = options.longs === String ? String(message.eliteNum) : message.eliteNum;
  40071. else
  40072. object.eliteNum = options.longs === String ? $util.Long.prototype.toString.call(message.eliteNum) : options.longs === Number ? new $util.LongBits(message.eliteNum.low >>> 0, message.eliteNum.high >>> 0).toNumber() : message.eliteNum;
  40073. return object;
  40074. };
  40075. /**
  40076. * Converts this daily_dungeons_end to JSON.
  40077. * @function toJSON
  40078. * @memberof game.daily_dungeons_end
  40079. * @instance
  40080. * @returns {Object.<string,*>} JSON object
  40081. */
  40082. daily_dungeons_end.prototype.toJSON = function toJSON() {
  40083. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40084. };
  40085. return daily_dungeons_end;
  40086. })();
  40087. game.daily_dungeons_end_rsp = (function() {
  40088. /**
  40089. * Properties of a daily_dungeons_end_rsp.
  40090. * @memberof game
  40091. * @interface Idaily_dungeons_end_rsp
  40092. * @property {number|Long|null} [errno] daily_dungeons_end_rsp errno
  40093. * @property {game.Idaily_dungeons_info|null} [data] daily_dungeons_end_rsp data
  40094. */
  40095. /**
  40096. * Constructs a new daily_dungeons_end_rsp.
  40097. * @memberof game
  40098. * @classdesc Represents a daily_dungeons_end_rsp.
  40099. * @implements Idaily_dungeons_end_rsp
  40100. * @constructor
  40101. * @param {game.Idaily_dungeons_end_rsp=} [properties] Properties to set
  40102. */
  40103. function daily_dungeons_end_rsp(properties) {
  40104. if (properties)
  40105. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40106. if (properties[keys[i]] != null)
  40107. this[keys[i]] = properties[keys[i]];
  40108. }
  40109. /**
  40110. * daily_dungeons_end_rsp errno.
  40111. * @member {number|Long} errno
  40112. * @memberof game.daily_dungeons_end_rsp
  40113. * @instance
  40114. */
  40115. daily_dungeons_end_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40116. /**
  40117. * daily_dungeons_end_rsp data.
  40118. * @member {game.Idaily_dungeons_info|null|undefined} data
  40119. * @memberof game.daily_dungeons_end_rsp
  40120. * @instance
  40121. */
  40122. daily_dungeons_end_rsp.prototype.data = null;
  40123. /**
  40124. * Creates a new daily_dungeons_end_rsp instance using the specified properties.
  40125. * @function create
  40126. * @memberof game.daily_dungeons_end_rsp
  40127. * @static
  40128. * @param {game.Idaily_dungeons_end_rsp=} [properties] Properties to set
  40129. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp instance
  40130. */
  40131. daily_dungeons_end_rsp.create = function create(properties) {
  40132. return new daily_dungeons_end_rsp(properties);
  40133. };
  40134. /**
  40135. * Encodes the specified daily_dungeons_end_rsp message. Does not implicitly {@link game.daily_dungeons_end_rsp.verify|verify} messages.
  40136. * @function encode
  40137. * @memberof game.daily_dungeons_end_rsp
  40138. * @static
  40139. * @param {game.Idaily_dungeons_end_rsp} message daily_dungeons_end_rsp message or plain object to encode
  40140. * @param {$protobuf.Writer} [writer] Writer to encode to
  40141. * @returns {$protobuf.Writer} Writer
  40142. */
  40143. daily_dungeons_end_rsp.encode = function encode(message, writer) {
  40144. if (!writer)
  40145. writer = $Writer.create();
  40146. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  40147. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  40148. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  40149. $root.game.daily_dungeons_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  40150. return writer;
  40151. };
  40152. /**
  40153. * Encodes the specified daily_dungeons_end_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_end_rsp.verify|verify} messages.
  40154. * @function encodeDelimited
  40155. * @memberof game.daily_dungeons_end_rsp
  40156. * @static
  40157. * @param {game.Idaily_dungeons_end_rsp} message daily_dungeons_end_rsp message or plain object to encode
  40158. * @param {$protobuf.Writer} [writer] Writer to encode to
  40159. * @returns {$protobuf.Writer} Writer
  40160. */
  40161. daily_dungeons_end_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  40162. return this.encode(message, writer).ldelim();
  40163. };
  40164. /**
  40165. * Decodes a daily_dungeons_end_rsp message from the specified reader or buffer.
  40166. * @function decode
  40167. * @memberof game.daily_dungeons_end_rsp
  40168. * @static
  40169. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40170. * @param {number} [length] Message length if known beforehand
  40171. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
  40172. * @throws {Error} If the payload is not a reader or valid buffer
  40173. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40174. */
  40175. daily_dungeons_end_rsp.decode = function decode(reader, length) {
  40176. if (!(reader instanceof $Reader))
  40177. reader = $Reader.create(reader);
  40178. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_end_rsp();
  40179. while (reader.pos < end) {
  40180. let tag = reader.uint32();
  40181. switch (tag >>> 3) {
  40182. case 1:
  40183. message.errno = reader.int64();
  40184. break;
  40185. case 2:
  40186. message.data = $root.game.daily_dungeons_info.decode(reader, reader.uint32());
  40187. break;
  40188. default:
  40189. reader.skipType(tag & 7);
  40190. break;
  40191. }
  40192. }
  40193. return message;
  40194. };
  40195. /**
  40196. * Decodes a daily_dungeons_end_rsp message from the specified reader or buffer, length delimited.
  40197. * @function decodeDelimited
  40198. * @memberof game.daily_dungeons_end_rsp
  40199. * @static
  40200. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40201. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
  40202. * @throws {Error} If the payload is not a reader or valid buffer
  40203. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40204. */
  40205. daily_dungeons_end_rsp.decodeDelimited = function decodeDelimited(reader) {
  40206. if (!(reader instanceof $Reader))
  40207. reader = new $Reader(reader);
  40208. return this.decode(reader, reader.uint32());
  40209. };
  40210. /**
  40211. * Verifies a daily_dungeons_end_rsp message.
  40212. * @function verify
  40213. * @memberof game.daily_dungeons_end_rsp
  40214. * @static
  40215. * @param {Object.<string,*>} message Plain object to verify
  40216. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40217. */
  40218. daily_dungeons_end_rsp.verify = function verify(message) {
  40219. if (typeof message !== "object" || message === null)
  40220. return "object expected";
  40221. if (message.errno != null && message.hasOwnProperty("errno"))
  40222. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  40223. return "errno: integer|Long expected";
  40224. if (message.data != null && message.hasOwnProperty("data")) {
  40225. let error = $root.game.daily_dungeons_info.verify(message.data);
  40226. if (error)
  40227. return "data." + error;
  40228. }
  40229. return null;
  40230. };
  40231. /**
  40232. * Creates a daily_dungeons_end_rsp message from a plain object. Also converts values to their respective internal types.
  40233. * @function fromObject
  40234. * @memberof game.daily_dungeons_end_rsp
  40235. * @static
  40236. * @param {Object.<string,*>} object Plain object
  40237. * @returns {game.daily_dungeons_end_rsp} daily_dungeons_end_rsp
  40238. */
  40239. daily_dungeons_end_rsp.fromObject = function fromObject(object) {
  40240. if (object instanceof $root.game.daily_dungeons_end_rsp)
  40241. return object;
  40242. let message = new $root.game.daily_dungeons_end_rsp();
  40243. if (object.errno != null)
  40244. if ($util.Long)
  40245. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  40246. else if (typeof object.errno === "string")
  40247. message.errno = parseInt(object.errno, 10);
  40248. else if (typeof object.errno === "number")
  40249. message.errno = object.errno;
  40250. else if (typeof object.errno === "object")
  40251. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  40252. if (object.data != null) {
  40253. if (typeof object.data !== "object")
  40254. throw TypeError(".game.daily_dungeons_end_rsp.data: object expected");
  40255. message.data = $root.game.daily_dungeons_info.fromObject(object.data);
  40256. }
  40257. return message;
  40258. };
  40259. /**
  40260. * Creates a plain object from a daily_dungeons_end_rsp message. Also converts values to other types if specified.
  40261. * @function toObject
  40262. * @memberof game.daily_dungeons_end_rsp
  40263. * @static
  40264. * @param {game.daily_dungeons_end_rsp} message daily_dungeons_end_rsp
  40265. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40266. * @returns {Object.<string,*>} Plain object
  40267. */
  40268. daily_dungeons_end_rsp.toObject = function toObject(message, options) {
  40269. if (!options)
  40270. options = {};
  40271. let object = {};
  40272. if (options.defaults) {
  40273. if ($util.Long) {
  40274. let long = new $util.Long(0, 0, false);
  40275. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40276. } else
  40277. object.errno = options.longs === String ? "0" : 0;
  40278. object.data = null;
  40279. }
  40280. if (message.errno != null && message.hasOwnProperty("errno"))
  40281. if (typeof message.errno === "number")
  40282. object.errno = options.longs === String ? String(message.errno) : message.errno;
  40283. else
  40284. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  40285. if (message.data != null && message.hasOwnProperty("data"))
  40286. object.data = $root.game.daily_dungeons_info.toObject(message.data, options);
  40287. return object;
  40288. };
  40289. /**
  40290. * Converts this daily_dungeons_end_rsp to JSON.
  40291. * @function toJSON
  40292. * @memberof game.daily_dungeons_end_rsp
  40293. * @instance
  40294. * @returns {Object.<string,*>} JSON object
  40295. */
  40296. daily_dungeons_end_rsp.prototype.toJSON = function toJSON() {
  40297. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40298. };
  40299. return daily_dungeons_end_rsp;
  40300. })();
  40301. game.daily_dungeons_sweep = (function() {
  40302. /**
  40303. * Properties of a daily_dungeons_sweep.
  40304. * @memberof game
  40305. * @interface Idaily_dungeons_sweep
  40306. * @property {number|Long|null} [type] daily_dungeons_sweep type
  40307. * @property {number|Long|null} [diff] daily_dungeons_sweep diff
  40308. */
  40309. /**
  40310. * Constructs a new daily_dungeons_sweep.
  40311. * @memberof game
  40312. * @classdesc Represents a daily_dungeons_sweep.
  40313. * @implements Idaily_dungeons_sweep
  40314. * @constructor
  40315. * @param {game.Idaily_dungeons_sweep=} [properties] Properties to set
  40316. */
  40317. function daily_dungeons_sweep(properties) {
  40318. if (properties)
  40319. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40320. if (properties[keys[i]] != null)
  40321. this[keys[i]] = properties[keys[i]];
  40322. }
  40323. /**
  40324. * daily_dungeons_sweep type.
  40325. * @member {number|Long} type
  40326. * @memberof game.daily_dungeons_sweep
  40327. * @instance
  40328. */
  40329. daily_dungeons_sweep.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40330. /**
  40331. * daily_dungeons_sweep diff.
  40332. * @member {number|Long} diff
  40333. * @memberof game.daily_dungeons_sweep
  40334. * @instance
  40335. */
  40336. daily_dungeons_sweep.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40337. /**
  40338. * Creates a new daily_dungeons_sweep instance using the specified properties.
  40339. * @function create
  40340. * @memberof game.daily_dungeons_sweep
  40341. * @static
  40342. * @param {game.Idaily_dungeons_sweep=} [properties] Properties to set
  40343. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep instance
  40344. */
  40345. daily_dungeons_sweep.create = function create(properties) {
  40346. return new daily_dungeons_sweep(properties);
  40347. };
  40348. /**
  40349. * Encodes the specified daily_dungeons_sweep message. Does not implicitly {@link game.daily_dungeons_sweep.verify|verify} messages.
  40350. * @function encode
  40351. * @memberof game.daily_dungeons_sweep
  40352. * @static
  40353. * @param {game.Idaily_dungeons_sweep} message daily_dungeons_sweep message or plain object to encode
  40354. * @param {$protobuf.Writer} [writer] Writer to encode to
  40355. * @returns {$protobuf.Writer} Writer
  40356. */
  40357. daily_dungeons_sweep.encode = function encode(message, writer) {
  40358. if (!writer)
  40359. writer = $Writer.create();
  40360. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  40361. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  40362. if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
  40363. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
  40364. return writer;
  40365. };
  40366. /**
  40367. * Encodes the specified daily_dungeons_sweep message, length delimited. Does not implicitly {@link game.daily_dungeons_sweep.verify|verify} messages.
  40368. * @function encodeDelimited
  40369. * @memberof game.daily_dungeons_sweep
  40370. * @static
  40371. * @param {game.Idaily_dungeons_sweep} message daily_dungeons_sweep message or plain object to encode
  40372. * @param {$protobuf.Writer} [writer] Writer to encode to
  40373. * @returns {$protobuf.Writer} Writer
  40374. */
  40375. daily_dungeons_sweep.encodeDelimited = function encodeDelimited(message, writer) {
  40376. return this.encode(message, writer).ldelim();
  40377. };
  40378. /**
  40379. * Decodes a daily_dungeons_sweep message from the specified reader or buffer.
  40380. * @function decode
  40381. * @memberof game.daily_dungeons_sweep
  40382. * @static
  40383. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40384. * @param {number} [length] Message length if known beforehand
  40385. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
  40386. * @throws {Error} If the payload is not a reader or valid buffer
  40387. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40388. */
  40389. daily_dungeons_sweep.decode = function decode(reader, length) {
  40390. if (!(reader instanceof $Reader))
  40391. reader = $Reader.create(reader);
  40392. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_sweep();
  40393. while (reader.pos < end) {
  40394. let tag = reader.uint32();
  40395. switch (tag >>> 3) {
  40396. case 1:
  40397. message.type = reader.int64();
  40398. break;
  40399. case 2:
  40400. message.diff = reader.int64();
  40401. break;
  40402. default:
  40403. reader.skipType(tag & 7);
  40404. break;
  40405. }
  40406. }
  40407. return message;
  40408. };
  40409. /**
  40410. * Decodes a daily_dungeons_sweep message from the specified reader or buffer, length delimited.
  40411. * @function decodeDelimited
  40412. * @memberof game.daily_dungeons_sweep
  40413. * @static
  40414. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40415. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
  40416. * @throws {Error} If the payload is not a reader or valid buffer
  40417. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40418. */
  40419. daily_dungeons_sweep.decodeDelimited = function decodeDelimited(reader) {
  40420. if (!(reader instanceof $Reader))
  40421. reader = new $Reader(reader);
  40422. return this.decode(reader, reader.uint32());
  40423. };
  40424. /**
  40425. * Verifies a daily_dungeons_sweep message.
  40426. * @function verify
  40427. * @memberof game.daily_dungeons_sweep
  40428. * @static
  40429. * @param {Object.<string,*>} message Plain object to verify
  40430. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40431. */
  40432. daily_dungeons_sweep.verify = function verify(message) {
  40433. if (typeof message !== "object" || message === null)
  40434. return "object expected";
  40435. if (message.type != null && message.hasOwnProperty("type"))
  40436. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  40437. return "type: integer|Long expected";
  40438. if (message.diff != null && message.hasOwnProperty("diff"))
  40439. if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
  40440. return "diff: integer|Long expected";
  40441. return null;
  40442. };
  40443. /**
  40444. * Creates a daily_dungeons_sweep message from a plain object. Also converts values to their respective internal types.
  40445. * @function fromObject
  40446. * @memberof game.daily_dungeons_sweep
  40447. * @static
  40448. * @param {Object.<string,*>} object Plain object
  40449. * @returns {game.daily_dungeons_sweep} daily_dungeons_sweep
  40450. */
  40451. daily_dungeons_sweep.fromObject = function fromObject(object) {
  40452. if (object instanceof $root.game.daily_dungeons_sweep)
  40453. return object;
  40454. let message = new $root.game.daily_dungeons_sweep();
  40455. if (object.type != null)
  40456. if ($util.Long)
  40457. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  40458. else if (typeof object.type === "string")
  40459. message.type = parseInt(object.type, 10);
  40460. else if (typeof object.type === "number")
  40461. message.type = object.type;
  40462. else if (typeof object.type === "object")
  40463. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  40464. if (object.diff != null)
  40465. if ($util.Long)
  40466. (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
  40467. else if (typeof object.diff === "string")
  40468. message.diff = parseInt(object.diff, 10);
  40469. else if (typeof object.diff === "number")
  40470. message.diff = object.diff;
  40471. else if (typeof object.diff === "object")
  40472. message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
  40473. return message;
  40474. };
  40475. /**
  40476. * Creates a plain object from a daily_dungeons_sweep message. Also converts values to other types if specified.
  40477. * @function toObject
  40478. * @memberof game.daily_dungeons_sweep
  40479. * @static
  40480. * @param {game.daily_dungeons_sweep} message daily_dungeons_sweep
  40481. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40482. * @returns {Object.<string,*>} Plain object
  40483. */
  40484. daily_dungeons_sweep.toObject = function toObject(message, options) {
  40485. if (!options)
  40486. options = {};
  40487. let object = {};
  40488. if (options.defaults) {
  40489. if ($util.Long) {
  40490. let long = new $util.Long(0, 0, false);
  40491. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40492. } else
  40493. object.type = options.longs === String ? "0" : 0;
  40494. if ($util.Long) {
  40495. let long = new $util.Long(0, 0, false);
  40496. object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40497. } else
  40498. object.diff = options.longs === String ? "0" : 0;
  40499. }
  40500. if (message.type != null && message.hasOwnProperty("type"))
  40501. if (typeof message.type === "number")
  40502. object.type = options.longs === String ? String(message.type) : message.type;
  40503. else
  40504. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  40505. if (message.diff != null && message.hasOwnProperty("diff"))
  40506. if (typeof message.diff === "number")
  40507. object.diff = options.longs === String ? String(message.diff) : message.diff;
  40508. else
  40509. object.diff = options.longs === String ? $util.Long.prototype.toString.call(message.diff) : options.longs === Number ? new $util.LongBits(message.diff.low >>> 0, message.diff.high >>> 0).toNumber() : message.diff;
  40510. return object;
  40511. };
  40512. /**
  40513. * Converts this daily_dungeons_sweep to JSON.
  40514. * @function toJSON
  40515. * @memberof game.daily_dungeons_sweep
  40516. * @instance
  40517. * @returns {Object.<string,*>} JSON object
  40518. */
  40519. daily_dungeons_sweep.prototype.toJSON = function toJSON() {
  40520. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40521. };
  40522. return daily_dungeons_sweep;
  40523. })();
  40524. game.daily_dungeons_sweep_rsp = (function() {
  40525. /**
  40526. * Properties of a daily_dungeons_sweep_rsp.
  40527. * @memberof game
  40528. * @interface Idaily_dungeons_sweep_rsp
  40529. * @property {number|Long|null} [errno] daily_dungeons_sweep_rsp errno
  40530. * @property {game.Idaily_dungeons_info|null} [data] daily_dungeons_sweep_rsp data
  40531. */
  40532. /**
  40533. * Constructs a new daily_dungeons_sweep_rsp.
  40534. * @memberof game
  40535. * @classdesc Represents a daily_dungeons_sweep_rsp.
  40536. * @implements Idaily_dungeons_sweep_rsp
  40537. * @constructor
  40538. * @param {game.Idaily_dungeons_sweep_rsp=} [properties] Properties to set
  40539. */
  40540. function daily_dungeons_sweep_rsp(properties) {
  40541. if (properties)
  40542. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40543. if (properties[keys[i]] != null)
  40544. this[keys[i]] = properties[keys[i]];
  40545. }
  40546. /**
  40547. * daily_dungeons_sweep_rsp errno.
  40548. * @member {number|Long} errno
  40549. * @memberof game.daily_dungeons_sweep_rsp
  40550. * @instance
  40551. */
  40552. daily_dungeons_sweep_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40553. /**
  40554. * daily_dungeons_sweep_rsp data.
  40555. * @member {game.Idaily_dungeons_info|null|undefined} data
  40556. * @memberof game.daily_dungeons_sweep_rsp
  40557. * @instance
  40558. */
  40559. daily_dungeons_sweep_rsp.prototype.data = null;
  40560. /**
  40561. * Creates a new daily_dungeons_sweep_rsp instance using the specified properties.
  40562. * @function create
  40563. * @memberof game.daily_dungeons_sweep_rsp
  40564. * @static
  40565. * @param {game.Idaily_dungeons_sweep_rsp=} [properties] Properties to set
  40566. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp instance
  40567. */
  40568. daily_dungeons_sweep_rsp.create = function create(properties) {
  40569. return new daily_dungeons_sweep_rsp(properties);
  40570. };
  40571. /**
  40572. * Encodes the specified daily_dungeons_sweep_rsp message. Does not implicitly {@link game.daily_dungeons_sweep_rsp.verify|verify} messages.
  40573. * @function encode
  40574. * @memberof game.daily_dungeons_sweep_rsp
  40575. * @static
  40576. * @param {game.Idaily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp message or plain object to encode
  40577. * @param {$protobuf.Writer} [writer] Writer to encode to
  40578. * @returns {$protobuf.Writer} Writer
  40579. */
  40580. daily_dungeons_sweep_rsp.encode = function encode(message, writer) {
  40581. if (!writer)
  40582. writer = $Writer.create();
  40583. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  40584. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  40585. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  40586. $root.game.daily_dungeons_info.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  40587. return writer;
  40588. };
  40589. /**
  40590. * Encodes the specified daily_dungeons_sweep_rsp message, length delimited. Does not implicitly {@link game.daily_dungeons_sweep_rsp.verify|verify} messages.
  40591. * @function encodeDelimited
  40592. * @memberof game.daily_dungeons_sweep_rsp
  40593. * @static
  40594. * @param {game.Idaily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp message or plain object to encode
  40595. * @param {$protobuf.Writer} [writer] Writer to encode to
  40596. * @returns {$protobuf.Writer} Writer
  40597. */
  40598. daily_dungeons_sweep_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  40599. return this.encode(message, writer).ldelim();
  40600. };
  40601. /**
  40602. * Decodes a daily_dungeons_sweep_rsp message from the specified reader or buffer.
  40603. * @function decode
  40604. * @memberof game.daily_dungeons_sweep_rsp
  40605. * @static
  40606. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40607. * @param {number} [length] Message length if known beforehand
  40608. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
  40609. * @throws {Error} If the payload is not a reader or valid buffer
  40610. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40611. */
  40612. daily_dungeons_sweep_rsp.decode = function decode(reader, length) {
  40613. if (!(reader instanceof $Reader))
  40614. reader = $Reader.create(reader);
  40615. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_sweep_rsp();
  40616. while (reader.pos < end) {
  40617. let tag = reader.uint32();
  40618. switch (tag >>> 3) {
  40619. case 1:
  40620. message.errno = reader.int64();
  40621. break;
  40622. case 2:
  40623. message.data = $root.game.daily_dungeons_info.decode(reader, reader.uint32());
  40624. break;
  40625. default:
  40626. reader.skipType(tag & 7);
  40627. break;
  40628. }
  40629. }
  40630. return message;
  40631. };
  40632. /**
  40633. * Decodes a daily_dungeons_sweep_rsp message from the specified reader or buffer, length delimited.
  40634. * @function decodeDelimited
  40635. * @memberof game.daily_dungeons_sweep_rsp
  40636. * @static
  40637. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40638. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
  40639. * @throws {Error} If the payload is not a reader or valid buffer
  40640. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40641. */
  40642. daily_dungeons_sweep_rsp.decodeDelimited = function decodeDelimited(reader) {
  40643. if (!(reader instanceof $Reader))
  40644. reader = new $Reader(reader);
  40645. return this.decode(reader, reader.uint32());
  40646. };
  40647. /**
  40648. * Verifies a daily_dungeons_sweep_rsp message.
  40649. * @function verify
  40650. * @memberof game.daily_dungeons_sweep_rsp
  40651. * @static
  40652. * @param {Object.<string,*>} message Plain object to verify
  40653. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40654. */
  40655. daily_dungeons_sweep_rsp.verify = function verify(message) {
  40656. if (typeof message !== "object" || message === null)
  40657. return "object expected";
  40658. if (message.errno != null && message.hasOwnProperty("errno"))
  40659. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  40660. return "errno: integer|Long expected";
  40661. if (message.data != null && message.hasOwnProperty("data")) {
  40662. let error = $root.game.daily_dungeons_info.verify(message.data);
  40663. if (error)
  40664. return "data." + error;
  40665. }
  40666. return null;
  40667. };
  40668. /**
  40669. * Creates a daily_dungeons_sweep_rsp message from a plain object. Also converts values to their respective internal types.
  40670. * @function fromObject
  40671. * @memberof game.daily_dungeons_sweep_rsp
  40672. * @static
  40673. * @param {Object.<string,*>} object Plain object
  40674. * @returns {game.daily_dungeons_sweep_rsp} daily_dungeons_sweep_rsp
  40675. */
  40676. daily_dungeons_sweep_rsp.fromObject = function fromObject(object) {
  40677. if (object instanceof $root.game.daily_dungeons_sweep_rsp)
  40678. return object;
  40679. let message = new $root.game.daily_dungeons_sweep_rsp();
  40680. if (object.errno != null)
  40681. if ($util.Long)
  40682. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  40683. else if (typeof object.errno === "string")
  40684. message.errno = parseInt(object.errno, 10);
  40685. else if (typeof object.errno === "number")
  40686. message.errno = object.errno;
  40687. else if (typeof object.errno === "object")
  40688. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  40689. if (object.data != null) {
  40690. if (typeof object.data !== "object")
  40691. throw TypeError(".game.daily_dungeons_sweep_rsp.data: object expected");
  40692. message.data = $root.game.daily_dungeons_info.fromObject(object.data);
  40693. }
  40694. return message;
  40695. };
  40696. /**
  40697. * Creates a plain object from a daily_dungeons_sweep_rsp message. Also converts values to other types if specified.
  40698. * @function toObject
  40699. * @memberof game.daily_dungeons_sweep_rsp
  40700. * @static
  40701. * @param {game.daily_dungeons_sweep_rsp} message daily_dungeons_sweep_rsp
  40702. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40703. * @returns {Object.<string,*>} Plain object
  40704. */
  40705. daily_dungeons_sweep_rsp.toObject = function toObject(message, options) {
  40706. if (!options)
  40707. options = {};
  40708. let object = {};
  40709. if (options.defaults) {
  40710. if ($util.Long) {
  40711. let long = new $util.Long(0, 0, false);
  40712. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  40713. } else
  40714. object.errno = options.longs === String ? "0" : 0;
  40715. object.data = null;
  40716. }
  40717. if (message.errno != null && message.hasOwnProperty("errno"))
  40718. if (typeof message.errno === "number")
  40719. object.errno = options.longs === String ? String(message.errno) : message.errno;
  40720. else
  40721. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  40722. if (message.data != null && message.hasOwnProperty("data"))
  40723. object.data = $root.game.daily_dungeons_info.toObject(message.data, options);
  40724. return object;
  40725. };
  40726. /**
  40727. * Converts this daily_dungeons_sweep_rsp to JSON.
  40728. * @function toJSON
  40729. * @memberof game.daily_dungeons_sweep_rsp
  40730. * @instance
  40731. * @returns {Object.<string,*>} JSON object
  40732. */
  40733. daily_dungeons_sweep_rsp.prototype.toJSON = function toJSON() {
  40734. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40735. };
  40736. return daily_dungeons_sweep_rsp;
  40737. })();
  40738. game.adv_gift_data = (function() {
  40739. /**
  40740. * Properties of an adv_gift_data.
  40741. * @memberof game
  40742. * @interface Iadv_gift_data
  40743. */
  40744. /**
  40745. * Constructs a new adv_gift_data.
  40746. * @memberof game
  40747. * @classdesc Represents an adv_gift_data.
  40748. * @implements Iadv_gift_data
  40749. * @constructor
  40750. * @param {game.Iadv_gift_data=} [properties] Properties to set
  40751. */
  40752. function adv_gift_data(properties) {
  40753. if (properties)
  40754. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40755. if (properties[keys[i]] != null)
  40756. this[keys[i]] = properties[keys[i]];
  40757. }
  40758. /**
  40759. * Creates a new adv_gift_data instance using the specified properties.
  40760. * @function create
  40761. * @memberof game.adv_gift_data
  40762. * @static
  40763. * @param {game.Iadv_gift_data=} [properties] Properties to set
  40764. * @returns {game.adv_gift_data} adv_gift_data instance
  40765. */
  40766. adv_gift_data.create = function create(properties) {
  40767. return new adv_gift_data(properties);
  40768. };
  40769. /**
  40770. * Encodes the specified adv_gift_data message. Does not implicitly {@link game.adv_gift_data.verify|verify} messages.
  40771. * @function encode
  40772. * @memberof game.adv_gift_data
  40773. * @static
  40774. * @param {game.Iadv_gift_data} message adv_gift_data message or plain object to encode
  40775. * @param {$protobuf.Writer} [writer] Writer to encode to
  40776. * @returns {$protobuf.Writer} Writer
  40777. */
  40778. adv_gift_data.encode = function encode(message, writer) {
  40779. if (!writer)
  40780. writer = $Writer.create();
  40781. return writer;
  40782. };
  40783. /**
  40784. * Encodes the specified adv_gift_data message, length delimited. Does not implicitly {@link game.adv_gift_data.verify|verify} messages.
  40785. * @function encodeDelimited
  40786. * @memberof game.adv_gift_data
  40787. * @static
  40788. * @param {game.Iadv_gift_data} message adv_gift_data message or plain object to encode
  40789. * @param {$protobuf.Writer} [writer] Writer to encode to
  40790. * @returns {$protobuf.Writer} Writer
  40791. */
  40792. adv_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
  40793. return this.encode(message, writer).ldelim();
  40794. };
  40795. /**
  40796. * Decodes an adv_gift_data message from the specified reader or buffer.
  40797. * @function decode
  40798. * @memberof game.adv_gift_data
  40799. * @static
  40800. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40801. * @param {number} [length] Message length if known beforehand
  40802. * @returns {game.adv_gift_data} adv_gift_data
  40803. * @throws {Error} If the payload is not a reader or valid buffer
  40804. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40805. */
  40806. adv_gift_data.decode = function decode(reader, length) {
  40807. if (!(reader instanceof $Reader))
  40808. reader = $Reader.create(reader);
  40809. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_data();
  40810. while (reader.pos < end) {
  40811. let tag = reader.uint32();
  40812. switch (tag >>> 3) {
  40813. default:
  40814. reader.skipType(tag & 7);
  40815. break;
  40816. }
  40817. }
  40818. return message;
  40819. };
  40820. /**
  40821. * Decodes an adv_gift_data message from the specified reader or buffer, length delimited.
  40822. * @function decodeDelimited
  40823. * @memberof game.adv_gift_data
  40824. * @static
  40825. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40826. * @returns {game.adv_gift_data} adv_gift_data
  40827. * @throws {Error} If the payload is not a reader or valid buffer
  40828. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40829. */
  40830. adv_gift_data.decodeDelimited = function decodeDelimited(reader) {
  40831. if (!(reader instanceof $Reader))
  40832. reader = new $Reader(reader);
  40833. return this.decode(reader, reader.uint32());
  40834. };
  40835. /**
  40836. * Verifies an adv_gift_data message.
  40837. * @function verify
  40838. * @memberof game.adv_gift_data
  40839. * @static
  40840. * @param {Object.<string,*>} message Plain object to verify
  40841. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  40842. */
  40843. adv_gift_data.verify = function verify(message) {
  40844. if (typeof message !== "object" || message === null)
  40845. return "object expected";
  40846. return null;
  40847. };
  40848. /**
  40849. * Creates an adv_gift_data message from a plain object. Also converts values to their respective internal types.
  40850. * @function fromObject
  40851. * @memberof game.adv_gift_data
  40852. * @static
  40853. * @param {Object.<string,*>} object Plain object
  40854. * @returns {game.adv_gift_data} adv_gift_data
  40855. */
  40856. adv_gift_data.fromObject = function fromObject(object) {
  40857. if (object instanceof $root.game.adv_gift_data)
  40858. return object;
  40859. return new $root.game.adv_gift_data();
  40860. };
  40861. /**
  40862. * Creates a plain object from an adv_gift_data message. Also converts values to other types if specified.
  40863. * @function toObject
  40864. * @memberof game.adv_gift_data
  40865. * @static
  40866. * @param {game.adv_gift_data} message adv_gift_data
  40867. * @param {$protobuf.IConversionOptions} [options] Conversion options
  40868. * @returns {Object.<string,*>} Plain object
  40869. */
  40870. adv_gift_data.toObject = function toObject() {
  40871. return {};
  40872. };
  40873. /**
  40874. * Converts this adv_gift_data to JSON.
  40875. * @function toJSON
  40876. * @memberof game.adv_gift_data
  40877. * @instance
  40878. * @returns {Object.<string,*>} JSON object
  40879. */
  40880. adv_gift_data.prototype.toJSON = function toJSON() {
  40881. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  40882. };
  40883. return adv_gift_data;
  40884. })();
  40885. game.adv_gift_data_rsp = (function() {
  40886. /**
  40887. * Properties of an adv_gift_data_rsp.
  40888. * @memberof game
  40889. * @interface Iadv_gift_data_rsp
  40890. * @property {number|Long|null} [errno] adv_gift_data_rsp errno
  40891. */
  40892. /**
  40893. * Constructs a new adv_gift_data_rsp.
  40894. * @memberof game
  40895. * @classdesc Represents an adv_gift_data_rsp.
  40896. * @implements Iadv_gift_data_rsp
  40897. * @constructor
  40898. * @param {game.Iadv_gift_data_rsp=} [properties] Properties to set
  40899. */
  40900. function adv_gift_data_rsp(properties) {
  40901. if (properties)
  40902. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  40903. if (properties[keys[i]] != null)
  40904. this[keys[i]] = properties[keys[i]];
  40905. }
  40906. /**
  40907. * adv_gift_data_rsp errno.
  40908. * @member {number|Long} errno
  40909. * @memberof game.adv_gift_data_rsp
  40910. * @instance
  40911. */
  40912. adv_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  40913. /**
  40914. * Creates a new adv_gift_data_rsp instance using the specified properties.
  40915. * @function create
  40916. * @memberof game.adv_gift_data_rsp
  40917. * @static
  40918. * @param {game.Iadv_gift_data_rsp=} [properties] Properties to set
  40919. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp instance
  40920. */
  40921. adv_gift_data_rsp.create = function create(properties) {
  40922. return new adv_gift_data_rsp(properties);
  40923. };
  40924. /**
  40925. * Encodes the specified adv_gift_data_rsp message. Does not implicitly {@link game.adv_gift_data_rsp.verify|verify} messages.
  40926. * @function encode
  40927. * @memberof game.adv_gift_data_rsp
  40928. * @static
  40929. * @param {game.Iadv_gift_data_rsp} message adv_gift_data_rsp message or plain object to encode
  40930. * @param {$protobuf.Writer} [writer] Writer to encode to
  40931. * @returns {$protobuf.Writer} Writer
  40932. */
  40933. adv_gift_data_rsp.encode = function encode(message, writer) {
  40934. if (!writer)
  40935. writer = $Writer.create();
  40936. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  40937. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  40938. return writer;
  40939. };
  40940. /**
  40941. * Encodes the specified adv_gift_data_rsp message, length delimited. Does not implicitly {@link game.adv_gift_data_rsp.verify|verify} messages.
  40942. * @function encodeDelimited
  40943. * @memberof game.adv_gift_data_rsp
  40944. * @static
  40945. * @param {game.Iadv_gift_data_rsp} message adv_gift_data_rsp message or plain object to encode
  40946. * @param {$protobuf.Writer} [writer] Writer to encode to
  40947. * @returns {$protobuf.Writer} Writer
  40948. */
  40949. adv_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  40950. return this.encode(message, writer).ldelim();
  40951. };
  40952. /**
  40953. * Decodes an adv_gift_data_rsp message from the specified reader or buffer.
  40954. * @function decode
  40955. * @memberof game.adv_gift_data_rsp
  40956. * @static
  40957. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40958. * @param {number} [length] Message length if known beforehand
  40959. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
  40960. * @throws {Error} If the payload is not a reader or valid buffer
  40961. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40962. */
  40963. adv_gift_data_rsp.decode = function decode(reader, length) {
  40964. if (!(reader instanceof $Reader))
  40965. reader = $Reader.create(reader);
  40966. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_data_rsp();
  40967. while (reader.pos < end) {
  40968. let tag = reader.uint32();
  40969. switch (tag >>> 3) {
  40970. case 1:
  40971. message.errno = reader.int64();
  40972. break;
  40973. default:
  40974. reader.skipType(tag & 7);
  40975. break;
  40976. }
  40977. }
  40978. return message;
  40979. };
  40980. /**
  40981. * Decodes an adv_gift_data_rsp message from the specified reader or buffer, length delimited.
  40982. * @function decodeDelimited
  40983. * @memberof game.adv_gift_data_rsp
  40984. * @static
  40985. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  40986. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
  40987. * @throws {Error} If the payload is not a reader or valid buffer
  40988. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  40989. */
  40990. adv_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  40991. if (!(reader instanceof $Reader))
  40992. reader = new $Reader(reader);
  40993. return this.decode(reader, reader.uint32());
  40994. };
  40995. /**
  40996. * Verifies an adv_gift_data_rsp message.
  40997. * @function verify
  40998. * @memberof game.adv_gift_data_rsp
  40999. * @static
  41000. * @param {Object.<string,*>} message Plain object to verify
  41001. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41002. */
  41003. adv_gift_data_rsp.verify = function verify(message) {
  41004. if (typeof message !== "object" || message === null)
  41005. return "object expected";
  41006. if (message.errno != null && message.hasOwnProperty("errno"))
  41007. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  41008. return "errno: integer|Long expected";
  41009. return null;
  41010. };
  41011. /**
  41012. * Creates an adv_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
  41013. * @function fromObject
  41014. * @memberof game.adv_gift_data_rsp
  41015. * @static
  41016. * @param {Object.<string,*>} object Plain object
  41017. * @returns {game.adv_gift_data_rsp} adv_gift_data_rsp
  41018. */
  41019. adv_gift_data_rsp.fromObject = function fromObject(object) {
  41020. if (object instanceof $root.game.adv_gift_data_rsp)
  41021. return object;
  41022. let message = new $root.game.adv_gift_data_rsp();
  41023. if (object.errno != null)
  41024. if ($util.Long)
  41025. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  41026. else if (typeof object.errno === "string")
  41027. message.errno = parseInt(object.errno, 10);
  41028. else if (typeof object.errno === "number")
  41029. message.errno = object.errno;
  41030. else if (typeof object.errno === "object")
  41031. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  41032. return message;
  41033. };
  41034. /**
  41035. * Creates a plain object from an adv_gift_data_rsp message. Also converts values to other types if specified.
  41036. * @function toObject
  41037. * @memberof game.adv_gift_data_rsp
  41038. * @static
  41039. * @param {game.adv_gift_data_rsp} message adv_gift_data_rsp
  41040. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41041. * @returns {Object.<string,*>} Plain object
  41042. */
  41043. adv_gift_data_rsp.toObject = function toObject(message, options) {
  41044. if (!options)
  41045. options = {};
  41046. let object = {};
  41047. if (options.defaults)
  41048. if ($util.Long) {
  41049. let long = new $util.Long(0, 0, false);
  41050. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  41051. } else
  41052. object.errno = options.longs === String ? "0" : 0;
  41053. if (message.errno != null && message.hasOwnProperty("errno"))
  41054. if (typeof message.errno === "number")
  41055. object.errno = options.longs === String ? String(message.errno) : message.errno;
  41056. else
  41057. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  41058. return object;
  41059. };
  41060. /**
  41061. * Converts this adv_gift_data_rsp to JSON.
  41062. * @function toJSON
  41063. * @memberof game.adv_gift_data_rsp
  41064. * @instance
  41065. * @returns {Object.<string,*>} JSON object
  41066. */
  41067. adv_gift_data_rsp.prototype.toJSON = function toJSON() {
  41068. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41069. };
  41070. return adv_gift_data_rsp;
  41071. })();
  41072. game.adv_gift_buy = (function() {
  41073. /**
  41074. * Properties of an adv_gift_buy.
  41075. * @memberof game
  41076. * @interface Iadv_gift_buy
  41077. * @property {number|Long|null} [id] adv_gift_buy id
  41078. */
  41079. /**
  41080. * Constructs a new adv_gift_buy.
  41081. * @memberof game
  41082. * @classdesc Represents an adv_gift_buy.
  41083. * @implements Iadv_gift_buy
  41084. * @constructor
  41085. * @param {game.Iadv_gift_buy=} [properties] Properties to set
  41086. */
  41087. function adv_gift_buy(properties) {
  41088. if (properties)
  41089. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41090. if (properties[keys[i]] != null)
  41091. this[keys[i]] = properties[keys[i]];
  41092. }
  41093. /**
  41094. * adv_gift_buy id.
  41095. * @member {number|Long} id
  41096. * @memberof game.adv_gift_buy
  41097. * @instance
  41098. */
  41099. adv_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  41100. /**
  41101. * Creates a new adv_gift_buy instance using the specified properties.
  41102. * @function create
  41103. * @memberof game.adv_gift_buy
  41104. * @static
  41105. * @param {game.Iadv_gift_buy=} [properties] Properties to set
  41106. * @returns {game.adv_gift_buy} adv_gift_buy instance
  41107. */
  41108. adv_gift_buy.create = function create(properties) {
  41109. return new adv_gift_buy(properties);
  41110. };
  41111. /**
  41112. * Encodes the specified adv_gift_buy message. Does not implicitly {@link game.adv_gift_buy.verify|verify} messages.
  41113. * @function encode
  41114. * @memberof game.adv_gift_buy
  41115. * @static
  41116. * @param {game.Iadv_gift_buy} message adv_gift_buy message or plain object to encode
  41117. * @param {$protobuf.Writer} [writer] Writer to encode to
  41118. * @returns {$protobuf.Writer} Writer
  41119. */
  41120. adv_gift_buy.encode = function encode(message, writer) {
  41121. if (!writer)
  41122. writer = $Writer.create();
  41123. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  41124. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  41125. return writer;
  41126. };
  41127. /**
  41128. * Encodes the specified adv_gift_buy message, length delimited. Does not implicitly {@link game.adv_gift_buy.verify|verify} messages.
  41129. * @function encodeDelimited
  41130. * @memberof game.adv_gift_buy
  41131. * @static
  41132. * @param {game.Iadv_gift_buy} message adv_gift_buy message or plain object to encode
  41133. * @param {$protobuf.Writer} [writer] Writer to encode to
  41134. * @returns {$protobuf.Writer} Writer
  41135. */
  41136. adv_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
  41137. return this.encode(message, writer).ldelim();
  41138. };
  41139. /**
  41140. * Decodes an adv_gift_buy message from the specified reader or buffer.
  41141. * @function decode
  41142. * @memberof game.adv_gift_buy
  41143. * @static
  41144. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41145. * @param {number} [length] Message length if known beforehand
  41146. * @returns {game.adv_gift_buy} adv_gift_buy
  41147. * @throws {Error} If the payload is not a reader or valid buffer
  41148. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41149. */
  41150. adv_gift_buy.decode = function decode(reader, length) {
  41151. if (!(reader instanceof $Reader))
  41152. reader = $Reader.create(reader);
  41153. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_buy();
  41154. while (reader.pos < end) {
  41155. let tag = reader.uint32();
  41156. switch (tag >>> 3) {
  41157. case 2:
  41158. message.id = reader.int64();
  41159. break;
  41160. default:
  41161. reader.skipType(tag & 7);
  41162. break;
  41163. }
  41164. }
  41165. return message;
  41166. };
  41167. /**
  41168. * Decodes an adv_gift_buy message from the specified reader or buffer, length delimited.
  41169. * @function decodeDelimited
  41170. * @memberof game.adv_gift_buy
  41171. * @static
  41172. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41173. * @returns {game.adv_gift_buy} adv_gift_buy
  41174. * @throws {Error} If the payload is not a reader or valid buffer
  41175. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41176. */
  41177. adv_gift_buy.decodeDelimited = function decodeDelimited(reader) {
  41178. if (!(reader instanceof $Reader))
  41179. reader = new $Reader(reader);
  41180. return this.decode(reader, reader.uint32());
  41181. };
  41182. /**
  41183. * Verifies an adv_gift_buy message.
  41184. * @function verify
  41185. * @memberof game.adv_gift_buy
  41186. * @static
  41187. * @param {Object.<string,*>} message Plain object to verify
  41188. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41189. */
  41190. adv_gift_buy.verify = function verify(message) {
  41191. if (typeof message !== "object" || message === null)
  41192. return "object expected";
  41193. if (message.id != null && message.hasOwnProperty("id"))
  41194. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  41195. return "id: integer|Long expected";
  41196. return null;
  41197. };
  41198. /**
  41199. * Creates an adv_gift_buy message from a plain object. Also converts values to their respective internal types.
  41200. * @function fromObject
  41201. * @memberof game.adv_gift_buy
  41202. * @static
  41203. * @param {Object.<string,*>} object Plain object
  41204. * @returns {game.adv_gift_buy} adv_gift_buy
  41205. */
  41206. adv_gift_buy.fromObject = function fromObject(object) {
  41207. if (object instanceof $root.game.adv_gift_buy)
  41208. return object;
  41209. let message = new $root.game.adv_gift_buy();
  41210. if (object.id != null)
  41211. if ($util.Long)
  41212. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  41213. else if (typeof object.id === "string")
  41214. message.id = parseInt(object.id, 10);
  41215. else if (typeof object.id === "number")
  41216. message.id = object.id;
  41217. else if (typeof object.id === "object")
  41218. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  41219. return message;
  41220. };
  41221. /**
  41222. * Creates a plain object from an adv_gift_buy message. Also converts values to other types if specified.
  41223. * @function toObject
  41224. * @memberof game.adv_gift_buy
  41225. * @static
  41226. * @param {game.adv_gift_buy} message adv_gift_buy
  41227. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41228. * @returns {Object.<string,*>} Plain object
  41229. */
  41230. adv_gift_buy.toObject = function toObject(message, options) {
  41231. if (!options)
  41232. options = {};
  41233. let object = {};
  41234. if (options.defaults)
  41235. if ($util.Long) {
  41236. let long = new $util.Long(0, 0, false);
  41237. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  41238. } else
  41239. object.id = options.longs === String ? "0" : 0;
  41240. if (message.id != null && message.hasOwnProperty("id"))
  41241. if (typeof message.id === "number")
  41242. object.id = options.longs === String ? String(message.id) : message.id;
  41243. else
  41244. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  41245. return object;
  41246. };
  41247. /**
  41248. * Converts this adv_gift_buy to JSON.
  41249. * @function toJSON
  41250. * @memberof game.adv_gift_buy
  41251. * @instance
  41252. * @returns {Object.<string,*>} JSON object
  41253. */
  41254. adv_gift_buy.prototype.toJSON = function toJSON() {
  41255. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41256. };
  41257. return adv_gift_buy;
  41258. })();
  41259. game.adv_gift_buy_rsp = (function() {
  41260. /**
  41261. * Properties of an adv_gift_buy_rsp.
  41262. * @memberof game
  41263. * @interface Iadv_gift_buy_rsp
  41264. * @property {number|Long|null} [errno] adv_gift_buy_rsp errno
  41265. */
  41266. /**
  41267. * Constructs a new adv_gift_buy_rsp.
  41268. * @memberof game
  41269. * @classdesc Represents an adv_gift_buy_rsp.
  41270. * @implements Iadv_gift_buy_rsp
  41271. * @constructor
  41272. * @param {game.Iadv_gift_buy_rsp=} [properties] Properties to set
  41273. */
  41274. function adv_gift_buy_rsp(properties) {
  41275. if (properties)
  41276. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41277. if (properties[keys[i]] != null)
  41278. this[keys[i]] = properties[keys[i]];
  41279. }
  41280. /**
  41281. * adv_gift_buy_rsp errno.
  41282. * @member {number|Long} errno
  41283. * @memberof game.adv_gift_buy_rsp
  41284. * @instance
  41285. */
  41286. adv_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  41287. /**
  41288. * Creates a new adv_gift_buy_rsp instance using the specified properties.
  41289. * @function create
  41290. * @memberof game.adv_gift_buy_rsp
  41291. * @static
  41292. * @param {game.Iadv_gift_buy_rsp=} [properties] Properties to set
  41293. * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp instance
  41294. */
  41295. adv_gift_buy_rsp.create = function create(properties) {
  41296. return new adv_gift_buy_rsp(properties);
  41297. };
  41298. /**
  41299. * Encodes the specified adv_gift_buy_rsp message. Does not implicitly {@link game.adv_gift_buy_rsp.verify|verify} messages.
  41300. * @function encode
  41301. * @memberof game.adv_gift_buy_rsp
  41302. * @static
  41303. * @param {game.Iadv_gift_buy_rsp} message adv_gift_buy_rsp message or plain object to encode
  41304. * @param {$protobuf.Writer} [writer] Writer to encode to
  41305. * @returns {$protobuf.Writer} Writer
  41306. */
  41307. adv_gift_buy_rsp.encode = function encode(message, writer) {
  41308. if (!writer)
  41309. writer = $Writer.create();
  41310. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  41311. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  41312. return writer;
  41313. };
  41314. /**
  41315. * Encodes the specified adv_gift_buy_rsp message, length delimited. Does not implicitly {@link game.adv_gift_buy_rsp.verify|verify} messages.
  41316. * @function encodeDelimited
  41317. * @memberof game.adv_gift_buy_rsp
  41318. * @static
  41319. * @param {game.Iadv_gift_buy_rsp} message adv_gift_buy_rsp message or plain object to encode
  41320. * @param {$protobuf.Writer} [writer] Writer to encode to
  41321. * @returns {$protobuf.Writer} Writer
  41322. */
  41323. adv_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  41324. return this.encode(message, writer).ldelim();
  41325. };
  41326. /**
  41327. * Decodes an adv_gift_buy_rsp message from the specified reader or buffer.
  41328. * @function decode
  41329. * @memberof game.adv_gift_buy_rsp
  41330. * @static
  41331. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41332. * @param {number} [length] Message length if known beforehand
  41333. * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
  41334. * @throws {Error} If the payload is not a reader or valid buffer
  41335. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41336. */
  41337. adv_gift_buy_rsp.decode = function decode(reader, length) {
  41338. if (!(reader instanceof $Reader))
  41339. reader = $Reader.create(reader);
  41340. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_buy_rsp();
  41341. while (reader.pos < end) {
  41342. let tag = reader.uint32();
  41343. switch (tag >>> 3) {
  41344. case 1:
  41345. message.errno = reader.int64();
  41346. break;
  41347. default:
  41348. reader.skipType(tag & 7);
  41349. break;
  41350. }
  41351. }
  41352. return message;
  41353. };
  41354. /**
  41355. * Decodes an adv_gift_buy_rsp message from the specified reader or buffer, length delimited.
  41356. * @function decodeDelimited
  41357. * @memberof game.adv_gift_buy_rsp
  41358. * @static
  41359. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41360. * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
  41361. * @throws {Error} If the payload is not a reader or valid buffer
  41362. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41363. */
  41364. adv_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  41365. if (!(reader instanceof $Reader))
  41366. reader = new $Reader(reader);
  41367. return this.decode(reader, reader.uint32());
  41368. };
  41369. /**
  41370. * Verifies an adv_gift_buy_rsp message.
  41371. * @function verify
  41372. * @memberof game.adv_gift_buy_rsp
  41373. * @static
  41374. * @param {Object.<string,*>} message Plain object to verify
  41375. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41376. */
  41377. adv_gift_buy_rsp.verify = function verify(message) {
  41378. if (typeof message !== "object" || message === null)
  41379. return "object expected";
  41380. if (message.errno != null && message.hasOwnProperty("errno"))
  41381. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  41382. return "errno: integer|Long expected";
  41383. return null;
  41384. };
  41385. /**
  41386. * Creates an adv_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
  41387. * @function fromObject
  41388. * @memberof game.adv_gift_buy_rsp
  41389. * @static
  41390. * @param {Object.<string,*>} object Plain object
  41391. * @returns {game.adv_gift_buy_rsp} adv_gift_buy_rsp
  41392. */
  41393. adv_gift_buy_rsp.fromObject = function fromObject(object) {
  41394. if (object instanceof $root.game.adv_gift_buy_rsp)
  41395. return object;
  41396. let message = new $root.game.adv_gift_buy_rsp();
  41397. if (object.errno != null)
  41398. if ($util.Long)
  41399. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  41400. else if (typeof object.errno === "string")
  41401. message.errno = parseInt(object.errno, 10);
  41402. else if (typeof object.errno === "number")
  41403. message.errno = object.errno;
  41404. else if (typeof object.errno === "object")
  41405. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  41406. return message;
  41407. };
  41408. /**
  41409. * Creates a plain object from an adv_gift_buy_rsp message. Also converts values to other types if specified.
  41410. * @function toObject
  41411. * @memberof game.adv_gift_buy_rsp
  41412. * @static
  41413. * @param {game.adv_gift_buy_rsp} message adv_gift_buy_rsp
  41414. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41415. * @returns {Object.<string,*>} Plain object
  41416. */
  41417. adv_gift_buy_rsp.toObject = function toObject(message, options) {
  41418. if (!options)
  41419. options = {};
  41420. let object = {};
  41421. if (options.defaults)
  41422. if ($util.Long) {
  41423. let long = new $util.Long(0, 0, false);
  41424. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  41425. } else
  41426. object.errno = options.longs === String ? "0" : 0;
  41427. if (message.errno != null && message.hasOwnProperty("errno"))
  41428. if (typeof message.errno === "number")
  41429. object.errno = options.longs === String ? String(message.errno) : message.errno;
  41430. else
  41431. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  41432. return object;
  41433. };
  41434. /**
  41435. * Converts this adv_gift_buy_rsp to JSON.
  41436. * @function toJSON
  41437. * @memberof game.adv_gift_buy_rsp
  41438. * @instance
  41439. * @returns {Object.<string,*>} JSON object
  41440. */
  41441. adv_gift_buy_rsp.prototype.toJSON = function toJSON() {
  41442. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41443. };
  41444. return adv_gift_buy_rsp;
  41445. })();
  41446. game.adv_gift_nty = (function() {
  41447. /**
  41448. * Properties of an adv_gift_nty.
  41449. * @memberof game
  41450. * @interface Iadv_gift_nty
  41451. * @property {Array.<game.Iid_num>|null} [list] adv_gift_nty list
  41452. */
  41453. /**
  41454. * Constructs a new adv_gift_nty.
  41455. * @memberof game
  41456. * @classdesc Represents an adv_gift_nty.
  41457. * @implements Iadv_gift_nty
  41458. * @constructor
  41459. * @param {game.Iadv_gift_nty=} [properties] Properties to set
  41460. */
  41461. function adv_gift_nty(properties) {
  41462. this.list = [];
  41463. if (properties)
  41464. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41465. if (properties[keys[i]] != null)
  41466. this[keys[i]] = properties[keys[i]];
  41467. }
  41468. /**
  41469. * adv_gift_nty list.
  41470. * @member {Array.<game.Iid_num>} list
  41471. * @memberof game.adv_gift_nty
  41472. * @instance
  41473. */
  41474. adv_gift_nty.prototype.list = $util.emptyArray;
  41475. /**
  41476. * Creates a new adv_gift_nty instance using the specified properties.
  41477. * @function create
  41478. * @memberof game.adv_gift_nty
  41479. * @static
  41480. * @param {game.Iadv_gift_nty=} [properties] Properties to set
  41481. * @returns {game.adv_gift_nty} adv_gift_nty instance
  41482. */
  41483. adv_gift_nty.create = function create(properties) {
  41484. return new adv_gift_nty(properties);
  41485. };
  41486. /**
  41487. * Encodes the specified adv_gift_nty message. Does not implicitly {@link game.adv_gift_nty.verify|verify} messages.
  41488. * @function encode
  41489. * @memberof game.adv_gift_nty
  41490. * @static
  41491. * @param {game.Iadv_gift_nty} message adv_gift_nty message or plain object to encode
  41492. * @param {$protobuf.Writer} [writer] Writer to encode to
  41493. * @returns {$protobuf.Writer} Writer
  41494. */
  41495. adv_gift_nty.encode = function encode(message, writer) {
  41496. if (!writer)
  41497. writer = $Writer.create();
  41498. if (message.list != null && message.list.length)
  41499. for (let i = 0; i < message.list.length; ++i)
  41500. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  41501. return writer;
  41502. };
  41503. /**
  41504. * Encodes the specified adv_gift_nty message, length delimited. Does not implicitly {@link game.adv_gift_nty.verify|verify} messages.
  41505. * @function encodeDelimited
  41506. * @memberof game.adv_gift_nty
  41507. * @static
  41508. * @param {game.Iadv_gift_nty} message adv_gift_nty message or plain object to encode
  41509. * @param {$protobuf.Writer} [writer] Writer to encode to
  41510. * @returns {$protobuf.Writer} Writer
  41511. */
  41512. adv_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
  41513. return this.encode(message, writer).ldelim();
  41514. };
  41515. /**
  41516. * Decodes an adv_gift_nty message from the specified reader or buffer.
  41517. * @function decode
  41518. * @memberof game.adv_gift_nty
  41519. * @static
  41520. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41521. * @param {number} [length] Message length if known beforehand
  41522. * @returns {game.adv_gift_nty} adv_gift_nty
  41523. * @throws {Error} If the payload is not a reader or valid buffer
  41524. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41525. */
  41526. adv_gift_nty.decode = function decode(reader, length) {
  41527. if (!(reader instanceof $Reader))
  41528. reader = $Reader.create(reader);
  41529. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.adv_gift_nty();
  41530. while (reader.pos < end) {
  41531. let tag = reader.uint32();
  41532. switch (tag >>> 3) {
  41533. case 1:
  41534. if (!(message.list && message.list.length))
  41535. message.list = [];
  41536. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  41537. break;
  41538. default:
  41539. reader.skipType(tag & 7);
  41540. break;
  41541. }
  41542. }
  41543. return message;
  41544. };
  41545. /**
  41546. * Decodes an adv_gift_nty message from the specified reader or buffer, length delimited.
  41547. * @function decodeDelimited
  41548. * @memberof game.adv_gift_nty
  41549. * @static
  41550. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41551. * @returns {game.adv_gift_nty} adv_gift_nty
  41552. * @throws {Error} If the payload is not a reader or valid buffer
  41553. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41554. */
  41555. adv_gift_nty.decodeDelimited = function decodeDelimited(reader) {
  41556. if (!(reader instanceof $Reader))
  41557. reader = new $Reader(reader);
  41558. return this.decode(reader, reader.uint32());
  41559. };
  41560. /**
  41561. * Verifies an adv_gift_nty message.
  41562. * @function verify
  41563. * @memberof game.adv_gift_nty
  41564. * @static
  41565. * @param {Object.<string,*>} message Plain object to verify
  41566. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41567. */
  41568. adv_gift_nty.verify = function verify(message) {
  41569. if (typeof message !== "object" || message === null)
  41570. return "object expected";
  41571. if (message.list != null && message.hasOwnProperty("list")) {
  41572. if (!Array.isArray(message.list))
  41573. return "list: array expected";
  41574. for (let i = 0; i < message.list.length; ++i) {
  41575. let error = $root.game.id_num.verify(message.list[i]);
  41576. if (error)
  41577. return "list." + error;
  41578. }
  41579. }
  41580. return null;
  41581. };
  41582. /**
  41583. * Creates an adv_gift_nty message from a plain object. Also converts values to their respective internal types.
  41584. * @function fromObject
  41585. * @memberof game.adv_gift_nty
  41586. * @static
  41587. * @param {Object.<string,*>} object Plain object
  41588. * @returns {game.adv_gift_nty} adv_gift_nty
  41589. */
  41590. adv_gift_nty.fromObject = function fromObject(object) {
  41591. if (object instanceof $root.game.adv_gift_nty)
  41592. return object;
  41593. let message = new $root.game.adv_gift_nty();
  41594. if (object.list) {
  41595. if (!Array.isArray(object.list))
  41596. throw TypeError(".game.adv_gift_nty.list: array expected");
  41597. message.list = [];
  41598. for (let i = 0; i < object.list.length; ++i) {
  41599. if (typeof object.list[i] !== "object")
  41600. throw TypeError(".game.adv_gift_nty.list: object expected");
  41601. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  41602. }
  41603. }
  41604. return message;
  41605. };
  41606. /**
  41607. * Creates a plain object from an adv_gift_nty message. Also converts values to other types if specified.
  41608. * @function toObject
  41609. * @memberof game.adv_gift_nty
  41610. * @static
  41611. * @param {game.adv_gift_nty} message adv_gift_nty
  41612. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41613. * @returns {Object.<string,*>} Plain object
  41614. */
  41615. adv_gift_nty.toObject = function toObject(message, options) {
  41616. if (!options)
  41617. options = {};
  41618. let object = {};
  41619. if (options.arrays || options.defaults)
  41620. object.list = [];
  41621. if (message.list && message.list.length) {
  41622. object.list = [];
  41623. for (let j = 0; j < message.list.length; ++j)
  41624. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  41625. }
  41626. return object;
  41627. };
  41628. /**
  41629. * Converts this adv_gift_nty to JSON.
  41630. * @function toJSON
  41631. * @memberof game.adv_gift_nty
  41632. * @instance
  41633. * @returns {Object.<string,*>} JSON object
  41634. */
  41635. adv_gift_nty.prototype.toJSON = function toJSON() {
  41636. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41637. };
  41638. return adv_gift_nty;
  41639. })();
  41640. game.pop_gift_data = (function() {
  41641. /**
  41642. * Properties of a pop_gift_data.
  41643. * @memberof game
  41644. * @interface Ipop_gift_data
  41645. */
  41646. /**
  41647. * Constructs a new pop_gift_data.
  41648. * @memberof game
  41649. * @classdesc Represents a pop_gift_data.
  41650. * @implements Ipop_gift_data
  41651. * @constructor
  41652. * @param {game.Ipop_gift_data=} [properties] Properties to set
  41653. */
  41654. function pop_gift_data(properties) {
  41655. if (properties)
  41656. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41657. if (properties[keys[i]] != null)
  41658. this[keys[i]] = properties[keys[i]];
  41659. }
  41660. /**
  41661. * Creates a new pop_gift_data instance using the specified properties.
  41662. * @function create
  41663. * @memberof game.pop_gift_data
  41664. * @static
  41665. * @param {game.Ipop_gift_data=} [properties] Properties to set
  41666. * @returns {game.pop_gift_data} pop_gift_data instance
  41667. */
  41668. pop_gift_data.create = function create(properties) {
  41669. return new pop_gift_data(properties);
  41670. };
  41671. /**
  41672. * Encodes the specified pop_gift_data message. Does not implicitly {@link game.pop_gift_data.verify|verify} messages.
  41673. * @function encode
  41674. * @memberof game.pop_gift_data
  41675. * @static
  41676. * @param {game.Ipop_gift_data} message pop_gift_data message or plain object to encode
  41677. * @param {$protobuf.Writer} [writer] Writer to encode to
  41678. * @returns {$protobuf.Writer} Writer
  41679. */
  41680. pop_gift_data.encode = function encode(message, writer) {
  41681. if (!writer)
  41682. writer = $Writer.create();
  41683. return writer;
  41684. };
  41685. /**
  41686. * Encodes the specified pop_gift_data message, length delimited. Does not implicitly {@link game.pop_gift_data.verify|verify} messages.
  41687. * @function encodeDelimited
  41688. * @memberof game.pop_gift_data
  41689. * @static
  41690. * @param {game.Ipop_gift_data} message pop_gift_data message or plain object to encode
  41691. * @param {$protobuf.Writer} [writer] Writer to encode to
  41692. * @returns {$protobuf.Writer} Writer
  41693. */
  41694. pop_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
  41695. return this.encode(message, writer).ldelim();
  41696. };
  41697. /**
  41698. * Decodes a pop_gift_data message from the specified reader or buffer.
  41699. * @function decode
  41700. * @memberof game.pop_gift_data
  41701. * @static
  41702. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41703. * @param {number} [length] Message length if known beforehand
  41704. * @returns {game.pop_gift_data} pop_gift_data
  41705. * @throws {Error} If the payload is not a reader or valid buffer
  41706. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41707. */
  41708. pop_gift_data.decode = function decode(reader, length) {
  41709. if (!(reader instanceof $Reader))
  41710. reader = $Reader.create(reader);
  41711. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_data();
  41712. while (reader.pos < end) {
  41713. let tag = reader.uint32();
  41714. switch (tag >>> 3) {
  41715. default:
  41716. reader.skipType(tag & 7);
  41717. break;
  41718. }
  41719. }
  41720. return message;
  41721. };
  41722. /**
  41723. * Decodes a pop_gift_data message from the specified reader or buffer, length delimited.
  41724. * @function decodeDelimited
  41725. * @memberof game.pop_gift_data
  41726. * @static
  41727. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41728. * @returns {game.pop_gift_data} pop_gift_data
  41729. * @throws {Error} If the payload is not a reader or valid buffer
  41730. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41731. */
  41732. pop_gift_data.decodeDelimited = function decodeDelimited(reader) {
  41733. if (!(reader instanceof $Reader))
  41734. reader = new $Reader(reader);
  41735. return this.decode(reader, reader.uint32());
  41736. };
  41737. /**
  41738. * Verifies a pop_gift_data message.
  41739. * @function verify
  41740. * @memberof game.pop_gift_data
  41741. * @static
  41742. * @param {Object.<string,*>} message Plain object to verify
  41743. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41744. */
  41745. pop_gift_data.verify = function verify(message) {
  41746. if (typeof message !== "object" || message === null)
  41747. return "object expected";
  41748. return null;
  41749. };
  41750. /**
  41751. * Creates a pop_gift_data message from a plain object. Also converts values to their respective internal types.
  41752. * @function fromObject
  41753. * @memberof game.pop_gift_data
  41754. * @static
  41755. * @param {Object.<string,*>} object Plain object
  41756. * @returns {game.pop_gift_data} pop_gift_data
  41757. */
  41758. pop_gift_data.fromObject = function fromObject(object) {
  41759. if (object instanceof $root.game.pop_gift_data)
  41760. return object;
  41761. return new $root.game.pop_gift_data();
  41762. };
  41763. /**
  41764. * Creates a plain object from a pop_gift_data message. Also converts values to other types if specified.
  41765. * @function toObject
  41766. * @memberof game.pop_gift_data
  41767. * @static
  41768. * @param {game.pop_gift_data} message pop_gift_data
  41769. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41770. * @returns {Object.<string,*>} Plain object
  41771. */
  41772. pop_gift_data.toObject = function toObject() {
  41773. return {};
  41774. };
  41775. /**
  41776. * Converts this pop_gift_data to JSON.
  41777. * @function toJSON
  41778. * @memberof game.pop_gift_data
  41779. * @instance
  41780. * @returns {Object.<string,*>} JSON object
  41781. */
  41782. pop_gift_data.prototype.toJSON = function toJSON() {
  41783. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  41784. };
  41785. return pop_gift_data;
  41786. })();
  41787. game.pop_gift_data_rsp = (function() {
  41788. /**
  41789. * Properties of a pop_gift_data_rsp.
  41790. * @memberof game
  41791. * @interface Ipop_gift_data_rsp
  41792. * @property {number|Long|null} [errno] pop_gift_data_rsp errno
  41793. * @property {Array.<game.Ipop_gift_info>|null} [list] pop_gift_data_rsp list
  41794. */
  41795. /**
  41796. * Constructs a new pop_gift_data_rsp.
  41797. * @memberof game
  41798. * @classdesc Represents a pop_gift_data_rsp.
  41799. * @implements Ipop_gift_data_rsp
  41800. * @constructor
  41801. * @param {game.Ipop_gift_data_rsp=} [properties] Properties to set
  41802. */
  41803. function pop_gift_data_rsp(properties) {
  41804. this.list = [];
  41805. if (properties)
  41806. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  41807. if (properties[keys[i]] != null)
  41808. this[keys[i]] = properties[keys[i]];
  41809. }
  41810. /**
  41811. * pop_gift_data_rsp errno.
  41812. * @member {number|Long} errno
  41813. * @memberof game.pop_gift_data_rsp
  41814. * @instance
  41815. */
  41816. pop_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  41817. /**
  41818. * pop_gift_data_rsp list.
  41819. * @member {Array.<game.Ipop_gift_info>} list
  41820. * @memberof game.pop_gift_data_rsp
  41821. * @instance
  41822. */
  41823. pop_gift_data_rsp.prototype.list = $util.emptyArray;
  41824. /**
  41825. * Creates a new pop_gift_data_rsp instance using the specified properties.
  41826. * @function create
  41827. * @memberof game.pop_gift_data_rsp
  41828. * @static
  41829. * @param {game.Ipop_gift_data_rsp=} [properties] Properties to set
  41830. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp instance
  41831. */
  41832. pop_gift_data_rsp.create = function create(properties) {
  41833. return new pop_gift_data_rsp(properties);
  41834. };
  41835. /**
  41836. * Encodes the specified pop_gift_data_rsp message. Does not implicitly {@link game.pop_gift_data_rsp.verify|verify} messages.
  41837. * @function encode
  41838. * @memberof game.pop_gift_data_rsp
  41839. * @static
  41840. * @param {game.Ipop_gift_data_rsp} message pop_gift_data_rsp message or plain object to encode
  41841. * @param {$protobuf.Writer} [writer] Writer to encode to
  41842. * @returns {$protobuf.Writer} Writer
  41843. */
  41844. pop_gift_data_rsp.encode = function encode(message, writer) {
  41845. if (!writer)
  41846. writer = $Writer.create();
  41847. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  41848. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  41849. if (message.list != null && message.list.length)
  41850. for (let i = 0; i < message.list.length; ++i)
  41851. $root.game.pop_gift_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  41852. return writer;
  41853. };
  41854. /**
  41855. * Encodes the specified pop_gift_data_rsp message, length delimited. Does not implicitly {@link game.pop_gift_data_rsp.verify|verify} messages.
  41856. * @function encodeDelimited
  41857. * @memberof game.pop_gift_data_rsp
  41858. * @static
  41859. * @param {game.Ipop_gift_data_rsp} message pop_gift_data_rsp message or plain object to encode
  41860. * @param {$protobuf.Writer} [writer] Writer to encode to
  41861. * @returns {$protobuf.Writer} Writer
  41862. */
  41863. pop_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  41864. return this.encode(message, writer).ldelim();
  41865. };
  41866. /**
  41867. * Decodes a pop_gift_data_rsp message from the specified reader or buffer.
  41868. * @function decode
  41869. * @memberof game.pop_gift_data_rsp
  41870. * @static
  41871. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41872. * @param {number} [length] Message length if known beforehand
  41873. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
  41874. * @throws {Error} If the payload is not a reader or valid buffer
  41875. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41876. */
  41877. pop_gift_data_rsp.decode = function decode(reader, length) {
  41878. if (!(reader instanceof $Reader))
  41879. reader = $Reader.create(reader);
  41880. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_data_rsp();
  41881. while (reader.pos < end) {
  41882. let tag = reader.uint32();
  41883. switch (tag >>> 3) {
  41884. case 1:
  41885. message.errno = reader.int64();
  41886. break;
  41887. case 2:
  41888. if (!(message.list && message.list.length))
  41889. message.list = [];
  41890. message.list.push($root.game.pop_gift_info.decode(reader, reader.uint32()));
  41891. break;
  41892. default:
  41893. reader.skipType(tag & 7);
  41894. break;
  41895. }
  41896. }
  41897. return message;
  41898. };
  41899. /**
  41900. * Decodes a pop_gift_data_rsp message from the specified reader or buffer, length delimited.
  41901. * @function decodeDelimited
  41902. * @memberof game.pop_gift_data_rsp
  41903. * @static
  41904. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  41905. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
  41906. * @throws {Error} If the payload is not a reader or valid buffer
  41907. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  41908. */
  41909. pop_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  41910. if (!(reader instanceof $Reader))
  41911. reader = new $Reader(reader);
  41912. return this.decode(reader, reader.uint32());
  41913. };
  41914. /**
  41915. * Verifies a pop_gift_data_rsp message.
  41916. * @function verify
  41917. * @memberof game.pop_gift_data_rsp
  41918. * @static
  41919. * @param {Object.<string,*>} message Plain object to verify
  41920. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  41921. */
  41922. pop_gift_data_rsp.verify = function verify(message) {
  41923. if (typeof message !== "object" || message === null)
  41924. return "object expected";
  41925. if (message.errno != null && message.hasOwnProperty("errno"))
  41926. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  41927. return "errno: integer|Long expected";
  41928. if (message.list != null && message.hasOwnProperty("list")) {
  41929. if (!Array.isArray(message.list))
  41930. return "list: array expected";
  41931. for (let i = 0; i < message.list.length; ++i) {
  41932. let error = $root.game.pop_gift_info.verify(message.list[i]);
  41933. if (error)
  41934. return "list." + error;
  41935. }
  41936. }
  41937. return null;
  41938. };
  41939. /**
  41940. * Creates a pop_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
  41941. * @function fromObject
  41942. * @memberof game.pop_gift_data_rsp
  41943. * @static
  41944. * @param {Object.<string,*>} object Plain object
  41945. * @returns {game.pop_gift_data_rsp} pop_gift_data_rsp
  41946. */
  41947. pop_gift_data_rsp.fromObject = function fromObject(object) {
  41948. if (object instanceof $root.game.pop_gift_data_rsp)
  41949. return object;
  41950. let message = new $root.game.pop_gift_data_rsp();
  41951. if (object.errno != null)
  41952. if ($util.Long)
  41953. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  41954. else if (typeof object.errno === "string")
  41955. message.errno = parseInt(object.errno, 10);
  41956. else if (typeof object.errno === "number")
  41957. message.errno = object.errno;
  41958. else if (typeof object.errno === "object")
  41959. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  41960. if (object.list) {
  41961. if (!Array.isArray(object.list))
  41962. throw TypeError(".game.pop_gift_data_rsp.list: array expected");
  41963. message.list = [];
  41964. for (let i = 0; i < object.list.length; ++i) {
  41965. if (typeof object.list[i] !== "object")
  41966. throw TypeError(".game.pop_gift_data_rsp.list: object expected");
  41967. message.list[i] = $root.game.pop_gift_info.fromObject(object.list[i]);
  41968. }
  41969. }
  41970. return message;
  41971. };
  41972. /**
  41973. * Creates a plain object from a pop_gift_data_rsp message. Also converts values to other types if specified.
  41974. * @function toObject
  41975. * @memberof game.pop_gift_data_rsp
  41976. * @static
  41977. * @param {game.pop_gift_data_rsp} message pop_gift_data_rsp
  41978. * @param {$protobuf.IConversionOptions} [options] Conversion options
  41979. * @returns {Object.<string,*>} Plain object
  41980. */
  41981. pop_gift_data_rsp.toObject = function toObject(message, options) {
  41982. if (!options)
  41983. options = {};
  41984. let object = {};
  41985. if (options.arrays || options.defaults)
  41986. object.list = [];
  41987. if (options.defaults)
  41988. if ($util.Long) {
  41989. let long = new $util.Long(0, 0, false);
  41990. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  41991. } else
  41992. object.errno = options.longs === String ? "0" : 0;
  41993. if (message.errno != null && message.hasOwnProperty("errno"))
  41994. if (typeof message.errno === "number")
  41995. object.errno = options.longs === String ? String(message.errno) : message.errno;
  41996. else
  41997. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  41998. if (message.list && message.list.length) {
  41999. object.list = [];
  42000. for (let j = 0; j < message.list.length; ++j)
  42001. object.list[j] = $root.game.pop_gift_info.toObject(message.list[j], options);
  42002. }
  42003. return object;
  42004. };
  42005. /**
  42006. * Converts this pop_gift_data_rsp to JSON.
  42007. * @function toJSON
  42008. * @memberof game.pop_gift_data_rsp
  42009. * @instance
  42010. * @returns {Object.<string,*>} JSON object
  42011. */
  42012. pop_gift_data_rsp.prototype.toJSON = function toJSON() {
  42013. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42014. };
  42015. return pop_gift_data_rsp;
  42016. })();
  42017. game.pop_gift_buy = (function() {
  42018. /**
  42019. * Properties of a pop_gift_buy.
  42020. * @memberof game
  42021. * @interface Ipop_gift_buy
  42022. * @property {number|Long|null} [id] pop_gift_buy id
  42023. */
  42024. /**
  42025. * Constructs a new pop_gift_buy.
  42026. * @memberof game
  42027. * @classdesc Represents a pop_gift_buy.
  42028. * @implements Ipop_gift_buy
  42029. * @constructor
  42030. * @param {game.Ipop_gift_buy=} [properties] Properties to set
  42031. */
  42032. function pop_gift_buy(properties) {
  42033. if (properties)
  42034. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42035. if (properties[keys[i]] != null)
  42036. this[keys[i]] = properties[keys[i]];
  42037. }
  42038. /**
  42039. * pop_gift_buy id.
  42040. * @member {number|Long} id
  42041. * @memberof game.pop_gift_buy
  42042. * @instance
  42043. */
  42044. pop_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42045. /**
  42046. * Creates a new pop_gift_buy instance using the specified properties.
  42047. * @function create
  42048. * @memberof game.pop_gift_buy
  42049. * @static
  42050. * @param {game.Ipop_gift_buy=} [properties] Properties to set
  42051. * @returns {game.pop_gift_buy} pop_gift_buy instance
  42052. */
  42053. pop_gift_buy.create = function create(properties) {
  42054. return new pop_gift_buy(properties);
  42055. };
  42056. /**
  42057. * Encodes the specified pop_gift_buy message. Does not implicitly {@link game.pop_gift_buy.verify|verify} messages.
  42058. * @function encode
  42059. * @memberof game.pop_gift_buy
  42060. * @static
  42061. * @param {game.Ipop_gift_buy} message pop_gift_buy message or plain object to encode
  42062. * @param {$protobuf.Writer} [writer] Writer to encode to
  42063. * @returns {$protobuf.Writer} Writer
  42064. */
  42065. pop_gift_buy.encode = function encode(message, writer) {
  42066. if (!writer)
  42067. writer = $Writer.create();
  42068. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  42069. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  42070. return writer;
  42071. };
  42072. /**
  42073. * Encodes the specified pop_gift_buy message, length delimited. Does not implicitly {@link game.pop_gift_buy.verify|verify} messages.
  42074. * @function encodeDelimited
  42075. * @memberof game.pop_gift_buy
  42076. * @static
  42077. * @param {game.Ipop_gift_buy} message pop_gift_buy message or plain object to encode
  42078. * @param {$protobuf.Writer} [writer] Writer to encode to
  42079. * @returns {$protobuf.Writer} Writer
  42080. */
  42081. pop_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
  42082. return this.encode(message, writer).ldelim();
  42083. };
  42084. /**
  42085. * Decodes a pop_gift_buy message from the specified reader or buffer.
  42086. * @function decode
  42087. * @memberof game.pop_gift_buy
  42088. * @static
  42089. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42090. * @param {number} [length] Message length if known beforehand
  42091. * @returns {game.pop_gift_buy} pop_gift_buy
  42092. * @throws {Error} If the payload is not a reader or valid buffer
  42093. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42094. */
  42095. pop_gift_buy.decode = function decode(reader, length) {
  42096. if (!(reader instanceof $Reader))
  42097. reader = $Reader.create(reader);
  42098. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_buy();
  42099. while (reader.pos < end) {
  42100. let tag = reader.uint32();
  42101. switch (tag >>> 3) {
  42102. case 1:
  42103. message.id = reader.int64();
  42104. break;
  42105. default:
  42106. reader.skipType(tag & 7);
  42107. break;
  42108. }
  42109. }
  42110. return message;
  42111. };
  42112. /**
  42113. * Decodes a pop_gift_buy message from the specified reader or buffer, length delimited.
  42114. * @function decodeDelimited
  42115. * @memberof game.pop_gift_buy
  42116. * @static
  42117. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42118. * @returns {game.pop_gift_buy} pop_gift_buy
  42119. * @throws {Error} If the payload is not a reader or valid buffer
  42120. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42121. */
  42122. pop_gift_buy.decodeDelimited = function decodeDelimited(reader) {
  42123. if (!(reader instanceof $Reader))
  42124. reader = new $Reader(reader);
  42125. return this.decode(reader, reader.uint32());
  42126. };
  42127. /**
  42128. * Verifies a pop_gift_buy message.
  42129. * @function verify
  42130. * @memberof game.pop_gift_buy
  42131. * @static
  42132. * @param {Object.<string,*>} message Plain object to verify
  42133. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42134. */
  42135. pop_gift_buy.verify = function verify(message) {
  42136. if (typeof message !== "object" || message === null)
  42137. return "object expected";
  42138. if (message.id != null && message.hasOwnProperty("id"))
  42139. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  42140. return "id: integer|Long expected";
  42141. return null;
  42142. };
  42143. /**
  42144. * Creates a pop_gift_buy message from a plain object. Also converts values to their respective internal types.
  42145. * @function fromObject
  42146. * @memberof game.pop_gift_buy
  42147. * @static
  42148. * @param {Object.<string,*>} object Plain object
  42149. * @returns {game.pop_gift_buy} pop_gift_buy
  42150. */
  42151. pop_gift_buy.fromObject = function fromObject(object) {
  42152. if (object instanceof $root.game.pop_gift_buy)
  42153. return object;
  42154. let message = new $root.game.pop_gift_buy();
  42155. if (object.id != null)
  42156. if ($util.Long)
  42157. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  42158. else if (typeof object.id === "string")
  42159. message.id = parseInt(object.id, 10);
  42160. else if (typeof object.id === "number")
  42161. message.id = object.id;
  42162. else if (typeof object.id === "object")
  42163. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  42164. return message;
  42165. };
  42166. /**
  42167. * Creates a plain object from a pop_gift_buy message. Also converts values to other types if specified.
  42168. * @function toObject
  42169. * @memberof game.pop_gift_buy
  42170. * @static
  42171. * @param {game.pop_gift_buy} message pop_gift_buy
  42172. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42173. * @returns {Object.<string,*>} Plain object
  42174. */
  42175. pop_gift_buy.toObject = function toObject(message, options) {
  42176. if (!options)
  42177. options = {};
  42178. let object = {};
  42179. if (options.defaults)
  42180. if ($util.Long) {
  42181. let long = new $util.Long(0, 0, false);
  42182. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  42183. } else
  42184. object.id = options.longs === String ? "0" : 0;
  42185. if (message.id != null && message.hasOwnProperty("id"))
  42186. if (typeof message.id === "number")
  42187. object.id = options.longs === String ? String(message.id) : message.id;
  42188. else
  42189. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  42190. return object;
  42191. };
  42192. /**
  42193. * Converts this pop_gift_buy to JSON.
  42194. * @function toJSON
  42195. * @memberof game.pop_gift_buy
  42196. * @instance
  42197. * @returns {Object.<string,*>} JSON object
  42198. */
  42199. pop_gift_buy.prototype.toJSON = function toJSON() {
  42200. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42201. };
  42202. return pop_gift_buy;
  42203. })();
  42204. game.pop_gift_buy_rsp = (function() {
  42205. /**
  42206. * Properties of a pop_gift_buy_rsp.
  42207. * @memberof game
  42208. * @interface Ipop_gift_buy_rsp
  42209. * @property {number|Long|null} [errno] pop_gift_buy_rsp errno
  42210. */
  42211. /**
  42212. * Constructs a new pop_gift_buy_rsp.
  42213. * @memberof game
  42214. * @classdesc Represents a pop_gift_buy_rsp.
  42215. * @implements Ipop_gift_buy_rsp
  42216. * @constructor
  42217. * @param {game.Ipop_gift_buy_rsp=} [properties] Properties to set
  42218. */
  42219. function pop_gift_buy_rsp(properties) {
  42220. if (properties)
  42221. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42222. if (properties[keys[i]] != null)
  42223. this[keys[i]] = properties[keys[i]];
  42224. }
  42225. /**
  42226. * pop_gift_buy_rsp errno.
  42227. * @member {number|Long} errno
  42228. * @memberof game.pop_gift_buy_rsp
  42229. * @instance
  42230. */
  42231. pop_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42232. /**
  42233. * Creates a new pop_gift_buy_rsp instance using the specified properties.
  42234. * @function create
  42235. * @memberof game.pop_gift_buy_rsp
  42236. * @static
  42237. * @param {game.Ipop_gift_buy_rsp=} [properties] Properties to set
  42238. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp instance
  42239. */
  42240. pop_gift_buy_rsp.create = function create(properties) {
  42241. return new pop_gift_buy_rsp(properties);
  42242. };
  42243. /**
  42244. * Encodes the specified pop_gift_buy_rsp message. Does not implicitly {@link game.pop_gift_buy_rsp.verify|verify} messages.
  42245. * @function encode
  42246. * @memberof game.pop_gift_buy_rsp
  42247. * @static
  42248. * @param {game.Ipop_gift_buy_rsp} message pop_gift_buy_rsp message or plain object to encode
  42249. * @param {$protobuf.Writer} [writer] Writer to encode to
  42250. * @returns {$protobuf.Writer} Writer
  42251. */
  42252. pop_gift_buy_rsp.encode = function encode(message, writer) {
  42253. if (!writer)
  42254. writer = $Writer.create();
  42255. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  42256. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  42257. return writer;
  42258. };
  42259. /**
  42260. * Encodes the specified pop_gift_buy_rsp message, length delimited. Does not implicitly {@link game.pop_gift_buy_rsp.verify|verify} messages.
  42261. * @function encodeDelimited
  42262. * @memberof game.pop_gift_buy_rsp
  42263. * @static
  42264. * @param {game.Ipop_gift_buy_rsp} message pop_gift_buy_rsp message or plain object to encode
  42265. * @param {$protobuf.Writer} [writer] Writer to encode to
  42266. * @returns {$protobuf.Writer} Writer
  42267. */
  42268. pop_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  42269. return this.encode(message, writer).ldelim();
  42270. };
  42271. /**
  42272. * Decodes a pop_gift_buy_rsp message from the specified reader or buffer.
  42273. * @function decode
  42274. * @memberof game.pop_gift_buy_rsp
  42275. * @static
  42276. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42277. * @param {number} [length] Message length if known beforehand
  42278. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
  42279. * @throws {Error} If the payload is not a reader or valid buffer
  42280. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42281. */
  42282. pop_gift_buy_rsp.decode = function decode(reader, length) {
  42283. if (!(reader instanceof $Reader))
  42284. reader = $Reader.create(reader);
  42285. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_buy_rsp();
  42286. while (reader.pos < end) {
  42287. let tag = reader.uint32();
  42288. switch (tag >>> 3) {
  42289. case 1:
  42290. message.errno = reader.int64();
  42291. break;
  42292. default:
  42293. reader.skipType(tag & 7);
  42294. break;
  42295. }
  42296. }
  42297. return message;
  42298. };
  42299. /**
  42300. * Decodes a pop_gift_buy_rsp message from the specified reader or buffer, length delimited.
  42301. * @function decodeDelimited
  42302. * @memberof game.pop_gift_buy_rsp
  42303. * @static
  42304. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42305. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
  42306. * @throws {Error} If the payload is not a reader or valid buffer
  42307. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42308. */
  42309. pop_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  42310. if (!(reader instanceof $Reader))
  42311. reader = new $Reader(reader);
  42312. return this.decode(reader, reader.uint32());
  42313. };
  42314. /**
  42315. * Verifies a pop_gift_buy_rsp message.
  42316. * @function verify
  42317. * @memberof game.pop_gift_buy_rsp
  42318. * @static
  42319. * @param {Object.<string,*>} message Plain object to verify
  42320. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42321. */
  42322. pop_gift_buy_rsp.verify = function verify(message) {
  42323. if (typeof message !== "object" || message === null)
  42324. return "object expected";
  42325. if (message.errno != null && message.hasOwnProperty("errno"))
  42326. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  42327. return "errno: integer|Long expected";
  42328. return null;
  42329. };
  42330. /**
  42331. * Creates a pop_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
  42332. * @function fromObject
  42333. * @memberof game.pop_gift_buy_rsp
  42334. * @static
  42335. * @param {Object.<string,*>} object Plain object
  42336. * @returns {game.pop_gift_buy_rsp} pop_gift_buy_rsp
  42337. */
  42338. pop_gift_buy_rsp.fromObject = function fromObject(object) {
  42339. if (object instanceof $root.game.pop_gift_buy_rsp)
  42340. return object;
  42341. let message = new $root.game.pop_gift_buy_rsp();
  42342. if (object.errno != null)
  42343. if ($util.Long)
  42344. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  42345. else if (typeof object.errno === "string")
  42346. message.errno = parseInt(object.errno, 10);
  42347. else if (typeof object.errno === "number")
  42348. message.errno = object.errno;
  42349. else if (typeof object.errno === "object")
  42350. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  42351. return message;
  42352. };
  42353. /**
  42354. * Creates a plain object from a pop_gift_buy_rsp message. Also converts values to other types if specified.
  42355. * @function toObject
  42356. * @memberof game.pop_gift_buy_rsp
  42357. * @static
  42358. * @param {game.pop_gift_buy_rsp} message pop_gift_buy_rsp
  42359. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42360. * @returns {Object.<string,*>} Plain object
  42361. */
  42362. pop_gift_buy_rsp.toObject = function toObject(message, options) {
  42363. if (!options)
  42364. options = {};
  42365. let object = {};
  42366. if (options.defaults)
  42367. if ($util.Long) {
  42368. let long = new $util.Long(0, 0, false);
  42369. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  42370. } else
  42371. object.errno = options.longs === String ? "0" : 0;
  42372. if (message.errno != null && message.hasOwnProperty("errno"))
  42373. if (typeof message.errno === "number")
  42374. object.errno = options.longs === String ? String(message.errno) : message.errno;
  42375. else
  42376. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  42377. return object;
  42378. };
  42379. /**
  42380. * Converts this pop_gift_buy_rsp to JSON.
  42381. * @function toJSON
  42382. * @memberof game.pop_gift_buy_rsp
  42383. * @instance
  42384. * @returns {Object.<string,*>} JSON object
  42385. */
  42386. pop_gift_buy_rsp.prototype.toJSON = function toJSON() {
  42387. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42388. };
  42389. return pop_gift_buy_rsp;
  42390. })();
  42391. game.pop_gift_nty = (function() {
  42392. /**
  42393. * Properties of a pop_gift_nty.
  42394. * @memberof game
  42395. * @interface Ipop_gift_nty
  42396. * @property {game.Ipop_gift_info|null} [data] pop_gift_nty data
  42397. */
  42398. /**
  42399. * Constructs a new pop_gift_nty.
  42400. * @memberof game
  42401. * @classdesc Represents a pop_gift_nty.
  42402. * @implements Ipop_gift_nty
  42403. * @constructor
  42404. * @param {game.Ipop_gift_nty=} [properties] Properties to set
  42405. */
  42406. function pop_gift_nty(properties) {
  42407. if (properties)
  42408. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42409. if (properties[keys[i]] != null)
  42410. this[keys[i]] = properties[keys[i]];
  42411. }
  42412. /**
  42413. * pop_gift_nty data.
  42414. * @member {game.Ipop_gift_info|null|undefined} data
  42415. * @memberof game.pop_gift_nty
  42416. * @instance
  42417. */
  42418. pop_gift_nty.prototype.data = null;
  42419. /**
  42420. * Creates a new pop_gift_nty instance using the specified properties.
  42421. * @function create
  42422. * @memberof game.pop_gift_nty
  42423. * @static
  42424. * @param {game.Ipop_gift_nty=} [properties] Properties to set
  42425. * @returns {game.pop_gift_nty} pop_gift_nty instance
  42426. */
  42427. pop_gift_nty.create = function create(properties) {
  42428. return new pop_gift_nty(properties);
  42429. };
  42430. /**
  42431. * Encodes the specified pop_gift_nty message. Does not implicitly {@link game.pop_gift_nty.verify|verify} messages.
  42432. * @function encode
  42433. * @memberof game.pop_gift_nty
  42434. * @static
  42435. * @param {game.Ipop_gift_nty} message pop_gift_nty message or plain object to encode
  42436. * @param {$protobuf.Writer} [writer] Writer to encode to
  42437. * @returns {$protobuf.Writer} Writer
  42438. */
  42439. pop_gift_nty.encode = function encode(message, writer) {
  42440. if (!writer)
  42441. writer = $Writer.create();
  42442. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  42443. $root.game.pop_gift_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  42444. return writer;
  42445. };
  42446. /**
  42447. * Encodes the specified pop_gift_nty message, length delimited. Does not implicitly {@link game.pop_gift_nty.verify|verify} messages.
  42448. * @function encodeDelimited
  42449. * @memberof game.pop_gift_nty
  42450. * @static
  42451. * @param {game.Ipop_gift_nty} message pop_gift_nty message or plain object to encode
  42452. * @param {$protobuf.Writer} [writer] Writer to encode to
  42453. * @returns {$protobuf.Writer} Writer
  42454. */
  42455. pop_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
  42456. return this.encode(message, writer).ldelim();
  42457. };
  42458. /**
  42459. * Decodes a pop_gift_nty message from the specified reader or buffer.
  42460. * @function decode
  42461. * @memberof game.pop_gift_nty
  42462. * @static
  42463. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42464. * @param {number} [length] Message length if known beforehand
  42465. * @returns {game.pop_gift_nty} pop_gift_nty
  42466. * @throws {Error} If the payload is not a reader or valid buffer
  42467. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42468. */
  42469. pop_gift_nty.decode = function decode(reader, length) {
  42470. if (!(reader instanceof $Reader))
  42471. reader = $Reader.create(reader);
  42472. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_nty();
  42473. while (reader.pos < end) {
  42474. let tag = reader.uint32();
  42475. switch (tag >>> 3) {
  42476. case 1:
  42477. message.data = $root.game.pop_gift_info.decode(reader, reader.uint32());
  42478. break;
  42479. default:
  42480. reader.skipType(tag & 7);
  42481. break;
  42482. }
  42483. }
  42484. return message;
  42485. };
  42486. /**
  42487. * Decodes a pop_gift_nty message from the specified reader or buffer, length delimited.
  42488. * @function decodeDelimited
  42489. * @memberof game.pop_gift_nty
  42490. * @static
  42491. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42492. * @returns {game.pop_gift_nty} pop_gift_nty
  42493. * @throws {Error} If the payload is not a reader or valid buffer
  42494. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42495. */
  42496. pop_gift_nty.decodeDelimited = function decodeDelimited(reader) {
  42497. if (!(reader instanceof $Reader))
  42498. reader = new $Reader(reader);
  42499. return this.decode(reader, reader.uint32());
  42500. };
  42501. /**
  42502. * Verifies a pop_gift_nty message.
  42503. * @function verify
  42504. * @memberof game.pop_gift_nty
  42505. * @static
  42506. * @param {Object.<string,*>} message Plain object to verify
  42507. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42508. */
  42509. pop_gift_nty.verify = function verify(message) {
  42510. if (typeof message !== "object" || message === null)
  42511. return "object expected";
  42512. if (message.data != null && message.hasOwnProperty("data")) {
  42513. let error = $root.game.pop_gift_info.verify(message.data);
  42514. if (error)
  42515. return "data." + error;
  42516. }
  42517. return null;
  42518. };
  42519. /**
  42520. * Creates a pop_gift_nty message from a plain object. Also converts values to their respective internal types.
  42521. * @function fromObject
  42522. * @memberof game.pop_gift_nty
  42523. * @static
  42524. * @param {Object.<string,*>} object Plain object
  42525. * @returns {game.pop_gift_nty} pop_gift_nty
  42526. */
  42527. pop_gift_nty.fromObject = function fromObject(object) {
  42528. if (object instanceof $root.game.pop_gift_nty)
  42529. return object;
  42530. let message = new $root.game.pop_gift_nty();
  42531. if (object.data != null) {
  42532. if (typeof object.data !== "object")
  42533. throw TypeError(".game.pop_gift_nty.data: object expected");
  42534. message.data = $root.game.pop_gift_info.fromObject(object.data);
  42535. }
  42536. return message;
  42537. };
  42538. /**
  42539. * Creates a plain object from a pop_gift_nty message. Also converts values to other types if specified.
  42540. * @function toObject
  42541. * @memberof game.pop_gift_nty
  42542. * @static
  42543. * @param {game.pop_gift_nty} message pop_gift_nty
  42544. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42545. * @returns {Object.<string,*>} Plain object
  42546. */
  42547. pop_gift_nty.toObject = function toObject(message, options) {
  42548. if (!options)
  42549. options = {};
  42550. let object = {};
  42551. if (options.defaults)
  42552. object.data = null;
  42553. if (message.data != null && message.hasOwnProperty("data"))
  42554. object.data = $root.game.pop_gift_info.toObject(message.data, options);
  42555. return object;
  42556. };
  42557. /**
  42558. * Converts this pop_gift_nty to JSON.
  42559. * @function toJSON
  42560. * @memberof game.pop_gift_nty
  42561. * @instance
  42562. * @returns {Object.<string,*>} JSON object
  42563. */
  42564. pop_gift_nty.prototype.toJSON = function toJSON() {
  42565. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42566. };
  42567. return pop_gift_nty;
  42568. })();
  42569. game.pop_gift_change_nty = (function() {
  42570. /**
  42571. * Properties of a pop_gift_change_nty.
  42572. * @memberof game
  42573. * @interface Ipop_gift_change_nty
  42574. * @property {game.Ipop_gift_info|null} [data] pop_gift_change_nty data
  42575. */
  42576. /**
  42577. * Constructs a new pop_gift_change_nty.
  42578. * @memberof game
  42579. * @classdesc Represents a pop_gift_change_nty.
  42580. * @implements Ipop_gift_change_nty
  42581. * @constructor
  42582. * @param {game.Ipop_gift_change_nty=} [properties] Properties to set
  42583. */
  42584. function pop_gift_change_nty(properties) {
  42585. if (properties)
  42586. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42587. if (properties[keys[i]] != null)
  42588. this[keys[i]] = properties[keys[i]];
  42589. }
  42590. /**
  42591. * pop_gift_change_nty data.
  42592. * @member {game.Ipop_gift_info|null|undefined} data
  42593. * @memberof game.pop_gift_change_nty
  42594. * @instance
  42595. */
  42596. pop_gift_change_nty.prototype.data = null;
  42597. /**
  42598. * Creates a new pop_gift_change_nty instance using the specified properties.
  42599. * @function create
  42600. * @memberof game.pop_gift_change_nty
  42601. * @static
  42602. * @param {game.Ipop_gift_change_nty=} [properties] Properties to set
  42603. * @returns {game.pop_gift_change_nty} pop_gift_change_nty instance
  42604. */
  42605. pop_gift_change_nty.create = function create(properties) {
  42606. return new pop_gift_change_nty(properties);
  42607. };
  42608. /**
  42609. * Encodes the specified pop_gift_change_nty message. Does not implicitly {@link game.pop_gift_change_nty.verify|verify} messages.
  42610. * @function encode
  42611. * @memberof game.pop_gift_change_nty
  42612. * @static
  42613. * @param {game.Ipop_gift_change_nty} message pop_gift_change_nty message or plain object to encode
  42614. * @param {$protobuf.Writer} [writer] Writer to encode to
  42615. * @returns {$protobuf.Writer} Writer
  42616. */
  42617. pop_gift_change_nty.encode = function encode(message, writer) {
  42618. if (!writer)
  42619. writer = $Writer.create();
  42620. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  42621. $root.game.pop_gift_info.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  42622. return writer;
  42623. };
  42624. /**
  42625. * Encodes the specified pop_gift_change_nty message, length delimited. Does not implicitly {@link game.pop_gift_change_nty.verify|verify} messages.
  42626. * @function encodeDelimited
  42627. * @memberof game.pop_gift_change_nty
  42628. * @static
  42629. * @param {game.Ipop_gift_change_nty} message pop_gift_change_nty message or plain object to encode
  42630. * @param {$protobuf.Writer} [writer] Writer to encode to
  42631. * @returns {$protobuf.Writer} Writer
  42632. */
  42633. pop_gift_change_nty.encodeDelimited = function encodeDelimited(message, writer) {
  42634. return this.encode(message, writer).ldelim();
  42635. };
  42636. /**
  42637. * Decodes a pop_gift_change_nty message from the specified reader or buffer.
  42638. * @function decode
  42639. * @memberof game.pop_gift_change_nty
  42640. * @static
  42641. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42642. * @param {number} [length] Message length if known beforehand
  42643. * @returns {game.pop_gift_change_nty} pop_gift_change_nty
  42644. * @throws {Error} If the payload is not a reader or valid buffer
  42645. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42646. */
  42647. pop_gift_change_nty.decode = function decode(reader, length) {
  42648. if (!(reader instanceof $Reader))
  42649. reader = $Reader.create(reader);
  42650. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_change_nty();
  42651. while (reader.pos < end) {
  42652. let tag = reader.uint32();
  42653. switch (tag >>> 3) {
  42654. case 1:
  42655. message.data = $root.game.pop_gift_info.decode(reader, reader.uint32());
  42656. break;
  42657. default:
  42658. reader.skipType(tag & 7);
  42659. break;
  42660. }
  42661. }
  42662. return message;
  42663. };
  42664. /**
  42665. * Decodes a pop_gift_change_nty message from the specified reader or buffer, length delimited.
  42666. * @function decodeDelimited
  42667. * @memberof game.pop_gift_change_nty
  42668. * @static
  42669. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42670. * @returns {game.pop_gift_change_nty} pop_gift_change_nty
  42671. * @throws {Error} If the payload is not a reader or valid buffer
  42672. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42673. */
  42674. pop_gift_change_nty.decodeDelimited = function decodeDelimited(reader) {
  42675. if (!(reader instanceof $Reader))
  42676. reader = new $Reader(reader);
  42677. return this.decode(reader, reader.uint32());
  42678. };
  42679. /**
  42680. * Verifies a pop_gift_change_nty message.
  42681. * @function verify
  42682. * @memberof game.pop_gift_change_nty
  42683. * @static
  42684. * @param {Object.<string,*>} message Plain object to verify
  42685. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42686. */
  42687. pop_gift_change_nty.verify = function verify(message) {
  42688. if (typeof message !== "object" || message === null)
  42689. return "object expected";
  42690. if (message.data != null && message.hasOwnProperty("data")) {
  42691. let error = $root.game.pop_gift_info.verify(message.data);
  42692. if (error)
  42693. return "data." + error;
  42694. }
  42695. return null;
  42696. };
  42697. /**
  42698. * Creates a pop_gift_change_nty message from a plain object. Also converts values to their respective internal types.
  42699. * @function fromObject
  42700. * @memberof game.pop_gift_change_nty
  42701. * @static
  42702. * @param {Object.<string,*>} object Plain object
  42703. * @returns {game.pop_gift_change_nty} pop_gift_change_nty
  42704. */
  42705. pop_gift_change_nty.fromObject = function fromObject(object) {
  42706. if (object instanceof $root.game.pop_gift_change_nty)
  42707. return object;
  42708. let message = new $root.game.pop_gift_change_nty();
  42709. if (object.data != null) {
  42710. if (typeof object.data !== "object")
  42711. throw TypeError(".game.pop_gift_change_nty.data: object expected");
  42712. message.data = $root.game.pop_gift_info.fromObject(object.data);
  42713. }
  42714. return message;
  42715. };
  42716. /**
  42717. * Creates a plain object from a pop_gift_change_nty message. Also converts values to other types if specified.
  42718. * @function toObject
  42719. * @memberof game.pop_gift_change_nty
  42720. * @static
  42721. * @param {game.pop_gift_change_nty} message pop_gift_change_nty
  42722. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42723. * @returns {Object.<string,*>} Plain object
  42724. */
  42725. pop_gift_change_nty.toObject = function toObject(message, options) {
  42726. if (!options)
  42727. options = {};
  42728. let object = {};
  42729. if (options.defaults)
  42730. object.data = null;
  42731. if (message.data != null && message.hasOwnProperty("data"))
  42732. object.data = $root.game.pop_gift_info.toObject(message.data, options);
  42733. return object;
  42734. };
  42735. /**
  42736. * Converts this pop_gift_change_nty to JSON.
  42737. * @function toJSON
  42738. * @memberof game.pop_gift_change_nty
  42739. * @instance
  42740. * @returns {Object.<string,*>} JSON object
  42741. */
  42742. pop_gift_change_nty.prototype.toJSON = function toJSON() {
  42743. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42744. };
  42745. return pop_gift_change_nty;
  42746. })();
  42747. game.fund_data = (function() {
  42748. /**
  42749. * Properties of a fund_data.
  42750. * @memberof game
  42751. * @interface Ifund_data
  42752. * @property {number|Long|null} [moduleid] fund_data moduleid
  42753. */
  42754. /**
  42755. * Constructs a new fund_data.
  42756. * @memberof game
  42757. * @classdesc Represents a fund_data.
  42758. * @implements Ifund_data
  42759. * @constructor
  42760. * @param {game.Ifund_data=} [properties] Properties to set
  42761. */
  42762. function fund_data(properties) {
  42763. if (properties)
  42764. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42765. if (properties[keys[i]] != null)
  42766. this[keys[i]] = properties[keys[i]];
  42767. }
  42768. /**
  42769. * fund_data moduleid.
  42770. * @member {number|Long} moduleid
  42771. * @memberof game.fund_data
  42772. * @instance
  42773. */
  42774. fund_data.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42775. /**
  42776. * Creates a new fund_data instance using the specified properties.
  42777. * @function create
  42778. * @memberof game.fund_data
  42779. * @static
  42780. * @param {game.Ifund_data=} [properties] Properties to set
  42781. * @returns {game.fund_data} fund_data instance
  42782. */
  42783. fund_data.create = function create(properties) {
  42784. return new fund_data(properties);
  42785. };
  42786. /**
  42787. * Encodes the specified fund_data message. Does not implicitly {@link game.fund_data.verify|verify} messages.
  42788. * @function encode
  42789. * @memberof game.fund_data
  42790. * @static
  42791. * @param {game.Ifund_data} message fund_data message or plain object to encode
  42792. * @param {$protobuf.Writer} [writer] Writer to encode to
  42793. * @returns {$protobuf.Writer} Writer
  42794. */
  42795. fund_data.encode = function encode(message, writer) {
  42796. if (!writer)
  42797. writer = $Writer.create();
  42798. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  42799. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  42800. return writer;
  42801. };
  42802. /**
  42803. * Encodes the specified fund_data message, length delimited. Does not implicitly {@link game.fund_data.verify|verify} messages.
  42804. * @function encodeDelimited
  42805. * @memberof game.fund_data
  42806. * @static
  42807. * @param {game.Ifund_data} message fund_data message or plain object to encode
  42808. * @param {$protobuf.Writer} [writer] Writer to encode to
  42809. * @returns {$protobuf.Writer} Writer
  42810. */
  42811. fund_data.encodeDelimited = function encodeDelimited(message, writer) {
  42812. return this.encode(message, writer).ldelim();
  42813. };
  42814. /**
  42815. * Decodes a fund_data message from the specified reader or buffer.
  42816. * @function decode
  42817. * @memberof game.fund_data
  42818. * @static
  42819. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42820. * @param {number} [length] Message length if known beforehand
  42821. * @returns {game.fund_data} fund_data
  42822. * @throws {Error} If the payload is not a reader or valid buffer
  42823. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42824. */
  42825. fund_data.decode = function decode(reader, length) {
  42826. if (!(reader instanceof $Reader))
  42827. reader = $Reader.create(reader);
  42828. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_data();
  42829. while (reader.pos < end) {
  42830. let tag = reader.uint32();
  42831. switch (tag >>> 3) {
  42832. case 1:
  42833. message.moduleid = reader.int64();
  42834. break;
  42835. default:
  42836. reader.skipType(tag & 7);
  42837. break;
  42838. }
  42839. }
  42840. return message;
  42841. };
  42842. /**
  42843. * Decodes a fund_data message from the specified reader or buffer, length delimited.
  42844. * @function decodeDelimited
  42845. * @memberof game.fund_data
  42846. * @static
  42847. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  42848. * @returns {game.fund_data} fund_data
  42849. * @throws {Error} If the payload is not a reader or valid buffer
  42850. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  42851. */
  42852. fund_data.decodeDelimited = function decodeDelimited(reader) {
  42853. if (!(reader instanceof $Reader))
  42854. reader = new $Reader(reader);
  42855. return this.decode(reader, reader.uint32());
  42856. };
  42857. /**
  42858. * Verifies a fund_data message.
  42859. * @function verify
  42860. * @memberof game.fund_data
  42861. * @static
  42862. * @param {Object.<string,*>} message Plain object to verify
  42863. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  42864. */
  42865. fund_data.verify = function verify(message) {
  42866. if (typeof message !== "object" || message === null)
  42867. return "object expected";
  42868. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  42869. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  42870. return "moduleid: integer|Long expected";
  42871. return null;
  42872. };
  42873. /**
  42874. * Creates a fund_data message from a plain object. Also converts values to their respective internal types.
  42875. * @function fromObject
  42876. * @memberof game.fund_data
  42877. * @static
  42878. * @param {Object.<string,*>} object Plain object
  42879. * @returns {game.fund_data} fund_data
  42880. */
  42881. fund_data.fromObject = function fromObject(object) {
  42882. if (object instanceof $root.game.fund_data)
  42883. return object;
  42884. let message = new $root.game.fund_data();
  42885. if (object.moduleid != null)
  42886. if ($util.Long)
  42887. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  42888. else if (typeof object.moduleid === "string")
  42889. message.moduleid = parseInt(object.moduleid, 10);
  42890. else if (typeof object.moduleid === "number")
  42891. message.moduleid = object.moduleid;
  42892. else if (typeof object.moduleid === "object")
  42893. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  42894. return message;
  42895. };
  42896. /**
  42897. * Creates a plain object from a fund_data message. Also converts values to other types if specified.
  42898. * @function toObject
  42899. * @memberof game.fund_data
  42900. * @static
  42901. * @param {game.fund_data} message fund_data
  42902. * @param {$protobuf.IConversionOptions} [options] Conversion options
  42903. * @returns {Object.<string,*>} Plain object
  42904. */
  42905. fund_data.toObject = function toObject(message, options) {
  42906. if (!options)
  42907. options = {};
  42908. let object = {};
  42909. if (options.defaults)
  42910. if ($util.Long) {
  42911. let long = new $util.Long(0, 0, false);
  42912. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  42913. } else
  42914. object.moduleid = options.longs === String ? "0" : 0;
  42915. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  42916. if (typeof message.moduleid === "number")
  42917. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  42918. else
  42919. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  42920. return object;
  42921. };
  42922. /**
  42923. * Converts this fund_data to JSON.
  42924. * @function toJSON
  42925. * @memberof game.fund_data
  42926. * @instance
  42927. * @returns {Object.<string,*>} JSON object
  42928. */
  42929. fund_data.prototype.toJSON = function toJSON() {
  42930. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  42931. };
  42932. return fund_data;
  42933. })();
  42934. game.fund_data_rsp = (function() {
  42935. /**
  42936. * Properties of a fund_data_rsp.
  42937. * @memberof game
  42938. * @interface Ifund_data_rsp
  42939. * @property {number|Long|null} [errno] fund_data_rsp errno
  42940. * @property {number|Long|null} [moduleid] fund_data_rsp moduleid
  42941. * @property {boolean|null} [state] fund_data_rsp state
  42942. * @property {number|Long|null} [award] fund_data_rsp award
  42943. * @property {number|Long|null} [freeAward] fund_data_rsp freeAward
  42944. * @property {number|Long|null} [progress] fund_data_rsp progress
  42945. */
  42946. /**
  42947. * Constructs a new fund_data_rsp.
  42948. * @memberof game
  42949. * @classdesc Represents a fund_data_rsp.
  42950. * @implements Ifund_data_rsp
  42951. * @constructor
  42952. * @param {game.Ifund_data_rsp=} [properties] Properties to set
  42953. */
  42954. function fund_data_rsp(properties) {
  42955. if (properties)
  42956. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  42957. if (properties[keys[i]] != null)
  42958. this[keys[i]] = properties[keys[i]];
  42959. }
  42960. /**
  42961. * fund_data_rsp errno.
  42962. * @member {number|Long} errno
  42963. * @memberof game.fund_data_rsp
  42964. * @instance
  42965. */
  42966. fund_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42967. /**
  42968. * fund_data_rsp moduleid.
  42969. * @member {number|Long} moduleid
  42970. * @memberof game.fund_data_rsp
  42971. * @instance
  42972. */
  42973. fund_data_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42974. /**
  42975. * fund_data_rsp state.
  42976. * @member {boolean} state
  42977. * @memberof game.fund_data_rsp
  42978. * @instance
  42979. */
  42980. fund_data_rsp.prototype.state = false;
  42981. /**
  42982. * fund_data_rsp award.
  42983. * @member {number|Long} award
  42984. * @memberof game.fund_data_rsp
  42985. * @instance
  42986. */
  42987. fund_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42988. /**
  42989. * fund_data_rsp freeAward.
  42990. * @member {number|Long} freeAward
  42991. * @memberof game.fund_data_rsp
  42992. * @instance
  42993. */
  42994. fund_data_rsp.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  42995. /**
  42996. * fund_data_rsp progress.
  42997. * @member {number|Long} progress
  42998. * @memberof game.fund_data_rsp
  42999. * @instance
  43000. */
  43001. fund_data_rsp.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43002. /**
  43003. * Creates a new fund_data_rsp instance using the specified properties.
  43004. * @function create
  43005. * @memberof game.fund_data_rsp
  43006. * @static
  43007. * @param {game.Ifund_data_rsp=} [properties] Properties to set
  43008. * @returns {game.fund_data_rsp} fund_data_rsp instance
  43009. */
  43010. fund_data_rsp.create = function create(properties) {
  43011. return new fund_data_rsp(properties);
  43012. };
  43013. /**
  43014. * Encodes the specified fund_data_rsp message. Does not implicitly {@link game.fund_data_rsp.verify|verify} messages.
  43015. * @function encode
  43016. * @memberof game.fund_data_rsp
  43017. * @static
  43018. * @param {game.Ifund_data_rsp} message fund_data_rsp message or plain object to encode
  43019. * @param {$protobuf.Writer} [writer] Writer to encode to
  43020. * @returns {$protobuf.Writer} Writer
  43021. */
  43022. fund_data_rsp.encode = function encode(message, writer) {
  43023. if (!writer)
  43024. writer = $Writer.create();
  43025. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  43026. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  43027. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43028. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  43029. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  43030. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  43031. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  43032. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
  43033. if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
  43034. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.freeAward);
  43035. if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
  43036. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.progress);
  43037. return writer;
  43038. };
  43039. /**
  43040. * Encodes the specified fund_data_rsp message, length delimited. Does not implicitly {@link game.fund_data_rsp.verify|verify} messages.
  43041. * @function encodeDelimited
  43042. * @memberof game.fund_data_rsp
  43043. * @static
  43044. * @param {game.Ifund_data_rsp} message fund_data_rsp message or plain object to encode
  43045. * @param {$protobuf.Writer} [writer] Writer to encode to
  43046. * @returns {$protobuf.Writer} Writer
  43047. */
  43048. fund_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  43049. return this.encode(message, writer).ldelim();
  43050. };
  43051. /**
  43052. * Decodes a fund_data_rsp message from the specified reader or buffer.
  43053. * @function decode
  43054. * @memberof game.fund_data_rsp
  43055. * @static
  43056. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43057. * @param {number} [length] Message length if known beforehand
  43058. * @returns {game.fund_data_rsp} fund_data_rsp
  43059. * @throws {Error} If the payload is not a reader or valid buffer
  43060. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43061. */
  43062. fund_data_rsp.decode = function decode(reader, length) {
  43063. if (!(reader instanceof $Reader))
  43064. reader = $Reader.create(reader);
  43065. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_data_rsp();
  43066. while (reader.pos < end) {
  43067. let tag = reader.uint32();
  43068. switch (tag >>> 3) {
  43069. case 1:
  43070. message.errno = reader.int64();
  43071. break;
  43072. case 2:
  43073. message.moduleid = reader.int64();
  43074. break;
  43075. case 3:
  43076. message.state = reader.bool();
  43077. break;
  43078. case 4:
  43079. message.award = reader.int64();
  43080. break;
  43081. case 5:
  43082. message.freeAward = reader.int64();
  43083. break;
  43084. case 6:
  43085. message.progress = reader.int64();
  43086. break;
  43087. default:
  43088. reader.skipType(tag & 7);
  43089. break;
  43090. }
  43091. }
  43092. return message;
  43093. };
  43094. /**
  43095. * Decodes a fund_data_rsp message from the specified reader or buffer, length delimited.
  43096. * @function decodeDelimited
  43097. * @memberof game.fund_data_rsp
  43098. * @static
  43099. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43100. * @returns {game.fund_data_rsp} fund_data_rsp
  43101. * @throws {Error} If the payload is not a reader or valid buffer
  43102. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43103. */
  43104. fund_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  43105. if (!(reader instanceof $Reader))
  43106. reader = new $Reader(reader);
  43107. return this.decode(reader, reader.uint32());
  43108. };
  43109. /**
  43110. * Verifies a fund_data_rsp message.
  43111. * @function verify
  43112. * @memberof game.fund_data_rsp
  43113. * @static
  43114. * @param {Object.<string,*>} message Plain object to verify
  43115. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43116. */
  43117. fund_data_rsp.verify = function verify(message) {
  43118. if (typeof message !== "object" || message === null)
  43119. return "object expected";
  43120. if (message.errno != null && message.hasOwnProperty("errno"))
  43121. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  43122. return "errno: integer|Long expected";
  43123. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43124. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43125. return "moduleid: integer|Long expected";
  43126. if (message.state != null && message.hasOwnProperty("state"))
  43127. if (typeof message.state !== "boolean")
  43128. return "state: boolean expected";
  43129. if (message.award != null && message.hasOwnProperty("award"))
  43130. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  43131. return "award: integer|Long expected";
  43132. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  43133. if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
  43134. return "freeAward: integer|Long expected";
  43135. if (message.progress != null && message.hasOwnProperty("progress"))
  43136. if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
  43137. return "progress: integer|Long expected";
  43138. return null;
  43139. };
  43140. /**
  43141. * Creates a fund_data_rsp message from a plain object. Also converts values to their respective internal types.
  43142. * @function fromObject
  43143. * @memberof game.fund_data_rsp
  43144. * @static
  43145. * @param {Object.<string,*>} object Plain object
  43146. * @returns {game.fund_data_rsp} fund_data_rsp
  43147. */
  43148. fund_data_rsp.fromObject = function fromObject(object) {
  43149. if (object instanceof $root.game.fund_data_rsp)
  43150. return object;
  43151. let message = new $root.game.fund_data_rsp();
  43152. if (object.errno != null)
  43153. if ($util.Long)
  43154. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  43155. else if (typeof object.errno === "string")
  43156. message.errno = parseInt(object.errno, 10);
  43157. else if (typeof object.errno === "number")
  43158. message.errno = object.errno;
  43159. else if (typeof object.errno === "object")
  43160. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  43161. if (object.moduleid != null)
  43162. if ($util.Long)
  43163. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43164. else if (typeof object.moduleid === "string")
  43165. message.moduleid = parseInt(object.moduleid, 10);
  43166. else if (typeof object.moduleid === "number")
  43167. message.moduleid = object.moduleid;
  43168. else if (typeof object.moduleid === "object")
  43169. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43170. if (object.state != null)
  43171. message.state = Boolean(object.state);
  43172. if (object.award != null)
  43173. if ($util.Long)
  43174. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  43175. else if (typeof object.award === "string")
  43176. message.award = parseInt(object.award, 10);
  43177. else if (typeof object.award === "number")
  43178. message.award = object.award;
  43179. else if (typeof object.award === "object")
  43180. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  43181. if (object.freeAward != null)
  43182. if ($util.Long)
  43183. (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
  43184. else if (typeof object.freeAward === "string")
  43185. message.freeAward = parseInt(object.freeAward, 10);
  43186. else if (typeof object.freeAward === "number")
  43187. message.freeAward = object.freeAward;
  43188. else if (typeof object.freeAward === "object")
  43189. message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
  43190. if (object.progress != null)
  43191. if ($util.Long)
  43192. (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
  43193. else if (typeof object.progress === "string")
  43194. message.progress = parseInt(object.progress, 10);
  43195. else if (typeof object.progress === "number")
  43196. message.progress = object.progress;
  43197. else if (typeof object.progress === "object")
  43198. message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
  43199. return message;
  43200. };
  43201. /**
  43202. * Creates a plain object from a fund_data_rsp message. Also converts values to other types if specified.
  43203. * @function toObject
  43204. * @memberof game.fund_data_rsp
  43205. * @static
  43206. * @param {game.fund_data_rsp} message fund_data_rsp
  43207. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43208. * @returns {Object.<string,*>} Plain object
  43209. */
  43210. fund_data_rsp.toObject = function toObject(message, options) {
  43211. if (!options)
  43212. options = {};
  43213. let object = {};
  43214. if (options.defaults) {
  43215. if ($util.Long) {
  43216. let long = new $util.Long(0, 0, false);
  43217. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43218. } else
  43219. object.errno = options.longs === String ? "0" : 0;
  43220. if ($util.Long) {
  43221. let long = new $util.Long(0, 0, false);
  43222. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43223. } else
  43224. object.moduleid = options.longs === String ? "0" : 0;
  43225. object.state = false;
  43226. if ($util.Long) {
  43227. let long = new $util.Long(0, 0, false);
  43228. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43229. } else
  43230. object.award = options.longs === String ? "0" : 0;
  43231. if ($util.Long) {
  43232. let long = new $util.Long(0, 0, false);
  43233. object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43234. } else
  43235. object.freeAward = options.longs === String ? "0" : 0;
  43236. if ($util.Long) {
  43237. let long = new $util.Long(0, 0, false);
  43238. object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43239. } else
  43240. object.progress = options.longs === String ? "0" : 0;
  43241. }
  43242. if (message.errno != null && message.hasOwnProperty("errno"))
  43243. if (typeof message.errno === "number")
  43244. object.errno = options.longs === String ? String(message.errno) : message.errno;
  43245. else
  43246. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  43247. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43248. if (typeof message.moduleid === "number")
  43249. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43250. else
  43251. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  43252. if (message.state != null && message.hasOwnProperty("state"))
  43253. object.state = message.state;
  43254. if (message.award != null && message.hasOwnProperty("award"))
  43255. if (typeof message.award === "number")
  43256. object.award = options.longs === String ? String(message.award) : message.award;
  43257. else
  43258. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  43259. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  43260. if (typeof message.freeAward === "number")
  43261. object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
  43262. else
  43263. object.freeAward = options.longs === String ? $util.Long.prototype.toString.call(message.freeAward) : options.longs === Number ? new $util.LongBits(message.freeAward.low >>> 0, message.freeAward.high >>> 0).toNumber() : message.freeAward;
  43264. if (message.progress != null && message.hasOwnProperty("progress"))
  43265. if (typeof message.progress === "number")
  43266. object.progress = options.longs === String ? String(message.progress) : message.progress;
  43267. else
  43268. object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
  43269. return object;
  43270. };
  43271. /**
  43272. * Converts this fund_data_rsp to JSON.
  43273. * @function toJSON
  43274. * @memberof game.fund_data_rsp
  43275. * @instance
  43276. * @returns {Object.<string,*>} JSON object
  43277. */
  43278. fund_data_rsp.prototype.toJSON = function toJSON() {
  43279. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43280. };
  43281. return fund_data_rsp;
  43282. })();
  43283. game.fund_buy = (function() {
  43284. /**
  43285. * Properties of a fund_buy.
  43286. * @memberof game
  43287. * @interface Ifund_buy
  43288. * @property {number|Long|null} [moduleid] fund_buy moduleid
  43289. */
  43290. /**
  43291. * Constructs a new fund_buy.
  43292. * @memberof game
  43293. * @classdesc Represents a fund_buy.
  43294. * @implements Ifund_buy
  43295. * @constructor
  43296. * @param {game.Ifund_buy=} [properties] Properties to set
  43297. */
  43298. function fund_buy(properties) {
  43299. if (properties)
  43300. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43301. if (properties[keys[i]] != null)
  43302. this[keys[i]] = properties[keys[i]];
  43303. }
  43304. /**
  43305. * fund_buy moduleid.
  43306. * @member {number|Long} moduleid
  43307. * @memberof game.fund_buy
  43308. * @instance
  43309. */
  43310. fund_buy.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43311. /**
  43312. * Creates a new fund_buy instance using the specified properties.
  43313. * @function create
  43314. * @memberof game.fund_buy
  43315. * @static
  43316. * @param {game.Ifund_buy=} [properties] Properties to set
  43317. * @returns {game.fund_buy} fund_buy instance
  43318. */
  43319. fund_buy.create = function create(properties) {
  43320. return new fund_buy(properties);
  43321. };
  43322. /**
  43323. * Encodes the specified fund_buy message. Does not implicitly {@link game.fund_buy.verify|verify} messages.
  43324. * @function encode
  43325. * @memberof game.fund_buy
  43326. * @static
  43327. * @param {game.Ifund_buy} message fund_buy message or plain object to encode
  43328. * @param {$protobuf.Writer} [writer] Writer to encode to
  43329. * @returns {$protobuf.Writer} Writer
  43330. */
  43331. fund_buy.encode = function encode(message, writer) {
  43332. if (!writer)
  43333. writer = $Writer.create();
  43334. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43335. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  43336. return writer;
  43337. };
  43338. /**
  43339. * Encodes the specified fund_buy message, length delimited. Does not implicitly {@link game.fund_buy.verify|verify} messages.
  43340. * @function encodeDelimited
  43341. * @memberof game.fund_buy
  43342. * @static
  43343. * @param {game.Ifund_buy} message fund_buy message or plain object to encode
  43344. * @param {$protobuf.Writer} [writer] Writer to encode to
  43345. * @returns {$protobuf.Writer} Writer
  43346. */
  43347. fund_buy.encodeDelimited = function encodeDelimited(message, writer) {
  43348. return this.encode(message, writer).ldelim();
  43349. };
  43350. /**
  43351. * Decodes a fund_buy message from the specified reader or buffer.
  43352. * @function decode
  43353. * @memberof game.fund_buy
  43354. * @static
  43355. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43356. * @param {number} [length] Message length if known beforehand
  43357. * @returns {game.fund_buy} fund_buy
  43358. * @throws {Error} If the payload is not a reader or valid buffer
  43359. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43360. */
  43361. fund_buy.decode = function decode(reader, length) {
  43362. if (!(reader instanceof $Reader))
  43363. reader = $Reader.create(reader);
  43364. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_buy();
  43365. while (reader.pos < end) {
  43366. let tag = reader.uint32();
  43367. switch (tag >>> 3) {
  43368. case 1:
  43369. message.moduleid = reader.int64();
  43370. break;
  43371. default:
  43372. reader.skipType(tag & 7);
  43373. break;
  43374. }
  43375. }
  43376. return message;
  43377. };
  43378. /**
  43379. * Decodes a fund_buy message from the specified reader or buffer, length delimited.
  43380. * @function decodeDelimited
  43381. * @memberof game.fund_buy
  43382. * @static
  43383. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43384. * @returns {game.fund_buy} fund_buy
  43385. * @throws {Error} If the payload is not a reader or valid buffer
  43386. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43387. */
  43388. fund_buy.decodeDelimited = function decodeDelimited(reader) {
  43389. if (!(reader instanceof $Reader))
  43390. reader = new $Reader(reader);
  43391. return this.decode(reader, reader.uint32());
  43392. };
  43393. /**
  43394. * Verifies a fund_buy message.
  43395. * @function verify
  43396. * @memberof game.fund_buy
  43397. * @static
  43398. * @param {Object.<string,*>} message Plain object to verify
  43399. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43400. */
  43401. fund_buy.verify = function verify(message) {
  43402. if (typeof message !== "object" || message === null)
  43403. return "object expected";
  43404. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43405. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43406. return "moduleid: integer|Long expected";
  43407. return null;
  43408. };
  43409. /**
  43410. * Creates a fund_buy message from a plain object. Also converts values to their respective internal types.
  43411. * @function fromObject
  43412. * @memberof game.fund_buy
  43413. * @static
  43414. * @param {Object.<string,*>} object Plain object
  43415. * @returns {game.fund_buy} fund_buy
  43416. */
  43417. fund_buy.fromObject = function fromObject(object) {
  43418. if (object instanceof $root.game.fund_buy)
  43419. return object;
  43420. let message = new $root.game.fund_buy();
  43421. if (object.moduleid != null)
  43422. if ($util.Long)
  43423. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43424. else if (typeof object.moduleid === "string")
  43425. message.moduleid = parseInt(object.moduleid, 10);
  43426. else if (typeof object.moduleid === "number")
  43427. message.moduleid = object.moduleid;
  43428. else if (typeof object.moduleid === "object")
  43429. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43430. return message;
  43431. };
  43432. /**
  43433. * Creates a plain object from a fund_buy message. Also converts values to other types if specified.
  43434. * @function toObject
  43435. * @memberof game.fund_buy
  43436. * @static
  43437. * @param {game.fund_buy} message fund_buy
  43438. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43439. * @returns {Object.<string,*>} Plain object
  43440. */
  43441. fund_buy.toObject = function toObject(message, options) {
  43442. if (!options)
  43443. options = {};
  43444. let object = {};
  43445. if (options.defaults)
  43446. if ($util.Long) {
  43447. let long = new $util.Long(0, 0, false);
  43448. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43449. } else
  43450. object.moduleid = options.longs === String ? "0" : 0;
  43451. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43452. if (typeof message.moduleid === "number")
  43453. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43454. else
  43455. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  43456. return object;
  43457. };
  43458. /**
  43459. * Converts this fund_buy to JSON.
  43460. * @function toJSON
  43461. * @memberof game.fund_buy
  43462. * @instance
  43463. * @returns {Object.<string,*>} JSON object
  43464. */
  43465. fund_buy.prototype.toJSON = function toJSON() {
  43466. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43467. };
  43468. return fund_buy;
  43469. })();
  43470. game.fund_buy_rsp = (function() {
  43471. /**
  43472. * Properties of a fund_buy_rsp.
  43473. * @memberof game
  43474. * @interface Ifund_buy_rsp
  43475. * @property {number|Long|null} [errno] fund_buy_rsp errno
  43476. * @property {number|Long|null} [moduleid] fund_buy_rsp moduleid
  43477. */
  43478. /**
  43479. * Constructs a new fund_buy_rsp.
  43480. * @memberof game
  43481. * @classdesc Represents a fund_buy_rsp.
  43482. * @implements Ifund_buy_rsp
  43483. * @constructor
  43484. * @param {game.Ifund_buy_rsp=} [properties] Properties to set
  43485. */
  43486. function fund_buy_rsp(properties) {
  43487. if (properties)
  43488. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43489. if (properties[keys[i]] != null)
  43490. this[keys[i]] = properties[keys[i]];
  43491. }
  43492. /**
  43493. * fund_buy_rsp errno.
  43494. * @member {number|Long} errno
  43495. * @memberof game.fund_buy_rsp
  43496. * @instance
  43497. */
  43498. fund_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43499. /**
  43500. * fund_buy_rsp moduleid.
  43501. * @member {number|Long} moduleid
  43502. * @memberof game.fund_buy_rsp
  43503. * @instance
  43504. */
  43505. fund_buy_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43506. /**
  43507. * Creates a new fund_buy_rsp instance using the specified properties.
  43508. * @function create
  43509. * @memberof game.fund_buy_rsp
  43510. * @static
  43511. * @param {game.Ifund_buy_rsp=} [properties] Properties to set
  43512. * @returns {game.fund_buy_rsp} fund_buy_rsp instance
  43513. */
  43514. fund_buy_rsp.create = function create(properties) {
  43515. return new fund_buy_rsp(properties);
  43516. };
  43517. /**
  43518. * Encodes the specified fund_buy_rsp message. Does not implicitly {@link game.fund_buy_rsp.verify|verify} messages.
  43519. * @function encode
  43520. * @memberof game.fund_buy_rsp
  43521. * @static
  43522. * @param {game.Ifund_buy_rsp} message fund_buy_rsp message or plain object to encode
  43523. * @param {$protobuf.Writer} [writer] Writer to encode to
  43524. * @returns {$protobuf.Writer} Writer
  43525. */
  43526. fund_buy_rsp.encode = function encode(message, writer) {
  43527. if (!writer)
  43528. writer = $Writer.create();
  43529. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  43530. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  43531. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43532. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  43533. return writer;
  43534. };
  43535. /**
  43536. * Encodes the specified fund_buy_rsp message, length delimited. Does not implicitly {@link game.fund_buy_rsp.verify|verify} messages.
  43537. * @function encodeDelimited
  43538. * @memberof game.fund_buy_rsp
  43539. * @static
  43540. * @param {game.Ifund_buy_rsp} message fund_buy_rsp message or plain object to encode
  43541. * @param {$protobuf.Writer} [writer] Writer to encode to
  43542. * @returns {$protobuf.Writer} Writer
  43543. */
  43544. fund_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  43545. return this.encode(message, writer).ldelim();
  43546. };
  43547. /**
  43548. * Decodes a fund_buy_rsp message from the specified reader or buffer.
  43549. * @function decode
  43550. * @memberof game.fund_buy_rsp
  43551. * @static
  43552. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43553. * @param {number} [length] Message length if known beforehand
  43554. * @returns {game.fund_buy_rsp} fund_buy_rsp
  43555. * @throws {Error} If the payload is not a reader or valid buffer
  43556. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43557. */
  43558. fund_buy_rsp.decode = function decode(reader, length) {
  43559. if (!(reader instanceof $Reader))
  43560. reader = $Reader.create(reader);
  43561. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_buy_rsp();
  43562. while (reader.pos < end) {
  43563. let tag = reader.uint32();
  43564. switch (tag >>> 3) {
  43565. case 1:
  43566. message.errno = reader.int64();
  43567. break;
  43568. case 2:
  43569. message.moduleid = reader.int64();
  43570. break;
  43571. default:
  43572. reader.skipType(tag & 7);
  43573. break;
  43574. }
  43575. }
  43576. return message;
  43577. };
  43578. /**
  43579. * Decodes a fund_buy_rsp message from the specified reader or buffer, length delimited.
  43580. * @function decodeDelimited
  43581. * @memberof game.fund_buy_rsp
  43582. * @static
  43583. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43584. * @returns {game.fund_buy_rsp} fund_buy_rsp
  43585. * @throws {Error} If the payload is not a reader or valid buffer
  43586. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43587. */
  43588. fund_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  43589. if (!(reader instanceof $Reader))
  43590. reader = new $Reader(reader);
  43591. return this.decode(reader, reader.uint32());
  43592. };
  43593. /**
  43594. * Verifies a fund_buy_rsp message.
  43595. * @function verify
  43596. * @memberof game.fund_buy_rsp
  43597. * @static
  43598. * @param {Object.<string,*>} message Plain object to verify
  43599. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43600. */
  43601. fund_buy_rsp.verify = function verify(message) {
  43602. if (typeof message !== "object" || message === null)
  43603. return "object expected";
  43604. if (message.errno != null && message.hasOwnProperty("errno"))
  43605. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  43606. return "errno: integer|Long expected";
  43607. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43608. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43609. return "moduleid: integer|Long expected";
  43610. return null;
  43611. };
  43612. /**
  43613. * Creates a fund_buy_rsp message from a plain object. Also converts values to their respective internal types.
  43614. * @function fromObject
  43615. * @memberof game.fund_buy_rsp
  43616. * @static
  43617. * @param {Object.<string,*>} object Plain object
  43618. * @returns {game.fund_buy_rsp} fund_buy_rsp
  43619. */
  43620. fund_buy_rsp.fromObject = function fromObject(object) {
  43621. if (object instanceof $root.game.fund_buy_rsp)
  43622. return object;
  43623. let message = new $root.game.fund_buy_rsp();
  43624. if (object.errno != null)
  43625. if ($util.Long)
  43626. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  43627. else if (typeof object.errno === "string")
  43628. message.errno = parseInt(object.errno, 10);
  43629. else if (typeof object.errno === "number")
  43630. message.errno = object.errno;
  43631. else if (typeof object.errno === "object")
  43632. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  43633. if (object.moduleid != null)
  43634. if ($util.Long)
  43635. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43636. else if (typeof object.moduleid === "string")
  43637. message.moduleid = parseInt(object.moduleid, 10);
  43638. else if (typeof object.moduleid === "number")
  43639. message.moduleid = object.moduleid;
  43640. else if (typeof object.moduleid === "object")
  43641. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43642. return message;
  43643. };
  43644. /**
  43645. * Creates a plain object from a fund_buy_rsp message. Also converts values to other types if specified.
  43646. * @function toObject
  43647. * @memberof game.fund_buy_rsp
  43648. * @static
  43649. * @param {game.fund_buy_rsp} message fund_buy_rsp
  43650. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43651. * @returns {Object.<string,*>} Plain object
  43652. */
  43653. fund_buy_rsp.toObject = function toObject(message, options) {
  43654. if (!options)
  43655. options = {};
  43656. let object = {};
  43657. if (options.defaults) {
  43658. if ($util.Long) {
  43659. let long = new $util.Long(0, 0, false);
  43660. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43661. } else
  43662. object.errno = options.longs === String ? "0" : 0;
  43663. if ($util.Long) {
  43664. let long = new $util.Long(0, 0, false);
  43665. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43666. } else
  43667. object.moduleid = options.longs === String ? "0" : 0;
  43668. }
  43669. if (message.errno != null && message.hasOwnProperty("errno"))
  43670. if (typeof message.errno === "number")
  43671. object.errno = options.longs === String ? String(message.errno) : message.errno;
  43672. else
  43673. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  43674. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43675. if (typeof message.moduleid === "number")
  43676. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43677. else
  43678. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  43679. return object;
  43680. };
  43681. /**
  43682. * Converts this fund_buy_rsp to JSON.
  43683. * @function toJSON
  43684. * @memberof game.fund_buy_rsp
  43685. * @instance
  43686. * @returns {Object.<string,*>} JSON object
  43687. */
  43688. fund_buy_rsp.prototype.toJSON = function toJSON() {
  43689. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43690. };
  43691. return fund_buy_rsp;
  43692. })();
  43693. game.fund_award = (function() {
  43694. /**
  43695. * Properties of a fund_award.
  43696. * @memberof game
  43697. * @interface Ifund_award
  43698. * @property {number|Long|null} [moduleid] fund_award moduleid
  43699. */
  43700. /**
  43701. * Constructs a new fund_award.
  43702. * @memberof game
  43703. * @classdesc Represents a fund_award.
  43704. * @implements Ifund_award
  43705. * @constructor
  43706. * @param {game.Ifund_award=} [properties] Properties to set
  43707. */
  43708. function fund_award(properties) {
  43709. if (properties)
  43710. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43711. if (properties[keys[i]] != null)
  43712. this[keys[i]] = properties[keys[i]];
  43713. }
  43714. /**
  43715. * fund_award moduleid.
  43716. * @member {number|Long} moduleid
  43717. * @memberof game.fund_award
  43718. * @instance
  43719. */
  43720. fund_award.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43721. /**
  43722. * Creates a new fund_award instance using the specified properties.
  43723. * @function create
  43724. * @memberof game.fund_award
  43725. * @static
  43726. * @param {game.Ifund_award=} [properties] Properties to set
  43727. * @returns {game.fund_award} fund_award instance
  43728. */
  43729. fund_award.create = function create(properties) {
  43730. return new fund_award(properties);
  43731. };
  43732. /**
  43733. * Encodes the specified fund_award message. Does not implicitly {@link game.fund_award.verify|verify} messages.
  43734. * @function encode
  43735. * @memberof game.fund_award
  43736. * @static
  43737. * @param {game.Ifund_award} message fund_award message or plain object to encode
  43738. * @param {$protobuf.Writer} [writer] Writer to encode to
  43739. * @returns {$protobuf.Writer} Writer
  43740. */
  43741. fund_award.encode = function encode(message, writer) {
  43742. if (!writer)
  43743. writer = $Writer.create();
  43744. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43745. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  43746. return writer;
  43747. };
  43748. /**
  43749. * Encodes the specified fund_award message, length delimited. Does not implicitly {@link game.fund_award.verify|verify} messages.
  43750. * @function encodeDelimited
  43751. * @memberof game.fund_award
  43752. * @static
  43753. * @param {game.Ifund_award} message fund_award message or plain object to encode
  43754. * @param {$protobuf.Writer} [writer] Writer to encode to
  43755. * @returns {$protobuf.Writer} Writer
  43756. */
  43757. fund_award.encodeDelimited = function encodeDelimited(message, writer) {
  43758. return this.encode(message, writer).ldelim();
  43759. };
  43760. /**
  43761. * Decodes a fund_award message from the specified reader or buffer.
  43762. * @function decode
  43763. * @memberof game.fund_award
  43764. * @static
  43765. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43766. * @param {number} [length] Message length if known beforehand
  43767. * @returns {game.fund_award} fund_award
  43768. * @throws {Error} If the payload is not a reader or valid buffer
  43769. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43770. */
  43771. fund_award.decode = function decode(reader, length) {
  43772. if (!(reader instanceof $Reader))
  43773. reader = $Reader.create(reader);
  43774. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_award();
  43775. while (reader.pos < end) {
  43776. let tag = reader.uint32();
  43777. switch (tag >>> 3) {
  43778. case 1:
  43779. message.moduleid = reader.int64();
  43780. break;
  43781. default:
  43782. reader.skipType(tag & 7);
  43783. break;
  43784. }
  43785. }
  43786. return message;
  43787. };
  43788. /**
  43789. * Decodes a fund_award message from the specified reader or buffer, length delimited.
  43790. * @function decodeDelimited
  43791. * @memberof game.fund_award
  43792. * @static
  43793. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43794. * @returns {game.fund_award} fund_award
  43795. * @throws {Error} If the payload is not a reader or valid buffer
  43796. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43797. */
  43798. fund_award.decodeDelimited = function decodeDelimited(reader) {
  43799. if (!(reader instanceof $Reader))
  43800. reader = new $Reader(reader);
  43801. return this.decode(reader, reader.uint32());
  43802. };
  43803. /**
  43804. * Verifies a fund_award message.
  43805. * @function verify
  43806. * @memberof game.fund_award
  43807. * @static
  43808. * @param {Object.<string,*>} message Plain object to verify
  43809. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  43810. */
  43811. fund_award.verify = function verify(message) {
  43812. if (typeof message !== "object" || message === null)
  43813. return "object expected";
  43814. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43815. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  43816. return "moduleid: integer|Long expected";
  43817. return null;
  43818. };
  43819. /**
  43820. * Creates a fund_award message from a plain object. Also converts values to their respective internal types.
  43821. * @function fromObject
  43822. * @memberof game.fund_award
  43823. * @static
  43824. * @param {Object.<string,*>} object Plain object
  43825. * @returns {game.fund_award} fund_award
  43826. */
  43827. fund_award.fromObject = function fromObject(object) {
  43828. if (object instanceof $root.game.fund_award)
  43829. return object;
  43830. let message = new $root.game.fund_award();
  43831. if (object.moduleid != null)
  43832. if ($util.Long)
  43833. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  43834. else if (typeof object.moduleid === "string")
  43835. message.moduleid = parseInt(object.moduleid, 10);
  43836. else if (typeof object.moduleid === "number")
  43837. message.moduleid = object.moduleid;
  43838. else if (typeof object.moduleid === "object")
  43839. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  43840. return message;
  43841. };
  43842. /**
  43843. * Creates a plain object from a fund_award message. Also converts values to other types if specified.
  43844. * @function toObject
  43845. * @memberof game.fund_award
  43846. * @static
  43847. * @param {game.fund_award} message fund_award
  43848. * @param {$protobuf.IConversionOptions} [options] Conversion options
  43849. * @returns {Object.<string,*>} Plain object
  43850. */
  43851. fund_award.toObject = function toObject(message, options) {
  43852. if (!options)
  43853. options = {};
  43854. let object = {};
  43855. if (options.defaults)
  43856. if ($util.Long) {
  43857. let long = new $util.Long(0, 0, false);
  43858. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  43859. } else
  43860. object.moduleid = options.longs === String ? "0" : 0;
  43861. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  43862. if (typeof message.moduleid === "number")
  43863. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  43864. else
  43865. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  43866. return object;
  43867. };
  43868. /**
  43869. * Converts this fund_award to JSON.
  43870. * @function toJSON
  43871. * @memberof game.fund_award
  43872. * @instance
  43873. * @returns {Object.<string,*>} JSON object
  43874. */
  43875. fund_award.prototype.toJSON = function toJSON() {
  43876. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  43877. };
  43878. return fund_award;
  43879. })();
  43880. game.fund_award_rsp = (function() {
  43881. /**
  43882. * Properties of a fund_award_rsp.
  43883. * @memberof game
  43884. * @interface Ifund_award_rsp
  43885. * @property {number|Long|null} [errno] fund_award_rsp errno
  43886. * @property {number|Long|null} [moduleid] fund_award_rsp moduleid
  43887. * @property {number|Long|null} [award] fund_award_rsp award
  43888. * @property {number|Long|null} [freeAward] fund_award_rsp freeAward
  43889. */
  43890. /**
  43891. * Constructs a new fund_award_rsp.
  43892. * @memberof game
  43893. * @classdesc Represents a fund_award_rsp.
  43894. * @implements Ifund_award_rsp
  43895. * @constructor
  43896. * @param {game.Ifund_award_rsp=} [properties] Properties to set
  43897. */
  43898. function fund_award_rsp(properties) {
  43899. if (properties)
  43900. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  43901. if (properties[keys[i]] != null)
  43902. this[keys[i]] = properties[keys[i]];
  43903. }
  43904. /**
  43905. * fund_award_rsp errno.
  43906. * @member {number|Long} errno
  43907. * @memberof game.fund_award_rsp
  43908. * @instance
  43909. */
  43910. fund_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43911. /**
  43912. * fund_award_rsp moduleid.
  43913. * @member {number|Long} moduleid
  43914. * @memberof game.fund_award_rsp
  43915. * @instance
  43916. */
  43917. fund_award_rsp.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43918. /**
  43919. * fund_award_rsp award.
  43920. * @member {number|Long} award
  43921. * @memberof game.fund_award_rsp
  43922. * @instance
  43923. */
  43924. fund_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43925. /**
  43926. * fund_award_rsp freeAward.
  43927. * @member {number|Long} freeAward
  43928. * @memberof game.fund_award_rsp
  43929. * @instance
  43930. */
  43931. fund_award_rsp.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  43932. /**
  43933. * Creates a new fund_award_rsp instance using the specified properties.
  43934. * @function create
  43935. * @memberof game.fund_award_rsp
  43936. * @static
  43937. * @param {game.Ifund_award_rsp=} [properties] Properties to set
  43938. * @returns {game.fund_award_rsp} fund_award_rsp instance
  43939. */
  43940. fund_award_rsp.create = function create(properties) {
  43941. return new fund_award_rsp(properties);
  43942. };
  43943. /**
  43944. * Encodes the specified fund_award_rsp message. Does not implicitly {@link game.fund_award_rsp.verify|verify} messages.
  43945. * @function encode
  43946. * @memberof game.fund_award_rsp
  43947. * @static
  43948. * @param {game.Ifund_award_rsp} message fund_award_rsp message or plain object to encode
  43949. * @param {$protobuf.Writer} [writer] Writer to encode to
  43950. * @returns {$protobuf.Writer} Writer
  43951. */
  43952. fund_award_rsp.encode = function encode(message, writer) {
  43953. if (!writer)
  43954. writer = $Writer.create();
  43955. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  43956. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  43957. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  43958. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  43959. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  43960. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  43961. if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
  43962. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.freeAward);
  43963. return writer;
  43964. };
  43965. /**
  43966. * Encodes the specified fund_award_rsp message, length delimited. Does not implicitly {@link game.fund_award_rsp.verify|verify} messages.
  43967. * @function encodeDelimited
  43968. * @memberof game.fund_award_rsp
  43969. * @static
  43970. * @param {game.Ifund_award_rsp} message fund_award_rsp message or plain object to encode
  43971. * @param {$protobuf.Writer} [writer] Writer to encode to
  43972. * @returns {$protobuf.Writer} Writer
  43973. */
  43974. fund_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  43975. return this.encode(message, writer).ldelim();
  43976. };
  43977. /**
  43978. * Decodes a fund_award_rsp message from the specified reader or buffer.
  43979. * @function decode
  43980. * @memberof game.fund_award_rsp
  43981. * @static
  43982. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  43983. * @param {number} [length] Message length if known beforehand
  43984. * @returns {game.fund_award_rsp} fund_award_rsp
  43985. * @throws {Error} If the payload is not a reader or valid buffer
  43986. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  43987. */
  43988. fund_award_rsp.decode = function decode(reader, length) {
  43989. if (!(reader instanceof $Reader))
  43990. reader = $Reader.create(reader);
  43991. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_award_rsp();
  43992. while (reader.pos < end) {
  43993. let tag = reader.uint32();
  43994. switch (tag >>> 3) {
  43995. case 1:
  43996. message.errno = reader.int64();
  43997. break;
  43998. case 2:
  43999. message.moduleid = reader.int64();
  44000. break;
  44001. case 3:
  44002. message.award = reader.int64();
  44003. break;
  44004. case 4:
  44005. message.freeAward = reader.int64();
  44006. break;
  44007. default:
  44008. reader.skipType(tag & 7);
  44009. break;
  44010. }
  44011. }
  44012. return message;
  44013. };
  44014. /**
  44015. * Decodes a fund_award_rsp message from the specified reader or buffer, length delimited.
  44016. * @function decodeDelimited
  44017. * @memberof game.fund_award_rsp
  44018. * @static
  44019. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44020. * @returns {game.fund_award_rsp} fund_award_rsp
  44021. * @throws {Error} If the payload is not a reader or valid buffer
  44022. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44023. */
  44024. fund_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  44025. if (!(reader instanceof $Reader))
  44026. reader = new $Reader(reader);
  44027. return this.decode(reader, reader.uint32());
  44028. };
  44029. /**
  44030. * Verifies a fund_award_rsp message.
  44031. * @function verify
  44032. * @memberof game.fund_award_rsp
  44033. * @static
  44034. * @param {Object.<string,*>} message Plain object to verify
  44035. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44036. */
  44037. fund_award_rsp.verify = function verify(message) {
  44038. if (typeof message !== "object" || message === null)
  44039. return "object expected";
  44040. if (message.errno != null && message.hasOwnProperty("errno"))
  44041. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  44042. return "errno: integer|Long expected";
  44043. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44044. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  44045. return "moduleid: integer|Long expected";
  44046. if (message.award != null && message.hasOwnProperty("award"))
  44047. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  44048. return "award: integer|Long expected";
  44049. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44050. if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
  44051. return "freeAward: integer|Long expected";
  44052. return null;
  44053. };
  44054. /**
  44055. * Creates a fund_award_rsp message from a plain object. Also converts values to their respective internal types.
  44056. * @function fromObject
  44057. * @memberof game.fund_award_rsp
  44058. * @static
  44059. * @param {Object.<string,*>} object Plain object
  44060. * @returns {game.fund_award_rsp} fund_award_rsp
  44061. */
  44062. fund_award_rsp.fromObject = function fromObject(object) {
  44063. if (object instanceof $root.game.fund_award_rsp)
  44064. return object;
  44065. let message = new $root.game.fund_award_rsp();
  44066. if (object.errno != null)
  44067. if ($util.Long)
  44068. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  44069. else if (typeof object.errno === "string")
  44070. message.errno = parseInt(object.errno, 10);
  44071. else if (typeof object.errno === "number")
  44072. message.errno = object.errno;
  44073. else if (typeof object.errno === "object")
  44074. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  44075. if (object.moduleid != null)
  44076. if ($util.Long)
  44077. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  44078. else if (typeof object.moduleid === "string")
  44079. message.moduleid = parseInt(object.moduleid, 10);
  44080. else if (typeof object.moduleid === "number")
  44081. message.moduleid = object.moduleid;
  44082. else if (typeof object.moduleid === "object")
  44083. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  44084. if (object.award != null)
  44085. if ($util.Long)
  44086. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  44087. else if (typeof object.award === "string")
  44088. message.award = parseInt(object.award, 10);
  44089. else if (typeof object.award === "number")
  44090. message.award = object.award;
  44091. else if (typeof object.award === "object")
  44092. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  44093. if (object.freeAward != null)
  44094. if ($util.Long)
  44095. (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
  44096. else if (typeof object.freeAward === "string")
  44097. message.freeAward = parseInt(object.freeAward, 10);
  44098. else if (typeof object.freeAward === "number")
  44099. message.freeAward = object.freeAward;
  44100. else if (typeof object.freeAward === "object")
  44101. message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
  44102. return message;
  44103. };
  44104. /**
  44105. * Creates a plain object from a fund_award_rsp message. Also converts values to other types if specified.
  44106. * @function toObject
  44107. * @memberof game.fund_award_rsp
  44108. * @static
  44109. * @param {game.fund_award_rsp} message fund_award_rsp
  44110. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44111. * @returns {Object.<string,*>} Plain object
  44112. */
  44113. fund_award_rsp.toObject = function toObject(message, options) {
  44114. if (!options)
  44115. options = {};
  44116. let object = {};
  44117. if (options.defaults) {
  44118. if ($util.Long) {
  44119. let long = new $util.Long(0, 0, false);
  44120. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44121. } else
  44122. object.errno = options.longs === String ? "0" : 0;
  44123. if ($util.Long) {
  44124. let long = new $util.Long(0, 0, false);
  44125. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44126. } else
  44127. object.moduleid = options.longs === String ? "0" : 0;
  44128. if ($util.Long) {
  44129. let long = new $util.Long(0, 0, false);
  44130. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44131. } else
  44132. object.award = options.longs === String ? "0" : 0;
  44133. if ($util.Long) {
  44134. let long = new $util.Long(0, 0, false);
  44135. object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44136. } else
  44137. object.freeAward = options.longs === String ? "0" : 0;
  44138. }
  44139. if (message.errno != null && message.hasOwnProperty("errno"))
  44140. if (typeof message.errno === "number")
  44141. object.errno = options.longs === String ? String(message.errno) : message.errno;
  44142. else
  44143. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  44144. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44145. if (typeof message.moduleid === "number")
  44146. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  44147. else
  44148. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  44149. if (message.award != null && message.hasOwnProperty("award"))
  44150. if (typeof message.award === "number")
  44151. object.award = options.longs === String ? String(message.award) : message.award;
  44152. else
  44153. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  44154. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44155. if (typeof message.freeAward === "number")
  44156. object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
  44157. else
  44158. object.freeAward = options.longs === String ? $util.Long.prototype.toString.call(message.freeAward) : options.longs === Number ? new $util.LongBits(message.freeAward.low >>> 0, message.freeAward.high >>> 0).toNumber() : message.freeAward;
  44159. return object;
  44160. };
  44161. /**
  44162. * Converts this fund_award_rsp to JSON.
  44163. * @function toJSON
  44164. * @memberof game.fund_award_rsp
  44165. * @instance
  44166. * @returns {Object.<string,*>} JSON object
  44167. */
  44168. fund_award_rsp.prototype.toJSON = function toJSON() {
  44169. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44170. };
  44171. return fund_award_rsp;
  44172. })();
  44173. game.fund_nty = (function() {
  44174. /**
  44175. * Properties of a fund_nty.
  44176. * @memberof game
  44177. * @interface Ifund_nty
  44178. * @property {number|Long|null} [moduleid] fund_nty moduleid
  44179. * @property {boolean|null} [state] fund_nty state
  44180. * @property {number|Long|null} [award] fund_nty award
  44181. * @property {number|Long|null} [freeAward] fund_nty freeAward
  44182. * @property {number|Long|null} [progress] fund_nty progress
  44183. */
  44184. /**
  44185. * Constructs a new fund_nty.
  44186. * @memberof game
  44187. * @classdesc Represents a fund_nty.
  44188. * @implements Ifund_nty
  44189. * @constructor
  44190. * @param {game.Ifund_nty=} [properties] Properties to set
  44191. */
  44192. function fund_nty(properties) {
  44193. if (properties)
  44194. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44195. if (properties[keys[i]] != null)
  44196. this[keys[i]] = properties[keys[i]];
  44197. }
  44198. /**
  44199. * fund_nty moduleid.
  44200. * @member {number|Long} moduleid
  44201. * @memberof game.fund_nty
  44202. * @instance
  44203. */
  44204. fund_nty.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44205. /**
  44206. * fund_nty state.
  44207. * @member {boolean} state
  44208. * @memberof game.fund_nty
  44209. * @instance
  44210. */
  44211. fund_nty.prototype.state = false;
  44212. /**
  44213. * fund_nty award.
  44214. * @member {number|Long} award
  44215. * @memberof game.fund_nty
  44216. * @instance
  44217. */
  44218. fund_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44219. /**
  44220. * fund_nty freeAward.
  44221. * @member {number|Long} freeAward
  44222. * @memberof game.fund_nty
  44223. * @instance
  44224. */
  44225. fund_nty.prototype.freeAward = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44226. /**
  44227. * fund_nty progress.
  44228. * @member {number|Long} progress
  44229. * @memberof game.fund_nty
  44230. * @instance
  44231. */
  44232. fund_nty.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44233. /**
  44234. * Creates a new fund_nty instance using the specified properties.
  44235. * @function create
  44236. * @memberof game.fund_nty
  44237. * @static
  44238. * @param {game.Ifund_nty=} [properties] Properties to set
  44239. * @returns {game.fund_nty} fund_nty instance
  44240. */
  44241. fund_nty.create = function create(properties) {
  44242. return new fund_nty(properties);
  44243. };
  44244. /**
  44245. * Encodes the specified fund_nty message. Does not implicitly {@link game.fund_nty.verify|verify} messages.
  44246. * @function encode
  44247. * @memberof game.fund_nty
  44248. * @static
  44249. * @param {game.Ifund_nty} message fund_nty message or plain object to encode
  44250. * @param {$protobuf.Writer} [writer] Writer to encode to
  44251. * @returns {$protobuf.Writer} Writer
  44252. */
  44253. fund_nty.encode = function encode(message, writer) {
  44254. if (!writer)
  44255. writer = $Writer.create();
  44256. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  44257. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.moduleid);
  44258. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  44259. writer.uint32(/* id 3, wireType 0 =*/24).bool(message.state);
  44260. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  44261. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
  44262. if (message.freeAward != null && Object.hasOwnProperty.call(message, "freeAward"))
  44263. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.freeAward);
  44264. if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
  44265. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.progress);
  44266. return writer;
  44267. };
  44268. /**
  44269. * Encodes the specified fund_nty message, length delimited. Does not implicitly {@link game.fund_nty.verify|verify} messages.
  44270. * @function encodeDelimited
  44271. * @memberof game.fund_nty
  44272. * @static
  44273. * @param {game.Ifund_nty} message fund_nty message or plain object to encode
  44274. * @param {$protobuf.Writer} [writer] Writer to encode to
  44275. * @returns {$protobuf.Writer} Writer
  44276. */
  44277. fund_nty.encodeDelimited = function encodeDelimited(message, writer) {
  44278. return this.encode(message, writer).ldelim();
  44279. };
  44280. /**
  44281. * Decodes a fund_nty message from the specified reader or buffer.
  44282. * @function decode
  44283. * @memberof game.fund_nty
  44284. * @static
  44285. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44286. * @param {number} [length] Message length if known beforehand
  44287. * @returns {game.fund_nty} fund_nty
  44288. * @throws {Error} If the payload is not a reader or valid buffer
  44289. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44290. */
  44291. fund_nty.decode = function decode(reader, length) {
  44292. if (!(reader instanceof $Reader))
  44293. reader = $Reader.create(reader);
  44294. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.fund_nty();
  44295. while (reader.pos < end) {
  44296. let tag = reader.uint32();
  44297. switch (tag >>> 3) {
  44298. case 2:
  44299. message.moduleid = reader.int64();
  44300. break;
  44301. case 3:
  44302. message.state = reader.bool();
  44303. break;
  44304. case 4:
  44305. message.award = reader.int64();
  44306. break;
  44307. case 5:
  44308. message.freeAward = reader.int64();
  44309. break;
  44310. case 6:
  44311. message.progress = reader.int64();
  44312. break;
  44313. default:
  44314. reader.skipType(tag & 7);
  44315. break;
  44316. }
  44317. }
  44318. return message;
  44319. };
  44320. /**
  44321. * Decodes a fund_nty message from the specified reader or buffer, length delimited.
  44322. * @function decodeDelimited
  44323. * @memberof game.fund_nty
  44324. * @static
  44325. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44326. * @returns {game.fund_nty} fund_nty
  44327. * @throws {Error} If the payload is not a reader or valid buffer
  44328. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44329. */
  44330. fund_nty.decodeDelimited = function decodeDelimited(reader) {
  44331. if (!(reader instanceof $Reader))
  44332. reader = new $Reader(reader);
  44333. return this.decode(reader, reader.uint32());
  44334. };
  44335. /**
  44336. * Verifies a fund_nty message.
  44337. * @function verify
  44338. * @memberof game.fund_nty
  44339. * @static
  44340. * @param {Object.<string,*>} message Plain object to verify
  44341. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44342. */
  44343. fund_nty.verify = function verify(message) {
  44344. if (typeof message !== "object" || message === null)
  44345. return "object expected";
  44346. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44347. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  44348. return "moduleid: integer|Long expected";
  44349. if (message.state != null && message.hasOwnProperty("state"))
  44350. if (typeof message.state !== "boolean")
  44351. return "state: boolean expected";
  44352. if (message.award != null && message.hasOwnProperty("award"))
  44353. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  44354. return "award: integer|Long expected";
  44355. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44356. if (!$util.isInteger(message.freeAward) && !(message.freeAward && $util.isInteger(message.freeAward.low) && $util.isInteger(message.freeAward.high)))
  44357. return "freeAward: integer|Long expected";
  44358. if (message.progress != null && message.hasOwnProperty("progress"))
  44359. if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
  44360. return "progress: integer|Long expected";
  44361. return null;
  44362. };
  44363. /**
  44364. * Creates a fund_nty message from a plain object. Also converts values to their respective internal types.
  44365. * @function fromObject
  44366. * @memberof game.fund_nty
  44367. * @static
  44368. * @param {Object.<string,*>} object Plain object
  44369. * @returns {game.fund_nty} fund_nty
  44370. */
  44371. fund_nty.fromObject = function fromObject(object) {
  44372. if (object instanceof $root.game.fund_nty)
  44373. return object;
  44374. let message = new $root.game.fund_nty();
  44375. if (object.moduleid != null)
  44376. if ($util.Long)
  44377. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  44378. else if (typeof object.moduleid === "string")
  44379. message.moduleid = parseInt(object.moduleid, 10);
  44380. else if (typeof object.moduleid === "number")
  44381. message.moduleid = object.moduleid;
  44382. else if (typeof object.moduleid === "object")
  44383. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  44384. if (object.state != null)
  44385. message.state = Boolean(object.state);
  44386. if (object.award != null)
  44387. if ($util.Long)
  44388. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  44389. else if (typeof object.award === "string")
  44390. message.award = parseInt(object.award, 10);
  44391. else if (typeof object.award === "number")
  44392. message.award = object.award;
  44393. else if (typeof object.award === "object")
  44394. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  44395. if (object.freeAward != null)
  44396. if ($util.Long)
  44397. (message.freeAward = $util.Long.fromValue(object.freeAward)).unsigned = false;
  44398. else if (typeof object.freeAward === "string")
  44399. message.freeAward = parseInt(object.freeAward, 10);
  44400. else if (typeof object.freeAward === "number")
  44401. message.freeAward = object.freeAward;
  44402. else if (typeof object.freeAward === "object")
  44403. message.freeAward = new $util.LongBits(object.freeAward.low >>> 0, object.freeAward.high >>> 0).toNumber();
  44404. if (object.progress != null)
  44405. if ($util.Long)
  44406. (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
  44407. else if (typeof object.progress === "string")
  44408. message.progress = parseInt(object.progress, 10);
  44409. else if (typeof object.progress === "number")
  44410. message.progress = object.progress;
  44411. else if (typeof object.progress === "object")
  44412. message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
  44413. return message;
  44414. };
  44415. /**
  44416. * Creates a plain object from a fund_nty message. Also converts values to other types if specified.
  44417. * @function toObject
  44418. * @memberof game.fund_nty
  44419. * @static
  44420. * @param {game.fund_nty} message fund_nty
  44421. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44422. * @returns {Object.<string,*>} Plain object
  44423. */
  44424. fund_nty.toObject = function toObject(message, options) {
  44425. if (!options)
  44426. options = {};
  44427. let object = {};
  44428. if (options.defaults) {
  44429. if ($util.Long) {
  44430. let long = new $util.Long(0, 0, false);
  44431. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44432. } else
  44433. object.moduleid = options.longs === String ? "0" : 0;
  44434. object.state = false;
  44435. if ($util.Long) {
  44436. let long = new $util.Long(0, 0, false);
  44437. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44438. } else
  44439. object.award = options.longs === String ? "0" : 0;
  44440. if ($util.Long) {
  44441. let long = new $util.Long(0, 0, false);
  44442. object.freeAward = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44443. } else
  44444. object.freeAward = options.longs === String ? "0" : 0;
  44445. if ($util.Long) {
  44446. let long = new $util.Long(0, 0, false);
  44447. object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44448. } else
  44449. object.progress = options.longs === String ? "0" : 0;
  44450. }
  44451. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  44452. if (typeof message.moduleid === "number")
  44453. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  44454. else
  44455. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  44456. if (message.state != null && message.hasOwnProperty("state"))
  44457. object.state = message.state;
  44458. if (message.award != null && message.hasOwnProperty("award"))
  44459. if (typeof message.award === "number")
  44460. object.award = options.longs === String ? String(message.award) : message.award;
  44461. else
  44462. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  44463. if (message.freeAward != null && message.hasOwnProperty("freeAward"))
  44464. if (typeof message.freeAward === "number")
  44465. object.freeAward = options.longs === String ? String(message.freeAward) : message.freeAward;
  44466. else
  44467. object.freeAward = options.longs === String ? $util.Long.prototype.toString.call(message.freeAward) : options.longs === Number ? new $util.LongBits(message.freeAward.low >>> 0, message.freeAward.high >>> 0).toNumber() : message.freeAward;
  44468. if (message.progress != null && message.hasOwnProperty("progress"))
  44469. if (typeof message.progress === "number")
  44470. object.progress = options.longs === String ? String(message.progress) : message.progress;
  44471. else
  44472. object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
  44473. return object;
  44474. };
  44475. /**
  44476. * Converts this fund_nty to JSON.
  44477. * @function toJSON
  44478. * @memberof game.fund_nty
  44479. * @instance
  44480. * @returns {Object.<string,*>} JSON object
  44481. */
  44482. fund_nty.prototype.toJSON = function toJSON() {
  44483. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44484. };
  44485. return fund_nty;
  44486. })();
  44487. game.keep_recharge_data = (function() {
  44488. /**
  44489. * Properties of a keep_recharge_data.
  44490. * @memberof game
  44491. * @interface Ikeep_recharge_data
  44492. */
  44493. /**
  44494. * Constructs a new keep_recharge_data.
  44495. * @memberof game
  44496. * @classdesc Represents a keep_recharge_data.
  44497. * @implements Ikeep_recharge_data
  44498. * @constructor
  44499. * @param {game.Ikeep_recharge_data=} [properties] Properties to set
  44500. */
  44501. function keep_recharge_data(properties) {
  44502. if (properties)
  44503. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44504. if (properties[keys[i]] != null)
  44505. this[keys[i]] = properties[keys[i]];
  44506. }
  44507. /**
  44508. * Creates a new keep_recharge_data instance using the specified properties.
  44509. * @function create
  44510. * @memberof game.keep_recharge_data
  44511. * @static
  44512. * @param {game.Ikeep_recharge_data=} [properties] Properties to set
  44513. * @returns {game.keep_recharge_data} keep_recharge_data instance
  44514. */
  44515. keep_recharge_data.create = function create(properties) {
  44516. return new keep_recharge_data(properties);
  44517. };
  44518. /**
  44519. * Encodes the specified keep_recharge_data message. Does not implicitly {@link game.keep_recharge_data.verify|verify} messages.
  44520. * @function encode
  44521. * @memberof game.keep_recharge_data
  44522. * @static
  44523. * @param {game.Ikeep_recharge_data} message keep_recharge_data message or plain object to encode
  44524. * @param {$protobuf.Writer} [writer] Writer to encode to
  44525. * @returns {$protobuf.Writer} Writer
  44526. */
  44527. keep_recharge_data.encode = function encode(message, writer) {
  44528. if (!writer)
  44529. writer = $Writer.create();
  44530. return writer;
  44531. };
  44532. /**
  44533. * Encodes the specified keep_recharge_data message, length delimited. Does not implicitly {@link game.keep_recharge_data.verify|verify} messages.
  44534. * @function encodeDelimited
  44535. * @memberof game.keep_recharge_data
  44536. * @static
  44537. * @param {game.Ikeep_recharge_data} message keep_recharge_data message or plain object to encode
  44538. * @param {$protobuf.Writer} [writer] Writer to encode to
  44539. * @returns {$protobuf.Writer} Writer
  44540. */
  44541. keep_recharge_data.encodeDelimited = function encodeDelimited(message, writer) {
  44542. return this.encode(message, writer).ldelim();
  44543. };
  44544. /**
  44545. * Decodes a keep_recharge_data message from the specified reader or buffer.
  44546. * @function decode
  44547. * @memberof game.keep_recharge_data
  44548. * @static
  44549. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44550. * @param {number} [length] Message length if known beforehand
  44551. * @returns {game.keep_recharge_data} keep_recharge_data
  44552. * @throws {Error} If the payload is not a reader or valid buffer
  44553. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44554. */
  44555. keep_recharge_data.decode = function decode(reader, length) {
  44556. if (!(reader instanceof $Reader))
  44557. reader = $Reader.create(reader);
  44558. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_data();
  44559. while (reader.pos < end) {
  44560. let tag = reader.uint32();
  44561. switch (tag >>> 3) {
  44562. default:
  44563. reader.skipType(tag & 7);
  44564. break;
  44565. }
  44566. }
  44567. return message;
  44568. };
  44569. /**
  44570. * Decodes a keep_recharge_data message from the specified reader or buffer, length delimited.
  44571. * @function decodeDelimited
  44572. * @memberof game.keep_recharge_data
  44573. * @static
  44574. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44575. * @returns {game.keep_recharge_data} keep_recharge_data
  44576. * @throws {Error} If the payload is not a reader or valid buffer
  44577. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44578. */
  44579. keep_recharge_data.decodeDelimited = function decodeDelimited(reader) {
  44580. if (!(reader instanceof $Reader))
  44581. reader = new $Reader(reader);
  44582. return this.decode(reader, reader.uint32());
  44583. };
  44584. /**
  44585. * Verifies a keep_recharge_data message.
  44586. * @function verify
  44587. * @memberof game.keep_recharge_data
  44588. * @static
  44589. * @param {Object.<string,*>} message Plain object to verify
  44590. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44591. */
  44592. keep_recharge_data.verify = function verify(message) {
  44593. if (typeof message !== "object" || message === null)
  44594. return "object expected";
  44595. return null;
  44596. };
  44597. /**
  44598. * Creates a keep_recharge_data message from a plain object. Also converts values to their respective internal types.
  44599. * @function fromObject
  44600. * @memberof game.keep_recharge_data
  44601. * @static
  44602. * @param {Object.<string,*>} object Plain object
  44603. * @returns {game.keep_recharge_data} keep_recharge_data
  44604. */
  44605. keep_recharge_data.fromObject = function fromObject(object) {
  44606. if (object instanceof $root.game.keep_recharge_data)
  44607. return object;
  44608. return new $root.game.keep_recharge_data();
  44609. };
  44610. /**
  44611. * Creates a plain object from a keep_recharge_data message. Also converts values to other types if specified.
  44612. * @function toObject
  44613. * @memberof game.keep_recharge_data
  44614. * @static
  44615. * @param {game.keep_recharge_data} message keep_recharge_data
  44616. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44617. * @returns {Object.<string,*>} Plain object
  44618. */
  44619. keep_recharge_data.toObject = function toObject() {
  44620. return {};
  44621. };
  44622. /**
  44623. * Converts this keep_recharge_data to JSON.
  44624. * @function toJSON
  44625. * @memberof game.keep_recharge_data
  44626. * @instance
  44627. * @returns {Object.<string,*>} JSON object
  44628. */
  44629. keep_recharge_data.prototype.toJSON = function toJSON() {
  44630. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44631. };
  44632. return keep_recharge_data;
  44633. })();
  44634. game.keep_recharge_data_rsp = (function() {
  44635. /**
  44636. * Properties of a keep_recharge_data_rsp.
  44637. * @memberof game
  44638. * @interface Ikeep_recharge_data_rsp
  44639. * @property {number|Long|null} [errno] keep_recharge_data_rsp errno
  44640. * @property {number|Long|null} [day] keep_recharge_data_rsp day
  44641. * @property {number|Long|null} [num] keep_recharge_data_rsp num
  44642. * @property {number|Long|null} [award] keep_recharge_data_rsp award
  44643. */
  44644. /**
  44645. * Constructs a new keep_recharge_data_rsp.
  44646. * @memberof game
  44647. * @classdesc Represents a keep_recharge_data_rsp.
  44648. * @implements Ikeep_recharge_data_rsp
  44649. * @constructor
  44650. * @param {game.Ikeep_recharge_data_rsp=} [properties] Properties to set
  44651. */
  44652. function keep_recharge_data_rsp(properties) {
  44653. if (properties)
  44654. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44655. if (properties[keys[i]] != null)
  44656. this[keys[i]] = properties[keys[i]];
  44657. }
  44658. /**
  44659. * keep_recharge_data_rsp errno.
  44660. * @member {number|Long} errno
  44661. * @memberof game.keep_recharge_data_rsp
  44662. * @instance
  44663. */
  44664. keep_recharge_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44665. /**
  44666. * keep_recharge_data_rsp day.
  44667. * @member {number|Long} day
  44668. * @memberof game.keep_recharge_data_rsp
  44669. * @instance
  44670. */
  44671. keep_recharge_data_rsp.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44672. /**
  44673. * keep_recharge_data_rsp num.
  44674. * @member {number|Long} num
  44675. * @memberof game.keep_recharge_data_rsp
  44676. * @instance
  44677. */
  44678. keep_recharge_data_rsp.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44679. /**
  44680. * keep_recharge_data_rsp award.
  44681. * @member {number|Long} award
  44682. * @memberof game.keep_recharge_data_rsp
  44683. * @instance
  44684. */
  44685. keep_recharge_data_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44686. /**
  44687. * Creates a new keep_recharge_data_rsp instance using the specified properties.
  44688. * @function create
  44689. * @memberof game.keep_recharge_data_rsp
  44690. * @static
  44691. * @param {game.Ikeep_recharge_data_rsp=} [properties] Properties to set
  44692. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp instance
  44693. */
  44694. keep_recharge_data_rsp.create = function create(properties) {
  44695. return new keep_recharge_data_rsp(properties);
  44696. };
  44697. /**
  44698. * Encodes the specified keep_recharge_data_rsp message. Does not implicitly {@link game.keep_recharge_data_rsp.verify|verify} messages.
  44699. * @function encode
  44700. * @memberof game.keep_recharge_data_rsp
  44701. * @static
  44702. * @param {game.Ikeep_recharge_data_rsp} message keep_recharge_data_rsp message or plain object to encode
  44703. * @param {$protobuf.Writer} [writer] Writer to encode to
  44704. * @returns {$protobuf.Writer} Writer
  44705. */
  44706. keep_recharge_data_rsp.encode = function encode(message, writer) {
  44707. if (!writer)
  44708. writer = $Writer.create();
  44709. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  44710. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  44711. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  44712. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.day);
  44713. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  44714. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  44715. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  44716. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.award);
  44717. return writer;
  44718. };
  44719. /**
  44720. * Encodes the specified keep_recharge_data_rsp message, length delimited. Does not implicitly {@link game.keep_recharge_data_rsp.verify|verify} messages.
  44721. * @function encodeDelimited
  44722. * @memberof game.keep_recharge_data_rsp
  44723. * @static
  44724. * @param {game.Ikeep_recharge_data_rsp} message keep_recharge_data_rsp message or plain object to encode
  44725. * @param {$protobuf.Writer} [writer] Writer to encode to
  44726. * @returns {$protobuf.Writer} Writer
  44727. */
  44728. keep_recharge_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  44729. return this.encode(message, writer).ldelim();
  44730. };
  44731. /**
  44732. * Decodes a keep_recharge_data_rsp message from the specified reader or buffer.
  44733. * @function decode
  44734. * @memberof game.keep_recharge_data_rsp
  44735. * @static
  44736. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44737. * @param {number} [length] Message length if known beforehand
  44738. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
  44739. * @throws {Error} If the payload is not a reader or valid buffer
  44740. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44741. */
  44742. keep_recharge_data_rsp.decode = function decode(reader, length) {
  44743. if (!(reader instanceof $Reader))
  44744. reader = $Reader.create(reader);
  44745. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_data_rsp();
  44746. while (reader.pos < end) {
  44747. let tag = reader.uint32();
  44748. switch (tag >>> 3) {
  44749. case 1:
  44750. message.errno = reader.int64();
  44751. break;
  44752. case 2:
  44753. message.day = reader.int64();
  44754. break;
  44755. case 3:
  44756. message.num = reader.int64();
  44757. break;
  44758. case 4:
  44759. message.award = reader.int64();
  44760. break;
  44761. default:
  44762. reader.skipType(tag & 7);
  44763. break;
  44764. }
  44765. }
  44766. return message;
  44767. };
  44768. /**
  44769. * Decodes a keep_recharge_data_rsp message from the specified reader or buffer, length delimited.
  44770. * @function decodeDelimited
  44771. * @memberof game.keep_recharge_data_rsp
  44772. * @static
  44773. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  44774. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
  44775. * @throws {Error} If the payload is not a reader or valid buffer
  44776. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  44777. */
  44778. keep_recharge_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  44779. if (!(reader instanceof $Reader))
  44780. reader = new $Reader(reader);
  44781. return this.decode(reader, reader.uint32());
  44782. };
  44783. /**
  44784. * Verifies a keep_recharge_data_rsp message.
  44785. * @function verify
  44786. * @memberof game.keep_recharge_data_rsp
  44787. * @static
  44788. * @param {Object.<string,*>} message Plain object to verify
  44789. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  44790. */
  44791. keep_recharge_data_rsp.verify = function verify(message) {
  44792. if (typeof message !== "object" || message === null)
  44793. return "object expected";
  44794. if (message.errno != null && message.hasOwnProperty("errno"))
  44795. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  44796. return "errno: integer|Long expected";
  44797. if (message.day != null && message.hasOwnProperty("day"))
  44798. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  44799. return "day: integer|Long expected";
  44800. if (message.num != null && message.hasOwnProperty("num"))
  44801. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  44802. return "num: integer|Long expected";
  44803. if (message.award != null && message.hasOwnProperty("award"))
  44804. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  44805. return "award: integer|Long expected";
  44806. return null;
  44807. };
  44808. /**
  44809. * Creates a keep_recharge_data_rsp message from a plain object. Also converts values to their respective internal types.
  44810. * @function fromObject
  44811. * @memberof game.keep_recharge_data_rsp
  44812. * @static
  44813. * @param {Object.<string,*>} object Plain object
  44814. * @returns {game.keep_recharge_data_rsp} keep_recharge_data_rsp
  44815. */
  44816. keep_recharge_data_rsp.fromObject = function fromObject(object) {
  44817. if (object instanceof $root.game.keep_recharge_data_rsp)
  44818. return object;
  44819. let message = new $root.game.keep_recharge_data_rsp();
  44820. if (object.errno != null)
  44821. if ($util.Long)
  44822. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  44823. else if (typeof object.errno === "string")
  44824. message.errno = parseInt(object.errno, 10);
  44825. else if (typeof object.errno === "number")
  44826. message.errno = object.errno;
  44827. else if (typeof object.errno === "object")
  44828. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  44829. if (object.day != null)
  44830. if ($util.Long)
  44831. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  44832. else if (typeof object.day === "string")
  44833. message.day = parseInt(object.day, 10);
  44834. else if (typeof object.day === "number")
  44835. message.day = object.day;
  44836. else if (typeof object.day === "object")
  44837. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  44838. if (object.num != null)
  44839. if ($util.Long)
  44840. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  44841. else if (typeof object.num === "string")
  44842. message.num = parseInt(object.num, 10);
  44843. else if (typeof object.num === "number")
  44844. message.num = object.num;
  44845. else if (typeof object.num === "object")
  44846. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  44847. if (object.award != null)
  44848. if ($util.Long)
  44849. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  44850. else if (typeof object.award === "string")
  44851. message.award = parseInt(object.award, 10);
  44852. else if (typeof object.award === "number")
  44853. message.award = object.award;
  44854. else if (typeof object.award === "object")
  44855. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  44856. return message;
  44857. };
  44858. /**
  44859. * Creates a plain object from a keep_recharge_data_rsp message. Also converts values to other types if specified.
  44860. * @function toObject
  44861. * @memberof game.keep_recharge_data_rsp
  44862. * @static
  44863. * @param {game.keep_recharge_data_rsp} message keep_recharge_data_rsp
  44864. * @param {$protobuf.IConversionOptions} [options] Conversion options
  44865. * @returns {Object.<string,*>} Plain object
  44866. */
  44867. keep_recharge_data_rsp.toObject = function toObject(message, options) {
  44868. if (!options)
  44869. options = {};
  44870. let object = {};
  44871. if (options.defaults) {
  44872. if ($util.Long) {
  44873. let long = new $util.Long(0, 0, false);
  44874. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44875. } else
  44876. object.errno = options.longs === String ? "0" : 0;
  44877. if ($util.Long) {
  44878. let long = new $util.Long(0, 0, false);
  44879. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44880. } else
  44881. object.day = options.longs === String ? "0" : 0;
  44882. if ($util.Long) {
  44883. let long = new $util.Long(0, 0, false);
  44884. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44885. } else
  44886. object.num = options.longs === String ? "0" : 0;
  44887. if ($util.Long) {
  44888. let long = new $util.Long(0, 0, false);
  44889. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  44890. } else
  44891. object.award = options.longs === String ? "0" : 0;
  44892. }
  44893. if (message.errno != null && message.hasOwnProperty("errno"))
  44894. if (typeof message.errno === "number")
  44895. object.errno = options.longs === String ? String(message.errno) : message.errno;
  44896. else
  44897. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  44898. if (message.day != null && message.hasOwnProperty("day"))
  44899. if (typeof message.day === "number")
  44900. object.day = options.longs === String ? String(message.day) : message.day;
  44901. else
  44902. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  44903. if (message.num != null && message.hasOwnProperty("num"))
  44904. if (typeof message.num === "number")
  44905. object.num = options.longs === String ? String(message.num) : message.num;
  44906. else
  44907. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  44908. if (message.award != null && message.hasOwnProperty("award"))
  44909. if (typeof message.award === "number")
  44910. object.award = options.longs === String ? String(message.award) : message.award;
  44911. else
  44912. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  44913. return object;
  44914. };
  44915. /**
  44916. * Converts this keep_recharge_data_rsp to JSON.
  44917. * @function toJSON
  44918. * @memberof game.keep_recharge_data_rsp
  44919. * @instance
  44920. * @returns {Object.<string,*>} JSON object
  44921. */
  44922. keep_recharge_data_rsp.prototype.toJSON = function toJSON() {
  44923. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  44924. };
  44925. return keep_recharge_data_rsp;
  44926. })();
  44927. game.keep_recharge_award = (function() {
  44928. /**
  44929. * Properties of a keep_recharge_award.
  44930. * @memberof game
  44931. * @interface Ikeep_recharge_award
  44932. * @property {number|Long|null} [day] keep_recharge_award day
  44933. */
  44934. /**
  44935. * Constructs a new keep_recharge_award.
  44936. * @memberof game
  44937. * @classdesc Represents a keep_recharge_award.
  44938. * @implements Ikeep_recharge_award
  44939. * @constructor
  44940. * @param {game.Ikeep_recharge_award=} [properties] Properties to set
  44941. */
  44942. function keep_recharge_award(properties) {
  44943. if (properties)
  44944. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  44945. if (properties[keys[i]] != null)
  44946. this[keys[i]] = properties[keys[i]];
  44947. }
  44948. /**
  44949. * keep_recharge_award day.
  44950. * @member {number|Long} day
  44951. * @memberof game.keep_recharge_award
  44952. * @instance
  44953. */
  44954. keep_recharge_award.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  44955. /**
  44956. * Creates a new keep_recharge_award instance using the specified properties.
  44957. * @function create
  44958. * @memberof game.keep_recharge_award
  44959. * @static
  44960. * @param {game.Ikeep_recharge_award=} [properties] Properties to set
  44961. * @returns {game.keep_recharge_award} keep_recharge_award instance
  44962. */
  44963. keep_recharge_award.create = function create(properties) {
  44964. return new keep_recharge_award(properties);
  44965. };
  44966. /**
  44967. * Encodes the specified keep_recharge_award message. Does not implicitly {@link game.keep_recharge_award.verify|verify} messages.
  44968. * @function encode
  44969. * @memberof game.keep_recharge_award
  44970. * @static
  44971. * @param {game.Ikeep_recharge_award} message keep_recharge_award message or plain object to encode
  44972. * @param {$protobuf.Writer} [writer] Writer to encode to
  44973. * @returns {$protobuf.Writer} Writer
  44974. */
  44975. keep_recharge_award.encode = function encode(message, writer) {
  44976. if (!writer)
  44977. writer = $Writer.create();
  44978. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  44979. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.day);
  44980. return writer;
  44981. };
  44982. /**
  44983. * Encodes the specified keep_recharge_award message, length delimited. Does not implicitly {@link game.keep_recharge_award.verify|verify} messages.
  44984. * @function encodeDelimited
  44985. * @memberof game.keep_recharge_award
  44986. * @static
  44987. * @param {game.Ikeep_recharge_award} message keep_recharge_award message or plain object to encode
  44988. * @param {$protobuf.Writer} [writer] Writer to encode to
  44989. * @returns {$protobuf.Writer} Writer
  44990. */
  44991. keep_recharge_award.encodeDelimited = function encodeDelimited(message, writer) {
  44992. return this.encode(message, writer).ldelim();
  44993. };
  44994. /**
  44995. * Decodes a keep_recharge_award message from the specified reader or buffer.
  44996. * @function decode
  44997. * @memberof game.keep_recharge_award
  44998. * @static
  44999. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45000. * @param {number} [length] Message length if known beforehand
  45001. * @returns {game.keep_recharge_award} keep_recharge_award
  45002. * @throws {Error} If the payload is not a reader or valid buffer
  45003. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45004. */
  45005. keep_recharge_award.decode = function decode(reader, length) {
  45006. if (!(reader instanceof $Reader))
  45007. reader = $Reader.create(reader);
  45008. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_award();
  45009. while (reader.pos < end) {
  45010. let tag = reader.uint32();
  45011. switch (tag >>> 3) {
  45012. case 1:
  45013. message.day = reader.int64();
  45014. break;
  45015. default:
  45016. reader.skipType(tag & 7);
  45017. break;
  45018. }
  45019. }
  45020. return message;
  45021. };
  45022. /**
  45023. * Decodes a keep_recharge_award message from the specified reader or buffer, length delimited.
  45024. * @function decodeDelimited
  45025. * @memberof game.keep_recharge_award
  45026. * @static
  45027. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45028. * @returns {game.keep_recharge_award} keep_recharge_award
  45029. * @throws {Error} If the payload is not a reader or valid buffer
  45030. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45031. */
  45032. keep_recharge_award.decodeDelimited = function decodeDelimited(reader) {
  45033. if (!(reader instanceof $Reader))
  45034. reader = new $Reader(reader);
  45035. return this.decode(reader, reader.uint32());
  45036. };
  45037. /**
  45038. * Verifies a keep_recharge_award message.
  45039. * @function verify
  45040. * @memberof game.keep_recharge_award
  45041. * @static
  45042. * @param {Object.<string,*>} message Plain object to verify
  45043. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45044. */
  45045. keep_recharge_award.verify = function verify(message) {
  45046. if (typeof message !== "object" || message === null)
  45047. return "object expected";
  45048. if (message.day != null && message.hasOwnProperty("day"))
  45049. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  45050. return "day: integer|Long expected";
  45051. return null;
  45052. };
  45053. /**
  45054. * Creates a keep_recharge_award message from a plain object. Also converts values to their respective internal types.
  45055. * @function fromObject
  45056. * @memberof game.keep_recharge_award
  45057. * @static
  45058. * @param {Object.<string,*>} object Plain object
  45059. * @returns {game.keep_recharge_award} keep_recharge_award
  45060. */
  45061. keep_recharge_award.fromObject = function fromObject(object) {
  45062. if (object instanceof $root.game.keep_recharge_award)
  45063. return object;
  45064. let message = new $root.game.keep_recharge_award();
  45065. if (object.day != null)
  45066. if ($util.Long)
  45067. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  45068. else if (typeof object.day === "string")
  45069. message.day = parseInt(object.day, 10);
  45070. else if (typeof object.day === "number")
  45071. message.day = object.day;
  45072. else if (typeof object.day === "object")
  45073. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  45074. return message;
  45075. };
  45076. /**
  45077. * Creates a plain object from a keep_recharge_award message. Also converts values to other types if specified.
  45078. * @function toObject
  45079. * @memberof game.keep_recharge_award
  45080. * @static
  45081. * @param {game.keep_recharge_award} message keep_recharge_award
  45082. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45083. * @returns {Object.<string,*>} Plain object
  45084. */
  45085. keep_recharge_award.toObject = function toObject(message, options) {
  45086. if (!options)
  45087. options = {};
  45088. let object = {};
  45089. if (options.defaults)
  45090. if ($util.Long) {
  45091. let long = new $util.Long(0, 0, false);
  45092. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45093. } else
  45094. object.day = options.longs === String ? "0" : 0;
  45095. if (message.day != null && message.hasOwnProperty("day"))
  45096. if (typeof message.day === "number")
  45097. object.day = options.longs === String ? String(message.day) : message.day;
  45098. else
  45099. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  45100. return object;
  45101. };
  45102. /**
  45103. * Converts this keep_recharge_award to JSON.
  45104. * @function toJSON
  45105. * @memberof game.keep_recharge_award
  45106. * @instance
  45107. * @returns {Object.<string,*>} JSON object
  45108. */
  45109. keep_recharge_award.prototype.toJSON = function toJSON() {
  45110. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45111. };
  45112. return keep_recharge_award;
  45113. })();
  45114. game.keep_recharge_award_rsp = (function() {
  45115. /**
  45116. * Properties of a keep_recharge_award_rsp.
  45117. * @memberof game
  45118. * @interface Ikeep_recharge_award_rsp
  45119. * @property {number|Long|null} [errno] keep_recharge_award_rsp errno
  45120. * @property {number|Long|null} [award] keep_recharge_award_rsp award
  45121. */
  45122. /**
  45123. * Constructs a new keep_recharge_award_rsp.
  45124. * @memberof game
  45125. * @classdesc Represents a keep_recharge_award_rsp.
  45126. * @implements Ikeep_recharge_award_rsp
  45127. * @constructor
  45128. * @param {game.Ikeep_recharge_award_rsp=} [properties] Properties to set
  45129. */
  45130. function keep_recharge_award_rsp(properties) {
  45131. if (properties)
  45132. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45133. if (properties[keys[i]] != null)
  45134. this[keys[i]] = properties[keys[i]];
  45135. }
  45136. /**
  45137. * keep_recharge_award_rsp errno.
  45138. * @member {number|Long} errno
  45139. * @memberof game.keep_recharge_award_rsp
  45140. * @instance
  45141. */
  45142. keep_recharge_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45143. /**
  45144. * keep_recharge_award_rsp award.
  45145. * @member {number|Long} award
  45146. * @memberof game.keep_recharge_award_rsp
  45147. * @instance
  45148. */
  45149. keep_recharge_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45150. /**
  45151. * Creates a new keep_recharge_award_rsp instance using the specified properties.
  45152. * @function create
  45153. * @memberof game.keep_recharge_award_rsp
  45154. * @static
  45155. * @param {game.Ikeep_recharge_award_rsp=} [properties] Properties to set
  45156. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp instance
  45157. */
  45158. keep_recharge_award_rsp.create = function create(properties) {
  45159. return new keep_recharge_award_rsp(properties);
  45160. };
  45161. /**
  45162. * Encodes the specified keep_recharge_award_rsp message. Does not implicitly {@link game.keep_recharge_award_rsp.verify|verify} messages.
  45163. * @function encode
  45164. * @memberof game.keep_recharge_award_rsp
  45165. * @static
  45166. * @param {game.Ikeep_recharge_award_rsp} message keep_recharge_award_rsp message or plain object to encode
  45167. * @param {$protobuf.Writer} [writer] Writer to encode to
  45168. * @returns {$protobuf.Writer} Writer
  45169. */
  45170. keep_recharge_award_rsp.encode = function encode(message, writer) {
  45171. if (!writer)
  45172. writer = $Writer.create();
  45173. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  45174. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  45175. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  45176. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  45177. return writer;
  45178. };
  45179. /**
  45180. * Encodes the specified keep_recharge_award_rsp message, length delimited. Does not implicitly {@link game.keep_recharge_award_rsp.verify|verify} messages.
  45181. * @function encodeDelimited
  45182. * @memberof game.keep_recharge_award_rsp
  45183. * @static
  45184. * @param {game.Ikeep_recharge_award_rsp} message keep_recharge_award_rsp message or plain object to encode
  45185. * @param {$protobuf.Writer} [writer] Writer to encode to
  45186. * @returns {$protobuf.Writer} Writer
  45187. */
  45188. keep_recharge_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  45189. return this.encode(message, writer).ldelim();
  45190. };
  45191. /**
  45192. * Decodes a keep_recharge_award_rsp message from the specified reader or buffer.
  45193. * @function decode
  45194. * @memberof game.keep_recharge_award_rsp
  45195. * @static
  45196. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45197. * @param {number} [length] Message length if known beforehand
  45198. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
  45199. * @throws {Error} If the payload is not a reader or valid buffer
  45200. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45201. */
  45202. keep_recharge_award_rsp.decode = function decode(reader, length) {
  45203. if (!(reader instanceof $Reader))
  45204. reader = $Reader.create(reader);
  45205. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.keep_recharge_award_rsp();
  45206. while (reader.pos < end) {
  45207. let tag = reader.uint32();
  45208. switch (tag >>> 3) {
  45209. case 1:
  45210. message.errno = reader.int64();
  45211. break;
  45212. case 2:
  45213. message.award = reader.int64();
  45214. break;
  45215. default:
  45216. reader.skipType(tag & 7);
  45217. break;
  45218. }
  45219. }
  45220. return message;
  45221. };
  45222. /**
  45223. * Decodes a keep_recharge_award_rsp message from the specified reader or buffer, length delimited.
  45224. * @function decodeDelimited
  45225. * @memberof game.keep_recharge_award_rsp
  45226. * @static
  45227. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45228. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
  45229. * @throws {Error} If the payload is not a reader or valid buffer
  45230. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45231. */
  45232. keep_recharge_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  45233. if (!(reader instanceof $Reader))
  45234. reader = new $Reader(reader);
  45235. return this.decode(reader, reader.uint32());
  45236. };
  45237. /**
  45238. * Verifies a keep_recharge_award_rsp message.
  45239. * @function verify
  45240. * @memberof game.keep_recharge_award_rsp
  45241. * @static
  45242. * @param {Object.<string,*>} message Plain object to verify
  45243. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45244. */
  45245. keep_recharge_award_rsp.verify = function verify(message) {
  45246. if (typeof message !== "object" || message === null)
  45247. return "object expected";
  45248. if (message.errno != null && message.hasOwnProperty("errno"))
  45249. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  45250. return "errno: integer|Long expected";
  45251. if (message.award != null && message.hasOwnProperty("award"))
  45252. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  45253. return "award: integer|Long expected";
  45254. return null;
  45255. };
  45256. /**
  45257. * Creates a keep_recharge_award_rsp message from a plain object. Also converts values to their respective internal types.
  45258. * @function fromObject
  45259. * @memberof game.keep_recharge_award_rsp
  45260. * @static
  45261. * @param {Object.<string,*>} object Plain object
  45262. * @returns {game.keep_recharge_award_rsp} keep_recharge_award_rsp
  45263. */
  45264. keep_recharge_award_rsp.fromObject = function fromObject(object) {
  45265. if (object instanceof $root.game.keep_recharge_award_rsp)
  45266. return object;
  45267. let message = new $root.game.keep_recharge_award_rsp();
  45268. if (object.errno != null)
  45269. if ($util.Long)
  45270. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  45271. else if (typeof object.errno === "string")
  45272. message.errno = parseInt(object.errno, 10);
  45273. else if (typeof object.errno === "number")
  45274. message.errno = object.errno;
  45275. else if (typeof object.errno === "object")
  45276. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  45277. if (object.award != null)
  45278. if ($util.Long)
  45279. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  45280. else if (typeof object.award === "string")
  45281. message.award = parseInt(object.award, 10);
  45282. else if (typeof object.award === "number")
  45283. message.award = object.award;
  45284. else if (typeof object.award === "object")
  45285. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  45286. return message;
  45287. };
  45288. /**
  45289. * Creates a plain object from a keep_recharge_award_rsp message. Also converts values to other types if specified.
  45290. * @function toObject
  45291. * @memberof game.keep_recharge_award_rsp
  45292. * @static
  45293. * @param {game.keep_recharge_award_rsp} message keep_recharge_award_rsp
  45294. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45295. * @returns {Object.<string,*>} Plain object
  45296. */
  45297. keep_recharge_award_rsp.toObject = function toObject(message, options) {
  45298. if (!options)
  45299. options = {};
  45300. let object = {};
  45301. if (options.defaults) {
  45302. if ($util.Long) {
  45303. let long = new $util.Long(0, 0, false);
  45304. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45305. } else
  45306. object.errno = options.longs === String ? "0" : 0;
  45307. if ($util.Long) {
  45308. let long = new $util.Long(0, 0, false);
  45309. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45310. } else
  45311. object.award = options.longs === String ? "0" : 0;
  45312. }
  45313. if (message.errno != null && message.hasOwnProperty("errno"))
  45314. if (typeof message.errno === "number")
  45315. object.errno = options.longs === String ? String(message.errno) : message.errno;
  45316. else
  45317. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  45318. if (message.award != null && message.hasOwnProperty("award"))
  45319. if (typeof message.award === "number")
  45320. object.award = options.longs === String ? String(message.award) : message.award;
  45321. else
  45322. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  45323. return object;
  45324. };
  45325. /**
  45326. * Converts this keep_recharge_award_rsp to JSON.
  45327. * @function toJSON
  45328. * @memberof game.keep_recharge_award_rsp
  45329. * @instance
  45330. * @returns {Object.<string,*>} JSON object
  45331. */
  45332. keep_recharge_award_rsp.prototype.toJSON = function toJSON() {
  45333. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45334. };
  45335. return keep_recharge_award_rsp;
  45336. })();
  45337. game.get_red_point_list = (function() {
  45338. /**
  45339. * Properties of a get_red_point_list.
  45340. * @memberof game
  45341. * @interface Iget_red_point_list
  45342. */
  45343. /**
  45344. * Constructs a new get_red_point_list.
  45345. * @memberof game
  45346. * @classdesc Represents a get_red_point_list.
  45347. * @implements Iget_red_point_list
  45348. * @constructor
  45349. * @param {game.Iget_red_point_list=} [properties] Properties to set
  45350. */
  45351. function get_red_point_list(properties) {
  45352. if (properties)
  45353. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45354. if (properties[keys[i]] != null)
  45355. this[keys[i]] = properties[keys[i]];
  45356. }
  45357. /**
  45358. * Creates a new get_red_point_list instance using the specified properties.
  45359. * @function create
  45360. * @memberof game.get_red_point_list
  45361. * @static
  45362. * @param {game.Iget_red_point_list=} [properties] Properties to set
  45363. * @returns {game.get_red_point_list} get_red_point_list instance
  45364. */
  45365. get_red_point_list.create = function create(properties) {
  45366. return new get_red_point_list(properties);
  45367. };
  45368. /**
  45369. * Encodes the specified get_red_point_list message. Does not implicitly {@link game.get_red_point_list.verify|verify} messages.
  45370. * @function encode
  45371. * @memberof game.get_red_point_list
  45372. * @static
  45373. * @param {game.Iget_red_point_list} message get_red_point_list message or plain object to encode
  45374. * @param {$protobuf.Writer} [writer] Writer to encode to
  45375. * @returns {$protobuf.Writer} Writer
  45376. */
  45377. get_red_point_list.encode = function encode(message, writer) {
  45378. if (!writer)
  45379. writer = $Writer.create();
  45380. return writer;
  45381. };
  45382. /**
  45383. * Encodes the specified get_red_point_list message, length delimited. Does not implicitly {@link game.get_red_point_list.verify|verify} messages.
  45384. * @function encodeDelimited
  45385. * @memberof game.get_red_point_list
  45386. * @static
  45387. * @param {game.Iget_red_point_list} message get_red_point_list message or plain object to encode
  45388. * @param {$protobuf.Writer} [writer] Writer to encode to
  45389. * @returns {$protobuf.Writer} Writer
  45390. */
  45391. get_red_point_list.encodeDelimited = function encodeDelimited(message, writer) {
  45392. return this.encode(message, writer).ldelim();
  45393. };
  45394. /**
  45395. * Decodes a get_red_point_list message from the specified reader or buffer.
  45396. * @function decode
  45397. * @memberof game.get_red_point_list
  45398. * @static
  45399. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45400. * @param {number} [length] Message length if known beforehand
  45401. * @returns {game.get_red_point_list} get_red_point_list
  45402. * @throws {Error} If the payload is not a reader or valid buffer
  45403. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45404. */
  45405. get_red_point_list.decode = function decode(reader, length) {
  45406. if (!(reader instanceof $Reader))
  45407. reader = $Reader.create(reader);
  45408. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_red_point_list();
  45409. while (reader.pos < end) {
  45410. let tag = reader.uint32();
  45411. switch (tag >>> 3) {
  45412. default:
  45413. reader.skipType(tag & 7);
  45414. break;
  45415. }
  45416. }
  45417. return message;
  45418. };
  45419. /**
  45420. * Decodes a get_red_point_list message from the specified reader or buffer, length delimited.
  45421. * @function decodeDelimited
  45422. * @memberof game.get_red_point_list
  45423. * @static
  45424. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45425. * @returns {game.get_red_point_list} get_red_point_list
  45426. * @throws {Error} If the payload is not a reader or valid buffer
  45427. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45428. */
  45429. get_red_point_list.decodeDelimited = function decodeDelimited(reader) {
  45430. if (!(reader instanceof $Reader))
  45431. reader = new $Reader(reader);
  45432. return this.decode(reader, reader.uint32());
  45433. };
  45434. /**
  45435. * Verifies a get_red_point_list message.
  45436. * @function verify
  45437. * @memberof game.get_red_point_list
  45438. * @static
  45439. * @param {Object.<string,*>} message Plain object to verify
  45440. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45441. */
  45442. get_red_point_list.verify = function verify(message) {
  45443. if (typeof message !== "object" || message === null)
  45444. return "object expected";
  45445. return null;
  45446. };
  45447. /**
  45448. * Creates a get_red_point_list message from a plain object. Also converts values to their respective internal types.
  45449. * @function fromObject
  45450. * @memberof game.get_red_point_list
  45451. * @static
  45452. * @param {Object.<string,*>} object Plain object
  45453. * @returns {game.get_red_point_list} get_red_point_list
  45454. */
  45455. get_red_point_list.fromObject = function fromObject(object) {
  45456. if (object instanceof $root.game.get_red_point_list)
  45457. return object;
  45458. return new $root.game.get_red_point_list();
  45459. };
  45460. /**
  45461. * Creates a plain object from a get_red_point_list message. Also converts values to other types if specified.
  45462. * @function toObject
  45463. * @memberof game.get_red_point_list
  45464. * @static
  45465. * @param {game.get_red_point_list} message get_red_point_list
  45466. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45467. * @returns {Object.<string,*>} Plain object
  45468. */
  45469. get_red_point_list.toObject = function toObject() {
  45470. return {};
  45471. };
  45472. /**
  45473. * Converts this get_red_point_list to JSON.
  45474. * @function toJSON
  45475. * @memberof game.get_red_point_list
  45476. * @instance
  45477. * @returns {Object.<string,*>} JSON object
  45478. */
  45479. get_red_point_list.prototype.toJSON = function toJSON() {
  45480. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45481. };
  45482. return get_red_point_list;
  45483. })();
  45484. game.get_red_point_list_rsp = (function() {
  45485. /**
  45486. * Properties of a get_red_point_list_rsp.
  45487. * @memberof game
  45488. * @interface Iget_red_point_list_rsp
  45489. * @property {number|Long|null} [errno] get_red_point_list_rsp errno
  45490. * @property {Array.<game.Ired_point_info>|null} [list] get_red_point_list_rsp list
  45491. */
  45492. /**
  45493. * Constructs a new get_red_point_list_rsp.
  45494. * @memberof game
  45495. * @classdesc Represents a get_red_point_list_rsp.
  45496. * @implements Iget_red_point_list_rsp
  45497. * @constructor
  45498. * @param {game.Iget_red_point_list_rsp=} [properties] Properties to set
  45499. */
  45500. function get_red_point_list_rsp(properties) {
  45501. this.list = [];
  45502. if (properties)
  45503. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45504. if (properties[keys[i]] != null)
  45505. this[keys[i]] = properties[keys[i]];
  45506. }
  45507. /**
  45508. * get_red_point_list_rsp errno.
  45509. * @member {number|Long} errno
  45510. * @memberof game.get_red_point_list_rsp
  45511. * @instance
  45512. */
  45513. get_red_point_list_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45514. /**
  45515. * get_red_point_list_rsp list.
  45516. * @member {Array.<game.Ired_point_info>} list
  45517. * @memberof game.get_red_point_list_rsp
  45518. * @instance
  45519. */
  45520. get_red_point_list_rsp.prototype.list = $util.emptyArray;
  45521. /**
  45522. * Creates a new get_red_point_list_rsp instance using the specified properties.
  45523. * @function create
  45524. * @memberof game.get_red_point_list_rsp
  45525. * @static
  45526. * @param {game.Iget_red_point_list_rsp=} [properties] Properties to set
  45527. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp instance
  45528. */
  45529. get_red_point_list_rsp.create = function create(properties) {
  45530. return new get_red_point_list_rsp(properties);
  45531. };
  45532. /**
  45533. * Encodes the specified get_red_point_list_rsp message. Does not implicitly {@link game.get_red_point_list_rsp.verify|verify} messages.
  45534. * @function encode
  45535. * @memberof game.get_red_point_list_rsp
  45536. * @static
  45537. * @param {game.Iget_red_point_list_rsp} message get_red_point_list_rsp message or plain object to encode
  45538. * @param {$protobuf.Writer} [writer] Writer to encode to
  45539. * @returns {$protobuf.Writer} Writer
  45540. */
  45541. get_red_point_list_rsp.encode = function encode(message, writer) {
  45542. if (!writer)
  45543. writer = $Writer.create();
  45544. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  45545. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  45546. if (message.list != null && message.list.length)
  45547. for (let i = 0; i < message.list.length; ++i)
  45548. $root.game.red_point_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  45549. return writer;
  45550. };
  45551. /**
  45552. * Encodes the specified get_red_point_list_rsp message, length delimited. Does not implicitly {@link game.get_red_point_list_rsp.verify|verify} messages.
  45553. * @function encodeDelimited
  45554. * @memberof game.get_red_point_list_rsp
  45555. * @static
  45556. * @param {game.Iget_red_point_list_rsp} message get_red_point_list_rsp message or plain object to encode
  45557. * @param {$protobuf.Writer} [writer] Writer to encode to
  45558. * @returns {$protobuf.Writer} Writer
  45559. */
  45560. get_red_point_list_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  45561. return this.encode(message, writer).ldelim();
  45562. };
  45563. /**
  45564. * Decodes a get_red_point_list_rsp message from the specified reader or buffer.
  45565. * @function decode
  45566. * @memberof game.get_red_point_list_rsp
  45567. * @static
  45568. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45569. * @param {number} [length] Message length if known beforehand
  45570. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
  45571. * @throws {Error} If the payload is not a reader or valid buffer
  45572. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45573. */
  45574. get_red_point_list_rsp.decode = function decode(reader, length) {
  45575. if (!(reader instanceof $Reader))
  45576. reader = $Reader.create(reader);
  45577. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.get_red_point_list_rsp();
  45578. while (reader.pos < end) {
  45579. let tag = reader.uint32();
  45580. switch (tag >>> 3) {
  45581. case 1:
  45582. message.errno = reader.int64();
  45583. break;
  45584. case 2:
  45585. if (!(message.list && message.list.length))
  45586. message.list = [];
  45587. message.list.push($root.game.red_point_info.decode(reader, reader.uint32()));
  45588. break;
  45589. default:
  45590. reader.skipType(tag & 7);
  45591. break;
  45592. }
  45593. }
  45594. return message;
  45595. };
  45596. /**
  45597. * Decodes a get_red_point_list_rsp message from the specified reader or buffer, length delimited.
  45598. * @function decodeDelimited
  45599. * @memberof game.get_red_point_list_rsp
  45600. * @static
  45601. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45602. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
  45603. * @throws {Error} If the payload is not a reader or valid buffer
  45604. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45605. */
  45606. get_red_point_list_rsp.decodeDelimited = function decodeDelimited(reader) {
  45607. if (!(reader instanceof $Reader))
  45608. reader = new $Reader(reader);
  45609. return this.decode(reader, reader.uint32());
  45610. };
  45611. /**
  45612. * Verifies a get_red_point_list_rsp message.
  45613. * @function verify
  45614. * @memberof game.get_red_point_list_rsp
  45615. * @static
  45616. * @param {Object.<string,*>} message Plain object to verify
  45617. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45618. */
  45619. get_red_point_list_rsp.verify = function verify(message) {
  45620. if (typeof message !== "object" || message === null)
  45621. return "object expected";
  45622. if (message.errno != null && message.hasOwnProperty("errno"))
  45623. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  45624. return "errno: integer|Long expected";
  45625. if (message.list != null && message.hasOwnProperty("list")) {
  45626. if (!Array.isArray(message.list))
  45627. return "list: array expected";
  45628. for (let i = 0; i < message.list.length; ++i) {
  45629. let error = $root.game.red_point_info.verify(message.list[i]);
  45630. if (error)
  45631. return "list." + error;
  45632. }
  45633. }
  45634. return null;
  45635. };
  45636. /**
  45637. * Creates a get_red_point_list_rsp message from a plain object. Also converts values to their respective internal types.
  45638. * @function fromObject
  45639. * @memberof game.get_red_point_list_rsp
  45640. * @static
  45641. * @param {Object.<string,*>} object Plain object
  45642. * @returns {game.get_red_point_list_rsp} get_red_point_list_rsp
  45643. */
  45644. get_red_point_list_rsp.fromObject = function fromObject(object) {
  45645. if (object instanceof $root.game.get_red_point_list_rsp)
  45646. return object;
  45647. let message = new $root.game.get_red_point_list_rsp();
  45648. if (object.errno != null)
  45649. if ($util.Long)
  45650. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  45651. else if (typeof object.errno === "string")
  45652. message.errno = parseInt(object.errno, 10);
  45653. else if (typeof object.errno === "number")
  45654. message.errno = object.errno;
  45655. else if (typeof object.errno === "object")
  45656. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  45657. if (object.list) {
  45658. if (!Array.isArray(object.list))
  45659. throw TypeError(".game.get_red_point_list_rsp.list: array expected");
  45660. message.list = [];
  45661. for (let i = 0; i < object.list.length; ++i) {
  45662. if (typeof object.list[i] !== "object")
  45663. throw TypeError(".game.get_red_point_list_rsp.list: object expected");
  45664. message.list[i] = $root.game.red_point_info.fromObject(object.list[i]);
  45665. }
  45666. }
  45667. return message;
  45668. };
  45669. /**
  45670. * Creates a plain object from a get_red_point_list_rsp message. Also converts values to other types if specified.
  45671. * @function toObject
  45672. * @memberof game.get_red_point_list_rsp
  45673. * @static
  45674. * @param {game.get_red_point_list_rsp} message get_red_point_list_rsp
  45675. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45676. * @returns {Object.<string,*>} Plain object
  45677. */
  45678. get_red_point_list_rsp.toObject = function toObject(message, options) {
  45679. if (!options)
  45680. options = {};
  45681. let object = {};
  45682. if (options.arrays || options.defaults)
  45683. object.list = [];
  45684. if (options.defaults)
  45685. if ($util.Long) {
  45686. let long = new $util.Long(0, 0, false);
  45687. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45688. } else
  45689. object.errno = options.longs === String ? "0" : 0;
  45690. if (message.errno != null && message.hasOwnProperty("errno"))
  45691. if (typeof message.errno === "number")
  45692. object.errno = options.longs === String ? String(message.errno) : message.errno;
  45693. else
  45694. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  45695. if (message.list && message.list.length) {
  45696. object.list = [];
  45697. for (let j = 0; j < message.list.length; ++j)
  45698. object.list[j] = $root.game.red_point_info.toObject(message.list[j], options);
  45699. }
  45700. return object;
  45701. };
  45702. /**
  45703. * Converts this get_red_point_list_rsp to JSON.
  45704. * @function toJSON
  45705. * @memberof game.get_red_point_list_rsp
  45706. * @instance
  45707. * @returns {Object.<string,*>} JSON object
  45708. */
  45709. get_red_point_list_rsp.prototype.toJSON = function toJSON() {
  45710. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45711. };
  45712. return get_red_point_list_rsp;
  45713. })();
  45714. game.recharge_result = (function() {
  45715. /**
  45716. * Properties of a recharge_result.
  45717. * @memberof game
  45718. * @interface Irecharge_result
  45719. * @property {string|null} [orderId] recharge_result orderId
  45720. * @property {string|null} [payOrderId] recharge_result payOrderId
  45721. * @property {string|null} [purchaseToken] recharge_result purchaseToken
  45722. * @property {string|null} [payType] recharge_result payType
  45723. * @property {number|Long|null} [cfgId] recharge_result cfgId
  45724. */
  45725. /**
  45726. * Constructs a new recharge_result.
  45727. * @memberof game
  45728. * @classdesc Represents a recharge_result.
  45729. * @implements Irecharge_result
  45730. * @constructor
  45731. * @param {game.Irecharge_result=} [properties] Properties to set
  45732. */
  45733. function recharge_result(properties) {
  45734. if (properties)
  45735. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  45736. if (properties[keys[i]] != null)
  45737. this[keys[i]] = properties[keys[i]];
  45738. }
  45739. /**
  45740. * recharge_result orderId.
  45741. * @member {string} orderId
  45742. * @memberof game.recharge_result
  45743. * @instance
  45744. */
  45745. recharge_result.prototype.orderId = "";
  45746. /**
  45747. * recharge_result payOrderId.
  45748. * @member {string} payOrderId
  45749. * @memberof game.recharge_result
  45750. * @instance
  45751. */
  45752. recharge_result.prototype.payOrderId = "";
  45753. /**
  45754. * recharge_result purchaseToken.
  45755. * @member {string} purchaseToken
  45756. * @memberof game.recharge_result
  45757. * @instance
  45758. */
  45759. recharge_result.prototype.purchaseToken = "";
  45760. /**
  45761. * recharge_result payType.
  45762. * @member {string} payType
  45763. * @memberof game.recharge_result
  45764. * @instance
  45765. */
  45766. recharge_result.prototype.payType = "";
  45767. /**
  45768. * recharge_result cfgId.
  45769. * @member {number|Long} cfgId
  45770. * @memberof game.recharge_result
  45771. * @instance
  45772. */
  45773. recharge_result.prototype.cfgId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  45774. /**
  45775. * Creates a new recharge_result instance using the specified properties.
  45776. * @function create
  45777. * @memberof game.recharge_result
  45778. * @static
  45779. * @param {game.Irecharge_result=} [properties] Properties to set
  45780. * @returns {game.recharge_result} recharge_result instance
  45781. */
  45782. recharge_result.create = function create(properties) {
  45783. return new recharge_result(properties);
  45784. };
  45785. /**
  45786. * Encodes the specified recharge_result message. Does not implicitly {@link game.recharge_result.verify|verify} messages.
  45787. * @function encode
  45788. * @memberof game.recharge_result
  45789. * @static
  45790. * @param {game.Irecharge_result} message recharge_result message or plain object to encode
  45791. * @param {$protobuf.Writer} [writer] Writer to encode to
  45792. * @returns {$protobuf.Writer} Writer
  45793. */
  45794. recharge_result.encode = function encode(message, writer) {
  45795. if (!writer)
  45796. writer = $Writer.create();
  45797. if (message.orderId != null && Object.hasOwnProperty.call(message, "orderId"))
  45798. writer.uint32(/* id 1, wireType 2 =*/10).string(message.orderId);
  45799. if (message.payOrderId != null && Object.hasOwnProperty.call(message, "payOrderId"))
  45800. writer.uint32(/* id 2, wireType 2 =*/18).string(message.payOrderId);
  45801. if (message.purchaseToken != null && Object.hasOwnProperty.call(message, "purchaseToken"))
  45802. writer.uint32(/* id 3, wireType 2 =*/26).string(message.purchaseToken);
  45803. if (message.payType != null && Object.hasOwnProperty.call(message, "payType"))
  45804. writer.uint32(/* id 4, wireType 2 =*/34).string(message.payType);
  45805. if (message.cfgId != null && Object.hasOwnProperty.call(message, "cfgId"))
  45806. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.cfgId);
  45807. return writer;
  45808. };
  45809. /**
  45810. * Encodes the specified recharge_result message, length delimited. Does not implicitly {@link game.recharge_result.verify|verify} messages.
  45811. * @function encodeDelimited
  45812. * @memberof game.recharge_result
  45813. * @static
  45814. * @param {game.Irecharge_result} message recharge_result message or plain object to encode
  45815. * @param {$protobuf.Writer} [writer] Writer to encode to
  45816. * @returns {$protobuf.Writer} Writer
  45817. */
  45818. recharge_result.encodeDelimited = function encodeDelimited(message, writer) {
  45819. return this.encode(message, writer).ldelim();
  45820. };
  45821. /**
  45822. * Decodes a recharge_result message from the specified reader or buffer.
  45823. * @function decode
  45824. * @memberof game.recharge_result
  45825. * @static
  45826. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45827. * @param {number} [length] Message length if known beforehand
  45828. * @returns {game.recharge_result} recharge_result
  45829. * @throws {Error} If the payload is not a reader or valid buffer
  45830. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45831. */
  45832. recharge_result.decode = function decode(reader, length) {
  45833. if (!(reader instanceof $Reader))
  45834. reader = $Reader.create(reader);
  45835. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_result();
  45836. while (reader.pos < end) {
  45837. let tag = reader.uint32();
  45838. switch (tag >>> 3) {
  45839. case 1:
  45840. message.orderId = reader.string();
  45841. break;
  45842. case 2:
  45843. message.payOrderId = reader.string();
  45844. break;
  45845. case 3:
  45846. message.purchaseToken = reader.string();
  45847. break;
  45848. case 4:
  45849. message.payType = reader.string();
  45850. break;
  45851. case 5:
  45852. message.cfgId = reader.int64();
  45853. break;
  45854. default:
  45855. reader.skipType(tag & 7);
  45856. break;
  45857. }
  45858. }
  45859. return message;
  45860. };
  45861. /**
  45862. * Decodes a recharge_result message from the specified reader or buffer, length delimited.
  45863. * @function decodeDelimited
  45864. * @memberof game.recharge_result
  45865. * @static
  45866. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  45867. * @returns {game.recharge_result} recharge_result
  45868. * @throws {Error} If the payload is not a reader or valid buffer
  45869. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  45870. */
  45871. recharge_result.decodeDelimited = function decodeDelimited(reader) {
  45872. if (!(reader instanceof $Reader))
  45873. reader = new $Reader(reader);
  45874. return this.decode(reader, reader.uint32());
  45875. };
  45876. /**
  45877. * Verifies a recharge_result message.
  45878. * @function verify
  45879. * @memberof game.recharge_result
  45880. * @static
  45881. * @param {Object.<string,*>} message Plain object to verify
  45882. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  45883. */
  45884. recharge_result.verify = function verify(message) {
  45885. if (typeof message !== "object" || message === null)
  45886. return "object expected";
  45887. if (message.orderId != null && message.hasOwnProperty("orderId"))
  45888. if (!$util.isString(message.orderId))
  45889. return "orderId: string expected";
  45890. if (message.payOrderId != null && message.hasOwnProperty("payOrderId"))
  45891. if (!$util.isString(message.payOrderId))
  45892. return "payOrderId: string expected";
  45893. if (message.purchaseToken != null && message.hasOwnProperty("purchaseToken"))
  45894. if (!$util.isString(message.purchaseToken))
  45895. return "purchaseToken: string expected";
  45896. if (message.payType != null && message.hasOwnProperty("payType"))
  45897. if (!$util.isString(message.payType))
  45898. return "payType: string expected";
  45899. if (message.cfgId != null && message.hasOwnProperty("cfgId"))
  45900. if (!$util.isInteger(message.cfgId) && !(message.cfgId && $util.isInteger(message.cfgId.low) && $util.isInteger(message.cfgId.high)))
  45901. return "cfgId: integer|Long expected";
  45902. return null;
  45903. };
  45904. /**
  45905. * Creates a recharge_result message from a plain object. Also converts values to their respective internal types.
  45906. * @function fromObject
  45907. * @memberof game.recharge_result
  45908. * @static
  45909. * @param {Object.<string,*>} object Plain object
  45910. * @returns {game.recharge_result} recharge_result
  45911. */
  45912. recharge_result.fromObject = function fromObject(object) {
  45913. if (object instanceof $root.game.recharge_result)
  45914. return object;
  45915. let message = new $root.game.recharge_result();
  45916. if (object.orderId != null)
  45917. message.orderId = String(object.orderId);
  45918. if (object.payOrderId != null)
  45919. message.payOrderId = String(object.payOrderId);
  45920. if (object.purchaseToken != null)
  45921. message.purchaseToken = String(object.purchaseToken);
  45922. if (object.payType != null)
  45923. message.payType = String(object.payType);
  45924. if (object.cfgId != null)
  45925. if ($util.Long)
  45926. (message.cfgId = $util.Long.fromValue(object.cfgId)).unsigned = false;
  45927. else if (typeof object.cfgId === "string")
  45928. message.cfgId = parseInt(object.cfgId, 10);
  45929. else if (typeof object.cfgId === "number")
  45930. message.cfgId = object.cfgId;
  45931. else if (typeof object.cfgId === "object")
  45932. message.cfgId = new $util.LongBits(object.cfgId.low >>> 0, object.cfgId.high >>> 0).toNumber();
  45933. return message;
  45934. };
  45935. /**
  45936. * Creates a plain object from a recharge_result message. Also converts values to other types if specified.
  45937. * @function toObject
  45938. * @memberof game.recharge_result
  45939. * @static
  45940. * @param {game.recharge_result} message recharge_result
  45941. * @param {$protobuf.IConversionOptions} [options] Conversion options
  45942. * @returns {Object.<string,*>} Plain object
  45943. */
  45944. recharge_result.toObject = function toObject(message, options) {
  45945. if (!options)
  45946. options = {};
  45947. let object = {};
  45948. if (options.defaults) {
  45949. object.orderId = "";
  45950. object.payOrderId = "";
  45951. object.purchaseToken = "";
  45952. object.payType = "";
  45953. if ($util.Long) {
  45954. let long = new $util.Long(0, 0, false);
  45955. object.cfgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  45956. } else
  45957. object.cfgId = options.longs === String ? "0" : 0;
  45958. }
  45959. if (message.orderId != null && message.hasOwnProperty("orderId"))
  45960. object.orderId = message.orderId;
  45961. if (message.payOrderId != null && message.hasOwnProperty("payOrderId"))
  45962. object.payOrderId = message.payOrderId;
  45963. if (message.purchaseToken != null && message.hasOwnProperty("purchaseToken"))
  45964. object.purchaseToken = message.purchaseToken;
  45965. if (message.payType != null && message.hasOwnProperty("payType"))
  45966. object.payType = message.payType;
  45967. if (message.cfgId != null && message.hasOwnProperty("cfgId"))
  45968. if (typeof message.cfgId === "number")
  45969. object.cfgId = options.longs === String ? String(message.cfgId) : message.cfgId;
  45970. else
  45971. object.cfgId = options.longs === String ? $util.Long.prototype.toString.call(message.cfgId) : options.longs === Number ? new $util.LongBits(message.cfgId.low >>> 0, message.cfgId.high >>> 0).toNumber() : message.cfgId;
  45972. return object;
  45973. };
  45974. /**
  45975. * Converts this recharge_result to JSON.
  45976. * @function toJSON
  45977. * @memberof game.recharge_result
  45978. * @instance
  45979. * @returns {Object.<string,*>} JSON object
  45980. */
  45981. recharge_result.prototype.toJSON = function toJSON() {
  45982. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  45983. };
  45984. return recharge_result;
  45985. })();
  45986. game.recharge_result_rsp = (function() {
  45987. /**
  45988. * Properties of a recharge_result_rsp.
  45989. * @memberof game
  45990. * @interface Irecharge_result_rsp
  45991. * @property {number|Long|null} [errno] recharge_result_rsp errno
  45992. */
  45993. /**
  45994. * Constructs a new recharge_result_rsp.
  45995. * @memberof game
  45996. * @classdesc Represents a recharge_result_rsp.
  45997. * @implements Irecharge_result_rsp
  45998. * @constructor
  45999. * @param {game.Irecharge_result_rsp=} [properties] Properties to set
  46000. */
  46001. function recharge_result_rsp(properties) {
  46002. if (properties)
  46003. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46004. if (properties[keys[i]] != null)
  46005. this[keys[i]] = properties[keys[i]];
  46006. }
  46007. /**
  46008. * recharge_result_rsp errno.
  46009. * @member {number|Long} errno
  46010. * @memberof game.recharge_result_rsp
  46011. * @instance
  46012. */
  46013. recharge_result_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46014. /**
  46015. * Creates a new recharge_result_rsp instance using the specified properties.
  46016. * @function create
  46017. * @memberof game.recharge_result_rsp
  46018. * @static
  46019. * @param {game.Irecharge_result_rsp=} [properties] Properties to set
  46020. * @returns {game.recharge_result_rsp} recharge_result_rsp instance
  46021. */
  46022. recharge_result_rsp.create = function create(properties) {
  46023. return new recharge_result_rsp(properties);
  46024. };
  46025. /**
  46026. * Encodes the specified recharge_result_rsp message. Does not implicitly {@link game.recharge_result_rsp.verify|verify} messages.
  46027. * @function encode
  46028. * @memberof game.recharge_result_rsp
  46029. * @static
  46030. * @param {game.Irecharge_result_rsp} message recharge_result_rsp message or plain object to encode
  46031. * @param {$protobuf.Writer} [writer] Writer to encode to
  46032. * @returns {$protobuf.Writer} Writer
  46033. */
  46034. recharge_result_rsp.encode = function encode(message, writer) {
  46035. if (!writer)
  46036. writer = $Writer.create();
  46037. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  46038. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  46039. return writer;
  46040. };
  46041. /**
  46042. * Encodes the specified recharge_result_rsp message, length delimited. Does not implicitly {@link game.recharge_result_rsp.verify|verify} messages.
  46043. * @function encodeDelimited
  46044. * @memberof game.recharge_result_rsp
  46045. * @static
  46046. * @param {game.Irecharge_result_rsp} message recharge_result_rsp message or plain object to encode
  46047. * @param {$protobuf.Writer} [writer] Writer to encode to
  46048. * @returns {$protobuf.Writer} Writer
  46049. */
  46050. recharge_result_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  46051. return this.encode(message, writer).ldelim();
  46052. };
  46053. /**
  46054. * Decodes a recharge_result_rsp message from the specified reader or buffer.
  46055. * @function decode
  46056. * @memberof game.recharge_result_rsp
  46057. * @static
  46058. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46059. * @param {number} [length] Message length if known beforehand
  46060. * @returns {game.recharge_result_rsp} recharge_result_rsp
  46061. * @throws {Error} If the payload is not a reader or valid buffer
  46062. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46063. */
  46064. recharge_result_rsp.decode = function decode(reader, length) {
  46065. if (!(reader instanceof $Reader))
  46066. reader = $Reader.create(reader);
  46067. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.recharge_result_rsp();
  46068. while (reader.pos < end) {
  46069. let tag = reader.uint32();
  46070. switch (tag >>> 3) {
  46071. case 1:
  46072. message.errno = reader.int64();
  46073. break;
  46074. default:
  46075. reader.skipType(tag & 7);
  46076. break;
  46077. }
  46078. }
  46079. return message;
  46080. };
  46081. /**
  46082. * Decodes a recharge_result_rsp message from the specified reader or buffer, length delimited.
  46083. * @function decodeDelimited
  46084. * @memberof game.recharge_result_rsp
  46085. * @static
  46086. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46087. * @returns {game.recharge_result_rsp} recharge_result_rsp
  46088. * @throws {Error} If the payload is not a reader or valid buffer
  46089. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46090. */
  46091. recharge_result_rsp.decodeDelimited = function decodeDelimited(reader) {
  46092. if (!(reader instanceof $Reader))
  46093. reader = new $Reader(reader);
  46094. return this.decode(reader, reader.uint32());
  46095. };
  46096. /**
  46097. * Verifies a recharge_result_rsp message.
  46098. * @function verify
  46099. * @memberof game.recharge_result_rsp
  46100. * @static
  46101. * @param {Object.<string,*>} message Plain object to verify
  46102. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46103. */
  46104. recharge_result_rsp.verify = function verify(message) {
  46105. if (typeof message !== "object" || message === null)
  46106. return "object expected";
  46107. if (message.errno != null && message.hasOwnProperty("errno"))
  46108. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  46109. return "errno: integer|Long expected";
  46110. return null;
  46111. };
  46112. /**
  46113. * Creates a recharge_result_rsp message from a plain object. Also converts values to their respective internal types.
  46114. * @function fromObject
  46115. * @memberof game.recharge_result_rsp
  46116. * @static
  46117. * @param {Object.<string,*>} object Plain object
  46118. * @returns {game.recharge_result_rsp} recharge_result_rsp
  46119. */
  46120. recharge_result_rsp.fromObject = function fromObject(object) {
  46121. if (object instanceof $root.game.recharge_result_rsp)
  46122. return object;
  46123. let message = new $root.game.recharge_result_rsp();
  46124. if (object.errno != null)
  46125. if ($util.Long)
  46126. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  46127. else if (typeof object.errno === "string")
  46128. message.errno = parseInt(object.errno, 10);
  46129. else if (typeof object.errno === "number")
  46130. message.errno = object.errno;
  46131. else if (typeof object.errno === "object")
  46132. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  46133. return message;
  46134. };
  46135. /**
  46136. * Creates a plain object from a recharge_result_rsp message. Also converts values to other types if specified.
  46137. * @function toObject
  46138. * @memberof game.recharge_result_rsp
  46139. * @static
  46140. * @param {game.recharge_result_rsp} message recharge_result_rsp
  46141. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46142. * @returns {Object.<string,*>} Plain object
  46143. */
  46144. recharge_result_rsp.toObject = function toObject(message, options) {
  46145. if (!options)
  46146. options = {};
  46147. let object = {};
  46148. if (options.defaults)
  46149. if ($util.Long) {
  46150. let long = new $util.Long(0, 0, false);
  46151. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46152. } else
  46153. object.errno = options.longs === String ? "0" : 0;
  46154. if (message.errno != null && message.hasOwnProperty("errno"))
  46155. if (typeof message.errno === "number")
  46156. object.errno = options.longs === String ? String(message.errno) : message.errno;
  46157. else
  46158. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  46159. return object;
  46160. };
  46161. /**
  46162. * Converts this recharge_result_rsp to JSON.
  46163. * @function toJSON
  46164. * @memberof game.recharge_result_rsp
  46165. * @instance
  46166. * @returns {Object.<string,*>} JSON object
  46167. */
  46168. recharge_result_rsp.prototype.toJSON = function toJSON() {
  46169. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46170. };
  46171. return recharge_result_rsp;
  46172. })();
  46173. game.online_award_get_award = (function() {
  46174. /**
  46175. * Properties of an online_award_get_award.
  46176. * @memberof game
  46177. * @interface Ionline_award_get_award
  46178. * @property {number|Long|null} [pos] online_award_get_award pos
  46179. */
  46180. /**
  46181. * Constructs a new online_award_get_award.
  46182. * @memberof game
  46183. * @classdesc Represents an online_award_get_award.
  46184. * @implements Ionline_award_get_award
  46185. * @constructor
  46186. * @param {game.Ionline_award_get_award=} [properties] Properties to set
  46187. */
  46188. function online_award_get_award(properties) {
  46189. if (properties)
  46190. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46191. if (properties[keys[i]] != null)
  46192. this[keys[i]] = properties[keys[i]];
  46193. }
  46194. /**
  46195. * online_award_get_award pos.
  46196. * @member {number|Long} pos
  46197. * @memberof game.online_award_get_award
  46198. * @instance
  46199. */
  46200. online_award_get_award.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46201. /**
  46202. * Creates a new online_award_get_award instance using the specified properties.
  46203. * @function create
  46204. * @memberof game.online_award_get_award
  46205. * @static
  46206. * @param {game.Ionline_award_get_award=} [properties] Properties to set
  46207. * @returns {game.online_award_get_award} online_award_get_award instance
  46208. */
  46209. online_award_get_award.create = function create(properties) {
  46210. return new online_award_get_award(properties);
  46211. };
  46212. /**
  46213. * Encodes the specified online_award_get_award message. Does not implicitly {@link game.online_award_get_award.verify|verify} messages.
  46214. * @function encode
  46215. * @memberof game.online_award_get_award
  46216. * @static
  46217. * @param {game.Ionline_award_get_award} message online_award_get_award message or plain object to encode
  46218. * @param {$protobuf.Writer} [writer] Writer to encode to
  46219. * @returns {$protobuf.Writer} Writer
  46220. */
  46221. online_award_get_award.encode = function encode(message, writer) {
  46222. if (!writer)
  46223. writer = $Writer.create();
  46224. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  46225. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.pos);
  46226. return writer;
  46227. };
  46228. /**
  46229. * Encodes the specified online_award_get_award message, length delimited. Does not implicitly {@link game.online_award_get_award.verify|verify} messages.
  46230. * @function encodeDelimited
  46231. * @memberof game.online_award_get_award
  46232. * @static
  46233. * @param {game.Ionline_award_get_award} message online_award_get_award message or plain object to encode
  46234. * @param {$protobuf.Writer} [writer] Writer to encode to
  46235. * @returns {$protobuf.Writer} Writer
  46236. */
  46237. online_award_get_award.encodeDelimited = function encodeDelimited(message, writer) {
  46238. return this.encode(message, writer).ldelim();
  46239. };
  46240. /**
  46241. * Decodes an online_award_get_award message from the specified reader or buffer.
  46242. * @function decode
  46243. * @memberof game.online_award_get_award
  46244. * @static
  46245. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46246. * @param {number} [length] Message length if known beforehand
  46247. * @returns {game.online_award_get_award} online_award_get_award
  46248. * @throws {Error} If the payload is not a reader or valid buffer
  46249. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46250. */
  46251. online_award_get_award.decode = function decode(reader, length) {
  46252. if (!(reader instanceof $Reader))
  46253. reader = $Reader.create(reader);
  46254. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_award();
  46255. while (reader.pos < end) {
  46256. let tag = reader.uint32();
  46257. switch (tag >>> 3) {
  46258. case 1:
  46259. message.pos = reader.int64();
  46260. break;
  46261. default:
  46262. reader.skipType(tag & 7);
  46263. break;
  46264. }
  46265. }
  46266. return message;
  46267. };
  46268. /**
  46269. * Decodes an online_award_get_award message from the specified reader or buffer, length delimited.
  46270. * @function decodeDelimited
  46271. * @memberof game.online_award_get_award
  46272. * @static
  46273. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46274. * @returns {game.online_award_get_award} online_award_get_award
  46275. * @throws {Error} If the payload is not a reader or valid buffer
  46276. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46277. */
  46278. online_award_get_award.decodeDelimited = function decodeDelimited(reader) {
  46279. if (!(reader instanceof $Reader))
  46280. reader = new $Reader(reader);
  46281. return this.decode(reader, reader.uint32());
  46282. };
  46283. /**
  46284. * Verifies an online_award_get_award message.
  46285. * @function verify
  46286. * @memberof game.online_award_get_award
  46287. * @static
  46288. * @param {Object.<string,*>} message Plain object to verify
  46289. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46290. */
  46291. online_award_get_award.verify = function verify(message) {
  46292. if (typeof message !== "object" || message === null)
  46293. return "object expected";
  46294. if (message.pos != null && message.hasOwnProperty("pos"))
  46295. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  46296. return "pos: integer|Long expected";
  46297. return null;
  46298. };
  46299. /**
  46300. * Creates an online_award_get_award message from a plain object. Also converts values to their respective internal types.
  46301. * @function fromObject
  46302. * @memberof game.online_award_get_award
  46303. * @static
  46304. * @param {Object.<string,*>} object Plain object
  46305. * @returns {game.online_award_get_award} online_award_get_award
  46306. */
  46307. online_award_get_award.fromObject = function fromObject(object) {
  46308. if (object instanceof $root.game.online_award_get_award)
  46309. return object;
  46310. let message = new $root.game.online_award_get_award();
  46311. if (object.pos != null)
  46312. if ($util.Long)
  46313. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  46314. else if (typeof object.pos === "string")
  46315. message.pos = parseInt(object.pos, 10);
  46316. else if (typeof object.pos === "number")
  46317. message.pos = object.pos;
  46318. else if (typeof object.pos === "object")
  46319. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  46320. return message;
  46321. };
  46322. /**
  46323. * Creates a plain object from an online_award_get_award message. Also converts values to other types if specified.
  46324. * @function toObject
  46325. * @memberof game.online_award_get_award
  46326. * @static
  46327. * @param {game.online_award_get_award} message online_award_get_award
  46328. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46329. * @returns {Object.<string,*>} Plain object
  46330. */
  46331. online_award_get_award.toObject = function toObject(message, options) {
  46332. if (!options)
  46333. options = {};
  46334. let object = {};
  46335. if (options.defaults)
  46336. if ($util.Long) {
  46337. let long = new $util.Long(0, 0, false);
  46338. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46339. } else
  46340. object.pos = options.longs === String ? "0" : 0;
  46341. if (message.pos != null && message.hasOwnProperty("pos"))
  46342. if (typeof message.pos === "number")
  46343. object.pos = options.longs === String ? String(message.pos) : message.pos;
  46344. else
  46345. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  46346. return object;
  46347. };
  46348. /**
  46349. * Converts this online_award_get_award to JSON.
  46350. * @function toJSON
  46351. * @memberof game.online_award_get_award
  46352. * @instance
  46353. * @returns {Object.<string,*>} JSON object
  46354. */
  46355. online_award_get_award.prototype.toJSON = function toJSON() {
  46356. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46357. };
  46358. return online_award_get_award;
  46359. })();
  46360. game.online_award_get_award_rsp = (function() {
  46361. /**
  46362. * Properties of an online_award_get_award_rsp.
  46363. * @memberof game
  46364. * @interface Ionline_award_get_award_rsp
  46365. * @property {number|Long|null} [errno] online_award_get_award_rsp errno
  46366. * @property {number|Long|null} [award] online_award_get_award_rsp award
  46367. */
  46368. /**
  46369. * Constructs a new online_award_get_award_rsp.
  46370. * @memberof game
  46371. * @classdesc Represents an online_award_get_award_rsp.
  46372. * @implements Ionline_award_get_award_rsp
  46373. * @constructor
  46374. * @param {game.Ionline_award_get_award_rsp=} [properties] Properties to set
  46375. */
  46376. function online_award_get_award_rsp(properties) {
  46377. if (properties)
  46378. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46379. if (properties[keys[i]] != null)
  46380. this[keys[i]] = properties[keys[i]];
  46381. }
  46382. /**
  46383. * online_award_get_award_rsp errno.
  46384. * @member {number|Long} errno
  46385. * @memberof game.online_award_get_award_rsp
  46386. * @instance
  46387. */
  46388. online_award_get_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46389. /**
  46390. * online_award_get_award_rsp award.
  46391. * @member {number|Long} award
  46392. * @memberof game.online_award_get_award_rsp
  46393. * @instance
  46394. */
  46395. online_award_get_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46396. /**
  46397. * Creates a new online_award_get_award_rsp instance using the specified properties.
  46398. * @function create
  46399. * @memberof game.online_award_get_award_rsp
  46400. * @static
  46401. * @param {game.Ionline_award_get_award_rsp=} [properties] Properties to set
  46402. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp instance
  46403. */
  46404. online_award_get_award_rsp.create = function create(properties) {
  46405. return new online_award_get_award_rsp(properties);
  46406. };
  46407. /**
  46408. * Encodes the specified online_award_get_award_rsp message. Does not implicitly {@link game.online_award_get_award_rsp.verify|verify} messages.
  46409. * @function encode
  46410. * @memberof game.online_award_get_award_rsp
  46411. * @static
  46412. * @param {game.Ionline_award_get_award_rsp} message online_award_get_award_rsp message or plain object to encode
  46413. * @param {$protobuf.Writer} [writer] Writer to encode to
  46414. * @returns {$protobuf.Writer} Writer
  46415. */
  46416. online_award_get_award_rsp.encode = function encode(message, writer) {
  46417. if (!writer)
  46418. writer = $Writer.create();
  46419. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  46420. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  46421. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  46422. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  46423. return writer;
  46424. };
  46425. /**
  46426. * Encodes the specified online_award_get_award_rsp message, length delimited. Does not implicitly {@link game.online_award_get_award_rsp.verify|verify} messages.
  46427. * @function encodeDelimited
  46428. * @memberof game.online_award_get_award_rsp
  46429. * @static
  46430. * @param {game.Ionline_award_get_award_rsp} message online_award_get_award_rsp message or plain object to encode
  46431. * @param {$protobuf.Writer} [writer] Writer to encode to
  46432. * @returns {$protobuf.Writer} Writer
  46433. */
  46434. online_award_get_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  46435. return this.encode(message, writer).ldelim();
  46436. };
  46437. /**
  46438. * Decodes an online_award_get_award_rsp message from the specified reader or buffer.
  46439. * @function decode
  46440. * @memberof game.online_award_get_award_rsp
  46441. * @static
  46442. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46443. * @param {number} [length] Message length if known beforehand
  46444. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
  46445. * @throws {Error} If the payload is not a reader or valid buffer
  46446. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46447. */
  46448. online_award_get_award_rsp.decode = function decode(reader, length) {
  46449. if (!(reader instanceof $Reader))
  46450. reader = $Reader.create(reader);
  46451. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_award_rsp();
  46452. while (reader.pos < end) {
  46453. let tag = reader.uint32();
  46454. switch (tag >>> 3) {
  46455. case 1:
  46456. message.errno = reader.int64();
  46457. break;
  46458. case 2:
  46459. message.award = reader.int64();
  46460. break;
  46461. default:
  46462. reader.skipType(tag & 7);
  46463. break;
  46464. }
  46465. }
  46466. return message;
  46467. };
  46468. /**
  46469. * Decodes an online_award_get_award_rsp message from the specified reader or buffer, length delimited.
  46470. * @function decodeDelimited
  46471. * @memberof game.online_award_get_award_rsp
  46472. * @static
  46473. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46474. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
  46475. * @throws {Error} If the payload is not a reader or valid buffer
  46476. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46477. */
  46478. online_award_get_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  46479. if (!(reader instanceof $Reader))
  46480. reader = new $Reader(reader);
  46481. return this.decode(reader, reader.uint32());
  46482. };
  46483. /**
  46484. * Verifies an online_award_get_award_rsp message.
  46485. * @function verify
  46486. * @memberof game.online_award_get_award_rsp
  46487. * @static
  46488. * @param {Object.<string,*>} message Plain object to verify
  46489. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46490. */
  46491. online_award_get_award_rsp.verify = function verify(message) {
  46492. if (typeof message !== "object" || message === null)
  46493. return "object expected";
  46494. if (message.errno != null && message.hasOwnProperty("errno"))
  46495. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  46496. return "errno: integer|Long expected";
  46497. if (message.award != null && message.hasOwnProperty("award"))
  46498. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  46499. return "award: integer|Long expected";
  46500. return null;
  46501. };
  46502. /**
  46503. * Creates an online_award_get_award_rsp message from a plain object. Also converts values to their respective internal types.
  46504. * @function fromObject
  46505. * @memberof game.online_award_get_award_rsp
  46506. * @static
  46507. * @param {Object.<string,*>} object Plain object
  46508. * @returns {game.online_award_get_award_rsp} online_award_get_award_rsp
  46509. */
  46510. online_award_get_award_rsp.fromObject = function fromObject(object) {
  46511. if (object instanceof $root.game.online_award_get_award_rsp)
  46512. return object;
  46513. let message = new $root.game.online_award_get_award_rsp();
  46514. if (object.errno != null)
  46515. if ($util.Long)
  46516. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  46517. else if (typeof object.errno === "string")
  46518. message.errno = parseInt(object.errno, 10);
  46519. else if (typeof object.errno === "number")
  46520. message.errno = object.errno;
  46521. else if (typeof object.errno === "object")
  46522. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  46523. if (object.award != null)
  46524. if ($util.Long)
  46525. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  46526. else if (typeof object.award === "string")
  46527. message.award = parseInt(object.award, 10);
  46528. else if (typeof object.award === "number")
  46529. message.award = object.award;
  46530. else if (typeof object.award === "object")
  46531. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  46532. return message;
  46533. };
  46534. /**
  46535. * Creates a plain object from an online_award_get_award_rsp message. Also converts values to other types if specified.
  46536. * @function toObject
  46537. * @memberof game.online_award_get_award_rsp
  46538. * @static
  46539. * @param {game.online_award_get_award_rsp} message online_award_get_award_rsp
  46540. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46541. * @returns {Object.<string,*>} Plain object
  46542. */
  46543. online_award_get_award_rsp.toObject = function toObject(message, options) {
  46544. if (!options)
  46545. options = {};
  46546. let object = {};
  46547. if (options.defaults) {
  46548. if ($util.Long) {
  46549. let long = new $util.Long(0, 0, false);
  46550. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46551. } else
  46552. object.errno = options.longs === String ? "0" : 0;
  46553. if ($util.Long) {
  46554. let long = new $util.Long(0, 0, false);
  46555. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46556. } else
  46557. object.award = options.longs === String ? "0" : 0;
  46558. }
  46559. if (message.errno != null && message.hasOwnProperty("errno"))
  46560. if (typeof message.errno === "number")
  46561. object.errno = options.longs === String ? String(message.errno) : message.errno;
  46562. else
  46563. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  46564. if (message.award != null && message.hasOwnProperty("award"))
  46565. if (typeof message.award === "number")
  46566. object.award = options.longs === String ? String(message.award) : message.award;
  46567. else
  46568. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  46569. return object;
  46570. };
  46571. /**
  46572. * Converts this online_award_get_award_rsp to JSON.
  46573. * @function toJSON
  46574. * @memberof game.online_award_get_award_rsp
  46575. * @instance
  46576. * @returns {Object.<string,*>} JSON object
  46577. */
  46578. online_award_get_award_rsp.prototype.toJSON = function toJSON() {
  46579. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46580. };
  46581. return online_award_get_award_rsp;
  46582. })();
  46583. game.online_award_get_data = (function() {
  46584. /**
  46585. * Properties of an online_award_get_data.
  46586. * @memberof game
  46587. * @interface Ionline_award_get_data
  46588. */
  46589. /**
  46590. * Constructs a new online_award_get_data.
  46591. * @memberof game
  46592. * @classdesc Represents an online_award_get_data.
  46593. * @implements Ionline_award_get_data
  46594. * @constructor
  46595. * @param {game.Ionline_award_get_data=} [properties] Properties to set
  46596. */
  46597. function online_award_get_data(properties) {
  46598. if (properties)
  46599. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46600. if (properties[keys[i]] != null)
  46601. this[keys[i]] = properties[keys[i]];
  46602. }
  46603. /**
  46604. * Creates a new online_award_get_data instance using the specified properties.
  46605. * @function create
  46606. * @memberof game.online_award_get_data
  46607. * @static
  46608. * @param {game.Ionline_award_get_data=} [properties] Properties to set
  46609. * @returns {game.online_award_get_data} online_award_get_data instance
  46610. */
  46611. online_award_get_data.create = function create(properties) {
  46612. return new online_award_get_data(properties);
  46613. };
  46614. /**
  46615. * Encodes the specified online_award_get_data message. Does not implicitly {@link game.online_award_get_data.verify|verify} messages.
  46616. * @function encode
  46617. * @memberof game.online_award_get_data
  46618. * @static
  46619. * @param {game.Ionline_award_get_data} message online_award_get_data message or plain object to encode
  46620. * @param {$protobuf.Writer} [writer] Writer to encode to
  46621. * @returns {$protobuf.Writer} Writer
  46622. */
  46623. online_award_get_data.encode = function encode(message, writer) {
  46624. if (!writer)
  46625. writer = $Writer.create();
  46626. return writer;
  46627. };
  46628. /**
  46629. * Encodes the specified online_award_get_data message, length delimited. Does not implicitly {@link game.online_award_get_data.verify|verify} messages.
  46630. * @function encodeDelimited
  46631. * @memberof game.online_award_get_data
  46632. * @static
  46633. * @param {game.Ionline_award_get_data} message online_award_get_data message or plain object to encode
  46634. * @param {$protobuf.Writer} [writer] Writer to encode to
  46635. * @returns {$protobuf.Writer} Writer
  46636. */
  46637. online_award_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  46638. return this.encode(message, writer).ldelim();
  46639. };
  46640. /**
  46641. * Decodes an online_award_get_data message from the specified reader or buffer.
  46642. * @function decode
  46643. * @memberof game.online_award_get_data
  46644. * @static
  46645. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46646. * @param {number} [length] Message length if known beforehand
  46647. * @returns {game.online_award_get_data} online_award_get_data
  46648. * @throws {Error} If the payload is not a reader or valid buffer
  46649. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46650. */
  46651. online_award_get_data.decode = function decode(reader, length) {
  46652. if (!(reader instanceof $Reader))
  46653. reader = $Reader.create(reader);
  46654. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_data();
  46655. while (reader.pos < end) {
  46656. let tag = reader.uint32();
  46657. switch (tag >>> 3) {
  46658. default:
  46659. reader.skipType(tag & 7);
  46660. break;
  46661. }
  46662. }
  46663. return message;
  46664. };
  46665. /**
  46666. * Decodes an online_award_get_data message from the specified reader or buffer, length delimited.
  46667. * @function decodeDelimited
  46668. * @memberof game.online_award_get_data
  46669. * @static
  46670. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46671. * @returns {game.online_award_get_data} online_award_get_data
  46672. * @throws {Error} If the payload is not a reader or valid buffer
  46673. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46674. */
  46675. online_award_get_data.decodeDelimited = function decodeDelimited(reader) {
  46676. if (!(reader instanceof $Reader))
  46677. reader = new $Reader(reader);
  46678. return this.decode(reader, reader.uint32());
  46679. };
  46680. /**
  46681. * Verifies an online_award_get_data message.
  46682. * @function verify
  46683. * @memberof game.online_award_get_data
  46684. * @static
  46685. * @param {Object.<string,*>} message Plain object to verify
  46686. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46687. */
  46688. online_award_get_data.verify = function verify(message) {
  46689. if (typeof message !== "object" || message === null)
  46690. return "object expected";
  46691. return null;
  46692. };
  46693. /**
  46694. * Creates an online_award_get_data message from a plain object. Also converts values to their respective internal types.
  46695. * @function fromObject
  46696. * @memberof game.online_award_get_data
  46697. * @static
  46698. * @param {Object.<string,*>} object Plain object
  46699. * @returns {game.online_award_get_data} online_award_get_data
  46700. */
  46701. online_award_get_data.fromObject = function fromObject(object) {
  46702. if (object instanceof $root.game.online_award_get_data)
  46703. return object;
  46704. return new $root.game.online_award_get_data();
  46705. };
  46706. /**
  46707. * Creates a plain object from an online_award_get_data message. Also converts values to other types if specified.
  46708. * @function toObject
  46709. * @memberof game.online_award_get_data
  46710. * @static
  46711. * @param {game.online_award_get_data} message online_award_get_data
  46712. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46713. * @returns {Object.<string,*>} Plain object
  46714. */
  46715. online_award_get_data.toObject = function toObject() {
  46716. return {};
  46717. };
  46718. /**
  46719. * Converts this online_award_get_data to JSON.
  46720. * @function toJSON
  46721. * @memberof game.online_award_get_data
  46722. * @instance
  46723. * @returns {Object.<string,*>} JSON object
  46724. */
  46725. online_award_get_data.prototype.toJSON = function toJSON() {
  46726. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46727. };
  46728. return online_award_get_data;
  46729. })();
  46730. game.online_award_get_data_rsp = (function() {
  46731. /**
  46732. * Properties of an online_award_get_data_rsp.
  46733. * @memberof game
  46734. * @interface Ionline_award_get_data_rsp
  46735. * @property {number|Long|null} [errno] online_award_get_data_rsp errno
  46736. */
  46737. /**
  46738. * Constructs a new online_award_get_data_rsp.
  46739. * @memberof game
  46740. * @classdesc Represents an online_award_get_data_rsp.
  46741. * @implements Ionline_award_get_data_rsp
  46742. * @constructor
  46743. * @param {game.Ionline_award_get_data_rsp=} [properties] Properties to set
  46744. */
  46745. function online_award_get_data_rsp(properties) {
  46746. if (properties)
  46747. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46748. if (properties[keys[i]] != null)
  46749. this[keys[i]] = properties[keys[i]];
  46750. }
  46751. /**
  46752. * online_award_get_data_rsp errno.
  46753. * @member {number|Long} errno
  46754. * @memberof game.online_award_get_data_rsp
  46755. * @instance
  46756. */
  46757. online_award_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46758. /**
  46759. * Creates a new online_award_get_data_rsp instance using the specified properties.
  46760. * @function create
  46761. * @memberof game.online_award_get_data_rsp
  46762. * @static
  46763. * @param {game.Ionline_award_get_data_rsp=} [properties] Properties to set
  46764. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp instance
  46765. */
  46766. online_award_get_data_rsp.create = function create(properties) {
  46767. return new online_award_get_data_rsp(properties);
  46768. };
  46769. /**
  46770. * Encodes the specified online_award_get_data_rsp message. Does not implicitly {@link game.online_award_get_data_rsp.verify|verify} messages.
  46771. * @function encode
  46772. * @memberof game.online_award_get_data_rsp
  46773. * @static
  46774. * @param {game.Ionline_award_get_data_rsp} message online_award_get_data_rsp message or plain object to encode
  46775. * @param {$protobuf.Writer} [writer] Writer to encode to
  46776. * @returns {$protobuf.Writer} Writer
  46777. */
  46778. online_award_get_data_rsp.encode = function encode(message, writer) {
  46779. if (!writer)
  46780. writer = $Writer.create();
  46781. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  46782. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  46783. return writer;
  46784. };
  46785. /**
  46786. * Encodes the specified online_award_get_data_rsp message, length delimited. Does not implicitly {@link game.online_award_get_data_rsp.verify|verify} messages.
  46787. * @function encodeDelimited
  46788. * @memberof game.online_award_get_data_rsp
  46789. * @static
  46790. * @param {game.Ionline_award_get_data_rsp} message online_award_get_data_rsp message or plain object to encode
  46791. * @param {$protobuf.Writer} [writer] Writer to encode to
  46792. * @returns {$protobuf.Writer} Writer
  46793. */
  46794. online_award_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  46795. return this.encode(message, writer).ldelim();
  46796. };
  46797. /**
  46798. * Decodes an online_award_get_data_rsp message from the specified reader or buffer.
  46799. * @function decode
  46800. * @memberof game.online_award_get_data_rsp
  46801. * @static
  46802. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46803. * @param {number} [length] Message length if known beforehand
  46804. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
  46805. * @throws {Error} If the payload is not a reader or valid buffer
  46806. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46807. */
  46808. online_award_get_data_rsp.decode = function decode(reader, length) {
  46809. if (!(reader instanceof $Reader))
  46810. reader = $Reader.create(reader);
  46811. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_get_data_rsp();
  46812. while (reader.pos < end) {
  46813. let tag = reader.uint32();
  46814. switch (tag >>> 3) {
  46815. case 1:
  46816. message.errno = reader.int64();
  46817. break;
  46818. default:
  46819. reader.skipType(tag & 7);
  46820. break;
  46821. }
  46822. }
  46823. return message;
  46824. };
  46825. /**
  46826. * Decodes an online_award_get_data_rsp message from the specified reader or buffer, length delimited.
  46827. * @function decodeDelimited
  46828. * @memberof game.online_award_get_data_rsp
  46829. * @static
  46830. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  46831. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
  46832. * @throws {Error} If the payload is not a reader or valid buffer
  46833. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  46834. */
  46835. online_award_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  46836. if (!(reader instanceof $Reader))
  46837. reader = new $Reader(reader);
  46838. return this.decode(reader, reader.uint32());
  46839. };
  46840. /**
  46841. * Verifies an online_award_get_data_rsp message.
  46842. * @function verify
  46843. * @memberof game.online_award_get_data_rsp
  46844. * @static
  46845. * @param {Object.<string,*>} message Plain object to verify
  46846. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  46847. */
  46848. online_award_get_data_rsp.verify = function verify(message) {
  46849. if (typeof message !== "object" || message === null)
  46850. return "object expected";
  46851. if (message.errno != null && message.hasOwnProperty("errno"))
  46852. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  46853. return "errno: integer|Long expected";
  46854. return null;
  46855. };
  46856. /**
  46857. * Creates an online_award_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  46858. * @function fromObject
  46859. * @memberof game.online_award_get_data_rsp
  46860. * @static
  46861. * @param {Object.<string,*>} object Plain object
  46862. * @returns {game.online_award_get_data_rsp} online_award_get_data_rsp
  46863. */
  46864. online_award_get_data_rsp.fromObject = function fromObject(object) {
  46865. if (object instanceof $root.game.online_award_get_data_rsp)
  46866. return object;
  46867. let message = new $root.game.online_award_get_data_rsp();
  46868. if (object.errno != null)
  46869. if ($util.Long)
  46870. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  46871. else if (typeof object.errno === "string")
  46872. message.errno = parseInt(object.errno, 10);
  46873. else if (typeof object.errno === "number")
  46874. message.errno = object.errno;
  46875. else if (typeof object.errno === "object")
  46876. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  46877. return message;
  46878. };
  46879. /**
  46880. * Creates a plain object from an online_award_get_data_rsp message. Also converts values to other types if specified.
  46881. * @function toObject
  46882. * @memberof game.online_award_get_data_rsp
  46883. * @static
  46884. * @param {game.online_award_get_data_rsp} message online_award_get_data_rsp
  46885. * @param {$protobuf.IConversionOptions} [options] Conversion options
  46886. * @returns {Object.<string,*>} Plain object
  46887. */
  46888. online_award_get_data_rsp.toObject = function toObject(message, options) {
  46889. if (!options)
  46890. options = {};
  46891. let object = {};
  46892. if (options.defaults)
  46893. if ($util.Long) {
  46894. let long = new $util.Long(0, 0, false);
  46895. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  46896. } else
  46897. object.errno = options.longs === String ? "0" : 0;
  46898. if (message.errno != null && message.hasOwnProperty("errno"))
  46899. if (typeof message.errno === "number")
  46900. object.errno = options.longs === String ? String(message.errno) : message.errno;
  46901. else
  46902. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  46903. return object;
  46904. };
  46905. /**
  46906. * Converts this online_award_get_data_rsp to JSON.
  46907. * @function toJSON
  46908. * @memberof game.online_award_get_data_rsp
  46909. * @instance
  46910. * @returns {Object.<string,*>} JSON object
  46911. */
  46912. online_award_get_data_rsp.prototype.toJSON = function toJSON() {
  46913. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  46914. };
  46915. return online_award_get_data_rsp;
  46916. })();
  46917. game.online_award_nty = (function() {
  46918. /**
  46919. * Properties of an online_award_nty.
  46920. * @memberof game
  46921. * @interface Ionline_award_nty
  46922. * @property {boolean|null} [open] online_award_nty open
  46923. * @property {number|Long|null} [time] online_award_nty time
  46924. * @property {number|Long|null} [award] online_award_nty award
  46925. */
  46926. /**
  46927. * Constructs a new online_award_nty.
  46928. * @memberof game
  46929. * @classdesc Represents an online_award_nty.
  46930. * @implements Ionline_award_nty
  46931. * @constructor
  46932. * @param {game.Ionline_award_nty=} [properties] Properties to set
  46933. */
  46934. function online_award_nty(properties) {
  46935. if (properties)
  46936. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  46937. if (properties[keys[i]] != null)
  46938. this[keys[i]] = properties[keys[i]];
  46939. }
  46940. /**
  46941. * online_award_nty open.
  46942. * @member {boolean} open
  46943. * @memberof game.online_award_nty
  46944. * @instance
  46945. */
  46946. online_award_nty.prototype.open = false;
  46947. /**
  46948. * online_award_nty time.
  46949. * @member {number|Long} time
  46950. * @memberof game.online_award_nty
  46951. * @instance
  46952. */
  46953. online_award_nty.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46954. /**
  46955. * online_award_nty award.
  46956. * @member {number|Long} award
  46957. * @memberof game.online_award_nty
  46958. * @instance
  46959. */
  46960. online_award_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  46961. /**
  46962. * Creates a new online_award_nty instance using the specified properties.
  46963. * @function create
  46964. * @memberof game.online_award_nty
  46965. * @static
  46966. * @param {game.Ionline_award_nty=} [properties] Properties to set
  46967. * @returns {game.online_award_nty} online_award_nty instance
  46968. */
  46969. online_award_nty.create = function create(properties) {
  46970. return new online_award_nty(properties);
  46971. };
  46972. /**
  46973. * Encodes the specified online_award_nty message. Does not implicitly {@link game.online_award_nty.verify|verify} messages.
  46974. * @function encode
  46975. * @memberof game.online_award_nty
  46976. * @static
  46977. * @param {game.Ionline_award_nty} message online_award_nty message or plain object to encode
  46978. * @param {$protobuf.Writer} [writer] Writer to encode to
  46979. * @returns {$protobuf.Writer} Writer
  46980. */
  46981. online_award_nty.encode = function encode(message, writer) {
  46982. if (!writer)
  46983. writer = $Writer.create();
  46984. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  46985. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.open);
  46986. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  46987. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  46988. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  46989. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  46990. return writer;
  46991. };
  46992. /**
  46993. * Encodes the specified online_award_nty message, length delimited. Does not implicitly {@link game.online_award_nty.verify|verify} messages.
  46994. * @function encodeDelimited
  46995. * @memberof game.online_award_nty
  46996. * @static
  46997. * @param {game.Ionline_award_nty} message online_award_nty message or plain object to encode
  46998. * @param {$protobuf.Writer} [writer] Writer to encode to
  46999. * @returns {$protobuf.Writer} Writer
  47000. */
  47001. online_award_nty.encodeDelimited = function encodeDelimited(message, writer) {
  47002. return this.encode(message, writer).ldelim();
  47003. };
  47004. /**
  47005. * Decodes an online_award_nty message from the specified reader or buffer.
  47006. * @function decode
  47007. * @memberof game.online_award_nty
  47008. * @static
  47009. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47010. * @param {number} [length] Message length if known beforehand
  47011. * @returns {game.online_award_nty} online_award_nty
  47012. * @throws {Error} If the payload is not a reader or valid buffer
  47013. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47014. */
  47015. online_award_nty.decode = function decode(reader, length) {
  47016. if (!(reader instanceof $Reader))
  47017. reader = $Reader.create(reader);
  47018. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.online_award_nty();
  47019. while (reader.pos < end) {
  47020. let tag = reader.uint32();
  47021. switch (tag >>> 3) {
  47022. case 1:
  47023. message.open = reader.bool();
  47024. break;
  47025. case 2:
  47026. message.time = reader.int64();
  47027. break;
  47028. case 3:
  47029. message.award = reader.int64();
  47030. break;
  47031. default:
  47032. reader.skipType(tag & 7);
  47033. break;
  47034. }
  47035. }
  47036. return message;
  47037. };
  47038. /**
  47039. * Decodes an online_award_nty message from the specified reader or buffer, length delimited.
  47040. * @function decodeDelimited
  47041. * @memberof game.online_award_nty
  47042. * @static
  47043. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47044. * @returns {game.online_award_nty} online_award_nty
  47045. * @throws {Error} If the payload is not a reader or valid buffer
  47046. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47047. */
  47048. online_award_nty.decodeDelimited = function decodeDelimited(reader) {
  47049. if (!(reader instanceof $Reader))
  47050. reader = new $Reader(reader);
  47051. return this.decode(reader, reader.uint32());
  47052. };
  47053. /**
  47054. * Verifies an online_award_nty message.
  47055. * @function verify
  47056. * @memberof game.online_award_nty
  47057. * @static
  47058. * @param {Object.<string,*>} message Plain object to verify
  47059. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47060. */
  47061. online_award_nty.verify = function verify(message) {
  47062. if (typeof message !== "object" || message === null)
  47063. return "object expected";
  47064. if (message.open != null && message.hasOwnProperty("open"))
  47065. if (typeof message.open !== "boolean")
  47066. return "open: boolean expected";
  47067. if (message.time != null && message.hasOwnProperty("time"))
  47068. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  47069. return "time: integer|Long expected";
  47070. if (message.award != null && message.hasOwnProperty("award"))
  47071. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  47072. return "award: integer|Long expected";
  47073. return null;
  47074. };
  47075. /**
  47076. * Creates an online_award_nty message from a plain object. Also converts values to their respective internal types.
  47077. * @function fromObject
  47078. * @memberof game.online_award_nty
  47079. * @static
  47080. * @param {Object.<string,*>} object Plain object
  47081. * @returns {game.online_award_nty} online_award_nty
  47082. */
  47083. online_award_nty.fromObject = function fromObject(object) {
  47084. if (object instanceof $root.game.online_award_nty)
  47085. return object;
  47086. let message = new $root.game.online_award_nty();
  47087. if (object.open != null)
  47088. message.open = Boolean(object.open);
  47089. if (object.time != null)
  47090. if ($util.Long)
  47091. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  47092. else if (typeof object.time === "string")
  47093. message.time = parseInt(object.time, 10);
  47094. else if (typeof object.time === "number")
  47095. message.time = object.time;
  47096. else if (typeof object.time === "object")
  47097. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  47098. if (object.award != null)
  47099. if ($util.Long)
  47100. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  47101. else if (typeof object.award === "string")
  47102. message.award = parseInt(object.award, 10);
  47103. else if (typeof object.award === "number")
  47104. message.award = object.award;
  47105. else if (typeof object.award === "object")
  47106. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  47107. return message;
  47108. };
  47109. /**
  47110. * Creates a plain object from an online_award_nty message. Also converts values to other types if specified.
  47111. * @function toObject
  47112. * @memberof game.online_award_nty
  47113. * @static
  47114. * @param {game.online_award_nty} message online_award_nty
  47115. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47116. * @returns {Object.<string,*>} Plain object
  47117. */
  47118. online_award_nty.toObject = function toObject(message, options) {
  47119. if (!options)
  47120. options = {};
  47121. let object = {};
  47122. if (options.defaults) {
  47123. object.open = false;
  47124. if ($util.Long) {
  47125. let long = new $util.Long(0, 0, false);
  47126. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47127. } else
  47128. object.time = options.longs === String ? "0" : 0;
  47129. if ($util.Long) {
  47130. let long = new $util.Long(0, 0, false);
  47131. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47132. } else
  47133. object.award = options.longs === String ? "0" : 0;
  47134. }
  47135. if (message.open != null && message.hasOwnProperty("open"))
  47136. object.open = message.open;
  47137. if (message.time != null && message.hasOwnProperty("time"))
  47138. if (typeof message.time === "number")
  47139. object.time = options.longs === String ? String(message.time) : message.time;
  47140. else
  47141. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  47142. if (message.award != null && message.hasOwnProperty("award"))
  47143. if (typeof message.award === "number")
  47144. object.award = options.longs === String ? String(message.award) : message.award;
  47145. else
  47146. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  47147. return object;
  47148. };
  47149. /**
  47150. * Converts this online_award_nty to JSON.
  47151. * @function toJSON
  47152. * @memberof game.online_award_nty
  47153. * @instance
  47154. * @returns {Object.<string,*>} JSON object
  47155. */
  47156. online_award_nty.prototype.toJSON = function toJSON() {
  47157. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47158. };
  47159. return online_award_nty;
  47160. })();
  47161. game.speed_up_data = (function() {
  47162. /**
  47163. * Properties of a speed_up_data.
  47164. * @memberof game
  47165. * @interface Ispeed_up_data
  47166. */
  47167. /**
  47168. * Constructs a new speed_up_data.
  47169. * @memberof game
  47170. * @classdesc Represents a speed_up_data.
  47171. * @implements Ispeed_up_data
  47172. * @constructor
  47173. * @param {game.Ispeed_up_data=} [properties] Properties to set
  47174. */
  47175. function speed_up_data(properties) {
  47176. if (properties)
  47177. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47178. if (properties[keys[i]] != null)
  47179. this[keys[i]] = properties[keys[i]];
  47180. }
  47181. /**
  47182. * Creates a new speed_up_data instance using the specified properties.
  47183. * @function create
  47184. * @memberof game.speed_up_data
  47185. * @static
  47186. * @param {game.Ispeed_up_data=} [properties] Properties to set
  47187. * @returns {game.speed_up_data} speed_up_data instance
  47188. */
  47189. speed_up_data.create = function create(properties) {
  47190. return new speed_up_data(properties);
  47191. };
  47192. /**
  47193. * Encodes the specified speed_up_data message. Does not implicitly {@link game.speed_up_data.verify|verify} messages.
  47194. * @function encode
  47195. * @memberof game.speed_up_data
  47196. * @static
  47197. * @param {game.Ispeed_up_data} message speed_up_data message or plain object to encode
  47198. * @param {$protobuf.Writer} [writer] Writer to encode to
  47199. * @returns {$protobuf.Writer} Writer
  47200. */
  47201. speed_up_data.encode = function encode(message, writer) {
  47202. if (!writer)
  47203. writer = $Writer.create();
  47204. return writer;
  47205. };
  47206. /**
  47207. * Encodes the specified speed_up_data message, length delimited. Does not implicitly {@link game.speed_up_data.verify|verify} messages.
  47208. * @function encodeDelimited
  47209. * @memberof game.speed_up_data
  47210. * @static
  47211. * @param {game.Ispeed_up_data} message speed_up_data message or plain object to encode
  47212. * @param {$protobuf.Writer} [writer] Writer to encode to
  47213. * @returns {$protobuf.Writer} Writer
  47214. */
  47215. speed_up_data.encodeDelimited = function encodeDelimited(message, writer) {
  47216. return this.encode(message, writer).ldelim();
  47217. };
  47218. /**
  47219. * Decodes a speed_up_data message from the specified reader or buffer.
  47220. * @function decode
  47221. * @memberof game.speed_up_data
  47222. * @static
  47223. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47224. * @param {number} [length] Message length if known beforehand
  47225. * @returns {game.speed_up_data} speed_up_data
  47226. * @throws {Error} If the payload is not a reader or valid buffer
  47227. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47228. */
  47229. speed_up_data.decode = function decode(reader, length) {
  47230. if (!(reader instanceof $Reader))
  47231. reader = $Reader.create(reader);
  47232. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_data();
  47233. while (reader.pos < end) {
  47234. let tag = reader.uint32();
  47235. switch (tag >>> 3) {
  47236. default:
  47237. reader.skipType(tag & 7);
  47238. break;
  47239. }
  47240. }
  47241. return message;
  47242. };
  47243. /**
  47244. * Decodes a speed_up_data message from the specified reader or buffer, length delimited.
  47245. * @function decodeDelimited
  47246. * @memberof game.speed_up_data
  47247. * @static
  47248. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47249. * @returns {game.speed_up_data} speed_up_data
  47250. * @throws {Error} If the payload is not a reader or valid buffer
  47251. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47252. */
  47253. speed_up_data.decodeDelimited = function decodeDelimited(reader) {
  47254. if (!(reader instanceof $Reader))
  47255. reader = new $Reader(reader);
  47256. return this.decode(reader, reader.uint32());
  47257. };
  47258. /**
  47259. * Verifies a speed_up_data message.
  47260. * @function verify
  47261. * @memberof game.speed_up_data
  47262. * @static
  47263. * @param {Object.<string,*>} message Plain object to verify
  47264. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47265. */
  47266. speed_up_data.verify = function verify(message) {
  47267. if (typeof message !== "object" || message === null)
  47268. return "object expected";
  47269. return null;
  47270. };
  47271. /**
  47272. * Creates a speed_up_data message from a plain object. Also converts values to their respective internal types.
  47273. * @function fromObject
  47274. * @memberof game.speed_up_data
  47275. * @static
  47276. * @param {Object.<string,*>} object Plain object
  47277. * @returns {game.speed_up_data} speed_up_data
  47278. */
  47279. speed_up_data.fromObject = function fromObject(object) {
  47280. if (object instanceof $root.game.speed_up_data)
  47281. return object;
  47282. return new $root.game.speed_up_data();
  47283. };
  47284. /**
  47285. * Creates a plain object from a speed_up_data message. Also converts values to other types if specified.
  47286. * @function toObject
  47287. * @memberof game.speed_up_data
  47288. * @static
  47289. * @param {game.speed_up_data} message speed_up_data
  47290. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47291. * @returns {Object.<string,*>} Plain object
  47292. */
  47293. speed_up_data.toObject = function toObject() {
  47294. return {};
  47295. };
  47296. /**
  47297. * Converts this speed_up_data to JSON.
  47298. * @function toJSON
  47299. * @memberof game.speed_up_data
  47300. * @instance
  47301. * @returns {Object.<string,*>} JSON object
  47302. */
  47303. speed_up_data.prototype.toJSON = function toJSON() {
  47304. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47305. };
  47306. return speed_up_data;
  47307. })();
  47308. game.speed_up_data_rsp = (function() {
  47309. /**
  47310. * Properties of a speed_up_data_rsp.
  47311. * @memberof game
  47312. * @interface Ispeed_up_data_rsp
  47313. * @property {number|Long|null} [errno] speed_up_data_rsp errno
  47314. * @property {number|Long|null} [time] speed_up_data_rsp time
  47315. */
  47316. /**
  47317. * Constructs a new speed_up_data_rsp.
  47318. * @memberof game
  47319. * @classdesc Represents a speed_up_data_rsp.
  47320. * @implements Ispeed_up_data_rsp
  47321. * @constructor
  47322. * @param {game.Ispeed_up_data_rsp=} [properties] Properties to set
  47323. */
  47324. function speed_up_data_rsp(properties) {
  47325. if (properties)
  47326. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47327. if (properties[keys[i]] != null)
  47328. this[keys[i]] = properties[keys[i]];
  47329. }
  47330. /**
  47331. * speed_up_data_rsp errno.
  47332. * @member {number|Long} errno
  47333. * @memberof game.speed_up_data_rsp
  47334. * @instance
  47335. */
  47336. speed_up_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47337. /**
  47338. * speed_up_data_rsp time.
  47339. * @member {number|Long} time
  47340. * @memberof game.speed_up_data_rsp
  47341. * @instance
  47342. */
  47343. speed_up_data_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47344. /**
  47345. * Creates a new speed_up_data_rsp instance using the specified properties.
  47346. * @function create
  47347. * @memberof game.speed_up_data_rsp
  47348. * @static
  47349. * @param {game.Ispeed_up_data_rsp=} [properties] Properties to set
  47350. * @returns {game.speed_up_data_rsp} speed_up_data_rsp instance
  47351. */
  47352. speed_up_data_rsp.create = function create(properties) {
  47353. return new speed_up_data_rsp(properties);
  47354. };
  47355. /**
  47356. * Encodes the specified speed_up_data_rsp message. Does not implicitly {@link game.speed_up_data_rsp.verify|verify} messages.
  47357. * @function encode
  47358. * @memberof game.speed_up_data_rsp
  47359. * @static
  47360. * @param {game.Ispeed_up_data_rsp} message speed_up_data_rsp message or plain object to encode
  47361. * @param {$protobuf.Writer} [writer] Writer to encode to
  47362. * @returns {$protobuf.Writer} Writer
  47363. */
  47364. speed_up_data_rsp.encode = function encode(message, writer) {
  47365. if (!writer)
  47366. writer = $Writer.create();
  47367. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  47368. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  47369. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  47370. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  47371. return writer;
  47372. };
  47373. /**
  47374. * Encodes the specified speed_up_data_rsp message, length delimited. Does not implicitly {@link game.speed_up_data_rsp.verify|verify} messages.
  47375. * @function encodeDelimited
  47376. * @memberof game.speed_up_data_rsp
  47377. * @static
  47378. * @param {game.Ispeed_up_data_rsp} message speed_up_data_rsp message or plain object to encode
  47379. * @param {$protobuf.Writer} [writer] Writer to encode to
  47380. * @returns {$protobuf.Writer} Writer
  47381. */
  47382. speed_up_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  47383. return this.encode(message, writer).ldelim();
  47384. };
  47385. /**
  47386. * Decodes a speed_up_data_rsp message from the specified reader or buffer.
  47387. * @function decode
  47388. * @memberof game.speed_up_data_rsp
  47389. * @static
  47390. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47391. * @param {number} [length] Message length if known beforehand
  47392. * @returns {game.speed_up_data_rsp} speed_up_data_rsp
  47393. * @throws {Error} If the payload is not a reader or valid buffer
  47394. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47395. */
  47396. speed_up_data_rsp.decode = function decode(reader, length) {
  47397. if (!(reader instanceof $Reader))
  47398. reader = $Reader.create(reader);
  47399. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_data_rsp();
  47400. while (reader.pos < end) {
  47401. let tag = reader.uint32();
  47402. switch (tag >>> 3) {
  47403. case 1:
  47404. message.errno = reader.int64();
  47405. break;
  47406. case 2:
  47407. message.time = reader.int64();
  47408. break;
  47409. default:
  47410. reader.skipType(tag & 7);
  47411. break;
  47412. }
  47413. }
  47414. return message;
  47415. };
  47416. /**
  47417. * Decodes a speed_up_data_rsp message from the specified reader or buffer, length delimited.
  47418. * @function decodeDelimited
  47419. * @memberof game.speed_up_data_rsp
  47420. * @static
  47421. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47422. * @returns {game.speed_up_data_rsp} speed_up_data_rsp
  47423. * @throws {Error} If the payload is not a reader or valid buffer
  47424. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47425. */
  47426. speed_up_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  47427. if (!(reader instanceof $Reader))
  47428. reader = new $Reader(reader);
  47429. return this.decode(reader, reader.uint32());
  47430. };
  47431. /**
  47432. * Verifies a speed_up_data_rsp message.
  47433. * @function verify
  47434. * @memberof game.speed_up_data_rsp
  47435. * @static
  47436. * @param {Object.<string,*>} message Plain object to verify
  47437. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47438. */
  47439. speed_up_data_rsp.verify = function verify(message) {
  47440. if (typeof message !== "object" || message === null)
  47441. return "object expected";
  47442. if (message.errno != null && message.hasOwnProperty("errno"))
  47443. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  47444. return "errno: integer|Long expected";
  47445. if (message.time != null && message.hasOwnProperty("time"))
  47446. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  47447. return "time: integer|Long expected";
  47448. return null;
  47449. };
  47450. /**
  47451. * Creates a speed_up_data_rsp message from a plain object. Also converts values to their respective internal types.
  47452. * @function fromObject
  47453. * @memberof game.speed_up_data_rsp
  47454. * @static
  47455. * @param {Object.<string,*>} object Plain object
  47456. * @returns {game.speed_up_data_rsp} speed_up_data_rsp
  47457. */
  47458. speed_up_data_rsp.fromObject = function fromObject(object) {
  47459. if (object instanceof $root.game.speed_up_data_rsp)
  47460. return object;
  47461. let message = new $root.game.speed_up_data_rsp();
  47462. if (object.errno != null)
  47463. if ($util.Long)
  47464. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  47465. else if (typeof object.errno === "string")
  47466. message.errno = parseInt(object.errno, 10);
  47467. else if (typeof object.errno === "number")
  47468. message.errno = object.errno;
  47469. else if (typeof object.errno === "object")
  47470. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  47471. if (object.time != null)
  47472. if ($util.Long)
  47473. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  47474. else if (typeof object.time === "string")
  47475. message.time = parseInt(object.time, 10);
  47476. else if (typeof object.time === "number")
  47477. message.time = object.time;
  47478. else if (typeof object.time === "object")
  47479. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  47480. return message;
  47481. };
  47482. /**
  47483. * Creates a plain object from a speed_up_data_rsp message. Also converts values to other types if specified.
  47484. * @function toObject
  47485. * @memberof game.speed_up_data_rsp
  47486. * @static
  47487. * @param {game.speed_up_data_rsp} message speed_up_data_rsp
  47488. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47489. * @returns {Object.<string,*>} Plain object
  47490. */
  47491. speed_up_data_rsp.toObject = function toObject(message, options) {
  47492. if (!options)
  47493. options = {};
  47494. let object = {};
  47495. if (options.defaults) {
  47496. if ($util.Long) {
  47497. let long = new $util.Long(0, 0, false);
  47498. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47499. } else
  47500. object.errno = options.longs === String ? "0" : 0;
  47501. if ($util.Long) {
  47502. let long = new $util.Long(0, 0, false);
  47503. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47504. } else
  47505. object.time = options.longs === String ? "0" : 0;
  47506. }
  47507. if (message.errno != null && message.hasOwnProperty("errno"))
  47508. if (typeof message.errno === "number")
  47509. object.errno = options.longs === String ? String(message.errno) : message.errno;
  47510. else
  47511. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  47512. if (message.time != null && message.hasOwnProperty("time"))
  47513. if (typeof message.time === "number")
  47514. object.time = options.longs === String ? String(message.time) : message.time;
  47515. else
  47516. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  47517. return object;
  47518. };
  47519. /**
  47520. * Converts this speed_up_data_rsp to JSON.
  47521. * @function toJSON
  47522. * @memberof game.speed_up_data_rsp
  47523. * @instance
  47524. * @returns {Object.<string,*>} JSON object
  47525. */
  47526. speed_up_data_rsp.prototype.toJSON = function toJSON() {
  47527. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47528. };
  47529. return speed_up_data_rsp;
  47530. })();
  47531. game.speed_up_buy = (function() {
  47532. /**
  47533. * Properties of a speed_up_buy.
  47534. * @memberof game
  47535. * @interface Ispeed_up_buy
  47536. * @property {boolean|null} [free] speed_up_buy free
  47537. */
  47538. /**
  47539. * Constructs a new speed_up_buy.
  47540. * @memberof game
  47541. * @classdesc Represents a speed_up_buy.
  47542. * @implements Ispeed_up_buy
  47543. * @constructor
  47544. * @param {game.Ispeed_up_buy=} [properties] Properties to set
  47545. */
  47546. function speed_up_buy(properties) {
  47547. if (properties)
  47548. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47549. if (properties[keys[i]] != null)
  47550. this[keys[i]] = properties[keys[i]];
  47551. }
  47552. /**
  47553. * speed_up_buy free.
  47554. * @member {boolean} free
  47555. * @memberof game.speed_up_buy
  47556. * @instance
  47557. */
  47558. speed_up_buy.prototype.free = false;
  47559. /**
  47560. * Creates a new speed_up_buy instance using the specified properties.
  47561. * @function create
  47562. * @memberof game.speed_up_buy
  47563. * @static
  47564. * @param {game.Ispeed_up_buy=} [properties] Properties to set
  47565. * @returns {game.speed_up_buy} speed_up_buy instance
  47566. */
  47567. speed_up_buy.create = function create(properties) {
  47568. return new speed_up_buy(properties);
  47569. };
  47570. /**
  47571. * Encodes the specified speed_up_buy message. Does not implicitly {@link game.speed_up_buy.verify|verify} messages.
  47572. * @function encode
  47573. * @memberof game.speed_up_buy
  47574. * @static
  47575. * @param {game.Ispeed_up_buy} message speed_up_buy message or plain object to encode
  47576. * @param {$protobuf.Writer} [writer] Writer to encode to
  47577. * @returns {$protobuf.Writer} Writer
  47578. */
  47579. speed_up_buy.encode = function encode(message, writer) {
  47580. if (!writer)
  47581. writer = $Writer.create();
  47582. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  47583. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.free);
  47584. return writer;
  47585. };
  47586. /**
  47587. * Encodes the specified speed_up_buy message, length delimited. Does not implicitly {@link game.speed_up_buy.verify|verify} messages.
  47588. * @function encodeDelimited
  47589. * @memberof game.speed_up_buy
  47590. * @static
  47591. * @param {game.Ispeed_up_buy} message speed_up_buy message or plain object to encode
  47592. * @param {$protobuf.Writer} [writer] Writer to encode to
  47593. * @returns {$protobuf.Writer} Writer
  47594. */
  47595. speed_up_buy.encodeDelimited = function encodeDelimited(message, writer) {
  47596. return this.encode(message, writer).ldelim();
  47597. };
  47598. /**
  47599. * Decodes a speed_up_buy message from the specified reader or buffer.
  47600. * @function decode
  47601. * @memberof game.speed_up_buy
  47602. * @static
  47603. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47604. * @param {number} [length] Message length if known beforehand
  47605. * @returns {game.speed_up_buy} speed_up_buy
  47606. * @throws {Error} If the payload is not a reader or valid buffer
  47607. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47608. */
  47609. speed_up_buy.decode = function decode(reader, length) {
  47610. if (!(reader instanceof $Reader))
  47611. reader = $Reader.create(reader);
  47612. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_buy();
  47613. while (reader.pos < end) {
  47614. let tag = reader.uint32();
  47615. switch (tag >>> 3) {
  47616. case 1:
  47617. message.free = reader.bool();
  47618. break;
  47619. default:
  47620. reader.skipType(tag & 7);
  47621. break;
  47622. }
  47623. }
  47624. return message;
  47625. };
  47626. /**
  47627. * Decodes a speed_up_buy message from the specified reader or buffer, length delimited.
  47628. * @function decodeDelimited
  47629. * @memberof game.speed_up_buy
  47630. * @static
  47631. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47632. * @returns {game.speed_up_buy} speed_up_buy
  47633. * @throws {Error} If the payload is not a reader or valid buffer
  47634. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47635. */
  47636. speed_up_buy.decodeDelimited = function decodeDelimited(reader) {
  47637. if (!(reader instanceof $Reader))
  47638. reader = new $Reader(reader);
  47639. return this.decode(reader, reader.uint32());
  47640. };
  47641. /**
  47642. * Verifies a speed_up_buy message.
  47643. * @function verify
  47644. * @memberof game.speed_up_buy
  47645. * @static
  47646. * @param {Object.<string,*>} message Plain object to verify
  47647. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47648. */
  47649. speed_up_buy.verify = function verify(message) {
  47650. if (typeof message !== "object" || message === null)
  47651. return "object expected";
  47652. if (message.free != null && message.hasOwnProperty("free"))
  47653. if (typeof message.free !== "boolean")
  47654. return "free: boolean expected";
  47655. return null;
  47656. };
  47657. /**
  47658. * Creates a speed_up_buy message from a plain object. Also converts values to their respective internal types.
  47659. * @function fromObject
  47660. * @memberof game.speed_up_buy
  47661. * @static
  47662. * @param {Object.<string,*>} object Plain object
  47663. * @returns {game.speed_up_buy} speed_up_buy
  47664. */
  47665. speed_up_buy.fromObject = function fromObject(object) {
  47666. if (object instanceof $root.game.speed_up_buy)
  47667. return object;
  47668. let message = new $root.game.speed_up_buy();
  47669. if (object.free != null)
  47670. message.free = Boolean(object.free);
  47671. return message;
  47672. };
  47673. /**
  47674. * Creates a plain object from a speed_up_buy message. Also converts values to other types if specified.
  47675. * @function toObject
  47676. * @memberof game.speed_up_buy
  47677. * @static
  47678. * @param {game.speed_up_buy} message speed_up_buy
  47679. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47680. * @returns {Object.<string,*>} Plain object
  47681. */
  47682. speed_up_buy.toObject = function toObject(message, options) {
  47683. if (!options)
  47684. options = {};
  47685. let object = {};
  47686. if (options.defaults)
  47687. object.free = false;
  47688. if (message.free != null && message.hasOwnProperty("free"))
  47689. object.free = message.free;
  47690. return object;
  47691. };
  47692. /**
  47693. * Converts this speed_up_buy to JSON.
  47694. * @function toJSON
  47695. * @memberof game.speed_up_buy
  47696. * @instance
  47697. * @returns {Object.<string,*>} JSON object
  47698. */
  47699. speed_up_buy.prototype.toJSON = function toJSON() {
  47700. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47701. };
  47702. return speed_up_buy;
  47703. })();
  47704. game.speed_up_buy_rsp = (function() {
  47705. /**
  47706. * Properties of a speed_up_buy_rsp.
  47707. * @memberof game
  47708. * @interface Ispeed_up_buy_rsp
  47709. * @property {number|Long|null} [errno] speed_up_buy_rsp errno
  47710. * @property {number|Long|null} [time] speed_up_buy_rsp time
  47711. */
  47712. /**
  47713. * Constructs a new speed_up_buy_rsp.
  47714. * @memberof game
  47715. * @classdesc Represents a speed_up_buy_rsp.
  47716. * @implements Ispeed_up_buy_rsp
  47717. * @constructor
  47718. * @param {game.Ispeed_up_buy_rsp=} [properties] Properties to set
  47719. */
  47720. function speed_up_buy_rsp(properties) {
  47721. if (properties)
  47722. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47723. if (properties[keys[i]] != null)
  47724. this[keys[i]] = properties[keys[i]];
  47725. }
  47726. /**
  47727. * speed_up_buy_rsp errno.
  47728. * @member {number|Long} errno
  47729. * @memberof game.speed_up_buy_rsp
  47730. * @instance
  47731. */
  47732. speed_up_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47733. /**
  47734. * speed_up_buy_rsp time.
  47735. * @member {number|Long} time
  47736. * @memberof game.speed_up_buy_rsp
  47737. * @instance
  47738. */
  47739. speed_up_buy_rsp.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47740. /**
  47741. * Creates a new speed_up_buy_rsp instance using the specified properties.
  47742. * @function create
  47743. * @memberof game.speed_up_buy_rsp
  47744. * @static
  47745. * @param {game.Ispeed_up_buy_rsp=} [properties] Properties to set
  47746. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp instance
  47747. */
  47748. speed_up_buy_rsp.create = function create(properties) {
  47749. return new speed_up_buy_rsp(properties);
  47750. };
  47751. /**
  47752. * Encodes the specified speed_up_buy_rsp message. Does not implicitly {@link game.speed_up_buy_rsp.verify|verify} messages.
  47753. * @function encode
  47754. * @memberof game.speed_up_buy_rsp
  47755. * @static
  47756. * @param {game.Ispeed_up_buy_rsp} message speed_up_buy_rsp message or plain object to encode
  47757. * @param {$protobuf.Writer} [writer] Writer to encode to
  47758. * @returns {$protobuf.Writer} Writer
  47759. */
  47760. speed_up_buy_rsp.encode = function encode(message, writer) {
  47761. if (!writer)
  47762. writer = $Writer.create();
  47763. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  47764. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  47765. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  47766. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.time);
  47767. return writer;
  47768. };
  47769. /**
  47770. * Encodes the specified speed_up_buy_rsp message, length delimited. Does not implicitly {@link game.speed_up_buy_rsp.verify|verify} messages.
  47771. * @function encodeDelimited
  47772. * @memberof game.speed_up_buy_rsp
  47773. * @static
  47774. * @param {game.Ispeed_up_buy_rsp} message speed_up_buy_rsp message or plain object to encode
  47775. * @param {$protobuf.Writer} [writer] Writer to encode to
  47776. * @returns {$protobuf.Writer} Writer
  47777. */
  47778. speed_up_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  47779. return this.encode(message, writer).ldelim();
  47780. };
  47781. /**
  47782. * Decodes a speed_up_buy_rsp message from the specified reader or buffer.
  47783. * @function decode
  47784. * @memberof game.speed_up_buy_rsp
  47785. * @static
  47786. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47787. * @param {number} [length] Message length if known beforehand
  47788. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
  47789. * @throws {Error} If the payload is not a reader or valid buffer
  47790. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47791. */
  47792. speed_up_buy_rsp.decode = function decode(reader, length) {
  47793. if (!(reader instanceof $Reader))
  47794. reader = $Reader.create(reader);
  47795. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.speed_up_buy_rsp();
  47796. while (reader.pos < end) {
  47797. let tag = reader.uint32();
  47798. switch (tag >>> 3) {
  47799. case 1:
  47800. message.errno = reader.int64();
  47801. break;
  47802. case 2:
  47803. message.time = reader.int64();
  47804. break;
  47805. default:
  47806. reader.skipType(tag & 7);
  47807. break;
  47808. }
  47809. }
  47810. return message;
  47811. };
  47812. /**
  47813. * Decodes a speed_up_buy_rsp message from the specified reader or buffer, length delimited.
  47814. * @function decodeDelimited
  47815. * @memberof game.speed_up_buy_rsp
  47816. * @static
  47817. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  47818. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
  47819. * @throws {Error} If the payload is not a reader or valid buffer
  47820. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  47821. */
  47822. speed_up_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  47823. if (!(reader instanceof $Reader))
  47824. reader = new $Reader(reader);
  47825. return this.decode(reader, reader.uint32());
  47826. };
  47827. /**
  47828. * Verifies a speed_up_buy_rsp message.
  47829. * @function verify
  47830. * @memberof game.speed_up_buy_rsp
  47831. * @static
  47832. * @param {Object.<string,*>} message Plain object to verify
  47833. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  47834. */
  47835. speed_up_buy_rsp.verify = function verify(message) {
  47836. if (typeof message !== "object" || message === null)
  47837. return "object expected";
  47838. if (message.errno != null && message.hasOwnProperty("errno"))
  47839. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  47840. return "errno: integer|Long expected";
  47841. if (message.time != null && message.hasOwnProperty("time"))
  47842. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  47843. return "time: integer|Long expected";
  47844. return null;
  47845. };
  47846. /**
  47847. * Creates a speed_up_buy_rsp message from a plain object. Also converts values to their respective internal types.
  47848. * @function fromObject
  47849. * @memberof game.speed_up_buy_rsp
  47850. * @static
  47851. * @param {Object.<string,*>} object Plain object
  47852. * @returns {game.speed_up_buy_rsp} speed_up_buy_rsp
  47853. */
  47854. speed_up_buy_rsp.fromObject = function fromObject(object) {
  47855. if (object instanceof $root.game.speed_up_buy_rsp)
  47856. return object;
  47857. let message = new $root.game.speed_up_buy_rsp();
  47858. if (object.errno != null)
  47859. if ($util.Long)
  47860. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  47861. else if (typeof object.errno === "string")
  47862. message.errno = parseInt(object.errno, 10);
  47863. else if (typeof object.errno === "number")
  47864. message.errno = object.errno;
  47865. else if (typeof object.errno === "object")
  47866. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  47867. if (object.time != null)
  47868. if ($util.Long)
  47869. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  47870. else if (typeof object.time === "string")
  47871. message.time = parseInt(object.time, 10);
  47872. else if (typeof object.time === "number")
  47873. message.time = object.time;
  47874. else if (typeof object.time === "object")
  47875. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  47876. return message;
  47877. };
  47878. /**
  47879. * Creates a plain object from a speed_up_buy_rsp message. Also converts values to other types if specified.
  47880. * @function toObject
  47881. * @memberof game.speed_up_buy_rsp
  47882. * @static
  47883. * @param {game.speed_up_buy_rsp} message speed_up_buy_rsp
  47884. * @param {$protobuf.IConversionOptions} [options] Conversion options
  47885. * @returns {Object.<string,*>} Plain object
  47886. */
  47887. speed_up_buy_rsp.toObject = function toObject(message, options) {
  47888. if (!options)
  47889. options = {};
  47890. let object = {};
  47891. if (options.defaults) {
  47892. if ($util.Long) {
  47893. let long = new $util.Long(0, 0, false);
  47894. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47895. } else
  47896. object.errno = options.longs === String ? "0" : 0;
  47897. if ($util.Long) {
  47898. let long = new $util.Long(0, 0, false);
  47899. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  47900. } else
  47901. object.time = options.longs === String ? "0" : 0;
  47902. }
  47903. if (message.errno != null && message.hasOwnProperty("errno"))
  47904. if (typeof message.errno === "number")
  47905. object.errno = options.longs === String ? String(message.errno) : message.errno;
  47906. else
  47907. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  47908. if (message.time != null && message.hasOwnProperty("time"))
  47909. if (typeof message.time === "number")
  47910. object.time = options.longs === String ? String(message.time) : message.time;
  47911. else
  47912. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  47913. return object;
  47914. };
  47915. /**
  47916. * Converts this speed_up_buy_rsp to JSON.
  47917. * @function toJSON
  47918. * @memberof game.speed_up_buy_rsp
  47919. * @instance
  47920. * @returns {Object.<string,*>} JSON object
  47921. */
  47922. speed_up_buy_rsp.prototype.toJSON = function toJSON() {
  47923. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  47924. };
  47925. return speed_up_buy_rsp;
  47926. })();
  47927. game.city_skill_upgrade = (function() {
  47928. /**
  47929. * Properties of a city_skill_upgrade.
  47930. * @memberof game
  47931. * @interface Icity_skill_upgrade
  47932. * @property {number|Long|null} [id] city_skill_upgrade id
  47933. */
  47934. /**
  47935. * Constructs a new city_skill_upgrade.
  47936. * @memberof game
  47937. * @classdesc Represents a city_skill_upgrade.
  47938. * @implements Icity_skill_upgrade
  47939. * @constructor
  47940. * @param {game.Icity_skill_upgrade=} [properties] Properties to set
  47941. */
  47942. function city_skill_upgrade(properties) {
  47943. if (properties)
  47944. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  47945. if (properties[keys[i]] != null)
  47946. this[keys[i]] = properties[keys[i]];
  47947. }
  47948. /**
  47949. * city_skill_upgrade id.
  47950. * @member {number|Long} id
  47951. * @memberof game.city_skill_upgrade
  47952. * @instance
  47953. */
  47954. city_skill_upgrade.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  47955. /**
  47956. * Creates a new city_skill_upgrade instance using the specified properties.
  47957. * @function create
  47958. * @memberof game.city_skill_upgrade
  47959. * @static
  47960. * @param {game.Icity_skill_upgrade=} [properties] Properties to set
  47961. * @returns {game.city_skill_upgrade} city_skill_upgrade instance
  47962. */
  47963. city_skill_upgrade.create = function create(properties) {
  47964. return new city_skill_upgrade(properties);
  47965. };
  47966. /**
  47967. * Encodes the specified city_skill_upgrade message. Does not implicitly {@link game.city_skill_upgrade.verify|verify} messages.
  47968. * @function encode
  47969. * @memberof game.city_skill_upgrade
  47970. * @static
  47971. * @param {game.Icity_skill_upgrade} message city_skill_upgrade message or plain object to encode
  47972. * @param {$protobuf.Writer} [writer] Writer to encode to
  47973. * @returns {$protobuf.Writer} Writer
  47974. */
  47975. city_skill_upgrade.encode = function encode(message, writer) {
  47976. if (!writer)
  47977. writer = $Writer.create();
  47978. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  47979. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  47980. return writer;
  47981. };
  47982. /**
  47983. * Encodes the specified city_skill_upgrade message, length delimited. Does not implicitly {@link game.city_skill_upgrade.verify|verify} messages.
  47984. * @function encodeDelimited
  47985. * @memberof game.city_skill_upgrade
  47986. * @static
  47987. * @param {game.Icity_skill_upgrade} message city_skill_upgrade message or plain object to encode
  47988. * @param {$protobuf.Writer} [writer] Writer to encode to
  47989. * @returns {$protobuf.Writer} Writer
  47990. */
  47991. city_skill_upgrade.encodeDelimited = function encodeDelimited(message, writer) {
  47992. return this.encode(message, writer).ldelim();
  47993. };
  47994. /**
  47995. * Decodes a city_skill_upgrade message from the specified reader or buffer.
  47996. * @function decode
  47997. * @memberof game.city_skill_upgrade
  47998. * @static
  47999. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48000. * @param {number} [length] Message length if known beforehand
  48001. * @returns {game.city_skill_upgrade} city_skill_upgrade
  48002. * @throws {Error} If the payload is not a reader or valid buffer
  48003. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48004. */
  48005. city_skill_upgrade.decode = function decode(reader, length) {
  48006. if (!(reader instanceof $Reader))
  48007. reader = $Reader.create(reader);
  48008. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_upgrade();
  48009. while (reader.pos < end) {
  48010. let tag = reader.uint32();
  48011. switch (tag >>> 3) {
  48012. case 1:
  48013. message.id = reader.int64();
  48014. break;
  48015. default:
  48016. reader.skipType(tag & 7);
  48017. break;
  48018. }
  48019. }
  48020. return message;
  48021. };
  48022. /**
  48023. * Decodes a city_skill_upgrade message from the specified reader or buffer, length delimited.
  48024. * @function decodeDelimited
  48025. * @memberof game.city_skill_upgrade
  48026. * @static
  48027. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48028. * @returns {game.city_skill_upgrade} city_skill_upgrade
  48029. * @throws {Error} If the payload is not a reader or valid buffer
  48030. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48031. */
  48032. city_skill_upgrade.decodeDelimited = function decodeDelimited(reader) {
  48033. if (!(reader instanceof $Reader))
  48034. reader = new $Reader(reader);
  48035. return this.decode(reader, reader.uint32());
  48036. };
  48037. /**
  48038. * Verifies a city_skill_upgrade message.
  48039. * @function verify
  48040. * @memberof game.city_skill_upgrade
  48041. * @static
  48042. * @param {Object.<string,*>} message Plain object to verify
  48043. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48044. */
  48045. city_skill_upgrade.verify = function verify(message) {
  48046. if (typeof message !== "object" || message === null)
  48047. return "object expected";
  48048. if (message.id != null && message.hasOwnProperty("id"))
  48049. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48050. return "id: integer|Long expected";
  48051. return null;
  48052. };
  48053. /**
  48054. * Creates a city_skill_upgrade message from a plain object. Also converts values to their respective internal types.
  48055. * @function fromObject
  48056. * @memberof game.city_skill_upgrade
  48057. * @static
  48058. * @param {Object.<string,*>} object Plain object
  48059. * @returns {game.city_skill_upgrade} city_skill_upgrade
  48060. */
  48061. city_skill_upgrade.fromObject = function fromObject(object) {
  48062. if (object instanceof $root.game.city_skill_upgrade)
  48063. return object;
  48064. let message = new $root.game.city_skill_upgrade();
  48065. if (object.id != null)
  48066. if ($util.Long)
  48067. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48068. else if (typeof object.id === "string")
  48069. message.id = parseInt(object.id, 10);
  48070. else if (typeof object.id === "number")
  48071. message.id = object.id;
  48072. else if (typeof object.id === "object")
  48073. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48074. return message;
  48075. };
  48076. /**
  48077. * Creates a plain object from a city_skill_upgrade message. Also converts values to other types if specified.
  48078. * @function toObject
  48079. * @memberof game.city_skill_upgrade
  48080. * @static
  48081. * @param {game.city_skill_upgrade} message city_skill_upgrade
  48082. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48083. * @returns {Object.<string,*>} Plain object
  48084. */
  48085. city_skill_upgrade.toObject = function toObject(message, options) {
  48086. if (!options)
  48087. options = {};
  48088. let object = {};
  48089. if (options.defaults)
  48090. if ($util.Long) {
  48091. let long = new $util.Long(0, 0, false);
  48092. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48093. } else
  48094. object.id = options.longs === String ? "0" : 0;
  48095. if (message.id != null && message.hasOwnProperty("id"))
  48096. if (typeof message.id === "number")
  48097. object.id = options.longs === String ? String(message.id) : message.id;
  48098. else
  48099. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  48100. return object;
  48101. };
  48102. /**
  48103. * Converts this city_skill_upgrade to JSON.
  48104. * @function toJSON
  48105. * @memberof game.city_skill_upgrade
  48106. * @instance
  48107. * @returns {Object.<string,*>} JSON object
  48108. */
  48109. city_skill_upgrade.prototype.toJSON = function toJSON() {
  48110. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48111. };
  48112. return city_skill_upgrade;
  48113. })();
  48114. game.city_skill_upgrade_rsp = (function() {
  48115. /**
  48116. * Properties of a city_skill_upgrade_rsp.
  48117. * @memberof game
  48118. * @interface Icity_skill_upgrade_rsp
  48119. * @property {number|Long|null} [errno] city_skill_upgrade_rsp errno
  48120. * @property {number|Long|null} [id] city_skill_upgrade_rsp id
  48121. */
  48122. /**
  48123. * Constructs a new city_skill_upgrade_rsp.
  48124. * @memberof game
  48125. * @classdesc Represents a city_skill_upgrade_rsp.
  48126. * @implements Icity_skill_upgrade_rsp
  48127. * @constructor
  48128. * @param {game.Icity_skill_upgrade_rsp=} [properties] Properties to set
  48129. */
  48130. function city_skill_upgrade_rsp(properties) {
  48131. if (properties)
  48132. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48133. if (properties[keys[i]] != null)
  48134. this[keys[i]] = properties[keys[i]];
  48135. }
  48136. /**
  48137. * city_skill_upgrade_rsp errno.
  48138. * @member {number|Long} errno
  48139. * @memberof game.city_skill_upgrade_rsp
  48140. * @instance
  48141. */
  48142. city_skill_upgrade_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48143. /**
  48144. * city_skill_upgrade_rsp id.
  48145. * @member {number|Long} id
  48146. * @memberof game.city_skill_upgrade_rsp
  48147. * @instance
  48148. */
  48149. city_skill_upgrade_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48150. /**
  48151. * Creates a new city_skill_upgrade_rsp instance using the specified properties.
  48152. * @function create
  48153. * @memberof game.city_skill_upgrade_rsp
  48154. * @static
  48155. * @param {game.Icity_skill_upgrade_rsp=} [properties] Properties to set
  48156. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp instance
  48157. */
  48158. city_skill_upgrade_rsp.create = function create(properties) {
  48159. return new city_skill_upgrade_rsp(properties);
  48160. };
  48161. /**
  48162. * Encodes the specified city_skill_upgrade_rsp message. Does not implicitly {@link game.city_skill_upgrade_rsp.verify|verify} messages.
  48163. * @function encode
  48164. * @memberof game.city_skill_upgrade_rsp
  48165. * @static
  48166. * @param {game.Icity_skill_upgrade_rsp} message city_skill_upgrade_rsp message or plain object to encode
  48167. * @param {$protobuf.Writer} [writer] Writer to encode to
  48168. * @returns {$protobuf.Writer} Writer
  48169. */
  48170. city_skill_upgrade_rsp.encode = function encode(message, writer) {
  48171. if (!writer)
  48172. writer = $Writer.create();
  48173. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  48174. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  48175. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48176. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  48177. return writer;
  48178. };
  48179. /**
  48180. * Encodes the specified city_skill_upgrade_rsp message, length delimited. Does not implicitly {@link game.city_skill_upgrade_rsp.verify|verify} messages.
  48181. * @function encodeDelimited
  48182. * @memberof game.city_skill_upgrade_rsp
  48183. * @static
  48184. * @param {game.Icity_skill_upgrade_rsp} message city_skill_upgrade_rsp message or plain object to encode
  48185. * @param {$protobuf.Writer} [writer] Writer to encode to
  48186. * @returns {$protobuf.Writer} Writer
  48187. */
  48188. city_skill_upgrade_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  48189. return this.encode(message, writer).ldelim();
  48190. };
  48191. /**
  48192. * Decodes a city_skill_upgrade_rsp message from the specified reader or buffer.
  48193. * @function decode
  48194. * @memberof game.city_skill_upgrade_rsp
  48195. * @static
  48196. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48197. * @param {number} [length] Message length if known beforehand
  48198. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
  48199. * @throws {Error} If the payload is not a reader or valid buffer
  48200. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48201. */
  48202. city_skill_upgrade_rsp.decode = function decode(reader, length) {
  48203. if (!(reader instanceof $Reader))
  48204. reader = $Reader.create(reader);
  48205. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_upgrade_rsp();
  48206. while (reader.pos < end) {
  48207. let tag = reader.uint32();
  48208. switch (tag >>> 3) {
  48209. case 1:
  48210. message.errno = reader.int64();
  48211. break;
  48212. case 2:
  48213. message.id = reader.int64();
  48214. break;
  48215. default:
  48216. reader.skipType(tag & 7);
  48217. break;
  48218. }
  48219. }
  48220. return message;
  48221. };
  48222. /**
  48223. * Decodes a city_skill_upgrade_rsp message from the specified reader or buffer, length delimited.
  48224. * @function decodeDelimited
  48225. * @memberof game.city_skill_upgrade_rsp
  48226. * @static
  48227. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48228. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
  48229. * @throws {Error} If the payload is not a reader or valid buffer
  48230. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48231. */
  48232. city_skill_upgrade_rsp.decodeDelimited = function decodeDelimited(reader) {
  48233. if (!(reader instanceof $Reader))
  48234. reader = new $Reader(reader);
  48235. return this.decode(reader, reader.uint32());
  48236. };
  48237. /**
  48238. * Verifies a city_skill_upgrade_rsp message.
  48239. * @function verify
  48240. * @memberof game.city_skill_upgrade_rsp
  48241. * @static
  48242. * @param {Object.<string,*>} message Plain object to verify
  48243. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48244. */
  48245. city_skill_upgrade_rsp.verify = function verify(message) {
  48246. if (typeof message !== "object" || message === null)
  48247. return "object expected";
  48248. if (message.errno != null && message.hasOwnProperty("errno"))
  48249. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  48250. return "errno: integer|Long expected";
  48251. if (message.id != null && message.hasOwnProperty("id"))
  48252. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48253. return "id: integer|Long expected";
  48254. return null;
  48255. };
  48256. /**
  48257. * Creates a city_skill_upgrade_rsp message from a plain object. Also converts values to their respective internal types.
  48258. * @function fromObject
  48259. * @memberof game.city_skill_upgrade_rsp
  48260. * @static
  48261. * @param {Object.<string,*>} object Plain object
  48262. * @returns {game.city_skill_upgrade_rsp} city_skill_upgrade_rsp
  48263. */
  48264. city_skill_upgrade_rsp.fromObject = function fromObject(object) {
  48265. if (object instanceof $root.game.city_skill_upgrade_rsp)
  48266. return object;
  48267. let message = new $root.game.city_skill_upgrade_rsp();
  48268. if (object.errno != null)
  48269. if ($util.Long)
  48270. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  48271. else if (typeof object.errno === "string")
  48272. message.errno = parseInt(object.errno, 10);
  48273. else if (typeof object.errno === "number")
  48274. message.errno = object.errno;
  48275. else if (typeof object.errno === "object")
  48276. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  48277. if (object.id != null)
  48278. if ($util.Long)
  48279. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48280. else if (typeof object.id === "string")
  48281. message.id = parseInt(object.id, 10);
  48282. else if (typeof object.id === "number")
  48283. message.id = object.id;
  48284. else if (typeof object.id === "object")
  48285. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48286. return message;
  48287. };
  48288. /**
  48289. * Creates a plain object from a city_skill_upgrade_rsp message. Also converts values to other types if specified.
  48290. * @function toObject
  48291. * @memberof game.city_skill_upgrade_rsp
  48292. * @static
  48293. * @param {game.city_skill_upgrade_rsp} message city_skill_upgrade_rsp
  48294. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48295. * @returns {Object.<string,*>} Plain object
  48296. */
  48297. city_skill_upgrade_rsp.toObject = function toObject(message, options) {
  48298. if (!options)
  48299. options = {};
  48300. let object = {};
  48301. if (options.defaults) {
  48302. if ($util.Long) {
  48303. let long = new $util.Long(0, 0, false);
  48304. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48305. } else
  48306. object.errno = options.longs === String ? "0" : 0;
  48307. if ($util.Long) {
  48308. let long = new $util.Long(0, 0, false);
  48309. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48310. } else
  48311. object.id = options.longs === String ? "0" : 0;
  48312. }
  48313. if (message.errno != null && message.hasOwnProperty("errno"))
  48314. if (typeof message.errno === "number")
  48315. object.errno = options.longs === String ? String(message.errno) : message.errno;
  48316. else
  48317. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  48318. if (message.id != null && message.hasOwnProperty("id"))
  48319. if (typeof message.id === "number")
  48320. object.id = options.longs === String ? String(message.id) : message.id;
  48321. else
  48322. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  48323. return object;
  48324. };
  48325. /**
  48326. * Converts this city_skill_upgrade_rsp to JSON.
  48327. * @function toJSON
  48328. * @memberof game.city_skill_upgrade_rsp
  48329. * @instance
  48330. * @returns {Object.<string,*>} JSON object
  48331. */
  48332. city_skill_upgrade_rsp.prototype.toJSON = function toJSON() {
  48333. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48334. };
  48335. return city_skill_upgrade_rsp;
  48336. })();
  48337. game.city_skill_battle = (function() {
  48338. /**
  48339. * Properties of a city_skill_battle.
  48340. * @memberof game
  48341. * @interface Icity_skill_battle
  48342. * @property {number|Long|null} [id] city_skill_battle id
  48343. */
  48344. /**
  48345. * Constructs a new city_skill_battle.
  48346. * @memberof game
  48347. * @classdesc Represents a city_skill_battle.
  48348. * @implements Icity_skill_battle
  48349. * @constructor
  48350. * @param {game.Icity_skill_battle=} [properties] Properties to set
  48351. */
  48352. function city_skill_battle(properties) {
  48353. if (properties)
  48354. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48355. if (properties[keys[i]] != null)
  48356. this[keys[i]] = properties[keys[i]];
  48357. }
  48358. /**
  48359. * city_skill_battle id.
  48360. * @member {number|Long} id
  48361. * @memberof game.city_skill_battle
  48362. * @instance
  48363. */
  48364. city_skill_battle.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48365. /**
  48366. * Creates a new city_skill_battle instance using the specified properties.
  48367. * @function create
  48368. * @memberof game.city_skill_battle
  48369. * @static
  48370. * @param {game.Icity_skill_battle=} [properties] Properties to set
  48371. * @returns {game.city_skill_battle} city_skill_battle instance
  48372. */
  48373. city_skill_battle.create = function create(properties) {
  48374. return new city_skill_battle(properties);
  48375. };
  48376. /**
  48377. * Encodes the specified city_skill_battle message. Does not implicitly {@link game.city_skill_battle.verify|verify} messages.
  48378. * @function encode
  48379. * @memberof game.city_skill_battle
  48380. * @static
  48381. * @param {game.Icity_skill_battle} message city_skill_battle message or plain object to encode
  48382. * @param {$protobuf.Writer} [writer] Writer to encode to
  48383. * @returns {$protobuf.Writer} Writer
  48384. */
  48385. city_skill_battle.encode = function encode(message, writer) {
  48386. if (!writer)
  48387. writer = $Writer.create();
  48388. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48389. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  48390. return writer;
  48391. };
  48392. /**
  48393. * Encodes the specified city_skill_battle message, length delimited. Does not implicitly {@link game.city_skill_battle.verify|verify} messages.
  48394. * @function encodeDelimited
  48395. * @memberof game.city_skill_battle
  48396. * @static
  48397. * @param {game.Icity_skill_battle} message city_skill_battle message or plain object to encode
  48398. * @param {$protobuf.Writer} [writer] Writer to encode to
  48399. * @returns {$protobuf.Writer} Writer
  48400. */
  48401. city_skill_battle.encodeDelimited = function encodeDelimited(message, writer) {
  48402. return this.encode(message, writer).ldelim();
  48403. };
  48404. /**
  48405. * Decodes a city_skill_battle message from the specified reader or buffer.
  48406. * @function decode
  48407. * @memberof game.city_skill_battle
  48408. * @static
  48409. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48410. * @param {number} [length] Message length if known beforehand
  48411. * @returns {game.city_skill_battle} city_skill_battle
  48412. * @throws {Error} If the payload is not a reader or valid buffer
  48413. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48414. */
  48415. city_skill_battle.decode = function decode(reader, length) {
  48416. if (!(reader instanceof $Reader))
  48417. reader = $Reader.create(reader);
  48418. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_battle();
  48419. while (reader.pos < end) {
  48420. let tag = reader.uint32();
  48421. switch (tag >>> 3) {
  48422. case 1:
  48423. message.id = reader.int64();
  48424. break;
  48425. default:
  48426. reader.skipType(tag & 7);
  48427. break;
  48428. }
  48429. }
  48430. return message;
  48431. };
  48432. /**
  48433. * Decodes a city_skill_battle message from the specified reader or buffer, length delimited.
  48434. * @function decodeDelimited
  48435. * @memberof game.city_skill_battle
  48436. * @static
  48437. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48438. * @returns {game.city_skill_battle} city_skill_battle
  48439. * @throws {Error} If the payload is not a reader or valid buffer
  48440. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48441. */
  48442. city_skill_battle.decodeDelimited = function decodeDelimited(reader) {
  48443. if (!(reader instanceof $Reader))
  48444. reader = new $Reader(reader);
  48445. return this.decode(reader, reader.uint32());
  48446. };
  48447. /**
  48448. * Verifies a city_skill_battle message.
  48449. * @function verify
  48450. * @memberof game.city_skill_battle
  48451. * @static
  48452. * @param {Object.<string,*>} message Plain object to verify
  48453. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48454. */
  48455. city_skill_battle.verify = function verify(message) {
  48456. if (typeof message !== "object" || message === null)
  48457. return "object expected";
  48458. if (message.id != null && message.hasOwnProperty("id"))
  48459. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48460. return "id: integer|Long expected";
  48461. return null;
  48462. };
  48463. /**
  48464. * Creates a city_skill_battle message from a plain object. Also converts values to their respective internal types.
  48465. * @function fromObject
  48466. * @memberof game.city_skill_battle
  48467. * @static
  48468. * @param {Object.<string,*>} object Plain object
  48469. * @returns {game.city_skill_battle} city_skill_battle
  48470. */
  48471. city_skill_battle.fromObject = function fromObject(object) {
  48472. if (object instanceof $root.game.city_skill_battle)
  48473. return object;
  48474. let message = new $root.game.city_skill_battle();
  48475. if (object.id != null)
  48476. if ($util.Long)
  48477. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48478. else if (typeof object.id === "string")
  48479. message.id = parseInt(object.id, 10);
  48480. else if (typeof object.id === "number")
  48481. message.id = object.id;
  48482. else if (typeof object.id === "object")
  48483. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48484. return message;
  48485. };
  48486. /**
  48487. * Creates a plain object from a city_skill_battle message. Also converts values to other types if specified.
  48488. * @function toObject
  48489. * @memberof game.city_skill_battle
  48490. * @static
  48491. * @param {game.city_skill_battle} message city_skill_battle
  48492. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48493. * @returns {Object.<string,*>} Plain object
  48494. */
  48495. city_skill_battle.toObject = function toObject(message, options) {
  48496. if (!options)
  48497. options = {};
  48498. let object = {};
  48499. if (options.defaults)
  48500. if ($util.Long) {
  48501. let long = new $util.Long(0, 0, false);
  48502. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48503. } else
  48504. object.id = options.longs === String ? "0" : 0;
  48505. if (message.id != null && message.hasOwnProperty("id"))
  48506. if (typeof message.id === "number")
  48507. object.id = options.longs === String ? String(message.id) : message.id;
  48508. else
  48509. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  48510. return object;
  48511. };
  48512. /**
  48513. * Converts this city_skill_battle to JSON.
  48514. * @function toJSON
  48515. * @memberof game.city_skill_battle
  48516. * @instance
  48517. * @returns {Object.<string,*>} JSON object
  48518. */
  48519. city_skill_battle.prototype.toJSON = function toJSON() {
  48520. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48521. };
  48522. return city_skill_battle;
  48523. })();
  48524. game.city_skill_battle_rsp = (function() {
  48525. /**
  48526. * Properties of a city_skill_battle_rsp.
  48527. * @memberof game
  48528. * @interface Icity_skill_battle_rsp
  48529. * @property {number|Long|null} [errno] city_skill_battle_rsp errno
  48530. * @property {number|Long|null} [id] city_skill_battle_rsp id
  48531. */
  48532. /**
  48533. * Constructs a new city_skill_battle_rsp.
  48534. * @memberof game
  48535. * @classdesc Represents a city_skill_battle_rsp.
  48536. * @implements Icity_skill_battle_rsp
  48537. * @constructor
  48538. * @param {game.Icity_skill_battle_rsp=} [properties] Properties to set
  48539. */
  48540. function city_skill_battle_rsp(properties) {
  48541. if (properties)
  48542. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48543. if (properties[keys[i]] != null)
  48544. this[keys[i]] = properties[keys[i]];
  48545. }
  48546. /**
  48547. * city_skill_battle_rsp errno.
  48548. * @member {number|Long} errno
  48549. * @memberof game.city_skill_battle_rsp
  48550. * @instance
  48551. */
  48552. city_skill_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48553. /**
  48554. * city_skill_battle_rsp id.
  48555. * @member {number|Long} id
  48556. * @memberof game.city_skill_battle_rsp
  48557. * @instance
  48558. */
  48559. city_skill_battle_rsp.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48560. /**
  48561. * Creates a new city_skill_battle_rsp instance using the specified properties.
  48562. * @function create
  48563. * @memberof game.city_skill_battle_rsp
  48564. * @static
  48565. * @param {game.Icity_skill_battle_rsp=} [properties] Properties to set
  48566. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp instance
  48567. */
  48568. city_skill_battle_rsp.create = function create(properties) {
  48569. return new city_skill_battle_rsp(properties);
  48570. };
  48571. /**
  48572. * Encodes the specified city_skill_battle_rsp message. Does not implicitly {@link game.city_skill_battle_rsp.verify|verify} messages.
  48573. * @function encode
  48574. * @memberof game.city_skill_battle_rsp
  48575. * @static
  48576. * @param {game.Icity_skill_battle_rsp} message city_skill_battle_rsp message or plain object to encode
  48577. * @param {$protobuf.Writer} [writer] Writer to encode to
  48578. * @returns {$protobuf.Writer} Writer
  48579. */
  48580. city_skill_battle_rsp.encode = function encode(message, writer) {
  48581. if (!writer)
  48582. writer = $Writer.create();
  48583. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  48584. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  48585. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48586. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  48587. return writer;
  48588. };
  48589. /**
  48590. * Encodes the specified city_skill_battle_rsp message, length delimited. Does not implicitly {@link game.city_skill_battle_rsp.verify|verify} messages.
  48591. * @function encodeDelimited
  48592. * @memberof game.city_skill_battle_rsp
  48593. * @static
  48594. * @param {game.Icity_skill_battle_rsp} message city_skill_battle_rsp message or plain object to encode
  48595. * @param {$protobuf.Writer} [writer] Writer to encode to
  48596. * @returns {$protobuf.Writer} Writer
  48597. */
  48598. city_skill_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  48599. return this.encode(message, writer).ldelim();
  48600. };
  48601. /**
  48602. * Decodes a city_skill_battle_rsp message from the specified reader or buffer.
  48603. * @function decode
  48604. * @memberof game.city_skill_battle_rsp
  48605. * @static
  48606. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48607. * @param {number} [length] Message length if known beforehand
  48608. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
  48609. * @throws {Error} If the payload is not a reader or valid buffer
  48610. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48611. */
  48612. city_skill_battle_rsp.decode = function decode(reader, length) {
  48613. if (!(reader instanceof $Reader))
  48614. reader = $Reader.create(reader);
  48615. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.city_skill_battle_rsp();
  48616. while (reader.pos < end) {
  48617. let tag = reader.uint32();
  48618. switch (tag >>> 3) {
  48619. case 1:
  48620. message.errno = reader.int64();
  48621. break;
  48622. case 2:
  48623. message.id = reader.int64();
  48624. break;
  48625. default:
  48626. reader.skipType(tag & 7);
  48627. break;
  48628. }
  48629. }
  48630. return message;
  48631. };
  48632. /**
  48633. * Decodes a city_skill_battle_rsp message from the specified reader or buffer, length delimited.
  48634. * @function decodeDelimited
  48635. * @memberof game.city_skill_battle_rsp
  48636. * @static
  48637. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48638. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
  48639. * @throws {Error} If the payload is not a reader or valid buffer
  48640. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48641. */
  48642. city_skill_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  48643. if (!(reader instanceof $Reader))
  48644. reader = new $Reader(reader);
  48645. return this.decode(reader, reader.uint32());
  48646. };
  48647. /**
  48648. * Verifies a city_skill_battle_rsp message.
  48649. * @function verify
  48650. * @memberof game.city_skill_battle_rsp
  48651. * @static
  48652. * @param {Object.<string,*>} message Plain object to verify
  48653. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48654. */
  48655. city_skill_battle_rsp.verify = function verify(message) {
  48656. if (typeof message !== "object" || message === null)
  48657. return "object expected";
  48658. if (message.errno != null && message.hasOwnProperty("errno"))
  48659. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  48660. return "errno: integer|Long expected";
  48661. if (message.id != null && message.hasOwnProperty("id"))
  48662. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48663. return "id: integer|Long expected";
  48664. return null;
  48665. };
  48666. /**
  48667. * Creates a city_skill_battle_rsp message from a plain object. Also converts values to their respective internal types.
  48668. * @function fromObject
  48669. * @memberof game.city_skill_battle_rsp
  48670. * @static
  48671. * @param {Object.<string,*>} object Plain object
  48672. * @returns {game.city_skill_battle_rsp} city_skill_battle_rsp
  48673. */
  48674. city_skill_battle_rsp.fromObject = function fromObject(object) {
  48675. if (object instanceof $root.game.city_skill_battle_rsp)
  48676. return object;
  48677. let message = new $root.game.city_skill_battle_rsp();
  48678. if (object.errno != null)
  48679. if ($util.Long)
  48680. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  48681. else if (typeof object.errno === "string")
  48682. message.errno = parseInt(object.errno, 10);
  48683. else if (typeof object.errno === "number")
  48684. message.errno = object.errno;
  48685. else if (typeof object.errno === "object")
  48686. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  48687. if (object.id != null)
  48688. if ($util.Long)
  48689. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48690. else if (typeof object.id === "string")
  48691. message.id = parseInt(object.id, 10);
  48692. else if (typeof object.id === "number")
  48693. message.id = object.id;
  48694. else if (typeof object.id === "object")
  48695. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48696. return message;
  48697. };
  48698. /**
  48699. * Creates a plain object from a city_skill_battle_rsp message. Also converts values to other types if specified.
  48700. * @function toObject
  48701. * @memberof game.city_skill_battle_rsp
  48702. * @static
  48703. * @param {game.city_skill_battle_rsp} message city_skill_battle_rsp
  48704. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48705. * @returns {Object.<string,*>} Plain object
  48706. */
  48707. city_skill_battle_rsp.toObject = function toObject(message, options) {
  48708. if (!options)
  48709. options = {};
  48710. let object = {};
  48711. if (options.defaults) {
  48712. if ($util.Long) {
  48713. let long = new $util.Long(0, 0, false);
  48714. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48715. } else
  48716. object.errno = options.longs === String ? "0" : 0;
  48717. if ($util.Long) {
  48718. let long = new $util.Long(0, 0, false);
  48719. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48720. } else
  48721. object.id = options.longs === String ? "0" : 0;
  48722. }
  48723. if (message.errno != null && message.hasOwnProperty("errno"))
  48724. if (typeof message.errno === "number")
  48725. object.errno = options.longs === String ? String(message.errno) : message.errno;
  48726. else
  48727. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  48728. if (message.id != null && message.hasOwnProperty("id"))
  48729. if (typeof message.id === "number")
  48730. object.id = options.longs === String ? String(message.id) : message.id;
  48731. else
  48732. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  48733. return object;
  48734. };
  48735. /**
  48736. * Converts this city_skill_battle_rsp to JSON.
  48737. * @function toJSON
  48738. * @memberof game.city_skill_battle_rsp
  48739. * @instance
  48740. * @returns {Object.<string,*>} JSON object
  48741. */
  48742. city_skill_battle_rsp.prototype.toJSON = function toJSON() {
  48743. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48744. };
  48745. return city_skill_battle_rsp;
  48746. })();
  48747. game.building_explore = (function() {
  48748. /**
  48749. * Properties of a building_explore.
  48750. * @memberof game
  48751. * @interface Ibuilding_explore
  48752. * @property {number|Long|null} [id] building_explore id
  48753. */
  48754. /**
  48755. * Constructs a new building_explore.
  48756. * @memberof game
  48757. * @classdesc Represents a building_explore.
  48758. * @implements Ibuilding_explore
  48759. * @constructor
  48760. * @param {game.Ibuilding_explore=} [properties] Properties to set
  48761. */
  48762. function building_explore(properties) {
  48763. if (properties)
  48764. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48765. if (properties[keys[i]] != null)
  48766. this[keys[i]] = properties[keys[i]];
  48767. }
  48768. /**
  48769. * building_explore id.
  48770. * @member {number|Long} id
  48771. * @memberof game.building_explore
  48772. * @instance
  48773. */
  48774. building_explore.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48775. /**
  48776. * Creates a new building_explore instance using the specified properties.
  48777. * @function create
  48778. * @memberof game.building_explore
  48779. * @static
  48780. * @param {game.Ibuilding_explore=} [properties] Properties to set
  48781. * @returns {game.building_explore} building_explore instance
  48782. */
  48783. building_explore.create = function create(properties) {
  48784. return new building_explore(properties);
  48785. };
  48786. /**
  48787. * Encodes the specified building_explore message. Does not implicitly {@link game.building_explore.verify|verify} messages.
  48788. * @function encode
  48789. * @memberof game.building_explore
  48790. * @static
  48791. * @param {game.Ibuilding_explore} message building_explore message or plain object to encode
  48792. * @param {$protobuf.Writer} [writer] Writer to encode to
  48793. * @returns {$protobuf.Writer} Writer
  48794. */
  48795. building_explore.encode = function encode(message, writer) {
  48796. if (!writer)
  48797. writer = $Writer.create();
  48798. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  48799. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  48800. return writer;
  48801. };
  48802. /**
  48803. * Encodes the specified building_explore message, length delimited. Does not implicitly {@link game.building_explore.verify|verify} messages.
  48804. * @function encodeDelimited
  48805. * @memberof game.building_explore
  48806. * @static
  48807. * @param {game.Ibuilding_explore} message building_explore message or plain object to encode
  48808. * @param {$protobuf.Writer} [writer] Writer to encode to
  48809. * @returns {$protobuf.Writer} Writer
  48810. */
  48811. building_explore.encodeDelimited = function encodeDelimited(message, writer) {
  48812. return this.encode(message, writer).ldelim();
  48813. };
  48814. /**
  48815. * Decodes a building_explore message from the specified reader or buffer.
  48816. * @function decode
  48817. * @memberof game.building_explore
  48818. * @static
  48819. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48820. * @param {number} [length] Message length if known beforehand
  48821. * @returns {game.building_explore} building_explore
  48822. * @throws {Error} If the payload is not a reader or valid buffer
  48823. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48824. */
  48825. building_explore.decode = function decode(reader, length) {
  48826. if (!(reader instanceof $Reader))
  48827. reader = $Reader.create(reader);
  48828. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore();
  48829. while (reader.pos < end) {
  48830. let tag = reader.uint32();
  48831. switch (tag >>> 3) {
  48832. case 1:
  48833. message.id = reader.int64();
  48834. break;
  48835. default:
  48836. reader.skipType(tag & 7);
  48837. break;
  48838. }
  48839. }
  48840. return message;
  48841. };
  48842. /**
  48843. * Decodes a building_explore message from the specified reader or buffer, length delimited.
  48844. * @function decodeDelimited
  48845. * @memberof game.building_explore
  48846. * @static
  48847. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  48848. * @returns {game.building_explore} building_explore
  48849. * @throws {Error} If the payload is not a reader or valid buffer
  48850. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  48851. */
  48852. building_explore.decodeDelimited = function decodeDelimited(reader) {
  48853. if (!(reader instanceof $Reader))
  48854. reader = new $Reader(reader);
  48855. return this.decode(reader, reader.uint32());
  48856. };
  48857. /**
  48858. * Verifies a building_explore message.
  48859. * @function verify
  48860. * @memberof game.building_explore
  48861. * @static
  48862. * @param {Object.<string,*>} message Plain object to verify
  48863. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  48864. */
  48865. building_explore.verify = function verify(message) {
  48866. if (typeof message !== "object" || message === null)
  48867. return "object expected";
  48868. if (message.id != null && message.hasOwnProperty("id"))
  48869. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  48870. return "id: integer|Long expected";
  48871. return null;
  48872. };
  48873. /**
  48874. * Creates a building_explore message from a plain object. Also converts values to their respective internal types.
  48875. * @function fromObject
  48876. * @memberof game.building_explore
  48877. * @static
  48878. * @param {Object.<string,*>} object Plain object
  48879. * @returns {game.building_explore} building_explore
  48880. */
  48881. building_explore.fromObject = function fromObject(object) {
  48882. if (object instanceof $root.game.building_explore)
  48883. return object;
  48884. let message = new $root.game.building_explore();
  48885. if (object.id != null)
  48886. if ($util.Long)
  48887. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  48888. else if (typeof object.id === "string")
  48889. message.id = parseInt(object.id, 10);
  48890. else if (typeof object.id === "number")
  48891. message.id = object.id;
  48892. else if (typeof object.id === "object")
  48893. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  48894. return message;
  48895. };
  48896. /**
  48897. * Creates a plain object from a building_explore message. Also converts values to other types if specified.
  48898. * @function toObject
  48899. * @memberof game.building_explore
  48900. * @static
  48901. * @param {game.building_explore} message building_explore
  48902. * @param {$protobuf.IConversionOptions} [options] Conversion options
  48903. * @returns {Object.<string,*>} Plain object
  48904. */
  48905. building_explore.toObject = function toObject(message, options) {
  48906. if (!options)
  48907. options = {};
  48908. let object = {};
  48909. if (options.defaults)
  48910. if ($util.Long) {
  48911. let long = new $util.Long(0, 0, false);
  48912. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  48913. } else
  48914. object.id = options.longs === String ? "0" : 0;
  48915. if (message.id != null && message.hasOwnProperty("id"))
  48916. if (typeof message.id === "number")
  48917. object.id = options.longs === String ? String(message.id) : message.id;
  48918. else
  48919. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  48920. return object;
  48921. };
  48922. /**
  48923. * Converts this building_explore to JSON.
  48924. * @function toJSON
  48925. * @memberof game.building_explore
  48926. * @instance
  48927. * @returns {Object.<string,*>} JSON object
  48928. */
  48929. building_explore.prototype.toJSON = function toJSON() {
  48930. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  48931. };
  48932. return building_explore;
  48933. })();
  48934. game.building_explore_rsp = (function() {
  48935. /**
  48936. * Properties of a building_explore_rsp.
  48937. * @memberof game
  48938. * @interface Ibuilding_explore_rsp
  48939. * @property {number|Long|null} [errno] building_explore_rsp errno
  48940. * @property {game.Ibuilding|null} [data] building_explore_rsp data
  48941. */
  48942. /**
  48943. * Constructs a new building_explore_rsp.
  48944. * @memberof game
  48945. * @classdesc Represents a building_explore_rsp.
  48946. * @implements Ibuilding_explore_rsp
  48947. * @constructor
  48948. * @param {game.Ibuilding_explore_rsp=} [properties] Properties to set
  48949. */
  48950. function building_explore_rsp(properties) {
  48951. if (properties)
  48952. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  48953. if (properties[keys[i]] != null)
  48954. this[keys[i]] = properties[keys[i]];
  48955. }
  48956. /**
  48957. * building_explore_rsp errno.
  48958. * @member {number|Long} errno
  48959. * @memberof game.building_explore_rsp
  48960. * @instance
  48961. */
  48962. building_explore_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  48963. /**
  48964. * building_explore_rsp data.
  48965. * @member {game.Ibuilding|null|undefined} data
  48966. * @memberof game.building_explore_rsp
  48967. * @instance
  48968. */
  48969. building_explore_rsp.prototype.data = null;
  48970. /**
  48971. * Creates a new building_explore_rsp instance using the specified properties.
  48972. * @function create
  48973. * @memberof game.building_explore_rsp
  48974. * @static
  48975. * @param {game.Ibuilding_explore_rsp=} [properties] Properties to set
  48976. * @returns {game.building_explore_rsp} building_explore_rsp instance
  48977. */
  48978. building_explore_rsp.create = function create(properties) {
  48979. return new building_explore_rsp(properties);
  48980. };
  48981. /**
  48982. * Encodes the specified building_explore_rsp message. Does not implicitly {@link game.building_explore_rsp.verify|verify} messages.
  48983. * @function encode
  48984. * @memberof game.building_explore_rsp
  48985. * @static
  48986. * @param {game.Ibuilding_explore_rsp} message building_explore_rsp message or plain object to encode
  48987. * @param {$protobuf.Writer} [writer] Writer to encode to
  48988. * @returns {$protobuf.Writer} Writer
  48989. */
  48990. building_explore_rsp.encode = function encode(message, writer) {
  48991. if (!writer)
  48992. writer = $Writer.create();
  48993. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  48994. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  48995. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  48996. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  48997. return writer;
  48998. };
  48999. /**
  49000. * Encodes the specified building_explore_rsp message, length delimited. Does not implicitly {@link game.building_explore_rsp.verify|verify} messages.
  49001. * @function encodeDelimited
  49002. * @memberof game.building_explore_rsp
  49003. * @static
  49004. * @param {game.Ibuilding_explore_rsp} message building_explore_rsp message or plain object to encode
  49005. * @param {$protobuf.Writer} [writer] Writer to encode to
  49006. * @returns {$protobuf.Writer} Writer
  49007. */
  49008. building_explore_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  49009. return this.encode(message, writer).ldelim();
  49010. };
  49011. /**
  49012. * Decodes a building_explore_rsp message from the specified reader or buffer.
  49013. * @function decode
  49014. * @memberof game.building_explore_rsp
  49015. * @static
  49016. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49017. * @param {number} [length] Message length if known beforehand
  49018. * @returns {game.building_explore_rsp} building_explore_rsp
  49019. * @throws {Error} If the payload is not a reader or valid buffer
  49020. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49021. */
  49022. building_explore_rsp.decode = function decode(reader, length) {
  49023. if (!(reader instanceof $Reader))
  49024. reader = $Reader.create(reader);
  49025. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_rsp();
  49026. while (reader.pos < end) {
  49027. let tag = reader.uint32();
  49028. switch (tag >>> 3) {
  49029. case 1:
  49030. message.errno = reader.int64();
  49031. break;
  49032. case 2:
  49033. message.data = $root.game.building.decode(reader, reader.uint32());
  49034. break;
  49035. default:
  49036. reader.skipType(tag & 7);
  49037. break;
  49038. }
  49039. }
  49040. return message;
  49041. };
  49042. /**
  49043. * Decodes a building_explore_rsp message from the specified reader or buffer, length delimited.
  49044. * @function decodeDelimited
  49045. * @memberof game.building_explore_rsp
  49046. * @static
  49047. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49048. * @returns {game.building_explore_rsp} building_explore_rsp
  49049. * @throws {Error} If the payload is not a reader or valid buffer
  49050. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49051. */
  49052. building_explore_rsp.decodeDelimited = function decodeDelimited(reader) {
  49053. if (!(reader instanceof $Reader))
  49054. reader = new $Reader(reader);
  49055. return this.decode(reader, reader.uint32());
  49056. };
  49057. /**
  49058. * Verifies a building_explore_rsp message.
  49059. * @function verify
  49060. * @memberof game.building_explore_rsp
  49061. * @static
  49062. * @param {Object.<string,*>} message Plain object to verify
  49063. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49064. */
  49065. building_explore_rsp.verify = function verify(message) {
  49066. if (typeof message !== "object" || message === null)
  49067. return "object expected";
  49068. if (message.errno != null && message.hasOwnProperty("errno"))
  49069. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  49070. return "errno: integer|Long expected";
  49071. if (message.data != null && message.hasOwnProperty("data")) {
  49072. let error = $root.game.building.verify(message.data);
  49073. if (error)
  49074. return "data." + error;
  49075. }
  49076. return null;
  49077. };
  49078. /**
  49079. * Creates a building_explore_rsp message from a plain object. Also converts values to their respective internal types.
  49080. * @function fromObject
  49081. * @memberof game.building_explore_rsp
  49082. * @static
  49083. * @param {Object.<string,*>} object Plain object
  49084. * @returns {game.building_explore_rsp} building_explore_rsp
  49085. */
  49086. building_explore_rsp.fromObject = function fromObject(object) {
  49087. if (object instanceof $root.game.building_explore_rsp)
  49088. return object;
  49089. let message = new $root.game.building_explore_rsp();
  49090. if (object.errno != null)
  49091. if ($util.Long)
  49092. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  49093. else if (typeof object.errno === "string")
  49094. message.errno = parseInt(object.errno, 10);
  49095. else if (typeof object.errno === "number")
  49096. message.errno = object.errno;
  49097. else if (typeof object.errno === "object")
  49098. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  49099. if (object.data != null) {
  49100. if (typeof object.data !== "object")
  49101. throw TypeError(".game.building_explore_rsp.data: object expected");
  49102. message.data = $root.game.building.fromObject(object.data);
  49103. }
  49104. return message;
  49105. };
  49106. /**
  49107. * Creates a plain object from a building_explore_rsp message. Also converts values to other types if specified.
  49108. * @function toObject
  49109. * @memberof game.building_explore_rsp
  49110. * @static
  49111. * @param {game.building_explore_rsp} message building_explore_rsp
  49112. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49113. * @returns {Object.<string,*>} Plain object
  49114. */
  49115. building_explore_rsp.toObject = function toObject(message, options) {
  49116. if (!options)
  49117. options = {};
  49118. let object = {};
  49119. if (options.defaults) {
  49120. if ($util.Long) {
  49121. let long = new $util.Long(0, 0, false);
  49122. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49123. } else
  49124. object.errno = options.longs === String ? "0" : 0;
  49125. object.data = null;
  49126. }
  49127. if (message.errno != null && message.hasOwnProperty("errno"))
  49128. if (typeof message.errno === "number")
  49129. object.errno = options.longs === String ? String(message.errno) : message.errno;
  49130. else
  49131. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  49132. if (message.data != null && message.hasOwnProperty("data"))
  49133. object.data = $root.game.building.toObject(message.data, options);
  49134. return object;
  49135. };
  49136. /**
  49137. * Converts this building_explore_rsp to JSON.
  49138. * @function toJSON
  49139. * @memberof game.building_explore_rsp
  49140. * @instance
  49141. * @returns {Object.<string,*>} JSON object
  49142. */
  49143. building_explore_rsp.prototype.toJSON = function toJSON() {
  49144. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49145. };
  49146. return building_explore_rsp;
  49147. })();
  49148. game.building_auto_explore_award = (function() {
  49149. /**
  49150. * Properties of a building_auto_explore_award.
  49151. * @memberof game
  49152. * @interface Ibuilding_auto_explore_award
  49153. * @property {number|Long|null} [id] building_auto_explore_award id
  49154. */
  49155. /**
  49156. * Constructs a new building_auto_explore_award.
  49157. * @memberof game
  49158. * @classdesc Represents a building_auto_explore_award.
  49159. * @implements Ibuilding_auto_explore_award
  49160. * @constructor
  49161. * @param {game.Ibuilding_auto_explore_award=} [properties] Properties to set
  49162. */
  49163. function building_auto_explore_award(properties) {
  49164. if (properties)
  49165. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49166. if (properties[keys[i]] != null)
  49167. this[keys[i]] = properties[keys[i]];
  49168. }
  49169. /**
  49170. * building_auto_explore_award id.
  49171. * @member {number|Long} id
  49172. * @memberof game.building_auto_explore_award
  49173. * @instance
  49174. */
  49175. building_auto_explore_award.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49176. /**
  49177. * Creates a new building_auto_explore_award instance using the specified properties.
  49178. * @function create
  49179. * @memberof game.building_auto_explore_award
  49180. * @static
  49181. * @param {game.Ibuilding_auto_explore_award=} [properties] Properties to set
  49182. * @returns {game.building_auto_explore_award} building_auto_explore_award instance
  49183. */
  49184. building_auto_explore_award.create = function create(properties) {
  49185. return new building_auto_explore_award(properties);
  49186. };
  49187. /**
  49188. * Encodes the specified building_auto_explore_award message. Does not implicitly {@link game.building_auto_explore_award.verify|verify} messages.
  49189. * @function encode
  49190. * @memberof game.building_auto_explore_award
  49191. * @static
  49192. * @param {game.Ibuilding_auto_explore_award} message building_auto_explore_award message or plain object to encode
  49193. * @param {$protobuf.Writer} [writer] Writer to encode to
  49194. * @returns {$protobuf.Writer} Writer
  49195. */
  49196. building_auto_explore_award.encode = function encode(message, writer) {
  49197. if (!writer)
  49198. writer = $Writer.create();
  49199. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  49200. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  49201. return writer;
  49202. };
  49203. /**
  49204. * Encodes the specified building_auto_explore_award message, length delimited. Does not implicitly {@link game.building_auto_explore_award.verify|verify} messages.
  49205. * @function encodeDelimited
  49206. * @memberof game.building_auto_explore_award
  49207. * @static
  49208. * @param {game.Ibuilding_auto_explore_award} message building_auto_explore_award message or plain object to encode
  49209. * @param {$protobuf.Writer} [writer] Writer to encode to
  49210. * @returns {$protobuf.Writer} Writer
  49211. */
  49212. building_auto_explore_award.encodeDelimited = function encodeDelimited(message, writer) {
  49213. return this.encode(message, writer).ldelim();
  49214. };
  49215. /**
  49216. * Decodes a building_auto_explore_award message from the specified reader or buffer.
  49217. * @function decode
  49218. * @memberof game.building_auto_explore_award
  49219. * @static
  49220. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49221. * @param {number} [length] Message length if known beforehand
  49222. * @returns {game.building_auto_explore_award} building_auto_explore_award
  49223. * @throws {Error} If the payload is not a reader or valid buffer
  49224. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49225. */
  49226. building_auto_explore_award.decode = function decode(reader, length) {
  49227. if (!(reader instanceof $Reader))
  49228. reader = $Reader.create(reader);
  49229. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_award();
  49230. while (reader.pos < end) {
  49231. let tag = reader.uint32();
  49232. switch (tag >>> 3) {
  49233. case 1:
  49234. message.id = reader.int64();
  49235. break;
  49236. default:
  49237. reader.skipType(tag & 7);
  49238. break;
  49239. }
  49240. }
  49241. return message;
  49242. };
  49243. /**
  49244. * Decodes a building_auto_explore_award message from the specified reader or buffer, length delimited.
  49245. * @function decodeDelimited
  49246. * @memberof game.building_auto_explore_award
  49247. * @static
  49248. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49249. * @returns {game.building_auto_explore_award} building_auto_explore_award
  49250. * @throws {Error} If the payload is not a reader or valid buffer
  49251. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49252. */
  49253. building_auto_explore_award.decodeDelimited = function decodeDelimited(reader) {
  49254. if (!(reader instanceof $Reader))
  49255. reader = new $Reader(reader);
  49256. return this.decode(reader, reader.uint32());
  49257. };
  49258. /**
  49259. * Verifies a building_auto_explore_award message.
  49260. * @function verify
  49261. * @memberof game.building_auto_explore_award
  49262. * @static
  49263. * @param {Object.<string,*>} message Plain object to verify
  49264. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49265. */
  49266. building_auto_explore_award.verify = function verify(message) {
  49267. if (typeof message !== "object" || message === null)
  49268. return "object expected";
  49269. if (message.id != null && message.hasOwnProperty("id"))
  49270. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  49271. return "id: integer|Long expected";
  49272. return null;
  49273. };
  49274. /**
  49275. * Creates a building_auto_explore_award message from a plain object. Also converts values to their respective internal types.
  49276. * @function fromObject
  49277. * @memberof game.building_auto_explore_award
  49278. * @static
  49279. * @param {Object.<string,*>} object Plain object
  49280. * @returns {game.building_auto_explore_award} building_auto_explore_award
  49281. */
  49282. building_auto_explore_award.fromObject = function fromObject(object) {
  49283. if (object instanceof $root.game.building_auto_explore_award)
  49284. return object;
  49285. let message = new $root.game.building_auto_explore_award();
  49286. if (object.id != null)
  49287. if ($util.Long)
  49288. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  49289. else if (typeof object.id === "string")
  49290. message.id = parseInt(object.id, 10);
  49291. else if (typeof object.id === "number")
  49292. message.id = object.id;
  49293. else if (typeof object.id === "object")
  49294. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  49295. return message;
  49296. };
  49297. /**
  49298. * Creates a plain object from a building_auto_explore_award message. Also converts values to other types if specified.
  49299. * @function toObject
  49300. * @memberof game.building_auto_explore_award
  49301. * @static
  49302. * @param {game.building_auto_explore_award} message building_auto_explore_award
  49303. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49304. * @returns {Object.<string,*>} Plain object
  49305. */
  49306. building_auto_explore_award.toObject = function toObject(message, options) {
  49307. if (!options)
  49308. options = {};
  49309. let object = {};
  49310. if (options.defaults)
  49311. if ($util.Long) {
  49312. let long = new $util.Long(0, 0, false);
  49313. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49314. } else
  49315. object.id = options.longs === String ? "0" : 0;
  49316. if (message.id != null && message.hasOwnProperty("id"))
  49317. if (typeof message.id === "number")
  49318. object.id = options.longs === String ? String(message.id) : message.id;
  49319. else
  49320. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  49321. return object;
  49322. };
  49323. /**
  49324. * Converts this building_auto_explore_award to JSON.
  49325. * @function toJSON
  49326. * @memberof game.building_auto_explore_award
  49327. * @instance
  49328. * @returns {Object.<string,*>} JSON object
  49329. */
  49330. building_auto_explore_award.prototype.toJSON = function toJSON() {
  49331. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49332. };
  49333. return building_auto_explore_award;
  49334. })();
  49335. game.building_auto_explore_award_rsp = (function() {
  49336. /**
  49337. * Properties of a building_auto_explore_award_rsp.
  49338. * @memberof game
  49339. * @interface Ibuilding_auto_explore_award_rsp
  49340. * @property {number|Long|null} [errno] building_auto_explore_award_rsp errno
  49341. * @property {game.Ibuilding|null} [data] building_auto_explore_award_rsp data
  49342. */
  49343. /**
  49344. * Constructs a new building_auto_explore_award_rsp.
  49345. * @memberof game
  49346. * @classdesc Represents a building_auto_explore_award_rsp.
  49347. * @implements Ibuilding_auto_explore_award_rsp
  49348. * @constructor
  49349. * @param {game.Ibuilding_auto_explore_award_rsp=} [properties] Properties to set
  49350. */
  49351. function building_auto_explore_award_rsp(properties) {
  49352. if (properties)
  49353. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49354. if (properties[keys[i]] != null)
  49355. this[keys[i]] = properties[keys[i]];
  49356. }
  49357. /**
  49358. * building_auto_explore_award_rsp errno.
  49359. * @member {number|Long} errno
  49360. * @memberof game.building_auto_explore_award_rsp
  49361. * @instance
  49362. */
  49363. building_auto_explore_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49364. /**
  49365. * building_auto_explore_award_rsp data.
  49366. * @member {game.Ibuilding|null|undefined} data
  49367. * @memberof game.building_auto_explore_award_rsp
  49368. * @instance
  49369. */
  49370. building_auto_explore_award_rsp.prototype.data = null;
  49371. /**
  49372. * Creates a new building_auto_explore_award_rsp instance using the specified properties.
  49373. * @function create
  49374. * @memberof game.building_auto_explore_award_rsp
  49375. * @static
  49376. * @param {game.Ibuilding_auto_explore_award_rsp=} [properties] Properties to set
  49377. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp instance
  49378. */
  49379. building_auto_explore_award_rsp.create = function create(properties) {
  49380. return new building_auto_explore_award_rsp(properties);
  49381. };
  49382. /**
  49383. * Encodes the specified building_auto_explore_award_rsp message. Does not implicitly {@link game.building_auto_explore_award_rsp.verify|verify} messages.
  49384. * @function encode
  49385. * @memberof game.building_auto_explore_award_rsp
  49386. * @static
  49387. * @param {game.Ibuilding_auto_explore_award_rsp} message building_auto_explore_award_rsp message or plain object to encode
  49388. * @param {$protobuf.Writer} [writer] Writer to encode to
  49389. * @returns {$protobuf.Writer} Writer
  49390. */
  49391. building_auto_explore_award_rsp.encode = function encode(message, writer) {
  49392. if (!writer)
  49393. writer = $Writer.create();
  49394. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  49395. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  49396. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  49397. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  49398. return writer;
  49399. };
  49400. /**
  49401. * Encodes the specified building_auto_explore_award_rsp message, length delimited. Does not implicitly {@link game.building_auto_explore_award_rsp.verify|verify} messages.
  49402. * @function encodeDelimited
  49403. * @memberof game.building_auto_explore_award_rsp
  49404. * @static
  49405. * @param {game.Ibuilding_auto_explore_award_rsp} message building_auto_explore_award_rsp message or plain object to encode
  49406. * @param {$protobuf.Writer} [writer] Writer to encode to
  49407. * @returns {$protobuf.Writer} Writer
  49408. */
  49409. building_auto_explore_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  49410. return this.encode(message, writer).ldelim();
  49411. };
  49412. /**
  49413. * Decodes a building_auto_explore_award_rsp message from the specified reader or buffer.
  49414. * @function decode
  49415. * @memberof game.building_auto_explore_award_rsp
  49416. * @static
  49417. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49418. * @param {number} [length] Message length if known beforehand
  49419. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
  49420. * @throws {Error} If the payload is not a reader or valid buffer
  49421. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49422. */
  49423. building_auto_explore_award_rsp.decode = function decode(reader, length) {
  49424. if (!(reader instanceof $Reader))
  49425. reader = $Reader.create(reader);
  49426. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_award_rsp();
  49427. while (reader.pos < end) {
  49428. let tag = reader.uint32();
  49429. switch (tag >>> 3) {
  49430. case 1:
  49431. message.errno = reader.int64();
  49432. break;
  49433. case 2:
  49434. message.data = $root.game.building.decode(reader, reader.uint32());
  49435. break;
  49436. default:
  49437. reader.skipType(tag & 7);
  49438. break;
  49439. }
  49440. }
  49441. return message;
  49442. };
  49443. /**
  49444. * Decodes a building_auto_explore_award_rsp message from the specified reader or buffer, length delimited.
  49445. * @function decodeDelimited
  49446. * @memberof game.building_auto_explore_award_rsp
  49447. * @static
  49448. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49449. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
  49450. * @throws {Error} If the payload is not a reader or valid buffer
  49451. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49452. */
  49453. building_auto_explore_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  49454. if (!(reader instanceof $Reader))
  49455. reader = new $Reader(reader);
  49456. return this.decode(reader, reader.uint32());
  49457. };
  49458. /**
  49459. * Verifies a building_auto_explore_award_rsp message.
  49460. * @function verify
  49461. * @memberof game.building_auto_explore_award_rsp
  49462. * @static
  49463. * @param {Object.<string,*>} message Plain object to verify
  49464. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49465. */
  49466. building_auto_explore_award_rsp.verify = function verify(message) {
  49467. if (typeof message !== "object" || message === null)
  49468. return "object expected";
  49469. if (message.errno != null && message.hasOwnProperty("errno"))
  49470. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  49471. return "errno: integer|Long expected";
  49472. if (message.data != null && message.hasOwnProperty("data")) {
  49473. let error = $root.game.building.verify(message.data);
  49474. if (error)
  49475. return "data." + error;
  49476. }
  49477. return null;
  49478. };
  49479. /**
  49480. * Creates a building_auto_explore_award_rsp message from a plain object. Also converts values to their respective internal types.
  49481. * @function fromObject
  49482. * @memberof game.building_auto_explore_award_rsp
  49483. * @static
  49484. * @param {Object.<string,*>} object Plain object
  49485. * @returns {game.building_auto_explore_award_rsp} building_auto_explore_award_rsp
  49486. */
  49487. building_auto_explore_award_rsp.fromObject = function fromObject(object) {
  49488. if (object instanceof $root.game.building_auto_explore_award_rsp)
  49489. return object;
  49490. let message = new $root.game.building_auto_explore_award_rsp();
  49491. if (object.errno != null)
  49492. if ($util.Long)
  49493. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  49494. else if (typeof object.errno === "string")
  49495. message.errno = parseInt(object.errno, 10);
  49496. else if (typeof object.errno === "number")
  49497. message.errno = object.errno;
  49498. else if (typeof object.errno === "object")
  49499. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  49500. if (object.data != null) {
  49501. if (typeof object.data !== "object")
  49502. throw TypeError(".game.building_auto_explore_award_rsp.data: object expected");
  49503. message.data = $root.game.building.fromObject(object.data);
  49504. }
  49505. return message;
  49506. };
  49507. /**
  49508. * Creates a plain object from a building_auto_explore_award_rsp message. Also converts values to other types if specified.
  49509. * @function toObject
  49510. * @memberof game.building_auto_explore_award_rsp
  49511. * @static
  49512. * @param {game.building_auto_explore_award_rsp} message building_auto_explore_award_rsp
  49513. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49514. * @returns {Object.<string,*>} Plain object
  49515. */
  49516. building_auto_explore_award_rsp.toObject = function toObject(message, options) {
  49517. if (!options)
  49518. options = {};
  49519. let object = {};
  49520. if (options.defaults) {
  49521. if ($util.Long) {
  49522. let long = new $util.Long(0, 0, false);
  49523. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49524. } else
  49525. object.errno = options.longs === String ? "0" : 0;
  49526. object.data = null;
  49527. }
  49528. if (message.errno != null && message.hasOwnProperty("errno"))
  49529. if (typeof message.errno === "number")
  49530. object.errno = options.longs === String ? String(message.errno) : message.errno;
  49531. else
  49532. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  49533. if (message.data != null && message.hasOwnProperty("data"))
  49534. object.data = $root.game.building.toObject(message.data, options);
  49535. return object;
  49536. };
  49537. /**
  49538. * Converts this building_auto_explore_award_rsp to JSON.
  49539. * @function toJSON
  49540. * @memberof game.building_auto_explore_award_rsp
  49541. * @instance
  49542. * @returns {Object.<string,*>} JSON object
  49543. */
  49544. building_auto_explore_award_rsp.prototype.toJSON = function toJSON() {
  49545. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49546. };
  49547. return building_auto_explore_award_rsp;
  49548. })();
  49549. game.building_explore_battle = (function() {
  49550. /**
  49551. * Properties of a building_explore_battle.
  49552. * @memberof game
  49553. * @interface Ibuilding_explore_battle
  49554. * @property {number|Long|null} [id] building_explore_battle id
  49555. * @property {Array.<string>|null} [list] building_explore_battle list
  49556. */
  49557. /**
  49558. * Constructs a new building_explore_battle.
  49559. * @memberof game
  49560. * @classdesc Represents a building_explore_battle.
  49561. * @implements Ibuilding_explore_battle
  49562. * @constructor
  49563. * @param {game.Ibuilding_explore_battle=} [properties] Properties to set
  49564. */
  49565. function building_explore_battle(properties) {
  49566. this.list = [];
  49567. if (properties)
  49568. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49569. if (properties[keys[i]] != null)
  49570. this[keys[i]] = properties[keys[i]];
  49571. }
  49572. /**
  49573. * building_explore_battle id.
  49574. * @member {number|Long} id
  49575. * @memberof game.building_explore_battle
  49576. * @instance
  49577. */
  49578. building_explore_battle.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49579. /**
  49580. * building_explore_battle list.
  49581. * @member {Array.<string>} list
  49582. * @memberof game.building_explore_battle
  49583. * @instance
  49584. */
  49585. building_explore_battle.prototype.list = $util.emptyArray;
  49586. /**
  49587. * Creates a new building_explore_battle instance using the specified properties.
  49588. * @function create
  49589. * @memberof game.building_explore_battle
  49590. * @static
  49591. * @param {game.Ibuilding_explore_battle=} [properties] Properties to set
  49592. * @returns {game.building_explore_battle} building_explore_battle instance
  49593. */
  49594. building_explore_battle.create = function create(properties) {
  49595. return new building_explore_battle(properties);
  49596. };
  49597. /**
  49598. * Encodes the specified building_explore_battle message. Does not implicitly {@link game.building_explore_battle.verify|verify} messages.
  49599. * @function encode
  49600. * @memberof game.building_explore_battle
  49601. * @static
  49602. * @param {game.Ibuilding_explore_battle} message building_explore_battle message or plain object to encode
  49603. * @param {$protobuf.Writer} [writer] Writer to encode to
  49604. * @returns {$protobuf.Writer} Writer
  49605. */
  49606. building_explore_battle.encode = function encode(message, writer) {
  49607. if (!writer)
  49608. writer = $Writer.create();
  49609. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  49610. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  49611. if (message.list != null && message.list.length)
  49612. for (let i = 0; i < message.list.length; ++i)
  49613. writer.uint32(/* id 2, wireType 2 =*/18).string(message.list[i]);
  49614. return writer;
  49615. };
  49616. /**
  49617. * Encodes the specified building_explore_battle message, length delimited. Does not implicitly {@link game.building_explore_battle.verify|verify} messages.
  49618. * @function encodeDelimited
  49619. * @memberof game.building_explore_battle
  49620. * @static
  49621. * @param {game.Ibuilding_explore_battle} message building_explore_battle message or plain object to encode
  49622. * @param {$protobuf.Writer} [writer] Writer to encode to
  49623. * @returns {$protobuf.Writer} Writer
  49624. */
  49625. building_explore_battle.encodeDelimited = function encodeDelimited(message, writer) {
  49626. return this.encode(message, writer).ldelim();
  49627. };
  49628. /**
  49629. * Decodes a building_explore_battle message from the specified reader or buffer.
  49630. * @function decode
  49631. * @memberof game.building_explore_battle
  49632. * @static
  49633. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49634. * @param {number} [length] Message length if known beforehand
  49635. * @returns {game.building_explore_battle} building_explore_battle
  49636. * @throws {Error} If the payload is not a reader or valid buffer
  49637. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49638. */
  49639. building_explore_battle.decode = function decode(reader, length) {
  49640. if (!(reader instanceof $Reader))
  49641. reader = $Reader.create(reader);
  49642. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_battle();
  49643. while (reader.pos < end) {
  49644. let tag = reader.uint32();
  49645. switch (tag >>> 3) {
  49646. case 1:
  49647. message.id = reader.int64();
  49648. break;
  49649. case 2:
  49650. if (!(message.list && message.list.length))
  49651. message.list = [];
  49652. message.list.push(reader.string());
  49653. break;
  49654. default:
  49655. reader.skipType(tag & 7);
  49656. break;
  49657. }
  49658. }
  49659. return message;
  49660. };
  49661. /**
  49662. * Decodes a building_explore_battle message from the specified reader or buffer, length delimited.
  49663. * @function decodeDelimited
  49664. * @memberof game.building_explore_battle
  49665. * @static
  49666. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49667. * @returns {game.building_explore_battle} building_explore_battle
  49668. * @throws {Error} If the payload is not a reader or valid buffer
  49669. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49670. */
  49671. building_explore_battle.decodeDelimited = function decodeDelimited(reader) {
  49672. if (!(reader instanceof $Reader))
  49673. reader = new $Reader(reader);
  49674. return this.decode(reader, reader.uint32());
  49675. };
  49676. /**
  49677. * Verifies a building_explore_battle message.
  49678. * @function verify
  49679. * @memberof game.building_explore_battle
  49680. * @static
  49681. * @param {Object.<string,*>} message Plain object to verify
  49682. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49683. */
  49684. building_explore_battle.verify = function verify(message) {
  49685. if (typeof message !== "object" || message === null)
  49686. return "object expected";
  49687. if (message.id != null && message.hasOwnProperty("id"))
  49688. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  49689. return "id: integer|Long expected";
  49690. if (message.list != null && message.hasOwnProperty("list")) {
  49691. if (!Array.isArray(message.list))
  49692. return "list: array expected";
  49693. for (let i = 0; i < message.list.length; ++i)
  49694. if (!$util.isString(message.list[i]))
  49695. return "list: string[] expected";
  49696. }
  49697. return null;
  49698. };
  49699. /**
  49700. * Creates a building_explore_battle message from a plain object. Also converts values to their respective internal types.
  49701. * @function fromObject
  49702. * @memberof game.building_explore_battle
  49703. * @static
  49704. * @param {Object.<string,*>} object Plain object
  49705. * @returns {game.building_explore_battle} building_explore_battle
  49706. */
  49707. building_explore_battle.fromObject = function fromObject(object) {
  49708. if (object instanceof $root.game.building_explore_battle)
  49709. return object;
  49710. let message = new $root.game.building_explore_battle();
  49711. if (object.id != null)
  49712. if ($util.Long)
  49713. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  49714. else if (typeof object.id === "string")
  49715. message.id = parseInt(object.id, 10);
  49716. else if (typeof object.id === "number")
  49717. message.id = object.id;
  49718. else if (typeof object.id === "object")
  49719. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  49720. if (object.list) {
  49721. if (!Array.isArray(object.list))
  49722. throw TypeError(".game.building_explore_battle.list: array expected");
  49723. message.list = [];
  49724. for (let i = 0; i < object.list.length; ++i)
  49725. message.list[i] = String(object.list[i]);
  49726. }
  49727. return message;
  49728. };
  49729. /**
  49730. * Creates a plain object from a building_explore_battle message. Also converts values to other types if specified.
  49731. * @function toObject
  49732. * @memberof game.building_explore_battle
  49733. * @static
  49734. * @param {game.building_explore_battle} message building_explore_battle
  49735. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49736. * @returns {Object.<string,*>} Plain object
  49737. */
  49738. building_explore_battle.toObject = function toObject(message, options) {
  49739. if (!options)
  49740. options = {};
  49741. let object = {};
  49742. if (options.arrays || options.defaults)
  49743. object.list = [];
  49744. if (options.defaults)
  49745. if ($util.Long) {
  49746. let long = new $util.Long(0, 0, false);
  49747. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49748. } else
  49749. object.id = options.longs === String ? "0" : 0;
  49750. if (message.id != null && message.hasOwnProperty("id"))
  49751. if (typeof message.id === "number")
  49752. object.id = options.longs === String ? String(message.id) : message.id;
  49753. else
  49754. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  49755. if (message.list && message.list.length) {
  49756. object.list = [];
  49757. for (let j = 0; j < message.list.length; ++j)
  49758. object.list[j] = message.list[j];
  49759. }
  49760. return object;
  49761. };
  49762. /**
  49763. * Converts this building_explore_battle to JSON.
  49764. * @function toJSON
  49765. * @memberof game.building_explore_battle
  49766. * @instance
  49767. * @returns {Object.<string,*>} JSON object
  49768. */
  49769. building_explore_battle.prototype.toJSON = function toJSON() {
  49770. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49771. };
  49772. return building_explore_battle;
  49773. })();
  49774. game.building_explore_battle_rsp = (function() {
  49775. /**
  49776. * Properties of a building_explore_battle_rsp.
  49777. * @memberof game
  49778. * @interface Ibuilding_explore_battle_rsp
  49779. * @property {number|Long|null} [errno] building_explore_battle_rsp errno
  49780. * @property {game.Ibuilding|null} [data] building_explore_battle_rsp data
  49781. */
  49782. /**
  49783. * Constructs a new building_explore_battle_rsp.
  49784. * @memberof game
  49785. * @classdesc Represents a building_explore_battle_rsp.
  49786. * @implements Ibuilding_explore_battle_rsp
  49787. * @constructor
  49788. * @param {game.Ibuilding_explore_battle_rsp=} [properties] Properties to set
  49789. */
  49790. function building_explore_battle_rsp(properties) {
  49791. if (properties)
  49792. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  49793. if (properties[keys[i]] != null)
  49794. this[keys[i]] = properties[keys[i]];
  49795. }
  49796. /**
  49797. * building_explore_battle_rsp errno.
  49798. * @member {number|Long} errno
  49799. * @memberof game.building_explore_battle_rsp
  49800. * @instance
  49801. */
  49802. building_explore_battle_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  49803. /**
  49804. * building_explore_battle_rsp data.
  49805. * @member {game.Ibuilding|null|undefined} data
  49806. * @memberof game.building_explore_battle_rsp
  49807. * @instance
  49808. */
  49809. building_explore_battle_rsp.prototype.data = null;
  49810. /**
  49811. * Creates a new building_explore_battle_rsp instance using the specified properties.
  49812. * @function create
  49813. * @memberof game.building_explore_battle_rsp
  49814. * @static
  49815. * @param {game.Ibuilding_explore_battle_rsp=} [properties] Properties to set
  49816. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp instance
  49817. */
  49818. building_explore_battle_rsp.create = function create(properties) {
  49819. return new building_explore_battle_rsp(properties);
  49820. };
  49821. /**
  49822. * Encodes the specified building_explore_battle_rsp message. Does not implicitly {@link game.building_explore_battle_rsp.verify|verify} messages.
  49823. * @function encode
  49824. * @memberof game.building_explore_battle_rsp
  49825. * @static
  49826. * @param {game.Ibuilding_explore_battle_rsp} message building_explore_battle_rsp message or plain object to encode
  49827. * @param {$protobuf.Writer} [writer] Writer to encode to
  49828. * @returns {$protobuf.Writer} Writer
  49829. */
  49830. building_explore_battle_rsp.encode = function encode(message, writer) {
  49831. if (!writer)
  49832. writer = $Writer.create();
  49833. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  49834. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  49835. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  49836. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  49837. return writer;
  49838. };
  49839. /**
  49840. * Encodes the specified building_explore_battle_rsp message, length delimited. Does not implicitly {@link game.building_explore_battle_rsp.verify|verify} messages.
  49841. * @function encodeDelimited
  49842. * @memberof game.building_explore_battle_rsp
  49843. * @static
  49844. * @param {game.Ibuilding_explore_battle_rsp} message building_explore_battle_rsp message or plain object to encode
  49845. * @param {$protobuf.Writer} [writer] Writer to encode to
  49846. * @returns {$protobuf.Writer} Writer
  49847. */
  49848. building_explore_battle_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  49849. return this.encode(message, writer).ldelim();
  49850. };
  49851. /**
  49852. * Decodes a building_explore_battle_rsp message from the specified reader or buffer.
  49853. * @function decode
  49854. * @memberof game.building_explore_battle_rsp
  49855. * @static
  49856. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49857. * @param {number} [length] Message length if known beforehand
  49858. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
  49859. * @throws {Error} If the payload is not a reader or valid buffer
  49860. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49861. */
  49862. building_explore_battle_rsp.decode = function decode(reader, length) {
  49863. if (!(reader instanceof $Reader))
  49864. reader = $Reader.create(reader);
  49865. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_explore_battle_rsp();
  49866. while (reader.pos < end) {
  49867. let tag = reader.uint32();
  49868. switch (tag >>> 3) {
  49869. case 1:
  49870. message.errno = reader.int64();
  49871. break;
  49872. case 2:
  49873. message.data = $root.game.building.decode(reader, reader.uint32());
  49874. break;
  49875. default:
  49876. reader.skipType(tag & 7);
  49877. break;
  49878. }
  49879. }
  49880. return message;
  49881. };
  49882. /**
  49883. * Decodes a building_explore_battle_rsp message from the specified reader or buffer, length delimited.
  49884. * @function decodeDelimited
  49885. * @memberof game.building_explore_battle_rsp
  49886. * @static
  49887. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  49888. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
  49889. * @throws {Error} If the payload is not a reader or valid buffer
  49890. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  49891. */
  49892. building_explore_battle_rsp.decodeDelimited = function decodeDelimited(reader) {
  49893. if (!(reader instanceof $Reader))
  49894. reader = new $Reader(reader);
  49895. return this.decode(reader, reader.uint32());
  49896. };
  49897. /**
  49898. * Verifies a building_explore_battle_rsp message.
  49899. * @function verify
  49900. * @memberof game.building_explore_battle_rsp
  49901. * @static
  49902. * @param {Object.<string,*>} message Plain object to verify
  49903. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  49904. */
  49905. building_explore_battle_rsp.verify = function verify(message) {
  49906. if (typeof message !== "object" || message === null)
  49907. return "object expected";
  49908. if (message.errno != null && message.hasOwnProperty("errno"))
  49909. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  49910. return "errno: integer|Long expected";
  49911. if (message.data != null && message.hasOwnProperty("data")) {
  49912. let error = $root.game.building.verify(message.data);
  49913. if (error)
  49914. return "data." + error;
  49915. }
  49916. return null;
  49917. };
  49918. /**
  49919. * Creates a building_explore_battle_rsp message from a plain object. Also converts values to their respective internal types.
  49920. * @function fromObject
  49921. * @memberof game.building_explore_battle_rsp
  49922. * @static
  49923. * @param {Object.<string,*>} object Plain object
  49924. * @returns {game.building_explore_battle_rsp} building_explore_battle_rsp
  49925. */
  49926. building_explore_battle_rsp.fromObject = function fromObject(object) {
  49927. if (object instanceof $root.game.building_explore_battle_rsp)
  49928. return object;
  49929. let message = new $root.game.building_explore_battle_rsp();
  49930. if (object.errno != null)
  49931. if ($util.Long)
  49932. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  49933. else if (typeof object.errno === "string")
  49934. message.errno = parseInt(object.errno, 10);
  49935. else if (typeof object.errno === "number")
  49936. message.errno = object.errno;
  49937. else if (typeof object.errno === "object")
  49938. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  49939. if (object.data != null) {
  49940. if (typeof object.data !== "object")
  49941. throw TypeError(".game.building_explore_battle_rsp.data: object expected");
  49942. message.data = $root.game.building.fromObject(object.data);
  49943. }
  49944. return message;
  49945. };
  49946. /**
  49947. * Creates a plain object from a building_explore_battle_rsp message. Also converts values to other types if specified.
  49948. * @function toObject
  49949. * @memberof game.building_explore_battle_rsp
  49950. * @static
  49951. * @param {game.building_explore_battle_rsp} message building_explore_battle_rsp
  49952. * @param {$protobuf.IConversionOptions} [options] Conversion options
  49953. * @returns {Object.<string,*>} Plain object
  49954. */
  49955. building_explore_battle_rsp.toObject = function toObject(message, options) {
  49956. if (!options)
  49957. options = {};
  49958. let object = {};
  49959. if (options.defaults) {
  49960. if ($util.Long) {
  49961. let long = new $util.Long(0, 0, false);
  49962. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  49963. } else
  49964. object.errno = options.longs === String ? "0" : 0;
  49965. object.data = null;
  49966. }
  49967. if (message.errno != null && message.hasOwnProperty("errno"))
  49968. if (typeof message.errno === "number")
  49969. object.errno = options.longs === String ? String(message.errno) : message.errno;
  49970. else
  49971. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  49972. if (message.data != null && message.hasOwnProperty("data"))
  49973. object.data = $root.game.building.toObject(message.data, options);
  49974. return object;
  49975. };
  49976. /**
  49977. * Converts this building_explore_battle_rsp to JSON.
  49978. * @function toJSON
  49979. * @memberof game.building_explore_battle_rsp
  49980. * @instance
  49981. * @returns {Object.<string,*>} JSON object
  49982. */
  49983. building_explore_battle_rsp.prototype.toJSON = function toJSON() {
  49984. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  49985. };
  49986. return building_explore_battle_rsp;
  49987. })();
  49988. game.building_auto_explore_option = (function() {
  49989. /**
  49990. * Properties of a building_auto_explore_option.
  49991. * @memberof game
  49992. * @interface Ibuilding_auto_explore_option
  49993. * @property {number|Long|null} [id] building_auto_explore_option id
  49994. * @property {boolean|null} [open] building_auto_explore_option open
  49995. */
  49996. /**
  49997. * Constructs a new building_auto_explore_option.
  49998. * @memberof game
  49999. * @classdesc Represents a building_auto_explore_option.
  50000. * @implements Ibuilding_auto_explore_option
  50001. * @constructor
  50002. * @param {game.Ibuilding_auto_explore_option=} [properties] Properties to set
  50003. */
  50004. function building_auto_explore_option(properties) {
  50005. if (properties)
  50006. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50007. if (properties[keys[i]] != null)
  50008. this[keys[i]] = properties[keys[i]];
  50009. }
  50010. /**
  50011. * building_auto_explore_option id.
  50012. * @member {number|Long} id
  50013. * @memberof game.building_auto_explore_option
  50014. * @instance
  50015. */
  50016. building_auto_explore_option.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50017. /**
  50018. * building_auto_explore_option open.
  50019. * @member {boolean} open
  50020. * @memberof game.building_auto_explore_option
  50021. * @instance
  50022. */
  50023. building_auto_explore_option.prototype.open = false;
  50024. /**
  50025. * Creates a new building_auto_explore_option instance using the specified properties.
  50026. * @function create
  50027. * @memberof game.building_auto_explore_option
  50028. * @static
  50029. * @param {game.Ibuilding_auto_explore_option=} [properties] Properties to set
  50030. * @returns {game.building_auto_explore_option} building_auto_explore_option instance
  50031. */
  50032. building_auto_explore_option.create = function create(properties) {
  50033. return new building_auto_explore_option(properties);
  50034. };
  50035. /**
  50036. * Encodes the specified building_auto_explore_option message. Does not implicitly {@link game.building_auto_explore_option.verify|verify} messages.
  50037. * @function encode
  50038. * @memberof game.building_auto_explore_option
  50039. * @static
  50040. * @param {game.Ibuilding_auto_explore_option} message building_auto_explore_option message or plain object to encode
  50041. * @param {$protobuf.Writer} [writer] Writer to encode to
  50042. * @returns {$protobuf.Writer} Writer
  50043. */
  50044. building_auto_explore_option.encode = function encode(message, writer) {
  50045. if (!writer)
  50046. writer = $Writer.create();
  50047. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  50048. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  50049. if (message.open != null && Object.hasOwnProperty.call(message, "open"))
  50050. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.open);
  50051. return writer;
  50052. };
  50053. /**
  50054. * Encodes the specified building_auto_explore_option message, length delimited. Does not implicitly {@link game.building_auto_explore_option.verify|verify} messages.
  50055. * @function encodeDelimited
  50056. * @memberof game.building_auto_explore_option
  50057. * @static
  50058. * @param {game.Ibuilding_auto_explore_option} message building_auto_explore_option message or plain object to encode
  50059. * @param {$protobuf.Writer} [writer] Writer to encode to
  50060. * @returns {$protobuf.Writer} Writer
  50061. */
  50062. building_auto_explore_option.encodeDelimited = function encodeDelimited(message, writer) {
  50063. return this.encode(message, writer).ldelim();
  50064. };
  50065. /**
  50066. * Decodes a building_auto_explore_option message from the specified reader or buffer.
  50067. * @function decode
  50068. * @memberof game.building_auto_explore_option
  50069. * @static
  50070. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50071. * @param {number} [length] Message length if known beforehand
  50072. * @returns {game.building_auto_explore_option} building_auto_explore_option
  50073. * @throws {Error} If the payload is not a reader or valid buffer
  50074. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50075. */
  50076. building_auto_explore_option.decode = function decode(reader, length) {
  50077. if (!(reader instanceof $Reader))
  50078. reader = $Reader.create(reader);
  50079. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_option();
  50080. while (reader.pos < end) {
  50081. let tag = reader.uint32();
  50082. switch (tag >>> 3) {
  50083. case 1:
  50084. message.id = reader.int64();
  50085. break;
  50086. case 2:
  50087. message.open = reader.bool();
  50088. break;
  50089. default:
  50090. reader.skipType(tag & 7);
  50091. break;
  50092. }
  50093. }
  50094. return message;
  50095. };
  50096. /**
  50097. * Decodes a building_auto_explore_option message from the specified reader or buffer, length delimited.
  50098. * @function decodeDelimited
  50099. * @memberof game.building_auto_explore_option
  50100. * @static
  50101. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50102. * @returns {game.building_auto_explore_option} building_auto_explore_option
  50103. * @throws {Error} If the payload is not a reader or valid buffer
  50104. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50105. */
  50106. building_auto_explore_option.decodeDelimited = function decodeDelimited(reader) {
  50107. if (!(reader instanceof $Reader))
  50108. reader = new $Reader(reader);
  50109. return this.decode(reader, reader.uint32());
  50110. };
  50111. /**
  50112. * Verifies a building_auto_explore_option message.
  50113. * @function verify
  50114. * @memberof game.building_auto_explore_option
  50115. * @static
  50116. * @param {Object.<string,*>} message Plain object to verify
  50117. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50118. */
  50119. building_auto_explore_option.verify = function verify(message) {
  50120. if (typeof message !== "object" || message === null)
  50121. return "object expected";
  50122. if (message.id != null && message.hasOwnProperty("id"))
  50123. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  50124. return "id: integer|Long expected";
  50125. if (message.open != null && message.hasOwnProperty("open"))
  50126. if (typeof message.open !== "boolean")
  50127. return "open: boolean expected";
  50128. return null;
  50129. };
  50130. /**
  50131. * Creates a building_auto_explore_option message from a plain object. Also converts values to their respective internal types.
  50132. * @function fromObject
  50133. * @memberof game.building_auto_explore_option
  50134. * @static
  50135. * @param {Object.<string,*>} object Plain object
  50136. * @returns {game.building_auto_explore_option} building_auto_explore_option
  50137. */
  50138. building_auto_explore_option.fromObject = function fromObject(object) {
  50139. if (object instanceof $root.game.building_auto_explore_option)
  50140. return object;
  50141. let message = new $root.game.building_auto_explore_option();
  50142. if (object.id != null)
  50143. if ($util.Long)
  50144. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  50145. else if (typeof object.id === "string")
  50146. message.id = parseInt(object.id, 10);
  50147. else if (typeof object.id === "number")
  50148. message.id = object.id;
  50149. else if (typeof object.id === "object")
  50150. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  50151. if (object.open != null)
  50152. message.open = Boolean(object.open);
  50153. return message;
  50154. };
  50155. /**
  50156. * Creates a plain object from a building_auto_explore_option message. Also converts values to other types if specified.
  50157. * @function toObject
  50158. * @memberof game.building_auto_explore_option
  50159. * @static
  50160. * @param {game.building_auto_explore_option} message building_auto_explore_option
  50161. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50162. * @returns {Object.<string,*>} Plain object
  50163. */
  50164. building_auto_explore_option.toObject = function toObject(message, options) {
  50165. if (!options)
  50166. options = {};
  50167. let object = {};
  50168. if (options.defaults) {
  50169. if ($util.Long) {
  50170. let long = new $util.Long(0, 0, false);
  50171. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50172. } else
  50173. object.id = options.longs === String ? "0" : 0;
  50174. object.open = false;
  50175. }
  50176. if (message.id != null && message.hasOwnProperty("id"))
  50177. if (typeof message.id === "number")
  50178. object.id = options.longs === String ? String(message.id) : message.id;
  50179. else
  50180. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  50181. if (message.open != null && message.hasOwnProperty("open"))
  50182. object.open = message.open;
  50183. return object;
  50184. };
  50185. /**
  50186. * Converts this building_auto_explore_option to JSON.
  50187. * @function toJSON
  50188. * @memberof game.building_auto_explore_option
  50189. * @instance
  50190. * @returns {Object.<string,*>} JSON object
  50191. */
  50192. building_auto_explore_option.prototype.toJSON = function toJSON() {
  50193. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50194. };
  50195. return building_auto_explore_option;
  50196. })();
  50197. game.building_auto_explore_option_rsp = (function() {
  50198. /**
  50199. * Properties of a building_auto_explore_option_rsp.
  50200. * @memberof game
  50201. * @interface Ibuilding_auto_explore_option_rsp
  50202. * @property {number|Long|null} [errno] building_auto_explore_option_rsp errno
  50203. * @property {game.Ibuilding|null} [data] building_auto_explore_option_rsp data
  50204. */
  50205. /**
  50206. * Constructs a new building_auto_explore_option_rsp.
  50207. * @memberof game
  50208. * @classdesc Represents a building_auto_explore_option_rsp.
  50209. * @implements Ibuilding_auto_explore_option_rsp
  50210. * @constructor
  50211. * @param {game.Ibuilding_auto_explore_option_rsp=} [properties] Properties to set
  50212. */
  50213. function building_auto_explore_option_rsp(properties) {
  50214. if (properties)
  50215. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50216. if (properties[keys[i]] != null)
  50217. this[keys[i]] = properties[keys[i]];
  50218. }
  50219. /**
  50220. * building_auto_explore_option_rsp errno.
  50221. * @member {number|Long} errno
  50222. * @memberof game.building_auto_explore_option_rsp
  50223. * @instance
  50224. */
  50225. building_auto_explore_option_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50226. /**
  50227. * building_auto_explore_option_rsp data.
  50228. * @member {game.Ibuilding|null|undefined} data
  50229. * @memberof game.building_auto_explore_option_rsp
  50230. * @instance
  50231. */
  50232. building_auto_explore_option_rsp.prototype.data = null;
  50233. /**
  50234. * Creates a new building_auto_explore_option_rsp instance using the specified properties.
  50235. * @function create
  50236. * @memberof game.building_auto_explore_option_rsp
  50237. * @static
  50238. * @param {game.Ibuilding_auto_explore_option_rsp=} [properties] Properties to set
  50239. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp instance
  50240. */
  50241. building_auto_explore_option_rsp.create = function create(properties) {
  50242. return new building_auto_explore_option_rsp(properties);
  50243. };
  50244. /**
  50245. * Encodes the specified building_auto_explore_option_rsp message. Does not implicitly {@link game.building_auto_explore_option_rsp.verify|verify} messages.
  50246. * @function encode
  50247. * @memberof game.building_auto_explore_option_rsp
  50248. * @static
  50249. * @param {game.Ibuilding_auto_explore_option_rsp} message building_auto_explore_option_rsp message or plain object to encode
  50250. * @param {$protobuf.Writer} [writer] Writer to encode to
  50251. * @returns {$protobuf.Writer} Writer
  50252. */
  50253. building_auto_explore_option_rsp.encode = function encode(message, writer) {
  50254. if (!writer)
  50255. writer = $Writer.create();
  50256. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  50257. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  50258. if (message.data != null && Object.hasOwnProperty.call(message, "data"))
  50259. $root.game.building.encode(message.data, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  50260. return writer;
  50261. };
  50262. /**
  50263. * Encodes the specified building_auto_explore_option_rsp message, length delimited. Does not implicitly {@link game.building_auto_explore_option_rsp.verify|verify} messages.
  50264. * @function encodeDelimited
  50265. * @memberof game.building_auto_explore_option_rsp
  50266. * @static
  50267. * @param {game.Ibuilding_auto_explore_option_rsp} message building_auto_explore_option_rsp message or plain object to encode
  50268. * @param {$protobuf.Writer} [writer] Writer to encode to
  50269. * @returns {$protobuf.Writer} Writer
  50270. */
  50271. building_auto_explore_option_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  50272. return this.encode(message, writer).ldelim();
  50273. };
  50274. /**
  50275. * Decodes a building_auto_explore_option_rsp message from the specified reader or buffer.
  50276. * @function decode
  50277. * @memberof game.building_auto_explore_option_rsp
  50278. * @static
  50279. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50280. * @param {number} [length] Message length if known beforehand
  50281. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
  50282. * @throws {Error} If the payload is not a reader or valid buffer
  50283. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50284. */
  50285. building_auto_explore_option_rsp.decode = function decode(reader, length) {
  50286. if (!(reader instanceof $Reader))
  50287. reader = $Reader.create(reader);
  50288. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building_auto_explore_option_rsp();
  50289. while (reader.pos < end) {
  50290. let tag = reader.uint32();
  50291. switch (tag >>> 3) {
  50292. case 1:
  50293. message.errno = reader.int64();
  50294. break;
  50295. case 2:
  50296. message.data = $root.game.building.decode(reader, reader.uint32());
  50297. break;
  50298. default:
  50299. reader.skipType(tag & 7);
  50300. break;
  50301. }
  50302. }
  50303. return message;
  50304. };
  50305. /**
  50306. * Decodes a building_auto_explore_option_rsp message from the specified reader or buffer, length delimited.
  50307. * @function decodeDelimited
  50308. * @memberof game.building_auto_explore_option_rsp
  50309. * @static
  50310. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50311. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
  50312. * @throws {Error} If the payload is not a reader or valid buffer
  50313. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50314. */
  50315. building_auto_explore_option_rsp.decodeDelimited = function decodeDelimited(reader) {
  50316. if (!(reader instanceof $Reader))
  50317. reader = new $Reader(reader);
  50318. return this.decode(reader, reader.uint32());
  50319. };
  50320. /**
  50321. * Verifies a building_auto_explore_option_rsp message.
  50322. * @function verify
  50323. * @memberof game.building_auto_explore_option_rsp
  50324. * @static
  50325. * @param {Object.<string,*>} message Plain object to verify
  50326. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50327. */
  50328. building_auto_explore_option_rsp.verify = function verify(message) {
  50329. if (typeof message !== "object" || message === null)
  50330. return "object expected";
  50331. if (message.errno != null && message.hasOwnProperty("errno"))
  50332. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  50333. return "errno: integer|Long expected";
  50334. if (message.data != null && message.hasOwnProperty("data")) {
  50335. let error = $root.game.building.verify(message.data);
  50336. if (error)
  50337. return "data." + error;
  50338. }
  50339. return null;
  50340. };
  50341. /**
  50342. * Creates a building_auto_explore_option_rsp message from a plain object. Also converts values to their respective internal types.
  50343. * @function fromObject
  50344. * @memberof game.building_auto_explore_option_rsp
  50345. * @static
  50346. * @param {Object.<string,*>} object Plain object
  50347. * @returns {game.building_auto_explore_option_rsp} building_auto_explore_option_rsp
  50348. */
  50349. building_auto_explore_option_rsp.fromObject = function fromObject(object) {
  50350. if (object instanceof $root.game.building_auto_explore_option_rsp)
  50351. return object;
  50352. let message = new $root.game.building_auto_explore_option_rsp();
  50353. if (object.errno != null)
  50354. if ($util.Long)
  50355. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  50356. else if (typeof object.errno === "string")
  50357. message.errno = parseInt(object.errno, 10);
  50358. else if (typeof object.errno === "number")
  50359. message.errno = object.errno;
  50360. else if (typeof object.errno === "object")
  50361. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  50362. if (object.data != null) {
  50363. if (typeof object.data !== "object")
  50364. throw TypeError(".game.building_auto_explore_option_rsp.data: object expected");
  50365. message.data = $root.game.building.fromObject(object.data);
  50366. }
  50367. return message;
  50368. };
  50369. /**
  50370. * Creates a plain object from a building_auto_explore_option_rsp message. Also converts values to other types if specified.
  50371. * @function toObject
  50372. * @memberof game.building_auto_explore_option_rsp
  50373. * @static
  50374. * @param {game.building_auto_explore_option_rsp} message building_auto_explore_option_rsp
  50375. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50376. * @returns {Object.<string,*>} Plain object
  50377. */
  50378. building_auto_explore_option_rsp.toObject = function toObject(message, options) {
  50379. if (!options)
  50380. options = {};
  50381. let object = {};
  50382. if (options.defaults) {
  50383. if ($util.Long) {
  50384. let long = new $util.Long(0, 0, false);
  50385. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50386. } else
  50387. object.errno = options.longs === String ? "0" : 0;
  50388. object.data = null;
  50389. }
  50390. if (message.errno != null && message.hasOwnProperty("errno"))
  50391. if (typeof message.errno === "number")
  50392. object.errno = options.longs === String ? String(message.errno) : message.errno;
  50393. else
  50394. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  50395. if (message.data != null && message.hasOwnProperty("data"))
  50396. object.data = $root.game.building.toObject(message.data, options);
  50397. return object;
  50398. };
  50399. /**
  50400. * Converts this building_auto_explore_option_rsp to JSON.
  50401. * @function toJSON
  50402. * @memberof game.building_auto_explore_option_rsp
  50403. * @instance
  50404. * @returns {Object.<string,*>} JSON object
  50405. */
  50406. building_auto_explore_option_rsp.prototype.toJSON = function toJSON() {
  50407. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50408. };
  50409. return building_auto_explore_option_rsp;
  50410. })();
  50411. game.level_gift_data = (function() {
  50412. /**
  50413. * Properties of a level_gift_data.
  50414. * @memberof game
  50415. * @interface Ilevel_gift_data
  50416. */
  50417. /**
  50418. * Constructs a new level_gift_data.
  50419. * @memberof game
  50420. * @classdesc Represents a level_gift_data.
  50421. * @implements Ilevel_gift_data
  50422. * @constructor
  50423. * @param {game.Ilevel_gift_data=} [properties] Properties to set
  50424. */
  50425. function level_gift_data(properties) {
  50426. if (properties)
  50427. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50428. if (properties[keys[i]] != null)
  50429. this[keys[i]] = properties[keys[i]];
  50430. }
  50431. /**
  50432. * Creates a new level_gift_data instance using the specified properties.
  50433. * @function create
  50434. * @memberof game.level_gift_data
  50435. * @static
  50436. * @param {game.Ilevel_gift_data=} [properties] Properties to set
  50437. * @returns {game.level_gift_data} level_gift_data instance
  50438. */
  50439. level_gift_data.create = function create(properties) {
  50440. return new level_gift_data(properties);
  50441. };
  50442. /**
  50443. * Encodes the specified level_gift_data message. Does not implicitly {@link game.level_gift_data.verify|verify} messages.
  50444. * @function encode
  50445. * @memberof game.level_gift_data
  50446. * @static
  50447. * @param {game.Ilevel_gift_data} message level_gift_data message or plain object to encode
  50448. * @param {$protobuf.Writer} [writer] Writer to encode to
  50449. * @returns {$protobuf.Writer} Writer
  50450. */
  50451. level_gift_data.encode = function encode(message, writer) {
  50452. if (!writer)
  50453. writer = $Writer.create();
  50454. return writer;
  50455. };
  50456. /**
  50457. * Encodes the specified level_gift_data message, length delimited. Does not implicitly {@link game.level_gift_data.verify|verify} messages.
  50458. * @function encodeDelimited
  50459. * @memberof game.level_gift_data
  50460. * @static
  50461. * @param {game.Ilevel_gift_data} message level_gift_data message or plain object to encode
  50462. * @param {$protobuf.Writer} [writer] Writer to encode to
  50463. * @returns {$protobuf.Writer} Writer
  50464. */
  50465. level_gift_data.encodeDelimited = function encodeDelimited(message, writer) {
  50466. return this.encode(message, writer).ldelim();
  50467. };
  50468. /**
  50469. * Decodes a level_gift_data message from the specified reader or buffer.
  50470. * @function decode
  50471. * @memberof game.level_gift_data
  50472. * @static
  50473. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50474. * @param {number} [length] Message length if known beforehand
  50475. * @returns {game.level_gift_data} level_gift_data
  50476. * @throws {Error} If the payload is not a reader or valid buffer
  50477. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50478. */
  50479. level_gift_data.decode = function decode(reader, length) {
  50480. if (!(reader instanceof $Reader))
  50481. reader = $Reader.create(reader);
  50482. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_data();
  50483. while (reader.pos < end) {
  50484. let tag = reader.uint32();
  50485. switch (tag >>> 3) {
  50486. default:
  50487. reader.skipType(tag & 7);
  50488. break;
  50489. }
  50490. }
  50491. return message;
  50492. };
  50493. /**
  50494. * Decodes a level_gift_data message from the specified reader or buffer, length delimited.
  50495. * @function decodeDelimited
  50496. * @memberof game.level_gift_data
  50497. * @static
  50498. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50499. * @returns {game.level_gift_data} level_gift_data
  50500. * @throws {Error} If the payload is not a reader or valid buffer
  50501. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50502. */
  50503. level_gift_data.decodeDelimited = function decodeDelimited(reader) {
  50504. if (!(reader instanceof $Reader))
  50505. reader = new $Reader(reader);
  50506. return this.decode(reader, reader.uint32());
  50507. };
  50508. /**
  50509. * Verifies a level_gift_data message.
  50510. * @function verify
  50511. * @memberof game.level_gift_data
  50512. * @static
  50513. * @param {Object.<string,*>} message Plain object to verify
  50514. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50515. */
  50516. level_gift_data.verify = function verify(message) {
  50517. if (typeof message !== "object" || message === null)
  50518. return "object expected";
  50519. return null;
  50520. };
  50521. /**
  50522. * Creates a level_gift_data message from a plain object. Also converts values to their respective internal types.
  50523. * @function fromObject
  50524. * @memberof game.level_gift_data
  50525. * @static
  50526. * @param {Object.<string,*>} object Plain object
  50527. * @returns {game.level_gift_data} level_gift_data
  50528. */
  50529. level_gift_data.fromObject = function fromObject(object) {
  50530. if (object instanceof $root.game.level_gift_data)
  50531. return object;
  50532. return new $root.game.level_gift_data();
  50533. };
  50534. /**
  50535. * Creates a plain object from a level_gift_data message. Also converts values to other types if specified.
  50536. * @function toObject
  50537. * @memberof game.level_gift_data
  50538. * @static
  50539. * @param {game.level_gift_data} message level_gift_data
  50540. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50541. * @returns {Object.<string,*>} Plain object
  50542. */
  50543. level_gift_data.toObject = function toObject() {
  50544. return {};
  50545. };
  50546. /**
  50547. * Converts this level_gift_data to JSON.
  50548. * @function toJSON
  50549. * @memberof game.level_gift_data
  50550. * @instance
  50551. * @returns {Object.<string,*>} JSON object
  50552. */
  50553. level_gift_data.prototype.toJSON = function toJSON() {
  50554. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50555. };
  50556. return level_gift_data;
  50557. })();
  50558. game.level_gift_data_rsp = (function() {
  50559. /**
  50560. * Properties of a level_gift_data_rsp.
  50561. * @memberof game
  50562. * @interface Ilevel_gift_data_rsp
  50563. * @property {number|Long|null} [errno] level_gift_data_rsp errno
  50564. */
  50565. /**
  50566. * Constructs a new level_gift_data_rsp.
  50567. * @memberof game
  50568. * @classdesc Represents a level_gift_data_rsp.
  50569. * @implements Ilevel_gift_data_rsp
  50570. * @constructor
  50571. * @param {game.Ilevel_gift_data_rsp=} [properties] Properties to set
  50572. */
  50573. function level_gift_data_rsp(properties) {
  50574. if (properties)
  50575. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50576. if (properties[keys[i]] != null)
  50577. this[keys[i]] = properties[keys[i]];
  50578. }
  50579. /**
  50580. * level_gift_data_rsp errno.
  50581. * @member {number|Long} errno
  50582. * @memberof game.level_gift_data_rsp
  50583. * @instance
  50584. */
  50585. level_gift_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50586. /**
  50587. * Creates a new level_gift_data_rsp instance using the specified properties.
  50588. * @function create
  50589. * @memberof game.level_gift_data_rsp
  50590. * @static
  50591. * @param {game.Ilevel_gift_data_rsp=} [properties] Properties to set
  50592. * @returns {game.level_gift_data_rsp} level_gift_data_rsp instance
  50593. */
  50594. level_gift_data_rsp.create = function create(properties) {
  50595. return new level_gift_data_rsp(properties);
  50596. };
  50597. /**
  50598. * Encodes the specified level_gift_data_rsp message. Does not implicitly {@link game.level_gift_data_rsp.verify|verify} messages.
  50599. * @function encode
  50600. * @memberof game.level_gift_data_rsp
  50601. * @static
  50602. * @param {game.Ilevel_gift_data_rsp} message level_gift_data_rsp message or plain object to encode
  50603. * @param {$protobuf.Writer} [writer] Writer to encode to
  50604. * @returns {$protobuf.Writer} Writer
  50605. */
  50606. level_gift_data_rsp.encode = function encode(message, writer) {
  50607. if (!writer)
  50608. writer = $Writer.create();
  50609. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  50610. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  50611. return writer;
  50612. };
  50613. /**
  50614. * Encodes the specified level_gift_data_rsp message, length delimited. Does not implicitly {@link game.level_gift_data_rsp.verify|verify} messages.
  50615. * @function encodeDelimited
  50616. * @memberof game.level_gift_data_rsp
  50617. * @static
  50618. * @param {game.Ilevel_gift_data_rsp} message level_gift_data_rsp message or plain object to encode
  50619. * @param {$protobuf.Writer} [writer] Writer to encode to
  50620. * @returns {$protobuf.Writer} Writer
  50621. */
  50622. level_gift_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  50623. return this.encode(message, writer).ldelim();
  50624. };
  50625. /**
  50626. * Decodes a level_gift_data_rsp message from the specified reader or buffer.
  50627. * @function decode
  50628. * @memberof game.level_gift_data_rsp
  50629. * @static
  50630. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50631. * @param {number} [length] Message length if known beforehand
  50632. * @returns {game.level_gift_data_rsp} level_gift_data_rsp
  50633. * @throws {Error} If the payload is not a reader or valid buffer
  50634. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50635. */
  50636. level_gift_data_rsp.decode = function decode(reader, length) {
  50637. if (!(reader instanceof $Reader))
  50638. reader = $Reader.create(reader);
  50639. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_data_rsp();
  50640. while (reader.pos < end) {
  50641. let tag = reader.uint32();
  50642. switch (tag >>> 3) {
  50643. case 1:
  50644. message.errno = reader.int64();
  50645. break;
  50646. default:
  50647. reader.skipType(tag & 7);
  50648. break;
  50649. }
  50650. }
  50651. return message;
  50652. };
  50653. /**
  50654. * Decodes a level_gift_data_rsp message from the specified reader or buffer, length delimited.
  50655. * @function decodeDelimited
  50656. * @memberof game.level_gift_data_rsp
  50657. * @static
  50658. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50659. * @returns {game.level_gift_data_rsp} level_gift_data_rsp
  50660. * @throws {Error} If the payload is not a reader or valid buffer
  50661. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50662. */
  50663. level_gift_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  50664. if (!(reader instanceof $Reader))
  50665. reader = new $Reader(reader);
  50666. return this.decode(reader, reader.uint32());
  50667. };
  50668. /**
  50669. * Verifies a level_gift_data_rsp message.
  50670. * @function verify
  50671. * @memberof game.level_gift_data_rsp
  50672. * @static
  50673. * @param {Object.<string,*>} message Plain object to verify
  50674. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50675. */
  50676. level_gift_data_rsp.verify = function verify(message) {
  50677. if (typeof message !== "object" || message === null)
  50678. return "object expected";
  50679. if (message.errno != null && message.hasOwnProperty("errno"))
  50680. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  50681. return "errno: integer|Long expected";
  50682. return null;
  50683. };
  50684. /**
  50685. * Creates a level_gift_data_rsp message from a plain object. Also converts values to their respective internal types.
  50686. * @function fromObject
  50687. * @memberof game.level_gift_data_rsp
  50688. * @static
  50689. * @param {Object.<string,*>} object Plain object
  50690. * @returns {game.level_gift_data_rsp} level_gift_data_rsp
  50691. */
  50692. level_gift_data_rsp.fromObject = function fromObject(object) {
  50693. if (object instanceof $root.game.level_gift_data_rsp)
  50694. return object;
  50695. let message = new $root.game.level_gift_data_rsp();
  50696. if (object.errno != null)
  50697. if ($util.Long)
  50698. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  50699. else if (typeof object.errno === "string")
  50700. message.errno = parseInt(object.errno, 10);
  50701. else if (typeof object.errno === "number")
  50702. message.errno = object.errno;
  50703. else if (typeof object.errno === "object")
  50704. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  50705. return message;
  50706. };
  50707. /**
  50708. * Creates a plain object from a level_gift_data_rsp message. Also converts values to other types if specified.
  50709. * @function toObject
  50710. * @memberof game.level_gift_data_rsp
  50711. * @static
  50712. * @param {game.level_gift_data_rsp} message level_gift_data_rsp
  50713. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50714. * @returns {Object.<string,*>} Plain object
  50715. */
  50716. level_gift_data_rsp.toObject = function toObject(message, options) {
  50717. if (!options)
  50718. options = {};
  50719. let object = {};
  50720. if (options.defaults)
  50721. if ($util.Long) {
  50722. let long = new $util.Long(0, 0, false);
  50723. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50724. } else
  50725. object.errno = options.longs === String ? "0" : 0;
  50726. if (message.errno != null && message.hasOwnProperty("errno"))
  50727. if (typeof message.errno === "number")
  50728. object.errno = options.longs === String ? String(message.errno) : message.errno;
  50729. else
  50730. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  50731. return object;
  50732. };
  50733. /**
  50734. * Converts this level_gift_data_rsp to JSON.
  50735. * @function toJSON
  50736. * @memberof game.level_gift_data_rsp
  50737. * @instance
  50738. * @returns {Object.<string,*>} JSON object
  50739. */
  50740. level_gift_data_rsp.prototype.toJSON = function toJSON() {
  50741. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50742. };
  50743. return level_gift_data_rsp;
  50744. })();
  50745. game.level_gift_buy = (function() {
  50746. /**
  50747. * Properties of a level_gift_buy.
  50748. * @memberof game
  50749. * @interface Ilevel_gift_buy
  50750. * @property {number|Long|null} [id] level_gift_buy id
  50751. */
  50752. /**
  50753. * Constructs a new level_gift_buy.
  50754. * @memberof game
  50755. * @classdesc Represents a level_gift_buy.
  50756. * @implements Ilevel_gift_buy
  50757. * @constructor
  50758. * @param {game.Ilevel_gift_buy=} [properties] Properties to set
  50759. */
  50760. function level_gift_buy(properties) {
  50761. if (properties)
  50762. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50763. if (properties[keys[i]] != null)
  50764. this[keys[i]] = properties[keys[i]];
  50765. }
  50766. /**
  50767. * level_gift_buy id.
  50768. * @member {number|Long} id
  50769. * @memberof game.level_gift_buy
  50770. * @instance
  50771. */
  50772. level_gift_buy.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50773. /**
  50774. * Creates a new level_gift_buy instance using the specified properties.
  50775. * @function create
  50776. * @memberof game.level_gift_buy
  50777. * @static
  50778. * @param {game.Ilevel_gift_buy=} [properties] Properties to set
  50779. * @returns {game.level_gift_buy} level_gift_buy instance
  50780. */
  50781. level_gift_buy.create = function create(properties) {
  50782. return new level_gift_buy(properties);
  50783. };
  50784. /**
  50785. * Encodes the specified level_gift_buy message. Does not implicitly {@link game.level_gift_buy.verify|verify} messages.
  50786. * @function encode
  50787. * @memberof game.level_gift_buy
  50788. * @static
  50789. * @param {game.Ilevel_gift_buy} message level_gift_buy message or plain object to encode
  50790. * @param {$protobuf.Writer} [writer] Writer to encode to
  50791. * @returns {$protobuf.Writer} Writer
  50792. */
  50793. level_gift_buy.encode = function encode(message, writer) {
  50794. if (!writer)
  50795. writer = $Writer.create();
  50796. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  50797. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  50798. return writer;
  50799. };
  50800. /**
  50801. * Encodes the specified level_gift_buy message, length delimited. Does not implicitly {@link game.level_gift_buy.verify|verify} messages.
  50802. * @function encodeDelimited
  50803. * @memberof game.level_gift_buy
  50804. * @static
  50805. * @param {game.Ilevel_gift_buy} message level_gift_buy message or plain object to encode
  50806. * @param {$protobuf.Writer} [writer] Writer to encode to
  50807. * @returns {$protobuf.Writer} Writer
  50808. */
  50809. level_gift_buy.encodeDelimited = function encodeDelimited(message, writer) {
  50810. return this.encode(message, writer).ldelim();
  50811. };
  50812. /**
  50813. * Decodes a level_gift_buy message from the specified reader or buffer.
  50814. * @function decode
  50815. * @memberof game.level_gift_buy
  50816. * @static
  50817. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50818. * @param {number} [length] Message length if known beforehand
  50819. * @returns {game.level_gift_buy} level_gift_buy
  50820. * @throws {Error} If the payload is not a reader or valid buffer
  50821. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50822. */
  50823. level_gift_buy.decode = function decode(reader, length) {
  50824. if (!(reader instanceof $Reader))
  50825. reader = $Reader.create(reader);
  50826. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_buy();
  50827. while (reader.pos < end) {
  50828. let tag = reader.uint32();
  50829. switch (tag >>> 3) {
  50830. case 2:
  50831. message.id = reader.int64();
  50832. break;
  50833. default:
  50834. reader.skipType(tag & 7);
  50835. break;
  50836. }
  50837. }
  50838. return message;
  50839. };
  50840. /**
  50841. * Decodes a level_gift_buy message from the specified reader or buffer, length delimited.
  50842. * @function decodeDelimited
  50843. * @memberof game.level_gift_buy
  50844. * @static
  50845. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  50846. * @returns {game.level_gift_buy} level_gift_buy
  50847. * @throws {Error} If the payload is not a reader or valid buffer
  50848. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  50849. */
  50850. level_gift_buy.decodeDelimited = function decodeDelimited(reader) {
  50851. if (!(reader instanceof $Reader))
  50852. reader = new $Reader(reader);
  50853. return this.decode(reader, reader.uint32());
  50854. };
  50855. /**
  50856. * Verifies a level_gift_buy message.
  50857. * @function verify
  50858. * @memberof game.level_gift_buy
  50859. * @static
  50860. * @param {Object.<string,*>} message Plain object to verify
  50861. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  50862. */
  50863. level_gift_buy.verify = function verify(message) {
  50864. if (typeof message !== "object" || message === null)
  50865. return "object expected";
  50866. if (message.id != null && message.hasOwnProperty("id"))
  50867. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  50868. return "id: integer|Long expected";
  50869. return null;
  50870. };
  50871. /**
  50872. * Creates a level_gift_buy message from a plain object. Also converts values to their respective internal types.
  50873. * @function fromObject
  50874. * @memberof game.level_gift_buy
  50875. * @static
  50876. * @param {Object.<string,*>} object Plain object
  50877. * @returns {game.level_gift_buy} level_gift_buy
  50878. */
  50879. level_gift_buy.fromObject = function fromObject(object) {
  50880. if (object instanceof $root.game.level_gift_buy)
  50881. return object;
  50882. let message = new $root.game.level_gift_buy();
  50883. if (object.id != null)
  50884. if ($util.Long)
  50885. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  50886. else if (typeof object.id === "string")
  50887. message.id = parseInt(object.id, 10);
  50888. else if (typeof object.id === "number")
  50889. message.id = object.id;
  50890. else if (typeof object.id === "object")
  50891. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  50892. return message;
  50893. };
  50894. /**
  50895. * Creates a plain object from a level_gift_buy message. Also converts values to other types if specified.
  50896. * @function toObject
  50897. * @memberof game.level_gift_buy
  50898. * @static
  50899. * @param {game.level_gift_buy} message level_gift_buy
  50900. * @param {$protobuf.IConversionOptions} [options] Conversion options
  50901. * @returns {Object.<string,*>} Plain object
  50902. */
  50903. level_gift_buy.toObject = function toObject(message, options) {
  50904. if (!options)
  50905. options = {};
  50906. let object = {};
  50907. if (options.defaults)
  50908. if ($util.Long) {
  50909. let long = new $util.Long(0, 0, false);
  50910. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  50911. } else
  50912. object.id = options.longs === String ? "0" : 0;
  50913. if (message.id != null && message.hasOwnProperty("id"))
  50914. if (typeof message.id === "number")
  50915. object.id = options.longs === String ? String(message.id) : message.id;
  50916. else
  50917. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  50918. return object;
  50919. };
  50920. /**
  50921. * Converts this level_gift_buy to JSON.
  50922. * @function toJSON
  50923. * @memberof game.level_gift_buy
  50924. * @instance
  50925. * @returns {Object.<string,*>} JSON object
  50926. */
  50927. level_gift_buy.prototype.toJSON = function toJSON() {
  50928. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  50929. };
  50930. return level_gift_buy;
  50931. })();
  50932. game.level_gift_buy_rsp = (function() {
  50933. /**
  50934. * Properties of a level_gift_buy_rsp.
  50935. * @memberof game
  50936. * @interface Ilevel_gift_buy_rsp
  50937. * @property {number|Long|null} [errno] level_gift_buy_rsp errno
  50938. */
  50939. /**
  50940. * Constructs a new level_gift_buy_rsp.
  50941. * @memberof game
  50942. * @classdesc Represents a level_gift_buy_rsp.
  50943. * @implements Ilevel_gift_buy_rsp
  50944. * @constructor
  50945. * @param {game.Ilevel_gift_buy_rsp=} [properties] Properties to set
  50946. */
  50947. function level_gift_buy_rsp(properties) {
  50948. if (properties)
  50949. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  50950. if (properties[keys[i]] != null)
  50951. this[keys[i]] = properties[keys[i]];
  50952. }
  50953. /**
  50954. * level_gift_buy_rsp errno.
  50955. * @member {number|Long} errno
  50956. * @memberof game.level_gift_buy_rsp
  50957. * @instance
  50958. */
  50959. level_gift_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  50960. /**
  50961. * Creates a new level_gift_buy_rsp instance using the specified properties.
  50962. * @function create
  50963. * @memberof game.level_gift_buy_rsp
  50964. * @static
  50965. * @param {game.Ilevel_gift_buy_rsp=} [properties] Properties to set
  50966. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp instance
  50967. */
  50968. level_gift_buy_rsp.create = function create(properties) {
  50969. return new level_gift_buy_rsp(properties);
  50970. };
  50971. /**
  50972. * Encodes the specified level_gift_buy_rsp message. Does not implicitly {@link game.level_gift_buy_rsp.verify|verify} messages.
  50973. * @function encode
  50974. * @memberof game.level_gift_buy_rsp
  50975. * @static
  50976. * @param {game.Ilevel_gift_buy_rsp} message level_gift_buy_rsp message or plain object to encode
  50977. * @param {$protobuf.Writer} [writer] Writer to encode to
  50978. * @returns {$protobuf.Writer} Writer
  50979. */
  50980. level_gift_buy_rsp.encode = function encode(message, writer) {
  50981. if (!writer)
  50982. writer = $Writer.create();
  50983. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  50984. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  50985. return writer;
  50986. };
  50987. /**
  50988. * Encodes the specified level_gift_buy_rsp message, length delimited. Does not implicitly {@link game.level_gift_buy_rsp.verify|verify} messages.
  50989. * @function encodeDelimited
  50990. * @memberof game.level_gift_buy_rsp
  50991. * @static
  50992. * @param {game.Ilevel_gift_buy_rsp} message level_gift_buy_rsp message or plain object to encode
  50993. * @param {$protobuf.Writer} [writer] Writer to encode to
  50994. * @returns {$protobuf.Writer} Writer
  50995. */
  50996. level_gift_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  50997. return this.encode(message, writer).ldelim();
  50998. };
  50999. /**
  51000. * Decodes a level_gift_buy_rsp message from the specified reader or buffer.
  51001. * @function decode
  51002. * @memberof game.level_gift_buy_rsp
  51003. * @static
  51004. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51005. * @param {number} [length] Message length if known beforehand
  51006. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
  51007. * @throws {Error} If the payload is not a reader or valid buffer
  51008. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51009. */
  51010. level_gift_buy_rsp.decode = function decode(reader, length) {
  51011. if (!(reader instanceof $Reader))
  51012. reader = $Reader.create(reader);
  51013. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_buy_rsp();
  51014. while (reader.pos < end) {
  51015. let tag = reader.uint32();
  51016. switch (tag >>> 3) {
  51017. case 1:
  51018. message.errno = reader.int64();
  51019. break;
  51020. default:
  51021. reader.skipType(tag & 7);
  51022. break;
  51023. }
  51024. }
  51025. return message;
  51026. };
  51027. /**
  51028. * Decodes a level_gift_buy_rsp message from the specified reader or buffer, length delimited.
  51029. * @function decodeDelimited
  51030. * @memberof game.level_gift_buy_rsp
  51031. * @static
  51032. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51033. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
  51034. * @throws {Error} If the payload is not a reader or valid buffer
  51035. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51036. */
  51037. level_gift_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  51038. if (!(reader instanceof $Reader))
  51039. reader = new $Reader(reader);
  51040. return this.decode(reader, reader.uint32());
  51041. };
  51042. /**
  51043. * Verifies a level_gift_buy_rsp message.
  51044. * @function verify
  51045. * @memberof game.level_gift_buy_rsp
  51046. * @static
  51047. * @param {Object.<string,*>} message Plain object to verify
  51048. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51049. */
  51050. level_gift_buy_rsp.verify = function verify(message) {
  51051. if (typeof message !== "object" || message === null)
  51052. return "object expected";
  51053. if (message.errno != null && message.hasOwnProperty("errno"))
  51054. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  51055. return "errno: integer|Long expected";
  51056. return null;
  51057. };
  51058. /**
  51059. * Creates a level_gift_buy_rsp message from a plain object. Also converts values to their respective internal types.
  51060. * @function fromObject
  51061. * @memberof game.level_gift_buy_rsp
  51062. * @static
  51063. * @param {Object.<string,*>} object Plain object
  51064. * @returns {game.level_gift_buy_rsp} level_gift_buy_rsp
  51065. */
  51066. level_gift_buy_rsp.fromObject = function fromObject(object) {
  51067. if (object instanceof $root.game.level_gift_buy_rsp)
  51068. return object;
  51069. let message = new $root.game.level_gift_buy_rsp();
  51070. if (object.errno != null)
  51071. if ($util.Long)
  51072. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  51073. else if (typeof object.errno === "string")
  51074. message.errno = parseInt(object.errno, 10);
  51075. else if (typeof object.errno === "number")
  51076. message.errno = object.errno;
  51077. else if (typeof object.errno === "object")
  51078. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  51079. return message;
  51080. };
  51081. /**
  51082. * Creates a plain object from a level_gift_buy_rsp message. Also converts values to other types if specified.
  51083. * @function toObject
  51084. * @memberof game.level_gift_buy_rsp
  51085. * @static
  51086. * @param {game.level_gift_buy_rsp} message level_gift_buy_rsp
  51087. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51088. * @returns {Object.<string,*>} Plain object
  51089. */
  51090. level_gift_buy_rsp.toObject = function toObject(message, options) {
  51091. if (!options)
  51092. options = {};
  51093. let object = {};
  51094. if (options.defaults)
  51095. if ($util.Long) {
  51096. let long = new $util.Long(0, 0, false);
  51097. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  51098. } else
  51099. object.errno = options.longs === String ? "0" : 0;
  51100. if (message.errno != null && message.hasOwnProperty("errno"))
  51101. if (typeof message.errno === "number")
  51102. object.errno = options.longs === String ? String(message.errno) : message.errno;
  51103. else
  51104. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  51105. return object;
  51106. };
  51107. /**
  51108. * Converts this level_gift_buy_rsp to JSON.
  51109. * @function toJSON
  51110. * @memberof game.level_gift_buy_rsp
  51111. * @instance
  51112. * @returns {Object.<string,*>} JSON object
  51113. */
  51114. level_gift_buy_rsp.prototype.toJSON = function toJSON() {
  51115. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51116. };
  51117. return level_gift_buy_rsp;
  51118. })();
  51119. game.level_gift_nty = (function() {
  51120. /**
  51121. * Properties of a level_gift_nty.
  51122. * @memberof game
  51123. * @interface Ilevel_gift_nty
  51124. * @property {Array.<game.Iid_num>|null} [list] level_gift_nty list
  51125. */
  51126. /**
  51127. * Constructs a new level_gift_nty.
  51128. * @memberof game
  51129. * @classdesc Represents a level_gift_nty.
  51130. * @implements Ilevel_gift_nty
  51131. * @constructor
  51132. * @param {game.Ilevel_gift_nty=} [properties] Properties to set
  51133. */
  51134. function level_gift_nty(properties) {
  51135. this.list = [];
  51136. if (properties)
  51137. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51138. if (properties[keys[i]] != null)
  51139. this[keys[i]] = properties[keys[i]];
  51140. }
  51141. /**
  51142. * level_gift_nty list.
  51143. * @member {Array.<game.Iid_num>} list
  51144. * @memberof game.level_gift_nty
  51145. * @instance
  51146. */
  51147. level_gift_nty.prototype.list = $util.emptyArray;
  51148. /**
  51149. * Creates a new level_gift_nty instance using the specified properties.
  51150. * @function create
  51151. * @memberof game.level_gift_nty
  51152. * @static
  51153. * @param {game.Ilevel_gift_nty=} [properties] Properties to set
  51154. * @returns {game.level_gift_nty} level_gift_nty instance
  51155. */
  51156. level_gift_nty.create = function create(properties) {
  51157. return new level_gift_nty(properties);
  51158. };
  51159. /**
  51160. * Encodes the specified level_gift_nty message. Does not implicitly {@link game.level_gift_nty.verify|verify} messages.
  51161. * @function encode
  51162. * @memberof game.level_gift_nty
  51163. * @static
  51164. * @param {game.Ilevel_gift_nty} message level_gift_nty message or plain object to encode
  51165. * @param {$protobuf.Writer} [writer] Writer to encode to
  51166. * @returns {$protobuf.Writer} Writer
  51167. */
  51168. level_gift_nty.encode = function encode(message, writer) {
  51169. if (!writer)
  51170. writer = $Writer.create();
  51171. if (message.list != null && message.list.length)
  51172. for (let i = 0; i < message.list.length; ++i)
  51173. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  51174. return writer;
  51175. };
  51176. /**
  51177. * Encodes the specified level_gift_nty message, length delimited. Does not implicitly {@link game.level_gift_nty.verify|verify} messages.
  51178. * @function encodeDelimited
  51179. * @memberof game.level_gift_nty
  51180. * @static
  51181. * @param {game.Ilevel_gift_nty} message level_gift_nty message or plain object to encode
  51182. * @param {$protobuf.Writer} [writer] Writer to encode to
  51183. * @returns {$protobuf.Writer} Writer
  51184. */
  51185. level_gift_nty.encodeDelimited = function encodeDelimited(message, writer) {
  51186. return this.encode(message, writer).ldelim();
  51187. };
  51188. /**
  51189. * Decodes a level_gift_nty message from the specified reader or buffer.
  51190. * @function decode
  51191. * @memberof game.level_gift_nty
  51192. * @static
  51193. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51194. * @param {number} [length] Message length if known beforehand
  51195. * @returns {game.level_gift_nty} level_gift_nty
  51196. * @throws {Error} If the payload is not a reader or valid buffer
  51197. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51198. */
  51199. level_gift_nty.decode = function decode(reader, length) {
  51200. if (!(reader instanceof $Reader))
  51201. reader = $Reader.create(reader);
  51202. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_nty();
  51203. while (reader.pos < end) {
  51204. let tag = reader.uint32();
  51205. switch (tag >>> 3) {
  51206. case 1:
  51207. if (!(message.list && message.list.length))
  51208. message.list = [];
  51209. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  51210. break;
  51211. default:
  51212. reader.skipType(tag & 7);
  51213. break;
  51214. }
  51215. }
  51216. return message;
  51217. };
  51218. /**
  51219. * Decodes a level_gift_nty message from the specified reader or buffer, length delimited.
  51220. * @function decodeDelimited
  51221. * @memberof game.level_gift_nty
  51222. * @static
  51223. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51224. * @returns {game.level_gift_nty} level_gift_nty
  51225. * @throws {Error} If the payload is not a reader or valid buffer
  51226. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51227. */
  51228. level_gift_nty.decodeDelimited = function decodeDelimited(reader) {
  51229. if (!(reader instanceof $Reader))
  51230. reader = new $Reader(reader);
  51231. return this.decode(reader, reader.uint32());
  51232. };
  51233. /**
  51234. * Verifies a level_gift_nty message.
  51235. * @function verify
  51236. * @memberof game.level_gift_nty
  51237. * @static
  51238. * @param {Object.<string,*>} message Plain object to verify
  51239. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51240. */
  51241. level_gift_nty.verify = function verify(message) {
  51242. if (typeof message !== "object" || message === null)
  51243. return "object expected";
  51244. if (message.list != null && message.hasOwnProperty("list")) {
  51245. if (!Array.isArray(message.list))
  51246. return "list: array expected";
  51247. for (let i = 0; i < message.list.length; ++i) {
  51248. let error = $root.game.id_num.verify(message.list[i]);
  51249. if (error)
  51250. return "list." + error;
  51251. }
  51252. }
  51253. return null;
  51254. };
  51255. /**
  51256. * Creates a level_gift_nty message from a plain object. Also converts values to their respective internal types.
  51257. * @function fromObject
  51258. * @memberof game.level_gift_nty
  51259. * @static
  51260. * @param {Object.<string,*>} object Plain object
  51261. * @returns {game.level_gift_nty} level_gift_nty
  51262. */
  51263. level_gift_nty.fromObject = function fromObject(object) {
  51264. if (object instanceof $root.game.level_gift_nty)
  51265. return object;
  51266. let message = new $root.game.level_gift_nty();
  51267. if (object.list) {
  51268. if (!Array.isArray(object.list))
  51269. throw TypeError(".game.level_gift_nty.list: array expected");
  51270. message.list = [];
  51271. for (let i = 0; i < object.list.length; ++i) {
  51272. if (typeof object.list[i] !== "object")
  51273. throw TypeError(".game.level_gift_nty.list: object expected");
  51274. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  51275. }
  51276. }
  51277. return message;
  51278. };
  51279. /**
  51280. * Creates a plain object from a level_gift_nty message. Also converts values to other types if specified.
  51281. * @function toObject
  51282. * @memberof game.level_gift_nty
  51283. * @static
  51284. * @param {game.level_gift_nty} message level_gift_nty
  51285. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51286. * @returns {Object.<string,*>} Plain object
  51287. */
  51288. level_gift_nty.toObject = function toObject(message, options) {
  51289. if (!options)
  51290. options = {};
  51291. let object = {};
  51292. if (options.arrays || options.defaults)
  51293. object.list = [];
  51294. if (message.list && message.list.length) {
  51295. object.list = [];
  51296. for (let j = 0; j < message.list.length; ++j)
  51297. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  51298. }
  51299. return object;
  51300. };
  51301. /**
  51302. * Converts this level_gift_nty to JSON.
  51303. * @function toJSON
  51304. * @memberof game.level_gift_nty
  51305. * @instance
  51306. * @returns {Object.<string,*>} JSON object
  51307. */
  51308. level_gift_nty.prototype.toJSON = function toJSON() {
  51309. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51310. };
  51311. return level_gift_nty;
  51312. })();
  51313. game.level_gift_del_red_point = (function() {
  51314. /**
  51315. * Properties of a level_gift_del_red_point.
  51316. * @memberof game
  51317. * @interface Ilevel_gift_del_red_point
  51318. */
  51319. /**
  51320. * Constructs a new level_gift_del_red_point.
  51321. * @memberof game
  51322. * @classdesc Represents a level_gift_del_red_point.
  51323. * @implements Ilevel_gift_del_red_point
  51324. * @constructor
  51325. * @param {game.Ilevel_gift_del_red_point=} [properties] Properties to set
  51326. */
  51327. function level_gift_del_red_point(properties) {
  51328. if (properties)
  51329. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51330. if (properties[keys[i]] != null)
  51331. this[keys[i]] = properties[keys[i]];
  51332. }
  51333. /**
  51334. * Creates a new level_gift_del_red_point instance using the specified properties.
  51335. * @function create
  51336. * @memberof game.level_gift_del_red_point
  51337. * @static
  51338. * @param {game.Ilevel_gift_del_red_point=} [properties] Properties to set
  51339. * @returns {game.level_gift_del_red_point} level_gift_del_red_point instance
  51340. */
  51341. level_gift_del_red_point.create = function create(properties) {
  51342. return new level_gift_del_red_point(properties);
  51343. };
  51344. /**
  51345. * Encodes the specified level_gift_del_red_point message. Does not implicitly {@link game.level_gift_del_red_point.verify|verify} messages.
  51346. * @function encode
  51347. * @memberof game.level_gift_del_red_point
  51348. * @static
  51349. * @param {game.Ilevel_gift_del_red_point} message level_gift_del_red_point message or plain object to encode
  51350. * @param {$protobuf.Writer} [writer] Writer to encode to
  51351. * @returns {$protobuf.Writer} Writer
  51352. */
  51353. level_gift_del_red_point.encode = function encode(message, writer) {
  51354. if (!writer)
  51355. writer = $Writer.create();
  51356. return writer;
  51357. };
  51358. /**
  51359. * Encodes the specified level_gift_del_red_point message, length delimited. Does not implicitly {@link game.level_gift_del_red_point.verify|verify} messages.
  51360. * @function encodeDelimited
  51361. * @memberof game.level_gift_del_red_point
  51362. * @static
  51363. * @param {game.Ilevel_gift_del_red_point} message level_gift_del_red_point message or plain object to encode
  51364. * @param {$protobuf.Writer} [writer] Writer to encode to
  51365. * @returns {$protobuf.Writer} Writer
  51366. */
  51367. level_gift_del_red_point.encodeDelimited = function encodeDelimited(message, writer) {
  51368. return this.encode(message, writer).ldelim();
  51369. };
  51370. /**
  51371. * Decodes a level_gift_del_red_point message from the specified reader or buffer.
  51372. * @function decode
  51373. * @memberof game.level_gift_del_red_point
  51374. * @static
  51375. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51376. * @param {number} [length] Message length if known beforehand
  51377. * @returns {game.level_gift_del_red_point} level_gift_del_red_point
  51378. * @throws {Error} If the payload is not a reader or valid buffer
  51379. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51380. */
  51381. level_gift_del_red_point.decode = function decode(reader, length) {
  51382. if (!(reader instanceof $Reader))
  51383. reader = $Reader.create(reader);
  51384. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_del_red_point();
  51385. while (reader.pos < end) {
  51386. let tag = reader.uint32();
  51387. switch (tag >>> 3) {
  51388. default:
  51389. reader.skipType(tag & 7);
  51390. break;
  51391. }
  51392. }
  51393. return message;
  51394. };
  51395. /**
  51396. * Decodes a level_gift_del_red_point message from the specified reader or buffer, length delimited.
  51397. * @function decodeDelimited
  51398. * @memberof game.level_gift_del_red_point
  51399. * @static
  51400. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51401. * @returns {game.level_gift_del_red_point} level_gift_del_red_point
  51402. * @throws {Error} If the payload is not a reader or valid buffer
  51403. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51404. */
  51405. level_gift_del_red_point.decodeDelimited = function decodeDelimited(reader) {
  51406. if (!(reader instanceof $Reader))
  51407. reader = new $Reader(reader);
  51408. return this.decode(reader, reader.uint32());
  51409. };
  51410. /**
  51411. * Verifies a level_gift_del_red_point message.
  51412. * @function verify
  51413. * @memberof game.level_gift_del_red_point
  51414. * @static
  51415. * @param {Object.<string,*>} message Plain object to verify
  51416. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51417. */
  51418. level_gift_del_red_point.verify = function verify(message) {
  51419. if (typeof message !== "object" || message === null)
  51420. return "object expected";
  51421. return null;
  51422. };
  51423. /**
  51424. * Creates a level_gift_del_red_point message from a plain object. Also converts values to their respective internal types.
  51425. * @function fromObject
  51426. * @memberof game.level_gift_del_red_point
  51427. * @static
  51428. * @param {Object.<string,*>} object Plain object
  51429. * @returns {game.level_gift_del_red_point} level_gift_del_red_point
  51430. */
  51431. level_gift_del_red_point.fromObject = function fromObject(object) {
  51432. if (object instanceof $root.game.level_gift_del_red_point)
  51433. return object;
  51434. return new $root.game.level_gift_del_red_point();
  51435. };
  51436. /**
  51437. * Creates a plain object from a level_gift_del_red_point message. Also converts values to other types if specified.
  51438. * @function toObject
  51439. * @memberof game.level_gift_del_red_point
  51440. * @static
  51441. * @param {game.level_gift_del_red_point} message level_gift_del_red_point
  51442. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51443. * @returns {Object.<string,*>} Plain object
  51444. */
  51445. level_gift_del_red_point.toObject = function toObject() {
  51446. return {};
  51447. };
  51448. /**
  51449. * Converts this level_gift_del_red_point to JSON.
  51450. * @function toJSON
  51451. * @memberof game.level_gift_del_red_point
  51452. * @instance
  51453. * @returns {Object.<string,*>} JSON object
  51454. */
  51455. level_gift_del_red_point.prototype.toJSON = function toJSON() {
  51456. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51457. };
  51458. return level_gift_del_red_point;
  51459. })();
  51460. game.level_gift_del_red_point_rsp = (function() {
  51461. /**
  51462. * Properties of a level_gift_del_red_point_rsp.
  51463. * @memberof game
  51464. * @interface Ilevel_gift_del_red_point_rsp
  51465. * @property {number|Long|null} [errno] level_gift_del_red_point_rsp errno
  51466. */
  51467. /**
  51468. * Constructs a new level_gift_del_red_point_rsp.
  51469. * @memberof game
  51470. * @classdesc Represents a level_gift_del_red_point_rsp.
  51471. * @implements Ilevel_gift_del_red_point_rsp
  51472. * @constructor
  51473. * @param {game.Ilevel_gift_del_red_point_rsp=} [properties] Properties to set
  51474. */
  51475. function level_gift_del_red_point_rsp(properties) {
  51476. if (properties)
  51477. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51478. if (properties[keys[i]] != null)
  51479. this[keys[i]] = properties[keys[i]];
  51480. }
  51481. /**
  51482. * level_gift_del_red_point_rsp errno.
  51483. * @member {number|Long} errno
  51484. * @memberof game.level_gift_del_red_point_rsp
  51485. * @instance
  51486. */
  51487. level_gift_del_red_point_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  51488. /**
  51489. * Creates a new level_gift_del_red_point_rsp instance using the specified properties.
  51490. * @function create
  51491. * @memberof game.level_gift_del_red_point_rsp
  51492. * @static
  51493. * @param {game.Ilevel_gift_del_red_point_rsp=} [properties] Properties to set
  51494. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp instance
  51495. */
  51496. level_gift_del_red_point_rsp.create = function create(properties) {
  51497. return new level_gift_del_red_point_rsp(properties);
  51498. };
  51499. /**
  51500. * Encodes the specified level_gift_del_red_point_rsp message. Does not implicitly {@link game.level_gift_del_red_point_rsp.verify|verify} messages.
  51501. * @function encode
  51502. * @memberof game.level_gift_del_red_point_rsp
  51503. * @static
  51504. * @param {game.Ilevel_gift_del_red_point_rsp} message level_gift_del_red_point_rsp message or plain object to encode
  51505. * @param {$protobuf.Writer} [writer] Writer to encode to
  51506. * @returns {$protobuf.Writer} Writer
  51507. */
  51508. level_gift_del_red_point_rsp.encode = function encode(message, writer) {
  51509. if (!writer)
  51510. writer = $Writer.create();
  51511. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  51512. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  51513. return writer;
  51514. };
  51515. /**
  51516. * Encodes the specified level_gift_del_red_point_rsp message, length delimited. Does not implicitly {@link game.level_gift_del_red_point_rsp.verify|verify} messages.
  51517. * @function encodeDelimited
  51518. * @memberof game.level_gift_del_red_point_rsp
  51519. * @static
  51520. * @param {game.Ilevel_gift_del_red_point_rsp} message level_gift_del_red_point_rsp message or plain object to encode
  51521. * @param {$protobuf.Writer} [writer] Writer to encode to
  51522. * @returns {$protobuf.Writer} Writer
  51523. */
  51524. level_gift_del_red_point_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  51525. return this.encode(message, writer).ldelim();
  51526. };
  51527. /**
  51528. * Decodes a level_gift_del_red_point_rsp message from the specified reader or buffer.
  51529. * @function decode
  51530. * @memberof game.level_gift_del_red_point_rsp
  51531. * @static
  51532. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51533. * @param {number} [length] Message length if known beforehand
  51534. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
  51535. * @throws {Error} If the payload is not a reader or valid buffer
  51536. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51537. */
  51538. level_gift_del_red_point_rsp.decode = function decode(reader, length) {
  51539. if (!(reader instanceof $Reader))
  51540. reader = $Reader.create(reader);
  51541. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.level_gift_del_red_point_rsp();
  51542. while (reader.pos < end) {
  51543. let tag = reader.uint32();
  51544. switch (tag >>> 3) {
  51545. case 1:
  51546. message.errno = reader.int64();
  51547. break;
  51548. default:
  51549. reader.skipType(tag & 7);
  51550. break;
  51551. }
  51552. }
  51553. return message;
  51554. };
  51555. /**
  51556. * Decodes a level_gift_del_red_point_rsp message from the specified reader or buffer, length delimited.
  51557. * @function decodeDelimited
  51558. * @memberof game.level_gift_del_red_point_rsp
  51559. * @static
  51560. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51561. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
  51562. * @throws {Error} If the payload is not a reader or valid buffer
  51563. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51564. */
  51565. level_gift_del_red_point_rsp.decodeDelimited = function decodeDelimited(reader) {
  51566. if (!(reader instanceof $Reader))
  51567. reader = new $Reader(reader);
  51568. return this.decode(reader, reader.uint32());
  51569. };
  51570. /**
  51571. * Verifies a level_gift_del_red_point_rsp message.
  51572. * @function verify
  51573. * @memberof game.level_gift_del_red_point_rsp
  51574. * @static
  51575. * @param {Object.<string,*>} message Plain object to verify
  51576. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51577. */
  51578. level_gift_del_red_point_rsp.verify = function verify(message) {
  51579. if (typeof message !== "object" || message === null)
  51580. return "object expected";
  51581. if (message.errno != null && message.hasOwnProperty("errno"))
  51582. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  51583. return "errno: integer|Long expected";
  51584. return null;
  51585. };
  51586. /**
  51587. * Creates a level_gift_del_red_point_rsp message from a plain object. Also converts values to their respective internal types.
  51588. * @function fromObject
  51589. * @memberof game.level_gift_del_red_point_rsp
  51590. * @static
  51591. * @param {Object.<string,*>} object Plain object
  51592. * @returns {game.level_gift_del_red_point_rsp} level_gift_del_red_point_rsp
  51593. */
  51594. level_gift_del_red_point_rsp.fromObject = function fromObject(object) {
  51595. if (object instanceof $root.game.level_gift_del_red_point_rsp)
  51596. return object;
  51597. let message = new $root.game.level_gift_del_red_point_rsp();
  51598. if (object.errno != null)
  51599. if ($util.Long)
  51600. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  51601. else if (typeof object.errno === "string")
  51602. message.errno = parseInt(object.errno, 10);
  51603. else if (typeof object.errno === "number")
  51604. message.errno = object.errno;
  51605. else if (typeof object.errno === "object")
  51606. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  51607. return message;
  51608. };
  51609. /**
  51610. * Creates a plain object from a level_gift_del_red_point_rsp message. Also converts values to other types if specified.
  51611. * @function toObject
  51612. * @memberof game.level_gift_del_red_point_rsp
  51613. * @static
  51614. * @param {game.level_gift_del_red_point_rsp} message level_gift_del_red_point_rsp
  51615. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51616. * @returns {Object.<string,*>} Plain object
  51617. */
  51618. level_gift_del_red_point_rsp.toObject = function toObject(message, options) {
  51619. if (!options)
  51620. options = {};
  51621. let object = {};
  51622. if (options.defaults)
  51623. if ($util.Long) {
  51624. let long = new $util.Long(0, 0, false);
  51625. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  51626. } else
  51627. object.errno = options.longs === String ? "0" : 0;
  51628. if (message.errno != null && message.hasOwnProperty("errno"))
  51629. if (typeof message.errno === "number")
  51630. object.errno = options.longs === String ? String(message.errno) : message.errno;
  51631. else
  51632. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  51633. return object;
  51634. };
  51635. /**
  51636. * Converts this level_gift_del_red_point_rsp to JSON.
  51637. * @function toJSON
  51638. * @memberof game.level_gift_del_red_point_rsp
  51639. * @instance
  51640. * @returns {Object.<string,*>} JSON object
  51641. */
  51642. level_gift_del_red_point_rsp.prototype.toJSON = function toJSON() {
  51643. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51644. };
  51645. return level_gift_del_red_point_rsp;
  51646. })();
  51647. game.lottery_data = (function() {
  51648. /**
  51649. * Properties of a lottery_data.
  51650. * @memberof game
  51651. * @interface Ilottery_data
  51652. */
  51653. /**
  51654. * Constructs a new lottery_data.
  51655. * @memberof game
  51656. * @classdesc Represents a lottery_data.
  51657. * @implements Ilottery_data
  51658. * @constructor
  51659. * @param {game.Ilottery_data=} [properties] Properties to set
  51660. */
  51661. function lottery_data(properties) {
  51662. if (properties)
  51663. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51664. if (properties[keys[i]] != null)
  51665. this[keys[i]] = properties[keys[i]];
  51666. }
  51667. /**
  51668. * Creates a new lottery_data instance using the specified properties.
  51669. * @function create
  51670. * @memberof game.lottery_data
  51671. * @static
  51672. * @param {game.Ilottery_data=} [properties] Properties to set
  51673. * @returns {game.lottery_data} lottery_data instance
  51674. */
  51675. lottery_data.create = function create(properties) {
  51676. return new lottery_data(properties);
  51677. };
  51678. /**
  51679. * Encodes the specified lottery_data message. Does not implicitly {@link game.lottery_data.verify|verify} messages.
  51680. * @function encode
  51681. * @memberof game.lottery_data
  51682. * @static
  51683. * @param {game.Ilottery_data} message lottery_data message or plain object to encode
  51684. * @param {$protobuf.Writer} [writer] Writer to encode to
  51685. * @returns {$protobuf.Writer} Writer
  51686. */
  51687. lottery_data.encode = function encode(message, writer) {
  51688. if (!writer)
  51689. writer = $Writer.create();
  51690. return writer;
  51691. };
  51692. /**
  51693. * Encodes the specified lottery_data message, length delimited. Does not implicitly {@link game.lottery_data.verify|verify} messages.
  51694. * @function encodeDelimited
  51695. * @memberof game.lottery_data
  51696. * @static
  51697. * @param {game.Ilottery_data} message lottery_data message or plain object to encode
  51698. * @param {$protobuf.Writer} [writer] Writer to encode to
  51699. * @returns {$protobuf.Writer} Writer
  51700. */
  51701. lottery_data.encodeDelimited = function encodeDelimited(message, writer) {
  51702. return this.encode(message, writer).ldelim();
  51703. };
  51704. /**
  51705. * Decodes a lottery_data message from the specified reader or buffer.
  51706. * @function decode
  51707. * @memberof game.lottery_data
  51708. * @static
  51709. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51710. * @param {number} [length] Message length if known beforehand
  51711. * @returns {game.lottery_data} lottery_data
  51712. * @throws {Error} If the payload is not a reader or valid buffer
  51713. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51714. */
  51715. lottery_data.decode = function decode(reader, length) {
  51716. if (!(reader instanceof $Reader))
  51717. reader = $Reader.create(reader);
  51718. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_data();
  51719. while (reader.pos < end) {
  51720. let tag = reader.uint32();
  51721. switch (tag >>> 3) {
  51722. default:
  51723. reader.skipType(tag & 7);
  51724. break;
  51725. }
  51726. }
  51727. return message;
  51728. };
  51729. /**
  51730. * Decodes a lottery_data message from the specified reader or buffer, length delimited.
  51731. * @function decodeDelimited
  51732. * @memberof game.lottery_data
  51733. * @static
  51734. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51735. * @returns {game.lottery_data} lottery_data
  51736. * @throws {Error} If the payload is not a reader or valid buffer
  51737. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51738. */
  51739. lottery_data.decodeDelimited = function decodeDelimited(reader) {
  51740. if (!(reader instanceof $Reader))
  51741. reader = new $Reader(reader);
  51742. return this.decode(reader, reader.uint32());
  51743. };
  51744. /**
  51745. * Verifies a lottery_data message.
  51746. * @function verify
  51747. * @memberof game.lottery_data
  51748. * @static
  51749. * @param {Object.<string,*>} message Plain object to verify
  51750. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51751. */
  51752. lottery_data.verify = function verify(message) {
  51753. if (typeof message !== "object" || message === null)
  51754. return "object expected";
  51755. return null;
  51756. };
  51757. /**
  51758. * Creates a lottery_data message from a plain object. Also converts values to their respective internal types.
  51759. * @function fromObject
  51760. * @memberof game.lottery_data
  51761. * @static
  51762. * @param {Object.<string,*>} object Plain object
  51763. * @returns {game.lottery_data} lottery_data
  51764. */
  51765. lottery_data.fromObject = function fromObject(object) {
  51766. if (object instanceof $root.game.lottery_data)
  51767. return object;
  51768. return new $root.game.lottery_data();
  51769. };
  51770. /**
  51771. * Creates a plain object from a lottery_data message. Also converts values to other types if specified.
  51772. * @function toObject
  51773. * @memberof game.lottery_data
  51774. * @static
  51775. * @param {game.lottery_data} message lottery_data
  51776. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51777. * @returns {Object.<string,*>} Plain object
  51778. */
  51779. lottery_data.toObject = function toObject() {
  51780. return {};
  51781. };
  51782. /**
  51783. * Converts this lottery_data to JSON.
  51784. * @function toJSON
  51785. * @memberof game.lottery_data
  51786. * @instance
  51787. * @returns {Object.<string,*>} JSON object
  51788. */
  51789. lottery_data.prototype.toJSON = function toJSON() {
  51790. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51791. };
  51792. return lottery_data;
  51793. })();
  51794. game.lottery_data_rsp = (function() {
  51795. /**
  51796. * Properties of a lottery_data_rsp.
  51797. * @memberof game
  51798. * @interface Ilottery_data_rsp
  51799. * @property {number|Long|null} [errno] lottery_data_rsp errno
  51800. */
  51801. /**
  51802. * Constructs a new lottery_data_rsp.
  51803. * @memberof game
  51804. * @classdesc Represents a lottery_data_rsp.
  51805. * @implements Ilottery_data_rsp
  51806. * @constructor
  51807. * @param {game.Ilottery_data_rsp=} [properties] Properties to set
  51808. */
  51809. function lottery_data_rsp(properties) {
  51810. if (properties)
  51811. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51812. if (properties[keys[i]] != null)
  51813. this[keys[i]] = properties[keys[i]];
  51814. }
  51815. /**
  51816. * lottery_data_rsp errno.
  51817. * @member {number|Long} errno
  51818. * @memberof game.lottery_data_rsp
  51819. * @instance
  51820. */
  51821. lottery_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  51822. /**
  51823. * Creates a new lottery_data_rsp instance using the specified properties.
  51824. * @function create
  51825. * @memberof game.lottery_data_rsp
  51826. * @static
  51827. * @param {game.Ilottery_data_rsp=} [properties] Properties to set
  51828. * @returns {game.lottery_data_rsp} lottery_data_rsp instance
  51829. */
  51830. lottery_data_rsp.create = function create(properties) {
  51831. return new lottery_data_rsp(properties);
  51832. };
  51833. /**
  51834. * Encodes the specified lottery_data_rsp message. Does not implicitly {@link game.lottery_data_rsp.verify|verify} messages.
  51835. * @function encode
  51836. * @memberof game.lottery_data_rsp
  51837. * @static
  51838. * @param {game.Ilottery_data_rsp} message lottery_data_rsp message or plain object to encode
  51839. * @param {$protobuf.Writer} [writer] Writer to encode to
  51840. * @returns {$protobuf.Writer} Writer
  51841. */
  51842. lottery_data_rsp.encode = function encode(message, writer) {
  51843. if (!writer)
  51844. writer = $Writer.create();
  51845. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  51846. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  51847. return writer;
  51848. };
  51849. /**
  51850. * Encodes the specified lottery_data_rsp message, length delimited. Does not implicitly {@link game.lottery_data_rsp.verify|verify} messages.
  51851. * @function encodeDelimited
  51852. * @memberof game.lottery_data_rsp
  51853. * @static
  51854. * @param {game.Ilottery_data_rsp} message lottery_data_rsp message or plain object to encode
  51855. * @param {$protobuf.Writer} [writer] Writer to encode to
  51856. * @returns {$protobuf.Writer} Writer
  51857. */
  51858. lottery_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  51859. return this.encode(message, writer).ldelim();
  51860. };
  51861. /**
  51862. * Decodes a lottery_data_rsp message from the specified reader or buffer.
  51863. * @function decode
  51864. * @memberof game.lottery_data_rsp
  51865. * @static
  51866. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51867. * @param {number} [length] Message length if known beforehand
  51868. * @returns {game.lottery_data_rsp} lottery_data_rsp
  51869. * @throws {Error} If the payload is not a reader or valid buffer
  51870. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51871. */
  51872. lottery_data_rsp.decode = function decode(reader, length) {
  51873. if (!(reader instanceof $Reader))
  51874. reader = $Reader.create(reader);
  51875. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_data_rsp();
  51876. while (reader.pos < end) {
  51877. let tag = reader.uint32();
  51878. switch (tag >>> 3) {
  51879. case 1:
  51880. message.errno = reader.int64();
  51881. break;
  51882. default:
  51883. reader.skipType(tag & 7);
  51884. break;
  51885. }
  51886. }
  51887. return message;
  51888. };
  51889. /**
  51890. * Decodes a lottery_data_rsp message from the specified reader or buffer, length delimited.
  51891. * @function decodeDelimited
  51892. * @memberof game.lottery_data_rsp
  51893. * @static
  51894. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  51895. * @returns {game.lottery_data_rsp} lottery_data_rsp
  51896. * @throws {Error} If the payload is not a reader or valid buffer
  51897. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  51898. */
  51899. lottery_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  51900. if (!(reader instanceof $Reader))
  51901. reader = new $Reader(reader);
  51902. return this.decode(reader, reader.uint32());
  51903. };
  51904. /**
  51905. * Verifies a lottery_data_rsp message.
  51906. * @function verify
  51907. * @memberof game.lottery_data_rsp
  51908. * @static
  51909. * @param {Object.<string,*>} message Plain object to verify
  51910. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  51911. */
  51912. lottery_data_rsp.verify = function verify(message) {
  51913. if (typeof message !== "object" || message === null)
  51914. return "object expected";
  51915. if (message.errno != null && message.hasOwnProperty("errno"))
  51916. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  51917. return "errno: integer|Long expected";
  51918. return null;
  51919. };
  51920. /**
  51921. * Creates a lottery_data_rsp message from a plain object. Also converts values to their respective internal types.
  51922. * @function fromObject
  51923. * @memberof game.lottery_data_rsp
  51924. * @static
  51925. * @param {Object.<string,*>} object Plain object
  51926. * @returns {game.lottery_data_rsp} lottery_data_rsp
  51927. */
  51928. lottery_data_rsp.fromObject = function fromObject(object) {
  51929. if (object instanceof $root.game.lottery_data_rsp)
  51930. return object;
  51931. let message = new $root.game.lottery_data_rsp();
  51932. if (object.errno != null)
  51933. if ($util.Long)
  51934. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  51935. else if (typeof object.errno === "string")
  51936. message.errno = parseInt(object.errno, 10);
  51937. else if (typeof object.errno === "number")
  51938. message.errno = object.errno;
  51939. else if (typeof object.errno === "object")
  51940. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  51941. return message;
  51942. };
  51943. /**
  51944. * Creates a plain object from a lottery_data_rsp message. Also converts values to other types if specified.
  51945. * @function toObject
  51946. * @memberof game.lottery_data_rsp
  51947. * @static
  51948. * @param {game.lottery_data_rsp} message lottery_data_rsp
  51949. * @param {$protobuf.IConversionOptions} [options] Conversion options
  51950. * @returns {Object.<string,*>} Plain object
  51951. */
  51952. lottery_data_rsp.toObject = function toObject(message, options) {
  51953. if (!options)
  51954. options = {};
  51955. let object = {};
  51956. if (options.defaults)
  51957. if ($util.Long) {
  51958. let long = new $util.Long(0, 0, false);
  51959. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  51960. } else
  51961. object.errno = options.longs === String ? "0" : 0;
  51962. if (message.errno != null && message.hasOwnProperty("errno"))
  51963. if (typeof message.errno === "number")
  51964. object.errno = options.longs === String ? String(message.errno) : message.errno;
  51965. else
  51966. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  51967. return object;
  51968. };
  51969. /**
  51970. * Converts this lottery_data_rsp to JSON.
  51971. * @function toJSON
  51972. * @memberof game.lottery_data_rsp
  51973. * @instance
  51974. * @returns {Object.<string,*>} JSON object
  51975. */
  51976. lottery_data_rsp.prototype.toJSON = function toJSON() {
  51977. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  51978. };
  51979. return lottery_data_rsp;
  51980. })();
  51981. game.lottery_award = (function() {
  51982. /**
  51983. * Properties of a lottery_award.
  51984. * @memberof game
  51985. * @interface Ilottery_award
  51986. * @property {boolean|null} [free] lottery_award free
  51987. */
  51988. /**
  51989. * Constructs a new lottery_award.
  51990. * @memberof game
  51991. * @classdesc Represents a lottery_award.
  51992. * @implements Ilottery_award
  51993. * @constructor
  51994. * @param {game.Ilottery_award=} [properties] Properties to set
  51995. */
  51996. function lottery_award(properties) {
  51997. if (properties)
  51998. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  51999. if (properties[keys[i]] != null)
  52000. this[keys[i]] = properties[keys[i]];
  52001. }
  52002. /**
  52003. * lottery_award free.
  52004. * @member {boolean} free
  52005. * @memberof game.lottery_award
  52006. * @instance
  52007. */
  52008. lottery_award.prototype.free = false;
  52009. /**
  52010. * Creates a new lottery_award instance using the specified properties.
  52011. * @function create
  52012. * @memberof game.lottery_award
  52013. * @static
  52014. * @param {game.Ilottery_award=} [properties] Properties to set
  52015. * @returns {game.lottery_award} lottery_award instance
  52016. */
  52017. lottery_award.create = function create(properties) {
  52018. return new lottery_award(properties);
  52019. };
  52020. /**
  52021. * Encodes the specified lottery_award message. Does not implicitly {@link game.lottery_award.verify|verify} messages.
  52022. * @function encode
  52023. * @memberof game.lottery_award
  52024. * @static
  52025. * @param {game.Ilottery_award} message lottery_award message or plain object to encode
  52026. * @param {$protobuf.Writer} [writer] Writer to encode to
  52027. * @returns {$protobuf.Writer} Writer
  52028. */
  52029. lottery_award.encode = function encode(message, writer) {
  52030. if (!writer)
  52031. writer = $Writer.create();
  52032. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  52033. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.free);
  52034. return writer;
  52035. };
  52036. /**
  52037. * Encodes the specified lottery_award message, length delimited. Does not implicitly {@link game.lottery_award.verify|verify} messages.
  52038. * @function encodeDelimited
  52039. * @memberof game.lottery_award
  52040. * @static
  52041. * @param {game.Ilottery_award} message lottery_award message or plain object to encode
  52042. * @param {$protobuf.Writer} [writer] Writer to encode to
  52043. * @returns {$protobuf.Writer} Writer
  52044. */
  52045. lottery_award.encodeDelimited = function encodeDelimited(message, writer) {
  52046. return this.encode(message, writer).ldelim();
  52047. };
  52048. /**
  52049. * Decodes a lottery_award message from the specified reader or buffer.
  52050. * @function decode
  52051. * @memberof game.lottery_award
  52052. * @static
  52053. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52054. * @param {number} [length] Message length if known beforehand
  52055. * @returns {game.lottery_award} lottery_award
  52056. * @throws {Error} If the payload is not a reader or valid buffer
  52057. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52058. */
  52059. lottery_award.decode = function decode(reader, length) {
  52060. if (!(reader instanceof $Reader))
  52061. reader = $Reader.create(reader);
  52062. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_award();
  52063. while (reader.pos < end) {
  52064. let tag = reader.uint32();
  52065. switch (tag >>> 3) {
  52066. case 1:
  52067. message.free = reader.bool();
  52068. break;
  52069. default:
  52070. reader.skipType(tag & 7);
  52071. break;
  52072. }
  52073. }
  52074. return message;
  52075. };
  52076. /**
  52077. * Decodes a lottery_award message from the specified reader or buffer, length delimited.
  52078. * @function decodeDelimited
  52079. * @memberof game.lottery_award
  52080. * @static
  52081. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52082. * @returns {game.lottery_award} lottery_award
  52083. * @throws {Error} If the payload is not a reader or valid buffer
  52084. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52085. */
  52086. lottery_award.decodeDelimited = function decodeDelimited(reader) {
  52087. if (!(reader instanceof $Reader))
  52088. reader = new $Reader(reader);
  52089. return this.decode(reader, reader.uint32());
  52090. };
  52091. /**
  52092. * Verifies a lottery_award message.
  52093. * @function verify
  52094. * @memberof game.lottery_award
  52095. * @static
  52096. * @param {Object.<string,*>} message Plain object to verify
  52097. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52098. */
  52099. lottery_award.verify = function verify(message) {
  52100. if (typeof message !== "object" || message === null)
  52101. return "object expected";
  52102. if (message.free != null && message.hasOwnProperty("free"))
  52103. if (typeof message.free !== "boolean")
  52104. return "free: boolean expected";
  52105. return null;
  52106. };
  52107. /**
  52108. * Creates a lottery_award message from a plain object. Also converts values to their respective internal types.
  52109. * @function fromObject
  52110. * @memberof game.lottery_award
  52111. * @static
  52112. * @param {Object.<string,*>} object Plain object
  52113. * @returns {game.lottery_award} lottery_award
  52114. */
  52115. lottery_award.fromObject = function fromObject(object) {
  52116. if (object instanceof $root.game.lottery_award)
  52117. return object;
  52118. let message = new $root.game.lottery_award();
  52119. if (object.free != null)
  52120. message.free = Boolean(object.free);
  52121. return message;
  52122. };
  52123. /**
  52124. * Creates a plain object from a lottery_award message. Also converts values to other types if specified.
  52125. * @function toObject
  52126. * @memberof game.lottery_award
  52127. * @static
  52128. * @param {game.lottery_award} message lottery_award
  52129. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52130. * @returns {Object.<string,*>} Plain object
  52131. */
  52132. lottery_award.toObject = function toObject(message, options) {
  52133. if (!options)
  52134. options = {};
  52135. let object = {};
  52136. if (options.defaults)
  52137. object.free = false;
  52138. if (message.free != null && message.hasOwnProperty("free"))
  52139. object.free = message.free;
  52140. return object;
  52141. };
  52142. /**
  52143. * Converts this lottery_award to JSON.
  52144. * @function toJSON
  52145. * @memberof game.lottery_award
  52146. * @instance
  52147. * @returns {Object.<string,*>} JSON object
  52148. */
  52149. lottery_award.prototype.toJSON = function toJSON() {
  52150. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52151. };
  52152. return lottery_award;
  52153. })();
  52154. game.lottery_award_rsp = (function() {
  52155. /**
  52156. * Properties of a lottery_award_rsp.
  52157. * @memberof game
  52158. * @interface Ilottery_award_rsp
  52159. * @property {number|Long|null} [errno] lottery_award_rsp errno
  52160. * @property {boolean|null} [free] lottery_award_rsp free
  52161. * @property {number|Long|null} [award] lottery_award_rsp award
  52162. */
  52163. /**
  52164. * Constructs a new lottery_award_rsp.
  52165. * @memberof game
  52166. * @classdesc Represents a lottery_award_rsp.
  52167. * @implements Ilottery_award_rsp
  52168. * @constructor
  52169. * @param {game.Ilottery_award_rsp=} [properties] Properties to set
  52170. */
  52171. function lottery_award_rsp(properties) {
  52172. if (properties)
  52173. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52174. if (properties[keys[i]] != null)
  52175. this[keys[i]] = properties[keys[i]];
  52176. }
  52177. /**
  52178. * lottery_award_rsp errno.
  52179. * @member {number|Long} errno
  52180. * @memberof game.lottery_award_rsp
  52181. * @instance
  52182. */
  52183. lottery_award_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52184. /**
  52185. * lottery_award_rsp free.
  52186. * @member {boolean} free
  52187. * @memberof game.lottery_award_rsp
  52188. * @instance
  52189. */
  52190. lottery_award_rsp.prototype.free = false;
  52191. /**
  52192. * lottery_award_rsp award.
  52193. * @member {number|Long} award
  52194. * @memberof game.lottery_award_rsp
  52195. * @instance
  52196. */
  52197. lottery_award_rsp.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52198. /**
  52199. * Creates a new lottery_award_rsp instance using the specified properties.
  52200. * @function create
  52201. * @memberof game.lottery_award_rsp
  52202. * @static
  52203. * @param {game.Ilottery_award_rsp=} [properties] Properties to set
  52204. * @returns {game.lottery_award_rsp} lottery_award_rsp instance
  52205. */
  52206. lottery_award_rsp.create = function create(properties) {
  52207. return new lottery_award_rsp(properties);
  52208. };
  52209. /**
  52210. * Encodes the specified lottery_award_rsp message. Does not implicitly {@link game.lottery_award_rsp.verify|verify} messages.
  52211. * @function encode
  52212. * @memberof game.lottery_award_rsp
  52213. * @static
  52214. * @param {game.Ilottery_award_rsp} message lottery_award_rsp message or plain object to encode
  52215. * @param {$protobuf.Writer} [writer] Writer to encode to
  52216. * @returns {$protobuf.Writer} Writer
  52217. */
  52218. lottery_award_rsp.encode = function encode(message, writer) {
  52219. if (!writer)
  52220. writer = $Writer.create();
  52221. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  52222. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  52223. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  52224. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.free);
  52225. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  52226. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  52227. return writer;
  52228. };
  52229. /**
  52230. * Encodes the specified lottery_award_rsp message, length delimited. Does not implicitly {@link game.lottery_award_rsp.verify|verify} messages.
  52231. * @function encodeDelimited
  52232. * @memberof game.lottery_award_rsp
  52233. * @static
  52234. * @param {game.Ilottery_award_rsp} message lottery_award_rsp message or plain object to encode
  52235. * @param {$protobuf.Writer} [writer] Writer to encode to
  52236. * @returns {$protobuf.Writer} Writer
  52237. */
  52238. lottery_award_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  52239. return this.encode(message, writer).ldelim();
  52240. };
  52241. /**
  52242. * Decodes a lottery_award_rsp message from the specified reader or buffer.
  52243. * @function decode
  52244. * @memberof game.lottery_award_rsp
  52245. * @static
  52246. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52247. * @param {number} [length] Message length if known beforehand
  52248. * @returns {game.lottery_award_rsp} lottery_award_rsp
  52249. * @throws {Error} If the payload is not a reader or valid buffer
  52250. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52251. */
  52252. lottery_award_rsp.decode = function decode(reader, length) {
  52253. if (!(reader instanceof $Reader))
  52254. reader = $Reader.create(reader);
  52255. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_award_rsp();
  52256. while (reader.pos < end) {
  52257. let tag = reader.uint32();
  52258. switch (tag >>> 3) {
  52259. case 1:
  52260. message.errno = reader.int64();
  52261. break;
  52262. case 2:
  52263. message.free = reader.bool();
  52264. break;
  52265. case 3:
  52266. message.award = reader.int64();
  52267. break;
  52268. default:
  52269. reader.skipType(tag & 7);
  52270. break;
  52271. }
  52272. }
  52273. return message;
  52274. };
  52275. /**
  52276. * Decodes a lottery_award_rsp message from the specified reader or buffer, length delimited.
  52277. * @function decodeDelimited
  52278. * @memberof game.lottery_award_rsp
  52279. * @static
  52280. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52281. * @returns {game.lottery_award_rsp} lottery_award_rsp
  52282. * @throws {Error} If the payload is not a reader or valid buffer
  52283. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52284. */
  52285. lottery_award_rsp.decodeDelimited = function decodeDelimited(reader) {
  52286. if (!(reader instanceof $Reader))
  52287. reader = new $Reader(reader);
  52288. return this.decode(reader, reader.uint32());
  52289. };
  52290. /**
  52291. * Verifies a lottery_award_rsp message.
  52292. * @function verify
  52293. * @memberof game.lottery_award_rsp
  52294. * @static
  52295. * @param {Object.<string,*>} message Plain object to verify
  52296. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52297. */
  52298. lottery_award_rsp.verify = function verify(message) {
  52299. if (typeof message !== "object" || message === null)
  52300. return "object expected";
  52301. if (message.errno != null && message.hasOwnProperty("errno"))
  52302. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  52303. return "errno: integer|Long expected";
  52304. if (message.free != null && message.hasOwnProperty("free"))
  52305. if (typeof message.free !== "boolean")
  52306. return "free: boolean expected";
  52307. if (message.award != null && message.hasOwnProperty("award"))
  52308. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  52309. return "award: integer|Long expected";
  52310. return null;
  52311. };
  52312. /**
  52313. * Creates a lottery_award_rsp message from a plain object. Also converts values to their respective internal types.
  52314. * @function fromObject
  52315. * @memberof game.lottery_award_rsp
  52316. * @static
  52317. * @param {Object.<string,*>} object Plain object
  52318. * @returns {game.lottery_award_rsp} lottery_award_rsp
  52319. */
  52320. lottery_award_rsp.fromObject = function fromObject(object) {
  52321. if (object instanceof $root.game.lottery_award_rsp)
  52322. return object;
  52323. let message = new $root.game.lottery_award_rsp();
  52324. if (object.errno != null)
  52325. if ($util.Long)
  52326. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  52327. else if (typeof object.errno === "string")
  52328. message.errno = parseInt(object.errno, 10);
  52329. else if (typeof object.errno === "number")
  52330. message.errno = object.errno;
  52331. else if (typeof object.errno === "object")
  52332. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  52333. if (object.free != null)
  52334. message.free = Boolean(object.free);
  52335. if (object.award != null)
  52336. if ($util.Long)
  52337. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  52338. else if (typeof object.award === "string")
  52339. message.award = parseInt(object.award, 10);
  52340. else if (typeof object.award === "number")
  52341. message.award = object.award;
  52342. else if (typeof object.award === "object")
  52343. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  52344. return message;
  52345. };
  52346. /**
  52347. * Creates a plain object from a lottery_award_rsp message. Also converts values to other types if specified.
  52348. * @function toObject
  52349. * @memberof game.lottery_award_rsp
  52350. * @static
  52351. * @param {game.lottery_award_rsp} message lottery_award_rsp
  52352. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52353. * @returns {Object.<string,*>} Plain object
  52354. */
  52355. lottery_award_rsp.toObject = function toObject(message, options) {
  52356. if (!options)
  52357. options = {};
  52358. let object = {};
  52359. if (options.defaults) {
  52360. if ($util.Long) {
  52361. let long = new $util.Long(0, 0, false);
  52362. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52363. } else
  52364. object.errno = options.longs === String ? "0" : 0;
  52365. object.free = false;
  52366. if ($util.Long) {
  52367. let long = new $util.Long(0, 0, false);
  52368. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52369. } else
  52370. object.award = options.longs === String ? "0" : 0;
  52371. }
  52372. if (message.errno != null && message.hasOwnProperty("errno"))
  52373. if (typeof message.errno === "number")
  52374. object.errno = options.longs === String ? String(message.errno) : message.errno;
  52375. else
  52376. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  52377. if (message.free != null && message.hasOwnProperty("free"))
  52378. object.free = message.free;
  52379. if (message.award != null && message.hasOwnProperty("award"))
  52380. if (typeof message.award === "number")
  52381. object.award = options.longs === String ? String(message.award) : message.award;
  52382. else
  52383. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  52384. return object;
  52385. };
  52386. /**
  52387. * Converts this lottery_award_rsp to JSON.
  52388. * @function toJSON
  52389. * @memberof game.lottery_award_rsp
  52390. * @instance
  52391. * @returns {Object.<string,*>} JSON object
  52392. */
  52393. lottery_award_rsp.prototype.toJSON = function toJSON() {
  52394. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52395. };
  52396. return lottery_award_rsp;
  52397. })();
  52398. game.lottery_buy = (function() {
  52399. /**
  52400. * Properties of a lottery_buy.
  52401. * @memberof game
  52402. * @interface Ilottery_buy
  52403. */
  52404. /**
  52405. * Constructs a new lottery_buy.
  52406. * @memberof game
  52407. * @classdesc Represents a lottery_buy.
  52408. * @implements Ilottery_buy
  52409. * @constructor
  52410. * @param {game.Ilottery_buy=} [properties] Properties to set
  52411. */
  52412. function lottery_buy(properties) {
  52413. if (properties)
  52414. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52415. if (properties[keys[i]] != null)
  52416. this[keys[i]] = properties[keys[i]];
  52417. }
  52418. /**
  52419. * Creates a new lottery_buy instance using the specified properties.
  52420. * @function create
  52421. * @memberof game.lottery_buy
  52422. * @static
  52423. * @param {game.Ilottery_buy=} [properties] Properties to set
  52424. * @returns {game.lottery_buy} lottery_buy instance
  52425. */
  52426. lottery_buy.create = function create(properties) {
  52427. return new lottery_buy(properties);
  52428. };
  52429. /**
  52430. * Encodes the specified lottery_buy message. Does not implicitly {@link game.lottery_buy.verify|verify} messages.
  52431. * @function encode
  52432. * @memberof game.lottery_buy
  52433. * @static
  52434. * @param {game.Ilottery_buy} message lottery_buy message or plain object to encode
  52435. * @param {$protobuf.Writer} [writer] Writer to encode to
  52436. * @returns {$protobuf.Writer} Writer
  52437. */
  52438. lottery_buy.encode = function encode(message, writer) {
  52439. if (!writer)
  52440. writer = $Writer.create();
  52441. return writer;
  52442. };
  52443. /**
  52444. * Encodes the specified lottery_buy message, length delimited. Does not implicitly {@link game.lottery_buy.verify|verify} messages.
  52445. * @function encodeDelimited
  52446. * @memberof game.lottery_buy
  52447. * @static
  52448. * @param {game.Ilottery_buy} message lottery_buy message or plain object to encode
  52449. * @param {$protobuf.Writer} [writer] Writer to encode to
  52450. * @returns {$protobuf.Writer} Writer
  52451. */
  52452. lottery_buy.encodeDelimited = function encodeDelimited(message, writer) {
  52453. return this.encode(message, writer).ldelim();
  52454. };
  52455. /**
  52456. * Decodes a lottery_buy message from the specified reader or buffer.
  52457. * @function decode
  52458. * @memberof game.lottery_buy
  52459. * @static
  52460. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52461. * @param {number} [length] Message length if known beforehand
  52462. * @returns {game.lottery_buy} lottery_buy
  52463. * @throws {Error} If the payload is not a reader or valid buffer
  52464. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52465. */
  52466. lottery_buy.decode = function decode(reader, length) {
  52467. if (!(reader instanceof $Reader))
  52468. reader = $Reader.create(reader);
  52469. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_buy();
  52470. while (reader.pos < end) {
  52471. let tag = reader.uint32();
  52472. switch (tag >>> 3) {
  52473. default:
  52474. reader.skipType(tag & 7);
  52475. break;
  52476. }
  52477. }
  52478. return message;
  52479. };
  52480. /**
  52481. * Decodes a lottery_buy message from the specified reader or buffer, length delimited.
  52482. * @function decodeDelimited
  52483. * @memberof game.lottery_buy
  52484. * @static
  52485. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52486. * @returns {game.lottery_buy} lottery_buy
  52487. * @throws {Error} If the payload is not a reader or valid buffer
  52488. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52489. */
  52490. lottery_buy.decodeDelimited = function decodeDelimited(reader) {
  52491. if (!(reader instanceof $Reader))
  52492. reader = new $Reader(reader);
  52493. return this.decode(reader, reader.uint32());
  52494. };
  52495. /**
  52496. * Verifies a lottery_buy message.
  52497. * @function verify
  52498. * @memberof game.lottery_buy
  52499. * @static
  52500. * @param {Object.<string,*>} message Plain object to verify
  52501. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52502. */
  52503. lottery_buy.verify = function verify(message) {
  52504. if (typeof message !== "object" || message === null)
  52505. return "object expected";
  52506. return null;
  52507. };
  52508. /**
  52509. * Creates a lottery_buy message from a plain object. Also converts values to their respective internal types.
  52510. * @function fromObject
  52511. * @memberof game.lottery_buy
  52512. * @static
  52513. * @param {Object.<string,*>} object Plain object
  52514. * @returns {game.lottery_buy} lottery_buy
  52515. */
  52516. lottery_buy.fromObject = function fromObject(object) {
  52517. if (object instanceof $root.game.lottery_buy)
  52518. return object;
  52519. return new $root.game.lottery_buy();
  52520. };
  52521. /**
  52522. * Creates a plain object from a lottery_buy message. Also converts values to other types if specified.
  52523. * @function toObject
  52524. * @memberof game.lottery_buy
  52525. * @static
  52526. * @param {game.lottery_buy} message lottery_buy
  52527. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52528. * @returns {Object.<string,*>} Plain object
  52529. */
  52530. lottery_buy.toObject = function toObject() {
  52531. return {};
  52532. };
  52533. /**
  52534. * Converts this lottery_buy to JSON.
  52535. * @function toJSON
  52536. * @memberof game.lottery_buy
  52537. * @instance
  52538. * @returns {Object.<string,*>} JSON object
  52539. */
  52540. lottery_buy.prototype.toJSON = function toJSON() {
  52541. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52542. };
  52543. return lottery_buy;
  52544. })();
  52545. game.lottery_buy_rsp = (function() {
  52546. /**
  52547. * Properties of a lottery_buy_rsp.
  52548. * @memberof game
  52549. * @interface Ilottery_buy_rsp
  52550. * @property {number|Long|null} [errno] lottery_buy_rsp errno
  52551. */
  52552. /**
  52553. * Constructs a new lottery_buy_rsp.
  52554. * @memberof game
  52555. * @classdesc Represents a lottery_buy_rsp.
  52556. * @implements Ilottery_buy_rsp
  52557. * @constructor
  52558. * @param {game.Ilottery_buy_rsp=} [properties] Properties to set
  52559. */
  52560. function lottery_buy_rsp(properties) {
  52561. if (properties)
  52562. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52563. if (properties[keys[i]] != null)
  52564. this[keys[i]] = properties[keys[i]];
  52565. }
  52566. /**
  52567. * lottery_buy_rsp errno.
  52568. * @member {number|Long} errno
  52569. * @memberof game.lottery_buy_rsp
  52570. * @instance
  52571. */
  52572. lottery_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52573. /**
  52574. * Creates a new lottery_buy_rsp instance using the specified properties.
  52575. * @function create
  52576. * @memberof game.lottery_buy_rsp
  52577. * @static
  52578. * @param {game.Ilottery_buy_rsp=} [properties] Properties to set
  52579. * @returns {game.lottery_buy_rsp} lottery_buy_rsp instance
  52580. */
  52581. lottery_buy_rsp.create = function create(properties) {
  52582. return new lottery_buy_rsp(properties);
  52583. };
  52584. /**
  52585. * Encodes the specified lottery_buy_rsp message. Does not implicitly {@link game.lottery_buy_rsp.verify|verify} messages.
  52586. * @function encode
  52587. * @memberof game.lottery_buy_rsp
  52588. * @static
  52589. * @param {game.Ilottery_buy_rsp} message lottery_buy_rsp message or plain object to encode
  52590. * @param {$protobuf.Writer} [writer] Writer to encode to
  52591. * @returns {$protobuf.Writer} Writer
  52592. */
  52593. lottery_buy_rsp.encode = function encode(message, writer) {
  52594. if (!writer)
  52595. writer = $Writer.create();
  52596. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  52597. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  52598. return writer;
  52599. };
  52600. /**
  52601. * Encodes the specified lottery_buy_rsp message, length delimited. Does not implicitly {@link game.lottery_buy_rsp.verify|verify} messages.
  52602. * @function encodeDelimited
  52603. * @memberof game.lottery_buy_rsp
  52604. * @static
  52605. * @param {game.Ilottery_buy_rsp} message lottery_buy_rsp message or plain object to encode
  52606. * @param {$protobuf.Writer} [writer] Writer to encode to
  52607. * @returns {$protobuf.Writer} Writer
  52608. */
  52609. lottery_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  52610. return this.encode(message, writer).ldelim();
  52611. };
  52612. /**
  52613. * Decodes a lottery_buy_rsp message from the specified reader or buffer.
  52614. * @function decode
  52615. * @memberof game.lottery_buy_rsp
  52616. * @static
  52617. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52618. * @param {number} [length] Message length if known beforehand
  52619. * @returns {game.lottery_buy_rsp} lottery_buy_rsp
  52620. * @throws {Error} If the payload is not a reader or valid buffer
  52621. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52622. */
  52623. lottery_buy_rsp.decode = function decode(reader, length) {
  52624. if (!(reader instanceof $Reader))
  52625. reader = $Reader.create(reader);
  52626. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_buy_rsp();
  52627. while (reader.pos < end) {
  52628. let tag = reader.uint32();
  52629. switch (tag >>> 3) {
  52630. case 1:
  52631. message.errno = reader.int64();
  52632. break;
  52633. default:
  52634. reader.skipType(tag & 7);
  52635. break;
  52636. }
  52637. }
  52638. return message;
  52639. };
  52640. /**
  52641. * Decodes a lottery_buy_rsp message from the specified reader or buffer, length delimited.
  52642. * @function decodeDelimited
  52643. * @memberof game.lottery_buy_rsp
  52644. * @static
  52645. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52646. * @returns {game.lottery_buy_rsp} lottery_buy_rsp
  52647. * @throws {Error} If the payload is not a reader or valid buffer
  52648. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52649. */
  52650. lottery_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  52651. if (!(reader instanceof $Reader))
  52652. reader = new $Reader(reader);
  52653. return this.decode(reader, reader.uint32());
  52654. };
  52655. /**
  52656. * Verifies a lottery_buy_rsp message.
  52657. * @function verify
  52658. * @memberof game.lottery_buy_rsp
  52659. * @static
  52660. * @param {Object.<string,*>} message Plain object to verify
  52661. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52662. */
  52663. lottery_buy_rsp.verify = function verify(message) {
  52664. if (typeof message !== "object" || message === null)
  52665. return "object expected";
  52666. if (message.errno != null && message.hasOwnProperty("errno"))
  52667. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  52668. return "errno: integer|Long expected";
  52669. return null;
  52670. };
  52671. /**
  52672. * Creates a lottery_buy_rsp message from a plain object. Also converts values to their respective internal types.
  52673. * @function fromObject
  52674. * @memberof game.lottery_buy_rsp
  52675. * @static
  52676. * @param {Object.<string,*>} object Plain object
  52677. * @returns {game.lottery_buy_rsp} lottery_buy_rsp
  52678. */
  52679. lottery_buy_rsp.fromObject = function fromObject(object) {
  52680. if (object instanceof $root.game.lottery_buy_rsp)
  52681. return object;
  52682. let message = new $root.game.lottery_buy_rsp();
  52683. if (object.errno != null)
  52684. if ($util.Long)
  52685. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  52686. else if (typeof object.errno === "string")
  52687. message.errno = parseInt(object.errno, 10);
  52688. else if (typeof object.errno === "number")
  52689. message.errno = object.errno;
  52690. else if (typeof object.errno === "object")
  52691. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  52692. return message;
  52693. };
  52694. /**
  52695. * Creates a plain object from a lottery_buy_rsp message. Also converts values to other types if specified.
  52696. * @function toObject
  52697. * @memberof game.lottery_buy_rsp
  52698. * @static
  52699. * @param {game.lottery_buy_rsp} message lottery_buy_rsp
  52700. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52701. * @returns {Object.<string,*>} Plain object
  52702. */
  52703. lottery_buy_rsp.toObject = function toObject(message, options) {
  52704. if (!options)
  52705. options = {};
  52706. let object = {};
  52707. if (options.defaults)
  52708. if ($util.Long) {
  52709. let long = new $util.Long(0, 0, false);
  52710. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52711. } else
  52712. object.errno = options.longs === String ? "0" : 0;
  52713. if (message.errno != null && message.hasOwnProperty("errno"))
  52714. if (typeof message.errno === "number")
  52715. object.errno = options.longs === String ? String(message.errno) : message.errno;
  52716. else
  52717. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  52718. return object;
  52719. };
  52720. /**
  52721. * Converts this lottery_buy_rsp to JSON.
  52722. * @function toJSON
  52723. * @memberof game.lottery_buy_rsp
  52724. * @instance
  52725. * @returns {Object.<string,*>} JSON object
  52726. */
  52727. lottery_buy_rsp.prototype.toJSON = function toJSON() {
  52728. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  52729. };
  52730. return lottery_buy_rsp;
  52731. })();
  52732. game.lottery_nty = (function() {
  52733. /**
  52734. * Properties of a lottery_nty.
  52735. * @memberof game
  52736. * @interface Ilottery_nty
  52737. * @property {number|Long|null} [state] lottery_nty state
  52738. * @property {number|Long|null} [free] lottery_nty free
  52739. * @property {number|Long|null} [award] lottery_nty award
  52740. * @property {number|Long|null} [day] lottery_nty day
  52741. */
  52742. /**
  52743. * Constructs a new lottery_nty.
  52744. * @memberof game
  52745. * @classdesc Represents a lottery_nty.
  52746. * @implements Ilottery_nty
  52747. * @constructor
  52748. * @param {game.Ilottery_nty=} [properties] Properties to set
  52749. */
  52750. function lottery_nty(properties) {
  52751. if (properties)
  52752. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  52753. if (properties[keys[i]] != null)
  52754. this[keys[i]] = properties[keys[i]];
  52755. }
  52756. /**
  52757. * lottery_nty state.
  52758. * @member {number|Long} state
  52759. * @memberof game.lottery_nty
  52760. * @instance
  52761. */
  52762. lottery_nty.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52763. /**
  52764. * lottery_nty free.
  52765. * @member {number|Long} free
  52766. * @memberof game.lottery_nty
  52767. * @instance
  52768. */
  52769. lottery_nty.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52770. /**
  52771. * lottery_nty award.
  52772. * @member {number|Long} award
  52773. * @memberof game.lottery_nty
  52774. * @instance
  52775. */
  52776. lottery_nty.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52777. /**
  52778. * lottery_nty day.
  52779. * @member {number|Long} day
  52780. * @memberof game.lottery_nty
  52781. * @instance
  52782. */
  52783. lottery_nty.prototype.day = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  52784. /**
  52785. * Creates a new lottery_nty instance using the specified properties.
  52786. * @function create
  52787. * @memberof game.lottery_nty
  52788. * @static
  52789. * @param {game.Ilottery_nty=} [properties] Properties to set
  52790. * @returns {game.lottery_nty} lottery_nty instance
  52791. */
  52792. lottery_nty.create = function create(properties) {
  52793. return new lottery_nty(properties);
  52794. };
  52795. /**
  52796. * Encodes the specified lottery_nty message. Does not implicitly {@link game.lottery_nty.verify|verify} messages.
  52797. * @function encode
  52798. * @memberof game.lottery_nty
  52799. * @static
  52800. * @param {game.Ilottery_nty} message lottery_nty message or plain object to encode
  52801. * @param {$protobuf.Writer} [writer] Writer to encode to
  52802. * @returns {$protobuf.Writer} Writer
  52803. */
  52804. lottery_nty.encode = function encode(message, writer) {
  52805. if (!writer)
  52806. writer = $Writer.create();
  52807. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  52808. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.state);
  52809. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  52810. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.free);
  52811. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  52812. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.award);
  52813. if (message.day != null && Object.hasOwnProperty.call(message, "day"))
  52814. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.day);
  52815. return writer;
  52816. };
  52817. /**
  52818. * Encodes the specified lottery_nty message, length delimited. Does not implicitly {@link game.lottery_nty.verify|verify} messages.
  52819. * @function encodeDelimited
  52820. * @memberof game.lottery_nty
  52821. * @static
  52822. * @param {game.Ilottery_nty} message lottery_nty message or plain object to encode
  52823. * @param {$protobuf.Writer} [writer] Writer to encode to
  52824. * @returns {$protobuf.Writer} Writer
  52825. */
  52826. lottery_nty.encodeDelimited = function encodeDelimited(message, writer) {
  52827. return this.encode(message, writer).ldelim();
  52828. };
  52829. /**
  52830. * Decodes a lottery_nty message from the specified reader or buffer.
  52831. * @function decode
  52832. * @memberof game.lottery_nty
  52833. * @static
  52834. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52835. * @param {number} [length] Message length if known beforehand
  52836. * @returns {game.lottery_nty} lottery_nty
  52837. * @throws {Error} If the payload is not a reader or valid buffer
  52838. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52839. */
  52840. lottery_nty.decode = function decode(reader, length) {
  52841. if (!(reader instanceof $Reader))
  52842. reader = $Reader.create(reader);
  52843. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.lottery_nty();
  52844. while (reader.pos < end) {
  52845. let tag = reader.uint32();
  52846. switch (tag >>> 3) {
  52847. case 1:
  52848. message.state = reader.int64();
  52849. break;
  52850. case 2:
  52851. message.free = reader.int64();
  52852. break;
  52853. case 3:
  52854. message.award = reader.int64();
  52855. break;
  52856. case 4:
  52857. message.day = reader.int64();
  52858. break;
  52859. default:
  52860. reader.skipType(tag & 7);
  52861. break;
  52862. }
  52863. }
  52864. return message;
  52865. };
  52866. /**
  52867. * Decodes a lottery_nty message from the specified reader or buffer, length delimited.
  52868. * @function decodeDelimited
  52869. * @memberof game.lottery_nty
  52870. * @static
  52871. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  52872. * @returns {game.lottery_nty} lottery_nty
  52873. * @throws {Error} If the payload is not a reader or valid buffer
  52874. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  52875. */
  52876. lottery_nty.decodeDelimited = function decodeDelimited(reader) {
  52877. if (!(reader instanceof $Reader))
  52878. reader = new $Reader(reader);
  52879. return this.decode(reader, reader.uint32());
  52880. };
  52881. /**
  52882. * Verifies a lottery_nty message.
  52883. * @function verify
  52884. * @memberof game.lottery_nty
  52885. * @static
  52886. * @param {Object.<string,*>} message Plain object to verify
  52887. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  52888. */
  52889. lottery_nty.verify = function verify(message) {
  52890. if (typeof message !== "object" || message === null)
  52891. return "object expected";
  52892. if (message.state != null && message.hasOwnProperty("state"))
  52893. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  52894. return "state: integer|Long expected";
  52895. if (message.free != null && message.hasOwnProperty("free"))
  52896. if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
  52897. return "free: integer|Long expected";
  52898. if (message.award != null && message.hasOwnProperty("award"))
  52899. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  52900. return "award: integer|Long expected";
  52901. if (message.day != null && message.hasOwnProperty("day"))
  52902. if (!$util.isInteger(message.day) && !(message.day && $util.isInteger(message.day.low) && $util.isInteger(message.day.high)))
  52903. return "day: integer|Long expected";
  52904. return null;
  52905. };
  52906. /**
  52907. * Creates a lottery_nty message from a plain object. Also converts values to their respective internal types.
  52908. * @function fromObject
  52909. * @memberof game.lottery_nty
  52910. * @static
  52911. * @param {Object.<string,*>} object Plain object
  52912. * @returns {game.lottery_nty} lottery_nty
  52913. */
  52914. lottery_nty.fromObject = function fromObject(object) {
  52915. if (object instanceof $root.game.lottery_nty)
  52916. return object;
  52917. let message = new $root.game.lottery_nty();
  52918. if (object.state != null)
  52919. if ($util.Long)
  52920. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  52921. else if (typeof object.state === "string")
  52922. message.state = parseInt(object.state, 10);
  52923. else if (typeof object.state === "number")
  52924. message.state = object.state;
  52925. else if (typeof object.state === "object")
  52926. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  52927. if (object.free != null)
  52928. if ($util.Long)
  52929. (message.free = $util.Long.fromValue(object.free)).unsigned = false;
  52930. else if (typeof object.free === "string")
  52931. message.free = parseInt(object.free, 10);
  52932. else if (typeof object.free === "number")
  52933. message.free = object.free;
  52934. else if (typeof object.free === "object")
  52935. message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
  52936. if (object.award != null)
  52937. if ($util.Long)
  52938. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  52939. else if (typeof object.award === "string")
  52940. message.award = parseInt(object.award, 10);
  52941. else if (typeof object.award === "number")
  52942. message.award = object.award;
  52943. else if (typeof object.award === "object")
  52944. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  52945. if (object.day != null)
  52946. if ($util.Long)
  52947. (message.day = $util.Long.fromValue(object.day)).unsigned = false;
  52948. else if (typeof object.day === "string")
  52949. message.day = parseInt(object.day, 10);
  52950. else if (typeof object.day === "number")
  52951. message.day = object.day;
  52952. else if (typeof object.day === "object")
  52953. message.day = new $util.LongBits(object.day.low >>> 0, object.day.high >>> 0).toNumber();
  52954. return message;
  52955. };
  52956. /**
  52957. * Creates a plain object from a lottery_nty message. Also converts values to other types if specified.
  52958. * @function toObject
  52959. * @memberof game.lottery_nty
  52960. * @static
  52961. * @param {game.lottery_nty} message lottery_nty
  52962. * @param {$protobuf.IConversionOptions} [options] Conversion options
  52963. * @returns {Object.<string,*>} Plain object
  52964. */
  52965. lottery_nty.toObject = function toObject(message, options) {
  52966. if (!options)
  52967. options = {};
  52968. let object = {};
  52969. if (options.defaults) {
  52970. if ($util.Long) {
  52971. let long = new $util.Long(0, 0, false);
  52972. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52973. } else
  52974. object.state = options.longs === String ? "0" : 0;
  52975. if ($util.Long) {
  52976. let long = new $util.Long(0, 0, false);
  52977. object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52978. } else
  52979. object.free = options.longs === String ? "0" : 0;
  52980. if ($util.Long) {
  52981. let long = new $util.Long(0, 0, false);
  52982. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52983. } else
  52984. object.award = options.longs === String ? "0" : 0;
  52985. if ($util.Long) {
  52986. let long = new $util.Long(0, 0, false);
  52987. object.day = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  52988. } else
  52989. object.day = options.longs === String ? "0" : 0;
  52990. }
  52991. if (message.state != null && message.hasOwnProperty("state"))
  52992. if (typeof message.state === "number")
  52993. object.state = options.longs === String ? String(message.state) : message.state;
  52994. else
  52995. object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
  52996. if (message.free != null && message.hasOwnProperty("free"))
  52997. if (typeof message.free === "number")
  52998. object.free = options.longs === String ? String(message.free) : message.free;
  52999. else
  53000. object.free = options.longs === String ? $util.Long.prototype.toString.call(message.free) : options.longs === Number ? new $util.LongBits(message.free.low >>> 0, message.free.high >>> 0).toNumber() : message.free;
  53001. if (message.award != null && message.hasOwnProperty("award"))
  53002. if (typeof message.award === "number")
  53003. object.award = options.longs === String ? String(message.award) : message.award;
  53004. else
  53005. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  53006. if (message.day != null && message.hasOwnProperty("day"))
  53007. if (typeof message.day === "number")
  53008. object.day = options.longs === String ? String(message.day) : message.day;
  53009. else
  53010. object.day = options.longs === String ? $util.Long.prototype.toString.call(message.day) : options.longs === Number ? new $util.LongBits(message.day.low >>> 0, message.day.high >>> 0).toNumber() : message.day;
  53011. return object;
  53012. };
  53013. /**
  53014. * Converts this lottery_nty to JSON.
  53015. * @function toJSON
  53016. * @memberof game.lottery_nty
  53017. * @instance
  53018. * @returns {Object.<string,*>} JSON object
  53019. */
  53020. lottery_nty.prototype.toJSON = function toJSON() {
  53021. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53022. };
  53023. return lottery_nty;
  53024. })();
  53025. game.act_rank_data = (function() {
  53026. /**
  53027. * Properties of an act_rank_data.
  53028. * @memberof game
  53029. * @interface Iact_rank_data
  53030. * @property {number|Long|null} [id] act_rank_data id
  53031. */
  53032. /**
  53033. * Constructs a new act_rank_data.
  53034. * @memberof game
  53035. * @classdesc Represents an act_rank_data.
  53036. * @implements Iact_rank_data
  53037. * @constructor
  53038. * @param {game.Iact_rank_data=} [properties] Properties to set
  53039. */
  53040. function act_rank_data(properties) {
  53041. if (properties)
  53042. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53043. if (properties[keys[i]] != null)
  53044. this[keys[i]] = properties[keys[i]];
  53045. }
  53046. /**
  53047. * act_rank_data id.
  53048. * @member {number|Long} id
  53049. * @memberof game.act_rank_data
  53050. * @instance
  53051. */
  53052. act_rank_data.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53053. /**
  53054. * Creates a new act_rank_data instance using the specified properties.
  53055. * @function create
  53056. * @memberof game.act_rank_data
  53057. * @static
  53058. * @param {game.Iact_rank_data=} [properties] Properties to set
  53059. * @returns {game.act_rank_data} act_rank_data instance
  53060. */
  53061. act_rank_data.create = function create(properties) {
  53062. return new act_rank_data(properties);
  53063. };
  53064. /**
  53065. * Encodes the specified act_rank_data message. Does not implicitly {@link game.act_rank_data.verify|verify} messages.
  53066. * @function encode
  53067. * @memberof game.act_rank_data
  53068. * @static
  53069. * @param {game.Iact_rank_data} message act_rank_data message or plain object to encode
  53070. * @param {$protobuf.Writer} [writer] Writer to encode to
  53071. * @returns {$protobuf.Writer} Writer
  53072. */
  53073. act_rank_data.encode = function encode(message, writer) {
  53074. if (!writer)
  53075. writer = $Writer.create();
  53076. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  53077. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  53078. return writer;
  53079. };
  53080. /**
  53081. * Encodes the specified act_rank_data message, length delimited. Does not implicitly {@link game.act_rank_data.verify|verify} messages.
  53082. * @function encodeDelimited
  53083. * @memberof game.act_rank_data
  53084. * @static
  53085. * @param {game.Iact_rank_data} message act_rank_data message or plain object to encode
  53086. * @param {$protobuf.Writer} [writer] Writer to encode to
  53087. * @returns {$protobuf.Writer} Writer
  53088. */
  53089. act_rank_data.encodeDelimited = function encodeDelimited(message, writer) {
  53090. return this.encode(message, writer).ldelim();
  53091. };
  53092. /**
  53093. * Decodes an act_rank_data message from the specified reader or buffer.
  53094. * @function decode
  53095. * @memberof game.act_rank_data
  53096. * @static
  53097. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53098. * @param {number} [length] Message length if known beforehand
  53099. * @returns {game.act_rank_data} act_rank_data
  53100. * @throws {Error} If the payload is not a reader or valid buffer
  53101. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53102. */
  53103. act_rank_data.decode = function decode(reader, length) {
  53104. if (!(reader instanceof $Reader))
  53105. reader = $Reader.create(reader);
  53106. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.act_rank_data();
  53107. while (reader.pos < end) {
  53108. let tag = reader.uint32();
  53109. switch (tag >>> 3) {
  53110. case 1:
  53111. message.id = reader.int64();
  53112. break;
  53113. default:
  53114. reader.skipType(tag & 7);
  53115. break;
  53116. }
  53117. }
  53118. return message;
  53119. };
  53120. /**
  53121. * Decodes an act_rank_data message from the specified reader or buffer, length delimited.
  53122. * @function decodeDelimited
  53123. * @memberof game.act_rank_data
  53124. * @static
  53125. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53126. * @returns {game.act_rank_data} act_rank_data
  53127. * @throws {Error} If the payload is not a reader or valid buffer
  53128. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53129. */
  53130. act_rank_data.decodeDelimited = function decodeDelimited(reader) {
  53131. if (!(reader instanceof $Reader))
  53132. reader = new $Reader(reader);
  53133. return this.decode(reader, reader.uint32());
  53134. };
  53135. /**
  53136. * Verifies an act_rank_data message.
  53137. * @function verify
  53138. * @memberof game.act_rank_data
  53139. * @static
  53140. * @param {Object.<string,*>} message Plain object to verify
  53141. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53142. */
  53143. act_rank_data.verify = function verify(message) {
  53144. if (typeof message !== "object" || message === null)
  53145. return "object expected";
  53146. if (message.id != null && message.hasOwnProperty("id"))
  53147. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  53148. return "id: integer|Long expected";
  53149. return null;
  53150. };
  53151. /**
  53152. * Creates an act_rank_data message from a plain object. Also converts values to their respective internal types.
  53153. * @function fromObject
  53154. * @memberof game.act_rank_data
  53155. * @static
  53156. * @param {Object.<string,*>} object Plain object
  53157. * @returns {game.act_rank_data} act_rank_data
  53158. */
  53159. act_rank_data.fromObject = function fromObject(object) {
  53160. if (object instanceof $root.game.act_rank_data)
  53161. return object;
  53162. let message = new $root.game.act_rank_data();
  53163. if (object.id != null)
  53164. if ($util.Long)
  53165. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  53166. else if (typeof object.id === "string")
  53167. message.id = parseInt(object.id, 10);
  53168. else if (typeof object.id === "number")
  53169. message.id = object.id;
  53170. else if (typeof object.id === "object")
  53171. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  53172. return message;
  53173. };
  53174. /**
  53175. * Creates a plain object from an act_rank_data message. Also converts values to other types if specified.
  53176. * @function toObject
  53177. * @memberof game.act_rank_data
  53178. * @static
  53179. * @param {game.act_rank_data} message act_rank_data
  53180. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53181. * @returns {Object.<string,*>} Plain object
  53182. */
  53183. act_rank_data.toObject = function toObject(message, options) {
  53184. if (!options)
  53185. options = {};
  53186. let object = {};
  53187. if (options.defaults)
  53188. if ($util.Long) {
  53189. let long = new $util.Long(0, 0, false);
  53190. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53191. } else
  53192. object.id = options.longs === String ? "0" : 0;
  53193. if (message.id != null && message.hasOwnProperty("id"))
  53194. if (typeof message.id === "number")
  53195. object.id = options.longs === String ? String(message.id) : message.id;
  53196. else
  53197. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  53198. return object;
  53199. };
  53200. /**
  53201. * Converts this act_rank_data to JSON.
  53202. * @function toJSON
  53203. * @memberof game.act_rank_data
  53204. * @instance
  53205. * @returns {Object.<string,*>} JSON object
  53206. */
  53207. act_rank_data.prototype.toJSON = function toJSON() {
  53208. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53209. };
  53210. return act_rank_data;
  53211. })();
  53212. game.act_rank_data_rsp = (function() {
  53213. /**
  53214. * Properties of an act_rank_data_rsp.
  53215. * @memberof game
  53216. * @interface Iact_rank_data_rsp
  53217. * @property {number|Long|null} [errno] act_rank_data_rsp errno
  53218. * @property {Array.<game.Iranking_info>|null} [list] act_rank_data_rsp list
  53219. */
  53220. /**
  53221. * Constructs a new act_rank_data_rsp.
  53222. * @memberof game
  53223. * @classdesc Represents an act_rank_data_rsp.
  53224. * @implements Iact_rank_data_rsp
  53225. * @constructor
  53226. * @param {game.Iact_rank_data_rsp=} [properties] Properties to set
  53227. */
  53228. function act_rank_data_rsp(properties) {
  53229. this.list = [];
  53230. if (properties)
  53231. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53232. if (properties[keys[i]] != null)
  53233. this[keys[i]] = properties[keys[i]];
  53234. }
  53235. /**
  53236. * act_rank_data_rsp errno.
  53237. * @member {number|Long} errno
  53238. * @memberof game.act_rank_data_rsp
  53239. * @instance
  53240. */
  53241. act_rank_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53242. /**
  53243. * act_rank_data_rsp list.
  53244. * @member {Array.<game.Iranking_info>} list
  53245. * @memberof game.act_rank_data_rsp
  53246. * @instance
  53247. */
  53248. act_rank_data_rsp.prototype.list = $util.emptyArray;
  53249. /**
  53250. * Creates a new act_rank_data_rsp instance using the specified properties.
  53251. * @function create
  53252. * @memberof game.act_rank_data_rsp
  53253. * @static
  53254. * @param {game.Iact_rank_data_rsp=} [properties] Properties to set
  53255. * @returns {game.act_rank_data_rsp} act_rank_data_rsp instance
  53256. */
  53257. act_rank_data_rsp.create = function create(properties) {
  53258. return new act_rank_data_rsp(properties);
  53259. };
  53260. /**
  53261. * Encodes the specified act_rank_data_rsp message. Does not implicitly {@link game.act_rank_data_rsp.verify|verify} messages.
  53262. * @function encode
  53263. * @memberof game.act_rank_data_rsp
  53264. * @static
  53265. * @param {game.Iact_rank_data_rsp} message act_rank_data_rsp message or plain object to encode
  53266. * @param {$protobuf.Writer} [writer] Writer to encode to
  53267. * @returns {$protobuf.Writer} Writer
  53268. */
  53269. act_rank_data_rsp.encode = function encode(message, writer) {
  53270. if (!writer)
  53271. writer = $Writer.create();
  53272. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  53273. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  53274. if (message.list != null && message.list.length)
  53275. for (let i = 0; i < message.list.length; ++i)
  53276. $root.game.ranking_info.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  53277. return writer;
  53278. };
  53279. /**
  53280. * Encodes the specified act_rank_data_rsp message, length delimited. Does not implicitly {@link game.act_rank_data_rsp.verify|verify} messages.
  53281. * @function encodeDelimited
  53282. * @memberof game.act_rank_data_rsp
  53283. * @static
  53284. * @param {game.Iact_rank_data_rsp} message act_rank_data_rsp message or plain object to encode
  53285. * @param {$protobuf.Writer} [writer] Writer to encode to
  53286. * @returns {$protobuf.Writer} Writer
  53287. */
  53288. act_rank_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  53289. return this.encode(message, writer).ldelim();
  53290. };
  53291. /**
  53292. * Decodes an act_rank_data_rsp message from the specified reader or buffer.
  53293. * @function decode
  53294. * @memberof game.act_rank_data_rsp
  53295. * @static
  53296. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53297. * @param {number} [length] Message length if known beforehand
  53298. * @returns {game.act_rank_data_rsp} act_rank_data_rsp
  53299. * @throws {Error} If the payload is not a reader or valid buffer
  53300. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53301. */
  53302. act_rank_data_rsp.decode = function decode(reader, length) {
  53303. if (!(reader instanceof $Reader))
  53304. reader = $Reader.create(reader);
  53305. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.act_rank_data_rsp();
  53306. while (reader.pos < end) {
  53307. let tag = reader.uint32();
  53308. switch (tag >>> 3) {
  53309. case 1:
  53310. message.errno = reader.int64();
  53311. break;
  53312. case 2:
  53313. if (!(message.list && message.list.length))
  53314. message.list = [];
  53315. message.list.push($root.game.ranking_info.decode(reader, reader.uint32()));
  53316. break;
  53317. default:
  53318. reader.skipType(tag & 7);
  53319. break;
  53320. }
  53321. }
  53322. return message;
  53323. };
  53324. /**
  53325. * Decodes an act_rank_data_rsp message from the specified reader or buffer, length delimited.
  53326. * @function decodeDelimited
  53327. * @memberof game.act_rank_data_rsp
  53328. * @static
  53329. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53330. * @returns {game.act_rank_data_rsp} act_rank_data_rsp
  53331. * @throws {Error} If the payload is not a reader or valid buffer
  53332. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53333. */
  53334. act_rank_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  53335. if (!(reader instanceof $Reader))
  53336. reader = new $Reader(reader);
  53337. return this.decode(reader, reader.uint32());
  53338. };
  53339. /**
  53340. * Verifies an act_rank_data_rsp message.
  53341. * @function verify
  53342. * @memberof game.act_rank_data_rsp
  53343. * @static
  53344. * @param {Object.<string,*>} message Plain object to verify
  53345. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53346. */
  53347. act_rank_data_rsp.verify = function verify(message) {
  53348. if (typeof message !== "object" || message === null)
  53349. return "object expected";
  53350. if (message.errno != null && message.hasOwnProperty("errno"))
  53351. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  53352. return "errno: integer|Long expected";
  53353. if (message.list != null && message.hasOwnProperty("list")) {
  53354. if (!Array.isArray(message.list))
  53355. return "list: array expected";
  53356. for (let i = 0; i < message.list.length; ++i) {
  53357. let error = $root.game.ranking_info.verify(message.list[i]);
  53358. if (error)
  53359. return "list." + error;
  53360. }
  53361. }
  53362. return null;
  53363. };
  53364. /**
  53365. * Creates an act_rank_data_rsp message from a plain object. Also converts values to their respective internal types.
  53366. * @function fromObject
  53367. * @memberof game.act_rank_data_rsp
  53368. * @static
  53369. * @param {Object.<string,*>} object Plain object
  53370. * @returns {game.act_rank_data_rsp} act_rank_data_rsp
  53371. */
  53372. act_rank_data_rsp.fromObject = function fromObject(object) {
  53373. if (object instanceof $root.game.act_rank_data_rsp)
  53374. return object;
  53375. let message = new $root.game.act_rank_data_rsp();
  53376. if (object.errno != null)
  53377. if ($util.Long)
  53378. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  53379. else if (typeof object.errno === "string")
  53380. message.errno = parseInt(object.errno, 10);
  53381. else if (typeof object.errno === "number")
  53382. message.errno = object.errno;
  53383. else if (typeof object.errno === "object")
  53384. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  53385. if (object.list) {
  53386. if (!Array.isArray(object.list))
  53387. throw TypeError(".game.act_rank_data_rsp.list: array expected");
  53388. message.list = [];
  53389. for (let i = 0; i < object.list.length; ++i) {
  53390. if (typeof object.list[i] !== "object")
  53391. throw TypeError(".game.act_rank_data_rsp.list: object expected");
  53392. message.list[i] = $root.game.ranking_info.fromObject(object.list[i]);
  53393. }
  53394. }
  53395. return message;
  53396. };
  53397. /**
  53398. * Creates a plain object from an act_rank_data_rsp message. Also converts values to other types if specified.
  53399. * @function toObject
  53400. * @memberof game.act_rank_data_rsp
  53401. * @static
  53402. * @param {game.act_rank_data_rsp} message act_rank_data_rsp
  53403. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53404. * @returns {Object.<string,*>} Plain object
  53405. */
  53406. act_rank_data_rsp.toObject = function toObject(message, options) {
  53407. if (!options)
  53408. options = {};
  53409. let object = {};
  53410. if (options.arrays || options.defaults)
  53411. object.list = [];
  53412. if (options.defaults)
  53413. if ($util.Long) {
  53414. let long = new $util.Long(0, 0, false);
  53415. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53416. } else
  53417. object.errno = options.longs === String ? "0" : 0;
  53418. if (message.errno != null && message.hasOwnProperty("errno"))
  53419. if (typeof message.errno === "number")
  53420. object.errno = options.longs === String ? String(message.errno) : message.errno;
  53421. else
  53422. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  53423. if (message.list && message.list.length) {
  53424. object.list = [];
  53425. for (let j = 0; j < message.list.length; ++j)
  53426. object.list[j] = $root.game.ranking_info.toObject(message.list[j], options);
  53427. }
  53428. return object;
  53429. };
  53430. /**
  53431. * Converts this act_rank_data_rsp to JSON.
  53432. * @function toJSON
  53433. * @memberof game.act_rank_data_rsp
  53434. * @instance
  53435. * @returns {Object.<string,*>} JSON object
  53436. */
  53437. act_rank_data_rsp.prototype.toJSON = function toJSON() {
  53438. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53439. };
  53440. return act_rank_data_rsp;
  53441. })();
  53442. game.treasure_get_data = (function() {
  53443. /**
  53444. * Properties of a treasure_get_data.
  53445. * @memberof game
  53446. * @interface Itreasure_get_data
  53447. */
  53448. /**
  53449. * Constructs a new treasure_get_data.
  53450. * @memberof game
  53451. * @classdesc Represents a treasure_get_data.
  53452. * @implements Itreasure_get_data
  53453. * @constructor
  53454. * @param {game.Itreasure_get_data=} [properties] Properties to set
  53455. */
  53456. function treasure_get_data(properties) {
  53457. if (properties)
  53458. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53459. if (properties[keys[i]] != null)
  53460. this[keys[i]] = properties[keys[i]];
  53461. }
  53462. /**
  53463. * Creates a new treasure_get_data instance using the specified properties.
  53464. * @function create
  53465. * @memberof game.treasure_get_data
  53466. * @static
  53467. * @param {game.Itreasure_get_data=} [properties] Properties to set
  53468. * @returns {game.treasure_get_data} treasure_get_data instance
  53469. */
  53470. treasure_get_data.create = function create(properties) {
  53471. return new treasure_get_data(properties);
  53472. };
  53473. /**
  53474. * Encodes the specified treasure_get_data message. Does not implicitly {@link game.treasure_get_data.verify|verify} messages.
  53475. * @function encode
  53476. * @memberof game.treasure_get_data
  53477. * @static
  53478. * @param {game.Itreasure_get_data} message treasure_get_data message or plain object to encode
  53479. * @param {$protobuf.Writer} [writer] Writer to encode to
  53480. * @returns {$protobuf.Writer} Writer
  53481. */
  53482. treasure_get_data.encode = function encode(message, writer) {
  53483. if (!writer)
  53484. writer = $Writer.create();
  53485. return writer;
  53486. };
  53487. /**
  53488. * Encodes the specified treasure_get_data message, length delimited. Does not implicitly {@link game.treasure_get_data.verify|verify} messages.
  53489. * @function encodeDelimited
  53490. * @memberof game.treasure_get_data
  53491. * @static
  53492. * @param {game.Itreasure_get_data} message treasure_get_data message or plain object to encode
  53493. * @param {$protobuf.Writer} [writer] Writer to encode to
  53494. * @returns {$protobuf.Writer} Writer
  53495. */
  53496. treasure_get_data.encodeDelimited = function encodeDelimited(message, writer) {
  53497. return this.encode(message, writer).ldelim();
  53498. };
  53499. /**
  53500. * Decodes a treasure_get_data message from the specified reader or buffer.
  53501. * @function decode
  53502. * @memberof game.treasure_get_data
  53503. * @static
  53504. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53505. * @param {number} [length] Message length if known beforehand
  53506. * @returns {game.treasure_get_data} treasure_get_data
  53507. * @throws {Error} If the payload is not a reader or valid buffer
  53508. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53509. */
  53510. treasure_get_data.decode = function decode(reader, length) {
  53511. if (!(reader instanceof $Reader))
  53512. reader = $Reader.create(reader);
  53513. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_get_data();
  53514. while (reader.pos < end) {
  53515. let tag = reader.uint32();
  53516. switch (tag >>> 3) {
  53517. default:
  53518. reader.skipType(tag & 7);
  53519. break;
  53520. }
  53521. }
  53522. return message;
  53523. };
  53524. /**
  53525. * Decodes a treasure_get_data message from the specified reader or buffer, length delimited.
  53526. * @function decodeDelimited
  53527. * @memberof game.treasure_get_data
  53528. * @static
  53529. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53530. * @returns {game.treasure_get_data} treasure_get_data
  53531. * @throws {Error} If the payload is not a reader or valid buffer
  53532. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53533. */
  53534. treasure_get_data.decodeDelimited = function decodeDelimited(reader) {
  53535. if (!(reader instanceof $Reader))
  53536. reader = new $Reader(reader);
  53537. return this.decode(reader, reader.uint32());
  53538. };
  53539. /**
  53540. * Verifies a treasure_get_data message.
  53541. * @function verify
  53542. * @memberof game.treasure_get_data
  53543. * @static
  53544. * @param {Object.<string,*>} message Plain object to verify
  53545. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53546. */
  53547. treasure_get_data.verify = function verify(message) {
  53548. if (typeof message !== "object" || message === null)
  53549. return "object expected";
  53550. return null;
  53551. };
  53552. /**
  53553. * Creates a treasure_get_data message from a plain object. Also converts values to their respective internal types.
  53554. * @function fromObject
  53555. * @memberof game.treasure_get_data
  53556. * @static
  53557. * @param {Object.<string,*>} object Plain object
  53558. * @returns {game.treasure_get_data} treasure_get_data
  53559. */
  53560. treasure_get_data.fromObject = function fromObject(object) {
  53561. if (object instanceof $root.game.treasure_get_data)
  53562. return object;
  53563. return new $root.game.treasure_get_data();
  53564. };
  53565. /**
  53566. * Creates a plain object from a treasure_get_data message. Also converts values to other types if specified.
  53567. * @function toObject
  53568. * @memberof game.treasure_get_data
  53569. * @static
  53570. * @param {game.treasure_get_data} message treasure_get_data
  53571. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53572. * @returns {Object.<string,*>} Plain object
  53573. */
  53574. treasure_get_data.toObject = function toObject() {
  53575. return {};
  53576. };
  53577. /**
  53578. * Converts this treasure_get_data to JSON.
  53579. * @function toJSON
  53580. * @memberof game.treasure_get_data
  53581. * @instance
  53582. * @returns {Object.<string,*>} JSON object
  53583. */
  53584. treasure_get_data.prototype.toJSON = function toJSON() {
  53585. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53586. };
  53587. return treasure_get_data;
  53588. })();
  53589. game.treasure_get_data_rsp = (function() {
  53590. /**
  53591. * Properties of a treasure_get_data_rsp.
  53592. * @memberof game
  53593. * @interface Itreasure_get_data_rsp
  53594. * @property {number|Long|null} [errno] treasure_get_data_rsp errno
  53595. * @property {number|Long|null} [buy] treasure_get_data_rsp buy
  53596. * @property {number|Long|null} [sign] treasure_get_data_rsp sign
  53597. * @property {Array.<number|Long>|null} [list] treasure_get_data_rsp list
  53598. * @property {boolean|null} [treasure] treasure_get_data_rsp treasure
  53599. */
  53600. /**
  53601. * Constructs a new treasure_get_data_rsp.
  53602. * @memberof game
  53603. * @classdesc Represents a treasure_get_data_rsp.
  53604. * @implements Itreasure_get_data_rsp
  53605. * @constructor
  53606. * @param {game.Itreasure_get_data_rsp=} [properties] Properties to set
  53607. */
  53608. function treasure_get_data_rsp(properties) {
  53609. this.list = [];
  53610. if (properties)
  53611. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53612. if (properties[keys[i]] != null)
  53613. this[keys[i]] = properties[keys[i]];
  53614. }
  53615. /**
  53616. * treasure_get_data_rsp errno.
  53617. * @member {number|Long} errno
  53618. * @memberof game.treasure_get_data_rsp
  53619. * @instance
  53620. */
  53621. treasure_get_data_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53622. /**
  53623. * treasure_get_data_rsp buy.
  53624. * @member {number|Long} buy
  53625. * @memberof game.treasure_get_data_rsp
  53626. * @instance
  53627. */
  53628. treasure_get_data_rsp.prototype.buy = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53629. /**
  53630. * treasure_get_data_rsp sign.
  53631. * @member {number|Long} sign
  53632. * @memberof game.treasure_get_data_rsp
  53633. * @instance
  53634. */
  53635. treasure_get_data_rsp.prototype.sign = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  53636. /**
  53637. * treasure_get_data_rsp list.
  53638. * @member {Array.<number|Long>} list
  53639. * @memberof game.treasure_get_data_rsp
  53640. * @instance
  53641. */
  53642. treasure_get_data_rsp.prototype.list = $util.emptyArray;
  53643. /**
  53644. * treasure_get_data_rsp treasure.
  53645. * @member {boolean} treasure
  53646. * @memberof game.treasure_get_data_rsp
  53647. * @instance
  53648. */
  53649. treasure_get_data_rsp.prototype.treasure = false;
  53650. /**
  53651. * Creates a new treasure_get_data_rsp instance using the specified properties.
  53652. * @function create
  53653. * @memberof game.treasure_get_data_rsp
  53654. * @static
  53655. * @param {game.Itreasure_get_data_rsp=} [properties] Properties to set
  53656. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp instance
  53657. */
  53658. treasure_get_data_rsp.create = function create(properties) {
  53659. return new treasure_get_data_rsp(properties);
  53660. };
  53661. /**
  53662. * Encodes the specified treasure_get_data_rsp message. Does not implicitly {@link game.treasure_get_data_rsp.verify|verify} messages.
  53663. * @function encode
  53664. * @memberof game.treasure_get_data_rsp
  53665. * @static
  53666. * @param {game.Itreasure_get_data_rsp} message treasure_get_data_rsp message or plain object to encode
  53667. * @param {$protobuf.Writer} [writer] Writer to encode to
  53668. * @returns {$protobuf.Writer} Writer
  53669. */
  53670. treasure_get_data_rsp.encode = function encode(message, writer) {
  53671. if (!writer)
  53672. writer = $Writer.create();
  53673. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  53674. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  53675. if (message.buy != null && Object.hasOwnProperty.call(message, "buy"))
  53676. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.buy);
  53677. if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
  53678. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sign);
  53679. if (message.list != null && message.list.length) {
  53680. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  53681. for (let i = 0; i < message.list.length; ++i)
  53682. writer.int64(message.list[i]);
  53683. writer.ldelim();
  53684. }
  53685. if (message.treasure != null && Object.hasOwnProperty.call(message, "treasure"))
  53686. writer.uint32(/* id 5, wireType 0 =*/40).bool(message.treasure);
  53687. return writer;
  53688. };
  53689. /**
  53690. * Encodes the specified treasure_get_data_rsp message, length delimited. Does not implicitly {@link game.treasure_get_data_rsp.verify|verify} messages.
  53691. * @function encodeDelimited
  53692. * @memberof game.treasure_get_data_rsp
  53693. * @static
  53694. * @param {game.Itreasure_get_data_rsp} message treasure_get_data_rsp message or plain object to encode
  53695. * @param {$protobuf.Writer} [writer] Writer to encode to
  53696. * @returns {$protobuf.Writer} Writer
  53697. */
  53698. treasure_get_data_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  53699. return this.encode(message, writer).ldelim();
  53700. };
  53701. /**
  53702. * Decodes a treasure_get_data_rsp message from the specified reader or buffer.
  53703. * @function decode
  53704. * @memberof game.treasure_get_data_rsp
  53705. * @static
  53706. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53707. * @param {number} [length] Message length if known beforehand
  53708. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
  53709. * @throws {Error} If the payload is not a reader or valid buffer
  53710. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53711. */
  53712. treasure_get_data_rsp.decode = function decode(reader, length) {
  53713. if (!(reader instanceof $Reader))
  53714. reader = $Reader.create(reader);
  53715. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_get_data_rsp();
  53716. while (reader.pos < end) {
  53717. let tag = reader.uint32();
  53718. switch (tag >>> 3) {
  53719. case 1:
  53720. message.errno = reader.int64();
  53721. break;
  53722. case 2:
  53723. message.buy = reader.int64();
  53724. break;
  53725. case 3:
  53726. message.sign = reader.int64();
  53727. break;
  53728. case 4:
  53729. if (!(message.list && message.list.length))
  53730. message.list = [];
  53731. if ((tag & 7) === 2) {
  53732. let end2 = reader.uint32() + reader.pos;
  53733. while (reader.pos < end2)
  53734. message.list.push(reader.int64());
  53735. } else
  53736. message.list.push(reader.int64());
  53737. break;
  53738. case 5:
  53739. message.treasure = reader.bool();
  53740. break;
  53741. default:
  53742. reader.skipType(tag & 7);
  53743. break;
  53744. }
  53745. }
  53746. return message;
  53747. };
  53748. /**
  53749. * Decodes a treasure_get_data_rsp message from the specified reader or buffer, length delimited.
  53750. * @function decodeDelimited
  53751. * @memberof game.treasure_get_data_rsp
  53752. * @static
  53753. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53754. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
  53755. * @throws {Error} If the payload is not a reader or valid buffer
  53756. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53757. */
  53758. treasure_get_data_rsp.decodeDelimited = function decodeDelimited(reader) {
  53759. if (!(reader instanceof $Reader))
  53760. reader = new $Reader(reader);
  53761. return this.decode(reader, reader.uint32());
  53762. };
  53763. /**
  53764. * Verifies a treasure_get_data_rsp message.
  53765. * @function verify
  53766. * @memberof game.treasure_get_data_rsp
  53767. * @static
  53768. * @param {Object.<string,*>} message Plain object to verify
  53769. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  53770. */
  53771. treasure_get_data_rsp.verify = function verify(message) {
  53772. if (typeof message !== "object" || message === null)
  53773. return "object expected";
  53774. if (message.errno != null && message.hasOwnProperty("errno"))
  53775. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  53776. return "errno: integer|Long expected";
  53777. if (message.buy != null && message.hasOwnProperty("buy"))
  53778. if (!$util.isInteger(message.buy) && !(message.buy && $util.isInteger(message.buy.low) && $util.isInteger(message.buy.high)))
  53779. return "buy: integer|Long expected";
  53780. if (message.sign != null && message.hasOwnProperty("sign"))
  53781. if (!$util.isInteger(message.sign) && !(message.sign && $util.isInteger(message.sign.low) && $util.isInteger(message.sign.high)))
  53782. return "sign: integer|Long expected";
  53783. if (message.list != null && message.hasOwnProperty("list")) {
  53784. if (!Array.isArray(message.list))
  53785. return "list: array expected";
  53786. for (let i = 0; i < message.list.length; ++i)
  53787. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  53788. return "list: integer|Long[] expected";
  53789. }
  53790. if (message.treasure != null && message.hasOwnProperty("treasure"))
  53791. if (typeof message.treasure !== "boolean")
  53792. return "treasure: boolean expected";
  53793. return null;
  53794. };
  53795. /**
  53796. * Creates a treasure_get_data_rsp message from a plain object. Also converts values to their respective internal types.
  53797. * @function fromObject
  53798. * @memberof game.treasure_get_data_rsp
  53799. * @static
  53800. * @param {Object.<string,*>} object Plain object
  53801. * @returns {game.treasure_get_data_rsp} treasure_get_data_rsp
  53802. */
  53803. treasure_get_data_rsp.fromObject = function fromObject(object) {
  53804. if (object instanceof $root.game.treasure_get_data_rsp)
  53805. return object;
  53806. let message = new $root.game.treasure_get_data_rsp();
  53807. if (object.errno != null)
  53808. if ($util.Long)
  53809. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  53810. else if (typeof object.errno === "string")
  53811. message.errno = parseInt(object.errno, 10);
  53812. else if (typeof object.errno === "number")
  53813. message.errno = object.errno;
  53814. else if (typeof object.errno === "object")
  53815. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  53816. if (object.buy != null)
  53817. if ($util.Long)
  53818. (message.buy = $util.Long.fromValue(object.buy)).unsigned = false;
  53819. else if (typeof object.buy === "string")
  53820. message.buy = parseInt(object.buy, 10);
  53821. else if (typeof object.buy === "number")
  53822. message.buy = object.buy;
  53823. else if (typeof object.buy === "object")
  53824. message.buy = new $util.LongBits(object.buy.low >>> 0, object.buy.high >>> 0).toNumber();
  53825. if (object.sign != null)
  53826. if ($util.Long)
  53827. (message.sign = $util.Long.fromValue(object.sign)).unsigned = false;
  53828. else if (typeof object.sign === "string")
  53829. message.sign = parseInt(object.sign, 10);
  53830. else if (typeof object.sign === "number")
  53831. message.sign = object.sign;
  53832. else if (typeof object.sign === "object")
  53833. message.sign = new $util.LongBits(object.sign.low >>> 0, object.sign.high >>> 0).toNumber();
  53834. if (object.list) {
  53835. if (!Array.isArray(object.list))
  53836. throw TypeError(".game.treasure_get_data_rsp.list: array expected");
  53837. message.list = [];
  53838. for (let i = 0; i < object.list.length; ++i)
  53839. if ($util.Long)
  53840. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  53841. else if (typeof object.list[i] === "string")
  53842. message.list[i] = parseInt(object.list[i], 10);
  53843. else if (typeof object.list[i] === "number")
  53844. message.list[i] = object.list[i];
  53845. else if (typeof object.list[i] === "object")
  53846. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  53847. }
  53848. if (object.treasure != null)
  53849. message.treasure = Boolean(object.treasure);
  53850. return message;
  53851. };
  53852. /**
  53853. * Creates a plain object from a treasure_get_data_rsp message. Also converts values to other types if specified.
  53854. * @function toObject
  53855. * @memberof game.treasure_get_data_rsp
  53856. * @static
  53857. * @param {game.treasure_get_data_rsp} message treasure_get_data_rsp
  53858. * @param {$protobuf.IConversionOptions} [options] Conversion options
  53859. * @returns {Object.<string,*>} Plain object
  53860. */
  53861. treasure_get_data_rsp.toObject = function toObject(message, options) {
  53862. if (!options)
  53863. options = {};
  53864. let object = {};
  53865. if (options.arrays || options.defaults)
  53866. object.list = [];
  53867. if (options.defaults) {
  53868. if ($util.Long) {
  53869. let long = new $util.Long(0, 0, false);
  53870. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53871. } else
  53872. object.errno = options.longs === String ? "0" : 0;
  53873. if ($util.Long) {
  53874. let long = new $util.Long(0, 0, false);
  53875. object.buy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53876. } else
  53877. object.buy = options.longs === String ? "0" : 0;
  53878. if ($util.Long) {
  53879. let long = new $util.Long(0, 0, false);
  53880. object.sign = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  53881. } else
  53882. object.sign = options.longs === String ? "0" : 0;
  53883. object.treasure = false;
  53884. }
  53885. if (message.errno != null && message.hasOwnProperty("errno"))
  53886. if (typeof message.errno === "number")
  53887. object.errno = options.longs === String ? String(message.errno) : message.errno;
  53888. else
  53889. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  53890. if (message.buy != null && message.hasOwnProperty("buy"))
  53891. if (typeof message.buy === "number")
  53892. object.buy = options.longs === String ? String(message.buy) : message.buy;
  53893. else
  53894. object.buy = options.longs === String ? $util.Long.prototype.toString.call(message.buy) : options.longs === Number ? new $util.LongBits(message.buy.low >>> 0, message.buy.high >>> 0).toNumber() : message.buy;
  53895. if (message.sign != null && message.hasOwnProperty("sign"))
  53896. if (typeof message.sign === "number")
  53897. object.sign = options.longs === String ? String(message.sign) : message.sign;
  53898. else
  53899. object.sign = options.longs === String ? $util.Long.prototype.toString.call(message.sign) : options.longs === Number ? new $util.LongBits(message.sign.low >>> 0, message.sign.high >>> 0).toNumber() : message.sign;
  53900. if (message.list && message.list.length) {
  53901. object.list = [];
  53902. for (let j = 0; j < message.list.length; ++j)
  53903. if (typeof message.list[j] === "number")
  53904. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  53905. else
  53906. object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
  53907. }
  53908. if (message.treasure != null && message.hasOwnProperty("treasure"))
  53909. object.treasure = message.treasure;
  53910. return object;
  53911. };
  53912. /**
  53913. * Converts this treasure_get_data_rsp to JSON.
  53914. * @function toJSON
  53915. * @memberof game.treasure_get_data_rsp
  53916. * @instance
  53917. * @returns {Object.<string,*>} JSON object
  53918. */
  53919. treasure_get_data_rsp.prototype.toJSON = function toJSON() {
  53920. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  53921. };
  53922. return treasure_get_data_rsp;
  53923. })();
  53924. game.treasure_draw = (function() {
  53925. /**
  53926. * Properties of a treasure_draw.
  53927. * @memberof game
  53928. * @interface Itreasure_draw
  53929. */
  53930. /**
  53931. * Constructs a new treasure_draw.
  53932. * @memberof game
  53933. * @classdesc Represents a treasure_draw.
  53934. * @implements Itreasure_draw
  53935. * @constructor
  53936. * @param {game.Itreasure_draw=} [properties] Properties to set
  53937. */
  53938. function treasure_draw(properties) {
  53939. if (properties)
  53940. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  53941. if (properties[keys[i]] != null)
  53942. this[keys[i]] = properties[keys[i]];
  53943. }
  53944. /**
  53945. * Creates a new treasure_draw instance using the specified properties.
  53946. * @function create
  53947. * @memberof game.treasure_draw
  53948. * @static
  53949. * @param {game.Itreasure_draw=} [properties] Properties to set
  53950. * @returns {game.treasure_draw} treasure_draw instance
  53951. */
  53952. treasure_draw.create = function create(properties) {
  53953. return new treasure_draw(properties);
  53954. };
  53955. /**
  53956. * Encodes the specified treasure_draw message. Does not implicitly {@link game.treasure_draw.verify|verify} messages.
  53957. * @function encode
  53958. * @memberof game.treasure_draw
  53959. * @static
  53960. * @param {game.Itreasure_draw} message treasure_draw message or plain object to encode
  53961. * @param {$protobuf.Writer} [writer] Writer to encode to
  53962. * @returns {$protobuf.Writer} Writer
  53963. */
  53964. treasure_draw.encode = function encode(message, writer) {
  53965. if (!writer)
  53966. writer = $Writer.create();
  53967. return writer;
  53968. };
  53969. /**
  53970. * Encodes the specified treasure_draw message, length delimited. Does not implicitly {@link game.treasure_draw.verify|verify} messages.
  53971. * @function encodeDelimited
  53972. * @memberof game.treasure_draw
  53973. * @static
  53974. * @param {game.Itreasure_draw} message treasure_draw message or plain object to encode
  53975. * @param {$protobuf.Writer} [writer] Writer to encode to
  53976. * @returns {$protobuf.Writer} Writer
  53977. */
  53978. treasure_draw.encodeDelimited = function encodeDelimited(message, writer) {
  53979. return this.encode(message, writer).ldelim();
  53980. };
  53981. /**
  53982. * Decodes a treasure_draw message from the specified reader or buffer.
  53983. * @function decode
  53984. * @memberof game.treasure_draw
  53985. * @static
  53986. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  53987. * @param {number} [length] Message length if known beforehand
  53988. * @returns {game.treasure_draw} treasure_draw
  53989. * @throws {Error} If the payload is not a reader or valid buffer
  53990. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  53991. */
  53992. treasure_draw.decode = function decode(reader, length) {
  53993. if (!(reader instanceof $Reader))
  53994. reader = $Reader.create(reader);
  53995. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_draw();
  53996. while (reader.pos < end) {
  53997. let tag = reader.uint32();
  53998. switch (tag >>> 3) {
  53999. default:
  54000. reader.skipType(tag & 7);
  54001. break;
  54002. }
  54003. }
  54004. return message;
  54005. };
  54006. /**
  54007. * Decodes a treasure_draw message from the specified reader or buffer, length delimited.
  54008. * @function decodeDelimited
  54009. * @memberof game.treasure_draw
  54010. * @static
  54011. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54012. * @returns {game.treasure_draw} treasure_draw
  54013. * @throws {Error} If the payload is not a reader or valid buffer
  54014. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54015. */
  54016. treasure_draw.decodeDelimited = function decodeDelimited(reader) {
  54017. if (!(reader instanceof $Reader))
  54018. reader = new $Reader(reader);
  54019. return this.decode(reader, reader.uint32());
  54020. };
  54021. /**
  54022. * Verifies a treasure_draw message.
  54023. * @function verify
  54024. * @memberof game.treasure_draw
  54025. * @static
  54026. * @param {Object.<string,*>} message Plain object to verify
  54027. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54028. */
  54029. treasure_draw.verify = function verify(message) {
  54030. if (typeof message !== "object" || message === null)
  54031. return "object expected";
  54032. return null;
  54033. };
  54034. /**
  54035. * Creates a treasure_draw message from a plain object. Also converts values to their respective internal types.
  54036. * @function fromObject
  54037. * @memberof game.treasure_draw
  54038. * @static
  54039. * @param {Object.<string,*>} object Plain object
  54040. * @returns {game.treasure_draw} treasure_draw
  54041. */
  54042. treasure_draw.fromObject = function fromObject(object) {
  54043. if (object instanceof $root.game.treasure_draw)
  54044. return object;
  54045. return new $root.game.treasure_draw();
  54046. };
  54047. /**
  54048. * Creates a plain object from a treasure_draw message. Also converts values to other types if specified.
  54049. * @function toObject
  54050. * @memberof game.treasure_draw
  54051. * @static
  54052. * @param {game.treasure_draw} message treasure_draw
  54053. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54054. * @returns {Object.<string,*>} Plain object
  54055. */
  54056. treasure_draw.toObject = function toObject() {
  54057. return {};
  54058. };
  54059. /**
  54060. * Converts this treasure_draw to JSON.
  54061. * @function toJSON
  54062. * @memberof game.treasure_draw
  54063. * @instance
  54064. * @returns {Object.<string,*>} JSON object
  54065. */
  54066. treasure_draw.prototype.toJSON = function toJSON() {
  54067. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54068. };
  54069. return treasure_draw;
  54070. })();
  54071. game.treasure_draw_rsp = (function() {
  54072. /**
  54073. * Properties of a treasure_draw_rsp.
  54074. * @memberof game
  54075. * @interface Itreasure_draw_rsp
  54076. * @property {number|Long|null} [errno] treasure_draw_rsp errno
  54077. * @property {number|Long|null} [pos] treasure_draw_rsp pos
  54078. */
  54079. /**
  54080. * Constructs a new treasure_draw_rsp.
  54081. * @memberof game
  54082. * @classdesc Represents a treasure_draw_rsp.
  54083. * @implements Itreasure_draw_rsp
  54084. * @constructor
  54085. * @param {game.Itreasure_draw_rsp=} [properties] Properties to set
  54086. */
  54087. function treasure_draw_rsp(properties) {
  54088. if (properties)
  54089. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54090. if (properties[keys[i]] != null)
  54091. this[keys[i]] = properties[keys[i]];
  54092. }
  54093. /**
  54094. * treasure_draw_rsp errno.
  54095. * @member {number|Long} errno
  54096. * @memberof game.treasure_draw_rsp
  54097. * @instance
  54098. */
  54099. treasure_draw_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54100. /**
  54101. * treasure_draw_rsp pos.
  54102. * @member {number|Long} pos
  54103. * @memberof game.treasure_draw_rsp
  54104. * @instance
  54105. */
  54106. treasure_draw_rsp.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54107. /**
  54108. * Creates a new treasure_draw_rsp instance using the specified properties.
  54109. * @function create
  54110. * @memberof game.treasure_draw_rsp
  54111. * @static
  54112. * @param {game.Itreasure_draw_rsp=} [properties] Properties to set
  54113. * @returns {game.treasure_draw_rsp} treasure_draw_rsp instance
  54114. */
  54115. treasure_draw_rsp.create = function create(properties) {
  54116. return new treasure_draw_rsp(properties);
  54117. };
  54118. /**
  54119. * Encodes the specified treasure_draw_rsp message. Does not implicitly {@link game.treasure_draw_rsp.verify|verify} messages.
  54120. * @function encode
  54121. * @memberof game.treasure_draw_rsp
  54122. * @static
  54123. * @param {game.Itreasure_draw_rsp} message treasure_draw_rsp message or plain object to encode
  54124. * @param {$protobuf.Writer} [writer] Writer to encode to
  54125. * @returns {$protobuf.Writer} Writer
  54126. */
  54127. treasure_draw_rsp.encode = function encode(message, writer) {
  54128. if (!writer)
  54129. writer = $Writer.create();
  54130. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  54131. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  54132. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  54133. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  54134. return writer;
  54135. };
  54136. /**
  54137. * Encodes the specified treasure_draw_rsp message, length delimited. Does not implicitly {@link game.treasure_draw_rsp.verify|verify} messages.
  54138. * @function encodeDelimited
  54139. * @memberof game.treasure_draw_rsp
  54140. * @static
  54141. * @param {game.Itreasure_draw_rsp} message treasure_draw_rsp message or plain object to encode
  54142. * @param {$protobuf.Writer} [writer] Writer to encode to
  54143. * @returns {$protobuf.Writer} Writer
  54144. */
  54145. treasure_draw_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  54146. return this.encode(message, writer).ldelim();
  54147. };
  54148. /**
  54149. * Decodes a treasure_draw_rsp message from the specified reader or buffer.
  54150. * @function decode
  54151. * @memberof game.treasure_draw_rsp
  54152. * @static
  54153. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54154. * @param {number} [length] Message length if known beforehand
  54155. * @returns {game.treasure_draw_rsp} treasure_draw_rsp
  54156. * @throws {Error} If the payload is not a reader or valid buffer
  54157. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54158. */
  54159. treasure_draw_rsp.decode = function decode(reader, length) {
  54160. if (!(reader instanceof $Reader))
  54161. reader = $Reader.create(reader);
  54162. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_draw_rsp();
  54163. while (reader.pos < end) {
  54164. let tag = reader.uint32();
  54165. switch (tag >>> 3) {
  54166. case 1:
  54167. message.errno = reader.int64();
  54168. break;
  54169. case 2:
  54170. message.pos = reader.int64();
  54171. break;
  54172. default:
  54173. reader.skipType(tag & 7);
  54174. break;
  54175. }
  54176. }
  54177. return message;
  54178. };
  54179. /**
  54180. * Decodes a treasure_draw_rsp message from the specified reader or buffer, length delimited.
  54181. * @function decodeDelimited
  54182. * @memberof game.treasure_draw_rsp
  54183. * @static
  54184. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54185. * @returns {game.treasure_draw_rsp} treasure_draw_rsp
  54186. * @throws {Error} If the payload is not a reader or valid buffer
  54187. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54188. */
  54189. treasure_draw_rsp.decodeDelimited = function decodeDelimited(reader) {
  54190. if (!(reader instanceof $Reader))
  54191. reader = new $Reader(reader);
  54192. return this.decode(reader, reader.uint32());
  54193. };
  54194. /**
  54195. * Verifies a treasure_draw_rsp message.
  54196. * @function verify
  54197. * @memberof game.treasure_draw_rsp
  54198. * @static
  54199. * @param {Object.<string,*>} message Plain object to verify
  54200. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54201. */
  54202. treasure_draw_rsp.verify = function verify(message) {
  54203. if (typeof message !== "object" || message === null)
  54204. return "object expected";
  54205. if (message.errno != null && message.hasOwnProperty("errno"))
  54206. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  54207. return "errno: integer|Long expected";
  54208. if (message.pos != null && message.hasOwnProperty("pos"))
  54209. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  54210. return "pos: integer|Long expected";
  54211. return null;
  54212. };
  54213. /**
  54214. * Creates a treasure_draw_rsp message from a plain object. Also converts values to their respective internal types.
  54215. * @function fromObject
  54216. * @memberof game.treasure_draw_rsp
  54217. * @static
  54218. * @param {Object.<string,*>} object Plain object
  54219. * @returns {game.treasure_draw_rsp} treasure_draw_rsp
  54220. */
  54221. treasure_draw_rsp.fromObject = function fromObject(object) {
  54222. if (object instanceof $root.game.treasure_draw_rsp)
  54223. return object;
  54224. let message = new $root.game.treasure_draw_rsp();
  54225. if (object.errno != null)
  54226. if ($util.Long)
  54227. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  54228. else if (typeof object.errno === "string")
  54229. message.errno = parseInt(object.errno, 10);
  54230. else if (typeof object.errno === "number")
  54231. message.errno = object.errno;
  54232. else if (typeof object.errno === "object")
  54233. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  54234. if (object.pos != null)
  54235. if ($util.Long)
  54236. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  54237. else if (typeof object.pos === "string")
  54238. message.pos = parseInt(object.pos, 10);
  54239. else if (typeof object.pos === "number")
  54240. message.pos = object.pos;
  54241. else if (typeof object.pos === "object")
  54242. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  54243. return message;
  54244. };
  54245. /**
  54246. * Creates a plain object from a treasure_draw_rsp message. Also converts values to other types if specified.
  54247. * @function toObject
  54248. * @memberof game.treasure_draw_rsp
  54249. * @static
  54250. * @param {game.treasure_draw_rsp} message treasure_draw_rsp
  54251. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54252. * @returns {Object.<string,*>} Plain object
  54253. */
  54254. treasure_draw_rsp.toObject = function toObject(message, options) {
  54255. if (!options)
  54256. options = {};
  54257. let object = {};
  54258. if (options.defaults) {
  54259. if ($util.Long) {
  54260. let long = new $util.Long(0, 0, false);
  54261. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54262. } else
  54263. object.errno = options.longs === String ? "0" : 0;
  54264. if ($util.Long) {
  54265. let long = new $util.Long(0, 0, false);
  54266. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54267. } else
  54268. object.pos = options.longs === String ? "0" : 0;
  54269. }
  54270. if (message.errno != null && message.hasOwnProperty("errno"))
  54271. if (typeof message.errno === "number")
  54272. object.errno = options.longs === String ? String(message.errno) : message.errno;
  54273. else
  54274. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  54275. if (message.pos != null && message.hasOwnProperty("pos"))
  54276. if (typeof message.pos === "number")
  54277. object.pos = options.longs === String ? String(message.pos) : message.pos;
  54278. else
  54279. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  54280. return object;
  54281. };
  54282. /**
  54283. * Converts this treasure_draw_rsp to JSON.
  54284. * @function toJSON
  54285. * @memberof game.treasure_draw_rsp
  54286. * @instance
  54287. * @returns {Object.<string,*>} JSON object
  54288. */
  54289. treasure_draw_rsp.prototype.toJSON = function toJSON() {
  54290. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54291. };
  54292. return treasure_draw_rsp;
  54293. })();
  54294. game.treasure_sign = (function() {
  54295. /**
  54296. * Properties of a treasure_sign.
  54297. * @memberof game
  54298. * @interface Itreasure_sign
  54299. */
  54300. /**
  54301. * Constructs a new treasure_sign.
  54302. * @memberof game
  54303. * @classdesc Represents a treasure_sign.
  54304. * @implements Itreasure_sign
  54305. * @constructor
  54306. * @param {game.Itreasure_sign=} [properties] Properties to set
  54307. */
  54308. function treasure_sign(properties) {
  54309. if (properties)
  54310. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54311. if (properties[keys[i]] != null)
  54312. this[keys[i]] = properties[keys[i]];
  54313. }
  54314. /**
  54315. * Creates a new treasure_sign instance using the specified properties.
  54316. * @function create
  54317. * @memberof game.treasure_sign
  54318. * @static
  54319. * @param {game.Itreasure_sign=} [properties] Properties to set
  54320. * @returns {game.treasure_sign} treasure_sign instance
  54321. */
  54322. treasure_sign.create = function create(properties) {
  54323. return new treasure_sign(properties);
  54324. };
  54325. /**
  54326. * Encodes the specified treasure_sign message. Does not implicitly {@link game.treasure_sign.verify|verify} messages.
  54327. * @function encode
  54328. * @memberof game.treasure_sign
  54329. * @static
  54330. * @param {game.Itreasure_sign} message treasure_sign message or plain object to encode
  54331. * @param {$protobuf.Writer} [writer] Writer to encode to
  54332. * @returns {$protobuf.Writer} Writer
  54333. */
  54334. treasure_sign.encode = function encode(message, writer) {
  54335. if (!writer)
  54336. writer = $Writer.create();
  54337. return writer;
  54338. };
  54339. /**
  54340. * Encodes the specified treasure_sign message, length delimited. Does not implicitly {@link game.treasure_sign.verify|verify} messages.
  54341. * @function encodeDelimited
  54342. * @memberof game.treasure_sign
  54343. * @static
  54344. * @param {game.Itreasure_sign} message treasure_sign message or plain object to encode
  54345. * @param {$protobuf.Writer} [writer] Writer to encode to
  54346. * @returns {$protobuf.Writer} Writer
  54347. */
  54348. treasure_sign.encodeDelimited = function encodeDelimited(message, writer) {
  54349. return this.encode(message, writer).ldelim();
  54350. };
  54351. /**
  54352. * Decodes a treasure_sign message from the specified reader or buffer.
  54353. * @function decode
  54354. * @memberof game.treasure_sign
  54355. * @static
  54356. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54357. * @param {number} [length] Message length if known beforehand
  54358. * @returns {game.treasure_sign} treasure_sign
  54359. * @throws {Error} If the payload is not a reader or valid buffer
  54360. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54361. */
  54362. treasure_sign.decode = function decode(reader, length) {
  54363. if (!(reader instanceof $Reader))
  54364. reader = $Reader.create(reader);
  54365. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_sign();
  54366. while (reader.pos < end) {
  54367. let tag = reader.uint32();
  54368. switch (tag >>> 3) {
  54369. default:
  54370. reader.skipType(tag & 7);
  54371. break;
  54372. }
  54373. }
  54374. return message;
  54375. };
  54376. /**
  54377. * Decodes a treasure_sign message from the specified reader or buffer, length delimited.
  54378. * @function decodeDelimited
  54379. * @memberof game.treasure_sign
  54380. * @static
  54381. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54382. * @returns {game.treasure_sign} treasure_sign
  54383. * @throws {Error} If the payload is not a reader or valid buffer
  54384. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54385. */
  54386. treasure_sign.decodeDelimited = function decodeDelimited(reader) {
  54387. if (!(reader instanceof $Reader))
  54388. reader = new $Reader(reader);
  54389. return this.decode(reader, reader.uint32());
  54390. };
  54391. /**
  54392. * Verifies a treasure_sign message.
  54393. * @function verify
  54394. * @memberof game.treasure_sign
  54395. * @static
  54396. * @param {Object.<string,*>} message Plain object to verify
  54397. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54398. */
  54399. treasure_sign.verify = function verify(message) {
  54400. if (typeof message !== "object" || message === null)
  54401. return "object expected";
  54402. return null;
  54403. };
  54404. /**
  54405. * Creates a treasure_sign message from a plain object. Also converts values to their respective internal types.
  54406. * @function fromObject
  54407. * @memberof game.treasure_sign
  54408. * @static
  54409. * @param {Object.<string,*>} object Plain object
  54410. * @returns {game.treasure_sign} treasure_sign
  54411. */
  54412. treasure_sign.fromObject = function fromObject(object) {
  54413. if (object instanceof $root.game.treasure_sign)
  54414. return object;
  54415. return new $root.game.treasure_sign();
  54416. };
  54417. /**
  54418. * Creates a plain object from a treasure_sign message. Also converts values to other types if specified.
  54419. * @function toObject
  54420. * @memberof game.treasure_sign
  54421. * @static
  54422. * @param {game.treasure_sign} message treasure_sign
  54423. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54424. * @returns {Object.<string,*>} Plain object
  54425. */
  54426. treasure_sign.toObject = function toObject() {
  54427. return {};
  54428. };
  54429. /**
  54430. * Converts this treasure_sign to JSON.
  54431. * @function toJSON
  54432. * @memberof game.treasure_sign
  54433. * @instance
  54434. * @returns {Object.<string,*>} JSON object
  54435. */
  54436. treasure_sign.prototype.toJSON = function toJSON() {
  54437. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54438. };
  54439. return treasure_sign;
  54440. })();
  54441. game.treasure_sign_rsp = (function() {
  54442. /**
  54443. * Properties of a treasure_sign_rsp.
  54444. * @memberof game
  54445. * @interface Itreasure_sign_rsp
  54446. * @property {number|Long|null} [errno] treasure_sign_rsp errno
  54447. * @property {number|Long|null} [sign] treasure_sign_rsp sign
  54448. */
  54449. /**
  54450. * Constructs a new treasure_sign_rsp.
  54451. * @memberof game
  54452. * @classdesc Represents a treasure_sign_rsp.
  54453. * @implements Itreasure_sign_rsp
  54454. * @constructor
  54455. * @param {game.Itreasure_sign_rsp=} [properties] Properties to set
  54456. */
  54457. function treasure_sign_rsp(properties) {
  54458. if (properties)
  54459. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54460. if (properties[keys[i]] != null)
  54461. this[keys[i]] = properties[keys[i]];
  54462. }
  54463. /**
  54464. * treasure_sign_rsp errno.
  54465. * @member {number|Long} errno
  54466. * @memberof game.treasure_sign_rsp
  54467. * @instance
  54468. */
  54469. treasure_sign_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54470. /**
  54471. * treasure_sign_rsp sign.
  54472. * @member {number|Long} sign
  54473. * @memberof game.treasure_sign_rsp
  54474. * @instance
  54475. */
  54476. treasure_sign_rsp.prototype.sign = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54477. /**
  54478. * Creates a new treasure_sign_rsp instance using the specified properties.
  54479. * @function create
  54480. * @memberof game.treasure_sign_rsp
  54481. * @static
  54482. * @param {game.Itreasure_sign_rsp=} [properties] Properties to set
  54483. * @returns {game.treasure_sign_rsp} treasure_sign_rsp instance
  54484. */
  54485. treasure_sign_rsp.create = function create(properties) {
  54486. return new treasure_sign_rsp(properties);
  54487. };
  54488. /**
  54489. * Encodes the specified treasure_sign_rsp message. Does not implicitly {@link game.treasure_sign_rsp.verify|verify} messages.
  54490. * @function encode
  54491. * @memberof game.treasure_sign_rsp
  54492. * @static
  54493. * @param {game.Itreasure_sign_rsp} message treasure_sign_rsp message or plain object to encode
  54494. * @param {$protobuf.Writer} [writer] Writer to encode to
  54495. * @returns {$protobuf.Writer} Writer
  54496. */
  54497. treasure_sign_rsp.encode = function encode(message, writer) {
  54498. if (!writer)
  54499. writer = $Writer.create();
  54500. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  54501. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  54502. if (message.sign != null && Object.hasOwnProperty.call(message, "sign"))
  54503. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.sign);
  54504. return writer;
  54505. };
  54506. /**
  54507. * Encodes the specified treasure_sign_rsp message, length delimited. Does not implicitly {@link game.treasure_sign_rsp.verify|verify} messages.
  54508. * @function encodeDelimited
  54509. * @memberof game.treasure_sign_rsp
  54510. * @static
  54511. * @param {game.Itreasure_sign_rsp} message treasure_sign_rsp message or plain object to encode
  54512. * @param {$protobuf.Writer} [writer] Writer to encode to
  54513. * @returns {$protobuf.Writer} Writer
  54514. */
  54515. treasure_sign_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  54516. return this.encode(message, writer).ldelim();
  54517. };
  54518. /**
  54519. * Decodes a treasure_sign_rsp message from the specified reader or buffer.
  54520. * @function decode
  54521. * @memberof game.treasure_sign_rsp
  54522. * @static
  54523. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54524. * @param {number} [length] Message length if known beforehand
  54525. * @returns {game.treasure_sign_rsp} treasure_sign_rsp
  54526. * @throws {Error} If the payload is not a reader or valid buffer
  54527. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54528. */
  54529. treasure_sign_rsp.decode = function decode(reader, length) {
  54530. if (!(reader instanceof $Reader))
  54531. reader = $Reader.create(reader);
  54532. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_sign_rsp();
  54533. while (reader.pos < end) {
  54534. let tag = reader.uint32();
  54535. switch (tag >>> 3) {
  54536. case 1:
  54537. message.errno = reader.int64();
  54538. break;
  54539. case 2:
  54540. message.sign = reader.int64();
  54541. break;
  54542. default:
  54543. reader.skipType(tag & 7);
  54544. break;
  54545. }
  54546. }
  54547. return message;
  54548. };
  54549. /**
  54550. * Decodes a treasure_sign_rsp message from the specified reader or buffer, length delimited.
  54551. * @function decodeDelimited
  54552. * @memberof game.treasure_sign_rsp
  54553. * @static
  54554. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54555. * @returns {game.treasure_sign_rsp} treasure_sign_rsp
  54556. * @throws {Error} If the payload is not a reader or valid buffer
  54557. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54558. */
  54559. treasure_sign_rsp.decodeDelimited = function decodeDelimited(reader) {
  54560. if (!(reader instanceof $Reader))
  54561. reader = new $Reader(reader);
  54562. return this.decode(reader, reader.uint32());
  54563. };
  54564. /**
  54565. * Verifies a treasure_sign_rsp message.
  54566. * @function verify
  54567. * @memberof game.treasure_sign_rsp
  54568. * @static
  54569. * @param {Object.<string,*>} message Plain object to verify
  54570. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54571. */
  54572. treasure_sign_rsp.verify = function verify(message) {
  54573. if (typeof message !== "object" || message === null)
  54574. return "object expected";
  54575. if (message.errno != null && message.hasOwnProperty("errno"))
  54576. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  54577. return "errno: integer|Long expected";
  54578. if (message.sign != null && message.hasOwnProperty("sign"))
  54579. if (!$util.isInteger(message.sign) && !(message.sign && $util.isInteger(message.sign.low) && $util.isInteger(message.sign.high)))
  54580. return "sign: integer|Long expected";
  54581. return null;
  54582. };
  54583. /**
  54584. * Creates a treasure_sign_rsp message from a plain object. Also converts values to their respective internal types.
  54585. * @function fromObject
  54586. * @memberof game.treasure_sign_rsp
  54587. * @static
  54588. * @param {Object.<string,*>} object Plain object
  54589. * @returns {game.treasure_sign_rsp} treasure_sign_rsp
  54590. */
  54591. treasure_sign_rsp.fromObject = function fromObject(object) {
  54592. if (object instanceof $root.game.treasure_sign_rsp)
  54593. return object;
  54594. let message = new $root.game.treasure_sign_rsp();
  54595. if (object.errno != null)
  54596. if ($util.Long)
  54597. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  54598. else if (typeof object.errno === "string")
  54599. message.errno = parseInt(object.errno, 10);
  54600. else if (typeof object.errno === "number")
  54601. message.errno = object.errno;
  54602. else if (typeof object.errno === "object")
  54603. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  54604. if (object.sign != null)
  54605. if ($util.Long)
  54606. (message.sign = $util.Long.fromValue(object.sign)).unsigned = false;
  54607. else if (typeof object.sign === "string")
  54608. message.sign = parseInt(object.sign, 10);
  54609. else if (typeof object.sign === "number")
  54610. message.sign = object.sign;
  54611. else if (typeof object.sign === "object")
  54612. message.sign = new $util.LongBits(object.sign.low >>> 0, object.sign.high >>> 0).toNumber();
  54613. return message;
  54614. };
  54615. /**
  54616. * Creates a plain object from a treasure_sign_rsp message. Also converts values to other types if specified.
  54617. * @function toObject
  54618. * @memberof game.treasure_sign_rsp
  54619. * @static
  54620. * @param {game.treasure_sign_rsp} message treasure_sign_rsp
  54621. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54622. * @returns {Object.<string,*>} Plain object
  54623. */
  54624. treasure_sign_rsp.toObject = function toObject(message, options) {
  54625. if (!options)
  54626. options = {};
  54627. let object = {};
  54628. if (options.defaults) {
  54629. if ($util.Long) {
  54630. let long = new $util.Long(0, 0, false);
  54631. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54632. } else
  54633. object.errno = options.longs === String ? "0" : 0;
  54634. if ($util.Long) {
  54635. let long = new $util.Long(0, 0, false);
  54636. object.sign = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  54637. } else
  54638. object.sign = options.longs === String ? "0" : 0;
  54639. }
  54640. if (message.errno != null && message.hasOwnProperty("errno"))
  54641. if (typeof message.errno === "number")
  54642. object.errno = options.longs === String ? String(message.errno) : message.errno;
  54643. else
  54644. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  54645. if (message.sign != null && message.hasOwnProperty("sign"))
  54646. if (typeof message.sign === "number")
  54647. object.sign = options.longs === String ? String(message.sign) : message.sign;
  54648. else
  54649. object.sign = options.longs === String ? $util.Long.prototype.toString.call(message.sign) : options.longs === Number ? new $util.LongBits(message.sign.low >>> 0, message.sign.high >>> 0).toNumber() : message.sign;
  54650. return object;
  54651. };
  54652. /**
  54653. * Converts this treasure_sign_rsp to JSON.
  54654. * @function toJSON
  54655. * @memberof game.treasure_sign_rsp
  54656. * @instance
  54657. * @returns {Object.<string,*>} JSON object
  54658. */
  54659. treasure_sign_rsp.prototype.toJSON = function toJSON() {
  54660. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54661. };
  54662. return treasure_sign_rsp;
  54663. })();
  54664. game.treasure_buy = (function() {
  54665. /**
  54666. * Properties of a treasure_buy.
  54667. * @memberof game
  54668. * @interface Itreasure_buy
  54669. */
  54670. /**
  54671. * Constructs a new treasure_buy.
  54672. * @memberof game
  54673. * @classdesc Represents a treasure_buy.
  54674. * @implements Itreasure_buy
  54675. * @constructor
  54676. * @param {game.Itreasure_buy=} [properties] Properties to set
  54677. */
  54678. function treasure_buy(properties) {
  54679. if (properties)
  54680. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54681. if (properties[keys[i]] != null)
  54682. this[keys[i]] = properties[keys[i]];
  54683. }
  54684. /**
  54685. * Creates a new treasure_buy instance using the specified properties.
  54686. * @function create
  54687. * @memberof game.treasure_buy
  54688. * @static
  54689. * @param {game.Itreasure_buy=} [properties] Properties to set
  54690. * @returns {game.treasure_buy} treasure_buy instance
  54691. */
  54692. treasure_buy.create = function create(properties) {
  54693. return new treasure_buy(properties);
  54694. };
  54695. /**
  54696. * Encodes the specified treasure_buy message. Does not implicitly {@link game.treasure_buy.verify|verify} messages.
  54697. * @function encode
  54698. * @memberof game.treasure_buy
  54699. * @static
  54700. * @param {game.Itreasure_buy} message treasure_buy message or plain object to encode
  54701. * @param {$protobuf.Writer} [writer] Writer to encode to
  54702. * @returns {$protobuf.Writer} Writer
  54703. */
  54704. treasure_buy.encode = function encode(message, writer) {
  54705. if (!writer)
  54706. writer = $Writer.create();
  54707. return writer;
  54708. };
  54709. /**
  54710. * Encodes the specified treasure_buy message, length delimited. Does not implicitly {@link game.treasure_buy.verify|verify} messages.
  54711. * @function encodeDelimited
  54712. * @memberof game.treasure_buy
  54713. * @static
  54714. * @param {game.Itreasure_buy} message treasure_buy message or plain object to encode
  54715. * @param {$protobuf.Writer} [writer] Writer to encode to
  54716. * @returns {$protobuf.Writer} Writer
  54717. */
  54718. treasure_buy.encodeDelimited = function encodeDelimited(message, writer) {
  54719. return this.encode(message, writer).ldelim();
  54720. };
  54721. /**
  54722. * Decodes a treasure_buy message from the specified reader or buffer.
  54723. * @function decode
  54724. * @memberof game.treasure_buy
  54725. * @static
  54726. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54727. * @param {number} [length] Message length if known beforehand
  54728. * @returns {game.treasure_buy} treasure_buy
  54729. * @throws {Error} If the payload is not a reader or valid buffer
  54730. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54731. */
  54732. treasure_buy.decode = function decode(reader, length) {
  54733. if (!(reader instanceof $Reader))
  54734. reader = $Reader.create(reader);
  54735. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_buy();
  54736. while (reader.pos < end) {
  54737. let tag = reader.uint32();
  54738. switch (tag >>> 3) {
  54739. default:
  54740. reader.skipType(tag & 7);
  54741. break;
  54742. }
  54743. }
  54744. return message;
  54745. };
  54746. /**
  54747. * Decodes a treasure_buy message from the specified reader or buffer, length delimited.
  54748. * @function decodeDelimited
  54749. * @memberof game.treasure_buy
  54750. * @static
  54751. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54752. * @returns {game.treasure_buy} treasure_buy
  54753. * @throws {Error} If the payload is not a reader or valid buffer
  54754. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54755. */
  54756. treasure_buy.decodeDelimited = function decodeDelimited(reader) {
  54757. if (!(reader instanceof $Reader))
  54758. reader = new $Reader(reader);
  54759. return this.decode(reader, reader.uint32());
  54760. };
  54761. /**
  54762. * Verifies a treasure_buy message.
  54763. * @function verify
  54764. * @memberof game.treasure_buy
  54765. * @static
  54766. * @param {Object.<string,*>} message Plain object to verify
  54767. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54768. */
  54769. treasure_buy.verify = function verify(message) {
  54770. if (typeof message !== "object" || message === null)
  54771. return "object expected";
  54772. return null;
  54773. };
  54774. /**
  54775. * Creates a treasure_buy message from a plain object. Also converts values to their respective internal types.
  54776. * @function fromObject
  54777. * @memberof game.treasure_buy
  54778. * @static
  54779. * @param {Object.<string,*>} object Plain object
  54780. * @returns {game.treasure_buy} treasure_buy
  54781. */
  54782. treasure_buy.fromObject = function fromObject(object) {
  54783. if (object instanceof $root.game.treasure_buy)
  54784. return object;
  54785. return new $root.game.treasure_buy();
  54786. };
  54787. /**
  54788. * Creates a plain object from a treasure_buy message. Also converts values to other types if specified.
  54789. * @function toObject
  54790. * @memberof game.treasure_buy
  54791. * @static
  54792. * @param {game.treasure_buy} message treasure_buy
  54793. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54794. * @returns {Object.<string,*>} Plain object
  54795. */
  54796. treasure_buy.toObject = function toObject() {
  54797. return {};
  54798. };
  54799. /**
  54800. * Converts this treasure_buy to JSON.
  54801. * @function toJSON
  54802. * @memberof game.treasure_buy
  54803. * @instance
  54804. * @returns {Object.<string,*>} JSON object
  54805. */
  54806. treasure_buy.prototype.toJSON = function toJSON() {
  54807. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  54808. };
  54809. return treasure_buy;
  54810. })();
  54811. game.treasure_buy_rsp = (function() {
  54812. /**
  54813. * Properties of a treasure_buy_rsp.
  54814. * @memberof game
  54815. * @interface Itreasure_buy_rsp
  54816. * @property {number|Long|null} [errno] treasure_buy_rsp errno
  54817. * @property {number|Long|null} [buy] treasure_buy_rsp buy
  54818. */
  54819. /**
  54820. * Constructs a new treasure_buy_rsp.
  54821. * @memberof game
  54822. * @classdesc Represents a treasure_buy_rsp.
  54823. * @implements Itreasure_buy_rsp
  54824. * @constructor
  54825. * @param {game.Itreasure_buy_rsp=} [properties] Properties to set
  54826. */
  54827. function treasure_buy_rsp(properties) {
  54828. if (properties)
  54829. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  54830. if (properties[keys[i]] != null)
  54831. this[keys[i]] = properties[keys[i]];
  54832. }
  54833. /**
  54834. * treasure_buy_rsp errno.
  54835. * @member {number|Long} errno
  54836. * @memberof game.treasure_buy_rsp
  54837. * @instance
  54838. */
  54839. treasure_buy_rsp.prototype.errno = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54840. /**
  54841. * treasure_buy_rsp buy.
  54842. * @member {number|Long} buy
  54843. * @memberof game.treasure_buy_rsp
  54844. * @instance
  54845. */
  54846. treasure_buy_rsp.prototype.buy = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  54847. /**
  54848. * Creates a new treasure_buy_rsp instance using the specified properties.
  54849. * @function create
  54850. * @memberof game.treasure_buy_rsp
  54851. * @static
  54852. * @param {game.Itreasure_buy_rsp=} [properties] Properties to set
  54853. * @returns {game.treasure_buy_rsp} treasure_buy_rsp instance
  54854. */
  54855. treasure_buy_rsp.create = function create(properties) {
  54856. return new treasure_buy_rsp(properties);
  54857. };
  54858. /**
  54859. * Encodes the specified treasure_buy_rsp message. Does not implicitly {@link game.treasure_buy_rsp.verify|verify} messages.
  54860. * @function encode
  54861. * @memberof game.treasure_buy_rsp
  54862. * @static
  54863. * @param {game.Itreasure_buy_rsp} message treasure_buy_rsp message or plain object to encode
  54864. * @param {$protobuf.Writer} [writer] Writer to encode to
  54865. * @returns {$protobuf.Writer} Writer
  54866. */
  54867. treasure_buy_rsp.encode = function encode(message, writer) {
  54868. if (!writer)
  54869. writer = $Writer.create();
  54870. if (message.errno != null && Object.hasOwnProperty.call(message, "errno"))
  54871. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.errno);
  54872. if (message.buy != null && Object.hasOwnProperty.call(message, "buy"))
  54873. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.buy);
  54874. return writer;
  54875. };
  54876. /**
  54877. * Encodes the specified treasure_buy_rsp message, length delimited. Does not implicitly {@link game.treasure_buy_rsp.verify|verify} messages.
  54878. * @function encodeDelimited
  54879. * @memberof game.treasure_buy_rsp
  54880. * @static
  54881. * @param {game.Itreasure_buy_rsp} message treasure_buy_rsp message or plain object to encode
  54882. * @param {$protobuf.Writer} [writer] Writer to encode to
  54883. * @returns {$protobuf.Writer} Writer
  54884. */
  54885. treasure_buy_rsp.encodeDelimited = function encodeDelimited(message, writer) {
  54886. return this.encode(message, writer).ldelim();
  54887. };
  54888. /**
  54889. * Decodes a treasure_buy_rsp message from the specified reader or buffer.
  54890. * @function decode
  54891. * @memberof game.treasure_buy_rsp
  54892. * @static
  54893. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54894. * @param {number} [length] Message length if known beforehand
  54895. * @returns {game.treasure_buy_rsp} treasure_buy_rsp
  54896. * @throws {Error} If the payload is not a reader or valid buffer
  54897. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54898. */
  54899. treasure_buy_rsp.decode = function decode(reader, length) {
  54900. if (!(reader instanceof $Reader))
  54901. reader = $Reader.create(reader);
  54902. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.treasure_buy_rsp();
  54903. while (reader.pos < end) {
  54904. let tag = reader.uint32();
  54905. switch (tag >>> 3) {
  54906. case 1:
  54907. message.errno = reader.int64();
  54908. break;
  54909. case 2:
  54910. message.buy = reader.int64();
  54911. break;
  54912. default:
  54913. reader.skipType(tag & 7);
  54914. break;
  54915. }
  54916. }
  54917. return message;
  54918. };
  54919. /**
  54920. * Decodes a treasure_buy_rsp message from the specified reader or buffer, length delimited.
  54921. * @function decodeDelimited
  54922. * @memberof game.treasure_buy_rsp
  54923. * @static
  54924. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  54925. * @returns {game.treasure_buy_rsp} treasure_buy_rsp
  54926. * @throws {Error} If the payload is not a reader or valid buffer
  54927. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  54928. */
  54929. treasure_buy_rsp.decodeDelimited = function decodeDelimited(reader) {
  54930. if (!(reader instanceof $Reader))
  54931. reader = new $Reader(reader);
  54932. return this.decode(reader, reader.uint32());
  54933. };
  54934. /**
  54935. * Verifies a treasure_buy_rsp message.
  54936. * @function verify
  54937. * @memberof game.treasure_buy_rsp
  54938. * @static
  54939. * @param {Object.<string,*>} message Plain object to verify
  54940. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  54941. */
  54942. treasure_buy_rsp.verify = function verify(message) {
  54943. if (typeof message !== "object" || message === null)
  54944. return "object expected";
  54945. if (message.errno != null && message.hasOwnProperty("errno"))
  54946. if (!$util.isInteger(message.errno) && !(message.errno && $util.isInteger(message.errno.low) && $util.isInteger(message.errno.high)))
  54947. return "errno: integer|Long expected";
  54948. if (message.buy != null && message.hasOwnProperty("buy"))
  54949. if (!$util.isInteger(message.buy) && !(message.buy && $util.isInteger(message.buy.low) && $util.isInteger(message.buy.high)))
  54950. return "buy: integer|Long expected";
  54951. return null;
  54952. };
  54953. /**
  54954. * Creates a treasure_buy_rsp message from a plain object. Also converts values to their respective internal types.
  54955. * @function fromObject
  54956. * @memberof game.treasure_buy_rsp
  54957. * @static
  54958. * @param {Object.<string,*>} object Plain object
  54959. * @returns {game.treasure_buy_rsp} treasure_buy_rsp
  54960. */
  54961. treasure_buy_rsp.fromObject = function fromObject(object) {
  54962. if (object instanceof $root.game.treasure_buy_rsp)
  54963. return object;
  54964. let message = new $root.game.treasure_buy_rsp();
  54965. if (object.errno != null)
  54966. if ($util.Long)
  54967. (message.errno = $util.Long.fromValue(object.errno)).unsigned = false;
  54968. else if (typeof object.errno === "string")
  54969. message.errno = parseInt(object.errno, 10);
  54970. else if (typeof object.errno === "number")
  54971. message.errno = object.errno;
  54972. else if (typeof object.errno === "object")
  54973. message.errno = new $util.LongBits(object.errno.low >>> 0, object.errno.high >>> 0).toNumber();
  54974. if (object.buy != null)
  54975. if ($util.Long)
  54976. (message.buy = $util.Long.fromValue(object.buy)).unsigned = false;
  54977. else if (typeof object.buy === "string")
  54978. message.buy = parseInt(object.buy, 10);
  54979. else if (typeof object.buy === "number")
  54980. message.buy = object.buy;
  54981. else if (typeof object.buy === "object")
  54982. message.buy = new $util.LongBits(object.buy.low >>> 0, object.buy.high >>> 0).toNumber();
  54983. return message;
  54984. };
  54985. /**
  54986. * Creates a plain object from a treasure_buy_rsp message. Also converts values to other types if specified.
  54987. * @function toObject
  54988. * @memberof game.treasure_buy_rsp
  54989. * @static
  54990. * @param {game.treasure_buy_rsp} message treasure_buy_rsp
  54991. * @param {$protobuf.IConversionOptions} [options] Conversion options
  54992. * @returns {Object.<string,*>} Plain object
  54993. */
  54994. treasure_buy_rsp.toObject = function toObject(message, options) {
  54995. if (!options)
  54996. options = {};
  54997. let object = {};
  54998. if (options.defaults) {
  54999. if ($util.Long) {
  55000. let long = new $util.Long(0, 0, false);
  55001. object.errno = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55002. } else
  55003. object.errno = options.longs === String ? "0" : 0;
  55004. if ($util.Long) {
  55005. let long = new $util.Long(0, 0, false);
  55006. object.buy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55007. } else
  55008. object.buy = options.longs === String ? "0" : 0;
  55009. }
  55010. if (message.errno != null && message.hasOwnProperty("errno"))
  55011. if (typeof message.errno === "number")
  55012. object.errno = options.longs === String ? String(message.errno) : message.errno;
  55013. else
  55014. object.errno = options.longs === String ? $util.Long.prototype.toString.call(message.errno) : options.longs === Number ? new $util.LongBits(message.errno.low >>> 0, message.errno.high >>> 0).toNumber() : message.errno;
  55015. if (message.buy != null && message.hasOwnProperty("buy"))
  55016. if (typeof message.buy === "number")
  55017. object.buy = options.longs === String ? String(message.buy) : message.buy;
  55018. else
  55019. object.buy = options.longs === String ? $util.Long.prototype.toString.call(message.buy) : options.longs === Number ? new $util.LongBits(message.buy.low >>> 0, message.buy.high >>> 0).toNumber() : message.buy;
  55020. return object;
  55021. };
  55022. /**
  55023. * Converts this treasure_buy_rsp to JSON.
  55024. * @function toJSON
  55025. * @memberof game.treasure_buy_rsp
  55026. * @instance
  55027. * @returns {Object.<string,*>} JSON object
  55028. */
  55029. treasure_buy_rsp.prototype.toJSON = function toJSON() {
  55030. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55031. };
  55032. return treasure_buy_rsp;
  55033. })();
  55034. game.id_num = (function() {
  55035. /**
  55036. * Properties of an id_num.
  55037. * @memberof game
  55038. * @interface Iid_num
  55039. * @property {number|Long|null} [id] id_num id
  55040. * @property {number|Long|null} [num] id_num num
  55041. */
  55042. /**
  55043. * Constructs a new id_num.
  55044. * @memberof game
  55045. * @classdesc Represents an id_num.
  55046. * @implements Iid_num
  55047. * @constructor
  55048. * @param {game.Iid_num=} [properties] Properties to set
  55049. */
  55050. function id_num(properties) {
  55051. if (properties)
  55052. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55053. if (properties[keys[i]] != null)
  55054. this[keys[i]] = properties[keys[i]];
  55055. }
  55056. /**
  55057. * id_num id.
  55058. * @member {number|Long} id
  55059. * @memberof game.id_num
  55060. * @instance
  55061. */
  55062. id_num.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55063. /**
  55064. * id_num num.
  55065. * @member {number|Long} num
  55066. * @memberof game.id_num
  55067. * @instance
  55068. */
  55069. id_num.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55070. /**
  55071. * Creates a new id_num instance using the specified properties.
  55072. * @function create
  55073. * @memberof game.id_num
  55074. * @static
  55075. * @param {game.Iid_num=} [properties] Properties to set
  55076. * @returns {game.id_num} id_num instance
  55077. */
  55078. id_num.create = function create(properties) {
  55079. return new id_num(properties);
  55080. };
  55081. /**
  55082. * Encodes the specified id_num message. Does not implicitly {@link game.id_num.verify|verify} messages.
  55083. * @function encode
  55084. * @memberof game.id_num
  55085. * @static
  55086. * @param {game.Iid_num} message id_num message or plain object to encode
  55087. * @param {$protobuf.Writer} [writer] Writer to encode to
  55088. * @returns {$protobuf.Writer} Writer
  55089. */
  55090. id_num.encode = function encode(message, writer) {
  55091. if (!writer)
  55092. writer = $Writer.create();
  55093. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  55094. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  55095. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  55096. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  55097. return writer;
  55098. };
  55099. /**
  55100. * Encodes the specified id_num message, length delimited. Does not implicitly {@link game.id_num.verify|verify} messages.
  55101. * @function encodeDelimited
  55102. * @memberof game.id_num
  55103. * @static
  55104. * @param {game.Iid_num} message id_num message or plain object to encode
  55105. * @param {$protobuf.Writer} [writer] Writer to encode to
  55106. * @returns {$protobuf.Writer} Writer
  55107. */
  55108. id_num.encodeDelimited = function encodeDelimited(message, writer) {
  55109. return this.encode(message, writer).ldelim();
  55110. };
  55111. /**
  55112. * Decodes an id_num message from the specified reader or buffer.
  55113. * @function decode
  55114. * @memberof game.id_num
  55115. * @static
  55116. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55117. * @param {number} [length] Message length if known beforehand
  55118. * @returns {game.id_num} id_num
  55119. * @throws {Error} If the payload is not a reader or valid buffer
  55120. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55121. */
  55122. id_num.decode = function decode(reader, length) {
  55123. if (!(reader instanceof $Reader))
  55124. reader = $Reader.create(reader);
  55125. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.id_num();
  55126. while (reader.pos < end) {
  55127. let tag = reader.uint32();
  55128. switch (tag >>> 3) {
  55129. case 1:
  55130. message.id = reader.int64();
  55131. break;
  55132. case 2:
  55133. message.num = reader.int64();
  55134. break;
  55135. default:
  55136. reader.skipType(tag & 7);
  55137. break;
  55138. }
  55139. }
  55140. return message;
  55141. };
  55142. /**
  55143. * Decodes an id_num message from the specified reader or buffer, length delimited.
  55144. * @function decodeDelimited
  55145. * @memberof game.id_num
  55146. * @static
  55147. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55148. * @returns {game.id_num} id_num
  55149. * @throws {Error} If the payload is not a reader or valid buffer
  55150. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55151. */
  55152. id_num.decodeDelimited = function decodeDelimited(reader) {
  55153. if (!(reader instanceof $Reader))
  55154. reader = new $Reader(reader);
  55155. return this.decode(reader, reader.uint32());
  55156. };
  55157. /**
  55158. * Verifies an id_num message.
  55159. * @function verify
  55160. * @memberof game.id_num
  55161. * @static
  55162. * @param {Object.<string,*>} message Plain object to verify
  55163. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55164. */
  55165. id_num.verify = function verify(message) {
  55166. if (typeof message !== "object" || message === null)
  55167. return "object expected";
  55168. if (message.id != null && message.hasOwnProperty("id"))
  55169. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  55170. return "id: integer|Long expected";
  55171. if (message.num != null && message.hasOwnProperty("num"))
  55172. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  55173. return "num: integer|Long expected";
  55174. return null;
  55175. };
  55176. /**
  55177. * Creates an id_num message from a plain object. Also converts values to their respective internal types.
  55178. * @function fromObject
  55179. * @memberof game.id_num
  55180. * @static
  55181. * @param {Object.<string,*>} object Plain object
  55182. * @returns {game.id_num} id_num
  55183. */
  55184. id_num.fromObject = function fromObject(object) {
  55185. if (object instanceof $root.game.id_num)
  55186. return object;
  55187. let message = new $root.game.id_num();
  55188. if (object.id != null)
  55189. if ($util.Long)
  55190. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  55191. else if (typeof object.id === "string")
  55192. message.id = parseInt(object.id, 10);
  55193. else if (typeof object.id === "number")
  55194. message.id = object.id;
  55195. else if (typeof object.id === "object")
  55196. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  55197. if (object.num != null)
  55198. if ($util.Long)
  55199. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  55200. else if (typeof object.num === "string")
  55201. message.num = parseInt(object.num, 10);
  55202. else if (typeof object.num === "number")
  55203. message.num = object.num;
  55204. else if (typeof object.num === "object")
  55205. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  55206. return message;
  55207. };
  55208. /**
  55209. * Creates a plain object from an id_num message. Also converts values to other types if specified.
  55210. * @function toObject
  55211. * @memberof game.id_num
  55212. * @static
  55213. * @param {game.id_num} message id_num
  55214. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55215. * @returns {Object.<string,*>} Plain object
  55216. */
  55217. id_num.toObject = function toObject(message, options) {
  55218. if (!options)
  55219. options = {};
  55220. let object = {};
  55221. if (options.defaults) {
  55222. if ($util.Long) {
  55223. let long = new $util.Long(0, 0, false);
  55224. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55225. } else
  55226. object.id = options.longs === String ? "0" : 0;
  55227. if ($util.Long) {
  55228. let long = new $util.Long(0, 0, false);
  55229. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55230. } else
  55231. object.num = options.longs === String ? "0" : 0;
  55232. }
  55233. if (message.id != null && message.hasOwnProperty("id"))
  55234. if (typeof message.id === "number")
  55235. object.id = options.longs === String ? String(message.id) : message.id;
  55236. else
  55237. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  55238. if (message.num != null && message.hasOwnProperty("num"))
  55239. if (typeof message.num === "number")
  55240. object.num = options.longs === String ? String(message.num) : message.num;
  55241. else
  55242. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  55243. return object;
  55244. };
  55245. /**
  55246. * Converts this id_num to JSON.
  55247. * @function toJSON
  55248. * @memberof game.id_num
  55249. * @instance
  55250. * @returns {Object.<string,*>} JSON object
  55251. */
  55252. id_num.prototype.toJSON = function toJSON() {
  55253. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55254. };
  55255. return id_num;
  55256. })();
  55257. game.sid_pos = (function() {
  55258. /**
  55259. * Properties of a sid_pos.
  55260. * @memberof game
  55261. * @interface Isid_pos
  55262. * @property {string|null} [sid] sid_pos sid
  55263. * @property {number|Long|null} [pos] sid_pos pos
  55264. */
  55265. /**
  55266. * Constructs a new sid_pos.
  55267. * @memberof game
  55268. * @classdesc Represents a sid_pos.
  55269. * @implements Isid_pos
  55270. * @constructor
  55271. * @param {game.Isid_pos=} [properties] Properties to set
  55272. */
  55273. function sid_pos(properties) {
  55274. if (properties)
  55275. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55276. if (properties[keys[i]] != null)
  55277. this[keys[i]] = properties[keys[i]];
  55278. }
  55279. /**
  55280. * sid_pos sid.
  55281. * @member {string} sid
  55282. * @memberof game.sid_pos
  55283. * @instance
  55284. */
  55285. sid_pos.prototype.sid = "";
  55286. /**
  55287. * sid_pos pos.
  55288. * @member {number|Long} pos
  55289. * @memberof game.sid_pos
  55290. * @instance
  55291. */
  55292. sid_pos.prototype.pos = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55293. /**
  55294. * Creates a new sid_pos instance using the specified properties.
  55295. * @function create
  55296. * @memberof game.sid_pos
  55297. * @static
  55298. * @param {game.Isid_pos=} [properties] Properties to set
  55299. * @returns {game.sid_pos} sid_pos instance
  55300. */
  55301. sid_pos.create = function create(properties) {
  55302. return new sid_pos(properties);
  55303. };
  55304. /**
  55305. * Encodes the specified sid_pos message. Does not implicitly {@link game.sid_pos.verify|verify} messages.
  55306. * @function encode
  55307. * @memberof game.sid_pos
  55308. * @static
  55309. * @param {game.Isid_pos} message sid_pos message or plain object to encode
  55310. * @param {$protobuf.Writer} [writer] Writer to encode to
  55311. * @returns {$protobuf.Writer} Writer
  55312. */
  55313. sid_pos.encode = function encode(message, writer) {
  55314. if (!writer)
  55315. writer = $Writer.create();
  55316. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  55317. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  55318. if (message.pos != null && Object.hasOwnProperty.call(message, "pos"))
  55319. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.pos);
  55320. return writer;
  55321. };
  55322. /**
  55323. * Encodes the specified sid_pos message, length delimited. Does not implicitly {@link game.sid_pos.verify|verify} messages.
  55324. * @function encodeDelimited
  55325. * @memberof game.sid_pos
  55326. * @static
  55327. * @param {game.Isid_pos} message sid_pos message or plain object to encode
  55328. * @param {$protobuf.Writer} [writer] Writer to encode to
  55329. * @returns {$protobuf.Writer} Writer
  55330. */
  55331. sid_pos.encodeDelimited = function encodeDelimited(message, writer) {
  55332. return this.encode(message, writer).ldelim();
  55333. };
  55334. /**
  55335. * Decodes a sid_pos message from the specified reader or buffer.
  55336. * @function decode
  55337. * @memberof game.sid_pos
  55338. * @static
  55339. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55340. * @param {number} [length] Message length if known beforehand
  55341. * @returns {game.sid_pos} sid_pos
  55342. * @throws {Error} If the payload is not a reader or valid buffer
  55343. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55344. */
  55345. sid_pos.decode = function decode(reader, length) {
  55346. if (!(reader instanceof $Reader))
  55347. reader = $Reader.create(reader);
  55348. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.sid_pos();
  55349. while (reader.pos < end) {
  55350. let tag = reader.uint32();
  55351. switch (tag >>> 3) {
  55352. case 1:
  55353. message.sid = reader.string();
  55354. break;
  55355. case 2:
  55356. message.pos = reader.int64();
  55357. break;
  55358. default:
  55359. reader.skipType(tag & 7);
  55360. break;
  55361. }
  55362. }
  55363. return message;
  55364. };
  55365. /**
  55366. * Decodes a sid_pos message from the specified reader or buffer, length delimited.
  55367. * @function decodeDelimited
  55368. * @memberof game.sid_pos
  55369. * @static
  55370. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55371. * @returns {game.sid_pos} sid_pos
  55372. * @throws {Error} If the payload is not a reader or valid buffer
  55373. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55374. */
  55375. sid_pos.decodeDelimited = function decodeDelimited(reader) {
  55376. if (!(reader instanceof $Reader))
  55377. reader = new $Reader(reader);
  55378. return this.decode(reader, reader.uint32());
  55379. };
  55380. /**
  55381. * Verifies a sid_pos message.
  55382. * @function verify
  55383. * @memberof game.sid_pos
  55384. * @static
  55385. * @param {Object.<string,*>} message Plain object to verify
  55386. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55387. */
  55388. sid_pos.verify = function verify(message) {
  55389. if (typeof message !== "object" || message === null)
  55390. return "object expected";
  55391. if (message.sid != null && message.hasOwnProperty("sid"))
  55392. if (!$util.isString(message.sid))
  55393. return "sid: string expected";
  55394. if (message.pos != null && message.hasOwnProperty("pos"))
  55395. if (!$util.isInteger(message.pos) && !(message.pos && $util.isInteger(message.pos.low) && $util.isInteger(message.pos.high)))
  55396. return "pos: integer|Long expected";
  55397. return null;
  55398. };
  55399. /**
  55400. * Creates a sid_pos message from a plain object. Also converts values to their respective internal types.
  55401. * @function fromObject
  55402. * @memberof game.sid_pos
  55403. * @static
  55404. * @param {Object.<string,*>} object Plain object
  55405. * @returns {game.sid_pos} sid_pos
  55406. */
  55407. sid_pos.fromObject = function fromObject(object) {
  55408. if (object instanceof $root.game.sid_pos)
  55409. return object;
  55410. let message = new $root.game.sid_pos();
  55411. if (object.sid != null)
  55412. message.sid = String(object.sid);
  55413. if (object.pos != null)
  55414. if ($util.Long)
  55415. (message.pos = $util.Long.fromValue(object.pos)).unsigned = false;
  55416. else if (typeof object.pos === "string")
  55417. message.pos = parseInt(object.pos, 10);
  55418. else if (typeof object.pos === "number")
  55419. message.pos = object.pos;
  55420. else if (typeof object.pos === "object")
  55421. message.pos = new $util.LongBits(object.pos.low >>> 0, object.pos.high >>> 0).toNumber();
  55422. return message;
  55423. };
  55424. /**
  55425. * Creates a plain object from a sid_pos message. Also converts values to other types if specified.
  55426. * @function toObject
  55427. * @memberof game.sid_pos
  55428. * @static
  55429. * @param {game.sid_pos} message sid_pos
  55430. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55431. * @returns {Object.<string,*>} Plain object
  55432. */
  55433. sid_pos.toObject = function toObject(message, options) {
  55434. if (!options)
  55435. options = {};
  55436. let object = {};
  55437. if (options.defaults) {
  55438. object.sid = "";
  55439. if ($util.Long) {
  55440. let long = new $util.Long(0, 0, false);
  55441. object.pos = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55442. } else
  55443. object.pos = options.longs === String ? "0" : 0;
  55444. }
  55445. if (message.sid != null && message.hasOwnProperty("sid"))
  55446. object.sid = message.sid;
  55447. if (message.pos != null && message.hasOwnProperty("pos"))
  55448. if (typeof message.pos === "number")
  55449. object.pos = options.longs === String ? String(message.pos) : message.pos;
  55450. else
  55451. object.pos = options.longs === String ? $util.Long.prototype.toString.call(message.pos) : options.longs === Number ? new $util.LongBits(message.pos.low >>> 0, message.pos.high >>> 0).toNumber() : message.pos;
  55452. return object;
  55453. };
  55454. /**
  55455. * Converts this sid_pos to JSON.
  55456. * @function toJSON
  55457. * @memberof game.sid_pos
  55458. * @instance
  55459. * @returns {Object.<string,*>} JSON object
  55460. */
  55461. sid_pos.prototype.toJSON = function toJSON() {
  55462. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55463. };
  55464. return sid_pos;
  55465. })();
  55466. game.hero = (function() {
  55467. /**
  55468. * Properties of a hero.
  55469. * @memberof game
  55470. * @interface Ihero
  55471. * @property {string|null} [sid] hero sid
  55472. * @property {number|Long|null} [id] hero id
  55473. * @property {number|Long|null} [lv] hero lv
  55474. * @property {Array.<string>|null} [equip] hero equip
  55475. */
  55476. /**
  55477. * Constructs a new hero.
  55478. * @memberof game
  55479. * @classdesc Represents a hero.
  55480. * @implements Ihero
  55481. * @constructor
  55482. * @param {game.Ihero=} [properties] Properties to set
  55483. */
  55484. function hero(properties) {
  55485. this.equip = [];
  55486. if (properties)
  55487. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55488. if (properties[keys[i]] != null)
  55489. this[keys[i]] = properties[keys[i]];
  55490. }
  55491. /**
  55492. * hero sid.
  55493. * @member {string} sid
  55494. * @memberof game.hero
  55495. * @instance
  55496. */
  55497. hero.prototype.sid = "";
  55498. /**
  55499. * hero id.
  55500. * @member {number|Long} id
  55501. * @memberof game.hero
  55502. * @instance
  55503. */
  55504. hero.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55505. /**
  55506. * hero lv.
  55507. * @member {number|Long} lv
  55508. * @memberof game.hero
  55509. * @instance
  55510. */
  55511. hero.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55512. /**
  55513. * hero equip.
  55514. * @member {Array.<string>} equip
  55515. * @memberof game.hero
  55516. * @instance
  55517. */
  55518. hero.prototype.equip = $util.emptyArray;
  55519. /**
  55520. * Creates a new hero instance using the specified properties.
  55521. * @function create
  55522. * @memberof game.hero
  55523. * @static
  55524. * @param {game.Ihero=} [properties] Properties to set
  55525. * @returns {game.hero} hero instance
  55526. */
  55527. hero.create = function create(properties) {
  55528. return new hero(properties);
  55529. };
  55530. /**
  55531. * Encodes the specified hero message. Does not implicitly {@link game.hero.verify|verify} messages.
  55532. * @function encode
  55533. * @memberof game.hero
  55534. * @static
  55535. * @param {game.Ihero} message hero message or plain object to encode
  55536. * @param {$protobuf.Writer} [writer] Writer to encode to
  55537. * @returns {$protobuf.Writer} Writer
  55538. */
  55539. hero.encode = function encode(message, writer) {
  55540. if (!writer)
  55541. writer = $Writer.create();
  55542. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  55543. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  55544. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  55545. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  55546. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  55547. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
  55548. if (message.equip != null && message.equip.length)
  55549. for (let i = 0; i < message.equip.length; ++i)
  55550. writer.uint32(/* id 4, wireType 2 =*/34).string(message.equip[i]);
  55551. return writer;
  55552. };
  55553. /**
  55554. * Encodes the specified hero message, length delimited. Does not implicitly {@link game.hero.verify|verify} messages.
  55555. * @function encodeDelimited
  55556. * @memberof game.hero
  55557. * @static
  55558. * @param {game.Ihero} message hero message or plain object to encode
  55559. * @param {$protobuf.Writer} [writer] Writer to encode to
  55560. * @returns {$protobuf.Writer} Writer
  55561. */
  55562. hero.encodeDelimited = function encodeDelimited(message, writer) {
  55563. return this.encode(message, writer).ldelim();
  55564. };
  55565. /**
  55566. * Decodes a hero message from the specified reader or buffer.
  55567. * @function decode
  55568. * @memberof game.hero
  55569. * @static
  55570. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55571. * @param {number} [length] Message length if known beforehand
  55572. * @returns {game.hero} hero
  55573. * @throws {Error} If the payload is not a reader or valid buffer
  55574. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55575. */
  55576. hero.decode = function decode(reader, length) {
  55577. if (!(reader instanceof $Reader))
  55578. reader = $Reader.create(reader);
  55579. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero();
  55580. while (reader.pos < end) {
  55581. let tag = reader.uint32();
  55582. switch (tag >>> 3) {
  55583. case 1:
  55584. message.sid = reader.string();
  55585. break;
  55586. case 2:
  55587. message.id = reader.int64();
  55588. break;
  55589. case 3:
  55590. message.lv = reader.int64();
  55591. break;
  55592. case 4:
  55593. if (!(message.equip && message.equip.length))
  55594. message.equip = [];
  55595. message.equip.push(reader.string());
  55596. break;
  55597. default:
  55598. reader.skipType(tag & 7);
  55599. break;
  55600. }
  55601. }
  55602. return message;
  55603. };
  55604. /**
  55605. * Decodes a hero message from the specified reader or buffer, length delimited.
  55606. * @function decodeDelimited
  55607. * @memberof game.hero
  55608. * @static
  55609. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55610. * @returns {game.hero} hero
  55611. * @throws {Error} If the payload is not a reader or valid buffer
  55612. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55613. */
  55614. hero.decodeDelimited = function decodeDelimited(reader) {
  55615. if (!(reader instanceof $Reader))
  55616. reader = new $Reader(reader);
  55617. return this.decode(reader, reader.uint32());
  55618. };
  55619. /**
  55620. * Verifies a hero message.
  55621. * @function verify
  55622. * @memberof game.hero
  55623. * @static
  55624. * @param {Object.<string,*>} message Plain object to verify
  55625. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55626. */
  55627. hero.verify = function verify(message) {
  55628. if (typeof message !== "object" || message === null)
  55629. return "object expected";
  55630. if (message.sid != null && message.hasOwnProperty("sid"))
  55631. if (!$util.isString(message.sid))
  55632. return "sid: string expected";
  55633. if (message.id != null && message.hasOwnProperty("id"))
  55634. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  55635. return "id: integer|Long expected";
  55636. if (message.lv != null && message.hasOwnProperty("lv"))
  55637. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  55638. return "lv: integer|Long expected";
  55639. if (message.equip != null && message.hasOwnProperty("equip")) {
  55640. if (!Array.isArray(message.equip))
  55641. return "equip: array expected";
  55642. for (let i = 0; i < message.equip.length; ++i)
  55643. if (!$util.isString(message.equip[i]))
  55644. return "equip: string[] expected";
  55645. }
  55646. return null;
  55647. };
  55648. /**
  55649. * Creates a hero message from a plain object. Also converts values to their respective internal types.
  55650. * @function fromObject
  55651. * @memberof game.hero
  55652. * @static
  55653. * @param {Object.<string,*>} object Plain object
  55654. * @returns {game.hero} hero
  55655. */
  55656. hero.fromObject = function fromObject(object) {
  55657. if (object instanceof $root.game.hero)
  55658. return object;
  55659. let message = new $root.game.hero();
  55660. if (object.sid != null)
  55661. message.sid = String(object.sid);
  55662. if (object.id != null)
  55663. if ($util.Long)
  55664. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  55665. else if (typeof object.id === "string")
  55666. message.id = parseInt(object.id, 10);
  55667. else if (typeof object.id === "number")
  55668. message.id = object.id;
  55669. else if (typeof object.id === "object")
  55670. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  55671. if (object.lv != null)
  55672. if ($util.Long)
  55673. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  55674. else if (typeof object.lv === "string")
  55675. message.lv = parseInt(object.lv, 10);
  55676. else if (typeof object.lv === "number")
  55677. message.lv = object.lv;
  55678. else if (typeof object.lv === "object")
  55679. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  55680. if (object.equip) {
  55681. if (!Array.isArray(object.equip))
  55682. throw TypeError(".game.hero.equip: array expected");
  55683. message.equip = [];
  55684. for (let i = 0; i < object.equip.length; ++i)
  55685. message.equip[i] = String(object.equip[i]);
  55686. }
  55687. return message;
  55688. };
  55689. /**
  55690. * Creates a plain object from a hero message. Also converts values to other types if specified.
  55691. * @function toObject
  55692. * @memberof game.hero
  55693. * @static
  55694. * @param {game.hero} message hero
  55695. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55696. * @returns {Object.<string,*>} Plain object
  55697. */
  55698. hero.toObject = function toObject(message, options) {
  55699. if (!options)
  55700. options = {};
  55701. let object = {};
  55702. if (options.arrays || options.defaults)
  55703. object.equip = [];
  55704. if (options.defaults) {
  55705. object.sid = "";
  55706. if ($util.Long) {
  55707. let long = new $util.Long(0, 0, false);
  55708. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55709. } else
  55710. object.id = options.longs === String ? "0" : 0;
  55711. if ($util.Long) {
  55712. let long = new $util.Long(0, 0, false);
  55713. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55714. } else
  55715. object.lv = options.longs === String ? "0" : 0;
  55716. }
  55717. if (message.sid != null && message.hasOwnProperty("sid"))
  55718. object.sid = message.sid;
  55719. if (message.id != null && message.hasOwnProperty("id"))
  55720. if (typeof message.id === "number")
  55721. object.id = options.longs === String ? String(message.id) : message.id;
  55722. else
  55723. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  55724. if (message.lv != null && message.hasOwnProperty("lv"))
  55725. if (typeof message.lv === "number")
  55726. object.lv = options.longs === String ? String(message.lv) : message.lv;
  55727. else
  55728. object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
  55729. if (message.equip && message.equip.length) {
  55730. object.equip = [];
  55731. for (let j = 0; j < message.equip.length; ++j)
  55732. object.equip[j] = message.equip[j];
  55733. }
  55734. return object;
  55735. };
  55736. /**
  55737. * Converts this hero to JSON.
  55738. * @function toJSON
  55739. * @memberof game.hero
  55740. * @instance
  55741. * @returns {Object.<string,*>} JSON object
  55742. */
  55743. hero.prototype.toJSON = function toJSON() {
  55744. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55745. };
  55746. return hero;
  55747. })();
  55748. game.card = (function() {
  55749. /**
  55750. * Properties of a card.
  55751. * @memberof game
  55752. * @interface Icard
  55753. * @property {string|null} [sid] card sid
  55754. * @property {number|Long|null} [id] card id
  55755. * @property {number|Long|null} [lv] card lv
  55756. */
  55757. /**
  55758. * Constructs a new card.
  55759. * @memberof game
  55760. * @classdesc Represents a card.
  55761. * @implements Icard
  55762. * @constructor
  55763. * @param {game.Icard=} [properties] Properties to set
  55764. */
  55765. function card(properties) {
  55766. if (properties)
  55767. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  55768. if (properties[keys[i]] != null)
  55769. this[keys[i]] = properties[keys[i]];
  55770. }
  55771. /**
  55772. * card sid.
  55773. * @member {string} sid
  55774. * @memberof game.card
  55775. * @instance
  55776. */
  55777. card.prototype.sid = "";
  55778. /**
  55779. * card id.
  55780. * @member {number|Long} id
  55781. * @memberof game.card
  55782. * @instance
  55783. */
  55784. card.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55785. /**
  55786. * card lv.
  55787. * @member {number|Long} lv
  55788. * @memberof game.card
  55789. * @instance
  55790. */
  55791. card.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  55792. /**
  55793. * Creates a new card instance using the specified properties.
  55794. * @function create
  55795. * @memberof game.card
  55796. * @static
  55797. * @param {game.Icard=} [properties] Properties to set
  55798. * @returns {game.card} card instance
  55799. */
  55800. card.create = function create(properties) {
  55801. return new card(properties);
  55802. };
  55803. /**
  55804. * Encodes the specified card message. Does not implicitly {@link game.card.verify|verify} messages.
  55805. * @function encode
  55806. * @memberof game.card
  55807. * @static
  55808. * @param {game.Icard} message card message or plain object to encode
  55809. * @param {$protobuf.Writer} [writer] Writer to encode to
  55810. * @returns {$protobuf.Writer} Writer
  55811. */
  55812. card.encode = function encode(message, writer) {
  55813. if (!writer)
  55814. writer = $Writer.create();
  55815. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  55816. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  55817. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  55818. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  55819. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  55820. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
  55821. return writer;
  55822. };
  55823. /**
  55824. * Encodes the specified card message, length delimited. Does not implicitly {@link game.card.verify|verify} messages.
  55825. * @function encodeDelimited
  55826. * @memberof game.card
  55827. * @static
  55828. * @param {game.Icard} message card message or plain object to encode
  55829. * @param {$protobuf.Writer} [writer] Writer to encode to
  55830. * @returns {$protobuf.Writer} Writer
  55831. */
  55832. card.encodeDelimited = function encodeDelimited(message, writer) {
  55833. return this.encode(message, writer).ldelim();
  55834. };
  55835. /**
  55836. * Decodes a card message from the specified reader or buffer.
  55837. * @function decode
  55838. * @memberof game.card
  55839. * @static
  55840. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55841. * @param {number} [length] Message length if known beforehand
  55842. * @returns {game.card} card
  55843. * @throws {Error} If the payload is not a reader or valid buffer
  55844. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55845. */
  55846. card.decode = function decode(reader, length) {
  55847. if (!(reader instanceof $Reader))
  55848. reader = $Reader.create(reader);
  55849. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.card();
  55850. while (reader.pos < end) {
  55851. let tag = reader.uint32();
  55852. switch (tag >>> 3) {
  55853. case 1:
  55854. message.sid = reader.string();
  55855. break;
  55856. case 2:
  55857. message.id = reader.int64();
  55858. break;
  55859. case 3:
  55860. message.lv = reader.int64();
  55861. break;
  55862. default:
  55863. reader.skipType(tag & 7);
  55864. break;
  55865. }
  55866. }
  55867. return message;
  55868. };
  55869. /**
  55870. * Decodes a card message from the specified reader or buffer, length delimited.
  55871. * @function decodeDelimited
  55872. * @memberof game.card
  55873. * @static
  55874. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  55875. * @returns {game.card} card
  55876. * @throws {Error} If the payload is not a reader or valid buffer
  55877. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  55878. */
  55879. card.decodeDelimited = function decodeDelimited(reader) {
  55880. if (!(reader instanceof $Reader))
  55881. reader = new $Reader(reader);
  55882. return this.decode(reader, reader.uint32());
  55883. };
  55884. /**
  55885. * Verifies a card message.
  55886. * @function verify
  55887. * @memberof game.card
  55888. * @static
  55889. * @param {Object.<string,*>} message Plain object to verify
  55890. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  55891. */
  55892. card.verify = function verify(message) {
  55893. if (typeof message !== "object" || message === null)
  55894. return "object expected";
  55895. if (message.sid != null && message.hasOwnProperty("sid"))
  55896. if (!$util.isString(message.sid))
  55897. return "sid: string expected";
  55898. if (message.id != null && message.hasOwnProperty("id"))
  55899. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  55900. return "id: integer|Long expected";
  55901. if (message.lv != null && message.hasOwnProperty("lv"))
  55902. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  55903. return "lv: integer|Long expected";
  55904. return null;
  55905. };
  55906. /**
  55907. * Creates a card message from a plain object. Also converts values to their respective internal types.
  55908. * @function fromObject
  55909. * @memberof game.card
  55910. * @static
  55911. * @param {Object.<string,*>} object Plain object
  55912. * @returns {game.card} card
  55913. */
  55914. card.fromObject = function fromObject(object) {
  55915. if (object instanceof $root.game.card)
  55916. return object;
  55917. let message = new $root.game.card();
  55918. if (object.sid != null)
  55919. message.sid = String(object.sid);
  55920. if (object.id != null)
  55921. if ($util.Long)
  55922. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  55923. else if (typeof object.id === "string")
  55924. message.id = parseInt(object.id, 10);
  55925. else if (typeof object.id === "number")
  55926. message.id = object.id;
  55927. else if (typeof object.id === "object")
  55928. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  55929. if (object.lv != null)
  55930. if ($util.Long)
  55931. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  55932. else if (typeof object.lv === "string")
  55933. message.lv = parseInt(object.lv, 10);
  55934. else if (typeof object.lv === "number")
  55935. message.lv = object.lv;
  55936. else if (typeof object.lv === "object")
  55937. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  55938. return message;
  55939. };
  55940. /**
  55941. * Creates a plain object from a card message. Also converts values to other types if specified.
  55942. * @function toObject
  55943. * @memberof game.card
  55944. * @static
  55945. * @param {game.card} message card
  55946. * @param {$protobuf.IConversionOptions} [options] Conversion options
  55947. * @returns {Object.<string,*>} Plain object
  55948. */
  55949. card.toObject = function toObject(message, options) {
  55950. if (!options)
  55951. options = {};
  55952. let object = {};
  55953. if (options.defaults) {
  55954. object.sid = "";
  55955. if ($util.Long) {
  55956. let long = new $util.Long(0, 0, false);
  55957. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55958. } else
  55959. object.id = options.longs === String ? "0" : 0;
  55960. if ($util.Long) {
  55961. let long = new $util.Long(0, 0, false);
  55962. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  55963. } else
  55964. object.lv = options.longs === String ? "0" : 0;
  55965. }
  55966. if (message.sid != null && message.hasOwnProperty("sid"))
  55967. object.sid = message.sid;
  55968. if (message.id != null && message.hasOwnProperty("id"))
  55969. if (typeof message.id === "number")
  55970. object.id = options.longs === String ? String(message.id) : message.id;
  55971. else
  55972. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  55973. if (message.lv != null && message.hasOwnProperty("lv"))
  55974. if (typeof message.lv === "number")
  55975. object.lv = options.longs === String ? String(message.lv) : message.lv;
  55976. else
  55977. object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
  55978. return object;
  55979. };
  55980. /**
  55981. * Converts this card to JSON.
  55982. * @function toJSON
  55983. * @memberof game.card
  55984. * @instance
  55985. * @returns {Object.<string,*>} JSON object
  55986. */
  55987. card.prototype.toJSON = function toJSON() {
  55988. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  55989. };
  55990. return card;
  55991. })();
  55992. game.equip = (function() {
  55993. /**
  55994. * Properties of an equip.
  55995. * @memberof game
  55996. * @interface Iequip
  55997. * @property {string|null} [sid] equip sid
  55998. * @property {number|Long|null} [id] equip id
  55999. * @property {number|Long|null} [lv] equip lv
  56000. * @property {string|null} [hero] equip hero
  56001. */
  56002. /**
  56003. * Constructs a new equip.
  56004. * @memberof game
  56005. * @classdesc Represents an equip.
  56006. * @implements Iequip
  56007. * @constructor
  56008. * @param {game.Iequip=} [properties] Properties to set
  56009. */
  56010. function equip(properties) {
  56011. if (properties)
  56012. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  56013. if (properties[keys[i]] != null)
  56014. this[keys[i]] = properties[keys[i]];
  56015. }
  56016. /**
  56017. * equip sid.
  56018. * @member {string} sid
  56019. * @memberof game.equip
  56020. * @instance
  56021. */
  56022. equip.prototype.sid = "";
  56023. /**
  56024. * equip id.
  56025. * @member {number|Long} id
  56026. * @memberof game.equip
  56027. * @instance
  56028. */
  56029. equip.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56030. /**
  56031. * equip lv.
  56032. * @member {number|Long} lv
  56033. * @memberof game.equip
  56034. * @instance
  56035. */
  56036. equip.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56037. /**
  56038. * equip hero.
  56039. * @member {string} hero
  56040. * @memberof game.equip
  56041. * @instance
  56042. */
  56043. equip.prototype.hero = "";
  56044. /**
  56045. * Creates a new equip instance using the specified properties.
  56046. * @function create
  56047. * @memberof game.equip
  56048. * @static
  56049. * @param {game.Iequip=} [properties] Properties to set
  56050. * @returns {game.equip} equip instance
  56051. */
  56052. equip.create = function create(properties) {
  56053. return new equip(properties);
  56054. };
  56055. /**
  56056. * Encodes the specified equip message. Does not implicitly {@link game.equip.verify|verify} messages.
  56057. * @function encode
  56058. * @memberof game.equip
  56059. * @static
  56060. * @param {game.Iequip} message equip message or plain object to encode
  56061. * @param {$protobuf.Writer} [writer] Writer to encode to
  56062. * @returns {$protobuf.Writer} Writer
  56063. */
  56064. equip.encode = function encode(message, writer) {
  56065. if (!writer)
  56066. writer = $Writer.create();
  56067. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  56068. writer.uint32(/* id 1, wireType 2 =*/10).string(message.sid);
  56069. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  56070. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id);
  56071. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  56072. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lv);
  56073. if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
  56074. writer.uint32(/* id 4, wireType 2 =*/34).string(message.hero);
  56075. return writer;
  56076. };
  56077. /**
  56078. * Encodes the specified equip message, length delimited. Does not implicitly {@link game.equip.verify|verify} messages.
  56079. * @function encodeDelimited
  56080. * @memberof game.equip
  56081. * @static
  56082. * @param {game.Iequip} message equip message or plain object to encode
  56083. * @param {$protobuf.Writer} [writer] Writer to encode to
  56084. * @returns {$protobuf.Writer} Writer
  56085. */
  56086. equip.encodeDelimited = function encodeDelimited(message, writer) {
  56087. return this.encode(message, writer).ldelim();
  56088. };
  56089. /**
  56090. * Decodes an equip message from the specified reader or buffer.
  56091. * @function decode
  56092. * @memberof game.equip
  56093. * @static
  56094. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56095. * @param {number} [length] Message length if known beforehand
  56096. * @returns {game.equip} equip
  56097. * @throws {Error} If the payload is not a reader or valid buffer
  56098. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56099. */
  56100. equip.decode = function decode(reader, length) {
  56101. if (!(reader instanceof $Reader))
  56102. reader = $Reader.create(reader);
  56103. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.equip();
  56104. while (reader.pos < end) {
  56105. let tag = reader.uint32();
  56106. switch (tag >>> 3) {
  56107. case 1:
  56108. message.sid = reader.string();
  56109. break;
  56110. case 2:
  56111. message.id = reader.int64();
  56112. break;
  56113. case 3:
  56114. message.lv = reader.int64();
  56115. break;
  56116. case 4:
  56117. message.hero = reader.string();
  56118. break;
  56119. default:
  56120. reader.skipType(tag & 7);
  56121. break;
  56122. }
  56123. }
  56124. return message;
  56125. };
  56126. /**
  56127. * Decodes an equip message from the specified reader or buffer, length delimited.
  56128. * @function decodeDelimited
  56129. * @memberof game.equip
  56130. * @static
  56131. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56132. * @returns {game.equip} equip
  56133. * @throws {Error} If the payload is not a reader or valid buffer
  56134. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56135. */
  56136. equip.decodeDelimited = function decodeDelimited(reader) {
  56137. if (!(reader instanceof $Reader))
  56138. reader = new $Reader(reader);
  56139. return this.decode(reader, reader.uint32());
  56140. };
  56141. /**
  56142. * Verifies an equip message.
  56143. * @function verify
  56144. * @memberof game.equip
  56145. * @static
  56146. * @param {Object.<string,*>} message Plain object to verify
  56147. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  56148. */
  56149. equip.verify = function verify(message) {
  56150. if (typeof message !== "object" || message === null)
  56151. return "object expected";
  56152. if (message.sid != null && message.hasOwnProperty("sid"))
  56153. if (!$util.isString(message.sid))
  56154. return "sid: string expected";
  56155. if (message.id != null && message.hasOwnProperty("id"))
  56156. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  56157. return "id: integer|Long expected";
  56158. if (message.lv != null && message.hasOwnProperty("lv"))
  56159. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  56160. return "lv: integer|Long expected";
  56161. if (message.hero != null && message.hasOwnProperty("hero"))
  56162. if (!$util.isString(message.hero))
  56163. return "hero: string expected";
  56164. return null;
  56165. };
  56166. /**
  56167. * Creates an equip message from a plain object. Also converts values to their respective internal types.
  56168. * @function fromObject
  56169. * @memberof game.equip
  56170. * @static
  56171. * @param {Object.<string,*>} object Plain object
  56172. * @returns {game.equip} equip
  56173. */
  56174. equip.fromObject = function fromObject(object) {
  56175. if (object instanceof $root.game.equip)
  56176. return object;
  56177. let message = new $root.game.equip();
  56178. if (object.sid != null)
  56179. message.sid = String(object.sid);
  56180. if (object.id != null)
  56181. if ($util.Long)
  56182. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  56183. else if (typeof object.id === "string")
  56184. message.id = parseInt(object.id, 10);
  56185. else if (typeof object.id === "number")
  56186. message.id = object.id;
  56187. else if (typeof object.id === "object")
  56188. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  56189. if (object.lv != null)
  56190. if ($util.Long)
  56191. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  56192. else if (typeof object.lv === "string")
  56193. message.lv = parseInt(object.lv, 10);
  56194. else if (typeof object.lv === "number")
  56195. message.lv = object.lv;
  56196. else if (typeof object.lv === "object")
  56197. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  56198. if (object.hero != null)
  56199. message.hero = String(object.hero);
  56200. return message;
  56201. };
  56202. /**
  56203. * Creates a plain object from an equip message. Also converts values to other types if specified.
  56204. * @function toObject
  56205. * @memberof game.equip
  56206. * @static
  56207. * @param {game.equip} message equip
  56208. * @param {$protobuf.IConversionOptions} [options] Conversion options
  56209. * @returns {Object.<string,*>} Plain object
  56210. */
  56211. equip.toObject = function toObject(message, options) {
  56212. if (!options)
  56213. options = {};
  56214. let object = {};
  56215. if (options.defaults) {
  56216. object.sid = "";
  56217. if ($util.Long) {
  56218. let long = new $util.Long(0, 0, false);
  56219. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56220. } else
  56221. object.id = options.longs === String ? "0" : 0;
  56222. if ($util.Long) {
  56223. let long = new $util.Long(0, 0, false);
  56224. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56225. } else
  56226. object.lv = options.longs === String ? "0" : 0;
  56227. object.hero = "";
  56228. }
  56229. if (message.sid != null && message.hasOwnProperty("sid"))
  56230. object.sid = message.sid;
  56231. if (message.id != null && message.hasOwnProperty("id"))
  56232. if (typeof message.id === "number")
  56233. object.id = options.longs === String ? String(message.id) : message.id;
  56234. else
  56235. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  56236. if (message.lv != null && message.hasOwnProperty("lv"))
  56237. if (typeof message.lv === "number")
  56238. object.lv = options.longs === String ? String(message.lv) : message.lv;
  56239. else
  56240. object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
  56241. if (message.hero != null && message.hasOwnProperty("hero"))
  56242. object.hero = message.hero;
  56243. return object;
  56244. };
  56245. /**
  56246. * Converts this equip to JSON.
  56247. * @function toJSON
  56248. * @memberof game.equip
  56249. * @instance
  56250. * @returns {Object.<string,*>} JSON object
  56251. */
  56252. equip.prototype.toJSON = function toJSON() {
  56253. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  56254. };
  56255. return equip;
  56256. })();
  56257. game.reward = (function() {
  56258. /**
  56259. * Properties of a reward.
  56260. * @memberof game
  56261. * @interface Ireward
  56262. * @property {Array.<game.Iid_num>|null} [currency] reward currency
  56263. * @property {Array.<game.Ihero>|null} [heroes] reward heroes
  56264. * @property {Array.<game.Icard>|null} [skillCard] reward skillCard
  56265. * @property {Array.<game.Iid_num>|null} [debris] reward debris
  56266. * @property {Array.<game.Iequip>|null} [equip] reward equip
  56267. */
  56268. /**
  56269. * Constructs a new reward.
  56270. * @memberof game
  56271. * @classdesc Represents a reward.
  56272. * @implements Ireward
  56273. * @constructor
  56274. * @param {game.Ireward=} [properties] Properties to set
  56275. */
  56276. function reward(properties) {
  56277. this.currency = [];
  56278. this.heroes = [];
  56279. this.skillCard = [];
  56280. this.debris = [];
  56281. this.equip = [];
  56282. if (properties)
  56283. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  56284. if (properties[keys[i]] != null)
  56285. this[keys[i]] = properties[keys[i]];
  56286. }
  56287. /**
  56288. * reward currency.
  56289. * @member {Array.<game.Iid_num>} currency
  56290. * @memberof game.reward
  56291. * @instance
  56292. */
  56293. reward.prototype.currency = $util.emptyArray;
  56294. /**
  56295. * reward heroes.
  56296. * @member {Array.<game.Ihero>} heroes
  56297. * @memberof game.reward
  56298. * @instance
  56299. */
  56300. reward.prototype.heroes = $util.emptyArray;
  56301. /**
  56302. * reward skillCard.
  56303. * @member {Array.<game.Icard>} skillCard
  56304. * @memberof game.reward
  56305. * @instance
  56306. */
  56307. reward.prototype.skillCard = $util.emptyArray;
  56308. /**
  56309. * reward debris.
  56310. * @member {Array.<game.Iid_num>} debris
  56311. * @memberof game.reward
  56312. * @instance
  56313. */
  56314. reward.prototype.debris = $util.emptyArray;
  56315. /**
  56316. * reward equip.
  56317. * @member {Array.<game.Iequip>} equip
  56318. * @memberof game.reward
  56319. * @instance
  56320. */
  56321. reward.prototype.equip = $util.emptyArray;
  56322. /**
  56323. * Creates a new reward instance using the specified properties.
  56324. * @function create
  56325. * @memberof game.reward
  56326. * @static
  56327. * @param {game.Ireward=} [properties] Properties to set
  56328. * @returns {game.reward} reward instance
  56329. */
  56330. reward.create = function create(properties) {
  56331. return new reward(properties);
  56332. };
  56333. /**
  56334. * Encodes the specified reward message. Does not implicitly {@link game.reward.verify|verify} messages.
  56335. * @function encode
  56336. * @memberof game.reward
  56337. * @static
  56338. * @param {game.Ireward} message reward message or plain object to encode
  56339. * @param {$protobuf.Writer} [writer] Writer to encode to
  56340. * @returns {$protobuf.Writer} Writer
  56341. */
  56342. reward.encode = function encode(message, writer) {
  56343. if (!writer)
  56344. writer = $Writer.create();
  56345. if (message.currency != null && message.currency.length)
  56346. for (let i = 0; i < message.currency.length; ++i)
  56347. $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  56348. if (message.heroes != null && message.heroes.length)
  56349. for (let i = 0; i < message.heroes.length; ++i)
  56350. $root.game.hero.encode(message.heroes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  56351. if (message.skillCard != null && message.skillCard.length)
  56352. for (let i = 0; i < message.skillCard.length; ++i)
  56353. $root.game.card.encode(message.skillCard[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  56354. if (message.debris != null && message.debris.length)
  56355. for (let i = 0; i < message.debris.length; ++i)
  56356. $root.game.id_num.encode(message.debris[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  56357. if (message.equip != null && message.equip.length)
  56358. for (let i = 0; i < message.equip.length; ++i)
  56359. $root.game.equip.encode(message.equip[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  56360. return writer;
  56361. };
  56362. /**
  56363. * Encodes the specified reward message, length delimited. Does not implicitly {@link game.reward.verify|verify} messages.
  56364. * @function encodeDelimited
  56365. * @memberof game.reward
  56366. * @static
  56367. * @param {game.Ireward} message reward message or plain object to encode
  56368. * @param {$protobuf.Writer} [writer] Writer to encode to
  56369. * @returns {$protobuf.Writer} Writer
  56370. */
  56371. reward.encodeDelimited = function encodeDelimited(message, writer) {
  56372. return this.encode(message, writer).ldelim();
  56373. };
  56374. /**
  56375. * Decodes a reward message from the specified reader or buffer.
  56376. * @function decode
  56377. * @memberof game.reward
  56378. * @static
  56379. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56380. * @param {number} [length] Message length if known beforehand
  56381. * @returns {game.reward} reward
  56382. * @throws {Error} If the payload is not a reader or valid buffer
  56383. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56384. */
  56385. reward.decode = function decode(reader, length) {
  56386. if (!(reader instanceof $Reader))
  56387. reader = $Reader.create(reader);
  56388. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.reward();
  56389. while (reader.pos < end) {
  56390. let tag = reader.uint32();
  56391. switch (tag >>> 3) {
  56392. case 1:
  56393. if (!(message.currency && message.currency.length))
  56394. message.currency = [];
  56395. message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
  56396. break;
  56397. case 2:
  56398. if (!(message.heroes && message.heroes.length))
  56399. message.heroes = [];
  56400. message.heroes.push($root.game.hero.decode(reader, reader.uint32()));
  56401. break;
  56402. case 3:
  56403. if (!(message.skillCard && message.skillCard.length))
  56404. message.skillCard = [];
  56405. message.skillCard.push($root.game.card.decode(reader, reader.uint32()));
  56406. break;
  56407. case 4:
  56408. if (!(message.debris && message.debris.length))
  56409. message.debris = [];
  56410. message.debris.push($root.game.id_num.decode(reader, reader.uint32()));
  56411. break;
  56412. case 5:
  56413. if (!(message.equip && message.equip.length))
  56414. message.equip = [];
  56415. message.equip.push($root.game.equip.decode(reader, reader.uint32()));
  56416. break;
  56417. default:
  56418. reader.skipType(tag & 7);
  56419. break;
  56420. }
  56421. }
  56422. return message;
  56423. };
  56424. /**
  56425. * Decodes a reward message from the specified reader or buffer, length delimited.
  56426. * @function decodeDelimited
  56427. * @memberof game.reward
  56428. * @static
  56429. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56430. * @returns {game.reward} reward
  56431. * @throws {Error} If the payload is not a reader or valid buffer
  56432. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56433. */
  56434. reward.decodeDelimited = function decodeDelimited(reader) {
  56435. if (!(reader instanceof $Reader))
  56436. reader = new $Reader(reader);
  56437. return this.decode(reader, reader.uint32());
  56438. };
  56439. /**
  56440. * Verifies a reward message.
  56441. * @function verify
  56442. * @memberof game.reward
  56443. * @static
  56444. * @param {Object.<string,*>} message Plain object to verify
  56445. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  56446. */
  56447. reward.verify = function verify(message) {
  56448. if (typeof message !== "object" || message === null)
  56449. return "object expected";
  56450. if (message.currency != null && message.hasOwnProperty("currency")) {
  56451. if (!Array.isArray(message.currency))
  56452. return "currency: array expected";
  56453. for (let i = 0; i < message.currency.length; ++i) {
  56454. let error = $root.game.id_num.verify(message.currency[i]);
  56455. if (error)
  56456. return "currency." + error;
  56457. }
  56458. }
  56459. if (message.heroes != null && message.hasOwnProperty("heroes")) {
  56460. if (!Array.isArray(message.heroes))
  56461. return "heroes: array expected";
  56462. for (let i = 0; i < message.heroes.length; ++i) {
  56463. let error = $root.game.hero.verify(message.heroes[i]);
  56464. if (error)
  56465. return "heroes." + error;
  56466. }
  56467. }
  56468. if (message.skillCard != null && message.hasOwnProperty("skillCard")) {
  56469. if (!Array.isArray(message.skillCard))
  56470. return "skillCard: array expected";
  56471. for (let i = 0; i < message.skillCard.length; ++i) {
  56472. let error = $root.game.card.verify(message.skillCard[i]);
  56473. if (error)
  56474. return "skillCard." + error;
  56475. }
  56476. }
  56477. if (message.debris != null && message.hasOwnProperty("debris")) {
  56478. if (!Array.isArray(message.debris))
  56479. return "debris: array expected";
  56480. for (let i = 0; i < message.debris.length; ++i) {
  56481. let error = $root.game.id_num.verify(message.debris[i]);
  56482. if (error)
  56483. return "debris." + error;
  56484. }
  56485. }
  56486. if (message.equip != null && message.hasOwnProperty("equip")) {
  56487. if (!Array.isArray(message.equip))
  56488. return "equip: array expected";
  56489. for (let i = 0; i < message.equip.length; ++i) {
  56490. let error = $root.game.equip.verify(message.equip[i]);
  56491. if (error)
  56492. return "equip." + error;
  56493. }
  56494. }
  56495. return null;
  56496. };
  56497. /**
  56498. * Creates a reward message from a plain object. Also converts values to their respective internal types.
  56499. * @function fromObject
  56500. * @memberof game.reward
  56501. * @static
  56502. * @param {Object.<string,*>} object Plain object
  56503. * @returns {game.reward} reward
  56504. */
  56505. reward.fromObject = function fromObject(object) {
  56506. if (object instanceof $root.game.reward)
  56507. return object;
  56508. let message = new $root.game.reward();
  56509. if (object.currency) {
  56510. if (!Array.isArray(object.currency))
  56511. throw TypeError(".game.reward.currency: array expected");
  56512. message.currency = [];
  56513. for (let i = 0; i < object.currency.length; ++i) {
  56514. if (typeof object.currency[i] !== "object")
  56515. throw TypeError(".game.reward.currency: object expected");
  56516. message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
  56517. }
  56518. }
  56519. if (object.heroes) {
  56520. if (!Array.isArray(object.heroes))
  56521. throw TypeError(".game.reward.heroes: array expected");
  56522. message.heroes = [];
  56523. for (let i = 0; i < object.heroes.length; ++i) {
  56524. if (typeof object.heroes[i] !== "object")
  56525. throw TypeError(".game.reward.heroes: object expected");
  56526. message.heroes[i] = $root.game.hero.fromObject(object.heroes[i]);
  56527. }
  56528. }
  56529. if (object.skillCard) {
  56530. if (!Array.isArray(object.skillCard))
  56531. throw TypeError(".game.reward.skillCard: array expected");
  56532. message.skillCard = [];
  56533. for (let i = 0; i < object.skillCard.length; ++i) {
  56534. if (typeof object.skillCard[i] !== "object")
  56535. throw TypeError(".game.reward.skillCard: object expected");
  56536. message.skillCard[i] = $root.game.card.fromObject(object.skillCard[i]);
  56537. }
  56538. }
  56539. if (object.debris) {
  56540. if (!Array.isArray(object.debris))
  56541. throw TypeError(".game.reward.debris: array expected");
  56542. message.debris = [];
  56543. for (let i = 0; i < object.debris.length; ++i) {
  56544. if (typeof object.debris[i] !== "object")
  56545. throw TypeError(".game.reward.debris: object expected");
  56546. message.debris[i] = $root.game.id_num.fromObject(object.debris[i]);
  56547. }
  56548. }
  56549. if (object.equip) {
  56550. if (!Array.isArray(object.equip))
  56551. throw TypeError(".game.reward.equip: array expected");
  56552. message.equip = [];
  56553. for (let i = 0; i < object.equip.length; ++i) {
  56554. if (typeof object.equip[i] !== "object")
  56555. throw TypeError(".game.reward.equip: object expected");
  56556. message.equip[i] = $root.game.equip.fromObject(object.equip[i]);
  56557. }
  56558. }
  56559. return message;
  56560. };
  56561. /**
  56562. * Creates a plain object from a reward message. Also converts values to other types if specified.
  56563. * @function toObject
  56564. * @memberof game.reward
  56565. * @static
  56566. * @param {game.reward} message reward
  56567. * @param {$protobuf.IConversionOptions} [options] Conversion options
  56568. * @returns {Object.<string,*>} Plain object
  56569. */
  56570. reward.toObject = function toObject(message, options) {
  56571. if (!options)
  56572. options = {};
  56573. let object = {};
  56574. if (options.arrays || options.defaults) {
  56575. object.currency = [];
  56576. object.heroes = [];
  56577. object.skillCard = [];
  56578. object.debris = [];
  56579. object.equip = [];
  56580. }
  56581. if (message.currency && message.currency.length) {
  56582. object.currency = [];
  56583. for (let j = 0; j < message.currency.length; ++j)
  56584. object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
  56585. }
  56586. if (message.heroes && message.heroes.length) {
  56587. object.heroes = [];
  56588. for (let j = 0; j < message.heroes.length; ++j)
  56589. object.heroes[j] = $root.game.hero.toObject(message.heroes[j], options);
  56590. }
  56591. if (message.skillCard && message.skillCard.length) {
  56592. object.skillCard = [];
  56593. for (let j = 0; j < message.skillCard.length; ++j)
  56594. object.skillCard[j] = $root.game.card.toObject(message.skillCard[j], options);
  56595. }
  56596. if (message.debris && message.debris.length) {
  56597. object.debris = [];
  56598. for (let j = 0; j < message.debris.length; ++j)
  56599. object.debris[j] = $root.game.id_num.toObject(message.debris[j], options);
  56600. }
  56601. if (message.equip && message.equip.length) {
  56602. object.equip = [];
  56603. for (let j = 0; j < message.equip.length; ++j)
  56604. object.equip[j] = $root.game.equip.toObject(message.equip[j], options);
  56605. }
  56606. return object;
  56607. };
  56608. /**
  56609. * Converts this reward to JSON.
  56610. * @function toJSON
  56611. * @memberof game.reward
  56612. * @instance
  56613. * @returns {Object.<string,*>} JSON object
  56614. */
  56615. reward.prototype.toJSON = function toJSON() {
  56616. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  56617. };
  56618. return reward;
  56619. })();
  56620. game.building = (function() {
  56621. /**
  56622. * Properties of a building.
  56623. * @memberof game
  56624. * @interface Ibuilding
  56625. * @property {number|Long|null} [id] building id
  56626. * @property {number|Long|null} [level] building level
  56627. * @property {number|Long|null} [time] building time
  56628. * @property {Array.<string>|null} [list] building list
  56629. * @property {boolean|null} [autoExploreOption] building autoExploreOption
  56630. * @property {number|Long|null} [exploreTime] building exploreTime
  56631. * @property {number|Long|null} [exploreTimes] building exploreTimes
  56632. * @property {number|Long|null} [autoExploreTimes] building autoExploreTimes
  56633. */
  56634. /**
  56635. * Constructs a new building.
  56636. * @memberof game
  56637. * @classdesc Represents a building.
  56638. * @implements Ibuilding
  56639. * @constructor
  56640. * @param {game.Ibuilding=} [properties] Properties to set
  56641. */
  56642. function building(properties) {
  56643. this.list = [];
  56644. if (properties)
  56645. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  56646. if (properties[keys[i]] != null)
  56647. this[keys[i]] = properties[keys[i]];
  56648. }
  56649. /**
  56650. * building id.
  56651. * @member {number|Long} id
  56652. * @memberof game.building
  56653. * @instance
  56654. */
  56655. building.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56656. /**
  56657. * building level.
  56658. * @member {number|Long} level
  56659. * @memberof game.building
  56660. * @instance
  56661. */
  56662. building.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56663. /**
  56664. * building time.
  56665. * @member {number|Long} time
  56666. * @memberof game.building
  56667. * @instance
  56668. */
  56669. building.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56670. /**
  56671. * building list.
  56672. * @member {Array.<string>} list
  56673. * @memberof game.building
  56674. * @instance
  56675. */
  56676. building.prototype.list = $util.emptyArray;
  56677. /**
  56678. * building autoExploreOption.
  56679. * @member {boolean} autoExploreOption
  56680. * @memberof game.building
  56681. * @instance
  56682. */
  56683. building.prototype.autoExploreOption = false;
  56684. /**
  56685. * building exploreTime.
  56686. * @member {number|Long} exploreTime
  56687. * @memberof game.building
  56688. * @instance
  56689. */
  56690. building.prototype.exploreTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56691. /**
  56692. * building exploreTimes.
  56693. * @member {number|Long} exploreTimes
  56694. * @memberof game.building
  56695. * @instance
  56696. */
  56697. building.prototype.exploreTimes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56698. /**
  56699. * building autoExploreTimes.
  56700. * @member {number|Long} autoExploreTimes
  56701. * @memberof game.building
  56702. * @instance
  56703. */
  56704. building.prototype.autoExploreTimes = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  56705. /**
  56706. * Creates a new building instance using the specified properties.
  56707. * @function create
  56708. * @memberof game.building
  56709. * @static
  56710. * @param {game.Ibuilding=} [properties] Properties to set
  56711. * @returns {game.building} building instance
  56712. */
  56713. building.create = function create(properties) {
  56714. return new building(properties);
  56715. };
  56716. /**
  56717. * Encodes the specified building message. Does not implicitly {@link game.building.verify|verify} messages.
  56718. * @function encode
  56719. * @memberof game.building
  56720. * @static
  56721. * @param {game.Ibuilding} message building message or plain object to encode
  56722. * @param {$protobuf.Writer} [writer] Writer to encode to
  56723. * @returns {$protobuf.Writer} Writer
  56724. */
  56725. building.encode = function encode(message, writer) {
  56726. if (!writer)
  56727. writer = $Writer.create();
  56728. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  56729. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  56730. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  56731. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.level);
  56732. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  56733. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  56734. if (message.list != null && message.list.length)
  56735. for (let i = 0; i < message.list.length; ++i)
  56736. writer.uint32(/* id 4, wireType 2 =*/34).string(message.list[i]);
  56737. if (message.autoExploreOption != null && Object.hasOwnProperty.call(message, "autoExploreOption"))
  56738. writer.uint32(/* id 5, wireType 0 =*/40).bool(message.autoExploreOption);
  56739. if (message.exploreTime != null && Object.hasOwnProperty.call(message, "exploreTime"))
  56740. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.exploreTime);
  56741. if (message.exploreTimes != null && Object.hasOwnProperty.call(message, "exploreTimes"))
  56742. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.exploreTimes);
  56743. if (message.autoExploreTimes != null && Object.hasOwnProperty.call(message, "autoExploreTimes"))
  56744. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.autoExploreTimes);
  56745. return writer;
  56746. };
  56747. /**
  56748. * Encodes the specified building message, length delimited. Does not implicitly {@link game.building.verify|verify} messages.
  56749. * @function encodeDelimited
  56750. * @memberof game.building
  56751. * @static
  56752. * @param {game.Ibuilding} message building message or plain object to encode
  56753. * @param {$protobuf.Writer} [writer] Writer to encode to
  56754. * @returns {$protobuf.Writer} Writer
  56755. */
  56756. building.encodeDelimited = function encodeDelimited(message, writer) {
  56757. return this.encode(message, writer).ldelim();
  56758. };
  56759. /**
  56760. * Decodes a building message from the specified reader or buffer.
  56761. * @function decode
  56762. * @memberof game.building
  56763. * @static
  56764. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56765. * @param {number} [length] Message length if known beforehand
  56766. * @returns {game.building} building
  56767. * @throws {Error} If the payload is not a reader or valid buffer
  56768. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56769. */
  56770. building.decode = function decode(reader, length) {
  56771. if (!(reader instanceof $Reader))
  56772. reader = $Reader.create(reader);
  56773. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.building();
  56774. while (reader.pos < end) {
  56775. let tag = reader.uint32();
  56776. switch (tag >>> 3) {
  56777. case 1:
  56778. message.id = reader.int64();
  56779. break;
  56780. case 2:
  56781. message.level = reader.int64();
  56782. break;
  56783. case 3:
  56784. message.time = reader.int64();
  56785. break;
  56786. case 4:
  56787. if (!(message.list && message.list.length))
  56788. message.list = [];
  56789. message.list.push(reader.string());
  56790. break;
  56791. case 5:
  56792. message.autoExploreOption = reader.bool();
  56793. break;
  56794. case 6:
  56795. message.exploreTime = reader.int64();
  56796. break;
  56797. case 7:
  56798. message.exploreTimes = reader.int64();
  56799. break;
  56800. case 8:
  56801. message.autoExploreTimes = reader.int64();
  56802. break;
  56803. default:
  56804. reader.skipType(tag & 7);
  56805. break;
  56806. }
  56807. }
  56808. return message;
  56809. };
  56810. /**
  56811. * Decodes a building message from the specified reader or buffer, length delimited.
  56812. * @function decodeDelimited
  56813. * @memberof game.building
  56814. * @static
  56815. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  56816. * @returns {game.building} building
  56817. * @throws {Error} If the payload is not a reader or valid buffer
  56818. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  56819. */
  56820. building.decodeDelimited = function decodeDelimited(reader) {
  56821. if (!(reader instanceof $Reader))
  56822. reader = new $Reader(reader);
  56823. return this.decode(reader, reader.uint32());
  56824. };
  56825. /**
  56826. * Verifies a building message.
  56827. * @function verify
  56828. * @memberof game.building
  56829. * @static
  56830. * @param {Object.<string,*>} message Plain object to verify
  56831. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  56832. */
  56833. building.verify = function verify(message) {
  56834. if (typeof message !== "object" || message === null)
  56835. return "object expected";
  56836. if (message.id != null && message.hasOwnProperty("id"))
  56837. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  56838. return "id: integer|Long expected";
  56839. if (message.level != null && message.hasOwnProperty("level"))
  56840. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  56841. return "level: integer|Long expected";
  56842. if (message.time != null && message.hasOwnProperty("time"))
  56843. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  56844. return "time: integer|Long expected";
  56845. if (message.list != null && message.hasOwnProperty("list")) {
  56846. if (!Array.isArray(message.list))
  56847. return "list: array expected";
  56848. for (let i = 0; i < message.list.length; ++i)
  56849. if (!$util.isString(message.list[i]))
  56850. return "list: string[] expected";
  56851. }
  56852. if (message.autoExploreOption != null && message.hasOwnProperty("autoExploreOption"))
  56853. if (typeof message.autoExploreOption !== "boolean")
  56854. return "autoExploreOption: boolean expected";
  56855. if (message.exploreTime != null && message.hasOwnProperty("exploreTime"))
  56856. if (!$util.isInteger(message.exploreTime) && !(message.exploreTime && $util.isInteger(message.exploreTime.low) && $util.isInteger(message.exploreTime.high)))
  56857. return "exploreTime: integer|Long expected";
  56858. if (message.exploreTimes != null && message.hasOwnProperty("exploreTimes"))
  56859. if (!$util.isInteger(message.exploreTimes) && !(message.exploreTimes && $util.isInteger(message.exploreTimes.low) && $util.isInteger(message.exploreTimes.high)))
  56860. return "exploreTimes: integer|Long expected";
  56861. if (message.autoExploreTimes != null && message.hasOwnProperty("autoExploreTimes"))
  56862. if (!$util.isInteger(message.autoExploreTimes) && !(message.autoExploreTimes && $util.isInteger(message.autoExploreTimes.low) && $util.isInteger(message.autoExploreTimes.high)))
  56863. return "autoExploreTimes: integer|Long expected";
  56864. return null;
  56865. };
  56866. /**
  56867. * Creates a building message from a plain object. Also converts values to their respective internal types.
  56868. * @function fromObject
  56869. * @memberof game.building
  56870. * @static
  56871. * @param {Object.<string,*>} object Plain object
  56872. * @returns {game.building} building
  56873. */
  56874. building.fromObject = function fromObject(object) {
  56875. if (object instanceof $root.game.building)
  56876. return object;
  56877. let message = new $root.game.building();
  56878. if (object.id != null)
  56879. if ($util.Long)
  56880. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  56881. else if (typeof object.id === "string")
  56882. message.id = parseInt(object.id, 10);
  56883. else if (typeof object.id === "number")
  56884. message.id = object.id;
  56885. else if (typeof object.id === "object")
  56886. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  56887. if (object.level != null)
  56888. if ($util.Long)
  56889. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  56890. else if (typeof object.level === "string")
  56891. message.level = parseInt(object.level, 10);
  56892. else if (typeof object.level === "number")
  56893. message.level = object.level;
  56894. else if (typeof object.level === "object")
  56895. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  56896. if (object.time != null)
  56897. if ($util.Long)
  56898. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  56899. else if (typeof object.time === "string")
  56900. message.time = parseInt(object.time, 10);
  56901. else if (typeof object.time === "number")
  56902. message.time = object.time;
  56903. else if (typeof object.time === "object")
  56904. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  56905. if (object.list) {
  56906. if (!Array.isArray(object.list))
  56907. throw TypeError(".game.building.list: array expected");
  56908. message.list = [];
  56909. for (let i = 0; i < object.list.length; ++i)
  56910. message.list[i] = String(object.list[i]);
  56911. }
  56912. if (object.autoExploreOption != null)
  56913. message.autoExploreOption = Boolean(object.autoExploreOption);
  56914. if (object.exploreTime != null)
  56915. if ($util.Long)
  56916. (message.exploreTime = $util.Long.fromValue(object.exploreTime)).unsigned = false;
  56917. else if (typeof object.exploreTime === "string")
  56918. message.exploreTime = parseInt(object.exploreTime, 10);
  56919. else if (typeof object.exploreTime === "number")
  56920. message.exploreTime = object.exploreTime;
  56921. else if (typeof object.exploreTime === "object")
  56922. message.exploreTime = new $util.LongBits(object.exploreTime.low >>> 0, object.exploreTime.high >>> 0).toNumber();
  56923. if (object.exploreTimes != null)
  56924. if ($util.Long)
  56925. (message.exploreTimes = $util.Long.fromValue(object.exploreTimes)).unsigned = false;
  56926. else if (typeof object.exploreTimes === "string")
  56927. message.exploreTimes = parseInt(object.exploreTimes, 10);
  56928. else if (typeof object.exploreTimes === "number")
  56929. message.exploreTimes = object.exploreTimes;
  56930. else if (typeof object.exploreTimes === "object")
  56931. message.exploreTimes = new $util.LongBits(object.exploreTimes.low >>> 0, object.exploreTimes.high >>> 0).toNumber();
  56932. if (object.autoExploreTimes != null)
  56933. if ($util.Long)
  56934. (message.autoExploreTimes = $util.Long.fromValue(object.autoExploreTimes)).unsigned = false;
  56935. else if (typeof object.autoExploreTimes === "string")
  56936. message.autoExploreTimes = parseInt(object.autoExploreTimes, 10);
  56937. else if (typeof object.autoExploreTimes === "number")
  56938. message.autoExploreTimes = object.autoExploreTimes;
  56939. else if (typeof object.autoExploreTimes === "object")
  56940. message.autoExploreTimes = new $util.LongBits(object.autoExploreTimes.low >>> 0, object.autoExploreTimes.high >>> 0).toNumber();
  56941. return message;
  56942. };
  56943. /**
  56944. * Creates a plain object from a building message. Also converts values to other types if specified.
  56945. * @function toObject
  56946. * @memberof game.building
  56947. * @static
  56948. * @param {game.building} message building
  56949. * @param {$protobuf.IConversionOptions} [options] Conversion options
  56950. * @returns {Object.<string,*>} Plain object
  56951. */
  56952. building.toObject = function toObject(message, options) {
  56953. if (!options)
  56954. options = {};
  56955. let object = {};
  56956. if (options.arrays || options.defaults)
  56957. object.list = [];
  56958. if (options.defaults) {
  56959. if ($util.Long) {
  56960. let long = new $util.Long(0, 0, false);
  56961. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56962. } else
  56963. object.id = options.longs === String ? "0" : 0;
  56964. if ($util.Long) {
  56965. let long = new $util.Long(0, 0, false);
  56966. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56967. } else
  56968. object.level = options.longs === String ? "0" : 0;
  56969. if ($util.Long) {
  56970. let long = new $util.Long(0, 0, false);
  56971. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56972. } else
  56973. object.time = options.longs === String ? "0" : 0;
  56974. object.autoExploreOption = false;
  56975. if ($util.Long) {
  56976. let long = new $util.Long(0, 0, false);
  56977. object.exploreTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56978. } else
  56979. object.exploreTime = options.longs === String ? "0" : 0;
  56980. if ($util.Long) {
  56981. let long = new $util.Long(0, 0, false);
  56982. object.exploreTimes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56983. } else
  56984. object.exploreTimes = options.longs === String ? "0" : 0;
  56985. if ($util.Long) {
  56986. let long = new $util.Long(0, 0, false);
  56987. object.autoExploreTimes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  56988. } else
  56989. object.autoExploreTimes = options.longs === String ? "0" : 0;
  56990. }
  56991. if (message.id != null && message.hasOwnProperty("id"))
  56992. if (typeof message.id === "number")
  56993. object.id = options.longs === String ? String(message.id) : message.id;
  56994. else
  56995. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  56996. if (message.level != null && message.hasOwnProperty("level"))
  56997. if (typeof message.level === "number")
  56998. object.level = options.longs === String ? String(message.level) : message.level;
  56999. else
  57000. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  57001. if (message.time != null && message.hasOwnProperty("time"))
  57002. if (typeof message.time === "number")
  57003. object.time = options.longs === String ? String(message.time) : message.time;
  57004. else
  57005. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  57006. if (message.list && message.list.length) {
  57007. object.list = [];
  57008. for (let j = 0; j < message.list.length; ++j)
  57009. object.list[j] = message.list[j];
  57010. }
  57011. if (message.autoExploreOption != null && message.hasOwnProperty("autoExploreOption"))
  57012. object.autoExploreOption = message.autoExploreOption;
  57013. if (message.exploreTime != null && message.hasOwnProperty("exploreTime"))
  57014. if (typeof message.exploreTime === "number")
  57015. object.exploreTime = options.longs === String ? String(message.exploreTime) : message.exploreTime;
  57016. else
  57017. object.exploreTime = options.longs === String ? $util.Long.prototype.toString.call(message.exploreTime) : options.longs === Number ? new $util.LongBits(message.exploreTime.low >>> 0, message.exploreTime.high >>> 0).toNumber() : message.exploreTime;
  57018. if (message.exploreTimes != null && message.hasOwnProperty("exploreTimes"))
  57019. if (typeof message.exploreTimes === "number")
  57020. object.exploreTimes = options.longs === String ? String(message.exploreTimes) : message.exploreTimes;
  57021. else
  57022. object.exploreTimes = options.longs === String ? $util.Long.prototype.toString.call(message.exploreTimes) : options.longs === Number ? new $util.LongBits(message.exploreTimes.low >>> 0, message.exploreTimes.high >>> 0).toNumber() : message.exploreTimes;
  57023. if (message.autoExploreTimes != null && message.hasOwnProperty("autoExploreTimes"))
  57024. if (typeof message.autoExploreTimes === "number")
  57025. object.autoExploreTimes = options.longs === String ? String(message.autoExploreTimes) : message.autoExploreTimes;
  57026. else
  57027. object.autoExploreTimes = options.longs === String ? $util.Long.prototype.toString.call(message.autoExploreTimes) : options.longs === Number ? new $util.LongBits(message.autoExploreTimes.low >>> 0, message.autoExploreTimes.high >>> 0).toNumber() : message.autoExploreTimes;
  57028. return object;
  57029. };
  57030. /**
  57031. * Converts this building to JSON.
  57032. * @function toJSON
  57033. * @memberof game.building
  57034. * @instance
  57035. * @returns {Object.<string,*>} JSON object
  57036. */
  57037. building.prototype.toJSON = function toJSON() {
  57038. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57039. };
  57040. return building;
  57041. })();
  57042. game.packageMail = (function() {
  57043. /**
  57044. * Properties of a packageMail.
  57045. * @memberof game
  57046. * @interface IpackageMail
  57047. * @property {Array.<game.Iid_num>|null} [currency] packageMail currency
  57048. */
  57049. /**
  57050. * Constructs a new packageMail.
  57051. * @memberof game
  57052. * @classdesc Represents a packageMail.
  57053. * @implements IpackageMail
  57054. * @constructor
  57055. * @param {game.IpackageMail=} [properties] Properties to set
  57056. */
  57057. function packageMail(properties) {
  57058. this.currency = [];
  57059. if (properties)
  57060. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57061. if (properties[keys[i]] != null)
  57062. this[keys[i]] = properties[keys[i]];
  57063. }
  57064. /**
  57065. * packageMail currency.
  57066. * @member {Array.<game.Iid_num>} currency
  57067. * @memberof game.packageMail
  57068. * @instance
  57069. */
  57070. packageMail.prototype.currency = $util.emptyArray;
  57071. /**
  57072. * Creates a new packageMail instance using the specified properties.
  57073. * @function create
  57074. * @memberof game.packageMail
  57075. * @static
  57076. * @param {game.IpackageMail=} [properties] Properties to set
  57077. * @returns {game.packageMail} packageMail instance
  57078. */
  57079. packageMail.create = function create(properties) {
  57080. return new packageMail(properties);
  57081. };
  57082. /**
  57083. * Encodes the specified packageMail message. Does not implicitly {@link game.packageMail.verify|verify} messages.
  57084. * @function encode
  57085. * @memberof game.packageMail
  57086. * @static
  57087. * @param {game.IpackageMail} message packageMail message or plain object to encode
  57088. * @param {$protobuf.Writer} [writer] Writer to encode to
  57089. * @returns {$protobuf.Writer} Writer
  57090. */
  57091. packageMail.encode = function encode(message, writer) {
  57092. if (!writer)
  57093. writer = $Writer.create();
  57094. if (message.currency != null && message.currency.length)
  57095. for (let i = 0; i < message.currency.length; ++i)
  57096. $root.game.id_num.encode(message.currency[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
  57097. return writer;
  57098. };
  57099. /**
  57100. * Encodes the specified packageMail message, length delimited. Does not implicitly {@link game.packageMail.verify|verify} messages.
  57101. * @function encodeDelimited
  57102. * @memberof game.packageMail
  57103. * @static
  57104. * @param {game.IpackageMail} message packageMail message or plain object to encode
  57105. * @param {$protobuf.Writer} [writer] Writer to encode to
  57106. * @returns {$protobuf.Writer} Writer
  57107. */
  57108. packageMail.encodeDelimited = function encodeDelimited(message, writer) {
  57109. return this.encode(message, writer).ldelim();
  57110. };
  57111. /**
  57112. * Decodes a packageMail message from the specified reader or buffer.
  57113. * @function decode
  57114. * @memberof game.packageMail
  57115. * @static
  57116. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57117. * @param {number} [length] Message length if known beforehand
  57118. * @returns {game.packageMail} packageMail
  57119. * @throws {Error} If the payload is not a reader or valid buffer
  57120. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57121. */
  57122. packageMail.decode = function decode(reader, length) {
  57123. if (!(reader instanceof $Reader))
  57124. reader = $Reader.create(reader);
  57125. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.packageMail();
  57126. while (reader.pos < end) {
  57127. let tag = reader.uint32();
  57128. switch (tag >>> 3) {
  57129. case 1:
  57130. if (!(message.currency && message.currency.length))
  57131. message.currency = [];
  57132. message.currency.push($root.game.id_num.decode(reader, reader.uint32()));
  57133. break;
  57134. default:
  57135. reader.skipType(tag & 7);
  57136. break;
  57137. }
  57138. }
  57139. return message;
  57140. };
  57141. /**
  57142. * Decodes a packageMail message from the specified reader or buffer, length delimited.
  57143. * @function decodeDelimited
  57144. * @memberof game.packageMail
  57145. * @static
  57146. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57147. * @returns {game.packageMail} packageMail
  57148. * @throws {Error} If the payload is not a reader or valid buffer
  57149. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57150. */
  57151. packageMail.decodeDelimited = function decodeDelimited(reader) {
  57152. if (!(reader instanceof $Reader))
  57153. reader = new $Reader(reader);
  57154. return this.decode(reader, reader.uint32());
  57155. };
  57156. /**
  57157. * Verifies a packageMail message.
  57158. * @function verify
  57159. * @memberof game.packageMail
  57160. * @static
  57161. * @param {Object.<string,*>} message Plain object to verify
  57162. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57163. */
  57164. packageMail.verify = function verify(message) {
  57165. if (typeof message !== "object" || message === null)
  57166. return "object expected";
  57167. if (message.currency != null && message.hasOwnProperty("currency")) {
  57168. if (!Array.isArray(message.currency))
  57169. return "currency: array expected";
  57170. for (let i = 0; i < message.currency.length; ++i) {
  57171. let error = $root.game.id_num.verify(message.currency[i]);
  57172. if (error)
  57173. return "currency." + error;
  57174. }
  57175. }
  57176. return null;
  57177. };
  57178. /**
  57179. * Creates a packageMail message from a plain object. Also converts values to their respective internal types.
  57180. * @function fromObject
  57181. * @memberof game.packageMail
  57182. * @static
  57183. * @param {Object.<string,*>} object Plain object
  57184. * @returns {game.packageMail} packageMail
  57185. */
  57186. packageMail.fromObject = function fromObject(object) {
  57187. if (object instanceof $root.game.packageMail)
  57188. return object;
  57189. let message = new $root.game.packageMail();
  57190. if (object.currency) {
  57191. if (!Array.isArray(object.currency))
  57192. throw TypeError(".game.packageMail.currency: array expected");
  57193. message.currency = [];
  57194. for (let i = 0; i < object.currency.length; ++i) {
  57195. if (typeof object.currency[i] !== "object")
  57196. throw TypeError(".game.packageMail.currency: object expected");
  57197. message.currency[i] = $root.game.id_num.fromObject(object.currency[i]);
  57198. }
  57199. }
  57200. return message;
  57201. };
  57202. /**
  57203. * Creates a plain object from a packageMail message. Also converts values to other types if specified.
  57204. * @function toObject
  57205. * @memberof game.packageMail
  57206. * @static
  57207. * @param {game.packageMail} message packageMail
  57208. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57209. * @returns {Object.<string,*>} Plain object
  57210. */
  57211. packageMail.toObject = function toObject(message, options) {
  57212. if (!options)
  57213. options = {};
  57214. let object = {};
  57215. if (options.arrays || options.defaults)
  57216. object.currency = [];
  57217. if (message.currency && message.currency.length) {
  57218. object.currency = [];
  57219. for (let j = 0; j < message.currency.length; ++j)
  57220. object.currency[j] = $root.game.id_num.toObject(message.currency[j], options);
  57221. }
  57222. return object;
  57223. };
  57224. /**
  57225. * Converts this packageMail to JSON.
  57226. * @function toJSON
  57227. * @memberof game.packageMail
  57228. * @instance
  57229. * @returns {Object.<string,*>} JSON object
  57230. */
  57231. packageMail.prototype.toJSON = function toJSON() {
  57232. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57233. };
  57234. return packageMail;
  57235. })();
  57236. game.mail = (function() {
  57237. /**
  57238. * Properties of a mail.
  57239. * @memberof game
  57240. * @interface Imail
  57241. * @property {string|null} [id] mail id
  57242. * @property {number|Long|null} [date] mail date
  57243. * @property {number|Long|null} [subject] mail subject
  57244. * @property {string|null} [body] mail body
  57245. * @property {Array.<game.Iid_num>|null} [attachment] mail attachment
  57246. * @property {boolean|null} [attach] mail attach
  57247. * @property {boolean|null} [read] mail read
  57248. * @property {boolean|null} [receive] mail receive
  57249. */
  57250. /**
  57251. * Constructs a new mail.
  57252. * @memberof game
  57253. * @classdesc Represents a mail.
  57254. * @implements Imail
  57255. * @constructor
  57256. * @param {game.Imail=} [properties] Properties to set
  57257. */
  57258. function mail(properties) {
  57259. this.attachment = [];
  57260. if (properties)
  57261. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57262. if (properties[keys[i]] != null)
  57263. this[keys[i]] = properties[keys[i]];
  57264. }
  57265. /**
  57266. * mail id.
  57267. * @member {string} id
  57268. * @memberof game.mail
  57269. * @instance
  57270. */
  57271. mail.prototype.id = "";
  57272. /**
  57273. * mail date.
  57274. * @member {number|Long} date
  57275. * @memberof game.mail
  57276. * @instance
  57277. */
  57278. mail.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57279. /**
  57280. * mail subject.
  57281. * @member {number|Long} subject
  57282. * @memberof game.mail
  57283. * @instance
  57284. */
  57285. mail.prototype.subject = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57286. /**
  57287. * mail body.
  57288. * @member {string} body
  57289. * @memberof game.mail
  57290. * @instance
  57291. */
  57292. mail.prototype.body = "";
  57293. /**
  57294. * mail attachment.
  57295. * @member {Array.<game.Iid_num>} attachment
  57296. * @memberof game.mail
  57297. * @instance
  57298. */
  57299. mail.prototype.attachment = $util.emptyArray;
  57300. /**
  57301. * mail attach.
  57302. * @member {boolean} attach
  57303. * @memberof game.mail
  57304. * @instance
  57305. */
  57306. mail.prototype.attach = false;
  57307. /**
  57308. * mail read.
  57309. * @member {boolean} read
  57310. * @memberof game.mail
  57311. * @instance
  57312. */
  57313. mail.prototype.read = false;
  57314. /**
  57315. * mail receive.
  57316. * @member {boolean} receive
  57317. * @memberof game.mail
  57318. * @instance
  57319. */
  57320. mail.prototype.receive = false;
  57321. /**
  57322. * Creates a new mail instance using the specified properties.
  57323. * @function create
  57324. * @memberof game.mail
  57325. * @static
  57326. * @param {game.Imail=} [properties] Properties to set
  57327. * @returns {game.mail} mail instance
  57328. */
  57329. mail.create = function create(properties) {
  57330. return new mail(properties);
  57331. };
  57332. /**
  57333. * Encodes the specified mail message. Does not implicitly {@link game.mail.verify|verify} messages.
  57334. * @function encode
  57335. * @memberof game.mail
  57336. * @static
  57337. * @param {game.Imail} message mail message or plain object to encode
  57338. * @param {$protobuf.Writer} [writer] Writer to encode to
  57339. * @returns {$protobuf.Writer} Writer
  57340. */
  57341. mail.encode = function encode(message, writer) {
  57342. if (!writer)
  57343. writer = $Writer.create();
  57344. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  57345. writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
  57346. if (message.date != null && Object.hasOwnProperty.call(message, "date"))
  57347. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.date);
  57348. if (message.subject != null && Object.hasOwnProperty.call(message, "subject"))
  57349. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.subject);
  57350. if (message.body != null && Object.hasOwnProperty.call(message, "body"))
  57351. writer.uint32(/* id 4, wireType 2 =*/34).string(message.body);
  57352. if (message.attachment != null && message.attachment.length)
  57353. for (let i = 0; i < message.attachment.length; ++i)
  57354. $root.game.id_num.encode(message.attachment[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
  57355. if (message.attach != null && Object.hasOwnProperty.call(message, "attach"))
  57356. writer.uint32(/* id 6, wireType 0 =*/48).bool(message.attach);
  57357. if (message.read != null && Object.hasOwnProperty.call(message, "read"))
  57358. writer.uint32(/* id 7, wireType 0 =*/56).bool(message.read);
  57359. if (message.receive != null && Object.hasOwnProperty.call(message, "receive"))
  57360. writer.uint32(/* id 8, wireType 0 =*/64).bool(message.receive);
  57361. return writer;
  57362. };
  57363. /**
  57364. * Encodes the specified mail message, length delimited. Does not implicitly {@link game.mail.verify|verify} messages.
  57365. * @function encodeDelimited
  57366. * @memberof game.mail
  57367. * @static
  57368. * @param {game.Imail} message mail message or plain object to encode
  57369. * @param {$protobuf.Writer} [writer] Writer to encode to
  57370. * @returns {$protobuf.Writer} Writer
  57371. */
  57372. mail.encodeDelimited = function encodeDelimited(message, writer) {
  57373. return this.encode(message, writer).ldelim();
  57374. };
  57375. /**
  57376. * Decodes a mail message from the specified reader or buffer.
  57377. * @function decode
  57378. * @memberof game.mail
  57379. * @static
  57380. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57381. * @param {number} [length] Message length if known beforehand
  57382. * @returns {game.mail} mail
  57383. * @throws {Error} If the payload is not a reader or valid buffer
  57384. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57385. */
  57386. mail.decode = function decode(reader, length) {
  57387. if (!(reader instanceof $Reader))
  57388. reader = $Reader.create(reader);
  57389. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.mail();
  57390. while (reader.pos < end) {
  57391. let tag = reader.uint32();
  57392. switch (tag >>> 3) {
  57393. case 1:
  57394. message.id = reader.string();
  57395. break;
  57396. case 2:
  57397. message.date = reader.int64();
  57398. break;
  57399. case 3:
  57400. message.subject = reader.int64();
  57401. break;
  57402. case 4:
  57403. message.body = reader.string();
  57404. break;
  57405. case 5:
  57406. if (!(message.attachment && message.attachment.length))
  57407. message.attachment = [];
  57408. message.attachment.push($root.game.id_num.decode(reader, reader.uint32()));
  57409. break;
  57410. case 6:
  57411. message.attach = reader.bool();
  57412. break;
  57413. case 7:
  57414. message.read = reader.bool();
  57415. break;
  57416. case 8:
  57417. message.receive = reader.bool();
  57418. break;
  57419. default:
  57420. reader.skipType(tag & 7);
  57421. break;
  57422. }
  57423. }
  57424. return message;
  57425. };
  57426. /**
  57427. * Decodes a mail message from the specified reader or buffer, length delimited.
  57428. * @function decodeDelimited
  57429. * @memberof game.mail
  57430. * @static
  57431. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57432. * @returns {game.mail} mail
  57433. * @throws {Error} If the payload is not a reader or valid buffer
  57434. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57435. */
  57436. mail.decodeDelimited = function decodeDelimited(reader) {
  57437. if (!(reader instanceof $Reader))
  57438. reader = new $Reader(reader);
  57439. return this.decode(reader, reader.uint32());
  57440. };
  57441. /**
  57442. * Verifies a mail message.
  57443. * @function verify
  57444. * @memberof game.mail
  57445. * @static
  57446. * @param {Object.<string,*>} message Plain object to verify
  57447. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57448. */
  57449. mail.verify = function verify(message) {
  57450. if (typeof message !== "object" || message === null)
  57451. return "object expected";
  57452. if (message.id != null && message.hasOwnProperty("id"))
  57453. if (!$util.isString(message.id))
  57454. return "id: string expected";
  57455. if (message.date != null && message.hasOwnProperty("date"))
  57456. if (!$util.isInteger(message.date) && !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high)))
  57457. return "date: integer|Long expected";
  57458. if (message.subject != null && message.hasOwnProperty("subject"))
  57459. if (!$util.isInteger(message.subject) && !(message.subject && $util.isInteger(message.subject.low) && $util.isInteger(message.subject.high)))
  57460. return "subject: integer|Long expected";
  57461. if (message.body != null && message.hasOwnProperty("body"))
  57462. if (!$util.isString(message.body))
  57463. return "body: string expected";
  57464. if (message.attachment != null && message.hasOwnProperty("attachment")) {
  57465. if (!Array.isArray(message.attachment))
  57466. return "attachment: array expected";
  57467. for (let i = 0; i < message.attachment.length; ++i) {
  57468. let error = $root.game.id_num.verify(message.attachment[i]);
  57469. if (error)
  57470. return "attachment." + error;
  57471. }
  57472. }
  57473. if (message.attach != null && message.hasOwnProperty("attach"))
  57474. if (typeof message.attach !== "boolean")
  57475. return "attach: boolean expected";
  57476. if (message.read != null && message.hasOwnProperty("read"))
  57477. if (typeof message.read !== "boolean")
  57478. return "read: boolean expected";
  57479. if (message.receive != null && message.hasOwnProperty("receive"))
  57480. if (typeof message.receive !== "boolean")
  57481. return "receive: boolean expected";
  57482. return null;
  57483. };
  57484. /**
  57485. * Creates a mail message from a plain object. Also converts values to their respective internal types.
  57486. * @function fromObject
  57487. * @memberof game.mail
  57488. * @static
  57489. * @param {Object.<string,*>} object Plain object
  57490. * @returns {game.mail} mail
  57491. */
  57492. mail.fromObject = function fromObject(object) {
  57493. if (object instanceof $root.game.mail)
  57494. return object;
  57495. let message = new $root.game.mail();
  57496. if (object.id != null)
  57497. message.id = String(object.id);
  57498. if (object.date != null)
  57499. if ($util.Long)
  57500. (message.date = $util.Long.fromValue(object.date)).unsigned = false;
  57501. else if (typeof object.date === "string")
  57502. message.date = parseInt(object.date, 10);
  57503. else if (typeof object.date === "number")
  57504. message.date = object.date;
  57505. else if (typeof object.date === "object")
  57506. message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber();
  57507. if (object.subject != null)
  57508. if ($util.Long)
  57509. (message.subject = $util.Long.fromValue(object.subject)).unsigned = false;
  57510. else if (typeof object.subject === "string")
  57511. message.subject = parseInt(object.subject, 10);
  57512. else if (typeof object.subject === "number")
  57513. message.subject = object.subject;
  57514. else if (typeof object.subject === "object")
  57515. message.subject = new $util.LongBits(object.subject.low >>> 0, object.subject.high >>> 0).toNumber();
  57516. if (object.body != null)
  57517. message.body = String(object.body);
  57518. if (object.attachment) {
  57519. if (!Array.isArray(object.attachment))
  57520. throw TypeError(".game.mail.attachment: array expected");
  57521. message.attachment = [];
  57522. for (let i = 0; i < object.attachment.length; ++i) {
  57523. if (typeof object.attachment[i] !== "object")
  57524. throw TypeError(".game.mail.attachment: object expected");
  57525. message.attachment[i] = $root.game.id_num.fromObject(object.attachment[i]);
  57526. }
  57527. }
  57528. if (object.attach != null)
  57529. message.attach = Boolean(object.attach);
  57530. if (object.read != null)
  57531. message.read = Boolean(object.read);
  57532. if (object.receive != null)
  57533. message.receive = Boolean(object.receive);
  57534. return message;
  57535. };
  57536. /**
  57537. * Creates a plain object from a mail message. Also converts values to other types if specified.
  57538. * @function toObject
  57539. * @memberof game.mail
  57540. * @static
  57541. * @param {game.mail} message mail
  57542. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57543. * @returns {Object.<string,*>} Plain object
  57544. */
  57545. mail.toObject = function toObject(message, options) {
  57546. if (!options)
  57547. options = {};
  57548. let object = {};
  57549. if (options.arrays || options.defaults)
  57550. object.attachment = [];
  57551. if (options.defaults) {
  57552. object.id = "";
  57553. if ($util.Long) {
  57554. let long = new $util.Long(0, 0, false);
  57555. object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57556. } else
  57557. object.date = options.longs === String ? "0" : 0;
  57558. if ($util.Long) {
  57559. let long = new $util.Long(0, 0, false);
  57560. object.subject = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57561. } else
  57562. object.subject = options.longs === String ? "0" : 0;
  57563. object.body = "";
  57564. object.attach = false;
  57565. object.read = false;
  57566. object.receive = false;
  57567. }
  57568. if (message.id != null && message.hasOwnProperty("id"))
  57569. object.id = message.id;
  57570. if (message.date != null && message.hasOwnProperty("date"))
  57571. if (typeof message.date === "number")
  57572. object.date = options.longs === String ? String(message.date) : message.date;
  57573. else
  57574. object.date = options.longs === String ? $util.Long.prototype.toString.call(message.date) : options.longs === Number ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() : message.date;
  57575. if (message.subject != null && message.hasOwnProperty("subject"))
  57576. if (typeof message.subject === "number")
  57577. object.subject = options.longs === String ? String(message.subject) : message.subject;
  57578. else
  57579. object.subject = options.longs === String ? $util.Long.prototype.toString.call(message.subject) : options.longs === Number ? new $util.LongBits(message.subject.low >>> 0, message.subject.high >>> 0).toNumber() : message.subject;
  57580. if (message.body != null && message.hasOwnProperty("body"))
  57581. object.body = message.body;
  57582. if (message.attachment && message.attachment.length) {
  57583. object.attachment = [];
  57584. for (let j = 0; j < message.attachment.length; ++j)
  57585. object.attachment[j] = $root.game.id_num.toObject(message.attachment[j], options);
  57586. }
  57587. if (message.attach != null && message.hasOwnProperty("attach"))
  57588. object.attach = message.attach;
  57589. if (message.read != null && message.hasOwnProperty("read"))
  57590. object.read = message.read;
  57591. if (message.receive != null && message.hasOwnProperty("receive"))
  57592. object.receive = message.receive;
  57593. return object;
  57594. };
  57595. /**
  57596. * Converts this mail to JSON.
  57597. * @function toJSON
  57598. * @memberof game.mail
  57599. * @instance
  57600. * @returns {Object.<string,*>} JSON object
  57601. */
  57602. mail.prototype.toJSON = function toJSON() {
  57603. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57604. };
  57605. return mail;
  57606. })();
  57607. game.quest = (function() {
  57608. /**
  57609. * Properties of a quest.
  57610. * @memberof game
  57611. * @interface Iquest
  57612. * @property {number|Long|null} [id] quest id
  57613. * @property {number|Long|null} [progress] quest progress
  57614. * @property {number|Long|null} [state] quest state
  57615. */
  57616. /**
  57617. * Constructs a new quest.
  57618. * @memberof game
  57619. * @classdesc Represents a quest.
  57620. * @implements Iquest
  57621. * @constructor
  57622. * @param {game.Iquest=} [properties] Properties to set
  57623. */
  57624. function quest(properties) {
  57625. if (properties)
  57626. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57627. if (properties[keys[i]] != null)
  57628. this[keys[i]] = properties[keys[i]];
  57629. }
  57630. /**
  57631. * quest id.
  57632. * @member {number|Long} id
  57633. * @memberof game.quest
  57634. * @instance
  57635. */
  57636. quest.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57637. /**
  57638. * quest progress.
  57639. * @member {number|Long} progress
  57640. * @memberof game.quest
  57641. * @instance
  57642. */
  57643. quest.prototype.progress = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57644. /**
  57645. * quest state.
  57646. * @member {number|Long} state
  57647. * @memberof game.quest
  57648. * @instance
  57649. */
  57650. quest.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57651. /**
  57652. * Creates a new quest instance using the specified properties.
  57653. * @function create
  57654. * @memberof game.quest
  57655. * @static
  57656. * @param {game.Iquest=} [properties] Properties to set
  57657. * @returns {game.quest} quest instance
  57658. */
  57659. quest.create = function create(properties) {
  57660. return new quest(properties);
  57661. };
  57662. /**
  57663. * Encodes the specified quest message. Does not implicitly {@link game.quest.verify|verify} messages.
  57664. * @function encode
  57665. * @memberof game.quest
  57666. * @static
  57667. * @param {game.Iquest} message quest message or plain object to encode
  57668. * @param {$protobuf.Writer} [writer] Writer to encode to
  57669. * @returns {$protobuf.Writer} Writer
  57670. */
  57671. quest.encode = function encode(message, writer) {
  57672. if (!writer)
  57673. writer = $Writer.create();
  57674. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  57675. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  57676. if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
  57677. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.progress);
  57678. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  57679. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.state);
  57680. return writer;
  57681. };
  57682. /**
  57683. * Encodes the specified quest message, length delimited. Does not implicitly {@link game.quest.verify|verify} messages.
  57684. * @function encodeDelimited
  57685. * @memberof game.quest
  57686. * @static
  57687. * @param {game.Iquest} message quest message or plain object to encode
  57688. * @param {$protobuf.Writer} [writer] Writer to encode to
  57689. * @returns {$protobuf.Writer} Writer
  57690. */
  57691. quest.encodeDelimited = function encodeDelimited(message, writer) {
  57692. return this.encode(message, writer).ldelim();
  57693. };
  57694. /**
  57695. * Decodes a quest message from the specified reader or buffer.
  57696. * @function decode
  57697. * @memberof game.quest
  57698. * @static
  57699. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57700. * @param {number} [length] Message length if known beforehand
  57701. * @returns {game.quest} quest
  57702. * @throws {Error} If the payload is not a reader or valid buffer
  57703. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57704. */
  57705. quest.decode = function decode(reader, length) {
  57706. if (!(reader instanceof $Reader))
  57707. reader = $Reader.create(reader);
  57708. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.quest();
  57709. while (reader.pos < end) {
  57710. let tag = reader.uint32();
  57711. switch (tag >>> 3) {
  57712. case 1:
  57713. message.id = reader.int64();
  57714. break;
  57715. case 2:
  57716. message.progress = reader.int64();
  57717. break;
  57718. case 3:
  57719. message.state = reader.int64();
  57720. break;
  57721. default:
  57722. reader.skipType(tag & 7);
  57723. break;
  57724. }
  57725. }
  57726. return message;
  57727. };
  57728. /**
  57729. * Decodes a quest message from the specified reader or buffer, length delimited.
  57730. * @function decodeDelimited
  57731. * @memberof game.quest
  57732. * @static
  57733. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57734. * @returns {game.quest} quest
  57735. * @throws {Error} If the payload is not a reader or valid buffer
  57736. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57737. */
  57738. quest.decodeDelimited = function decodeDelimited(reader) {
  57739. if (!(reader instanceof $Reader))
  57740. reader = new $Reader(reader);
  57741. return this.decode(reader, reader.uint32());
  57742. };
  57743. /**
  57744. * Verifies a quest message.
  57745. * @function verify
  57746. * @memberof game.quest
  57747. * @static
  57748. * @param {Object.<string,*>} message Plain object to verify
  57749. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57750. */
  57751. quest.verify = function verify(message) {
  57752. if (typeof message !== "object" || message === null)
  57753. return "object expected";
  57754. if (message.id != null && message.hasOwnProperty("id"))
  57755. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  57756. return "id: integer|Long expected";
  57757. if (message.progress != null && message.hasOwnProperty("progress"))
  57758. if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
  57759. return "progress: integer|Long expected";
  57760. if (message.state != null && message.hasOwnProperty("state"))
  57761. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  57762. return "state: integer|Long expected";
  57763. return null;
  57764. };
  57765. /**
  57766. * Creates a quest message from a plain object. Also converts values to their respective internal types.
  57767. * @function fromObject
  57768. * @memberof game.quest
  57769. * @static
  57770. * @param {Object.<string,*>} object Plain object
  57771. * @returns {game.quest} quest
  57772. */
  57773. quest.fromObject = function fromObject(object) {
  57774. if (object instanceof $root.game.quest)
  57775. return object;
  57776. let message = new $root.game.quest();
  57777. if (object.id != null)
  57778. if ($util.Long)
  57779. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  57780. else if (typeof object.id === "string")
  57781. message.id = parseInt(object.id, 10);
  57782. else if (typeof object.id === "number")
  57783. message.id = object.id;
  57784. else if (typeof object.id === "object")
  57785. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  57786. if (object.progress != null)
  57787. if ($util.Long)
  57788. (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
  57789. else if (typeof object.progress === "string")
  57790. message.progress = parseInt(object.progress, 10);
  57791. else if (typeof object.progress === "number")
  57792. message.progress = object.progress;
  57793. else if (typeof object.progress === "object")
  57794. message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
  57795. if (object.state != null)
  57796. if ($util.Long)
  57797. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  57798. else if (typeof object.state === "string")
  57799. message.state = parseInt(object.state, 10);
  57800. else if (typeof object.state === "number")
  57801. message.state = object.state;
  57802. else if (typeof object.state === "object")
  57803. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  57804. return message;
  57805. };
  57806. /**
  57807. * Creates a plain object from a quest message. Also converts values to other types if specified.
  57808. * @function toObject
  57809. * @memberof game.quest
  57810. * @static
  57811. * @param {game.quest} message quest
  57812. * @param {$protobuf.IConversionOptions} [options] Conversion options
  57813. * @returns {Object.<string,*>} Plain object
  57814. */
  57815. quest.toObject = function toObject(message, options) {
  57816. if (!options)
  57817. options = {};
  57818. let object = {};
  57819. if (options.defaults) {
  57820. if ($util.Long) {
  57821. let long = new $util.Long(0, 0, false);
  57822. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57823. } else
  57824. object.id = options.longs === String ? "0" : 0;
  57825. if ($util.Long) {
  57826. let long = new $util.Long(0, 0, false);
  57827. object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57828. } else
  57829. object.progress = options.longs === String ? "0" : 0;
  57830. if ($util.Long) {
  57831. let long = new $util.Long(0, 0, false);
  57832. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  57833. } else
  57834. object.state = options.longs === String ? "0" : 0;
  57835. }
  57836. if (message.id != null && message.hasOwnProperty("id"))
  57837. if (typeof message.id === "number")
  57838. object.id = options.longs === String ? String(message.id) : message.id;
  57839. else
  57840. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  57841. if (message.progress != null && message.hasOwnProperty("progress"))
  57842. if (typeof message.progress === "number")
  57843. object.progress = options.longs === String ? String(message.progress) : message.progress;
  57844. else
  57845. object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
  57846. if (message.state != null && message.hasOwnProperty("state"))
  57847. if (typeof message.state === "number")
  57848. object.state = options.longs === String ? String(message.state) : message.state;
  57849. else
  57850. object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
  57851. return object;
  57852. };
  57853. /**
  57854. * Converts this quest to JSON.
  57855. * @function toJSON
  57856. * @memberof game.quest
  57857. * @instance
  57858. * @returns {Object.<string,*>} JSON object
  57859. */
  57860. quest.prototype.toJSON = function toJSON() {
  57861. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  57862. };
  57863. return quest;
  57864. })();
  57865. game.manual = (function() {
  57866. /**
  57867. * Properties of a manual.
  57868. * @memberof game
  57869. * @interface Imanual
  57870. * @property {boolean|null} [lock] manual lock
  57871. * @property {number|Long|null} [award] manual award
  57872. */
  57873. /**
  57874. * Constructs a new manual.
  57875. * @memberof game
  57876. * @classdesc Represents a manual.
  57877. * @implements Imanual
  57878. * @constructor
  57879. * @param {game.Imanual=} [properties] Properties to set
  57880. */
  57881. function manual(properties) {
  57882. if (properties)
  57883. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  57884. if (properties[keys[i]] != null)
  57885. this[keys[i]] = properties[keys[i]];
  57886. }
  57887. /**
  57888. * manual lock.
  57889. * @member {boolean} lock
  57890. * @memberof game.manual
  57891. * @instance
  57892. */
  57893. manual.prototype.lock = false;
  57894. /**
  57895. * manual award.
  57896. * @member {number|Long} award
  57897. * @memberof game.manual
  57898. * @instance
  57899. */
  57900. manual.prototype.award = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  57901. /**
  57902. * Creates a new manual instance using the specified properties.
  57903. * @function create
  57904. * @memberof game.manual
  57905. * @static
  57906. * @param {game.Imanual=} [properties] Properties to set
  57907. * @returns {game.manual} manual instance
  57908. */
  57909. manual.create = function create(properties) {
  57910. return new manual(properties);
  57911. };
  57912. /**
  57913. * Encodes the specified manual message. Does not implicitly {@link game.manual.verify|verify} messages.
  57914. * @function encode
  57915. * @memberof game.manual
  57916. * @static
  57917. * @param {game.Imanual} message manual message or plain object to encode
  57918. * @param {$protobuf.Writer} [writer] Writer to encode to
  57919. * @returns {$protobuf.Writer} Writer
  57920. */
  57921. manual.encode = function encode(message, writer) {
  57922. if (!writer)
  57923. writer = $Writer.create();
  57924. if (message.lock != null && Object.hasOwnProperty.call(message, "lock"))
  57925. writer.uint32(/* id 1, wireType 0 =*/8).bool(message.lock);
  57926. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  57927. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.award);
  57928. return writer;
  57929. };
  57930. /**
  57931. * Encodes the specified manual message, length delimited. Does not implicitly {@link game.manual.verify|verify} messages.
  57932. * @function encodeDelimited
  57933. * @memberof game.manual
  57934. * @static
  57935. * @param {game.Imanual} message manual message or plain object to encode
  57936. * @param {$protobuf.Writer} [writer] Writer to encode to
  57937. * @returns {$protobuf.Writer} Writer
  57938. */
  57939. manual.encodeDelimited = function encodeDelimited(message, writer) {
  57940. return this.encode(message, writer).ldelim();
  57941. };
  57942. /**
  57943. * Decodes a manual message from the specified reader or buffer.
  57944. * @function decode
  57945. * @memberof game.manual
  57946. * @static
  57947. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57948. * @param {number} [length] Message length if known beforehand
  57949. * @returns {game.manual} manual
  57950. * @throws {Error} If the payload is not a reader or valid buffer
  57951. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57952. */
  57953. manual.decode = function decode(reader, length) {
  57954. if (!(reader instanceof $Reader))
  57955. reader = $Reader.create(reader);
  57956. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.manual();
  57957. while (reader.pos < end) {
  57958. let tag = reader.uint32();
  57959. switch (tag >>> 3) {
  57960. case 1:
  57961. message.lock = reader.bool();
  57962. break;
  57963. case 2:
  57964. message.award = reader.int64();
  57965. break;
  57966. default:
  57967. reader.skipType(tag & 7);
  57968. break;
  57969. }
  57970. }
  57971. return message;
  57972. };
  57973. /**
  57974. * Decodes a manual message from the specified reader or buffer, length delimited.
  57975. * @function decodeDelimited
  57976. * @memberof game.manual
  57977. * @static
  57978. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  57979. * @returns {game.manual} manual
  57980. * @throws {Error} If the payload is not a reader or valid buffer
  57981. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  57982. */
  57983. manual.decodeDelimited = function decodeDelimited(reader) {
  57984. if (!(reader instanceof $Reader))
  57985. reader = new $Reader(reader);
  57986. return this.decode(reader, reader.uint32());
  57987. };
  57988. /**
  57989. * Verifies a manual message.
  57990. * @function verify
  57991. * @memberof game.manual
  57992. * @static
  57993. * @param {Object.<string,*>} message Plain object to verify
  57994. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  57995. */
  57996. manual.verify = function verify(message) {
  57997. if (typeof message !== "object" || message === null)
  57998. return "object expected";
  57999. if (message.lock != null && message.hasOwnProperty("lock"))
  58000. if (typeof message.lock !== "boolean")
  58001. return "lock: boolean expected";
  58002. if (message.award != null && message.hasOwnProperty("award"))
  58003. if (!$util.isInteger(message.award) && !(message.award && $util.isInteger(message.award.low) && $util.isInteger(message.award.high)))
  58004. return "award: integer|Long expected";
  58005. return null;
  58006. };
  58007. /**
  58008. * Creates a manual message from a plain object. Also converts values to their respective internal types.
  58009. * @function fromObject
  58010. * @memberof game.manual
  58011. * @static
  58012. * @param {Object.<string,*>} object Plain object
  58013. * @returns {game.manual} manual
  58014. */
  58015. manual.fromObject = function fromObject(object) {
  58016. if (object instanceof $root.game.manual)
  58017. return object;
  58018. let message = new $root.game.manual();
  58019. if (object.lock != null)
  58020. message.lock = Boolean(object.lock);
  58021. if (object.award != null)
  58022. if ($util.Long)
  58023. (message.award = $util.Long.fromValue(object.award)).unsigned = false;
  58024. else if (typeof object.award === "string")
  58025. message.award = parseInt(object.award, 10);
  58026. else if (typeof object.award === "number")
  58027. message.award = object.award;
  58028. else if (typeof object.award === "object")
  58029. message.award = new $util.LongBits(object.award.low >>> 0, object.award.high >>> 0).toNumber();
  58030. return message;
  58031. };
  58032. /**
  58033. * Creates a plain object from a manual message. Also converts values to other types if specified.
  58034. * @function toObject
  58035. * @memberof game.manual
  58036. * @static
  58037. * @param {game.manual} message manual
  58038. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58039. * @returns {Object.<string,*>} Plain object
  58040. */
  58041. manual.toObject = function toObject(message, options) {
  58042. if (!options)
  58043. options = {};
  58044. let object = {};
  58045. if (options.defaults) {
  58046. object.lock = false;
  58047. if ($util.Long) {
  58048. let long = new $util.Long(0, 0, false);
  58049. object.award = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58050. } else
  58051. object.award = options.longs === String ? "0" : 0;
  58052. }
  58053. if (message.lock != null && message.hasOwnProperty("lock"))
  58054. object.lock = message.lock;
  58055. if (message.award != null && message.hasOwnProperty("award"))
  58056. if (typeof message.award === "number")
  58057. object.award = options.longs === String ? String(message.award) : message.award;
  58058. else
  58059. object.award = options.longs === String ? $util.Long.prototype.toString.call(message.award) : options.longs === Number ? new $util.LongBits(message.award.low >>> 0, message.award.high >>> 0).toNumber() : message.award;
  58060. return object;
  58061. };
  58062. /**
  58063. * Converts this manual to JSON.
  58064. * @function toJSON
  58065. * @memberof game.manual
  58066. * @instance
  58067. * @returns {Object.<string,*>} JSON object
  58068. */
  58069. manual.prototype.toJSON = function toJSON() {
  58070. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58071. };
  58072. return manual;
  58073. })();
  58074. game.draw_award_info = (function() {
  58075. /**
  58076. * Properties of a draw_award_info.
  58077. * @memberof game
  58078. * @interface Idraw_award_info
  58079. * @property {number|Long|null} [id] draw_award_info id
  58080. * @property {number|Long|null} [num] draw_award_info num
  58081. * @property {number|Long|null} [quality] draw_award_info quality
  58082. */
  58083. /**
  58084. * Constructs a new draw_award_info.
  58085. * @memberof game
  58086. * @classdesc Represents a draw_award_info.
  58087. * @implements Idraw_award_info
  58088. * @constructor
  58089. * @param {game.Idraw_award_info=} [properties] Properties to set
  58090. */
  58091. function draw_award_info(properties) {
  58092. if (properties)
  58093. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58094. if (properties[keys[i]] != null)
  58095. this[keys[i]] = properties[keys[i]];
  58096. }
  58097. /**
  58098. * draw_award_info id.
  58099. * @member {number|Long} id
  58100. * @memberof game.draw_award_info
  58101. * @instance
  58102. */
  58103. draw_award_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58104. /**
  58105. * draw_award_info num.
  58106. * @member {number|Long} num
  58107. * @memberof game.draw_award_info
  58108. * @instance
  58109. */
  58110. draw_award_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58111. /**
  58112. * draw_award_info quality.
  58113. * @member {number|Long} quality
  58114. * @memberof game.draw_award_info
  58115. * @instance
  58116. */
  58117. draw_award_info.prototype.quality = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58118. /**
  58119. * Creates a new draw_award_info instance using the specified properties.
  58120. * @function create
  58121. * @memberof game.draw_award_info
  58122. * @static
  58123. * @param {game.Idraw_award_info=} [properties] Properties to set
  58124. * @returns {game.draw_award_info} draw_award_info instance
  58125. */
  58126. draw_award_info.create = function create(properties) {
  58127. return new draw_award_info(properties);
  58128. };
  58129. /**
  58130. * Encodes the specified draw_award_info message. Does not implicitly {@link game.draw_award_info.verify|verify} messages.
  58131. * @function encode
  58132. * @memberof game.draw_award_info
  58133. * @static
  58134. * @param {game.Idraw_award_info} message draw_award_info message or plain object to encode
  58135. * @param {$protobuf.Writer} [writer] Writer to encode to
  58136. * @returns {$protobuf.Writer} Writer
  58137. */
  58138. draw_award_info.encode = function encode(message, writer) {
  58139. if (!writer)
  58140. writer = $Writer.create();
  58141. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  58142. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  58143. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  58144. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  58145. if (message.quality != null && Object.hasOwnProperty.call(message, "quality"))
  58146. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.quality);
  58147. return writer;
  58148. };
  58149. /**
  58150. * Encodes the specified draw_award_info message, length delimited. Does not implicitly {@link game.draw_award_info.verify|verify} messages.
  58151. * @function encodeDelimited
  58152. * @memberof game.draw_award_info
  58153. * @static
  58154. * @param {game.Idraw_award_info} message draw_award_info message or plain object to encode
  58155. * @param {$protobuf.Writer} [writer] Writer to encode to
  58156. * @returns {$protobuf.Writer} Writer
  58157. */
  58158. draw_award_info.encodeDelimited = function encodeDelimited(message, writer) {
  58159. return this.encode(message, writer).ldelim();
  58160. };
  58161. /**
  58162. * Decodes a draw_award_info message from the specified reader or buffer.
  58163. * @function decode
  58164. * @memberof game.draw_award_info
  58165. * @static
  58166. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58167. * @param {number} [length] Message length if known beforehand
  58168. * @returns {game.draw_award_info} draw_award_info
  58169. * @throws {Error} If the payload is not a reader or valid buffer
  58170. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58171. */
  58172. draw_award_info.decode = function decode(reader, length) {
  58173. if (!(reader instanceof $Reader))
  58174. reader = $Reader.create(reader);
  58175. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_award_info();
  58176. while (reader.pos < end) {
  58177. let tag = reader.uint32();
  58178. switch (tag >>> 3) {
  58179. case 1:
  58180. message.id = reader.int64();
  58181. break;
  58182. case 2:
  58183. message.num = reader.int64();
  58184. break;
  58185. case 3:
  58186. message.quality = reader.int64();
  58187. break;
  58188. default:
  58189. reader.skipType(tag & 7);
  58190. break;
  58191. }
  58192. }
  58193. return message;
  58194. };
  58195. /**
  58196. * Decodes a draw_award_info message from the specified reader or buffer, length delimited.
  58197. * @function decodeDelimited
  58198. * @memberof game.draw_award_info
  58199. * @static
  58200. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58201. * @returns {game.draw_award_info} draw_award_info
  58202. * @throws {Error} If the payload is not a reader or valid buffer
  58203. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58204. */
  58205. draw_award_info.decodeDelimited = function decodeDelimited(reader) {
  58206. if (!(reader instanceof $Reader))
  58207. reader = new $Reader(reader);
  58208. return this.decode(reader, reader.uint32());
  58209. };
  58210. /**
  58211. * Verifies a draw_award_info message.
  58212. * @function verify
  58213. * @memberof game.draw_award_info
  58214. * @static
  58215. * @param {Object.<string,*>} message Plain object to verify
  58216. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58217. */
  58218. draw_award_info.verify = function verify(message) {
  58219. if (typeof message !== "object" || message === null)
  58220. return "object expected";
  58221. if (message.id != null && message.hasOwnProperty("id"))
  58222. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  58223. return "id: integer|Long expected";
  58224. if (message.num != null && message.hasOwnProperty("num"))
  58225. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  58226. return "num: integer|Long expected";
  58227. if (message.quality != null && message.hasOwnProperty("quality"))
  58228. if (!$util.isInteger(message.quality) && !(message.quality && $util.isInteger(message.quality.low) && $util.isInteger(message.quality.high)))
  58229. return "quality: integer|Long expected";
  58230. return null;
  58231. };
  58232. /**
  58233. * Creates a draw_award_info message from a plain object. Also converts values to their respective internal types.
  58234. * @function fromObject
  58235. * @memberof game.draw_award_info
  58236. * @static
  58237. * @param {Object.<string,*>} object Plain object
  58238. * @returns {game.draw_award_info} draw_award_info
  58239. */
  58240. draw_award_info.fromObject = function fromObject(object) {
  58241. if (object instanceof $root.game.draw_award_info)
  58242. return object;
  58243. let message = new $root.game.draw_award_info();
  58244. if (object.id != null)
  58245. if ($util.Long)
  58246. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  58247. else if (typeof object.id === "string")
  58248. message.id = parseInt(object.id, 10);
  58249. else if (typeof object.id === "number")
  58250. message.id = object.id;
  58251. else if (typeof object.id === "object")
  58252. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  58253. if (object.num != null)
  58254. if ($util.Long)
  58255. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  58256. else if (typeof object.num === "string")
  58257. message.num = parseInt(object.num, 10);
  58258. else if (typeof object.num === "number")
  58259. message.num = object.num;
  58260. else if (typeof object.num === "object")
  58261. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  58262. if (object.quality != null)
  58263. if ($util.Long)
  58264. (message.quality = $util.Long.fromValue(object.quality)).unsigned = false;
  58265. else if (typeof object.quality === "string")
  58266. message.quality = parseInt(object.quality, 10);
  58267. else if (typeof object.quality === "number")
  58268. message.quality = object.quality;
  58269. else if (typeof object.quality === "object")
  58270. message.quality = new $util.LongBits(object.quality.low >>> 0, object.quality.high >>> 0).toNumber();
  58271. return message;
  58272. };
  58273. /**
  58274. * Creates a plain object from a draw_award_info message. Also converts values to other types if specified.
  58275. * @function toObject
  58276. * @memberof game.draw_award_info
  58277. * @static
  58278. * @param {game.draw_award_info} message draw_award_info
  58279. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58280. * @returns {Object.<string,*>} Plain object
  58281. */
  58282. draw_award_info.toObject = function toObject(message, options) {
  58283. if (!options)
  58284. options = {};
  58285. let object = {};
  58286. if (options.defaults) {
  58287. if ($util.Long) {
  58288. let long = new $util.Long(0, 0, false);
  58289. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58290. } else
  58291. object.id = options.longs === String ? "0" : 0;
  58292. if ($util.Long) {
  58293. let long = new $util.Long(0, 0, false);
  58294. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58295. } else
  58296. object.num = options.longs === String ? "0" : 0;
  58297. if ($util.Long) {
  58298. let long = new $util.Long(0, 0, false);
  58299. object.quality = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58300. } else
  58301. object.quality = options.longs === String ? "0" : 0;
  58302. }
  58303. if (message.id != null && message.hasOwnProperty("id"))
  58304. if (typeof message.id === "number")
  58305. object.id = options.longs === String ? String(message.id) : message.id;
  58306. else
  58307. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  58308. if (message.num != null && message.hasOwnProperty("num"))
  58309. if (typeof message.num === "number")
  58310. object.num = options.longs === String ? String(message.num) : message.num;
  58311. else
  58312. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  58313. if (message.quality != null && message.hasOwnProperty("quality"))
  58314. if (typeof message.quality === "number")
  58315. object.quality = options.longs === String ? String(message.quality) : message.quality;
  58316. else
  58317. object.quality = options.longs === String ? $util.Long.prototype.toString.call(message.quality) : options.longs === Number ? new $util.LongBits(message.quality.low >>> 0, message.quality.high >>> 0).toNumber() : message.quality;
  58318. return object;
  58319. };
  58320. /**
  58321. * Converts this draw_award_info to JSON.
  58322. * @function toJSON
  58323. * @memberof game.draw_award_info
  58324. * @instance
  58325. * @returns {Object.<string,*>} JSON object
  58326. */
  58327. draw_award_info.prototype.toJSON = function toJSON() {
  58328. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58329. };
  58330. return draw_award_info;
  58331. })();
  58332. game.draw_info = (function() {
  58333. /**
  58334. * Properties of a draw_info.
  58335. * @memberof game
  58336. * @interface Idraw_info
  58337. * @property {number|Long|null} [daily] draw_info daily
  58338. * @property {number|Long|null} [free] draw_info free
  58339. * @property {Array.<number|Long>|null} [list] draw_info list
  58340. */
  58341. /**
  58342. * Constructs a new draw_info.
  58343. * @memberof game
  58344. * @classdesc Represents a draw_info.
  58345. * @implements Idraw_info
  58346. * @constructor
  58347. * @param {game.Idraw_info=} [properties] Properties to set
  58348. */
  58349. function draw_info(properties) {
  58350. this.list = [];
  58351. if (properties)
  58352. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58353. if (properties[keys[i]] != null)
  58354. this[keys[i]] = properties[keys[i]];
  58355. }
  58356. /**
  58357. * draw_info daily.
  58358. * @member {number|Long} daily
  58359. * @memberof game.draw_info
  58360. * @instance
  58361. */
  58362. draw_info.prototype.daily = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58363. /**
  58364. * draw_info free.
  58365. * @member {number|Long} free
  58366. * @memberof game.draw_info
  58367. * @instance
  58368. */
  58369. draw_info.prototype.free = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58370. /**
  58371. * draw_info list.
  58372. * @member {Array.<number|Long>} list
  58373. * @memberof game.draw_info
  58374. * @instance
  58375. */
  58376. draw_info.prototype.list = $util.emptyArray;
  58377. /**
  58378. * Creates a new draw_info instance using the specified properties.
  58379. * @function create
  58380. * @memberof game.draw_info
  58381. * @static
  58382. * @param {game.Idraw_info=} [properties] Properties to set
  58383. * @returns {game.draw_info} draw_info instance
  58384. */
  58385. draw_info.create = function create(properties) {
  58386. return new draw_info(properties);
  58387. };
  58388. /**
  58389. * Encodes the specified draw_info message. Does not implicitly {@link game.draw_info.verify|verify} messages.
  58390. * @function encode
  58391. * @memberof game.draw_info
  58392. * @static
  58393. * @param {game.Idraw_info} message draw_info message or plain object to encode
  58394. * @param {$protobuf.Writer} [writer] Writer to encode to
  58395. * @returns {$protobuf.Writer} Writer
  58396. */
  58397. draw_info.encode = function encode(message, writer) {
  58398. if (!writer)
  58399. writer = $Writer.create();
  58400. if (message.daily != null && Object.hasOwnProperty.call(message, "daily"))
  58401. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.daily);
  58402. if (message.free != null && Object.hasOwnProperty.call(message, "free"))
  58403. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.free);
  58404. if (message.list != null && message.list.length) {
  58405. writer.uint32(/* id 3, wireType 2 =*/26).fork();
  58406. for (let i = 0; i < message.list.length; ++i)
  58407. writer.int64(message.list[i]);
  58408. writer.ldelim();
  58409. }
  58410. return writer;
  58411. };
  58412. /**
  58413. * Encodes the specified draw_info message, length delimited. Does not implicitly {@link game.draw_info.verify|verify} messages.
  58414. * @function encodeDelimited
  58415. * @memberof game.draw_info
  58416. * @static
  58417. * @param {game.Idraw_info} message draw_info message or plain object to encode
  58418. * @param {$protobuf.Writer} [writer] Writer to encode to
  58419. * @returns {$protobuf.Writer} Writer
  58420. */
  58421. draw_info.encodeDelimited = function encodeDelimited(message, writer) {
  58422. return this.encode(message, writer).ldelim();
  58423. };
  58424. /**
  58425. * Decodes a draw_info message from the specified reader or buffer.
  58426. * @function decode
  58427. * @memberof game.draw_info
  58428. * @static
  58429. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58430. * @param {number} [length] Message length if known beforehand
  58431. * @returns {game.draw_info} draw_info
  58432. * @throws {Error} If the payload is not a reader or valid buffer
  58433. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58434. */
  58435. draw_info.decode = function decode(reader, length) {
  58436. if (!(reader instanceof $Reader))
  58437. reader = $Reader.create(reader);
  58438. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.draw_info();
  58439. while (reader.pos < end) {
  58440. let tag = reader.uint32();
  58441. switch (tag >>> 3) {
  58442. case 1:
  58443. message.daily = reader.int64();
  58444. break;
  58445. case 2:
  58446. message.free = reader.int64();
  58447. break;
  58448. case 3:
  58449. if (!(message.list && message.list.length))
  58450. message.list = [];
  58451. if ((tag & 7) === 2) {
  58452. let end2 = reader.uint32() + reader.pos;
  58453. while (reader.pos < end2)
  58454. message.list.push(reader.int64());
  58455. } else
  58456. message.list.push(reader.int64());
  58457. break;
  58458. default:
  58459. reader.skipType(tag & 7);
  58460. break;
  58461. }
  58462. }
  58463. return message;
  58464. };
  58465. /**
  58466. * Decodes a draw_info message from the specified reader or buffer, length delimited.
  58467. * @function decodeDelimited
  58468. * @memberof game.draw_info
  58469. * @static
  58470. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58471. * @returns {game.draw_info} draw_info
  58472. * @throws {Error} If the payload is not a reader or valid buffer
  58473. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58474. */
  58475. draw_info.decodeDelimited = function decodeDelimited(reader) {
  58476. if (!(reader instanceof $Reader))
  58477. reader = new $Reader(reader);
  58478. return this.decode(reader, reader.uint32());
  58479. };
  58480. /**
  58481. * Verifies a draw_info message.
  58482. * @function verify
  58483. * @memberof game.draw_info
  58484. * @static
  58485. * @param {Object.<string,*>} message Plain object to verify
  58486. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58487. */
  58488. draw_info.verify = function verify(message) {
  58489. if (typeof message !== "object" || message === null)
  58490. return "object expected";
  58491. if (message.daily != null && message.hasOwnProperty("daily"))
  58492. if (!$util.isInteger(message.daily) && !(message.daily && $util.isInteger(message.daily.low) && $util.isInteger(message.daily.high)))
  58493. return "daily: integer|Long expected";
  58494. if (message.free != null && message.hasOwnProperty("free"))
  58495. if (!$util.isInteger(message.free) && !(message.free && $util.isInteger(message.free.low) && $util.isInteger(message.free.high)))
  58496. return "free: integer|Long expected";
  58497. if (message.list != null && message.hasOwnProperty("list")) {
  58498. if (!Array.isArray(message.list))
  58499. return "list: array expected";
  58500. for (let i = 0; i < message.list.length; ++i)
  58501. if (!$util.isInteger(message.list[i]) && !(message.list[i] && $util.isInteger(message.list[i].low) && $util.isInteger(message.list[i].high)))
  58502. return "list: integer|Long[] expected";
  58503. }
  58504. return null;
  58505. };
  58506. /**
  58507. * Creates a draw_info message from a plain object. Also converts values to their respective internal types.
  58508. * @function fromObject
  58509. * @memberof game.draw_info
  58510. * @static
  58511. * @param {Object.<string,*>} object Plain object
  58512. * @returns {game.draw_info} draw_info
  58513. */
  58514. draw_info.fromObject = function fromObject(object) {
  58515. if (object instanceof $root.game.draw_info)
  58516. return object;
  58517. let message = new $root.game.draw_info();
  58518. if (object.daily != null)
  58519. if ($util.Long)
  58520. (message.daily = $util.Long.fromValue(object.daily)).unsigned = false;
  58521. else if (typeof object.daily === "string")
  58522. message.daily = parseInt(object.daily, 10);
  58523. else if (typeof object.daily === "number")
  58524. message.daily = object.daily;
  58525. else if (typeof object.daily === "object")
  58526. message.daily = new $util.LongBits(object.daily.low >>> 0, object.daily.high >>> 0).toNumber();
  58527. if (object.free != null)
  58528. if ($util.Long)
  58529. (message.free = $util.Long.fromValue(object.free)).unsigned = false;
  58530. else if (typeof object.free === "string")
  58531. message.free = parseInt(object.free, 10);
  58532. else if (typeof object.free === "number")
  58533. message.free = object.free;
  58534. else if (typeof object.free === "object")
  58535. message.free = new $util.LongBits(object.free.low >>> 0, object.free.high >>> 0).toNumber();
  58536. if (object.list) {
  58537. if (!Array.isArray(object.list))
  58538. throw TypeError(".game.draw_info.list: array expected");
  58539. message.list = [];
  58540. for (let i = 0; i < object.list.length; ++i)
  58541. if ($util.Long)
  58542. (message.list[i] = $util.Long.fromValue(object.list[i])).unsigned = false;
  58543. else if (typeof object.list[i] === "string")
  58544. message.list[i] = parseInt(object.list[i], 10);
  58545. else if (typeof object.list[i] === "number")
  58546. message.list[i] = object.list[i];
  58547. else if (typeof object.list[i] === "object")
  58548. message.list[i] = new $util.LongBits(object.list[i].low >>> 0, object.list[i].high >>> 0).toNumber();
  58549. }
  58550. return message;
  58551. };
  58552. /**
  58553. * Creates a plain object from a draw_info message. Also converts values to other types if specified.
  58554. * @function toObject
  58555. * @memberof game.draw_info
  58556. * @static
  58557. * @param {game.draw_info} message draw_info
  58558. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58559. * @returns {Object.<string,*>} Plain object
  58560. */
  58561. draw_info.toObject = function toObject(message, options) {
  58562. if (!options)
  58563. options = {};
  58564. let object = {};
  58565. if (options.arrays || options.defaults)
  58566. object.list = [];
  58567. if (options.defaults) {
  58568. if ($util.Long) {
  58569. let long = new $util.Long(0, 0, false);
  58570. object.daily = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58571. } else
  58572. object.daily = options.longs === String ? "0" : 0;
  58573. if ($util.Long) {
  58574. let long = new $util.Long(0, 0, false);
  58575. object.free = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58576. } else
  58577. object.free = options.longs === String ? "0" : 0;
  58578. }
  58579. if (message.daily != null && message.hasOwnProperty("daily"))
  58580. if (typeof message.daily === "number")
  58581. object.daily = options.longs === String ? String(message.daily) : message.daily;
  58582. else
  58583. object.daily = options.longs === String ? $util.Long.prototype.toString.call(message.daily) : options.longs === Number ? new $util.LongBits(message.daily.low >>> 0, message.daily.high >>> 0).toNumber() : message.daily;
  58584. if (message.free != null && message.hasOwnProperty("free"))
  58585. if (typeof message.free === "number")
  58586. object.free = options.longs === String ? String(message.free) : message.free;
  58587. else
  58588. object.free = options.longs === String ? $util.Long.prototype.toString.call(message.free) : options.longs === Number ? new $util.LongBits(message.free.low >>> 0, message.free.high >>> 0).toNumber() : message.free;
  58589. if (message.list && message.list.length) {
  58590. object.list = [];
  58591. for (let j = 0; j < message.list.length; ++j)
  58592. if (typeof message.list[j] === "number")
  58593. object.list[j] = options.longs === String ? String(message.list[j]) : message.list[j];
  58594. else
  58595. object.list[j] = options.longs === String ? $util.Long.prototype.toString.call(message.list[j]) : options.longs === Number ? new $util.LongBits(message.list[j].low >>> 0, message.list[j].high >>> 0).toNumber() : message.list[j];
  58596. }
  58597. return object;
  58598. };
  58599. /**
  58600. * Converts this draw_info to JSON.
  58601. * @function toJSON
  58602. * @memberof game.draw_info
  58603. * @instance
  58604. * @returns {Object.<string,*>} JSON object
  58605. */
  58606. draw_info.prototype.toJSON = function toJSON() {
  58607. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58608. };
  58609. return draw_info;
  58610. })();
  58611. game.shop_info = (function() {
  58612. /**
  58613. * Properties of a shop_info.
  58614. * @memberof game
  58615. * @interface Ishop_info
  58616. * @property {number|Long|null} [type] shop_info type
  58617. * @property {Array.<game.Iid_num>|null} [list] shop_info list
  58618. */
  58619. /**
  58620. * Constructs a new shop_info.
  58621. * @memberof game
  58622. * @classdesc Represents a shop_info.
  58623. * @implements Ishop_info
  58624. * @constructor
  58625. * @param {game.Ishop_info=} [properties] Properties to set
  58626. */
  58627. function shop_info(properties) {
  58628. this.list = [];
  58629. if (properties)
  58630. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58631. if (properties[keys[i]] != null)
  58632. this[keys[i]] = properties[keys[i]];
  58633. }
  58634. /**
  58635. * shop_info type.
  58636. * @member {number|Long} type
  58637. * @memberof game.shop_info
  58638. * @instance
  58639. */
  58640. shop_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58641. /**
  58642. * shop_info list.
  58643. * @member {Array.<game.Iid_num>} list
  58644. * @memberof game.shop_info
  58645. * @instance
  58646. */
  58647. shop_info.prototype.list = $util.emptyArray;
  58648. /**
  58649. * Creates a new shop_info instance using the specified properties.
  58650. * @function create
  58651. * @memberof game.shop_info
  58652. * @static
  58653. * @param {game.Ishop_info=} [properties] Properties to set
  58654. * @returns {game.shop_info} shop_info instance
  58655. */
  58656. shop_info.create = function create(properties) {
  58657. return new shop_info(properties);
  58658. };
  58659. /**
  58660. * Encodes the specified shop_info message. Does not implicitly {@link game.shop_info.verify|verify} messages.
  58661. * @function encode
  58662. * @memberof game.shop_info
  58663. * @static
  58664. * @param {game.Ishop_info} message shop_info message or plain object to encode
  58665. * @param {$protobuf.Writer} [writer] Writer to encode to
  58666. * @returns {$protobuf.Writer} Writer
  58667. */
  58668. shop_info.encode = function encode(message, writer) {
  58669. if (!writer)
  58670. writer = $Writer.create();
  58671. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  58672. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  58673. if (message.list != null && message.list.length)
  58674. for (let i = 0; i < message.list.length; ++i)
  58675. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  58676. return writer;
  58677. };
  58678. /**
  58679. * Encodes the specified shop_info message, length delimited. Does not implicitly {@link game.shop_info.verify|verify} messages.
  58680. * @function encodeDelimited
  58681. * @memberof game.shop_info
  58682. * @static
  58683. * @param {game.Ishop_info} message shop_info message or plain object to encode
  58684. * @param {$protobuf.Writer} [writer] Writer to encode to
  58685. * @returns {$protobuf.Writer} Writer
  58686. */
  58687. shop_info.encodeDelimited = function encodeDelimited(message, writer) {
  58688. return this.encode(message, writer).ldelim();
  58689. };
  58690. /**
  58691. * Decodes a shop_info message from the specified reader or buffer.
  58692. * @function decode
  58693. * @memberof game.shop_info
  58694. * @static
  58695. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58696. * @param {number} [length] Message length if known beforehand
  58697. * @returns {game.shop_info} shop_info
  58698. * @throws {Error} If the payload is not a reader or valid buffer
  58699. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58700. */
  58701. shop_info.decode = function decode(reader, length) {
  58702. if (!(reader instanceof $Reader))
  58703. reader = $Reader.create(reader);
  58704. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.shop_info();
  58705. while (reader.pos < end) {
  58706. let tag = reader.uint32();
  58707. switch (tag >>> 3) {
  58708. case 1:
  58709. message.type = reader.int64();
  58710. break;
  58711. case 2:
  58712. if (!(message.list && message.list.length))
  58713. message.list = [];
  58714. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  58715. break;
  58716. default:
  58717. reader.skipType(tag & 7);
  58718. break;
  58719. }
  58720. }
  58721. return message;
  58722. };
  58723. /**
  58724. * Decodes a shop_info message from the specified reader or buffer, length delimited.
  58725. * @function decodeDelimited
  58726. * @memberof game.shop_info
  58727. * @static
  58728. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58729. * @returns {game.shop_info} shop_info
  58730. * @throws {Error} If the payload is not a reader or valid buffer
  58731. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58732. */
  58733. shop_info.decodeDelimited = function decodeDelimited(reader) {
  58734. if (!(reader instanceof $Reader))
  58735. reader = new $Reader(reader);
  58736. return this.decode(reader, reader.uint32());
  58737. };
  58738. /**
  58739. * Verifies a shop_info message.
  58740. * @function verify
  58741. * @memberof game.shop_info
  58742. * @static
  58743. * @param {Object.<string,*>} message Plain object to verify
  58744. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58745. */
  58746. shop_info.verify = function verify(message) {
  58747. if (typeof message !== "object" || message === null)
  58748. return "object expected";
  58749. if (message.type != null && message.hasOwnProperty("type"))
  58750. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  58751. return "type: integer|Long expected";
  58752. if (message.list != null && message.hasOwnProperty("list")) {
  58753. if (!Array.isArray(message.list))
  58754. return "list: array expected";
  58755. for (let i = 0; i < message.list.length; ++i) {
  58756. let error = $root.game.id_num.verify(message.list[i]);
  58757. if (error)
  58758. return "list." + error;
  58759. }
  58760. }
  58761. return null;
  58762. };
  58763. /**
  58764. * Creates a shop_info message from a plain object. Also converts values to their respective internal types.
  58765. * @function fromObject
  58766. * @memberof game.shop_info
  58767. * @static
  58768. * @param {Object.<string,*>} object Plain object
  58769. * @returns {game.shop_info} shop_info
  58770. */
  58771. shop_info.fromObject = function fromObject(object) {
  58772. if (object instanceof $root.game.shop_info)
  58773. return object;
  58774. let message = new $root.game.shop_info();
  58775. if (object.type != null)
  58776. if ($util.Long)
  58777. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  58778. else if (typeof object.type === "string")
  58779. message.type = parseInt(object.type, 10);
  58780. else if (typeof object.type === "number")
  58781. message.type = object.type;
  58782. else if (typeof object.type === "object")
  58783. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  58784. if (object.list) {
  58785. if (!Array.isArray(object.list))
  58786. throw TypeError(".game.shop_info.list: array expected");
  58787. message.list = [];
  58788. for (let i = 0; i < object.list.length; ++i) {
  58789. if (typeof object.list[i] !== "object")
  58790. throw TypeError(".game.shop_info.list: object expected");
  58791. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  58792. }
  58793. }
  58794. return message;
  58795. };
  58796. /**
  58797. * Creates a plain object from a shop_info message. Also converts values to other types if specified.
  58798. * @function toObject
  58799. * @memberof game.shop_info
  58800. * @static
  58801. * @param {game.shop_info} message shop_info
  58802. * @param {$protobuf.IConversionOptions} [options] Conversion options
  58803. * @returns {Object.<string,*>} Plain object
  58804. */
  58805. shop_info.toObject = function toObject(message, options) {
  58806. if (!options)
  58807. options = {};
  58808. let object = {};
  58809. if (options.arrays || options.defaults)
  58810. object.list = [];
  58811. if (options.defaults)
  58812. if ($util.Long) {
  58813. let long = new $util.Long(0, 0, false);
  58814. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  58815. } else
  58816. object.type = options.longs === String ? "0" : 0;
  58817. if (message.type != null && message.hasOwnProperty("type"))
  58818. if (typeof message.type === "number")
  58819. object.type = options.longs === String ? String(message.type) : message.type;
  58820. else
  58821. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  58822. if (message.list && message.list.length) {
  58823. object.list = [];
  58824. for (let j = 0; j < message.list.length; ++j)
  58825. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  58826. }
  58827. return object;
  58828. };
  58829. /**
  58830. * Converts this shop_info to JSON.
  58831. * @function toJSON
  58832. * @memberof game.shop_info
  58833. * @instance
  58834. * @returns {Object.<string,*>} JSON object
  58835. */
  58836. shop_info.prototype.toJSON = function toJSON() {
  58837. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  58838. };
  58839. return shop_info;
  58840. })();
  58841. game.role_info = (function() {
  58842. /**
  58843. * Properties of a role_info.
  58844. * @memberof game
  58845. * @interface Irole_info
  58846. * @property {string|null} [uid] role_info uid
  58847. * @property {string|null} [nickname] role_info nickname
  58848. * @property {number|Long|null} [avatar] role_info avatar
  58849. * @property {number|Long|null} [level] role_info level
  58850. */
  58851. /**
  58852. * Constructs a new role_info.
  58853. * @memberof game
  58854. * @classdesc Represents a role_info.
  58855. * @implements Irole_info
  58856. * @constructor
  58857. * @param {game.Irole_info=} [properties] Properties to set
  58858. */
  58859. function role_info(properties) {
  58860. if (properties)
  58861. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  58862. if (properties[keys[i]] != null)
  58863. this[keys[i]] = properties[keys[i]];
  58864. }
  58865. /**
  58866. * role_info uid.
  58867. * @member {string} uid
  58868. * @memberof game.role_info
  58869. * @instance
  58870. */
  58871. role_info.prototype.uid = "";
  58872. /**
  58873. * role_info nickname.
  58874. * @member {string} nickname
  58875. * @memberof game.role_info
  58876. * @instance
  58877. */
  58878. role_info.prototype.nickname = "";
  58879. /**
  58880. * role_info avatar.
  58881. * @member {number|Long} avatar
  58882. * @memberof game.role_info
  58883. * @instance
  58884. */
  58885. role_info.prototype.avatar = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58886. /**
  58887. * role_info level.
  58888. * @member {number|Long} level
  58889. * @memberof game.role_info
  58890. * @instance
  58891. */
  58892. role_info.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  58893. /**
  58894. * Creates a new role_info instance using the specified properties.
  58895. * @function create
  58896. * @memberof game.role_info
  58897. * @static
  58898. * @param {game.Irole_info=} [properties] Properties to set
  58899. * @returns {game.role_info} role_info instance
  58900. */
  58901. role_info.create = function create(properties) {
  58902. return new role_info(properties);
  58903. };
  58904. /**
  58905. * Encodes the specified role_info message. Does not implicitly {@link game.role_info.verify|verify} messages.
  58906. * @function encode
  58907. * @memberof game.role_info
  58908. * @static
  58909. * @param {game.Irole_info} message role_info message or plain object to encode
  58910. * @param {$protobuf.Writer} [writer] Writer to encode to
  58911. * @returns {$protobuf.Writer} Writer
  58912. */
  58913. role_info.encode = function encode(message, writer) {
  58914. if (!writer)
  58915. writer = $Writer.create();
  58916. if (message.uid != null && Object.hasOwnProperty.call(message, "uid"))
  58917. writer.uint32(/* id 1, wireType 2 =*/10).string(message.uid);
  58918. if (message.nickname != null && Object.hasOwnProperty.call(message, "nickname"))
  58919. writer.uint32(/* id 2, wireType 2 =*/18).string(message.nickname);
  58920. if (message.avatar != null && Object.hasOwnProperty.call(message, "avatar"))
  58921. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.avatar);
  58922. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  58923. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  58924. return writer;
  58925. };
  58926. /**
  58927. * Encodes the specified role_info message, length delimited. Does not implicitly {@link game.role_info.verify|verify} messages.
  58928. * @function encodeDelimited
  58929. * @memberof game.role_info
  58930. * @static
  58931. * @param {game.Irole_info} message role_info message or plain object to encode
  58932. * @param {$protobuf.Writer} [writer] Writer to encode to
  58933. * @returns {$protobuf.Writer} Writer
  58934. */
  58935. role_info.encodeDelimited = function encodeDelimited(message, writer) {
  58936. return this.encode(message, writer).ldelim();
  58937. };
  58938. /**
  58939. * Decodes a role_info message from the specified reader or buffer.
  58940. * @function decode
  58941. * @memberof game.role_info
  58942. * @static
  58943. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58944. * @param {number} [length] Message length if known beforehand
  58945. * @returns {game.role_info} role_info
  58946. * @throws {Error} If the payload is not a reader or valid buffer
  58947. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58948. */
  58949. role_info.decode = function decode(reader, length) {
  58950. if (!(reader instanceof $Reader))
  58951. reader = $Reader.create(reader);
  58952. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.role_info();
  58953. while (reader.pos < end) {
  58954. let tag = reader.uint32();
  58955. switch (tag >>> 3) {
  58956. case 1:
  58957. message.uid = reader.string();
  58958. break;
  58959. case 2:
  58960. message.nickname = reader.string();
  58961. break;
  58962. case 3:
  58963. message.avatar = reader.int64();
  58964. break;
  58965. case 4:
  58966. message.level = reader.int64();
  58967. break;
  58968. default:
  58969. reader.skipType(tag & 7);
  58970. break;
  58971. }
  58972. }
  58973. return message;
  58974. };
  58975. /**
  58976. * Decodes a role_info message from the specified reader or buffer, length delimited.
  58977. * @function decodeDelimited
  58978. * @memberof game.role_info
  58979. * @static
  58980. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  58981. * @returns {game.role_info} role_info
  58982. * @throws {Error} If the payload is not a reader or valid buffer
  58983. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  58984. */
  58985. role_info.decodeDelimited = function decodeDelimited(reader) {
  58986. if (!(reader instanceof $Reader))
  58987. reader = new $Reader(reader);
  58988. return this.decode(reader, reader.uint32());
  58989. };
  58990. /**
  58991. * Verifies a role_info message.
  58992. * @function verify
  58993. * @memberof game.role_info
  58994. * @static
  58995. * @param {Object.<string,*>} message Plain object to verify
  58996. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  58997. */
  58998. role_info.verify = function verify(message) {
  58999. if (typeof message !== "object" || message === null)
  59000. return "object expected";
  59001. if (message.uid != null && message.hasOwnProperty("uid"))
  59002. if (!$util.isString(message.uid))
  59003. return "uid: string expected";
  59004. if (message.nickname != null && message.hasOwnProperty("nickname"))
  59005. if (!$util.isString(message.nickname))
  59006. return "nickname: string expected";
  59007. if (message.avatar != null && message.hasOwnProperty("avatar"))
  59008. if (!$util.isInteger(message.avatar) && !(message.avatar && $util.isInteger(message.avatar.low) && $util.isInteger(message.avatar.high)))
  59009. return "avatar: integer|Long expected";
  59010. if (message.level != null && message.hasOwnProperty("level"))
  59011. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  59012. return "level: integer|Long expected";
  59013. return null;
  59014. };
  59015. /**
  59016. * Creates a role_info message from a plain object. Also converts values to their respective internal types.
  59017. * @function fromObject
  59018. * @memberof game.role_info
  59019. * @static
  59020. * @param {Object.<string,*>} object Plain object
  59021. * @returns {game.role_info} role_info
  59022. */
  59023. role_info.fromObject = function fromObject(object) {
  59024. if (object instanceof $root.game.role_info)
  59025. return object;
  59026. let message = new $root.game.role_info();
  59027. if (object.uid != null)
  59028. message.uid = String(object.uid);
  59029. if (object.nickname != null)
  59030. message.nickname = String(object.nickname);
  59031. if (object.avatar != null)
  59032. if ($util.Long)
  59033. (message.avatar = $util.Long.fromValue(object.avatar)).unsigned = false;
  59034. else if (typeof object.avatar === "string")
  59035. message.avatar = parseInt(object.avatar, 10);
  59036. else if (typeof object.avatar === "number")
  59037. message.avatar = object.avatar;
  59038. else if (typeof object.avatar === "object")
  59039. message.avatar = new $util.LongBits(object.avatar.low >>> 0, object.avatar.high >>> 0).toNumber();
  59040. if (object.level != null)
  59041. if ($util.Long)
  59042. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  59043. else if (typeof object.level === "string")
  59044. message.level = parseInt(object.level, 10);
  59045. else if (typeof object.level === "number")
  59046. message.level = object.level;
  59047. else if (typeof object.level === "object")
  59048. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  59049. return message;
  59050. };
  59051. /**
  59052. * Creates a plain object from a role_info message. Also converts values to other types if specified.
  59053. * @function toObject
  59054. * @memberof game.role_info
  59055. * @static
  59056. * @param {game.role_info} message role_info
  59057. * @param {$protobuf.IConversionOptions} [options] Conversion options
  59058. * @returns {Object.<string,*>} Plain object
  59059. */
  59060. role_info.toObject = function toObject(message, options) {
  59061. if (!options)
  59062. options = {};
  59063. let object = {};
  59064. if (options.defaults) {
  59065. object.uid = "";
  59066. object.nickname = "";
  59067. if ($util.Long) {
  59068. let long = new $util.Long(0, 0, false);
  59069. object.avatar = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59070. } else
  59071. object.avatar = options.longs === String ? "0" : 0;
  59072. if ($util.Long) {
  59073. let long = new $util.Long(0, 0, false);
  59074. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59075. } else
  59076. object.level = options.longs === String ? "0" : 0;
  59077. }
  59078. if (message.uid != null && message.hasOwnProperty("uid"))
  59079. object.uid = message.uid;
  59080. if (message.nickname != null && message.hasOwnProperty("nickname"))
  59081. object.nickname = message.nickname;
  59082. if (message.avatar != null && message.hasOwnProperty("avatar"))
  59083. if (typeof message.avatar === "number")
  59084. object.avatar = options.longs === String ? String(message.avatar) : message.avatar;
  59085. else
  59086. object.avatar = options.longs === String ? $util.Long.prototype.toString.call(message.avatar) : options.longs === Number ? new $util.LongBits(message.avatar.low >>> 0, message.avatar.high >>> 0).toNumber() : message.avatar;
  59087. if (message.level != null && message.hasOwnProperty("level"))
  59088. if (typeof message.level === "number")
  59089. object.level = options.longs === String ? String(message.level) : message.level;
  59090. else
  59091. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  59092. return object;
  59093. };
  59094. /**
  59095. * Converts this role_info to JSON.
  59096. * @function toJSON
  59097. * @memberof game.role_info
  59098. * @instance
  59099. * @returns {Object.<string,*>} JSON object
  59100. */
  59101. role_info.prototype.toJSON = function toJSON() {
  59102. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59103. };
  59104. return role_info;
  59105. })();
  59106. game.hero_info = (function() {
  59107. /**
  59108. * Properties of a hero_info.
  59109. * @memberof game
  59110. * @interface Ihero_info
  59111. * @property {number|Long|null} [id] hero_info id
  59112. * @property {number|Long|null} [lv] hero_info lv
  59113. */
  59114. /**
  59115. * Constructs a new hero_info.
  59116. * @memberof game
  59117. * @classdesc Represents a hero_info.
  59118. * @implements Ihero_info
  59119. * @constructor
  59120. * @param {game.Ihero_info=} [properties] Properties to set
  59121. */
  59122. function hero_info(properties) {
  59123. if (properties)
  59124. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59125. if (properties[keys[i]] != null)
  59126. this[keys[i]] = properties[keys[i]];
  59127. }
  59128. /**
  59129. * hero_info id.
  59130. * @member {number|Long} id
  59131. * @memberof game.hero_info
  59132. * @instance
  59133. */
  59134. hero_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59135. /**
  59136. * hero_info lv.
  59137. * @member {number|Long} lv
  59138. * @memberof game.hero_info
  59139. * @instance
  59140. */
  59141. hero_info.prototype.lv = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59142. /**
  59143. * Creates a new hero_info instance using the specified properties.
  59144. * @function create
  59145. * @memberof game.hero_info
  59146. * @static
  59147. * @param {game.Ihero_info=} [properties] Properties to set
  59148. * @returns {game.hero_info} hero_info instance
  59149. */
  59150. hero_info.create = function create(properties) {
  59151. return new hero_info(properties);
  59152. };
  59153. /**
  59154. * Encodes the specified hero_info message. Does not implicitly {@link game.hero_info.verify|verify} messages.
  59155. * @function encode
  59156. * @memberof game.hero_info
  59157. * @static
  59158. * @param {game.Ihero_info} message hero_info message or plain object to encode
  59159. * @param {$protobuf.Writer} [writer] Writer to encode to
  59160. * @returns {$protobuf.Writer} Writer
  59161. */
  59162. hero_info.encode = function encode(message, writer) {
  59163. if (!writer)
  59164. writer = $Writer.create();
  59165. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  59166. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  59167. if (message.lv != null && Object.hasOwnProperty.call(message, "lv"))
  59168. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lv);
  59169. return writer;
  59170. };
  59171. /**
  59172. * Encodes the specified hero_info message, length delimited. Does not implicitly {@link game.hero_info.verify|verify} messages.
  59173. * @function encodeDelimited
  59174. * @memberof game.hero_info
  59175. * @static
  59176. * @param {game.Ihero_info} message hero_info message or plain object to encode
  59177. * @param {$protobuf.Writer} [writer] Writer to encode to
  59178. * @returns {$protobuf.Writer} Writer
  59179. */
  59180. hero_info.encodeDelimited = function encodeDelimited(message, writer) {
  59181. return this.encode(message, writer).ldelim();
  59182. };
  59183. /**
  59184. * Decodes a hero_info message from the specified reader or buffer.
  59185. * @function decode
  59186. * @memberof game.hero_info
  59187. * @static
  59188. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59189. * @param {number} [length] Message length if known beforehand
  59190. * @returns {game.hero_info} hero_info
  59191. * @throws {Error} If the payload is not a reader or valid buffer
  59192. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59193. */
  59194. hero_info.decode = function decode(reader, length) {
  59195. if (!(reader instanceof $Reader))
  59196. reader = $Reader.create(reader);
  59197. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.hero_info();
  59198. while (reader.pos < end) {
  59199. let tag = reader.uint32();
  59200. switch (tag >>> 3) {
  59201. case 1:
  59202. message.id = reader.int64();
  59203. break;
  59204. case 2:
  59205. message.lv = reader.int64();
  59206. break;
  59207. default:
  59208. reader.skipType(tag & 7);
  59209. break;
  59210. }
  59211. }
  59212. return message;
  59213. };
  59214. /**
  59215. * Decodes a hero_info message from the specified reader or buffer, length delimited.
  59216. * @function decodeDelimited
  59217. * @memberof game.hero_info
  59218. * @static
  59219. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59220. * @returns {game.hero_info} hero_info
  59221. * @throws {Error} If the payload is not a reader or valid buffer
  59222. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59223. */
  59224. hero_info.decodeDelimited = function decodeDelimited(reader) {
  59225. if (!(reader instanceof $Reader))
  59226. reader = new $Reader(reader);
  59227. return this.decode(reader, reader.uint32());
  59228. };
  59229. /**
  59230. * Verifies a hero_info message.
  59231. * @function verify
  59232. * @memberof game.hero_info
  59233. * @static
  59234. * @param {Object.<string,*>} message Plain object to verify
  59235. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  59236. */
  59237. hero_info.verify = function verify(message) {
  59238. if (typeof message !== "object" || message === null)
  59239. return "object expected";
  59240. if (message.id != null && message.hasOwnProperty("id"))
  59241. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  59242. return "id: integer|Long expected";
  59243. if (message.lv != null && message.hasOwnProperty("lv"))
  59244. if (!$util.isInteger(message.lv) && !(message.lv && $util.isInteger(message.lv.low) && $util.isInteger(message.lv.high)))
  59245. return "lv: integer|Long expected";
  59246. return null;
  59247. };
  59248. /**
  59249. * Creates a hero_info message from a plain object. Also converts values to their respective internal types.
  59250. * @function fromObject
  59251. * @memberof game.hero_info
  59252. * @static
  59253. * @param {Object.<string,*>} object Plain object
  59254. * @returns {game.hero_info} hero_info
  59255. */
  59256. hero_info.fromObject = function fromObject(object) {
  59257. if (object instanceof $root.game.hero_info)
  59258. return object;
  59259. let message = new $root.game.hero_info();
  59260. if (object.id != null)
  59261. if ($util.Long)
  59262. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  59263. else if (typeof object.id === "string")
  59264. message.id = parseInt(object.id, 10);
  59265. else if (typeof object.id === "number")
  59266. message.id = object.id;
  59267. else if (typeof object.id === "object")
  59268. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  59269. if (object.lv != null)
  59270. if ($util.Long)
  59271. (message.lv = $util.Long.fromValue(object.lv)).unsigned = false;
  59272. else if (typeof object.lv === "string")
  59273. message.lv = parseInt(object.lv, 10);
  59274. else if (typeof object.lv === "number")
  59275. message.lv = object.lv;
  59276. else if (typeof object.lv === "object")
  59277. message.lv = new $util.LongBits(object.lv.low >>> 0, object.lv.high >>> 0).toNumber();
  59278. return message;
  59279. };
  59280. /**
  59281. * Creates a plain object from a hero_info message. Also converts values to other types if specified.
  59282. * @function toObject
  59283. * @memberof game.hero_info
  59284. * @static
  59285. * @param {game.hero_info} message hero_info
  59286. * @param {$protobuf.IConversionOptions} [options] Conversion options
  59287. * @returns {Object.<string,*>} Plain object
  59288. */
  59289. hero_info.toObject = function toObject(message, options) {
  59290. if (!options)
  59291. options = {};
  59292. let object = {};
  59293. if (options.defaults) {
  59294. if ($util.Long) {
  59295. let long = new $util.Long(0, 0, false);
  59296. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59297. } else
  59298. object.id = options.longs === String ? "0" : 0;
  59299. if ($util.Long) {
  59300. let long = new $util.Long(0, 0, false);
  59301. object.lv = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59302. } else
  59303. object.lv = options.longs === String ? "0" : 0;
  59304. }
  59305. if (message.id != null && message.hasOwnProperty("id"))
  59306. if (typeof message.id === "number")
  59307. object.id = options.longs === String ? String(message.id) : message.id;
  59308. else
  59309. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  59310. if (message.lv != null && message.hasOwnProperty("lv"))
  59311. if (typeof message.lv === "number")
  59312. object.lv = options.longs === String ? String(message.lv) : message.lv;
  59313. else
  59314. object.lv = options.longs === String ? $util.Long.prototype.toString.call(message.lv) : options.longs === Number ? new $util.LongBits(message.lv.low >>> 0, message.lv.high >>> 0).toNumber() : message.lv;
  59315. return object;
  59316. };
  59317. /**
  59318. * Converts this hero_info to JSON.
  59319. * @function toJSON
  59320. * @memberof game.hero_info
  59321. * @instance
  59322. * @returns {Object.<string,*>} JSON object
  59323. */
  59324. hero_info.prototype.toJSON = function toJSON() {
  59325. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59326. };
  59327. return hero_info;
  59328. })();
  59329. game.ranking_info = (function() {
  59330. /**
  59331. * Properties of a ranking_info.
  59332. * @memberof game
  59333. * @interface Iranking_info
  59334. * @property {number|Long|null} [ranking] ranking_info ranking
  59335. * @property {number|Long|null} [num] ranking_info num
  59336. * @property {game.Irole_info|null} [role] ranking_info role
  59337. * @property {game.Ihero_info|null} [hero] ranking_info hero
  59338. */
  59339. /**
  59340. * Constructs a new ranking_info.
  59341. * @memberof game
  59342. * @classdesc Represents a ranking_info.
  59343. * @implements Iranking_info
  59344. * @constructor
  59345. * @param {game.Iranking_info=} [properties] Properties to set
  59346. */
  59347. function ranking_info(properties) {
  59348. if (properties)
  59349. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59350. if (properties[keys[i]] != null)
  59351. this[keys[i]] = properties[keys[i]];
  59352. }
  59353. /**
  59354. * ranking_info ranking.
  59355. * @member {number|Long} ranking
  59356. * @memberof game.ranking_info
  59357. * @instance
  59358. */
  59359. ranking_info.prototype.ranking = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59360. /**
  59361. * ranking_info num.
  59362. * @member {number|Long} num
  59363. * @memberof game.ranking_info
  59364. * @instance
  59365. */
  59366. ranking_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59367. /**
  59368. * ranking_info role.
  59369. * @member {game.Irole_info|null|undefined} role
  59370. * @memberof game.ranking_info
  59371. * @instance
  59372. */
  59373. ranking_info.prototype.role = null;
  59374. /**
  59375. * ranking_info hero.
  59376. * @member {game.Ihero_info|null|undefined} hero
  59377. * @memberof game.ranking_info
  59378. * @instance
  59379. */
  59380. ranking_info.prototype.hero = null;
  59381. /**
  59382. * Creates a new ranking_info instance using the specified properties.
  59383. * @function create
  59384. * @memberof game.ranking_info
  59385. * @static
  59386. * @param {game.Iranking_info=} [properties] Properties to set
  59387. * @returns {game.ranking_info} ranking_info instance
  59388. */
  59389. ranking_info.create = function create(properties) {
  59390. return new ranking_info(properties);
  59391. };
  59392. /**
  59393. * Encodes the specified ranking_info message. Does not implicitly {@link game.ranking_info.verify|verify} messages.
  59394. * @function encode
  59395. * @memberof game.ranking_info
  59396. * @static
  59397. * @param {game.Iranking_info} message ranking_info message or plain object to encode
  59398. * @param {$protobuf.Writer} [writer] Writer to encode to
  59399. * @returns {$protobuf.Writer} Writer
  59400. */
  59401. ranking_info.encode = function encode(message, writer) {
  59402. if (!writer)
  59403. writer = $Writer.create();
  59404. if (message.ranking != null && Object.hasOwnProperty.call(message, "ranking"))
  59405. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ranking);
  59406. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  59407. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  59408. if (message.role != null && Object.hasOwnProperty.call(message, "role"))
  59409. $root.game.role_info.encode(message.role, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
  59410. if (message.hero != null && Object.hasOwnProperty.call(message, "hero"))
  59411. $root.game.hero_info.encode(message.hero, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  59412. return writer;
  59413. };
  59414. /**
  59415. * Encodes the specified ranking_info message, length delimited. Does not implicitly {@link game.ranking_info.verify|verify} messages.
  59416. * @function encodeDelimited
  59417. * @memberof game.ranking_info
  59418. * @static
  59419. * @param {game.Iranking_info} message ranking_info message or plain object to encode
  59420. * @param {$protobuf.Writer} [writer] Writer to encode to
  59421. * @returns {$protobuf.Writer} Writer
  59422. */
  59423. ranking_info.encodeDelimited = function encodeDelimited(message, writer) {
  59424. return this.encode(message, writer).ldelim();
  59425. };
  59426. /**
  59427. * Decodes a ranking_info message from the specified reader or buffer.
  59428. * @function decode
  59429. * @memberof game.ranking_info
  59430. * @static
  59431. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59432. * @param {number} [length] Message length if known beforehand
  59433. * @returns {game.ranking_info} ranking_info
  59434. * @throws {Error} If the payload is not a reader or valid buffer
  59435. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59436. */
  59437. ranking_info.decode = function decode(reader, length) {
  59438. if (!(reader instanceof $Reader))
  59439. reader = $Reader.create(reader);
  59440. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.ranking_info();
  59441. while (reader.pos < end) {
  59442. let tag = reader.uint32();
  59443. switch (tag >>> 3) {
  59444. case 1:
  59445. message.ranking = reader.int64();
  59446. break;
  59447. case 2:
  59448. message.num = reader.int64();
  59449. break;
  59450. case 3:
  59451. message.role = $root.game.role_info.decode(reader, reader.uint32());
  59452. break;
  59453. case 4:
  59454. message.hero = $root.game.hero_info.decode(reader, reader.uint32());
  59455. break;
  59456. default:
  59457. reader.skipType(tag & 7);
  59458. break;
  59459. }
  59460. }
  59461. return message;
  59462. };
  59463. /**
  59464. * Decodes a ranking_info message from the specified reader or buffer, length delimited.
  59465. * @function decodeDelimited
  59466. * @memberof game.ranking_info
  59467. * @static
  59468. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59469. * @returns {game.ranking_info} ranking_info
  59470. * @throws {Error} If the payload is not a reader or valid buffer
  59471. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59472. */
  59473. ranking_info.decodeDelimited = function decodeDelimited(reader) {
  59474. if (!(reader instanceof $Reader))
  59475. reader = new $Reader(reader);
  59476. return this.decode(reader, reader.uint32());
  59477. };
  59478. /**
  59479. * Verifies a ranking_info message.
  59480. * @function verify
  59481. * @memberof game.ranking_info
  59482. * @static
  59483. * @param {Object.<string,*>} message Plain object to verify
  59484. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  59485. */
  59486. ranking_info.verify = function verify(message) {
  59487. if (typeof message !== "object" || message === null)
  59488. return "object expected";
  59489. if (message.ranking != null && message.hasOwnProperty("ranking"))
  59490. if (!$util.isInteger(message.ranking) && !(message.ranking && $util.isInteger(message.ranking.low) && $util.isInteger(message.ranking.high)))
  59491. return "ranking: integer|Long expected";
  59492. if (message.num != null && message.hasOwnProperty("num"))
  59493. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  59494. return "num: integer|Long expected";
  59495. if (message.role != null && message.hasOwnProperty("role")) {
  59496. let error = $root.game.role_info.verify(message.role);
  59497. if (error)
  59498. return "role." + error;
  59499. }
  59500. if (message.hero != null && message.hasOwnProperty("hero")) {
  59501. let error = $root.game.hero_info.verify(message.hero);
  59502. if (error)
  59503. return "hero." + error;
  59504. }
  59505. return null;
  59506. };
  59507. /**
  59508. * Creates a ranking_info message from a plain object. Also converts values to their respective internal types.
  59509. * @function fromObject
  59510. * @memberof game.ranking_info
  59511. * @static
  59512. * @param {Object.<string,*>} object Plain object
  59513. * @returns {game.ranking_info} ranking_info
  59514. */
  59515. ranking_info.fromObject = function fromObject(object) {
  59516. if (object instanceof $root.game.ranking_info)
  59517. return object;
  59518. let message = new $root.game.ranking_info();
  59519. if (object.ranking != null)
  59520. if ($util.Long)
  59521. (message.ranking = $util.Long.fromValue(object.ranking)).unsigned = false;
  59522. else if (typeof object.ranking === "string")
  59523. message.ranking = parseInt(object.ranking, 10);
  59524. else if (typeof object.ranking === "number")
  59525. message.ranking = object.ranking;
  59526. else if (typeof object.ranking === "object")
  59527. message.ranking = new $util.LongBits(object.ranking.low >>> 0, object.ranking.high >>> 0).toNumber();
  59528. if (object.num != null)
  59529. if ($util.Long)
  59530. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  59531. else if (typeof object.num === "string")
  59532. message.num = parseInt(object.num, 10);
  59533. else if (typeof object.num === "number")
  59534. message.num = object.num;
  59535. else if (typeof object.num === "object")
  59536. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  59537. if (object.role != null) {
  59538. if (typeof object.role !== "object")
  59539. throw TypeError(".game.ranking_info.role: object expected");
  59540. message.role = $root.game.role_info.fromObject(object.role);
  59541. }
  59542. if (object.hero != null) {
  59543. if (typeof object.hero !== "object")
  59544. throw TypeError(".game.ranking_info.hero: object expected");
  59545. message.hero = $root.game.hero_info.fromObject(object.hero);
  59546. }
  59547. return message;
  59548. };
  59549. /**
  59550. * Creates a plain object from a ranking_info message. Also converts values to other types if specified.
  59551. * @function toObject
  59552. * @memberof game.ranking_info
  59553. * @static
  59554. * @param {game.ranking_info} message ranking_info
  59555. * @param {$protobuf.IConversionOptions} [options] Conversion options
  59556. * @returns {Object.<string,*>} Plain object
  59557. */
  59558. ranking_info.toObject = function toObject(message, options) {
  59559. if (!options)
  59560. options = {};
  59561. let object = {};
  59562. if (options.defaults) {
  59563. if ($util.Long) {
  59564. let long = new $util.Long(0, 0, false);
  59565. object.ranking = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59566. } else
  59567. object.ranking = options.longs === String ? "0" : 0;
  59568. if ($util.Long) {
  59569. let long = new $util.Long(0, 0, false);
  59570. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59571. } else
  59572. object.num = options.longs === String ? "0" : 0;
  59573. object.role = null;
  59574. object.hero = null;
  59575. }
  59576. if (message.ranking != null && message.hasOwnProperty("ranking"))
  59577. if (typeof message.ranking === "number")
  59578. object.ranking = options.longs === String ? String(message.ranking) : message.ranking;
  59579. else
  59580. object.ranking = options.longs === String ? $util.Long.prototype.toString.call(message.ranking) : options.longs === Number ? new $util.LongBits(message.ranking.low >>> 0, message.ranking.high >>> 0).toNumber() : message.ranking;
  59581. if (message.num != null && message.hasOwnProperty("num"))
  59582. if (typeof message.num === "number")
  59583. object.num = options.longs === String ? String(message.num) : message.num;
  59584. else
  59585. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  59586. if (message.role != null && message.hasOwnProperty("role"))
  59587. object.role = $root.game.role_info.toObject(message.role, options);
  59588. if (message.hero != null && message.hasOwnProperty("hero"))
  59589. object.hero = $root.game.hero_info.toObject(message.hero, options);
  59590. return object;
  59591. };
  59592. /**
  59593. * Converts this ranking_info to JSON.
  59594. * @function toJSON
  59595. * @memberof game.ranking_info
  59596. * @instance
  59597. * @returns {Object.<string,*>} JSON object
  59598. */
  59599. ranking_info.prototype.toJSON = function toJSON() {
  59600. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59601. };
  59602. return ranking_info;
  59603. })();
  59604. game.grocery_info = (function() {
  59605. /**
  59606. * Properties of a grocery_info.
  59607. * @memberof game
  59608. * @interface Igrocery_info
  59609. * @property {number|Long|null} [type] grocery_info type
  59610. * @property {number|Long|null} [freeTime] grocery_info freeTime
  59611. * @property {number|Long|null} [freeNum] grocery_info freeNum
  59612. * @property {number|Long|null} [buyNum] grocery_info buyNum
  59613. */
  59614. /**
  59615. * Constructs a new grocery_info.
  59616. * @memberof game
  59617. * @classdesc Represents a grocery_info.
  59618. * @implements Igrocery_info
  59619. * @constructor
  59620. * @param {game.Igrocery_info=} [properties] Properties to set
  59621. */
  59622. function grocery_info(properties) {
  59623. if (properties)
  59624. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59625. if (properties[keys[i]] != null)
  59626. this[keys[i]] = properties[keys[i]];
  59627. }
  59628. /**
  59629. * grocery_info type.
  59630. * @member {number|Long} type
  59631. * @memberof game.grocery_info
  59632. * @instance
  59633. */
  59634. grocery_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59635. /**
  59636. * grocery_info freeTime.
  59637. * @member {number|Long} freeTime
  59638. * @memberof game.grocery_info
  59639. * @instance
  59640. */
  59641. grocery_info.prototype.freeTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59642. /**
  59643. * grocery_info freeNum.
  59644. * @member {number|Long} freeNum
  59645. * @memberof game.grocery_info
  59646. * @instance
  59647. */
  59648. grocery_info.prototype.freeNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59649. /**
  59650. * grocery_info buyNum.
  59651. * @member {number|Long} buyNum
  59652. * @memberof game.grocery_info
  59653. * @instance
  59654. */
  59655. grocery_info.prototype.buyNum = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59656. /**
  59657. * Creates a new grocery_info instance using the specified properties.
  59658. * @function create
  59659. * @memberof game.grocery_info
  59660. * @static
  59661. * @param {game.Igrocery_info=} [properties] Properties to set
  59662. * @returns {game.grocery_info} grocery_info instance
  59663. */
  59664. grocery_info.create = function create(properties) {
  59665. return new grocery_info(properties);
  59666. };
  59667. /**
  59668. * Encodes the specified grocery_info message. Does not implicitly {@link game.grocery_info.verify|verify} messages.
  59669. * @function encode
  59670. * @memberof game.grocery_info
  59671. * @static
  59672. * @param {game.Igrocery_info} message grocery_info message or plain object to encode
  59673. * @param {$protobuf.Writer} [writer] Writer to encode to
  59674. * @returns {$protobuf.Writer} Writer
  59675. */
  59676. grocery_info.encode = function encode(message, writer) {
  59677. if (!writer)
  59678. writer = $Writer.create();
  59679. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  59680. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  59681. if (message.freeTime != null && Object.hasOwnProperty.call(message, "freeTime"))
  59682. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.freeTime);
  59683. if (message.freeNum != null && Object.hasOwnProperty.call(message, "freeNum"))
  59684. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.freeNum);
  59685. if (message.buyNum != null && Object.hasOwnProperty.call(message, "buyNum"))
  59686. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.buyNum);
  59687. return writer;
  59688. };
  59689. /**
  59690. * Encodes the specified grocery_info message, length delimited. Does not implicitly {@link game.grocery_info.verify|verify} messages.
  59691. * @function encodeDelimited
  59692. * @memberof game.grocery_info
  59693. * @static
  59694. * @param {game.Igrocery_info} message grocery_info message or plain object to encode
  59695. * @param {$protobuf.Writer} [writer] Writer to encode to
  59696. * @returns {$protobuf.Writer} Writer
  59697. */
  59698. grocery_info.encodeDelimited = function encodeDelimited(message, writer) {
  59699. return this.encode(message, writer).ldelim();
  59700. };
  59701. /**
  59702. * Decodes a grocery_info message from the specified reader or buffer.
  59703. * @function decode
  59704. * @memberof game.grocery_info
  59705. * @static
  59706. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59707. * @param {number} [length] Message length if known beforehand
  59708. * @returns {game.grocery_info} grocery_info
  59709. * @throws {Error} If the payload is not a reader or valid buffer
  59710. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59711. */
  59712. grocery_info.decode = function decode(reader, length) {
  59713. if (!(reader instanceof $Reader))
  59714. reader = $Reader.create(reader);
  59715. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.grocery_info();
  59716. while (reader.pos < end) {
  59717. let tag = reader.uint32();
  59718. switch (tag >>> 3) {
  59719. case 1:
  59720. message.type = reader.int64();
  59721. break;
  59722. case 2:
  59723. message.freeTime = reader.int64();
  59724. break;
  59725. case 3:
  59726. message.freeNum = reader.int64();
  59727. break;
  59728. case 4:
  59729. message.buyNum = reader.int64();
  59730. break;
  59731. default:
  59732. reader.skipType(tag & 7);
  59733. break;
  59734. }
  59735. }
  59736. return message;
  59737. };
  59738. /**
  59739. * Decodes a grocery_info message from the specified reader or buffer, length delimited.
  59740. * @function decodeDelimited
  59741. * @memberof game.grocery_info
  59742. * @static
  59743. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  59744. * @returns {game.grocery_info} grocery_info
  59745. * @throws {Error} If the payload is not a reader or valid buffer
  59746. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  59747. */
  59748. grocery_info.decodeDelimited = function decodeDelimited(reader) {
  59749. if (!(reader instanceof $Reader))
  59750. reader = new $Reader(reader);
  59751. return this.decode(reader, reader.uint32());
  59752. };
  59753. /**
  59754. * Verifies a grocery_info message.
  59755. * @function verify
  59756. * @memberof game.grocery_info
  59757. * @static
  59758. * @param {Object.<string,*>} message Plain object to verify
  59759. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  59760. */
  59761. grocery_info.verify = function verify(message) {
  59762. if (typeof message !== "object" || message === null)
  59763. return "object expected";
  59764. if (message.type != null && message.hasOwnProperty("type"))
  59765. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  59766. return "type: integer|Long expected";
  59767. if (message.freeTime != null && message.hasOwnProperty("freeTime"))
  59768. if (!$util.isInteger(message.freeTime) && !(message.freeTime && $util.isInteger(message.freeTime.low) && $util.isInteger(message.freeTime.high)))
  59769. return "freeTime: integer|Long expected";
  59770. if (message.freeNum != null && message.hasOwnProperty("freeNum"))
  59771. if (!$util.isInteger(message.freeNum) && !(message.freeNum && $util.isInteger(message.freeNum.low) && $util.isInteger(message.freeNum.high)))
  59772. return "freeNum: integer|Long expected";
  59773. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  59774. if (!$util.isInteger(message.buyNum) && !(message.buyNum && $util.isInteger(message.buyNum.low) && $util.isInteger(message.buyNum.high)))
  59775. return "buyNum: integer|Long expected";
  59776. return null;
  59777. };
  59778. /**
  59779. * Creates a grocery_info message from a plain object. Also converts values to their respective internal types.
  59780. * @function fromObject
  59781. * @memberof game.grocery_info
  59782. * @static
  59783. * @param {Object.<string,*>} object Plain object
  59784. * @returns {game.grocery_info} grocery_info
  59785. */
  59786. grocery_info.fromObject = function fromObject(object) {
  59787. if (object instanceof $root.game.grocery_info)
  59788. return object;
  59789. let message = new $root.game.grocery_info();
  59790. if (object.type != null)
  59791. if ($util.Long)
  59792. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  59793. else if (typeof object.type === "string")
  59794. message.type = parseInt(object.type, 10);
  59795. else if (typeof object.type === "number")
  59796. message.type = object.type;
  59797. else if (typeof object.type === "object")
  59798. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  59799. if (object.freeTime != null)
  59800. if ($util.Long)
  59801. (message.freeTime = $util.Long.fromValue(object.freeTime)).unsigned = false;
  59802. else if (typeof object.freeTime === "string")
  59803. message.freeTime = parseInt(object.freeTime, 10);
  59804. else if (typeof object.freeTime === "number")
  59805. message.freeTime = object.freeTime;
  59806. else if (typeof object.freeTime === "object")
  59807. message.freeTime = new $util.LongBits(object.freeTime.low >>> 0, object.freeTime.high >>> 0).toNumber();
  59808. if (object.freeNum != null)
  59809. if ($util.Long)
  59810. (message.freeNum = $util.Long.fromValue(object.freeNum)).unsigned = false;
  59811. else if (typeof object.freeNum === "string")
  59812. message.freeNum = parseInt(object.freeNum, 10);
  59813. else if (typeof object.freeNum === "number")
  59814. message.freeNum = object.freeNum;
  59815. else if (typeof object.freeNum === "object")
  59816. message.freeNum = new $util.LongBits(object.freeNum.low >>> 0, object.freeNum.high >>> 0).toNumber();
  59817. if (object.buyNum != null)
  59818. if ($util.Long)
  59819. (message.buyNum = $util.Long.fromValue(object.buyNum)).unsigned = false;
  59820. else if (typeof object.buyNum === "string")
  59821. message.buyNum = parseInt(object.buyNum, 10);
  59822. else if (typeof object.buyNum === "number")
  59823. message.buyNum = object.buyNum;
  59824. else if (typeof object.buyNum === "object")
  59825. message.buyNum = new $util.LongBits(object.buyNum.low >>> 0, object.buyNum.high >>> 0).toNumber();
  59826. return message;
  59827. };
  59828. /**
  59829. * Creates a plain object from a grocery_info message. Also converts values to other types if specified.
  59830. * @function toObject
  59831. * @memberof game.grocery_info
  59832. * @static
  59833. * @param {game.grocery_info} message grocery_info
  59834. * @param {$protobuf.IConversionOptions} [options] Conversion options
  59835. * @returns {Object.<string,*>} Plain object
  59836. */
  59837. grocery_info.toObject = function toObject(message, options) {
  59838. if (!options)
  59839. options = {};
  59840. let object = {};
  59841. if (options.defaults) {
  59842. if ($util.Long) {
  59843. let long = new $util.Long(0, 0, false);
  59844. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59845. } else
  59846. object.type = options.longs === String ? "0" : 0;
  59847. if ($util.Long) {
  59848. let long = new $util.Long(0, 0, false);
  59849. object.freeTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59850. } else
  59851. object.freeTime = options.longs === String ? "0" : 0;
  59852. if ($util.Long) {
  59853. let long = new $util.Long(0, 0, false);
  59854. object.freeNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59855. } else
  59856. object.freeNum = options.longs === String ? "0" : 0;
  59857. if ($util.Long) {
  59858. let long = new $util.Long(0, 0, false);
  59859. object.buyNum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  59860. } else
  59861. object.buyNum = options.longs === String ? "0" : 0;
  59862. }
  59863. if (message.type != null && message.hasOwnProperty("type"))
  59864. if (typeof message.type === "number")
  59865. object.type = options.longs === String ? String(message.type) : message.type;
  59866. else
  59867. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  59868. if (message.freeTime != null && message.hasOwnProperty("freeTime"))
  59869. if (typeof message.freeTime === "number")
  59870. object.freeTime = options.longs === String ? String(message.freeTime) : message.freeTime;
  59871. else
  59872. object.freeTime = options.longs === String ? $util.Long.prototype.toString.call(message.freeTime) : options.longs === Number ? new $util.LongBits(message.freeTime.low >>> 0, message.freeTime.high >>> 0).toNumber() : message.freeTime;
  59873. if (message.freeNum != null && message.hasOwnProperty("freeNum"))
  59874. if (typeof message.freeNum === "number")
  59875. object.freeNum = options.longs === String ? String(message.freeNum) : message.freeNum;
  59876. else
  59877. object.freeNum = options.longs === String ? $util.Long.prototype.toString.call(message.freeNum) : options.longs === Number ? new $util.LongBits(message.freeNum.low >>> 0, message.freeNum.high >>> 0).toNumber() : message.freeNum;
  59878. if (message.buyNum != null && message.hasOwnProperty("buyNum"))
  59879. if (typeof message.buyNum === "number")
  59880. object.buyNum = options.longs === String ? String(message.buyNum) : message.buyNum;
  59881. else
  59882. object.buyNum = options.longs === String ? $util.Long.prototype.toString.call(message.buyNum) : options.longs === Number ? new $util.LongBits(message.buyNum.low >>> 0, message.buyNum.high >>> 0).toNumber() : message.buyNum;
  59883. return object;
  59884. };
  59885. /**
  59886. * Converts this grocery_info to JSON.
  59887. * @function toJSON
  59888. * @memberof game.grocery_info
  59889. * @instance
  59890. * @returns {Object.<string,*>} JSON object
  59891. */
  59892. grocery_info.prototype.toJSON = function toJSON() {
  59893. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  59894. };
  59895. return grocery_info;
  59896. })();
  59897. game.altar_info = (function() {
  59898. /**
  59899. * Properties of an altar_info.
  59900. * @memberof game
  59901. * @interface Ialtar_info
  59902. * @property {string|null} [sid] altar_info sid
  59903. * @property {number|Long|null} [time] altar_info time
  59904. * @property {number|Long|null} [level] altar_info level
  59905. * @property {number|Long|null} [id] altar_info id
  59906. */
  59907. /**
  59908. * Constructs a new altar_info.
  59909. * @memberof game
  59910. * @classdesc Represents an altar_info.
  59911. * @implements Ialtar_info
  59912. * @constructor
  59913. * @param {game.Ialtar_info=} [properties] Properties to set
  59914. */
  59915. function altar_info(properties) {
  59916. if (properties)
  59917. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  59918. if (properties[keys[i]] != null)
  59919. this[keys[i]] = properties[keys[i]];
  59920. }
  59921. /**
  59922. * altar_info sid.
  59923. * @member {string} sid
  59924. * @memberof game.altar_info
  59925. * @instance
  59926. */
  59927. altar_info.prototype.sid = "";
  59928. /**
  59929. * altar_info time.
  59930. * @member {number|Long} time
  59931. * @memberof game.altar_info
  59932. * @instance
  59933. */
  59934. altar_info.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59935. /**
  59936. * altar_info level.
  59937. * @member {number|Long} level
  59938. * @memberof game.altar_info
  59939. * @instance
  59940. */
  59941. altar_info.prototype.level = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59942. /**
  59943. * altar_info id.
  59944. * @member {number|Long} id
  59945. * @memberof game.altar_info
  59946. * @instance
  59947. */
  59948. altar_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  59949. /**
  59950. * Creates a new altar_info instance using the specified properties.
  59951. * @function create
  59952. * @memberof game.altar_info
  59953. * @static
  59954. * @param {game.Ialtar_info=} [properties] Properties to set
  59955. * @returns {game.altar_info} altar_info instance
  59956. */
  59957. altar_info.create = function create(properties) {
  59958. return new altar_info(properties);
  59959. };
  59960. /**
  59961. * Encodes the specified altar_info message. Does not implicitly {@link game.altar_info.verify|verify} messages.
  59962. * @function encode
  59963. * @memberof game.altar_info
  59964. * @static
  59965. * @param {game.Ialtar_info} message altar_info message or plain object to encode
  59966. * @param {$protobuf.Writer} [writer] Writer to encode to
  59967. * @returns {$protobuf.Writer} Writer
  59968. */
  59969. altar_info.encode = function encode(message, writer) {
  59970. if (!writer)
  59971. writer = $Writer.create();
  59972. if (message.sid != null && Object.hasOwnProperty.call(message, "sid"))
  59973. writer.uint32(/* id 2, wireType 2 =*/18).string(message.sid);
  59974. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  59975. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  59976. if (message.level != null && Object.hasOwnProperty.call(message, "level"))
  59977. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.level);
  59978. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  59979. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.id);
  59980. return writer;
  59981. };
  59982. /**
  59983. * Encodes the specified altar_info message, length delimited. Does not implicitly {@link game.altar_info.verify|verify} messages.
  59984. * @function encodeDelimited
  59985. * @memberof game.altar_info
  59986. * @static
  59987. * @param {game.Ialtar_info} message altar_info message or plain object to encode
  59988. * @param {$protobuf.Writer} [writer] Writer to encode to
  59989. * @returns {$protobuf.Writer} Writer
  59990. */
  59991. altar_info.encodeDelimited = function encodeDelimited(message, writer) {
  59992. return this.encode(message, writer).ldelim();
  59993. };
  59994. /**
  59995. * Decodes an altar_info message from the specified reader or buffer.
  59996. * @function decode
  59997. * @memberof game.altar_info
  59998. * @static
  59999. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60000. * @param {number} [length] Message length if known beforehand
  60001. * @returns {game.altar_info} altar_info
  60002. * @throws {Error} If the payload is not a reader or valid buffer
  60003. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60004. */
  60005. altar_info.decode = function decode(reader, length) {
  60006. if (!(reader instanceof $Reader))
  60007. reader = $Reader.create(reader);
  60008. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.altar_info();
  60009. while (reader.pos < end) {
  60010. let tag = reader.uint32();
  60011. switch (tag >>> 3) {
  60012. case 2:
  60013. message.sid = reader.string();
  60014. break;
  60015. case 3:
  60016. message.time = reader.int64();
  60017. break;
  60018. case 4:
  60019. message.level = reader.int64();
  60020. break;
  60021. case 5:
  60022. message.id = reader.int64();
  60023. break;
  60024. default:
  60025. reader.skipType(tag & 7);
  60026. break;
  60027. }
  60028. }
  60029. return message;
  60030. };
  60031. /**
  60032. * Decodes an altar_info message from the specified reader or buffer, length delimited.
  60033. * @function decodeDelimited
  60034. * @memberof game.altar_info
  60035. * @static
  60036. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60037. * @returns {game.altar_info} altar_info
  60038. * @throws {Error} If the payload is not a reader or valid buffer
  60039. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60040. */
  60041. altar_info.decodeDelimited = function decodeDelimited(reader) {
  60042. if (!(reader instanceof $Reader))
  60043. reader = new $Reader(reader);
  60044. return this.decode(reader, reader.uint32());
  60045. };
  60046. /**
  60047. * Verifies an altar_info message.
  60048. * @function verify
  60049. * @memberof game.altar_info
  60050. * @static
  60051. * @param {Object.<string,*>} message Plain object to verify
  60052. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  60053. */
  60054. altar_info.verify = function verify(message) {
  60055. if (typeof message !== "object" || message === null)
  60056. return "object expected";
  60057. if (message.sid != null && message.hasOwnProperty("sid"))
  60058. if (!$util.isString(message.sid))
  60059. return "sid: string expected";
  60060. if (message.time != null && message.hasOwnProperty("time"))
  60061. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  60062. return "time: integer|Long expected";
  60063. if (message.level != null && message.hasOwnProperty("level"))
  60064. if (!$util.isInteger(message.level) && !(message.level && $util.isInteger(message.level.low) && $util.isInteger(message.level.high)))
  60065. return "level: integer|Long expected";
  60066. if (message.id != null && message.hasOwnProperty("id"))
  60067. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  60068. return "id: integer|Long expected";
  60069. return null;
  60070. };
  60071. /**
  60072. * Creates an altar_info message from a plain object. Also converts values to their respective internal types.
  60073. * @function fromObject
  60074. * @memberof game.altar_info
  60075. * @static
  60076. * @param {Object.<string,*>} object Plain object
  60077. * @returns {game.altar_info} altar_info
  60078. */
  60079. altar_info.fromObject = function fromObject(object) {
  60080. if (object instanceof $root.game.altar_info)
  60081. return object;
  60082. let message = new $root.game.altar_info();
  60083. if (object.sid != null)
  60084. message.sid = String(object.sid);
  60085. if (object.time != null)
  60086. if ($util.Long)
  60087. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  60088. else if (typeof object.time === "string")
  60089. message.time = parseInt(object.time, 10);
  60090. else if (typeof object.time === "number")
  60091. message.time = object.time;
  60092. else if (typeof object.time === "object")
  60093. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  60094. if (object.level != null)
  60095. if ($util.Long)
  60096. (message.level = $util.Long.fromValue(object.level)).unsigned = false;
  60097. else if (typeof object.level === "string")
  60098. message.level = parseInt(object.level, 10);
  60099. else if (typeof object.level === "number")
  60100. message.level = object.level;
  60101. else if (typeof object.level === "object")
  60102. message.level = new $util.LongBits(object.level.low >>> 0, object.level.high >>> 0).toNumber();
  60103. if (object.id != null)
  60104. if ($util.Long)
  60105. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  60106. else if (typeof object.id === "string")
  60107. message.id = parseInt(object.id, 10);
  60108. else if (typeof object.id === "number")
  60109. message.id = object.id;
  60110. else if (typeof object.id === "object")
  60111. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  60112. return message;
  60113. };
  60114. /**
  60115. * Creates a plain object from an altar_info message. Also converts values to other types if specified.
  60116. * @function toObject
  60117. * @memberof game.altar_info
  60118. * @static
  60119. * @param {game.altar_info} message altar_info
  60120. * @param {$protobuf.IConversionOptions} [options] Conversion options
  60121. * @returns {Object.<string,*>} Plain object
  60122. */
  60123. altar_info.toObject = function toObject(message, options) {
  60124. if (!options)
  60125. options = {};
  60126. let object = {};
  60127. if (options.defaults) {
  60128. object.sid = "";
  60129. if ($util.Long) {
  60130. let long = new $util.Long(0, 0, false);
  60131. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60132. } else
  60133. object.time = options.longs === String ? "0" : 0;
  60134. if ($util.Long) {
  60135. let long = new $util.Long(0, 0, false);
  60136. object.level = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60137. } else
  60138. object.level = options.longs === String ? "0" : 0;
  60139. if ($util.Long) {
  60140. let long = new $util.Long(0, 0, false);
  60141. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60142. } else
  60143. object.id = options.longs === String ? "0" : 0;
  60144. }
  60145. if (message.sid != null && message.hasOwnProperty("sid"))
  60146. object.sid = message.sid;
  60147. if (message.time != null && message.hasOwnProperty("time"))
  60148. if (typeof message.time === "number")
  60149. object.time = options.longs === String ? String(message.time) : message.time;
  60150. else
  60151. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  60152. if (message.level != null && message.hasOwnProperty("level"))
  60153. if (typeof message.level === "number")
  60154. object.level = options.longs === String ? String(message.level) : message.level;
  60155. else
  60156. object.level = options.longs === String ? $util.Long.prototype.toString.call(message.level) : options.longs === Number ? new $util.LongBits(message.level.low >>> 0, message.level.high >>> 0).toNumber() : message.level;
  60157. if (message.id != null && message.hasOwnProperty("id"))
  60158. if (typeof message.id === "number")
  60159. object.id = options.longs === String ? String(message.id) : message.id;
  60160. else
  60161. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  60162. return object;
  60163. };
  60164. /**
  60165. * Converts this altar_info to JSON.
  60166. * @function toJSON
  60167. * @memberof game.altar_info
  60168. * @instance
  60169. * @returns {Object.<string,*>} JSON object
  60170. */
  60171. altar_info.prototype.toJSON = function toJSON() {
  60172. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  60173. };
  60174. return altar_info;
  60175. })();
  60176. game.activity_time_info = (function() {
  60177. /**
  60178. * Properties of an activity_time_info.
  60179. * @memberof game
  60180. * @interface Iactivity_time_info
  60181. * @property {number|Long|null} [type] activity_time_info type
  60182. * @property {number|Long|null} [state] activity_time_info state
  60183. * @property {number|Long|null} [opentime] activity_time_info opentime
  60184. * @property {number|Long|null} [endtime] activity_time_info endtime
  60185. * @property {string|null} [name] activity_time_info name
  60186. * @property {number|Long|null} [sort] activity_time_info sort
  60187. * @property {string|null} [icon] activity_time_info icon
  60188. */
  60189. /**
  60190. * Constructs a new activity_time_info.
  60191. * @memberof game
  60192. * @classdesc Represents an activity_time_info.
  60193. * @implements Iactivity_time_info
  60194. * @constructor
  60195. * @param {game.Iactivity_time_info=} [properties] Properties to set
  60196. */
  60197. function activity_time_info(properties) {
  60198. if (properties)
  60199. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  60200. if (properties[keys[i]] != null)
  60201. this[keys[i]] = properties[keys[i]];
  60202. }
  60203. /**
  60204. * activity_time_info type.
  60205. * @member {number|Long} type
  60206. * @memberof game.activity_time_info
  60207. * @instance
  60208. */
  60209. activity_time_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60210. /**
  60211. * activity_time_info state.
  60212. * @member {number|Long} state
  60213. * @memberof game.activity_time_info
  60214. * @instance
  60215. */
  60216. activity_time_info.prototype.state = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60217. /**
  60218. * activity_time_info opentime.
  60219. * @member {number|Long} opentime
  60220. * @memberof game.activity_time_info
  60221. * @instance
  60222. */
  60223. activity_time_info.prototype.opentime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60224. /**
  60225. * activity_time_info endtime.
  60226. * @member {number|Long} endtime
  60227. * @memberof game.activity_time_info
  60228. * @instance
  60229. */
  60230. activity_time_info.prototype.endtime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60231. /**
  60232. * activity_time_info name.
  60233. * @member {string} name
  60234. * @memberof game.activity_time_info
  60235. * @instance
  60236. */
  60237. activity_time_info.prototype.name = "";
  60238. /**
  60239. * activity_time_info sort.
  60240. * @member {number|Long} sort
  60241. * @memberof game.activity_time_info
  60242. * @instance
  60243. */
  60244. activity_time_info.prototype.sort = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60245. /**
  60246. * activity_time_info icon.
  60247. * @member {string} icon
  60248. * @memberof game.activity_time_info
  60249. * @instance
  60250. */
  60251. activity_time_info.prototype.icon = "";
  60252. /**
  60253. * Creates a new activity_time_info instance using the specified properties.
  60254. * @function create
  60255. * @memberof game.activity_time_info
  60256. * @static
  60257. * @param {game.Iactivity_time_info=} [properties] Properties to set
  60258. * @returns {game.activity_time_info} activity_time_info instance
  60259. */
  60260. activity_time_info.create = function create(properties) {
  60261. return new activity_time_info(properties);
  60262. };
  60263. /**
  60264. * Encodes the specified activity_time_info message. Does not implicitly {@link game.activity_time_info.verify|verify} messages.
  60265. * @function encode
  60266. * @memberof game.activity_time_info
  60267. * @static
  60268. * @param {game.Iactivity_time_info} message activity_time_info message or plain object to encode
  60269. * @param {$protobuf.Writer} [writer] Writer to encode to
  60270. * @returns {$protobuf.Writer} Writer
  60271. */
  60272. activity_time_info.encode = function encode(message, writer) {
  60273. if (!writer)
  60274. writer = $Writer.create();
  60275. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  60276. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  60277. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  60278. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.state);
  60279. if (message.opentime != null && Object.hasOwnProperty.call(message, "opentime"))
  60280. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.opentime);
  60281. if (message.endtime != null && Object.hasOwnProperty.call(message, "endtime"))
  60282. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.endtime);
  60283. if (message.name != null && Object.hasOwnProperty.call(message, "name"))
  60284. writer.uint32(/* id 5, wireType 2 =*/42).string(message.name);
  60285. if (message.sort != null && Object.hasOwnProperty.call(message, "sort"))
  60286. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.sort);
  60287. if (message.icon != null && Object.hasOwnProperty.call(message, "icon"))
  60288. writer.uint32(/* id 7, wireType 2 =*/58).string(message.icon);
  60289. return writer;
  60290. };
  60291. /**
  60292. * Encodes the specified activity_time_info message, length delimited. Does not implicitly {@link game.activity_time_info.verify|verify} messages.
  60293. * @function encodeDelimited
  60294. * @memberof game.activity_time_info
  60295. * @static
  60296. * @param {game.Iactivity_time_info} message activity_time_info message or plain object to encode
  60297. * @param {$protobuf.Writer} [writer] Writer to encode to
  60298. * @returns {$protobuf.Writer} Writer
  60299. */
  60300. activity_time_info.encodeDelimited = function encodeDelimited(message, writer) {
  60301. return this.encode(message, writer).ldelim();
  60302. };
  60303. /**
  60304. * Decodes an activity_time_info message from the specified reader or buffer.
  60305. * @function decode
  60306. * @memberof game.activity_time_info
  60307. * @static
  60308. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60309. * @param {number} [length] Message length if known beforehand
  60310. * @returns {game.activity_time_info} activity_time_info
  60311. * @throws {Error} If the payload is not a reader or valid buffer
  60312. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60313. */
  60314. activity_time_info.decode = function decode(reader, length) {
  60315. if (!(reader instanceof $Reader))
  60316. reader = $Reader.create(reader);
  60317. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_time_info();
  60318. while (reader.pos < end) {
  60319. let tag = reader.uint32();
  60320. switch (tag >>> 3) {
  60321. case 1:
  60322. message.type = reader.int64();
  60323. break;
  60324. case 2:
  60325. message.state = reader.int64();
  60326. break;
  60327. case 3:
  60328. message.opentime = reader.int64();
  60329. break;
  60330. case 4:
  60331. message.endtime = reader.int64();
  60332. break;
  60333. case 5:
  60334. message.name = reader.string();
  60335. break;
  60336. case 6:
  60337. message.sort = reader.int64();
  60338. break;
  60339. case 7:
  60340. message.icon = reader.string();
  60341. break;
  60342. default:
  60343. reader.skipType(tag & 7);
  60344. break;
  60345. }
  60346. }
  60347. return message;
  60348. };
  60349. /**
  60350. * Decodes an activity_time_info message from the specified reader or buffer, length delimited.
  60351. * @function decodeDelimited
  60352. * @memberof game.activity_time_info
  60353. * @static
  60354. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60355. * @returns {game.activity_time_info} activity_time_info
  60356. * @throws {Error} If the payload is not a reader or valid buffer
  60357. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60358. */
  60359. activity_time_info.decodeDelimited = function decodeDelimited(reader) {
  60360. if (!(reader instanceof $Reader))
  60361. reader = new $Reader(reader);
  60362. return this.decode(reader, reader.uint32());
  60363. };
  60364. /**
  60365. * Verifies an activity_time_info message.
  60366. * @function verify
  60367. * @memberof game.activity_time_info
  60368. * @static
  60369. * @param {Object.<string,*>} message Plain object to verify
  60370. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  60371. */
  60372. activity_time_info.verify = function verify(message) {
  60373. if (typeof message !== "object" || message === null)
  60374. return "object expected";
  60375. if (message.type != null && message.hasOwnProperty("type"))
  60376. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  60377. return "type: integer|Long expected";
  60378. if (message.state != null && message.hasOwnProperty("state"))
  60379. if (!$util.isInteger(message.state) && !(message.state && $util.isInteger(message.state.low) && $util.isInteger(message.state.high)))
  60380. return "state: integer|Long expected";
  60381. if (message.opentime != null && message.hasOwnProperty("opentime"))
  60382. if (!$util.isInteger(message.opentime) && !(message.opentime && $util.isInteger(message.opentime.low) && $util.isInteger(message.opentime.high)))
  60383. return "opentime: integer|Long expected";
  60384. if (message.endtime != null && message.hasOwnProperty("endtime"))
  60385. if (!$util.isInteger(message.endtime) && !(message.endtime && $util.isInteger(message.endtime.low) && $util.isInteger(message.endtime.high)))
  60386. return "endtime: integer|Long expected";
  60387. if (message.name != null && message.hasOwnProperty("name"))
  60388. if (!$util.isString(message.name))
  60389. return "name: string expected";
  60390. if (message.sort != null && message.hasOwnProperty("sort"))
  60391. if (!$util.isInteger(message.sort) && !(message.sort && $util.isInteger(message.sort.low) && $util.isInteger(message.sort.high)))
  60392. return "sort: integer|Long expected";
  60393. if (message.icon != null && message.hasOwnProperty("icon"))
  60394. if (!$util.isString(message.icon))
  60395. return "icon: string expected";
  60396. return null;
  60397. };
  60398. /**
  60399. * Creates an activity_time_info message from a plain object. Also converts values to their respective internal types.
  60400. * @function fromObject
  60401. * @memberof game.activity_time_info
  60402. * @static
  60403. * @param {Object.<string,*>} object Plain object
  60404. * @returns {game.activity_time_info} activity_time_info
  60405. */
  60406. activity_time_info.fromObject = function fromObject(object) {
  60407. if (object instanceof $root.game.activity_time_info)
  60408. return object;
  60409. let message = new $root.game.activity_time_info();
  60410. if (object.type != null)
  60411. if ($util.Long)
  60412. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  60413. else if (typeof object.type === "string")
  60414. message.type = parseInt(object.type, 10);
  60415. else if (typeof object.type === "number")
  60416. message.type = object.type;
  60417. else if (typeof object.type === "object")
  60418. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  60419. if (object.state != null)
  60420. if ($util.Long)
  60421. (message.state = $util.Long.fromValue(object.state)).unsigned = false;
  60422. else if (typeof object.state === "string")
  60423. message.state = parseInt(object.state, 10);
  60424. else if (typeof object.state === "number")
  60425. message.state = object.state;
  60426. else if (typeof object.state === "object")
  60427. message.state = new $util.LongBits(object.state.low >>> 0, object.state.high >>> 0).toNumber();
  60428. if (object.opentime != null)
  60429. if ($util.Long)
  60430. (message.opentime = $util.Long.fromValue(object.opentime)).unsigned = false;
  60431. else if (typeof object.opentime === "string")
  60432. message.opentime = parseInt(object.opentime, 10);
  60433. else if (typeof object.opentime === "number")
  60434. message.opentime = object.opentime;
  60435. else if (typeof object.opentime === "object")
  60436. message.opentime = new $util.LongBits(object.opentime.low >>> 0, object.opentime.high >>> 0).toNumber();
  60437. if (object.endtime != null)
  60438. if ($util.Long)
  60439. (message.endtime = $util.Long.fromValue(object.endtime)).unsigned = false;
  60440. else if (typeof object.endtime === "string")
  60441. message.endtime = parseInt(object.endtime, 10);
  60442. else if (typeof object.endtime === "number")
  60443. message.endtime = object.endtime;
  60444. else if (typeof object.endtime === "object")
  60445. message.endtime = new $util.LongBits(object.endtime.low >>> 0, object.endtime.high >>> 0).toNumber();
  60446. if (object.name != null)
  60447. message.name = String(object.name);
  60448. if (object.sort != null)
  60449. if ($util.Long)
  60450. (message.sort = $util.Long.fromValue(object.sort)).unsigned = false;
  60451. else if (typeof object.sort === "string")
  60452. message.sort = parseInt(object.sort, 10);
  60453. else if (typeof object.sort === "number")
  60454. message.sort = object.sort;
  60455. else if (typeof object.sort === "object")
  60456. message.sort = new $util.LongBits(object.sort.low >>> 0, object.sort.high >>> 0).toNumber();
  60457. if (object.icon != null)
  60458. message.icon = String(object.icon);
  60459. return message;
  60460. };
  60461. /**
  60462. * Creates a plain object from an activity_time_info message. Also converts values to other types if specified.
  60463. * @function toObject
  60464. * @memberof game.activity_time_info
  60465. * @static
  60466. * @param {game.activity_time_info} message activity_time_info
  60467. * @param {$protobuf.IConversionOptions} [options] Conversion options
  60468. * @returns {Object.<string,*>} Plain object
  60469. */
  60470. activity_time_info.toObject = function toObject(message, options) {
  60471. if (!options)
  60472. options = {};
  60473. let object = {};
  60474. if (options.defaults) {
  60475. if ($util.Long) {
  60476. let long = new $util.Long(0, 0, false);
  60477. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60478. } else
  60479. object.type = options.longs === String ? "0" : 0;
  60480. if ($util.Long) {
  60481. let long = new $util.Long(0, 0, false);
  60482. object.state = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60483. } else
  60484. object.state = options.longs === String ? "0" : 0;
  60485. if ($util.Long) {
  60486. let long = new $util.Long(0, 0, false);
  60487. object.opentime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60488. } else
  60489. object.opentime = options.longs === String ? "0" : 0;
  60490. if ($util.Long) {
  60491. let long = new $util.Long(0, 0, false);
  60492. object.endtime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60493. } else
  60494. object.endtime = options.longs === String ? "0" : 0;
  60495. object.name = "";
  60496. if ($util.Long) {
  60497. let long = new $util.Long(0, 0, false);
  60498. object.sort = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  60499. } else
  60500. object.sort = options.longs === String ? "0" : 0;
  60501. object.icon = "";
  60502. }
  60503. if (message.type != null && message.hasOwnProperty("type"))
  60504. if (typeof message.type === "number")
  60505. object.type = options.longs === String ? String(message.type) : message.type;
  60506. else
  60507. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  60508. if (message.state != null && message.hasOwnProperty("state"))
  60509. if (typeof message.state === "number")
  60510. object.state = options.longs === String ? String(message.state) : message.state;
  60511. else
  60512. object.state = options.longs === String ? $util.Long.prototype.toString.call(message.state) : options.longs === Number ? new $util.LongBits(message.state.low >>> 0, message.state.high >>> 0).toNumber() : message.state;
  60513. if (message.opentime != null && message.hasOwnProperty("opentime"))
  60514. if (typeof message.opentime === "number")
  60515. object.opentime = options.longs === String ? String(message.opentime) : message.opentime;
  60516. else
  60517. object.opentime = options.longs === String ? $util.Long.prototype.toString.call(message.opentime) : options.longs === Number ? new $util.LongBits(message.opentime.low >>> 0, message.opentime.high >>> 0).toNumber() : message.opentime;
  60518. if (message.endtime != null && message.hasOwnProperty("endtime"))
  60519. if (typeof message.endtime === "number")
  60520. object.endtime = options.longs === String ? String(message.endtime) : message.endtime;
  60521. else
  60522. object.endtime = options.longs === String ? $util.Long.prototype.toString.call(message.endtime) : options.longs === Number ? new $util.LongBits(message.endtime.low >>> 0, message.endtime.high >>> 0).toNumber() : message.endtime;
  60523. if (message.name != null && message.hasOwnProperty("name"))
  60524. object.name = message.name;
  60525. if (message.sort != null && message.hasOwnProperty("sort"))
  60526. if (typeof message.sort === "number")
  60527. object.sort = options.longs === String ? String(message.sort) : message.sort;
  60528. else
  60529. object.sort = options.longs === String ? $util.Long.prototype.toString.call(message.sort) : options.longs === Number ? new $util.LongBits(message.sort.low >>> 0, message.sort.high >>> 0).toNumber() : message.sort;
  60530. if (message.icon != null && message.hasOwnProperty("icon"))
  60531. object.icon = message.icon;
  60532. return object;
  60533. };
  60534. /**
  60535. * Converts this activity_time_info to JSON.
  60536. * @function toJSON
  60537. * @memberof game.activity_time_info
  60538. * @instance
  60539. * @returns {Object.<string,*>} JSON object
  60540. */
  60541. activity_time_info.prototype.toJSON = function toJSON() {
  60542. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  60543. };
  60544. return activity_time_info;
  60545. })();
  60546. game.gift_conf_info = (function() {
  60547. /**
  60548. * Properties of a gift_conf_info.
  60549. * @memberof game
  60550. * @interface Igift_conf_info
  60551. * @property {number|Long|null} [ID] gift_conf_info ID
  60552. * @property {Array.<number|Long>|null} [library] gift_conf_info library
  60553. * @property {number|Long|null} [sort] gift_conf_info sort
  60554. * @property {number|Long|null} [spendtype] gift_conf_info spendtype
  60555. * @property {number|Long|null} [spend] gift_conf_info spend
  60556. * @property {number|Long|null} [num] gift_conf_info num
  60557. * @property {number|Long|null} [daylimit] gift_conf_info daylimit
  60558. * @property {number|Long|null} [weeklimit] gift_conf_info weeklimit
  60559. * @property {number|Long|null} [video] gift_conf_info video
  60560. * @property {number|Long|null} [icon] gift_conf_info icon
  60561. * @property {Array.<number|Long>|null} [parameter] gift_conf_info parameter
  60562. */
  60563. /**
  60564. * Constructs a new gift_conf_info.
  60565. * @memberof game
  60566. * @classdesc Represents a gift_conf_info.
  60567. * @implements Igift_conf_info
  60568. * @constructor
  60569. * @param {game.Igift_conf_info=} [properties] Properties to set
  60570. */
  60571. function gift_conf_info(properties) {
  60572. this.library = [];
  60573. this.parameter = [];
  60574. if (properties)
  60575. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  60576. if (properties[keys[i]] != null)
  60577. this[keys[i]] = properties[keys[i]];
  60578. }
  60579. /**
  60580. * gift_conf_info ID.
  60581. * @member {number|Long} ID
  60582. * @memberof game.gift_conf_info
  60583. * @instance
  60584. */
  60585. gift_conf_info.prototype.ID = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60586. /**
  60587. * gift_conf_info library.
  60588. * @member {Array.<number|Long>} library
  60589. * @memberof game.gift_conf_info
  60590. * @instance
  60591. */
  60592. gift_conf_info.prototype.library = $util.emptyArray;
  60593. /**
  60594. * gift_conf_info sort.
  60595. * @member {number|Long} sort
  60596. * @memberof game.gift_conf_info
  60597. * @instance
  60598. */
  60599. gift_conf_info.prototype.sort = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60600. /**
  60601. * gift_conf_info spendtype.
  60602. * @member {number|Long} spendtype
  60603. * @memberof game.gift_conf_info
  60604. * @instance
  60605. */
  60606. gift_conf_info.prototype.spendtype = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60607. /**
  60608. * gift_conf_info spend.
  60609. * @member {number|Long} spend
  60610. * @memberof game.gift_conf_info
  60611. * @instance
  60612. */
  60613. gift_conf_info.prototype.spend = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60614. /**
  60615. * gift_conf_info num.
  60616. * @member {number|Long} num
  60617. * @memberof game.gift_conf_info
  60618. * @instance
  60619. */
  60620. gift_conf_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60621. /**
  60622. * gift_conf_info daylimit.
  60623. * @member {number|Long} daylimit
  60624. * @memberof game.gift_conf_info
  60625. * @instance
  60626. */
  60627. gift_conf_info.prototype.daylimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60628. /**
  60629. * gift_conf_info weeklimit.
  60630. * @member {number|Long} weeklimit
  60631. * @memberof game.gift_conf_info
  60632. * @instance
  60633. */
  60634. gift_conf_info.prototype.weeklimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60635. /**
  60636. * gift_conf_info video.
  60637. * @member {number|Long} video
  60638. * @memberof game.gift_conf_info
  60639. * @instance
  60640. */
  60641. gift_conf_info.prototype.video = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60642. /**
  60643. * gift_conf_info icon.
  60644. * @member {number|Long} icon
  60645. * @memberof game.gift_conf_info
  60646. * @instance
  60647. */
  60648. gift_conf_info.prototype.icon = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  60649. /**
  60650. * gift_conf_info parameter.
  60651. * @member {Array.<number|Long>} parameter
  60652. * @memberof game.gift_conf_info
  60653. * @instance
  60654. */
  60655. gift_conf_info.prototype.parameter = $util.emptyArray;
  60656. /**
  60657. * Creates a new gift_conf_info instance using the specified properties.
  60658. * @function create
  60659. * @memberof game.gift_conf_info
  60660. * @static
  60661. * @param {game.Igift_conf_info=} [properties] Properties to set
  60662. * @returns {game.gift_conf_info} gift_conf_info instance
  60663. */
  60664. gift_conf_info.create = function create(properties) {
  60665. return new gift_conf_info(properties);
  60666. };
  60667. /**
  60668. * Encodes the specified gift_conf_info message. Does not implicitly {@link game.gift_conf_info.verify|verify} messages.
  60669. * @function encode
  60670. * @memberof game.gift_conf_info
  60671. * @static
  60672. * @param {game.Igift_conf_info} message gift_conf_info message or plain object to encode
  60673. * @param {$protobuf.Writer} [writer] Writer to encode to
  60674. * @returns {$protobuf.Writer} Writer
  60675. */
  60676. gift_conf_info.encode = function encode(message, writer) {
  60677. if (!writer)
  60678. writer = $Writer.create();
  60679. if (message.ID != null && Object.hasOwnProperty.call(message, "ID"))
  60680. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ID);
  60681. if (message.library != null && message.library.length) {
  60682. writer.uint32(/* id 2, wireType 2 =*/18).fork();
  60683. for (let i = 0; i < message.library.length; ++i)
  60684. writer.int64(message.library[i]);
  60685. writer.ldelim();
  60686. }
  60687. if (message.sort != null && Object.hasOwnProperty.call(message, "sort"))
  60688. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.sort);
  60689. if (message.spendtype != null && Object.hasOwnProperty.call(message, "spendtype"))
  60690. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.spendtype);
  60691. if (message.spend != null && Object.hasOwnProperty.call(message, "spend"))
  60692. writer.uint32(/* id 5, wireType 0 =*/40).int64(message.spend);
  60693. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  60694. writer.uint32(/* id 6, wireType 0 =*/48).int64(message.num);
  60695. if (message.daylimit != null && Object.hasOwnProperty.call(message, "daylimit"))
  60696. writer.uint32(/* id 7, wireType 0 =*/56).int64(message.daylimit);
  60697. if (message.weeklimit != null && Object.hasOwnProperty.call(message, "weeklimit"))
  60698. writer.uint32(/* id 8, wireType 0 =*/64).int64(message.weeklimit);
  60699. if (message.video != null && Object.hasOwnProperty.call(message, "video"))
  60700. writer.uint32(/* id 9, wireType 0 =*/72).int64(message.video);
  60701. if (message.icon != null && Object.hasOwnProperty.call(message, "icon"))
  60702. writer.uint32(/* id 10, wireType 0 =*/80).int64(message.icon);
  60703. if (message.parameter != null && message.parameter.length) {
  60704. writer.uint32(/* id 11, wireType 2 =*/90).fork();
  60705. for (let i = 0; i < message.parameter.length; ++i)
  60706. writer.int64(message.parameter[i]);
  60707. writer.ldelim();
  60708. }
  60709. return writer;
  60710. };
  60711. /**
  60712. * Encodes the specified gift_conf_info message, length delimited. Does not implicitly {@link game.gift_conf_info.verify|verify} messages.
  60713. * @function encodeDelimited
  60714. * @memberof game.gift_conf_info
  60715. * @static
  60716. * @param {game.Igift_conf_info} message gift_conf_info message or plain object to encode
  60717. * @param {$protobuf.Writer} [writer] Writer to encode to
  60718. * @returns {$protobuf.Writer} Writer
  60719. */
  60720. gift_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
  60721. return this.encode(message, writer).ldelim();
  60722. };
  60723. /**
  60724. * Decodes a gift_conf_info message from the specified reader or buffer.
  60725. * @function decode
  60726. * @memberof game.gift_conf_info
  60727. * @static
  60728. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60729. * @param {number} [length] Message length if known beforehand
  60730. * @returns {game.gift_conf_info} gift_conf_info
  60731. * @throws {Error} If the payload is not a reader or valid buffer
  60732. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60733. */
  60734. gift_conf_info.decode = function decode(reader, length) {
  60735. if (!(reader instanceof $Reader))
  60736. reader = $Reader.create(reader);
  60737. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.gift_conf_info();
  60738. while (reader.pos < end) {
  60739. let tag = reader.uint32();
  60740. switch (tag >>> 3) {
  60741. case 1:
  60742. message.ID = reader.int64();
  60743. break;
  60744. case 2:
  60745. if (!(message.library && message.library.length))
  60746. message.library = [];
  60747. if ((tag & 7) === 2) {
  60748. let end2 = reader.uint32() + reader.pos;
  60749. while (reader.pos < end2)
  60750. message.library.push(reader.int64());
  60751. } else
  60752. message.library.push(reader.int64());
  60753. break;
  60754. case 3:
  60755. message.sort = reader.int64();
  60756. break;
  60757. case 4:
  60758. message.spendtype = reader.int64();
  60759. break;
  60760. case 5:
  60761. message.spend = reader.int64();
  60762. break;
  60763. case 6:
  60764. message.num = reader.int64();
  60765. break;
  60766. case 7:
  60767. message.daylimit = reader.int64();
  60768. break;
  60769. case 8:
  60770. message.weeklimit = reader.int64();
  60771. break;
  60772. case 9:
  60773. message.video = reader.int64();
  60774. break;
  60775. case 10:
  60776. message.icon = reader.int64();
  60777. break;
  60778. case 11:
  60779. if (!(message.parameter && message.parameter.length))
  60780. message.parameter = [];
  60781. if ((tag & 7) === 2) {
  60782. let end2 = reader.uint32() + reader.pos;
  60783. while (reader.pos < end2)
  60784. message.parameter.push(reader.int64());
  60785. } else
  60786. message.parameter.push(reader.int64());
  60787. break;
  60788. default:
  60789. reader.skipType(tag & 7);
  60790. break;
  60791. }
  60792. }
  60793. return message;
  60794. };
  60795. /**
  60796. * Decodes a gift_conf_info message from the specified reader or buffer, length delimited.
  60797. * @function decodeDelimited
  60798. * @memberof game.gift_conf_info
  60799. * @static
  60800. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  60801. * @returns {game.gift_conf_info} gift_conf_info
  60802. * @throws {Error} If the payload is not a reader or valid buffer
  60803. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  60804. */
  60805. gift_conf_info.decodeDelimited = function decodeDelimited(reader) {
  60806. if (!(reader instanceof $Reader))
  60807. reader = new $Reader(reader);
  60808. return this.decode(reader, reader.uint32());
  60809. };
  60810. /**
  60811. * Verifies a gift_conf_info message.
  60812. * @function verify
  60813. * @memberof game.gift_conf_info
  60814. * @static
  60815. * @param {Object.<string,*>} message Plain object to verify
  60816. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  60817. */
  60818. gift_conf_info.verify = function verify(message) {
  60819. if (typeof message !== "object" || message === null)
  60820. return "object expected";
  60821. if (message.ID != null && message.hasOwnProperty("ID"))
  60822. if (!$util.isInteger(message.ID) && !(message.ID && $util.isInteger(message.ID.low) && $util.isInteger(message.ID.high)))
  60823. return "ID: integer|Long expected";
  60824. if (message.library != null && message.hasOwnProperty("library")) {
  60825. if (!Array.isArray(message.library))
  60826. return "library: array expected";
  60827. for (let i = 0; i < message.library.length; ++i)
  60828. if (!$util.isInteger(message.library[i]) && !(message.library[i] && $util.isInteger(message.library[i].low) && $util.isInteger(message.library[i].high)))
  60829. return "library: integer|Long[] expected";
  60830. }
  60831. if (message.sort != null && message.hasOwnProperty("sort"))
  60832. if (!$util.isInteger(message.sort) && !(message.sort && $util.isInteger(message.sort.low) && $util.isInteger(message.sort.high)))
  60833. return "sort: integer|Long expected";
  60834. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  60835. if (!$util.isInteger(message.spendtype) && !(message.spendtype && $util.isInteger(message.spendtype.low) && $util.isInteger(message.spendtype.high)))
  60836. return "spendtype: integer|Long expected";
  60837. if (message.spend != null && message.hasOwnProperty("spend"))
  60838. if (!$util.isInteger(message.spend) && !(message.spend && $util.isInteger(message.spend.low) && $util.isInteger(message.spend.high)))
  60839. return "spend: integer|Long expected";
  60840. if (message.num != null && message.hasOwnProperty("num"))
  60841. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  60842. return "num: integer|Long expected";
  60843. if (message.daylimit != null && message.hasOwnProperty("daylimit"))
  60844. if (!$util.isInteger(message.daylimit) && !(message.daylimit && $util.isInteger(message.daylimit.low) && $util.isInteger(message.daylimit.high)))
  60845. return "daylimit: integer|Long expected";
  60846. if (message.weeklimit != null && message.hasOwnProperty("weeklimit"))
  60847. if (!$util.isInteger(message.weeklimit) && !(message.weeklimit && $util.isInteger(message.weeklimit.low) && $util.isInteger(message.weeklimit.high)))
  60848. return "weeklimit: integer|Long expected";
  60849. if (message.video != null && message.hasOwnProperty("video"))
  60850. if (!$util.isInteger(message.video) && !(message.video && $util.isInteger(message.video.low) && $util.isInteger(message.video.high)))
  60851. return "video: integer|Long expected";
  60852. if (message.icon != null && message.hasOwnProperty("icon"))
  60853. if (!$util.isInteger(message.icon) && !(message.icon && $util.isInteger(message.icon.low) && $util.isInteger(message.icon.high)))
  60854. return "icon: integer|Long expected";
  60855. if (message.parameter != null && message.hasOwnProperty("parameter")) {
  60856. if (!Array.isArray(message.parameter))
  60857. return "parameter: array expected";
  60858. for (let i = 0; i < message.parameter.length; ++i)
  60859. if (!$util.isInteger(message.parameter[i]) && !(message.parameter[i] && $util.isInteger(message.parameter[i].low) && $util.isInteger(message.parameter[i].high)))
  60860. return "parameter: integer|Long[] expected";
  60861. }
  60862. return null;
  60863. };
  60864. /**
  60865. * Creates a gift_conf_info message from a plain object. Also converts values to their respective internal types.
  60866. * @function fromObject
  60867. * @memberof game.gift_conf_info
  60868. * @static
  60869. * @param {Object.<string,*>} object Plain object
  60870. * @returns {game.gift_conf_info} gift_conf_info
  60871. */
  60872. gift_conf_info.fromObject = function fromObject(object) {
  60873. if (object instanceof $root.game.gift_conf_info)
  60874. return object;
  60875. let message = new $root.game.gift_conf_info();
  60876. if (object.ID != null)
  60877. if ($util.Long)
  60878. (message.ID = $util.Long.fromValue(object.ID)).unsigned = false;
  60879. else if (typeof object.ID === "string")
  60880. message.ID = parseInt(object.ID, 10);
  60881. else if (typeof object.ID === "number")
  60882. message.ID = object.ID;
  60883. else if (typeof object.ID === "object")
  60884. message.ID = new $util.LongBits(object.ID.low >>> 0, object.ID.high >>> 0).toNumber();
  60885. if (object.library) {
  60886. if (!Array.isArray(object.library))
  60887. throw TypeError(".game.gift_conf_info.library: array expected");
  60888. message.library = [];
  60889. for (let i = 0; i < object.library.length; ++i)
  60890. if ($util.Long)
  60891. (message.library[i] = $util.Long.fromValue(object.library[i])).unsigned = false;
  60892. else if (typeof object.library[i] === "string")
  60893. message.library[i] = parseInt(object.library[i], 10);
  60894. else if (typeof object.library[i] === "number")
  60895. message.library[i] = object.library[i];
  60896. else if (typeof object.library[i] === "object")
  60897. message.library[i] = new $util.LongBits(object.library[i].low >>> 0, object.library[i].high >>> 0).toNumber();
  60898. }
  60899. if (object.sort != null)
  60900. if ($util.Long)
  60901. (message.sort = $util.Long.fromValue(object.sort)).unsigned = false;
  60902. else if (typeof object.sort === "string")
  60903. message.sort = parseInt(object.sort, 10);
  60904. else if (typeof object.sort === "number")
  60905. message.sort = object.sort;
  60906. else if (typeof object.sort === "object")
  60907. message.sort = new $util.LongBits(object.sort.low >>> 0, object.sort.high >>> 0).toNumber();
  60908. if (object.spendtype != null)
  60909. if ($util.Long)
  60910. (message.spendtype = $util.Long.fromValue(object.spendtype)).unsigned = false;
  60911. else if (typeof object.spendtype === "string")
  60912. message.spendtype = parseInt(object.spendtype, 10);
  60913. else if (typeof object.spendtype === "number")
  60914. message.spendtype = object.spendtype;
  60915. else if (typeof object.spendtype === "object")
  60916. message.spendtype = new $util.LongBits(object.spendtype.low >>> 0, object.spendtype.high >>> 0).toNumber();
  60917. if (object.spend != null)
  60918. if ($util.Long)
  60919. (message.spend = $util.Long.fromValue(object.spend)).unsigned = false;
  60920. else if (typeof object.spend === "string")
  60921. message.spend = parseInt(object.spend, 10);
  60922. else if (typeof object.spend === "number")
  60923. message.spend = object.spend;
  60924. else if (typeof object.spend === "object")
  60925. message.spend = new $util.LongBits(object.spend.low >>> 0, object.spend.high >>> 0).toNumber();
  60926. if (object.num != null)
  60927. if ($util.Long)
  60928. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  60929. else if (typeof object.num === "string")
  60930. message.num = parseInt(object.num, 10);
  60931. else if (typeof object.num === "number")
  60932. message.num = object.num;
  60933. else if (typeof object.num === "object")
  60934. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  60935. if (object.daylimit != null)
  60936. if ($util.Long)
  60937. (message.daylimit = $util.Long.fromValue(object.daylimit)).unsigned = false;
  60938. else if (typeof object.daylimit === "string")
  60939. message.daylimit = parseInt(object.daylimit, 10);
  60940. else if (typeof object.daylimit === "number")
  60941. message.daylimit = object.daylimit;
  60942. else if (typeof object.daylimit === "object")
  60943. message.daylimit = new $util.LongBits(object.daylimit.low >>> 0, object.daylimit.high >>> 0).toNumber();
  60944. if (object.weeklimit != null)
  60945. if ($util.Long)
  60946. (message.weeklimit = $util.Long.fromValue(object.weeklimit)).unsigned = false;
  60947. else if (typeof object.weeklimit === "string")
  60948. message.weeklimit = parseInt(object.weeklimit, 10);
  60949. else if (typeof object.weeklimit === "number")
  60950. message.weeklimit = object.weeklimit;
  60951. else if (typeof object.weeklimit === "object")
  60952. message.weeklimit = new $util.LongBits(object.weeklimit.low >>> 0, object.weeklimit.high >>> 0).toNumber();
  60953. if (object.video != null)
  60954. if ($util.Long)
  60955. (message.video = $util.Long.fromValue(object.video)).unsigned = false;
  60956. else if (typeof object.video === "string")
  60957. message.video = parseInt(object.video, 10);
  60958. else if (typeof object.video === "number")
  60959. message.video = object.video;
  60960. else if (typeof object.video === "object")
  60961. message.video = new $util.LongBits(object.video.low >>> 0, object.video.high >>> 0).toNumber();
  60962. if (object.icon != null)
  60963. if ($util.Long)
  60964. (message.icon = $util.Long.fromValue(object.icon)).unsigned = false;
  60965. else if (typeof object.icon === "string")
  60966. message.icon = parseInt(object.icon, 10);
  60967. else if (typeof object.icon === "number")
  60968. message.icon = object.icon;
  60969. else if (typeof object.icon === "object")
  60970. message.icon = new $util.LongBits(object.icon.low >>> 0, object.icon.high >>> 0).toNumber();
  60971. if (object.parameter) {
  60972. if (!Array.isArray(object.parameter))
  60973. throw TypeError(".game.gift_conf_info.parameter: array expected");
  60974. message.parameter = [];
  60975. for (let i = 0; i < object.parameter.length; ++i)
  60976. if ($util.Long)
  60977. (message.parameter[i] = $util.Long.fromValue(object.parameter[i])).unsigned = false;
  60978. else if (typeof object.parameter[i] === "string")
  60979. message.parameter[i] = parseInt(object.parameter[i], 10);
  60980. else if (typeof object.parameter[i] === "number")
  60981. message.parameter[i] = object.parameter[i];
  60982. else if (typeof object.parameter[i] === "object")
  60983. message.parameter[i] = new $util.LongBits(object.parameter[i].low >>> 0, object.parameter[i].high >>> 0).toNumber();
  60984. }
  60985. return message;
  60986. };
  60987. /**
  60988. * Creates a plain object from a gift_conf_info message. Also converts values to other types if specified.
  60989. * @function toObject
  60990. * @memberof game.gift_conf_info
  60991. * @static
  60992. * @param {game.gift_conf_info} message gift_conf_info
  60993. * @param {$protobuf.IConversionOptions} [options] Conversion options
  60994. * @returns {Object.<string,*>} Plain object
  60995. */
  60996. gift_conf_info.toObject = function toObject(message, options) {
  60997. if (!options)
  60998. options = {};
  60999. let object = {};
  61000. if (options.arrays || options.defaults) {
  61001. object.library = [];
  61002. object.parameter = [];
  61003. }
  61004. if (options.defaults) {
  61005. if ($util.Long) {
  61006. let long = new $util.Long(0, 0, false);
  61007. object.ID = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61008. } else
  61009. object.ID = options.longs === String ? "0" : 0;
  61010. if ($util.Long) {
  61011. let long = new $util.Long(0, 0, false);
  61012. object.sort = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61013. } else
  61014. object.sort = options.longs === String ? "0" : 0;
  61015. if ($util.Long) {
  61016. let long = new $util.Long(0, 0, false);
  61017. object.spendtype = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61018. } else
  61019. object.spendtype = options.longs === String ? "0" : 0;
  61020. if ($util.Long) {
  61021. let long = new $util.Long(0, 0, false);
  61022. object.spend = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61023. } else
  61024. object.spend = options.longs === String ? "0" : 0;
  61025. if ($util.Long) {
  61026. let long = new $util.Long(0, 0, false);
  61027. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61028. } else
  61029. object.num = options.longs === String ? "0" : 0;
  61030. if ($util.Long) {
  61031. let long = new $util.Long(0, 0, false);
  61032. object.daylimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61033. } else
  61034. object.daylimit = options.longs === String ? "0" : 0;
  61035. if ($util.Long) {
  61036. let long = new $util.Long(0, 0, false);
  61037. object.weeklimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61038. } else
  61039. object.weeklimit = options.longs === String ? "0" : 0;
  61040. if ($util.Long) {
  61041. let long = new $util.Long(0, 0, false);
  61042. object.video = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61043. } else
  61044. object.video = options.longs === String ? "0" : 0;
  61045. if ($util.Long) {
  61046. let long = new $util.Long(0, 0, false);
  61047. object.icon = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61048. } else
  61049. object.icon = options.longs === String ? "0" : 0;
  61050. }
  61051. if (message.ID != null && message.hasOwnProperty("ID"))
  61052. if (typeof message.ID === "number")
  61053. object.ID = options.longs === String ? String(message.ID) : message.ID;
  61054. else
  61055. object.ID = options.longs === String ? $util.Long.prototype.toString.call(message.ID) : options.longs === Number ? new $util.LongBits(message.ID.low >>> 0, message.ID.high >>> 0).toNumber() : message.ID;
  61056. if (message.library && message.library.length) {
  61057. object.library = [];
  61058. for (let j = 0; j < message.library.length; ++j)
  61059. if (typeof message.library[j] === "number")
  61060. object.library[j] = options.longs === String ? String(message.library[j]) : message.library[j];
  61061. else
  61062. object.library[j] = options.longs === String ? $util.Long.prototype.toString.call(message.library[j]) : options.longs === Number ? new $util.LongBits(message.library[j].low >>> 0, message.library[j].high >>> 0).toNumber() : message.library[j];
  61063. }
  61064. if (message.sort != null && message.hasOwnProperty("sort"))
  61065. if (typeof message.sort === "number")
  61066. object.sort = options.longs === String ? String(message.sort) : message.sort;
  61067. else
  61068. object.sort = options.longs === String ? $util.Long.prototype.toString.call(message.sort) : options.longs === Number ? new $util.LongBits(message.sort.low >>> 0, message.sort.high >>> 0).toNumber() : message.sort;
  61069. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  61070. if (typeof message.spendtype === "number")
  61071. object.spendtype = options.longs === String ? String(message.spendtype) : message.spendtype;
  61072. else
  61073. object.spendtype = options.longs === String ? $util.Long.prototype.toString.call(message.spendtype) : options.longs === Number ? new $util.LongBits(message.spendtype.low >>> 0, message.spendtype.high >>> 0).toNumber() : message.spendtype;
  61074. if (message.spend != null && message.hasOwnProperty("spend"))
  61075. if (typeof message.spend === "number")
  61076. object.spend = options.longs === String ? String(message.spend) : message.spend;
  61077. else
  61078. object.spend = options.longs === String ? $util.Long.prototype.toString.call(message.spend) : options.longs === Number ? new $util.LongBits(message.spend.low >>> 0, message.spend.high >>> 0).toNumber() : message.spend;
  61079. if (message.num != null && message.hasOwnProperty("num"))
  61080. if (typeof message.num === "number")
  61081. object.num = options.longs === String ? String(message.num) : message.num;
  61082. else
  61083. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  61084. if (message.daylimit != null && message.hasOwnProperty("daylimit"))
  61085. if (typeof message.daylimit === "number")
  61086. object.daylimit = options.longs === String ? String(message.daylimit) : message.daylimit;
  61087. else
  61088. object.daylimit = options.longs === String ? $util.Long.prototype.toString.call(message.daylimit) : options.longs === Number ? new $util.LongBits(message.daylimit.low >>> 0, message.daylimit.high >>> 0).toNumber() : message.daylimit;
  61089. if (message.weeklimit != null && message.hasOwnProperty("weeklimit"))
  61090. if (typeof message.weeklimit === "number")
  61091. object.weeklimit = options.longs === String ? String(message.weeklimit) : message.weeklimit;
  61092. else
  61093. object.weeklimit = options.longs === String ? $util.Long.prototype.toString.call(message.weeklimit) : options.longs === Number ? new $util.LongBits(message.weeklimit.low >>> 0, message.weeklimit.high >>> 0).toNumber() : message.weeklimit;
  61094. if (message.video != null && message.hasOwnProperty("video"))
  61095. if (typeof message.video === "number")
  61096. object.video = options.longs === String ? String(message.video) : message.video;
  61097. else
  61098. object.video = options.longs === String ? $util.Long.prototype.toString.call(message.video) : options.longs === Number ? new $util.LongBits(message.video.low >>> 0, message.video.high >>> 0).toNumber() : message.video;
  61099. if (message.icon != null && message.hasOwnProperty("icon"))
  61100. if (typeof message.icon === "number")
  61101. object.icon = options.longs === String ? String(message.icon) : message.icon;
  61102. else
  61103. object.icon = options.longs === String ? $util.Long.prototype.toString.call(message.icon) : options.longs === Number ? new $util.LongBits(message.icon.low >>> 0, message.icon.high >>> 0).toNumber() : message.icon;
  61104. if (message.parameter && message.parameter.length) {
  61105. object.parameter = [];
  61106. for (let j = 0; j < message.parameter.length; ++j)
  61107. if (typeof message.parameter[j] === "number")
  61108. object.parameter[j] = options.longs === String ? String(message.parameter[j]) : message.parameter[j];
  61109. else
  61110. object.parameter[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter[j]) : options.longs === Number ? new $util.LongBits(message.parameter[j].low >>> 0, message.parameter[j].high >>> 0).toNumber() : message.parameter[j];
  61111. }
  61112. return object;
  61113. };
  61114. /**
  61115. * Converts this gift_conf_info to JSON.
  61116. * @function toJSON
  61117. * @memberof game.gift_conf_info
  61118. * @instance
  61119. * @returns {Object.<string,*>} JSON object
  61120. */
  61121. gift_conf_info.prototype.toJSON = function toJSON() {
  61122. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  61123. };
  61124. return gift_conf_info;
  61125. })();
  61126. game.award_conf_info = (function() {
  61127. /**
  61128. * Properties of an award_conf_info.
  61129. * @memberof game
  61130. * @interface Iaward_conf_info
  61131. * @property {number|Long|null} [id] award_conf_info id
  61132. * @property {Array.<game.Iid_num>|null} [list] award_conf_info list
  61133. */
  61134. /**
  61135. * Constructs a new award_conf_info.
  61136. * @memberof game
  61137. * @classdesc Represents an award_conf_info.
  61138. * @implements Iaward_conf_info
  61139. * @constructor
  61140. * @param {game.Iaward_conf_info=} [properties] Properties to set
  61141. */
  61142. function award_conf_info(properties) {
  61143. this.list = [];
  61144. if (properties)
  61145. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  61146. if (properties[keys[i]] != null)
  61147. this[keys[i]] = properties[keys[i]];
  61148. }
  61149. /**
  61150. * award_conf_info id.
  61151. * @member {number|Long} id
  61152. * @memberof game.award_conf_info
  61153. * @instance
  61154. */
  61155. award_conf_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61156. /**
  61157. * award_conf_info list.
  61158. * @member {Array.<game.Iid_num>} list
  61159. * @memberof game.award_conf_info
  61160. * @instance
  61161. */
  61162. award_conf_info.prototype.list = $util.emptyArray;
  61163. /**
  61164. * Creates a new award_conf_info instance using the specified properties.
  61165. * @function create
  61166. * @memberof game.award_conf_info
  61167. * @static
  61168. * @param {game.Iaward_conf_info=} [properties] Properties to set
  61169. * @returns {game.award_conf_info} award_conf_info instance
  61170. */
  61171. award_conf_info.create = function create(properties) {
  61172. return new award_conf_info(properties);
  61173. };
  61174. /**
  61175. * Encodes the specified award_conf_info message. Does not implicitly {@link game.award_conf_info.verify|verify} messages.
  61176. * @function encode
  61177. * @memberof game.award_conf_info
  61178. * @static
  61179. * @param {game.Iaward_conf_info} message award_conf_info message or plain object to encode
  61180. * @param {$protobuf.Writer} [writer] Writer to encode to
  61181. * @returns {$protobuf.Writer} Writer
  61182. */
  61183. award_conf_info.encode = function encode(message, writer) {
  61184. if (!writer)
  61185. writer = $Writer.create();
  61186. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  61187. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  61188. if (message.list != null && message.list.length)
  61189. for (let i = 0; i < message.list.length; ++i)
  61190. $root.game.id_num.encode(message.list[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
  61191. return writer;
  61192. };
  61193. /**
  61194. * Encodes the specified award_conf_info message, length delimited. Does not implicitly {@link game.award_conf_info.verify|verify} messages.
  61195. * @function encodeDelimited
  61196. * @memberof game.award_conf_info
  61197. * @static
  61198. * @param {game.Iaward_conf_info} message award_conf_info message or plain object to encode
  61199. * @param {$protobuf.Writer} [writer] Writer to encode to
  61200. * @returns {$protobuf.Writer} Writer
  61201. */
  61202. award_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
  61203. return this.encode(message, writer).ldelim();
  61204. };
  61205. /**
  61206. * Decodes an award_conf_info message from the specified reader or buffer.
  61207. * @function decode
  61208. * @memberof game.award_conf_info
  61209. * @static
  61210. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61211. * @param {number} [length] Message length if known beforehand
  61212. * @returns {game.award_conf_info} award_conf_info
  61213. * @throws {Error} If the payload is not a reader or valid buffer
  61214. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61215. */
  61216. award_conf_info.decode = function decode(reader, length) {
  61217. if (!(reader instanceof $Reader))
  61218. reader = $Reader.create(reader);
  61219. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.award_conf_info();
  61220. while (reader.pos < end) {
  61221. let tag = reader.uint32();
  61222. switch (tag >>> 3) {
  61223. case 1:
  61224. message.id = reader.int64();
  61225. break;
  61226. case 2:
  61227. if (!(message.list && message.list.length))
  61228. message.list = [];
  61229. message.list.push($root.game.id_num.decode(reader, reader.uint32()));
  61230. break;
  61231. default:
  61232. reader.skipType(tag & 7);
  61233. break;
  61234. }
  61235. }
  61236. return message;
  61237. };
  61238. /**
  61239. * Decodes an award_conf_info message from the specified reader or buffer, length delimited.
  61240. * @function decodeDelimited
  61241. * @memberof game.award_conf_info
  61242. * @static
  61243. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61244. * @returns {game.award_conf_info} award_conf_info
  61245. * @throws {Error} If the payload is not a reader or valid buffer
  61246. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61247. */
  61248. award_conf_info.decodeDelimited = function decodeDelimited(reader) {
  61249. if (!(reader instanceof $Reader))
  61250. reader = new $Reader(reader);
  61251. return this.decode(reader, reader.uint32());
  61252. };
  61253. /**
  61254. * Verifies an award_conf_info message.
  61255. * @function verify
  61256. * @memberof game.award_conf_info
  61257. * @static
  61258. * @param {Object.<string,*>} message Plain object to verify
  61259. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  61260. */
  61261. award_conf_info.verify = function verify(message) {
  61262. if (typeof message !== "object" || message === null)
  61263. return "object expected";
  61264. if (message.id != null && message.hasOwnProperty("id"))
  61265. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  61266. return "id: integer|Long expected";
  61267. if (message.list != null && message.hasOwnProperty("list")) {
  61268. if (!Array.isArray(message.list))
  61269. return "list: array expected";
  61270. for (let i = 0; i < message.list.length; ++i) {
  61271. let error = $root.game.id_num.verify(message.list[i]);
  61272. if (error)
  61273. return "list." + error;
  61274. }
  61275. }
  61276. return null;
  61277. };
  61278. /**
  61279. * Creates an award_conf_info message from a plain object. Also converts values to their respective internal types.
  61280. * @function fromObject
  61281. * @memberof game.award_conf_info
  61282. * @static
  61283. * @param {Object.<string,*>} object Plain object
  61284. * @returns {game.award_conf_info} award_conf_info
  61285. */
  61286. award_conf_info.fromObject = function fromObject(object) {
  61287. if (object instanceof $root.game.award_conf_info)
  61288. return object;
  61289. let message = new $root.game.award_conf_info();
  61290. if (object.id != null)
  61291. if ($util.Long)
  61292. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  61293. else if (typeof object.id === "string")
  61294. message.id = parseInt(object.id, 10);
  61295. else if (typeof object.id === "number")
  61296. message.id = object.id;
  61297. else if (typeof object.id === "object")
  61298. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  61299. if (object.list) {
  61300. if (!Array.isArray(object.list))
  61301. throw TypeError(".game.award_conf_info.list: array expected");
  61302. message.list = [];
  61303. for (let i = 0; i < object.list.length; ++i) {
  61304. if (typeof object.list[i] !== "object")
  61305. throw TypeError(".game.award_conf_info.list: object expected");
  61306. message.list[i] = $root.game.id_num.fromObject(object.list[i]);
  61307. }
  61308. }
  61309. return message;
  61310. };
  61311. /**
  61312. * Creates a plain object from an award_conf_info message. Also converts values to other types if specified.
  61313. * @function toObject
  61314. * @memberof game.award_conf_info
  61315. * @static
  61316. * @param {game.award_conf_info} message award_conf_info
  61317. * @param {$protobuf.IConversionOptions} [options] Conversion options
  61318. * @returns {Object.<string,*>} Plain object
  61319. */
  61320. award_conf_info.toObject = function toObject(message, options) {
  61321. if (!options)
  61322. options = {};
  61323. let object = {};
  61324. if (options.arrays || options.defaults)
  61325. object.list = [];
  61326. if (options.defaults)
  61327. if ($util.Long) {
  61328. let long = new $util.Long(0, 0, false);
  61329. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61330. } else
  61331. object.id = options.longs === String ? "0" : 0;
  61332. if (message.id != null && message.hasOwnProperty("id"))
  61333. if (typeof message.id === "number")
  61334. object.id = options.longs === String ? String(message.id) : message.id;
  61335. else
  61336. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  61337. if (message.list && message.list.length) {
  61338. object.list = [];
  61339. for (let j = 0; j < message.list.length; ++j)
  61340. object.list[j] = $root.game.id_num.toObject(message.list[j], options);
  61341. }
  61342. return object;
  61343. };
  61344. /**
  61345. * Converts this award_conf_info to JSON.
  61346. * @function toJSON
  61347. * @memberof game.award_conf_info
  61348. * @instance
  61349. * @returns {Object.<string,*>} JSON object
  61350. */
  61351. award_conf_info.prototype.toJSON = function toJSON() {
  61352. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  61353. };
  61354. return award_conf_info;
  61355. })();
  61356. game.activity_conf_info = (function() {
  61357. /**
  61358. * Properties of an activity_conf_info.
  61359. * @memberof game
  61360. * @interface Iactivity_conf_info
  61361. * @property {number|Long|null} [type] activity_conf_info type
  61362. * @property {Array.<string>|null} [describe] activity_conf_info describe
  61363. * @property {Array.<number|Long>|null} [parameter1] activity_conf_info parameter1
  61364. * @property {Array.<number|Long>|null} [parameter2] activity_conf_info parameter2
  61365. * @property {Array.<number|Long>|null} [parameter3] activity_conf_info parameter3
  61366. * @property {Array.<game.Igift_conf_info>|null} [giftList] activity_conf_info giftList
  61367. * @property {Array.<game.Iaward_conf_info>|null} [rewardList] activity_conf_info rewardList
  61368. */
  61369. /**
  61370. * Constructs a new activity_conf_info.
  61371. * @memberof game
  61372. * @classdesc Represents an activity_conf_info.
  61373. * @implements Iactivity_conf_info
  61374. * @constructor
  61375. * @param {game.Iactivity_conf_info=} [properties] Properties to set
  61376. */
  61377. function activity_conf_info(properties) {
  61378. this.describe = [];
  61379. this.parameter1 = [];
  61380. this.parameter2 = [];
  61381. this.parameter3 = [];
  61382. this.giftList = [];
  61383. this.rewardList = [];
  61384. if (properties)
  61385. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  61386. if (properties[keys[i]] != null)
  61387. this[keys[i]] = properties[keys[i]];
  61388. }
  61389. /**
  61390. * activity_conf_info type.
  61391. * @member {number|Long} type
  61392. * @memberof game.activity_conf_info
  61393. * @instance
  61394. */
  61395. activity_conf_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61396. /**
  61397. * activity_conf_info describe.
  61398. * @member {Array.<string>} describe
  61399. * @memberof game.activity_conf_info
  61400. * @instance
  61401. */
  61402. activity_conf_info.prototype.describe = $util.emptyArray;
  61403. /**
  61404. * activity_conf_info parameter1.
  61405. * @member {Array.<number|Long>} parameter1
  61406. * @memberof game.activity_conf_info
  61407. * @instance
  61408. */
  61409. activity_conf_info.prototype.parameter1 = $util.emptyArray;
  61410. /**
  61411. * activity_conf_info parameter2.
  61412. * @member {Array.<number|Long>} parameter2
  61413. * @memberof game.activity_conf_info
  61414. * @instance
  61415. */
  61416. activity_conf_info.prototype.parameter2 = $util.emptyArray;
  61417. /**
  61418. * activity_conf_info parameter3.
  61419. * @member {Array.<number|Long>} parameter3
  61420. * @memberof game.activity_conf_info
  61421. * @instance
  61422. */
  61423. activity_conf_info.prototype.parameter3 = $util.emptyArray;
  61424. /**
  61425. * activity_conf_info giftList.
  61426. * @member {Array.<game.Igift_conf_info>} giftList
  61427. * @memberof game.activity_conf_info
  61428. * @instance
  61429. */
  61430. activity_conf_info.prototype.giftList = $util.emptyArray;
  61431. /**
  61432. * activity_conf_info rewardList.
  61433. * @member {Array.<game.Iaward_conf_info>} rewardList
  61434. * @memberof game.activity_conf_info
  61435. * @instance
  61436. */
  61437. activity_conf_info.prototype.rewardList = $util.emptyArray;
  61438. /**
  61439. * Creates a new activity_conf_info instance using the specified properties.
  61440. * @function create
  61441. * @memberof game.activity_conf_info
  61442. * @static
  61443. * @param {game.Iactivity_conf_info=} [properties] Properties to set
  61444. * @returns {game.activity_conf_info} activity_conf_info instance
  61445. */
  61446. activity_conf_info.create = function create(properties) {
  61447. return new activity_conf_info(properties);
  61448. };
  61449. /**
  61450. * Encodes the specified activity_conf_info message. Does not implicitly {@link game.activity_conf_info.verify|verify} messages.
  61451. * @function encode
  61452. * @memberof game.activity_conf_info
  61453. * @static
  61454. * @param {game.Iactivity_conf_info} message activity_conf_info message or plain object to encode
  61455. * @param {$protobuf.Writer} [writer] Writer to encode to
  61456. * @returns {$protobuf.Writer} Writer
  61457. */
  61458. activity_conf_info.encode = function encode(message, writer) {
  61459. if (!writer)
  61460. writer = $Writer.create();
  61461. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  61462. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  61463. if (message.describe != null && message.describe.length)
  61464. for (let i = 0; i < message.describe.length; ++i)
  61465. writer.uint32(/* id 2, wireType 2 =*/18).string(message.describe[i]);
  61466. if (message.parameter1 != null && message.parameter1.length) {
  61467. writer.uint32(/* id 3, wireType 2 =*/26).fork();
  61468. for (let i = 0; i < message.parameter1.length; ++i)
  61469. writer.int64(message.parameter1[i]);
  61470. writer.ldelim();
  61471. }
  61472. if (message.parameter2 != null && message.parameter2.length) {
  61473. writer.uint32(/* id 4, wireType 2 =*/34).fork();
  61474. for (let i = 0; i < message.parameter2.length; ++i)
  61475. writer.int64(message.parameter2[i]);
  61476. writer.ldelim();
  61477. }
  61478. if (message.parameter3 != null && message.parameter3.length) {
  61479. writer.uint32(/* id 5, wireType 2 =*/42).fork();
  61480. for (let i = 0; i < message.parameter3.length; ++i)
  61481. writer.int64(message.parameter3[i]);
  61482. writer.ldelim();
  61483. }
  61484. if (message.giftList != null && message.giftList.length)
  61485. for (let i = 0; i < message.giftList.length; ++i)
  61486. $root.game.gift_conf_info.encode(message.giftList[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
  61487. if (message.rewardList != null && message.rewardList.length)
  61488. for (let i = 0; i < message.rewardList.length; ++i)
  61489. $root.game.award_conf_info.encode(message.rewardList[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
  61490. return writer;
  61491. };
  61492. /**
  61493. * Encodes the specified activity_conf_info message, length delimited. Does not implicitly {@link game.activity_conf_info.verify|verify} messages.
  61494. * @function encodeDelimited
  61495. * @memberof game.activity_conf_info
  61496. * @static
  61497. * @param {game.Iactivity_conf_info} message activity_conf_info message or plain object to encode
  61498. * @param {$protobuf.Writer} [writer] Writer to encode to
  61499. * @returns {$protobuf.Writer} Writer
  61500. */
  61501. activity_conf_info.encodeDelimited = function encodeDelimited(message, writer) {
  61502. return this.encode(message, writer).ldelim();
  61503. };
  61504. /**
  61505. * Decodes an activity_conf_info message from the specified reader or buffer.
  61506. * @function decode
  61507. * @memberof game.activity_conf_info
  61508. * @static
  61509. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61510. * @param {number} [length] Message length if known beforehand
  61511. * @returns {game.activity_conf_info} activity_conf_info
  61512. * @throws {Error} If the payload is not a reader or valid buffer
  61513. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61514. */
  61515. activity_conf_info.decode = function decode(reader, length) {
  61516. if (!(reader instanceof $Reader))
  61517. reader = $Reader.create(reader);
  61518. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.activity_conf_info();
  61519. while (reader.pos < end) {
  61520. let tag = reader.uint32();
  61521. switch (tag >>> 3) {
  61522. case 1:
  61523. message.type = reader.int64();
  61524. break;
  61525. case 2:
  61526. if (!(message.describe && message.describe.length))
  61527. message.describe = [];
  61528. message.describe.push(reader.string());
  61529. break;
  61530. case 3:
  61531. if (!(message.parameter1 && message.parameter1.length))
  61532. message.parameter1 = [];
  61533. if ((tag & 7) === 2) {
  61534. let end2 = reader.uint32() + reader.pos;
  61535. while (reader.pos < end2)
  61536. message.parameter1.push(reader.int64());
  61537. } else
  61538. message.parameter1.push(reader.int64());
  61539. break;
  61540. case 4:
  61541. if (!(message.parameter2 && message.parameter2.length))
  61542. message.parameter2 = [];
  61543. if ((tag & 7) === 2) {
  61544. let end2 = reader.uint32() + reader.pos;
  61545. while (reader.pos < end2)
  61546. message.parameter2.push(reader.int64());
  61547. } else
  61548. message.parameter2.push(reader.int64());
  61549. break;
  61550. case 5:
  61551. if (!(message.parameter3 && message.parameter3.length))
  61552. message.parameter3 = [];
  61553. if ((tag & 7) === 2) {
  61554. let end2 = reader.uint32() + reader.pos;
  61555. while (reader.pos < end2)
  61556. message.parameter3.push(reader.int64());
  61557. } else
  61558. message.parameter3.push(reader.int64());
  61559. break;
  61560. case 6:
  61561. if (!(message.giftList && message.giftList.length))
  61562. message.giftList = [];
  61563. message.giftList.push($root.game.gift_conf_info.decode(reader, reader.uint32()));
  61564. break;
  61565. case 7:
  61566. if (!(message.rewardList && message.rewardList.length))
  61567. message.rewardList = [];
  61568. message.rewardList.push($root.game.award_conf_info.decode(reader, reader.uint32()));
  61569. break;
  61570. default:
  61571. reader.skipType(tag & 7);
  61572. break;
  61573. }
  61574. }
  61575. return message;
  61576. };
  61577. /**
  61578. * Decodes an activity_conf_info message from the specified reader or buffer, length delimited.
  61579. * @function decodeDelimited
  61580. * @memberof game.activity_conf_info
  61581. * @static
  61582. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61583. * @returns {game.activity_conf_info} activity_conf_info
  61584. * @throws {Error} If the payload is not a reader or valid buffer
  61585. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61586. */
  61587. activity_conf_info.decodeDelimited = function decodeDelimited(reader) {
  61588. if (!(reader instanceof $Reader))
  61589. reader = new $Reader(reader);
  61590. return this.decode(reader, reader.uint32());
  61591. };
  61592. /**
  61593. * Verifies an activity_conf_info message.
  61594. * @function verify
  61595. * @memberof game.activity_conf_info
  61596. * @static
  61597. * @param {Object.<string,*>} message Plain object to verify
  61598. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  61599. */
  61600. activity_conf_info.verify = function verify(message) {
  61601. if (typeof message !== "object" || message === null)
  61602. return "object expected";
  61603. if (message.type != null && message.hasOwnProperty("type"))
  61604. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  61605. return "type: integer|Long expected";
  61606. if (message.describe != null && message.hasOwnProperty("describe")) {
  61607. if (!Array.isArray(message.describe))
  61608. return "describe: array expected";
  61609. for (let i = 0; i < message.describe.length; ++i)
  61610. if (!$util.isString(message.describe[i]))
  61611. return "describe: string[] expected";
  61612. }
  61613. if (message.parameter1 != null && message.hasOwnProperty("parameter1")) {
  61614. if (!Array.isArray(message.parameter1))
  61615. return "parameter1: array expected";
  61616. for (let i = 0; i < message.parameter1.length; ++i)
  61617. if (!$util.isInteger(message.parameter1[i]) && !(message.parameter1[i] && $util.isInteger(message.parameter1[i].low) && $util.isInteger(message.parameter1[i].high)))
  61618. return "parameter1: integer|Long[] expected";
  61619. }
  61620. if (message.parameter2 != null && message.hasOwnProperty("parameter2")) {
  61621. if (!Array.isArray(message.parameter2))
  61622. return "parameter2: array expected";
  61623. for (let i = 0; i < message.parameter2.length; ++i)
  61624. if (!$util.isInteger(message.parameter2[i]) && !(message.parameter2[i] && $util.isInteger(message.parameter2[i].low) && $util.isInteger(message.parameter2[i].high)))
  61625. return "parameter2: integer|Long[] expected";
  61626. }
  61627. if (message.parameter3 != null && message.hasOwnProperty("parameter3")) {
  61628. if (!Array.isArray(message.parameter3))
  61629. return "parameter3: array expected";
  61630. for (let i = 0; i < message.parameter3.length; ++i)
  61631. if (!$util.isInteger(message.parameter3[i]) && !(message.parameter3[i] && $util.isInteger(message.parameter3[i].low) && $util.isInteger(message.parameter3[i].high)))
  61632. return "parameter3: integer|Long[] expected";
  61633. }
  61634. if (message.giftList != null && message.hasOwnProperty("giftList")) {
  61635. if (!Array.isArray(message.giftList))
  61636. return "giftList: array expected";
  61637. for (let i = 0; i < message.giftList.length; ++i) {
  61638. let error = $root.game.gift_conf_info.verify(message.giftList[i]);
  61639. if (error)
  61640. return "giftList." + error;
  61641. }
  61642. }
  61643. if (message.rewardList != null && message.hasOwnProperty("rewardList")) {
  61644. if (!Array.isArray(message.rewardList))
  61645. return "rewardList: array expected";
  61646. for (let i = 0; i < message.rewardList.length; ++i) {
  61647. let error = $root.game.award_conf_info.verify(message.rewardList[i]);
  61648. if (error)
  61649. return "rewardList." + error;
  61650. }
  61651. }
  61652. return null;
  61653. };
  61654. /**
  61655. * Creates an activity_conf_info message from a plain object. Also converts values to their respective internal types.
  61656. * @function fromObject
  61657. * @memberof game.activity_conf_info
  61658. * @static
  61659. * @param {Object.<string,*>} object Plain object
  61660. * @returns {game.activity_conf_info} activity_conf_info
  61661. */
  61662. activity_conf_info.fromObject = function fromObject(object) {
  61663. if (object instanceof $root.game.activity_conf_info)
  61664. return object;
  61665. let message = new $root.game.activity_conf_info();
  61666. if (object.type != null)
  61667. if ($util.Long)
  61668. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  61669. else if (typeof object.type === "string")
  61670. message.type = parseInt(object.type, 10);
  61671. else if (typeof object.type === "number")
  61672. message.type = object.type;
  61673. else if (typeof object.type === "object")
  61674. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  61675. if (object.describe) {
  61676. if (!Array.isArray(object.describe))
  61677. throw TypeError(".game.activity_conf_info.describe: array expected");
  61678. message.describe = [];
  61679. for (let i = 0; i < object.describe.length; ++i)
  61680. message.describe[i] = String(object.describe[i]);
  61681. }
  61682. if (object.parameter1) {
  61683. if (!Array.isArray(object.parameter1))
  61684. throw TypeError(".game.activity_conf_info.parameter1: array expected");
  61685. message.parameter1 = [];
  61686. for (let i = 0; i < object.parameter1.length; ++i)
  61687. if ($util.Long)
  61688. (message.parameter1[i] = $util.Long.fromValue(object.parameter1[i])).unsigned = false;
  61689. else if (typeof object.parameter1[i] === "string")
  61690. message.parameter1[i] = parseInt(object.parameter1[i], 10);
  61691. else if (typeof object.parameter1[i] === "number")
  61692. message.parameter1[i] = object.parameter1[i];
  61693. else if (typeof object.parameter1[i] === "object")
  61694. message.parameter1[i] = new $util.LongBits(object.parameter1[i].low >>> 0, object.parameter1[i].high >>> 0).toNumber();
  61695. }
  61696. if (object.parameter2) {
  61697. if (!Array.isArray(object.parameter2))
  61698. throw TypeError(".game.activity_conf_info.parameter2: array expected");
  61699. message.parameter2 = [];
  61700. for (let i = 0; i < object.parameter2.length; ++i)
  61701. if ($util.Long)
  61702. (message.parameter2[i] = $util.Long.fromValue(object.parameter2[i])).unsigned = false;
  61703. else if (typeof object.parameter2[i] === "string")
  61704. message.parameter2[i] = parseInt(object.parameter2[i], 10);
  61705. else if (typeof object.parameter2[i] === "number")
  61706. message.parameter2[i] = object.parameter2[i];
  61707. else if (typeof object.parameter2[i] === "object")
  61708. message.parameter2[i] = new $util.LongBits(object.parameter2[i].low >>> 0, object.parameter2[i].high >>> 0).toNumber();
  61709. }
  61710. if (object.parameter3) {
  61711. if (!Array.isArray(object.parameter3))
  61712. throw TypeError(".game.activity_conf_info.parameter3: array expected");
  61713. message.parameter3 = [];
  61714. for (let i = 0; i < object.parameter3.length; ++i)
  61715. if ($util.Long)
  61716. (message.parameter3[i] = $util.Long.fromValue(object.parameter3[i])).unsigned = false;
  61717. else if (typeof object.parameter3[i] === "string")
  61718. message.parameter3[i] = parseInt(object.parameter3[i], 10);
  61719. else if (typeof object.parameter3[i] === "number")
  61720. message.parameter3[i] = object.parameter3[i];
  61721. else if (typeof object.parameter3[i] === "object")
  61722. message.parameter3[i] = new $util.LongBits(object.parameter3[i].low >>> 0, object.parameter3[i].high >>> 0).toNumber();
  61723. }
  61724. if (object.giftList) {
  61725. if (!Array.isArray(object.giftList))
  61726. throw TypeError(".game.activity_conf_info.giftList: array expected");
  61727. message.giftList = [];
  61728. for (let i = 0; i < object.giftList.length; ++i) {
  61729. if (typeof object.giftList[i] !== "object")
  61730. throw TypeError(".game.activity_conf_info.giftList: object expected");
  61731. message.giftList[i] = $root.game.gift_conf_info.fromObject(object.giftList[i]);
  61732. }
  61733. }
  61734. if (object.rewardList) {
  61735. if (!Array.isArray(object.rewardList))
  61736. throw TypeError(".game.activity_conf_info.rewardList: array expected");
  61737. message.rewardList = [];
  61738. for (let i = 0; i < object.rewardList.length; ++i) {
  61739. if (typeof object.rewardList[i] !== "object")
  61740. throw TypeError(".game.activity_conf_info.rewardList: object expected");
  61741. message.rewardList[i] = $root.game.award_conf_info.fromObject(object.rewardList[i]);
  61742. }
  61743. }
  61744. return message;
  61745. };
  61746. /**
  61747. * Creates a plain object from an activity_conf_info message. Also converts values to other types if specified.
  61748. * @function toObject
  61749. * @memberof game.activity_conf_info
  61750. * @static
  61751. * @param {game.activity_conf_info} message activity_conf_info
  61752. * @param {$protobuf.IConversionOptions} [options] Conversion options
  61753. * @returns {Object.<string,*>} Plain object
  61754. */
  61755. activity_conf_info.toObject = function toObject(message, options) {
  61756. if (!options)
  61757. options = {};
  61758. let object = {};
  61759. if (options.arrays || options.defaults) {
  61760. object.describe = [];
  61761. object.parameter1 = [];
  61762. object.parameter2 = [];
  61763. object.parameter3 = [];
  61764. object.giftList = [];
  61765. object.rewardList = [];
  61766. }
  61767. if (options.defaults)
  61768. if ($util.Long) {
  61769. let long = new $util.Long(0, 0, false);
  61770. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  61771. } else
  61772. object.type = options.longs === String ? "0" : 0;
  61773. if (message.type != null && message.hasOwnProperty("type"))
  61774. if (typeof message.type === "number")
  61775. object.type = options.longs === String ? String(message.type) : message.type;
  61776. else
  61777. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  61778. if (message.describe && message.describe.length) {
  61779. object.describe = [];
  61780. for (let j = 0; j < message.describe.length; ++j)
  61781. object.describe[j] = message.describe[j];
  61782. }
  61783. if (message.parameter1 && message.parameter1.length) {
  61784. object.parameter1 = [];
  61785. for (let j = 0; j < message.parameter1.length; ++j)
  61786. if (typeof message.parameter1[j] === "number")
  61787. object.parameter1[j] = options.longs === String ? String(message.parameter1[j]) : message.parameter1[j];
  61788. else
  61789. object.parameter1[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter1[j]) : options.longs === Number ? new $util.LongBits(message.parameter1[j].low >>> 0, message.parameter1[j].high >>> 0).toNumber() : message.parameter1[j];
  61790. }
  61791. if (message.parameter2 && message.parameter2.length) {
  61792. object.parameter2 = [];
  61793. for (let j = 0; j < message.parameter2.length; ++j)
  61794. if (typeof message.parameter2[j] === "number")
  61795. object.parameter2[j] = options.longs === String ? String(message.parameter2[j]) : message.parameter2[j];
  61796. else
  61797. object.parameter2[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter2[j]) : options.longs === Number ? new $util.LongBits(message.parameter2[j].low >>> 0, message.parameter2[j].high >>> 0).toNumber() : message.parameter2[j];
  61798. }
  61799. if (message.parameter3 && message.parameter3.length) {
  61800. object.parameter3 = [];
  61801. for (let j = 0; j < message.parameter3.length; ++j)
  61802. if (typeof message.parameter3[j] === "number")
  61803. object.parameter3[j] = options.longs === String ? String(message.parameter3[j]) : message.parameter3[j];
  61804. else
  61805. object.parameter3[j] = options.longs === String ? $util.Long.prototype.toString.call(message.parameter3[j]) : options.longs === Number ? new $util.LongBits(message.parameter3[j].low >>> 0, message.parameter3[j].high >>> 0).toNumber() : message.parameter3[j];
  61806. }
  61807. if (message.giftList && message.giftList.length) {
  61808. object.giftList = [];
  61809. for (let j = 0; j < message.giftList.length; ++j)
  61810. object.giftList[j] = $root.game.gift_conf_info.toObject(message.giftList[j], options);
  61811. }
  61812. if (message.rewardList && message.rewardList.length) {
  61813. object.rewardList = [];
  61814. for (let j = 0; j < message.rewardList.length; ++j)
  61815. object.rewardList[j] = $root.game.award_conf_info.toObject(message.rewardList[j], options);
  61816. }
  61817. return object;
  61818. };
  61819. /**
  61820. * Converts this activity_conf_info to JSON.
  61821. * @function toJSON
  61822. * @memberof game.activity_conf_info
  61823. * @instance
  61824. * @returns {Object.<string,*>} JSON object
  61825. */
  61826. activity_conf_info.prototype.toJSON = function toJSON() {
  61827. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  61828. };
  61829. return activity_conf_info;
  61830. })();
  61831. game.privilege_card_info = (function() {
  61832. /**
  61833. * Properties of a privilege_card_info.
  61834. * @memberof game
  61835. * @interface Iprivilege_card_info
  61836. * @property {number|Long|null} [moduleid] privilege_card_info moduleid
  61837. * @property {boolean|null} [state] privilege_card_info state
  61838. * @property {number|Long|null} [startTime] privilege_card_info startTime
  61839. * @property {boolean|null} [award] privilege_card_info award
  61840. */
  61841. /**
  61842. * Constructs a new privilege_card_info.
  61843. * @memberof game
  61844. * @classdesc Represents a privilege_card_info.
  61845. * @implements Iprivilege_card_info
  61846. * @constructor
  61847. * @param {game.Iprivilege_card_info=} [properties] Properties to set
  61848. */
  61849. function privilege_card_info(properties) {
  61850. if (properties)
  61851. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  61852. if (properties[keys[i]] != null)
  61853. this[keys[i]] = properties[keys[i]];
  61854. }
  61855. /**
  61856. * privilege_card_info moduleid.
  61857. * @member {number|Long} moduleid
  61858. * @memberof game.privilege_card_info
  61859. * @instance
  61860. */
  61861. privilege_card_info.prototype.moduleid = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61862. /**
  61863. * privilege_card_info state.
  61864. * @member {boolean} state
  61865. * @memberof game.privilege_card_info
  61866. * @instance
  61867. */
  61868. privilege_card_info.prototype.state = false;
  61869. /**
  61870. * privilege_card_info startTime.
  61871. * @member {number|Long} startTime
  61872. * @memberof game.privilege_card_info
  61873. * @instance
  61874. */
  61875. privilege_card_info.prototype.startTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  61876. /**
  61877. * privilege_card_info award.
  61878. * @member {boolean} award
  61879. * @memberof game.privilege_card_info
  61880. * @instance
  61881. */
  61882. privilege_card_info.prototype.award = false;
  61883. /**
  61884. * Creates a new privilege_card_info instance using the specified properties.
  61885. * @function create
  61886. * @memberof game.privilege_card_info
  61887. * @static
  61888. * @param {game.Iprivilege_card_info=} [properties] Properties to set
  61889. * @returns {game.privilege_card_info} privilege_card_info instance
  61890. */
  61891. privilege_card_info.create = function create(properties) {
  61892. return new privilege_card_info(properties);
  61893. };
  61894. /**
  61895. * Encodes the specified privilege_card_info message. Does not implicitly {@link game.privilege_card_info.verify|verify} messages.
  61896. * @function encode
  61897. * @memberof game.privilege_card_info
  61898. * @static
  61899. * @param {game.Iprivilege_card_info} message privilege_card_info message or plain object to encode
  61900. * @param {$protobuf.Writer} [writer] Writer to encode to
  61901. * @returns {$protobuf.Writer} Writer
  61902. */
  61903. privilege_card_info.encode = function encode(message, writer) {
  61904. if (!writer)
  61905. writer = $Writer.create();
  61906. if (message.moduleid != null && Object.hasOwnProperty.call(message, "moduleid"))
  61907. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.moduleid);
  61908. if (message.state != null && Object.hasOwnProperty.call(message, "state"))
  61909. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.state);
  61910. if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime"))
  61911. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.startTime);
  61912. if (message.award != null && Object.hasOwnProperty.call(message, "award"))
  61913. writer.uint32(/* id 4, wireType 0 =*/32).bool(message.award);
  61914. return writer;
  61915. };
  61916. /**
  61917. * Encodes the specified privilege_card_info message, length delimited. Does not implicitly {@link game.privilege_card_info.verify|verify} messages.
  61918. * @function encodeDelimited
  61919. * @memberof game.privilege_card_info
  61920. * @static
  61921. * @param {game.Iprivilege_card_info} message privilege_card_info message or plain object to encode
  61922. * @param {$protobuf.Writer} [writer] Writer to encode to
  61923. * @returns {$protobuf.Writer} Writer
  61924. */
  61925. privilege_card_info.encodeDelimited = function encodeDelimited(message, writer) {
  61926. return this.encode(message, writer).ldelim();
  61927. };
  61928. /**
  61929. * Decodes a privilege_card_info message from the specified reader or buffer.
  61930. * @function decode
  61931. * @memberof game.privilege_card_info
  61932. * @static
  61933. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61934. * @param {number} [length] Message length if known beforehand
  61935. * @returns {game.privilege_card_info} privilege_card_info
  61936. * @throws {Error} If the payload is not a reader or valid buffer
  61937. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61938. */
  61939. privilege_card_info.decode = function decode(reader, length) {
  61940. if (!(reader instanceof $Reader))
  61941. reader = $Reader.create(reader);
  61942. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.privilege_card_info();
  61943. while (reader.pos < end) {
  61944. let tag = reader.uint32();
  61945. switch (tag >>> 3) {
  61946. case 1:
  61947. message.moduleid = reader.int64();
  61948. break;
  61949. case 2:
  61950. message.state = reader.bool();
  61951. break;
  61952. case 3:
  61953. message.startTime = reader.int64();
  61954. break;
  61955. case 4:
  61956. message.award = reader.bool();
  61957. break;
  61958. default:
  61959. reader.skipType(tag & 7);
  61960. break;
  61961. }
  61962. }
  61963. return message;
  61964. };
  61965. /**
  61966. * Decodes a privilege_card_info message from the specified reader or buffer, length delimited.
  61967. * @function decodeDelimited
  61968. * @memberof game.privilege_card_info
  61969. * @static
  61970. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  61971. * @returns {game.privilege_card_info} privilege_card_info
  61972. * @throws {Error} If the payload is not a reader or valid buffer
  61973. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  61974. */
  61975. privilege_card_info.decodeDelimited = function decodeDelimited(reader) {
  61976. if (!(reader instanceof $Reader))
  61977. reader = new $Reader(reader);
  61978. return this.decode(reader, reader.uint32());
  61979. };
  61980. /**
  61981. * Verifies a privilege_card_info message.
  61982. * @function verify
  61983. * @memberof game.privilege_card_info
  61984. * @static
  61985. * @param {Object.<string,*>} message Plain object to verify
  61986. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  61987. */
  61988. privilege_card_info.verify = function verify(message) {
  61989. if (typeof message !== "object" || message === null)
  61990. return "object expected";
  61991. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  61992. if (!$util.isInteger(message.moduleid) && !(message.moduleid && $util.isInteger(message.moduleid.low) && $util.isInteger(message.moduleid.high)))
  61993. return "moduleid: integer|Long expected";
  61994. if (message.state != null && message.hasOwnProperty("state"))
  61995. if (typeof message.state !== "boolean")
  61996. return "state: boolean expected";
  61997. if (message.startTime != null && message.hasOwnProperty("startTime"))
  61998. if (!$util.isInteger(message.startTime) && !(message.startTime && $util.isInteger(message.startTime.low) && $util.isInteger(message.startTime.high)))
  61999. return "startTime: integer|Long expected";
  62000. if (message.award != null && message.hasOwnProperty("award"))
  62001. if (typeof message.award !== "boolean")
  62002. return "award: boolean expected";
  62003. return null;
  62004. };
  62005. /**
  62006. * Creates a privilege_card_info message from a plain object. Also converts values to their respective internal types.
  62007. * @function fromObject
  62008. * @memberof game.privilege_card_info
  62009. * @static
  62010. * @param {Object.<string,*>} object Plain object
  62011. * @returns {game.privilege_card_info} privilege_card_info
  62012. */
  62013. privilege_card_info.fromObject = function fromObject(object) {
  62014. if (object instanceof $root.game.privilege_card_info)
  62015. return object;
  62016. let message = new $root.game.privilege_card_info();
  62017. if (object.moduleid != null)
  62018. if ($util.Long)
  62019. (message.moduleid = $util.Long.fromValue(object.moduleid)).unsigned = false;
  62020. else if (typeof object.moduleid === "string")
  62021. message.moduleid = parseInt(object.moduleid, 10);
  62022. else if (typeof object.moduleid === "number")
  62023. message.moduleid = object.moduleid;
  62024. else if (typeof object.moduleid === "object")
  62025. message.moduleid = new $util.LongBits(object.moduleid.low >>> 0, object.moduleid.high >>> 0).toNumber();
  62026. if (object.state != null)
  62027. message.state = Boolean(object.state);
  62028. if (object.startTime != null)
  62029. if ($util.Long)
  62030. (message.startTime = $util.Long.fromValue(object.startTime)).unsigned = false;
  62031. else if (typeof object.startTime === "string")
  62032. message.startTime = parseInt(object.startTime, 10);
  62033. else if (typeof object.startTime === "number")
  62034. message.startTime = object.startTime;
  62035. else if (typeof object.startTime === "object")
  62036. message.startTime = new $util.LongBits(object.startTime.low >>> 0, object.startTime.high >>> 0).toNumber();
  62037. if (object.award != null)
  62038. message.award = Boolean(object.award);
  62039. return message;
  62040. };
  62041. /**
  62042. * Creates a plain object from a privilege_card_info message. Also converts values to other types if specified.
  62043. * @function toObject
  62044. * @memberof game.privilege_card_info
  62045. * @static
  62046. * @param {game.privilege_card_info} message privilege_card_info
  62047. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62048. * @returns {Object.<string,*>} Plain object
  62049. */
  62050. privilege_card_info.toObject = function toObject(message, options) {
  62051. if (!options)
  62052. options = {};
  62053. let object = {};
  62054. if (options.defaults) {
  62055. if ($util.Long) {
  62056. let long = new $util.Long(0, 0, false);
  62057. object.moduleid = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62058. } else
  62059. object.moduleid = options.longs === String ? "0" : 0;
  62060. object.state = false;
  62061. if ($util.Long) {
  62062. let long = new $util.Long(0, 0, false);
  62063. object.startTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62064. } else
  62065. object.startTime = options.longs === String ? "0" : 0;
  62066. object.award = false;
  62067. }
  62068. if (message.moduleid != null && message.hasOwnProperty("moduleid"))
  62069. if (typeof message.moduleid === "number")
  62070. object.moduleid = options.longs === String ? String(message.moduleid) : message.moduleid;
  62071. else
  62072. object.moduleid = options.longs === String ? $util.Long.prototype.toString.call(message.moduleid) : options.longs === Number ? new $util.LongBits(message.moduleid.low >>> 0, message.moduleid.high >>> 0).toNumber() : message.moduleid;
  62073. if (message.state != null && message.hasOwnProperty("state"))
  62074. object.state = message.state;
  62075. if (message.startTime != null && message.hasOwnProperty("startTime"))
  62076. if (typeof message.startTime === "number")
  62077. object.startTime = options.longs === String ? String(message.startTime) : message.startTime;
  62078. else
  62079. object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime;
  62080. if (message.award != null && message.hasOwnProperty("award"))
  62081. object.award = message.award;
  62082. return object;
  62083. };
  62084. /**
  62085. * Converts this privilege_card_info to JSON.
  62086. * @function toJSON
  62087. * @memberof game.privilege_card_info
  62088. * @instance
  62089. * @returns {Object.<string,*>} JSON object
  62090. */
  62091. privilege_card_info.prototype.toJSON = function toJSON() {
  62092. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62093. };
  62094. return privilege_card_info;
  62095. })();
  62096. game.daily_dungeons_info = (function() {
  62097. /**
  62098. * Properties of a daily_dungeons_info.
  62099. * @memberof game
  62100. * @interface Idaily_dungeons_info
  62101. * @property {number|Long|null} [type] daily_dungeons_info type
  62102. * @property {number|Long|null} [diff] daily_dungeons_info diff
  62103. * @property {number|Long|null} [num] daily_dungeons_info num
  62104. */
  62105. /**
  62106. * Constructs a new daily_dungeons_info.
  62107. * @memberof game
  62108. * @classdesc Represents a daily_dungeons_info.
  62109. * @implements Idaily_dungeons_info
  62110. * @constructor
  62111. * @param {game.Idaily_dungeons_info=} [properties] Properties to set
  62112. */
  62113. function daily_dungeons_info(properties) {
  62114. if (properties)
  62115. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62116. if (properties[keys[i]] != null)
  62117. this[keys[i]] = properties[keys[i]];
  62118. }
  62119. /**
  62120. * daily_dungeons_info type.
  62121. * @member {number|Long} type
  62122. * @memberof game.daily_dungeons_info
  62123. * @instance
  62124. */
  62125. daily_dungeons_info.prototype.type = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62126. /**
  62127. * daily_dungeons_info diff.
  62128. * @member {number|Long} diff
  62129. * @memberof game.daily_dungeons_info
  62130. * @instance
  62131. */
  62132. daily_dungeons_info.prototype.diff = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62133. /**
  62134. * daily_dungeons_info num.
  62135. * @member {number|Long} num
  62136. * @memberof game.daily_dungeons_info
  62137. * @instance
  62138. */
  62139. daily_dungeons_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62140. /**
  62141. * Creates a new daily_dungeons_info instance using the specified properties.
  62142. * @function create
  62143. * @memberof game.daily_dungeons_info
  62144. * @static
  62145. * @param {game.Idaily_dungeons_info=} [properties] Properties to set
  62146. * @returns {game.daily_dungeons_info} daily_dungeons_info instance
  62147. */
  62148. daily_dungeons_info.create = function create(properties) {
  62149. return new daily_dungeons_info(properties);
  62150. };
  62151. /**
  62152. * Encodes the specified daily_dungeons_info message. Does not implicitly {@link game.daily_dungeons_info.verify|verify} messages.
  62153. * @function encode
  62154. * @memberof game.daily_dungeons_info
  62155. * @static
  62156. * @param {game.Idaily_dungeons_info} message daily_dungeons_info message or plain object to encode
  62157. * @param {$protobuf.Writer} [writer] Writer to encode to
  62158. * @returns {$protobuf.Writer} Writer
  62159. */
  62160. daily_dungeons_info.encode = function encode(message, writer) {
  62161. if (!writer)
  62162. writer = $Writer.create();
  62163. if (message.type != null && Object.hasOwnProperty.call(message, "type"))
  62164. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.type);
  62165. if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
  62166. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.diff);
  62167. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  62168. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  62169. return writer;
  62170. };
  62171. /**
  62172. * Encodes the specified daily_dungeons_info message, length delimited. Does not implicitly {@link game.daily_dungeons_info.verify|verify} messages.
  62173. * @function encodeDelimited
  62174. * @memberof game.daily_dungeons_info
  62175. * @static
  62176. * @param {game.Idaily_dungeons_info} message daily_dungeons_info message or plain object to encode
  62177. * @param {$protobuf.Writer} [writer] Writer to encode to
  62178. * @returns {$protobuf.Writer} Writer
  62179. */
  62180. daily_dungeons_info.encodeDelimited = function encodeDelimited(message, writer) {
  62181. return this.encode(message, writer).ldelim();
  62182. };
  62183. /**
  62184. * Decodes a daily_dungeons_info message from the specified reader or buffer.
  62185. * @function decode
  62186. * @memberof game.daily_dungeons_info
  62187. * @static
  62188. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62189. * @param {number} [length] Message length if known beforehand
  62190. * @returns {game.daily_dungeons_info} daily_dungeons_info
  62191. * @throws {Error} If the payload is not a reader or valid buffer
  62192. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62193. */
  62194. daily_dungeons_info.decode = function decode(reader, length) {
  62195. if (!(reader instanceof $Reader))
  62196. reader = $Reader.create(reader);
  62197. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.daily_dungeons_info();
  62198. while (reader.pos < end) {
  62199. let tag = reader.uint32();
  62200. switch (tag >>> 3) {
  62201. case 1:
  62202. message.type = reader.int64();
  62203. break;
  62204. case 2:
  62205. message.diff = reader.int64();
  62206. break;
  62207. case 3:
  62208. message.num = reader.int64();
  62209. break;
  62210. default:
  62211. reader.skipType(tag & 7);
  62212. break;
  62213. }
  62214. }
  62215. return message;
  62216. };
  62217. /**
  62218. * Decodes a daily_dungeons_info message from the specified reader or buffer, length delimited.
  62219. * @function decodeDelimited
  62220. * @memberof game.daily_dungeons_info
  62221. * @static
  62222. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62223. * @returns {game.daily_dungeons_info} daily_dungeons_info
  62224. * @throws {Error} If the payload is not a reader or valid buffer
  62225. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62226. */
  62227. daily_dungeons_info.decodeDelimited = function decodeDelimited(reader) {
  62228. if (!(reader instanceof $Reader))
  62229. reader = new $Reader(reader);
  62230. return this.decode(reader, reader.uint32());
  62231. };
  62232. /**
  62233. * Verifies a daily_dungeons_info message.
  62234. * @function verify
  62235. * @memberof game.daily_dungeons_info
  62236. * @static
  62237. * @param {Object.<string,*>} message Plain object to verify
  62238. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  62239. */
  62240. daily_dungeons_info.verify = function verify(message) {
  62241. if (typeof message !== "object" || message === null)
  62242. return "object expected";
  62243. if (message.type != null && message.hasOwnProperty("type"))
  62244. if (!$util.isInteger(message.type) && !(message.type && $util.isInteger(message.type.low) && $util.isInteger(message.type.high)))
  62245. return "type: integer|Long expected";
  62246. if (message.diff != null && message.hasOwnProperty("diff"))
  62247. if (!$util.isInteger(message.diff) && !(message.diff && $util.isInteger(message.diff.low) && $util.isInteger(message.diff.high)))
  62248. return "diff: integer|Long expected";
  62249. if (message.num != null && message.hasOwnProperty("num"))
  62250. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  62251. return "num: integer|Long expected";
  62252. return null;
  62253. };
  62254. /**
  62255. * Creates a daily_dungeons_info message from a plain object. Also converts values to their respective internal types.
  62256. * @function fromObject
  62257. * @memberof game.daily_dungeons_info
  62258. * @static
  62259. * @param {Object.<string,*>} object Plain object
  62260. * @returns {game.daily_dungeons_info} daily_dungeons_info
  62261. */
  62262. daily_dungeons_info.fromObject = function fromObject(object) {
  62263. if (object instanceof $root.game.daily_dungeons_info)
  62264. return object;
  62265. let message = new $root.game.daily_dungeons_info();
  62266. if (object.type != null)
  62267. if ($util.Long)
  62268. (message.type = $util.Long.fromValue(object.type)).unsigned = false;
  62269. else if (typeof object.type === "string")
  62270. message.type = parseInt(object.type, 10);
  62271. else if (typeof object.type === "number")
  62272. message.type = object.type;
  62273. else if (typeof object.type === "object")
  62274. message.type = new $util.LongBits(object.type.low >>> 0, object.type.high >>> 0).toNumber();
  62275. if (object.diff != null)
  62276. if ($util.Long)
  62277. (message.diff = $util.Long.fromValue(object.diff)).unsigned = false;
  62278. else if (typeof object.diff === "string")
  62279. message.diff = parseInt(object.diff, 10);
  62280. else if (typeof object.diff === "number")
  62281. message.diff = object.diff;
  62282. else if (typeof object.diff === "object")
  62283. message.diff = new $util.LongBits(object.diff.low >>> 0, object.diff.high >>> 0).toNumber();
  62284. if (object.num != null)
  62285. if ($util.Long)
  62286. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  62287. else if (typeof object.num === "string")
  62288. message.num = parseInt(object.num, 10);
  62289. else if (typeof object.num === "number")
  62290. message.num = object.num;
  62291. else if (typeof object.num === "object")
  62292. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  62293. return message;
  62294. };
  62295. /**
  62296. * Creates a plain object from a daily_dungeons_info message. Also converts values to other types if specified.
  62297. * @function toObject
  62298. * @memberof game.daily_dungeons_info
  62299. * @static
  62300. * @param {game.daily_dungeons_info} message daily_dungeons_info
  62301. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62302. * @returns {Object.<string,*>} Plain object
  62303. */
  62304. daily_dungeons_info.toObject = function toObject(message, options) {
  62305. if (!options)
  62306. options = {};
  62307. let object = {};
  62308. if (options.defaults) {
  62309. if ($util.Long) {
  62310. let long = new $util.Long(0, 0, false);
  62311. object.type = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62312. } else
  62313. object.type = options.longs === String ? "0" : 0;
  62314. if ($util.Long) {
  62315. let long = new $util.Long(0, 0, false);
  62316. object.diff = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62317. } else
  62318. object.diff = options.longs === String ? "0" : 0;
  62319. if ($util.Long) {
  62320. let long = new $util.Long(0, 0, false);
  62321. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62322. } else
  62323. object.num = options.longs === String ? "0" : 0;
  62324. }
  62325. if (message.type != null && message.hasOwnProperty("type"))
  62326. if (typeof message.type === "number")
  62327. object.type = options.longs === String ? String(message.type) : message.type;
  62328. else
  62329. object.type = options.longs === String ? $util.Long.prototype.toString.call(message.type) : options.longs === Number ? new $util.LongBits(message.type.low >>> 0, message.type.high >>> 0).toNumber() : message.type;
  62330. if (message.diff != null && message.hasOwnProperty("diff"))
  62331. if (typeof message.diff === "number")
  62332. object.diff = options.longs === String ? String(message.diff) : message.diff;
  62333. else
  62334. object.diff = options.longs === String ? $util.Long.prototype.toString.call(message.diff) : options.longs === Number ? new $util.LongBits(message.diff.low >>> 0, message.diff.high >>> 0).toNumber() : message.diff;
  62335. if (message.num != null && message.hasOwnProperty("num"))
  62336. if (typeof message.num === "number")
  62337. object.num = options.longs === String ? String(message.num) : message.num;
  62338. else
  62339. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  62340. return object;
  62341. };
  62342. /**
  62343. * Converts this daily_dungeons_info to JSON.
  62344. * @function toJSON
  62345. * @memberof game.daily_dungeons_info
  62346. * @instance
  62347. * @returns {Object.<string,*>} JSON object
  62348. */
  62349. daily_dungeons_info.prototype.toJSON = function toJSON() {
  62350. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62351. };
  62352. return daily_dungeons_info;
  62353. })();
  62354. game.pop_gift_conf = (function() {
  62355. /**
  62356. * Properties of a pop_gift_conf.
  62357. * @memberof game
  62358. * @interface Ipop_gift_conf
  62359. * @property {number|Long|null} [spendtype] pop_gift_conf spendtype
  62360. * @property {number|Long|null} [spend] pop_gift_conf spend
  62361. * @property {number|Long|null} [num] pop_gift_conf num
  62362. * @property {number|Long|null} [library] pop_gift_conf library
  62363. */
  62364. /**
  62365. * Constructs a new pop_gift_conf.
  62366. * @memberof game
  62367. * @classdesc Represents a pop_gift_conf.
  62368. * @implements Ipop_gift_conf
  62369. * @constructor
  62370. * @param {game.Ipop_gift_conf=} [properties] Properties to set
  62371. */
  62372. function pop_gift_conf(properties) {
  62373. if (properties)
  62374. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62375. if (properties[keys[i]] != null)
  62376. this[keys[i]] = properties[keys[i]];
  62377. }
  62378. /**
  62379. * pop_gift_conf spendtype.
  62380. * @member {number|Long} spendtype
  62381. * @memberof game.pop_gift_conf
  62382. * @instance
  62383. */
  62384. pop_gift_conf.prototype.spendtype = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62385. /**
  62386. * pop_gift_conf spend.
  62387. * @member {number|Long} spend
  62388. * @memberof game.pop_gift_conf
  62389. * @instance
  62390. */
  62391. pop_gift_conf.prototype.spend = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62392. /**
  62393. * pop_gift_conf num.
  62394. * @member {number|Long} num
  62395. * @memberof game.pop_gift_conf
  62396. * @instance
  62397. */
  62398. pop_gift_conf.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62399. /**
  62400. * pop_gift_conf library.
  62401. * @member {number|Long} library
  62402. * @memberof game.pop_gift_conf
  62403. * @instance
  62404. */
  62405. pop_gift_conf.prototype.library = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62406. /**
  62407. * Creates a new pop_gift_conf instance using the specified properties.
  62408. * @function create
  62409. * @memberof game.pop_gift_conf
  62410. * @static
  62411. * @param {game.Ipop_gift_conf=} [properties] Properties to set
  62412. * @returns {game.pop_gift_conf} pop_gift_conf instance
  62413. */
  62414. pop_gift_conf.create = function create(properties) {
  62415. return new pop_gift_conf(properties);
  62416. };
  62417. /**
  62418. * Encodes the specified pop_gift_conf message. Does not implicitly {@link game.pop_gift_conf.verify|verify} messages.
  62419. * @function encode
  62420. * @memberof game.pop_gift_conf
  62421. * @static
  62422. * @param {game.Ipop_gift_conf} message pop_gift_conf message or plain object to encode
  62423. * @param {$protobuf.Writer} [writer] Writer to encode to
  62424. * @returns {$protobuf.Writer} Writer
  62425. */
  62426. pop_gift_conf.encode = function encode(message, writer) {
  62427. if (!writer)
  62428. writer = $Writer.create();
  62429. if (message.spendtype != null && Object.hasOwnProperty.call(message, "spendtype"))
  62430. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.spendtype);
  62431. if (message.spend != null && Object.hasOwnProperty.call(message, "spend"))
  62432. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.spend);
  62433. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  62434. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.num);
  62435. if (message.library != null && Object.hasOwnProperty.call(message, "library"))
  62436. writer.uint32(/* id 4, wireType 0 =*/32).int64(message.library);
  62437. return writer;
  62438. };
  62439. /**
  62440. * Encodes the specified pop_gift_conf message, length delimited. Does not implicitly {@link game.pop_gift_conf.verify|verify} messages.
  62441. * @function encodeDelimited
  62442. * @memberof game.pop_gift_conf
  62443. * @static
  62444. * @param {game.Ipop_gift_conf} message pop_gift_conf message or plain object to encode
  62445. * @param {$protobuf.Writer} [writer] Writer to encode to
  62446. * @returns {$protobuf.Writer} Writer
  62447. */
  62448. pop_gift_conf.encodeDelimited = function encodeDelimited(message, writer) {
  62449. return this.encode(message, writer).ldelim();
  62450. };
  62451. /**
  62452. * Decodes a pop_gift_conf message from the specified reader or buffer.
  62453. * @function decode
  62454. * @memberof game.pop_gift_conf
  62455. * @static
  62456. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62457. * @param {number} [length] Message length if known beforehand
  62458. * @returns {game.pop_gift_conf} pop_gift_conf
  62459. * @throws {Error} If the payload is not a reader or valid buffer
  62460. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62461. */
  62462. pop_gift_conf.decode = function decode(reader, length) {
  62463. if (!(reader instanceof $Reader))
  62464. reader = $Reader.create(reader);
  62465. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_conf();
  62466. while (reader.pos < end) {
  62467. let tag = reader.uint32();
  62468. switch (tag >>> 3) {
  62469. case 1:
  62470. message.spendtype = reader.int64();
  62471. break;
  62472. case 2:
  62473. message.spend = reader.int64();
  62474. break;
  62475. case 3:
  62476. message.num = reader.int64();
  62477. break;
  62478. case 4:
  62479. message.library = reader.int64();
  62480. break;
  62481. default:
  62482. reader.skipType(tag & 7);
  62483. break;
  62484. }
  62485. }
  62486. return message;
  62487. };
  62488. /**
  62489. * Decodes a pop_gift_conf message from the specified reader or buffer, length delimited.
  62490. * @function decodeDelimited
  62491. * @memberof game.pop_gift_conf
  62492. * @static
  62493. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62494. * @returns {game.pop_gift_conf} pop_gift_conf
  62495. * @throws {Error} If the payload is not a reader or valid buffer
  62496. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62497. */
  62498. pop_gift_conf.decodeDelimited = function decodeDelimited(reader) {
  62499. if (!(reader instanceof $Reader))
  62500. reader = new $Reader(reader);
  62501. return this.decode(reader, reader.uint32());
  62502. };
  62503. /**
  62504. * Verifies a pop_gift_conf message.
  62505. * @function verify
  62506. * @memberof game.pop_gift_conf
  62507. * @static
  62508. * @param {Object.<string,*>} message Plain object to verify
  62509. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  62510. */
  62511. pop_gift_conf.verify = function verify(message) {
  62512. if (typeof message !== "object" || message === null)
  62513. return "object expected";
  62514. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  62515. if (!$util.isInteger(message.spendtype) && !(message.spendtype && $util.isInteger(message.spendtype.low) && $util.isInteger(message.spendtype.high)))
  62516. return "spendtype: integer|Long expected";
  62517. if (message.spend != null && message.hasOwnProperty("spend"))
  62518. if (!$util.isInteger(message.spend) && !(message.spend && $util.isInteger(message.spend.low) && $util.isInteger(message.spend.high)))
  62519. return "spend: integer|Long expected";
  62520. if (message.num != null && message.hasOwnProperty("num"))
  62521. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  62522. return "num: integer|Long expected";
  62523. if (message.library != null && message.hasOwnProperty("library"))
  62524. if (!$util.isInteger(message.library) && !(message.library && $util.isInteger(message.library.low) && $util.isInteger(message.library.high)))
  62525. return "library: integer|Long expected";
  62526. return null;
  62527. };
  62528. /**
  62529. * Creates a pop_gift_conf message from a plain object. Also converts values to their respective internal types.
  62530. * @function fromObject
  62531. * @memberof game.pop_gift_conf
  62532. * @static
  62533. * @param {Object.<string,*>} object Plain object
  62534. * @returns {game.pop_gift_conf} pop_gift_conf
  62535. */
  62536. pop_gift_conf.fromObject = function fromObject(object) {
  62537. if (object instanceof $root.game.pop_gift_conf)
  62538. return object;
  62539. let message = new $root.game.pop_gift_conf();
  62540. if (object.spendtype != null)
  62541. if ($util.Long)
  62542. (message.spendtype = $util.Long.fromValue(object.spendtype)).unsigned = false;
  62543. else if (typeof object.spendtype === "string")
  62544. message.spendtype = parseInt(object.spendtype, 10);
  62545. else if (typeof object.spendtype === "number")
  62546. message.spendtype = object.spendtype;
  62547. else if (typeof object.spendtype === "object")
  62548. message.spendtype = new $util.LongBits(object.spendtype.low >>> 0, object.spendtype.high >>> 0).toNumber();
  62549. if (object.spend != null)
  62550. if ($util.Long)
  62551. (message.spend = $util.Long.fromValue(object.spend)).unsigned = false;
  62552. else if (typeof object.spend === "string")
  62553. message.spend = parseInt(object.spend, 10);
  62554. else if (typeof object.spend === "number")
  62555. message.spend = object.spend;
  62556. else if (typeof object.spend === "object")
  62557. message.spend = new $util.LongBits(object.spend.low >>> 0, object.spend.high >>> 0).toNumber();
  62558. if (object.num != null)
  62559. if ($util.Long)
  62560. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  62561. else if (typeof object.num === "string")
  62562. message.num = parseInt(object.num, 10);
  62563. else if (typeof object.num === "number")
  62564. message.num = object.num;
  62565. else if (typeof object.num === "object")
  62566. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  62567. if (object.library != null)
  62568. if ($util.Long)
  62569. (message.library = $util.Long.fromValue(object.library)).unsigned = false;
  62570. else if (typeof object.library === "string")
  62571. message.library = parseInt(object.library, 10);
  62572. else if (typeof object.library === "number")
  62573. message.library = object.library;
  62574. else if (typeof object.library === "object")
  62575. message.library = new $util.LongBits(object.library.low >>> 0, object.library.high >>> 0).toNumber();
  62576. return message;
  62577. };
  62578. /**
  62579. * Creates a plain object from a pop_gift_conf message. Also converts values to other types if specified.
  62580. * @function toObject
  62581. * @memberof game.pop_gift_conf
  62582. * @static
  62583. * @param {game.pop_gift_conf} message pop_gift_conf
  62584. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62585. * @returns {Object.<string,*>} Plain object
  62586. */
  62587. pop_gift_conf.toObject = function toObject(message, options) {
  62588. if (!options)
  62589. options = {};
  62590. let object = {};
  62591. if (options.defaults) {
  62592. if ($util.Long) {
  62593. let long = new $util.Long(0, 0, false);
  62594. object.spendtype = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62595. } else
  62596. object.spendtype = options.longs === String ? "0" : 0;
  62597. if ($util.Long) {
  62598. let long = new $util.Long(0, 0, false);
  62599. object.spend = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62600. } else
  62601. object.spend = options.longs === String ? "0" : 0;
  62602. if ($util.Long) {
  62603. let long = new $util.Long(0, 0, false);
  62604. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62605. } else
  62606. object.num = options.longs === String ? "0" : 0;
  62607. if ($util.Long) {
  62608. let long = new $util.Long(0, 0, false);
  62609. object.library = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62610. } else
  62611. object.library = options.longs === String ? "0" : 0;
  62612. }
  62613. if (message.spendtype != null && message.hasOwnProperty("spendtype"))
  62614. if (typeof message.spendtype === "number")
  62615. object.spendtype = options.longs === String ? String(message.spendtype) : message.spendtype;
  62616. else
  62617. object.spendtype = options.longs === String ? $util.Long.prototype.toString.call(message.spendtype) : options.longs === Number ? new $util.LongBits(message.spendtype.low >>> 0, message.spendtype.high >>> 0).toNumber() : message.spendtype;
  62618. if (message.spend != null && message.hasOwnProperty("spend"))
  62619. if (typeof message.spend === "number")
  62620. object.spend = options.longs === String ? String(message.spend) : message.spend;
  62621. else
  62622. object.spend = options.longs === String ? $util.Long.prototype.toString.call(message.spend) : options.longs === Number ? new $util.LongBits(message.spend.low >>> 0, message.spend.high >>> 0).toNumber() : message.spend;
  62623. if (message.num != null && message.hasOwnProperty("num"))
  62624. if (typeof message.num === "number")
  62625. object.num = options.longs === String ? String(message.num) : message.num;
  62626. else
  62627. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  62628. if (message.library != null && message.hasOwnProperty("library"))
  62629. if (typeof message.library === "number")
  62630. object.library = options.longs === String ? String(message.library) : message.library;
  62631. else
  62632. object.library = options.longs === String ? $util.Long.prototype.toString.call(message.library) : options.longs === Number ? new $util.LongBits(message.library.low >>> 0, message.library.high >>> 0).toNumber() : message.library;
  62633. return object;
  62634. };
  62635. /**
  62636. * Converts this pop_gift_conf to JSON.
  62637. * @function toJSON
  62638. * @memberof game.pop_gift_conf
  62639. * @instance
  62640. * @returns {Object.<string,*>} JSON object
  62641. */
  62642. pop_gift_conf.prototype.toJSON = function toJSON() {
  62643. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62644. };
  62645. return pop_gift_conf;
  62646. })();
  62647. game.pop_gift_info = (function() {
  62648. /**
  62649. * Properties of a pop_gift_info.
  62650. * @memberof game
  62651. * @interface Ipop_gift_info
  62652. * @property {number|Long|null} [id] pop_gift_info id
  62653. * @property {number|Long|null} [num] pop_gift_info num
  62654. * @property {number|Long|null} [time] pop_gift_info time
  62655. * @property {game.Ipop_gift_conf|null} [conf] pop_gift_info conf
  62656. */
  62657. /**
  62658. * Constructs a new pop_gift_info.
  62659. * @memberof game
  62660. * @classdesc Represents a pop_gift_info.
  62661. * @implements Ipop_gift_info
  62662. * @constructor
  62663. * @param {game.Ipop_gift_info=} [properties] Properties to set
  62664. */
  62665. function pop_gift_info(properties) {
  62666. if (properties)
  62667. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62668. if (properties[keys[i]] != null)
  62669. this[keys[i]] = properties[keys[i]];
  62670. }
  62671. /**
  62672. * pop_gift_info id.
  62673. * @member {number|Long} id
  62674. * @memberof game.pop_gift_info
  62675. * @instance
  62676. */
  62677. pop_gift_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62678. /**
  62679. * pop_gift_info num.
  62680. * @member {number|Long} num
  62681. * @memberof game.pop_gift_info
  62682. * @instance
  62683. */
  62684. pop_gift_info.prototype.num = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62685. /**
  62686. * pop_gift_info time.
  62687. * @member {number|Long} time
  62688. * @memberof game.pop_gift_info
  62689. * @instance
  62690. */
  62691. pop_gift_info.prototype.time = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62692. /**
  62693. * pop_gift_info conf.
  62694. * @member {game.Ipop_gift_conf|null|undefined} conf
  62695. * @memberof game.pop_gift_info
  62696. * @instance
  62697. */
  62698. pop_gift_info.prototype.conf = null;
  62699. /**
  62700. * Creates a new pop_gift_info instance using the specified properties.
  62701. * @function create
  62702. * @memberof game.pop_gift_info
  62703. * @static
  62704. * @param {game.Ipop_gift_info=} [properties] Properties to set
  62705. * @returns {game.pop_gift_info} pop_gift_info instance
  62706. */
  62707. pop_gift_info.create = function create(properties) {
  62708. return new pop_gift_info(properties);
  62709. };
  62710. /**
  62711. * Encodes the specified pop_gift_info message. Does not implicitly {@link game.pop_gift_info.verify|verify} messages.
  62712. * @function encode
  62713. * @memberof game.pop_gift_info
  62714. * @static
  62715. * @param {game.Ipop_gift_info} message pop_gift_info message or plain object to encode
  62716. * @param {$protobuf.Writer} [writer] Writer to encode to
  62717. * @returns {$protobuf.Writer} Writer
  62718. */
  62719. pop_gift_info.encode = function encode(message, writer) {
  62720. if (!writer)
  62721. writer = $Writer.create();
  62722. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  62723. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  62724. if (message.num != null && Object.hasOwnProperty.call(message, "num"))
  62725. writer.uint32(/* id 2, wireType 0 =*/16).int64(message.num);
  62726. if (message.time != null && Object.hasOwnProperty.call(message, "time"))
  62727. writer.uint32(/* id 3, wireType 0 =*/24).int64(message.time);
  62728. if (message.conf != null && Object.hasOwnProperty.call(message, "conf"))
  62729. $root.game.pop_gift_conf.encode(message.conf, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
  62730. return writer;
  62731. };
  62732. /**
  62733. * Encodes the specified pop_gift_info message, length delimited. Does not implicitly {@link game.pop_gift_info.verify|verify} messages.
  62734. * @function encodeDelimited
  62735. * @memberof game.pop_gift_info
  62736. * @static
  62737. * @param {game.Ipop_gift_info} message pop_gift_info message or plain object to encode
  62738. * @param {$protobuf.Writer} [writer] Writer to encode to
  62739. * @returns {$protobuf.Writer} Writer
  62740. */
  62741. pop_gift_info.encodeDelimited = function encodeDelimited(message, writer) {
  62742. return this.encode(message, writer).ldelim();
  62743. };
  62744. /**
  62745. * Decodes a pop_gift_info message from the specified reader or buffer.
  62746. * @function decode
  62747. * @memberof game.pop_gift_info
  62748. * @static
  62749. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62750. * @param {number} [length] Message length if known beforehand
  62751. * @returns {game.pop_gift_info} pop_gift_info
  62752. * @throws {Error} If the payload is not a reader or valid buffer
  62753. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62754. */
  62755. pop_gift_info.decode = function decode(reader, length) {
  62756. if (!(reader instanceof $Reader))
  62757. reader = $Reader.create(reader);
  62758. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.pop_gift_info();
  62759. while (reader.pos < end) {
  62760. let tag = reader.uint32();
  62761. switch (tag >>> 3) {
  62762. case 1:
  62763. message.id = reader.int64();
  62764. break;
  62765. case 2:
  62766. message.num = reader.int64();
  62767. break;
  62768. case 3:
  62769. message.time = reader.int64();
  62770. break;
  62771. case 4:
  62772. message.conf = $root.game.pop_gift_conf.decode(reader, reader.uint32());
  62773. break;
  62774. default:
  62775. reader.skipType(tag & 7);
  62776. break;
  62777. }
  62778. }
  62779. return message;
  62780. };
  62781. /**
  62782. * Decodes a pop_gift_info message from the specified reader or buffer, length delimited.
  62783. * @function decodeDelimited
  62784. * @memberof game.pop_gift_info
  62785. * @static
  62786. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  62787. * @returns {game.pop_gift_info} pop_gift_info
  62788. * @throws {Error} If the payload is not a reader or valid buffer
  62789. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  62790. */
  62791. pop_gift_info.decodeDelimited = function decodeDelimited(reader) {
  62792. if (!(reader instanceof $Reader))
  62793. reader = new $Reader(reader);
  62794. return this.decode(reader, reader.uint32());
  62795. };
  62796. /**
  62797. * Verifies a pop_gift_info message.
  62798. * @function verify
  62799. * @memberof game.pop_gift_info
  62800. * @static
  62801. * @param {Object.<string,*>} message Plain object to verify
  62802. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  62803. */
  62804. pop_gift_info.verify = function verify(message) {
  62805. if (typeof message !== "object" || message === null)
  62806. return "object expected";
  62807. if (message.id != null && message.hasOwnProperty("id"))
  62808. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  62809. return "id: integer|Long expected";
  62810. if (message.num != null && message.hasOwnProperty("num"))
  62811. if (!$util.isInteger(message.num) && !(message.num && $util.isInteger(message.num.low) && $util.isInteger(message.num.high)))
  62812. return "num: integer|Long expected";
  62813. if (message.time != null && message.hasOwnProperty("time"))
  62814. if (!$util.isInteger(message.time) && !(message.time && $util.isInteger(message.time.low) && $util.isInteger(message.time.high)))
  62815. return "time: integer|Long expected";
  62816. if (message.conf != null && message.hasOwnProperty("conf")) {
  62817. let error = $root.game.pop_gift_conf.verify(message.conf);
  62818. if (error)
  62819. return "conf." + error;
  62820. }
  62821. return null;
  62822. };
  62823. /**
  62824. * Creates a pop_gift_info message from a plain object. Also converts values to their respective internal types.
  62825. * @function fromObject
  62826. * @memberof game.pop_gift_info
  62827. * @static
  62828. * @param {Object.<string,*>} object Plain object
  62829. * @returns {game.pop_gift_info} pop_gift_info
  62830. */
  62831. pop_gift_info.fromObject = function fromObject(object) {
  62832. if (object instanceof $root.game.pop_gift_info)
  62833. return object;
  62834. let message = new $root.game.pop_gift_info();
  62835. if (object.id != null)
  62836. if ($util.Long)
  62837. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  62838. else if (typeof object.id === "string")
  62839. message.id = parseInt(object.id, 10);
  62840. else if (typeof object.id === "number")
  62841. message.id = object.id;
  62842. else if (typeof object.id === "object")
  62843. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  62844. if (object.num != null)
  62845. if ($util.Long)
  62846. (message.num = $util.Long.fromValue(object.num)).unsigned = false;
  62847. else if (typeof object.num === "string")
  62848. message.num = parseInt(object.num, 10);
  62849. else if (typeof object.num === "number")
  62850. message.num = object.num;
  62851. else if (typeof object.num === "object")
  62852. message.num = new $util.LongBits(object.num.low >>> 0, object.num.high >>> 0).toNumber();
  62853. if (object.time != null)
  62854. if ($util.Long)
  62855. (message.time = $util.Long.fromValue(object.time)).unsigned = false;
  62856. else if (typeof object.time === "string")
  62857. message.time = parseInt(object.time, 10);
  62858. else if (typeof object.time === "number")
  62859. message.time = object.time;
  62860. else if (typeof object.time === "object")
  62861. message.time = new $util.LongBits(object.time.low >>> 0, object.time.high >>> 0).toNumber();
  62862. if (object.conf != null) {
  62863. if (typeof object.conf !== "object")
  62864. throw TypeError(".game.pop_gift_info.conf: object expected");
  62865. message.conf = $root.game.pop_gift_conf.fromObject(object.conf);
  62866. }
  62867. return message;
  62868. };
  62869. /**
  62870. * Creates a plain object from a pop_gift_info message. Also converts values to other types if specified.
  62871. * @function toObject
  62872. * @memberof game.pop_gift_info
  62873. * @static
  62874. * @param {game.pop_gift_info} message pop_gift_info
  62875. * @param {$protobuf.IConversionOptions} [options] Conversion options
  62876. * @returns {Object.<string,*>} Plain object
  62877. */
  62878. pop_gift_info.toObject = function toObject(message, options) {
  62879. if (!options)
  62880. options = {};
  62881. let object = {};
  62882. if (options.defaults) {
  62883. if ($util.Long) {
  62884. let long = new $util.Long(0, 0, false);
  62885. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62886. } else
  62887. object.id = options.longs === String ? "0" : 0;
  62888. if ($util.Long) {
  62889. let long = new $util.Long(0, 0, false);
  62890. object.num = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62891. } else
  62892. object.num = options.longs === String ? "0" : 0;
  62893. if ($util.Long) {
  62894. let long = new $util.Long(0, 0, false);
  62895. object.time = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  62896. } else
  62897. object.time = options.longs === String ? "0" : 0;
  62898. object.conf = null;
  62899. }
  62900. if (message.id != null && message.hasOwnProperty("id"))
  62901. if (typeof message.id === "number")
  62902. object.id = options.longs === String ? String(message.id) : message.id;
  62903. else
  62904. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  62905. if (message.num != null && message.hasOwnProperty("num"))
  62906. if (typeof message.num === "number")
  62907. object.num = options.longs === String ? String(message.num) : message.num;
  62908. else
  62909. object.num = options.longs === String ? $util.Long.prototype.toString.call(message.num) : options.longs === Number ? new $util.LongBits(message.num.low >>> 0, message.num.high >>> 0).toNumber() : message.num;
  62910. if (message.time != null && message.hasOwnProperty("time"))
  62911. if (typeof message.time === "number")
  62912. object.time = options.longs === String ? String(message.time) : message.time;
  62913. else
  62914. object.time = options.longs === String ? $util.Long.prototype.toString.call(message.time) : options.longs === Number ? new $util.LongBits(message.time.low >>> 0, message.time.high >>> 0).toNumber() : message.time;
  62915. if (message.conf != null && message.hasOwnProperty("conf"))
  62916. object.conf = $root.game.pop_gift_conf.toObject(message.conf, options);
  62917. return object;
  62918. };
  62919. /**
  62920. * Converts this pop_gift_info to JSON.
  62921. * @function toJSON
  62922. * @memberof game.pop_gift_info
  62923. * @instance
  62924. * @returns {Object.<string,*>} JSON object
  62925. */
  62926. pop_gift_info.prototype.toJSON = function toJSON() {
  62927. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  62928. };
  62929. return pop_gift_info;
  62930. })();
  62931. game.red_point_info = (function() {
  62932. /**
  62933. * Properties of a red_point_info.
  62934. * @memberof game
  62935. * @interface Ired_point_info
  62936. * @property {number|Long|null} [id] red_point_info id
  62937. * @property {boolean|null} [red] red_point_info red
  62938. */
  62939. /**
  62940. * Constructs a new red_point_info.
  62941. * @memberof game
  62942. * @classdesc Represents a red_point_info.
  62943. * @implements Ired_point_info
  62944. * @constructor
  62945. * @param {game.Ired_point_info=} [properties] Properties to set
  62946. */
  62947. function red_point_info(properties) {
  62948. if (properties)
  62949. for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
  62950. if (properties[keys[i]] != null)
  62951. this[keys[i]] = properties[keys[i]];
  62952. }
  62953. /**
  62954. * red_point_info id.
  62955. * @member {number|Long} id
  62956. * @memberof game.red_point_info
  62957. * @instance
  62958. */
  62959. red_point_info.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
  62960. /**
  62961. * red_point_info red.
  62962. * @member {boolean} red
  62963. * @memberof game.red_point_info
  62964. * @instance
  62965. */
  62966. red_point_info.prototype.red = false;
  62967. /**
  62968. * Creates a new red_point_info instance using the specified properties.
  62969. * @function create
  62970. * @memberof game.red_point_info
  62971. * @static
  62972. * @param {game.Ired_point_info=} [properties] Properties to set
  62973. * @returns {game.red_point_info} red_point_info instance
  62974. */
  62975. red_point_info.create = function create(properties) {
  62976. return new red_point_info(properties);
  62977. };
  62978. /**
  62979. * Encodes the specified red_point_info message. Does not implicitly {@link game.red_point_info.verify|verify} messages.
  62980. * @function encode
  62981. * @memberof game.red_point_info
  62982. * @static
  62983. * @param {game.Ired_point_info} message red_point_info message or plain object to encode
  62984. * @param {$protobuf.Writer} [writer] Writer to encode to
  62985. * @returns {$protobuf.Writer} Writer
  62986. */
  62987. red_point_info.encode = function encode(message, writer) {
  62988. if (!writer)
  62989. writer = $Writer.create();
  62990. if (message.id != null && Object.hasOwnProperty.call(message, "id"))
  62991. writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
  62992. if (message.red != null && Object.hasOwnProperty.call(message, "red"))
  62993. writer.uint32(/* id 2, wireType 0 =*/16).bool(message.red);
  62994. return writer;
  62995. };
  62996. /**
  62997. * Encodes the specified red_point_info message, length delimited. Does not implicitly {@link game.red_point_info.verify|verify} messages.
  62998. * @function encodeDelimited
  62999. * @memberof game.red_point_info
  63000. * @static
  63001. * @param {game.Ired_point_info} message red_point_info message or plain object to encode
  63002. * @param {$protobuf.Writer} [writer] Writer to encode to
  63003. * @returns {$protobuf.Writer} Writer
  63004. */
  63005. red_point_info.encodeDelimited = function encodeDelimited(message, writer) {
  63006. return this.encode(message, writer).ldelim();
  63007. };
  63008. /**
  63009. * Decodes a red_point_info message from the specified reader or buffer.
  63010. * @function decode
  63011. * @memberof game.red_point_info
  63012. * @static
  63013. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63014. * @param {number} [length] Message length if known beforehand
  63015. * @returns {game.red_point_info} red_point_info
  63016. * @throws {Error} If the payload is not a reader or valid buffer
  63017. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63018. */
  63019. red_point_info.decode = function decode(reader, length) {
  63020. if (!(reader instanceof $Reader))
  63021. reader = $Reader.create(reader);
  63022. let end = length === undefined ? reader.len : reader.pos + length, message = new $root.game.red_point_info();
  63023. while (reader.pos < end) {
  63024. let tag = reader.uint32();
  63025. switch (tag >>> 3) {
  63026. case 1:
  63027. message.id = reader.int64();
  63028. break;
  63029. case 2:
  63030. message.red = reader.bool();
  63031. break;
  63032. default:
  63033. reader.skipType(tag & 7);
  63034. break;
  63035. }
  63036. }
  63037. return message;
  63038. };
  63039. /**
  63040. * Decodes a red_point_info message from the specified reader or buffer, length delimited.
  63041. * @function decodeDelimited
  63042. * @memberof game.red_point_info
  63043. * @static
  63044. * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
  63045. * @returns {game.red_point_info} red_point_info
  63046. * @throws {Error} If the payload is not a reader or valid buffer
  63047. * @throws {$protobuf.util.ProtocolError} If required fields are missing
  63048. */
  63049. red_point_info.decodeDelimited = function decodeDelimited(reader) {
  63050. if (!(reader instanceof $Reader))
  63051. reader = new $Reader(reader);
  63052. return this.decode(reader, reader.uint32());
  63053. };
  63054. /**
  63055. * Verifies a red_point_info message.
  63056. * @function verify
  63057. * @memberof game.red_point_info
  63058. * @static
  63059. * @param {Object.<string,*>} message Plain object to verify
  63060. * @returns {string|null} `null` if valid, otherwise the reason why it is not
  63061. */
  63062. red_point_info.verify = function verify(message) {
  63063. if (typeof message !== "object" || message === null)
  63064. return "object expected";
  63065. if (message.id != null && message.hasOwnProperty("id"))
  63066. if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
  63067. return "id: integer|Long expected";
  63068. if (message.red != null && message.hasOwnProperty("red"))
  63069. if (typeof message.red !== "boolean")
  63070. return "red: boolean expected";
  63071. return null;
  63072. };
  63073. /**
  63074. * Creates a red_point_info message from a plain object. Also converts values to their respective internal types.
  63075. * @function fromObject
  63076. * @memberof game.red_point_info
  63077. * @static
  63078. * @param {Object.<string,*>} object Plain object
  63079. * @returns {game.red_point_info} red_point_info
  63080. */
  63081. red_point_info.fromObject = function fromObject(object) {
  63082. if (object instanceof $root.game.red_point_info)
  63083. return object;
  63084. let message = new $root.game.red_point_info();
  63085. if (object.id != null)
  63086. if ($util.Long)
  63087. (message.id = $util.Long.fromValue(object.id)).unsigned = false;
  63088. else if (typeof object.id === "string")
  63089. message.id = parseInt(object.id, 10);
  63090. else if (typeof object.id === "number")
  63091. message.id = object.id;
  63092. else if (typeof object.id === "object")
  63093. message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
  63094. if (object.red != null)
  63095. message.red = Boolean(object.red);
  63096. return message;
  63097. };
  63098. /**
  63099. * Creates a plain object from a red_point_info message. Also converts values to other types if specified.
  63100. * @function toObject
  63101. * @memberof game.red_point_info
  63102. * @static
  63103. * @param {game.red_point_info} message red_point_info
  63104. * @param {$protobuf.IConversionOptions} [options] Conversion options
  63105. * @returns {Object.<string,*>} Plain object
  63106. */
  63107. red_point_info.toObject = function toObject(message, options) {
  63108. if (!options)
  63109. options = {};
  63110. let object = {};
  63111. if (options.defaults) {
  63112. if ($util.Long) {
  63113. let long = new $util.Long(0, 0, false);
  63114. object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
  63115. } else
  63116. object.id = options.longs === String ? "0" : 0;
  63117. object.red = false;
  63118. }
  63119. if (message.id != null && message.hasOwnProperty("id"))
  63120. if (typeof message.id === "number")
  63121. object.id = options.longs === String ? String(message.id) : message.id;
  63122. else
  63123. object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
  63124. if (message.red != null && message.hasOwnProperty("red"))
  63125. object.red = message.red;
  63126. return object;
  63127. };
  63128. /**
  63129. * Converts this red_point_info to JSON.
  63130. * @function toJSON
  63131. * @memberof game.red_point_info
  63132. * @instance
  63133. * @returns {Object.<string,*>} JSON object
  63134. */
  63135. red_point_info.prototype.toJSON = function toJSON() {
  63136. return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
  63137. };
  63138. return red_point_info;
  63139. })();
  63140. /**
  63141. * msg_cmd enum.
  63142. * @name game.msg_cmd
  63143. * @enum {number}
  63144. * @property {number} cmd_ping=0 cmd_ping value
  63145. * @property {number} cmd_ping_rsp=1 cmd_ping_rsp value
  63146. * @property {number} cmd_login=2 cmd_login value
  63147. * @property {number} cmd_login_rsp=3 cmd_login_rsp value
  63148. * @property {number} cmd_create=4 cmd_create value
  63149. * @property {number} cmd_create_rsp=5 cmd_create_rsp value
  63150. * @property {number} cmd_reward_info=6 cmd_reward_info value
  63151. * @property {number} cmd_user=7 cmd_user value
  63152. * @property {number} cmd_pay_currency=8 cmd_pay_currency value
  63153. * @property {number} cmd_pay_debris_nty=9 cmd_pay_debris_nty value
  63154. * @property {number} cmd_exception_nty=10 cmd_exception_nty value
  63155. * @property {number} cmd_create_order_nty=11 cmd_create_order_nty value
  63156. * @property {number} cmd_recharge_result=100 cmd_recharge_result value
  63157. * @property {number} cmd_recharge_result_rsp=101 cmd_recharge_result_rsp value
  63158. * @property {number} cmd_city_change=1000 cmd_city_change value
  63159. * @property {number} cmd_city_data=1001 cmd_city_data value
  63160. * @property {number} cmd_city_data_rsp=1002 cmd_city_data_rsp value
  63161. * @property {number} cmd_building_upgrade=1003 cmd_building_upgrade value
  63162. * @property {number} cmd_building_upgrade_rsp=1004 cmd_building_upgrade_rsp value
  63163. * @property {number} cmd_building_one_key=1005 cmd_building_one_key value
  63164. * @property {number} cmd_building_one_key_rsp=1006 cmd_building_one_key_rsp value
  63165. * @property {number} cmd_city_data_send=1007 cmd_city_data_send value
  63166. * @property {number} cmd_city_skill_upgrade=1010 cmd_city_skill_upgrade value
  63167. * @property {number} cmd_city_skill_upgrade_rsp=1011 cmd_city_skill_upgrade_rsp value
  63168. * @property {number} cmd_city_skill_battle=1012 cmd_city_skill_battle value
  63169. * @property {number} cmd_city_skill_battle_rsp=1013 cmd_city_skill_battle_rsp value
  63170. * @property {number} cmd_building_explore=1020 cmd_building_explore value
  63171. * @property {number} cmd_building_explore_rsp=1021 cmd_building_explore_rsp value
  63172. * @property {number} cmd_building_auto_explore_award=1022 cmd_building_auto_explore_award value
  63173. * @property {number} cmd_building_auto_explore_award_rsp=1023 cmd_building_auto_explore_award_rsp value
  63174. * @property {number} cmd_building_explore_battle=1024 cmd_building_explore_battle value
  63175. * @property {number} cmd_building_explore_battle_rsp=1025 cmd_building_explore_battle_rsp value
  63176. * @property {number} cmd_building_auto_explore_option=1026 cmd_building_auto_explore_option value
  63177. * @property {number} cmd_building_auto_explore_option_rsp=1027 cmd_building_auto_explore_option_rsp value
  63178. * @property {number} cmd_adventure_data=1100 cmd_adventure_data value
  63179. * @property {number} cmd_adventure_data_rsp=1101 cmd_adventure_data_rsp value
  63180. * @property {number} cmd_adventure_start=1102 cmd_adventure_start value
  63181. * @property {number} cmd_adventure_start_rsp=1103 cmd_adventure_start_rsp value
  63182. * @property {number} cmd_adventure_end=1104 cmd_adventure_end value
  63183. * @property {number} cmd_adventure_end_rsp=1105 cmd_adventure_end_rsp value
  63184. * @property {number} cmd_adventure_layer=1106 cmd_adventure_layer value
  63185. * @property {number} cmd_adventure_layer_rsp=1107 cmd_adventure_layer_rsp value
  63186. * @property {number} cmd_adventure_sweep=1108 cmd_adventure_sweep value
  63187. * @property {number} cmd_adventure_sweep_rsp=1109 cmd_adventure_sweep_rsp value
  63188. * @property {number} cmd_adventure_pass_award=1110 cmd_adventure_pass_award value
  63189. * @property {number} cmd_adventure_pass_award_rsp=1111 cmd_adventure_pass_award_rsp value
  63190. * @property {number} cmd_adventure_ad_award=1112 cmd_adventure_ad_award value
  63191. * @property {number} cmd_adventure_ad_award_rsp=1113 cmd_adventure_ad_award_rsp value
  63192. * @property {number} cmd_adventure_trial=1114 cmd_adventure_trial value
  63193. * @property {number} cmd_adventure_trial_rsp=1115 cmd_adventure_trial_rsp value
  63194. * @property {number} cmd_get_mail=1200 cmd_get_mail value
  63195. * @property {number} cmd_get_mail_rsp=1201 cmd_get_mail_rsp value
  63196. * @property {number} cmd_get_mail_goods=1202 cmd_get_mail_goods value
  63197. * @property {number} cmd_get_mail_goods_rsp=1203 cmd_get_mail_goods_rsp value
  63198. * @property {number} cmd_del_mail=1204 cmd_del_mail value
  63199. * @property {number} cmd_del_mail_rsp=1205 cmd_del_mail_rsp value
  63200. * @property {number} cmd_flag_mail=1206 cmd_flag_mail value
  63201. * @property {number} cmd_flag_mail_rsp=1207 cmd_flag_mail_rsp value
  63202. * @property {number} cmd_send_mail=1208 cmd_send_mail value
  63203. * @property {number} cmd_simple_mail=1209 cmd_simple_mail value
  63204. * @property {number} cmd_embattle_get_data=1300 cmd_embattle_get_data value
  63205. * @property {number} cmd_embattle_get_data_rsp=1301 cmd_embattle_get_data_rsp value
  63206. * @property {number} cmd_embattle_battle=1302 cmd_embattle_battle value
  63207. * @property {number} cmd_embattle_battle_rsp=1303 cmd_embattle_battle_rsp value
  63208. * @property {number} cmd_hero_get_data=1400 cmd_hero_get_data value
  63209. * @property {number} cmd_hero_get_data_rsp=1401 cmd_hero_get_data_rsp value
  63210. * @property {number} cmd_hero_upgrade=1402 cmd_hero_upgrade value
  63211. * @property {number} cmd_hero_upgrade_rsp=1403 cmd_hero_upgrade_rsp value
  63212. * @property {number} cmd_hero_upgrade_star=1404 cmd_hero_upgrade_star value
  63213. * @property {number} cmd_hero_upgrade_star_rsp=1405 cmd_hero_upgrade_star_rsp value
  63214. * @property {number} cmd_hero_onekey_upgrade_star=1406 cmd_hero_onekey_upgrade_star value
  63215. * @property {number} cmd_hero_onekey_upgrade_star_rsp=1407 cmd_hero_onekey_upgrade_star_rsp value
  63216. * @property {number} cmd_hero_reset=1408 cmd_hero_reset value
  63217. * @property {number} cmd_hero_reset_rsp=1409 cmd_hero_reset_rsp value
  63218. * @property {number} cmd_hero_wear_equip=1410 cmd_hero_wear_equip value
  63219. * @property {number} cmd_hero_wear_equip_rsp=1411 cmd_hero_wear_equip_rsp value
  63220. * @property {number} cmd_hero_change_nty=1450 cmd_hero_change_nty value
  63221. * @property {number} cmd_skill_card_get_data=1500 cmd_skill_card_get_data value
  63222. * @property {number} cmd_skill_card_get_data_rsp=1501 cmd_skill_card_get_data_rsp value
  63223. * @property {number} cmd_skill_card_upgrade=1502 cmd_skill_card_upgrade value
  63224. * @property {number} cmd_skill_card_upgrade_rsp=1503 cmd_skill_card_upgrade_rsp value
  63225. * @property {number} cmd_skill_card_upgrade_star=1504 cmd_skill_card_upgrade_star value
  63226. * @property {number} cmd_skill_card_upgrade_star_rsp=1505 cmd_skill_card_upgrade_star_rsp value
  63227. * @property {number} cmd_role_get_data=1600 cmd_role_get_data value
  63228. * @property {number} cmd_role_get_data_rsp=1601 cmd_role_get_data_rsp value
  63229. * @property {number} cmd_role_upgrade=1602 cmd_role_upgrade value
  63230. * @property {number} cmd_role_upgrade_rsp=1603 cmd_role_upgrade_rsp value
  63231. * @property {number} cmd_role_rename=1604 cmd_role_rename value
  63232. * @property {number} cmd_role_rename_rsp=1605 cmd_role_rename_rsp value
  63233. * @property {number} cmd_equip_get_data=1700 cmd_equip_get_data value
  63234. * @property {number} cmd_equip_get_data_rsp=1701 cmd_equip_get_data_rsp value
  63235. * @property {number} cmd_equip_upgrade=1702 cmd_equip_upgrade value
  63236. * @property {number} cmd_equip_upgrade_rsp=1703 cmd_equip_upgrade_rsp value
  63237. * @property {number} cmd_equip_upgrade_star=1704 cmd_equip_upgrade_star value
  63238. * @property {number} cmd_equip_upgrade_star_rsp=1705 cmd_equip_upgrade_star_rsp value
  63239. * @property {number} cmd_equip_onekey_upgrade_star=1706 cmd_equip_onekey_upgrade_star value
  63240. * @property {number} cmd_equip_onekey_upgrade_star_rsp=1707 cmd_equip_onekey_upgrade_star_rsp value
  63241. * @property {number} cmd_equip_reset=1708 cmd_equip_reset value
  63242. * @property {number} cmd_equip_reset_rsp=1709 cmd_equip_reset_rsp value
  63243. * @property {number} cmd_equip_change_nty=1750 cmd_equip_change_nty value
  63244. * @property {number} cmd_debris_get_data=1800 cmd_debris_get_data value
  63245. * @property {number} cmd_debris_get_data_rsp=1801 cmd_debris_get_data_rsp value
  63246. * @property {number} cmd_debris_merge=1802 cmd_debris_merge value
  63247. * @property {number} cmd_debris_merge_rsp=1803 cmd_debris_merge_rsp value
  63248. * @property {number} cmd_talent_get_data=1900 cmd_talent_get_data value
  63249. * @property {number} cmd_talent_get_data_rsp=1901 cmd_talent_get_data_rsp value
  63250. * @property {number} cmd_talent_activate=1902 cmd_talent_activate value
  63251. * @property {number} cmd_talent_activate_rsp=1903 cmd_talent_activate_rsp value
  63252. * @property {number} cmd_sign_in_get_data=2000 cmd_sign_in_get_data value
  63253. * @property {number} cmd_sign_in_get_data_rsp=2001 cmd_sign_in_get_data_rsp value
  63254. * @property {number} cmd_sign_in_award=2002 cmd_sign_in_award value
  63255. * @property {number} cmd_sign_in_award_rsp=2003 cmd_sign_in_award_rsp value
  63256. * @property {number} cmd_sign_in_nty=2004 cmd_sign_in_nty value
  63257. * @property {number} cmd_quest_get_data=2100 cmd_quest_get_data value
  63258. * @property {number} cmd_quest_get_data_rsp=2101 cmd_quest_get_data_rsp value
  63259. * @property {number} cmd_quest_get_award=2102 cmd_quest_get_award value
  63260. * @property {number} cmd_quest_get_award_rsp=2103 cmd_quest_get_award_rsp value
  63261. * @property {number} cmd_quest_active_award=2104 cmd_quest_active_award value
  63262. * @property {number} cmd_quest_active_award_rsp=2105 cmd_quest_active_award_rsp value
  63263. * @property {number} cmd_quest_cmplate_notify=2150 cmd_quest_cmplate_notify value
  63264. * @property {number} cmd_manual_get_data=2200 cmd_manual_get_data value
  63265. * @property {number} cmd_manual_get_data_rsp=2201 cmd_manual_get_data_rsp value
  63266. * @property {number} cmd_manual_buy_exp=2202 cmd_manual_buy_exp value
  63267. * @property {number} cmd_manual_buy_exp_rsp=2203 cmd_manual_buy_exp_rsp value
  63268. * @property {number} cmd_manual_get_award=2204 cmd_manual_get_award value
  63269. * @property {number} cmd_manual_get_award_rsp=2205 cmd_manual_get_award_rsp value
  63270. * @property {number} cmd_manual_buy=2206 cmd_manual_buy value
  63271. * @property {number} cmd_manual_buy_rsp=2207 cmd_manual_buy_rsp value
  63272. * @property {number} cmd_manual_notify=2250 cmd_manual_notify value
  63273. * @property {number} cmd_draw=2300 cmd_draw value
  63274. * @property {number} cmd_draw_rsp=2301 cmd_draw_rsp value
  63275. * @property {number} cmd_draw_get_data=2302 cmd_draw_get_data value
  63276. * @property {number} cmd_draw_get_data_rsp=2303 cmd_draw_get_data_rsp value
  63277. * @property {number} cmd_shop_data=2400 cmd_shop_data value
  63278. * @property {number} cmd_shop_data_rsp=2401 cmd_shop_data_rsp value
  63279. * @property {number} cmd_shop_buy=2402 cmd_shop_buy value
  63280. * @property {number} cmd_shop_buy_rsp=2403 cmd_shop_buy_rsp value
  63281. * @property {number} cmd_shop_notify=2450 cmd_shop_notify value
  63282. * @property {number} cmd_ranking_data=2501 cmd_ranking_data value
  63283. * @property {number} cmd_ranking_data_rsp=2502 cmd_ranking_data_rsp value
  63284. * @property {number} cmd_grocery_data=2601 cmd_grocery_data value
  63285. * @property {number} cmd_grocery_data_rsp=2602 cmd_grocery_data_rsp value
  63286. * @property {number} cmd_grocery_buy=2603 cmd_grocery_buy value
  63287. * @property {number} cmd_grocery_buy_rsp=2604 cmd_grocery_buy_rsp value
  63288. * @property {number} cmd_box_get_award=2605 cmd_box_get_award value
  63289. * @property {number} cmd_box_get_award_rsp=2606 cmd_box_get_award_rsp value
  63290. * @property {number} cmd_altar_data=2701 cmd_altar_data value
  63291. * @property {number} cmd_altar_data_rsp=2702 cmd_altar_data_rsp value
  63292. * @property {number} cmd_altar_battle=2703 cmd_altar_battle value
  63293. * @property {number} cmd_altar_battle_rsp=2704 cmd_altar_battle_rsp value
  63294. * @property {number} cmd_altar_exchange=2705 cmd_altar_exchange value
  63295. * @property {number} cmd_altar_exchange_rsp=2706 cmd_altar_exchange_rsp value
  63296. * @property {number} cmd_altar_exchange_confirm=2707 cmd_altar_exchange_confirm value
  63297. * @property {number} cmd_altar_exchange_confirm_rsp=2708 cmd_altar_exchange_confirm_rsp value
  63298. * @property {number} cmd_altar_buy_battle_space=2709 cmd_altar_buy_battle_space value
  63299. * @property {number} cmd_altar_buy_battle_space_rsp=2710 cmd_altar_buy_battle_space_rsp value
  63300. * @property {number} cmd_altar_reset_cd=2711 cmd_altar_reset_cd value
  63301. * @property {number} cmd_altar_reset_cd_rsp=2712 cmd_altar_reset_cd_rsp value
  63302. * @property {number} cmd_relic_data=2801 cmd_relic_data value
  63303. * @property {number} cmd_relic_data_rsp=2802 cmd_relic_data_rsp value
  63304. * @property {number} cmd_relic_next_pos=2803 cmd_relic_next_pos value
  63305. * @property {number} cmd_relic_next_pos_rsp=2804 cmd_relic_next_pos_rsp value
  63306. * @property {number} cmd_relic_next_layer=2805 cmd_relic_next_layer value
  63307. * @property {number} cmd_relic_next_layer_rsp=2806 cmd_relic_next_layer_rsp value
  63308. * @property {number} cmd_relic_select_buff=2807 cmd_relic_select_buff value
  63309. * @property {number} cmd_relic_select_buff_rsp=2808 cmd_relic_select_buff_rsp value
  63310. * @property {number} cmd_relic_reset=2809 cmd_relic_reset value
  63311. * @property {number} cmd_relic_reset_rsp=2810 cmd_relic_reset_rsp value
  63312. * @property {number} cmd_relic_event_select=2811 cmd_relic_event_select value
  63313. * @property {number} cmd_relic_event_select_rsp=2812 cmd_relic_event_select_rsp value
  63314. * @property {number} cmd_relic_event_nty=2850 cmd_relic_event_nty value
  63315. * @property {number} cmd_relic_data_nty=2851 cmd_relic_data_nty value
  63316. * @property {number} cmd_activity_get_conf_list=2900 cmd_activity_get_conf_list value
  63317. * @property {number} cmd_activity_get_conf_list_rsp=2901 cmd_activity_get_conf_list_rsp value
  63318. * @property {number} cmd_activity_time_list_nty=2950 cmd_activity_time_list_nty value
  63319. * @property {number} cmd_activity_get_conf_nty=2951 cmd_activity_get_conf_nty value
  63320. * @property {number} cmd_privilege_card_data=3000 cmd_privilege_card_data value
  63321. * @property {number} cmd_privilege_card_data_rsp=3001 cmd_privilege_card_data_rsp value
  63322. * @property {number} cmd_privilege_card_buy=3002 cmd_privilege_card_buy value
  63323. * @property {number} cmd_privilege_card_buy_rsp=3003 cmd_privilege_card_buy_rsp value
  63324. * @property {number} cmd_privilege_card_award=3004 cmd_privilege_card_award value
  63325. * @property {number} cmd_privilege_card_award_rsp=3005 cmd_privilege_card_award_rsp value
  63326. * @property {number} cmd_privilege_card_unlock_nty=3050 cmd_privilege_card_unlock_nty value
  63327. * @property {number} cmd_first_recharge_data=3100 cmd_first_recharge_data value
  63328. * @property {number} cmd_first_recharge_data_rsp=3101 cmd_first_recharge_data_rsp value
  63329. * @property {number} cmd_first_recharge_buy=3102 cmd_first_recharge_buy value
  63330. * @property {number} cmd_first_recharge_buy_rsp=3103 cmd_first_recharge_buy_rsp value
  63331. * @property {number} cmd_first_recharge_award=3104 cmd_first_recharge_award value
  63332. * @property {number} cmd_first_recharge_award_rsp=3105 cmd_first_recharge_award_rsp value
  63333. * @property {number} cmd_first_recharge_nty=3150 cmd_first_recharge_nty value
  63334. * @property {number} cmd_daily_dungeons_data=3200 cmd_daily_dungeons_data value
  63335. * @property {number} cmd_daily_dungeons_data_rsp=3201 cmd_daily_dungeons_data_rsp value
  63336. * @property {number} cmd_daily_dungeons_start=3202 cmd_daily_dungeons_start value
  63337. * @property {number} cmd_daily_dungeons_start_rsp=3203 cmd_daily_dungeons_start_rsp value
  63338. * @property {number} cmd_daily_dungeons_end=3204 cmd_daily_dungeons_end value
  63339. * @property {number} cmd_daily_dungeons_end_rsp=3205 cmd_daily_dungeons_end_rsp value
  63340. * @property {number} cmd_daily_dungeons_sweep=3206 cmd_daily_dungeons_sweep value
  63341. * @property {number} cmd_daily_dungeons_sweep_rsp=3207 cmd_daily_dungeons_sweep_rsp value
  63342. * @property {number} cmd_adv_gift_data=3300 cmd_adv_gift_data value
  63343. * @property {number} cmd_adv_gift_data_rsp=3301 cmd_adv_gift_data_rsp value
  63344. * @property {number} cmd_adv_gift_buy=3302 cmd_adv_gift_buy value
  63345. * @property {number} cmd_adv_gift_buy_rsp=3303 cmd_adv_gift_buy_rsp value
  63346. * @property {number} cmd_adv_gift_nty=3350 cmd_adv_gift_nty value
  63347. * @property {number} cmd_pop_gift_data=3400 cmd_pop_gift_data value
  63348. * @property {number} cmd_pop_gift_data_rsp=3401 cmd_pop_gift_data_rsp value
  63349. * @property {number} cmd_pop_gift_buy=3402 cmd_pop_gift_buy value
  63350. * @property {number} cmd_pop_gift_buy_rsp=3403 cmd_pop_gift_buy_rsp value
  63351. * @property {number} cmd_pop_gift_nty=3450 cmd_pop_gift_nty value
  63352. * @property {number} cmd_pop_gift_change_nty=3451 cmd_pop_gift_change_nty value
  63353. * @property {number} cmd_fund_data=3500 cmd_fund_data value
  63354. * @property {number} cmd_fund_data_rsp=3501 cmd_fund_data_rsp value
  63355. * @property {number} cmd_fund_buy=3502 cmd_fund_buy value
  63356. * @property {number} cmd_fund_buy_rsp=3503 cmd_fund_buy_rsp value
  63357. * @property {number} cmd_fund_award=3504 cmd_fund_award value
  63358. * @property {number} cmd_fund_award_rsp=3505 cmd_fund_award_rsp value
  63359. * @property {number} cmd_fund_nty=3550 cmd_fund_nty value
  63360. * @property {number} cmd_keep_recharge_data=3600 cmd_keep_recharge_data value
  63361. * @property {number} cmd_keep_recharge_data_rsp=3601 cmd_keep_recharge_data_rsp value
  63362. * @property {number} cmd_keep_recharge_award=3602 cmd_keep_recharge_award value
  63363. * @property {number} cmd_keep_recharge_award_rsp=3603 cmd_keep_recharge_award_rsp value
  63364. * @property {number} cmd_get_red_point_list=3710 cmd_get_red_point_list value
  63365. * @property {number} cmd_get_red_point_list_rsp=3711 cmd_get_red_point_list_rsp value
  63366. * @property {number} cmd_online_award_get_award=3800 cmd_online_award_get_award value
  63367. * @property {number} cmd_online_award_get_award_rsp=3801 cmd_online_award_get_award_rsp value
  63368. * @property {number} cmd_online_award_get_data=3802 cmd_online_award_get_data value
  63369. * @property {number} cmd_online_award_get_data_rsp=3803 cmd_online_award_get_data_rsp value
  63370. * @property {number} cmd_online_award_nty=3850 cmd_online_award_nty value
  63371. * @property {number} cmd_speed_up_data=3900 cmd_speed_up_data value
  63372. * @property {number} cmd_speed_up_data_rsp=3901 cmd_speed_up_data_rsp value
  63373. * @property {number} cmd_speed_up_buy=3902 cmd_speed_up_buy value
  63374. * @property {number} cmd_speed_up_buy_rsp=3903 cmd_speed_up_buy_rsp value
  63375. * @property {number} cmd_level_gift_data=4000 cmd_level_gift_data value
  63376. * @property {number} cmd_level_gift_data_rsp=4001 cmd_level_gift_data_rsp value
  63377. * @property {number} cmd_level_gift_buy=4002 cmd_level_gift_buy value
  63378. * @property {number} cmd_level_gift_buy_rsp=4003 cmd_level_gift_buy_rsp value
  63379. * @property {number} cmd_level_gift_del_red_point=4004 cmd_level_gift_del_red_point value
  63380. * @property {number} cmd_level_gift_del_red_point_rsp=4005 cmd_level_gift_del_red_point_rsp value
  63381. * @property {number} cmd_level_gift_nty=4050 cmd_level_gift_nty value
  63382. * @property {number} cmd_lottery_data=4100 cmd_lottery_data value
  63383. * @property {number} cmd_lottery_data_rsp=4101 cmd_lottery_data_rsp value
  63384. * @property {number} cmd_lottery_award=4102 cmd_lottery_award value
  63385. * @property {number} cmd_lottery_award_rsp=4103 cmd_lottery_award_rsp value
  63386. * @property {number} cmd_lottery_buy=4104 cmd_lottery_buy value
  63387. * @property {number} cmd_lottery_buy_rsp=4105 cmd_lottery_buy_rsp value
  63388. * @property {number} cmd_lottery_nty=4150 cmd_lottery_nty value
  63389. * @property {number} cmd_act_rank_data=4200 cmd_act_rank_data value
  63390. * @property {number} cmd_act_rank_data_rsp=4201 cmd_act_rank_data_rsp value
  63391. * @property {number} cmd_treasure_get_data=4300 cmd_treasure_get_data value
  63392. * @property {number} cmd_treasure_get_data_rsp=4301 cmd_treasure_get_data_rsp value
  63393. * @property {number} cmd_treasure_draw=4302 cmd_treasure_draw value
  63394. * @property {number} cmd_treasure_draw_rsp=4303 cmd_treasure_draw_rsp value
  63395. * @property {number} cmd_treasure_sign=4304 cmd_treasure_sign value
  63396. * @property {number} cmd_treasure_sign_rsp=4305 cmd_treasure_sign_rsp value
  63397. * @property {number} cmd_treasure_buy=4306 cmd_treasure_buy value
  63398. * @property {number} cmd_treasure_buy_rsp=4307 cmd_treasure_buy_rsp value
  63399. */
  63400. game.msg_cmd = (function() {
  63401. const valuesById = {}, values = Object.create(valuesById);
  63402. values[valuesById[0] = "cmd_ping"] = 0;
  63403. values[valuesById[1] = "cmd_ping_rsp"] = 1;
  63404. values[valuesById[2] = "cmd_login"] = 2;
  63405. values[valuesById[3] = "cmd_login_rsp"] = 3;
  63406. values[valuesById[4] = "cmd_create"] = 4;
  63407. values[valuesById[5] = "cmd_create_rsp"] = 5;
  63408. values[valuesById[6] = "cmd_reward_info"] = 6;
  63409. values[valuesById[7] = "cmd_user"] = 7;
  63410. values[valuesById[8] = "cmd_pay_currency"] = 8;
  63411. values[valuesById[9] = "cmd_pay_debris_nty"] = 9;
  63412. values[valuesById[10] = "cmd_exception_nty"] = 10;
  63413. values[valuesById[11] = "cmd_create_order_nty"] = 11;
  63414. values[valuesById[100] = "cmd_recharge_result"] = 100;
  63415. values[valuesById[101] = "cmd_recharge_result_rsp"] = 101;
  63416. values[valuesById[1000] = "cmd_city_change"] = 1000;
  63417. values[valuesById[1001] = "cmd_city_data"] = 1001;
  63418. values[valuesById[1002] = "cmd_city_data_rsp"] = 1002;
  63419. values[valuesById[1003] = "cmd_building_upgrade"] = 1003;
  63420. values[valuesById[1004] = "cmd_building_upgrade_rsp"] = 1004;
  63421. values[valuesById[1005] = "cmd_building_one_key"] = 1005;
  63422. values[valuesById[1006] = "cmd_building_one_key_rsp"] = 1006;
  63423. values[valuesById[1007] = "cmd_city_data_send"] = 1007;
  63424. values[valuesById[1010] = "cmd_city_skill_upgrade"] = 1010;
  63425. values[valuesById[1011] = "cmd_city_skill_upgrade_rsp"] = 1011;
  63426. values[valuesById[1012] = "cmd_city_skill_battle"] = 1012;
  63427. values[valuesById[1013] = "cmd_city_skill_battle_rsp"] = 1013;
  63428. values[valuesById[1020] = "cmd_building_explore"] = 1020;
  63429. values[valuesById[1021] = "cmd_building_explore_rsp"] = 1021;
  63430. values[valuesById[1022] = "cmd_building_auto_explore_award"] = 1022;
  63431. values[valuesById[1023] = "cmd_building_auto_explore_award_rsp"] = 1023;
  63432. values[valuesById[1024] = "cmd_building_explore_battle"] = 1024;
  63433. values[valuesById[1025] = "cmd_building_explore_battle_rsp"] = 1025;
  63434. values[valuesById[1026] = "cmd_building_auto_explore_option"] = 1026;
  63435. values[valuesById[1027] = "cmd_building_auto_explore_option_rsp"] = 1027;
  63436. values[valuesById[1100] = "cmd_adventure_data"] = 1100;
  63437. values[valuesById[1101] = "cmd_adventure_data_rsp"] = 1101;
  63438. values[valuesById[1102] = "cmd_adventure_start"] = 1102;
  63439. values[valuesById[1103] = "cmd_adventure_start_rsp"] = 1103;
  63440. values[valuesById[1104] = "cmd_adventure_end"] = 1104;
  63441. values[valuesById[1105] = "cmd_adventure_end_rsp"] = 1105;
  63442. values[valuesById[1106] = "cmd_adventure_layer"] = 1106;
  63443. values[valuesById[1107] = "cmd_adventure_layer_rsp"] = 1107;
  63444. values[valuesById[1108] = "cmd_adventure_sweep"] = 1108;
  63445. values[valuesById[1109] = "cmd_adventure_sweep_rsp"] = 1109;
  63446. values[valuesById[1110] = "cmd_adventure_pass_award"] = 1110;
  63447. values[valuesById[1111] = "cmd_adventure_pass_award_rsp"] = 1111;
  63448. values[valuesById[1112] = "cmd_adventure_ad_award"] = 1112;
  63449. values[valuesById[1113] = "cmd_adventure_ad_award_rsp"] = 1113;
  63450. values[valuesById[1114] = "cmd_adventure_trial"] = 1114;
  63451. values[valuesById[1115] = "cmd_adventure_trial_rsp"] = 1115;
  63452. values[valuesById[1200] = "cmd_get_mail"] = 1200;
  63453. values[valuesById[1201] = "cmd_get_mail_rsp"] = 1201;
  63454. values[valuesById[1202] = "cmd_get_mail_goods"] = 1202;
  63455. values[valuesById[1203] = "cmd_get_mail_goods_rsp"] = 1203;
  63456. values[valuesById[1204] = "cmd_del_mail"] = 1204;
  63457. values[valuesById[1205] = "cmd_del_mail_rsp"] = 1205;
  63458. values[valuesById[1206] = "cmd_flag_mail"] = 1206;
  63459. values[valuesById[1207] = "cmd_flag_mail_rsp"] = 1207;
  63460. values[valuesById[1208] = "cmd_send_mail"] = 1208;
  63461. values[valuesById[1209] = "cmd_simple_mail"] = 1209;
  63462. values[valuesById[1300] = "cmd_embattle_get_data"] = 1300;
  63463. values[valuesById[1301] = "cmd_embattle_get_data_rsp"] = 1301;
  63464. values[valuesById[1302] = "cmd_embattle_battle"] = 1302;
  63465. values[valuesById[1303] = "cmd_embattle_battle_rsp"] = 1303;
  63466. values[valuesById[1400] = "cmd_hero_get_data"] = 1400;
  63467. values[valuesById[1401] = "cmd_hero_get_data_rsp"] = 1401;
  63468. values[valuesById[1402] = "cmd_hero_upgrade"] = 1402;
  63469. values[valuesById[1403] = "cmd_hero_upgrade_rsp"] = 1403;
  63470. values[valuesById[1404] = "cmd_hero_upgrade_star"] = 1404;
  63471. values[valuesById[1405] = "cmd_hero_upgrade_star_rsp"] = 1405;
  63472. values[valuesById[1406] = "cmd_hero_onekey_upgrade_star"] = 1406;
  63473. values[valuesById[1407] = "cmd_hero_onekey_upgrade_star_rsp"] = 1407;
  63474. values[valuesById[1408] = "cmd_hero_reset"] = 1408;
  63475. values[valuesById[1409] = "cmd_hero_reset_rsp"] = 1409;
  63476. values[valuesById[1410] = "cmd_hero_wear_equip"] = 1410;
  63477. values[valuesById[1411] = "cmd_hero_wear_equip_rsp"] = 1411;
  63478. values[valuesById[1450] = "cmd_hero_change_nty"] = 1450;
  63479. values[valuesById[1500] = "cmd_skill_card_get_data"] = 1500;
  63480. values[valuesById[1501] = "cmd_skill_card_get_data_rsp"] = 1501;
  63481. values[valuesById[1502] = "cmd_skill_card_upgrade"] = 1502;
  63482. values[valuesById[1503] = "cmd_skill_card_upgrade_rsp"] = 1503;
  63483. values[valuesById[1504] = "cmd_skill_card_upgrade_star"] = 1504;
  63484. values[valuesById[1505] = "cmd_skill_card_upgrade_star_rsp"] = 1505;
  63485. values[valuesById[1600] = "cmd_role_get_data"] = 1600;
  63486. values[valuesById[1601] = "cmd_role_get_data_rsp"] = 1601;
  63487. values[valuesById[1602] = "cmd_role_upgrade"] = 1602;
  63488. values[valuesById[1603] = "cmd_role_upgrade_rsp"] = 1603;
  63489. values[valuesById[1604] = "cmd_role_rename"] = 1604;
  63490. values[valuesById[1605] = "cmd_role_rename_rsp"] = 1605;
  63491. values[valuesById[1700] = "cmd_equip_get_data"] = 1700;
  63492. values[valuesById[1701] = "cmd_equip_get_data_rsp"] = 1701;
  63493. values[valuesById[1702] = "cmd_equip_upgrade"] = 1702;
  63494. values[valuesById[1703] = "cmd_equip_upgrade_rsp"] = 1703;
  63495. values[valuesById[1704] = "cmd_equip_upgrade_star"] = 1704;
  63496. values[valuesById[1705] = "cmd_equip_upgrade_star_rsp"] = 1705;
  63497. values[valuesById[1706] = "cmd_equip_onekey_upgrade_star"] = 1706;
  63498. values[valuesById[1707] = "cmd_equip_onekey_upgrade_star_rsp"] = 1707;
  63499. values[valuesById[1708] = "cmd_equip_reset"] = 1708;
  63500. values[valuesById[1709] = "cmd_equip_reset_rsp"] = 1709;
  63501. values[valuesById[1750] = "cmd_equip_change_nty"] = 1750;
  63502. values[valuesById[1800] = "cmd_debris_get_data"] = 1800;
  63503. values[valuesById[1801] = "cmd_debris_get_data_rsp"] = 1801;
  63504. values[valuesById[1802] = "cmd_debris_merge"] = 1802;
  63505. values[valuesById[1803] = "cmd_debris_merge_rsp"] = 1803;
  63506. values[valuesById[1900] = "cmd_talent_get_data"] = 1900;
  63507. values[valuesById[1901] = "cmd_talent_get_data_rsp"] = 1901;
  63508. values[valuesById[1902] = "cmd_talent_activate"] = 1902;
  63509. values[valuesById[1903] = "cmd_talent_activate_rsp"] = 1903;
  63510. values[valuesById[2000] = "cmd_sign_in_get_data"] = 2000;
  63511. values[valuesById[2001] = "cmd_sign_in_get_data_rsp"] = 2001;
  63512. values[valuesById[2002] = "cmd_sign_in_award"] = 2002;
  63513. values[valuesById[2003] = "cmd_sign_in_award_rsp"] = 2003;
  63514. values[valuesById[2004] = "cmd_sign_in_nty"] = 2004;
  63515. values[valuesById[2100] = "cmd_quest_get_data"] = 2100;
  63516. values[valuesById[2101] = "cmd_quest_get_data_rsp"] = 2101;
  63517. values[valuesById[2102] = "cmd_quest_get_award"] = 2102;
  63518. values[valuesById[2103] = "cmd_quest_get_award_rsp"] = 2103;
  63519. values[valuesById[2104] = "cmd_quest_active_award"] = 2104;
  63520. values[valuesById[2105] = "cmd_quest_active_award_rsp"] = 2105;
  63521. values[valuesById[2150] = "cmd_quest_cmplate_notify"] = 2150;
  63522. values[valuesById[2200] = "cmd_manual_get_data"] = 2200;
  63523. values[valuesById[2201] = "cmd_manual_get_data_rsp"] = 2201;
  63524. values[valuesById[2202] = "cmd_manual_buy_exp"] = 2202;
  63525. values[valuesById[2203] = "cmd_manual_buy_exp_rsp"] = 2203;
  63526. values[valuesById[2204] = "cmd_manual_get_award"] = 2204;
  63527. values[valuesById[2205] = "cmd_manual_get_award_rsp"] = 2205;
  63528. values[valuesById[2206] = "cmd_manual_buy"] = 2206;
  63529. values[valuesById[2207] = "cmd_manual_buy_rsp"] = 2207;
  63530. values[valuesById[2250] = "cmd_manual_notify"] = 2250;
  63531. values[valuesById[2300] = "cmd_draw"] = 2300;
  63532. values[valuesById[2301] = "cmd_draw_rsp"] = 2301;
  63533. values[valuesById[2302] = "cmd_draw_get_data"] = 2302;
  63534. values[valuesById[2303] = "cmd_draw_get_data_rsp"] = 2303;
  63535. values[valuesById[2400] = "cmd_shop_data"] = 2400;
  63536. values[valuesById[2401] = "cmd_shop_data_rsp"] = 2401;
  63537. values[valuesById[2402] = "cmd_shop_buy"] = 2402;
  63538. values[valuesById[2403] = "cmd_shop_buy_rsp"] = 2403;
  63539. values[valuesById[2450] = "cmd_shop_notify"] = 2450;
  63540. values[valuesById[2501] = "cmd_ranking_data"] = 2501;
  63541. values[valuesById[2502] = "cmd_ranking_data_rsp"] = 2502;
  63542. values[valuesById[2601] = "cmd_grocery_data"] = 2601;
  63543. values[valuesById[2602] = "cmd_grocery_data_rsp"] = 2602;
  63544. values[valuesById[2603] = "cmd_grocery_buy"] = 2603;
  63545. values[valuesById[2604] = "cmd_grocery_buy_rsp"] = 2604;
  63546. values[valuesById[2605] = "cmd_box_get_award"] = 2605;
  63547. values[valuesById[2606] = "cmd_box_get_award_rsp"] = 2606;
  63548. values[valuesById[2701] = "cmd_altar_data"] = 2701;
  63549. values[valuesById[2702] = "cmd_altar_data_rsp"] = 2702;
  63550. values[valuesById[2703] = "cmd_altar_battle"] = 2703;
  63551. values[valuesById[2704] = "cmd_altar_battle_rsp"] = 2704;
  63552. values[valuesById[2705] = "cmd_altar_exchange"] = 2705;
  63553. values[valuesById[2706] = "cmd_altar_exchange_rsp"] = 2706;
  63554. values[valuesById[2707] = "cmd_altar_exchange_confirm"] = 2707;
  63555. values[valuesById[2708] = "cmd_altar_exchange_confirm_rsp"] = 2708;
  63556. values[valuesById[2709] = "cmd_altar_buy_battle_space"] = 2709;
  63557. values[valuesById[2710] = "cmd_altar_buy_battle_space_rsp"] = 2710;
  63558. values[valuesById[2711] = "cmd_altar_reset_cd"] = 2711;
  63559. values[valuesById[2712] = "cmd_altar_reset_cd_rsp"] = 2712;
  63560. values[valuesById[2801] = "cmd_relic_data"] = 2801;
  63561. values[valuesById[2802] = "cmd_relic_data_rsp"] = 2802;
  63562. values[valuesById[2803] = "cmd_relic_next_pos"] = 2803;
  63563. values[valuesById[2804] = "cmd_relic_next_pos_rsp"] = 2804;
  63564. values[valuesById[2805] = "cmd_relic_next_layer"] = 2805;
  63565. values[valuesById[2806] = "cmd_relic_next_layer_rsp"] = 2806;
  63566. values[valuesById[2807] = "cmd_relic_select_buff"] = 2807;
  63567. values[valuesById[2808] = "cmd_relic_select_buff_rsp"] = 2808;
  63568. values[valuesById[2809] = "cmd_relic_reset"] = 2809;
  63569. values[valuesById[2810] = "cmd_relic_reset_rsp"] = 2810;
  63570. values[valuesById[2811] = "cmd_relic_event_select"] = 2811;
  63571. values[valuesById[2812] = "cmd_relic_event_select_rsp"] = 2812;
  63572. values[valuesById[2850] = "cmd_relic_event_nty"] = 2850;
  63573. values[valuesById[2851] = "cmd_relic_data_nty"] = 2851;
  63574. values[valuesById[2900] = "cmd_activity_get_conf_list"] = 2900;
  63575. values[valuesById[2901] = "cmd_activity_get_conf_list_rsp"] = 2901;
  63576. values[valuesById[2950] = "cmd_activity_time_list_nty"] = 2950;
  63577. values[valuesById[2951] = "cmd_activity_get_conf_nty"] = 2951;
  63578. values[valuesById[3000] = "cmd_privilege_card_data"] = 3000;
  63579. values[valuesById[3001] = "cmd_privilege_card_data_rsp"] = 3001;
  63580. values[valuesById[3002] = "cmd_privilege_card_buy"] = 3002;
  63581. values[valuesById[3003] = "cmd_privilege_card_buy_rsp"] = 3003;
  63582. values[valuesById[3004] = "cmd_privilege_card_award"] = 3004;
  63583. values[valuesById[3005] = "cmd_privilege_card_award_rsp"] = 3005;
  63584. values[valuesById[3050] = "cmd_privilege_card_unlock_nty"] = 3050;
  63585. values[valuesById[3100] = "cmd_first_recharge_data"] = 3100;
  63586. values[valuesById[3101] = "cmd_first_recharge_data_rsp"] = 3101;
  63587. values[valuesById[3102] = "cmd_first_recharge_buy"] = 3102;
  63588. values[valuesById[3103] = "cmd_first_recharge_buy_rsp"] = 3103;
  63589. values[valuesById[3104] = "cmd_first_recharge_award"] = 3104;
  63590. values[valuesById[3105] = "cmd_first_recharge_award_rsp"] = 3105;
  63591. values[valuesById[3150] = "cmd_first_recharge_nty"] = 3150;
  63592. values[valuesById[3200] = "cmd_daily_dungeons_data"] = 3200;
  63593. values[valuesById[3201] = "cmd_daily_dungeons_data_rsp"] = 3201;
  63594. values[valuesById[3202] = "cmd_daily_dungeons_start"] = 3202;
  63595. values[valuesById[3203] = "cmd_daily_dungeons_start_rsp"] = 3203;
  63596. values[valuesById[3204] = "cmd_daily_dungeons_end"] = 3204;
  63597. values[valuesById[3205] = "cmd_daily_dungeons_end_rsp"] = 3205;
  63598. values[valuesById[3206] = "cmd_daily_dungeons_sweep"] = 3206;
  63599. values[valuesById[3207] = "cmd_daily_dungeons_sweep_rsp"] = 3207;
  63600. values[valuesById[3300] = "cmd_adv_gift_data"] = 3300;
  63601. values[valuesById[3301] = "cmd_adv_gift_data_rsp"] = 3301;
  63602. values[valuesById[3302] = "cmd_adv_gift_buy"] = 3302;
  63603. values[valuesById[3303] = "cmd_adv_gift_buy_rsp"] = 3303;
  63604. values[valuesById[3350] = "cmd_adv_gift_nty"] = 3350;
  63605. values[valuesById[3400] = "cmd_pop_gift_data"] = 3400;
  63606. values[valuesById[3401] = "cmd_pop_gift_data_rsp"] = 3401;
  63607. values[valuesById[3402] = "cmd_pop_gift_buy"] = 3402;
  63608. values[valuesById[3403] = "cmd_pop_gift_buy_rsp"] = 3403;
  63609. values[valuesById[3450] = "cmd_pop_gift_nty"] = 3450;
  63610. values[valuesById[3451] = "cmd_pop_gift_change_nty"] = 3451;
  63611. values[valuesById[3500] = "cmd_fund_data"] = 3500;
  63612. values[valuesById[3501] = "cmd_fund_data_rsp"] = 3501;
  63613. values[valuesById[3502] = "cmd_fund_buy"] = 3502;
  63614. values[valuesById[3503] = "cmd_fund_buy_rsp"] = 3503;
  63615. values[valuesById[3504] = "cmd_fund_award"] = 3504;
  63616. values[valuesById[3505] = "cmd_fund_award_rsp"] = 3505;
  63617. values[valuesById[3550] = "cmd_fund_nty"] = 3550;
  63618. values[valuesById[3600] = "cmd_keep_recharge_data"] = 3600;
  63619. values[valuesById[3601] = "cmd_keep_recharge_data_rsp"] = 3601;
  63620. values[valuesById[3602] = "cmd_keep_recharge_award"] = 3602;
  63621. values[valuesById[3603] = "cmd_keep_recharge_award_rsp"] = 3603;
  63622. values[valuesById[3710] = "cmd_get_red_point_list"] = 3710;
  63623. values[valuesById[3711] = "cmd_get_red_point_list_rsp"] = 3711;
  63624. values[valuesById[3800] = "cmd_online_award_get_award"] = 3800;
  63625. values[valuesById[3801] = "cmd_online_award_get_award_rsp"] = 3801;
  63626. values[valuesById[3802] = "cmd_online_award_get_data"] = 3802;
  63627. values[valuesById[3803] = "cmd_online_award_get_data_rsp"] = 3803;
  63628. values[valuesById[3850] = "cmd_online_award_nty"] = 3850;
  63629. values[valuesById[3900] = "cmd_speed_up_data"] = 3900;
  63630. values[valuesById[3901] = "cmd_speed_up_data_rsp"] = 3901;
  63631. values[valuesById[3902] = "cmd_speed_up_buy"] = 3902;
  63632. values[valuesById[3903] = "cmd_speed_up_buy_rsp"] = 3903;
  63633. values[valuesById[4000] = "cmd_level_gift_data"] = 4000;
  63634. values[valuesById[4001] = "cmd_level_gift_data_rsp"] = 4001;
  63635. values[valuesById[4002] = "cmd_level_gift_buy"] = 4002;
  63636. values[valuesById[4003] = "cmd_level_gift_buy_rsp"] = 4003;
  63637. values[valuesById[4004] = "cmd_level_gift_del_red_point"] = 4004;
  63638. values[valuesById[4005] = "cmd_level_gift_del_red_point_rsp"] = 4005;
  63639. values[valuesById[4050] = "cmd_level_gift_nty"] = 4050;
  63640. values[valuesById[4100] = "cmd_lottery_data"] = 4100;
  63641. values[valuesById[4101] = "cmd_lottery_data_rsp"] = 4101;
  63642. values[valuesById[4102] = "cmd_lottery_award"] = 4102;
  63643. values[valuesById[4103] = "cmd_lottery_award_rsp"] = 4103;
  63644. values[valuesById[4104] = "cmd_lottery_buy"] = 4104;
  63645. values[valuesById[4105] = "cmd_lottery_buy_rsp"] = 4105;
  63646. values[valuesById[4150] = "cmd_lottery_nty"] = 4150;
  63647. values[valuesById[4200] = "cmd_act_rank_data"] = 4200;
  63648. values[valuesById[4201] = "cmd_act_rank_data_rsp"] = 4201;
  63649. values[valuesById[4300] = "cmd_treasure_get_data"] = 4300;
  63650. values[valuesById[4301] = "cmd_treasure_get_data_rsp"] = 4301;
  63651. values[valuesById[4302] = "cmd_treasure_draw"] = 4302;
  63652. values[valuesById[4303] = "cmd_treasure_draw_rsp"] = 4303;
  63653. values[valuesById[4304] = "cmd_treasure_sign"] = 4304;
  63654. values[valuesById[4305] = "cmd_treasure_sign_rsp"] = 4305;
  63655. values[valuesById[4306] = "cmd_treasure_buy"] = 4306;
  63656. values[valuesById[4307] = "cmd_treasure_buy_rsp"] = 4307;
  63657. return values;
  63658. })();
  63659. return game;
  63660. })();
  63661. export { $root as default };